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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var dZ,Mrp,Xj2,RN,l2,mA,Qq,qp,IN,FAS,ALN,OS,oN,lvS,$p2,KZ,TZq,pjj,hZZ,RI,Ivi,viZ,jNq,oi2,rLS,To,hC,vV,sV,cLp,PV,SSi,r3,yz,bL,bZS,HV,iL,HZi,LAj,trN,Yd,avj,EV,Upj,dq,G6i,N$,uiq,YS6,de2,PP,N3N,Rd6,XVv,Fti,ACr,sT,ZZZ,OT,Eij,MJp,De6,WtZ,wVj,Si,pVZ,mer,hdv,QIA,Imp,vd6,sIZ,td,odj,yCi,bgp,edA,aC,xe,Hgj,JCi,GoZ,ZD,amZ,xeZ,uLi,N9,CLp,ET,qVj,XS,Aj,Vt,RG,lO,EdL,YVA,ZgZ,Th,Mip,d$A,NqN,XPL,R4p,IG,FG2,Adr,Bx,lD2,$$i,kbZ,WGL,KK,QCp,Tqj,qTA,IDi,vep,rdZ,sCi,bO,Hx,yd6,cd2,STZ,HJj,tiA,YTr,d9Z,VvZ,dH,$9q,khA,FC,VL,ly,
BQ,k8,IO,O0,jd,m92,J_,QGj,vZZ,fS,LS,jGj,GP,aO,U0,uy,POZ,oZi,rjq,K1r,yjq,Jji,cj2,SAv,z6S,e6p,E0,ZW,HKL,nZi,iKr,L16,fGA,tvL,l6,aGv,$t,BY,kt,TB,gu,uSZ,WY,x9q,dOq,pI,NHN,Rqi,XQ2,hS,FLr,A_Z,Qy,qv,$Oj,vY,THv,DOp,O_,WLZ,g8r,wQZ,pQq,mOZ,hqi,PY,QO2,q06,o2,IWv,v8j,ru,KI,JS,cY,OSS,sOZ,jOL,Sl,o82,r_q,KLj,b6,nI,i6,fI,LI,tS,GB,y_Z,J_i,c_j,S0S,zqS,bSA,eqv,HSN,n8i,iSL,fWZ,U_,LLi,tdq,xt,GPZ,Zq,E_,aWZ,Cyj,xOL,Y0r,E86,Mli,dvp,Fnj,AS2,Vlr,lqZ,$vv,Buq,kBi,WnS,Ny,wYj,pYj,mvq,hnr,Q2L,q_i,vtN,znZ,bIr,enL,nti,iIZ,BT,fqS,
Tt,Uvi,ugZ,C6r,xvr,Y_Z,ZIj,Etq,MMZ,py,NFr,GB6,ROv,XTi,Fiq,Awr,VM2,luv,$yA,BFZ,ktr,g4q,DyL,pTi,Wij,wT2,Q82,qqj,IuN,myZ,Oyj,hOZ,s8Z,yZ,cT,zt,PCi,rwN,Kiq,cwj,tMi,zOS,SqZ,eOZ,n4Z,byj,uti,aur,CCZ,xyN,Yqq,ZyA,E46,dQj,MzL,Nx2,RyL,XUA,Fxv,VzA,$Q2,Bxr,k5j,DQZ,TxZ,jWA,sW6,P_L,Ly,oaZ,Kxr,y8S,J8q,c8A,Ssj,bkL,eyq,HkN,x4,Y4,naq,aLA,MQ,dx,xQS,Zk6,lKZ,pgN,Fx,eMZ,fKp,nTS,iu6,BU,LFp,t9i,aKr,UFi,uIi,Cdq,xF2,YoN,ZuZ,MxA,dVA,R$N,NK2,AAA,h8,IW,lRN,$VZ,BKN,kNq,TKS,DVp,WIZ,pyZ,wyi,Sz,b_,PsZ,nk,yAv,i_,JAS,cAr,fk,z$A,SlZ,
GNi,aRA,uoj,YlS,ZFZ,Mwi,dBi,N2A,XJL,VwZ,lsZ,Ck,T2Z,WDN,wJ2,pJ6,mB6,haS,gYj,ksp,B2q,Ya,$BL,Qc6,IsZ,OEZ,PkN,jcL,MF,rmZ,ymp,Jm2,cm6,SdZ,XI,zaL,ear,bEv,HEq,iEN,VJ,Ck2,YdS,EYv,dUZ,NcZ,R1j,DK,g0,XfA,lxq,hl,TcL,qF,I4,W0v,mUS,QQL,qIS,Ixi,vg,vWv,OAq,jQ6,P7S,oWi,rkq,K0Z,JkN,j9,ckq,SIj,Pg,Ku,e1N,HAZ,nWi,Jl,L0L,t6N,axq,fu,ZAi,EWj,M5p,dZv,NLZ,a4,Cu,xT,ZK,F7p,MV,AQL,V5i,lSL,$ZZ,kiS,TLS,BLj,NV,DZN,phZ,RJ,whr,mZ6,gvS,h9i,Fo,ISi,QRZ,vvL,OaZ,jRj,PvZ,sRr,ovZ,yQv,rQr,cQi,nvi,fSv,t5p,aSZ,Cv2,uyp,UZN,xZq,ZaZ,MF2,EvN,dEi,
RhZ,XmZ,mI,lt6,qV,kaL,BDq,TDv,vy,Ol,DE2,jx,gCL,wmZ,mES,qXA,vCA,Itp,Ul,OHS,pmi,yaq,JaL,caZ,YV,SXS,bHL,ehp,d2,nCS,LyL,ftj,UES,uKL,CM2,xES,ZH6,Rgr,EC2,dwZ,NBi,XlS,AX2,FYN,lI6,VEi,$Y,$wq,kDp,TB2,wlZ,pE,mD,plp,mwZ,hm,II6,vJ,Od,jw,snN,sd,KY2,oc,yXZ,JXA,cXN,Su2,yO,zgi,egv,HLS,iL2,LYi,aIj,ufZ,ik,CXi,xwi,Yui,ZLZ,EPN,MDq,dir,NUr,tm,FN2,A$p,VDZ,lyi,$i2,BUZ,kRA,TUr,Di2,gSS,WNr,w1A,p1p,Zs,r$2,KNZ,Ed,MU,dc,y$q,J$r,c$Z,SN2,zJ6,bbj,eJi,LNN,tDZ,GRN,ayj,UiS,FV,VN,l7,$W,Dx,Wf,wc,Cer,m0,YNj,hk,Zbi,ESq,QN,MpN,drZ,N_i,
kLN,Drj,mrq,I4A,qWr,T_N,v$i,szA,ihN,JT2,a4q,SWi,GLZ,UrS,sI,CYL,oQ,YWN,ZhZ,M2A,dXZ,NfL,XNL,yN,A2Z,V22,l3i,$Xv,Bfi,ku2,TfN,Fl2,WlZ,wNi,pNZ,cf,sjA,PxA,jj2,r22,KlL,J2S,c2r,y26,i3j,Lli,Guj,UXj,tk,EBN,Z3L,Xuq,Ayj,VGi,lcZ,$SN,B4r,k3Z,dL,QTi,IcL,mSp,puq,qHv,DSp,O62,z7r,PuN,oQi,ryN,acN,uZ6,G3N,MC6,tGZ,T4i,EQZ,sT6,SHp,USi,vQN,W3j,gQS,wu2,h7i,L32,pa,WXi,pzi,mxq,hpA,QAr,rtr,zpL,bqr,rL,Hqi,fH6,aHr,Grv,uQi,CIj,ZqA,Yzp,Ejj,NTZ,dNi,na,RuZ,XiL,AIZ,Fdj,iv,TTZ,kxi,BTZ,wii,DNv,pij,WdL,mNZ,La,huS,vFZ,qLS,IMi,jqj,sqr,
oFj,UD,yIZ,rIv,JI6,bON,eui,iOv,Ld2,Yv,ZS,UNi,ucN,ED,ME,CG6,dD,NE,xNZ,R_,YLq,XK,ZOv,EF6,Aa,MkZ,dHq,N5N,Rti,X5i,AoZ,F$2,l$r,kHZ,B5A,T5q,DHZ,VkS,gM2,p5S,w5A,$HZ,mHv,Q0A,kC,qcr,vMA,I$S,OXi,j02,Pa2,s0Z,oMi,Dt,K$q,yoZ,roZ,coj,ScZ,zt2,nMS,L$i,uTL,ZXi,gD,do6,NWi,Wm,Rkj,ha,QG,$oZ,pH,vm,BWq,kfS,Doi,gD2,wCL,moN,hki,Qfv,q$i,OQN,r9A,PBA,vDv,KJ2,y9Z,Pm,oD6,J96,KH,c9Z,S$i,zkr,bQp,iQi,ekZ,nDq,Gfr,abA,Y$N,xoA,Mtv,AuA,Vtp,$bj,kMZ,TzZ,g_i,WSN,waA,mbZ,hXS,Q1S,v_v,P52,o_i,Otp,KSv,Ju2,yuL,rup,cu2,zXi,btA,eXj,Htr,n_q,LH,
ta,UX,CH,LSv,ttS,a7Z,C5Z,xC,YC,xbq,Zt,E_r,MSZ,dnA,Mw,AiZ,BPA,TPr,DnZ,ghj,WvZ,w_Z,hxS,Nw,QXA,vh6,Rn,O5Z,Pbr,oh6,ri6,sXS,zxA,H52,b5Z,nhr,LvZ,G7r,Uni,Y1r,xnq,dI2,kP,Nli,Rvj,TD,X6Z,DI,F2j,AM2,VIq,$IZ,l0i,Blv,ke2,TlL,DIv,QxZ,I0r,Oep,vsq,p6Z,W2S,sxZ,osL,cMv,S8p,iep,L2Z,pL,tIZ,a0S,UIj,CUi,Esj,dcZ,RcL,XXi,Fkq,AY2,kUL,VsN,WkZ,wXZ,mcZ,Qb,Qep,qFp,IjL,v9i,O2Z,je2,sev,o9q,rYZ,jE,yYv,JY6,zcZ,su,SFv,ecq,fji,on,LkN,tsZ,GUv,u7Z,Cmp,ajZ,YFr,d2i,F8r,AWi,eE,V8A,k_L,W8Z,fL,m2p,wvi,pvp,Qt6,IVS,v5p,PJZ,K8S,rWA,o5S,yWZ,
cWq,SKN,iUZ,zwZ,fVZ,G_Z,L8i,YKq,MXA,NYi,X3A,DL6,WEp,w3p,QUj,IBp,Qh,yh,J4Z,y4i,SMA,zVp,eVr,bxA,HxZ,nkZ,J$,h5q,r4i,c4r,KEi,P1,fb,LEZ,tXr,uN6,CVj,xLZ,YM2,Zxq,EkZ,MPS,GR,dGZ,aD,NIq,Rir,XFZ,Fsi,Cb,AV6,$Gv,k9L,TIi,hiZ,qYA,IAi,vnZ,jgi,sgS,Xw,onZ,rVS,Ks6,yVZ,JVS,cVZ,ziN,eiZ,nnv,i7N,UGN,G9S,uMj,YYZ,Z7r,k$,Eni,MOp,dmi,X0Z,AOZ,FQ6,l6N,BJZ,WD,TJ6,tOj,kJp,GJp,a6S,uz2,xmi,C02,Yjj,Um2,ZGj,EcZ,MHj,dsq,N9N,RKS,Xqi,F6i,A6q,$sN,l1i,B96,T9S,kQS,w_,Dsq,wq2,qPp,g3r,I1L,v3L,O9q,juA,c6j,zK6,b9i,H9N,n3i,PD,tHi,u6A,xsi,oz,
M4A,E3Z,dT2,yQ,NmZ,RHL,XnN,AbA,V4p,lYi,$T6,kqZ,TmZ,IYL,mTN,QLL,O4N,vOi,jLq,sL6,oO2,KTp,Jb2,S96,GqZ,uD2,xTZ,Y9A,Z42,EOi,MVi,Nb6,RfN,AKZ,VVi,lpi,$lq,Bbi,knZ,Tbp,Dlr,wAp,hfN,QhS,qnL,GL,az,UW,uY,IpN,Y$,O$p,PWv,KMS,cKZ,b$N,nH2,efL,NQL,RAA,UlN,Z$L,XGr,EHi,M$j,fpL,xlZ,H$i,u5Z,shj,tVZ,JKq,rKZ,FqZ,Asr,V$q,zfL,ap2,$hi,kci,Dh2,wGv,pGv,Vp,jd2,OV2,rsS,Jsq,Sbv,bVp,eAj,iVi,LqN,fd6,adv,unr,d1i,Eyi,xh6,MQS,Ybi,Nhv,ANN,h2,W4r,ThL,pki,m1r,Qk6,qpN,qX,IhA,jki,skS,P$N,o0L,bf2,zmZ,rf,zu,tQL,G1A,e2,ahi,U1p,uBL,C$S,x1r,YpS,
ZfS,E0i,MYZ,dfi,N16,RTi,XcZ,FfN,Ahq,HN,VY2,llZ,$fL,B1i,k4i,T1j,DfA,g2q,WfA,wcN,pcZ,mfA,ix,QmZ,Ilq,OWZ,P12,KfZ,yhL,JhZ,Sfq,bWj,eTi,HWZ,iWA,G4A,Lf2,al2,Ufj,u1Z,YfL,NVv,RUL,Fg6,VE,VqZ,RT,$M6,BVr,lu,kSq,TVi,DMZ,gli,Bu,mML,Qri,jri,ONr,PKi,olS,p6,rzS,Kg2,JzN,SyZ,zUi,eUr,HNj,cz2,nlv,GSS,CKr,xMr,m3,Yyp,ZNr,RCr,ElL,d06,N$S,$06,FzZ,B$2,T$6,g1v,Wz6,wsL,psZ,m0Z,hC2,qt6,Io6,v1A,Odv,jZq,PDp,r1Z,J1j,bdq,n1j,foL,Gjv,jG,aor,U0j,u46,CDZ,x0N,ZdZ,E1q,Mjj,ddA,Nri,RzS,XSi,FPj,AeZ,VjZ,lQi,Bri,$di,DdA,WPN,oT,wSr,hzq,mdS,
K6,IQv,v7r,PR6,KPS,o7i,sli,ce6,Jev,HzL,SCr,z3,bzZ,aQA,fQi,LPj,tjr,GZ2,UdN,CRL,uES,bu,eG,NtZ,YCS,dWZ,M32,Zzp,E7N,F9r,V3q,$Wv,l2q,DW6,TtL,wLr,pLq,hFq,Qwp,mWq,q3j,vgS,I2j,jwq,ogi,aT,rJ6,K9Z,cJj,H8Z,GAA,uu,UWi,Y3N,dqZ,MT2,Z8v,Eg6,EH,AEp,Rjr,XWq,VTN,$qr,lnZ,TAv,DqN,Wjj,wWq,pWZ,mqi,hjZ,q62,InN,kj,O0L,DH,j62,rEA,Kjp,pq,yEi,cEZ,Ljr,IA,ejS,fnq,H0L,nJL,UqL,u2j,anp,CEZ,xqL,ML6,Y6i,dK6,NXi,Oz,XZ2,Fpi,AfA,REL,lN2,VLZ,jC,TXZ,hEA,Qyr,q5v,INA,vmL,Omi,omZ,syZ,Pjr,jy6,KpL,Jf6,cfN,bmi,eEp,nmi,Kq,imZ,fNi,Lpq,GW6,aNj,
UK2,ueN,Cji,Y5j,SC,Em2,NjZ,dkZ,X7A,RSN,FWj,AGi,V7A,zr,$k6,qgS,hSv,Or2,j5p,yGN,JG2,cGZ,Sgi,zSi,brZ,nUS,irr,fPZ,LWi,aPL,UkZ,uj2,CZi,xkZ,Ygq,ZrA,EUA,Mer,dAi,NEZ,X8i,FRp,Aqv,lij,BE6,TEi,w8N,WR2,gLj,DAv,mAA,hQ2,NN,QsA,qU2,Ii6,vLA,ssN,OD2,PHq,jsj,oLN,AI,rqj,KRN,yqv,Jqj,cq2,SUN,zQA,HDi,eQq,bDN,nLL,tej,GG2,kF,aiZ,UAi,ulN,CHi,xAL,YUq,ELi,MuN,d_Z,NMr,Fwr,XRA,BMj,RWZ,DM,k0q,Axr,$_Z,gIi,wRZ,qBL,hW6,Qpr,m_L,pRZ,QX,ICi,OBZ,jpL,spr,PNr,oI2,Iq,vi,cxZ,KwS,rxi,yxi,G0q,Lwj,Jx6,fCS,ZBq,EIS,MoZ,bG,dYZ,NNS,Rb2,Avq,l9p,
BN6,TNN,DYZ,gAp,mYS,p4L,hbq,qxi,tI,OPi,jav,saL,P4Z,UL,uG,KBZ,cvi,nA2,toj,Gwr,a9Z,UYi,uu6,xY6,ZPq,YxZ,EAN,MRZ,Nei,RPL,Xeq,FmA,ADN,VRq,MH,kdr,l8Z,d5,DtN,Te6,gfj,qar,I8q,mt2,per,Q96,hPq,Pl6,ofA,rDj,Kmv,yDZ,JDr,cDS,SaZ,ePp,zPr,bir,HiS,ii2,LmZ,Gdj,UtZ,Clv,EfS,My2,dD6,Nwq,RGr,Ao,FOZ,XKi,VM,AHA,lXZ,$Dv,BwN,kvZ,wKq,pKZ,mDi,hGS,QES,qJi,IXv,D$,OlZ,jEZ,sEj,oKp,PFi,rHL,yHZ,JHZ,cHq,zGj,blj,SJj,LOr,aXN,UDi,uki,CFj,YJ6,xDj,ZlL,Nvv,RlL,XBS,Fe2,VUA,A0q,$aZ,grN,DaZ,wB2,pB2,mar,vrA,OnZ,jBL,sB2,y0i,KeN,r0i,Swi,bni,zlZ,
elq,yM,HnZ,nrN,tUi,Ler,Gp6,aJS,Uai,uar,Ywp,ErL,MWS,dJr,NiA,R_Z,XHS,Fc6,VW2,Ar6,leA,BiZ,$JL,kmq,Tii,DJS,goi,WcZ,pHZ,mJ6,h_2,QYZ,qE2,IeS,voq,jYv,sYr,OoN,LX,rrj,yri,JrS,cri,SES,boi,e_S,tWS,Gmq,xJ6,Zoi,Eop,NRv,RN6,XE6,FuZ,A3q,VKZ,$PZ,BRp,TRZ,gwr,wEZ,QbS,mPi,pEN,hNZ,q76,ORr,Ifr,vwZ,sbZ,r3j,Kuq,y3Z,c3i,S7q,zN6,eNZ,nwZ,bRS,iRj,ffr,Luv,tKZ,G$q,UPj,u0Z,CoL,xPi,ZR2,Y7p,Ew6,MAZ,djZ,Npq,R2S,X2Z,Fo2,Apq,$jj,BpZ,VAA,lZL,Dji,w2i,p2q,oEL,OYq,Pqi,rpZ,sVj,dW,Kor,yp6,cpZ,bYZ,z2Z,e22,HY2,No,X3,iYj,fZ6,Va,lB,LoA,tAN,
udj,YvZ,EEj,MhN,dzL,NdA,Rei,FUq,Anq,Vhr,l_j,$zi,BdZ,kOp,kD,Tdq,Dzv,Db,g6r,WUj,wrA,prr,mz6,heN,wW,pQ,Qii,q2N,mJ,I_S,v6A,Ovq,jir,Piv,o6S,KUN,ze2,S26,cni,bvq,eeN,thZ,ivv,f_2,n6i,LUZ,Qa,uAZ,Ci6,xzZ,Y2A,Zvi,M0v,XO6,N7A,qo,d6Z,$6i,kFS,T76,D62,guN,WbZ,m6S,ho6,qGr,IUS,vuZ,OT6,sMi,Pw2,oui,rPi,yPq,JPZ,cP6,zor,bTS,HTj,nuv,GFN,aUZ,U6N,Cwr,u$Z,YGi,ZTr,EuZ,McN,d8L,NnL,F_r,RRZ,ARZ,$82,gNZ,W_N,wdv,pdS,hRq,rW,ya,KQ,QvL,qkZ,IOS,vNZ,svi,jvZ,oNp,rRL,K_i,JRv,cR6,SkZ,bCp,HCi,iCZ,fOi,L_p,cC,tcL,aOv,U8j,x8q,YkA,SB,zf,MgZ,
ZCS,d4i,Xpi,NCZ,FaZ,HC,Vgp,lz6,k8p,D4L,nQ,WaS,wpv,ppA,m4j,hBA,QS2,qmq,jSj,sSS,rci,Phq,oxi,Kai,yci,zBZ,Jc6,SmZ,bjZ,eBZ,HjL,fzN,La2,tgi,G8i,azN,Zji,YmN,XML,Vnp,uB,laA,r8Z,$7p,BgZ,TgL,gbr,WCv,Iai,vbL,Nb,Oc6,j$2,s$i,PT2,ob2,KCv,JgS,rgr,ygS,zYL,Shr,bcA,eYp,HcZ,nb2,icZ,faL,LCS,tnZ,uFi,Yhp,CTS,ZcZ,Ebi,M_S,Au,d3q,N8j,l5,Xbi,RDq,FrZ,AB6,lTq,$32,kIZ,T8i,D3v,gR6,Wri,m3S,qrS,OwZ,vRS,jKv,sKL,rBZ,nRZ,cBp,fTZ,Lrv,GIN,aTi,u_Z,YrZ,ERA,Zw6,dgS,Na6,R8N,Xwr,F5L,AFj,lwj,kC2,Ta2,DgN,gzZ,pwN,wwA,qQq,Iw2,vz2,Opp,j3Z,s3Z,
ozZ,jt,K5r,rz,JFj,SQZ,z8i,ipZ,L5A,Ugi,C92,xgj,ZpZ,EzL,Mfp,N6S,Xtr,FVr,l5r,B6i,DCi,T6v,kEL,zM,WVZ,gXr,wt6,pti,mCp,hLj,Q7i,qZZ,I5i,O_Z,j7q,s7Z,oXi,yU6,PSi,rU2,JUZ,cU6,SZS,zLj,eLi,H_r,UCZ,upi,CSq,xC2,YZv,MaS,Lt,A52,Va2,lFq,$5Z,BoZ,tu,GM,z5,m5q,Ue,hI2,vqZ,jFZ,O1L,u5,sFZ,PPv,Ghp;_.Mp=function(M,d){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Mp);else{var N=Error().stack;N&&(this.stack=N)}M&&(this.message=String(M));d!==void 0&&(this.cause=d)};
dZ=function(){throw Error("B");};
Mrp=function(M,d){d=String.fromCharCode.apply(null,d);return M==null?d:M+d};
Xj2=function(M){var d=!1;d=d===void 0?!1:d;if(dpq){if(d&&(NZL?!M.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(M)))throw Error("C");M=(RZi||(RZi=new TextEncoder)).encode(M)}else{for(var N=0,R=new Uint8Array(3*M.length),X=0;X<M.length;X++){var A=M.charCodeAt(X);if(A<128)R[N++]=A;else{if(A<2048)R[N++]=A>>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&X<M.length){var l=M.charCodeAt(++X);if(l>=56320&&l<=57343){A=(A-55296)*1024+l-56320+65536;R[N++]=A>>18|
240;R[N++]=A>>12&63|128;R[N++]=A>>6&63|128;R[N++]=A&63|128;continue}else X--}if(d)throw Error("C");A=65533}R[N++]=A>>12|224;R[N++]=A>>6&63|128}R[N++]=A&63|128}}M=N===R.length?R:R.subarray(0,N)}return M};
RN=function(M){_.Np.setTimeout(function(){throw M;},0)};
_.AL=function(M,d){return M.lastIndexOf(d,0)==0};
l2=function(M,d){var N=M.length-d.length;return N>=0&&M.indexOf(d,N)==N};
_.ki=function(M){return/^[\s\xa0]*$/.test(M)};
_.T6=function(M,d){return M.indexOf(d)!=-1};
_.Dv=function(M,d){return _.T6(M.toLowerCase(),d.toLowerCase())};
_.gZ=function(){var M=_.Np.navigator;return M&&(M=M.userAgent)?M:""};
mA=function(M){if(!Wj||!wZ)return!1;for(var d=0;d<wZ.brands.length;d++){var N=wZ.brands[d].brand;if(N&&_.T6(N,M))return!0}return!1};
Qq=function(M){return _.T6(_.gZ(),M)};
qp=function(){return Wj?!!wZ&&wZ.brands.length>0:!1};
IN=function(){return qp()?!1:Qq("Opera")};
FAS=function(){return qp()?!1:Qq("Trident")||Qq("MSIE")};
ALN=function(){return qp()?mA("Microsoft Edge"):Qq("Edg/")};
OS=function(){return Qq("Firefox")||Qq("FxiOS")};
_.rZ=function(){return Qq("Safari")&&!(oN()||(qp()?0:Qq("Coast"))||IN()||(qp()?0:Qq("Edge"))||ALN()||(qp()?mA("Opera"):Qq("OPR"))||OS()||Qq("Silk")||Qq("Android"))};
oN=function(){return qp()?mA("Chromium"):(Qq("Chrome")||Qq("CriOS"))&&!(qp()?0:Qq("Edge"))||Qq("Silk")};
_.VrA=function(){return Qq("Android")&&!(oN()||OS()||IN()||Qq("Silk"))};
lvS=function(M){var d={};M.forEach(function(N){d[N[0]]=N[1]});
return function(N){return d[N.find(function(R){return R in d})]||""}};
$p2=function(M){var d=_.gZ();if(M==="Internet Explorer"){if(FAS())if((M=/rv: *([\d\.]*)/.exec(d))&&M[1])d=M[1];else{M="";var N=/MSIE +([\d\.]+)/.exec(d);if(N&&N[1])if(d=/Trident\/(\d.\d)/.exec(d),N[1]=="7.0")if(d&&d[1])switch(d[1]){case "4.0":M="8.0";break;case "5.0":M="9.0";break;case "6.0":M="10.0";break;case "7.0":M="11.0"}else M="7.0";else M=N[1];d=M}else d="";return d}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");N=[];for(var X;X=R.exec(d);)N.push([X[1],X[2],X[3]||void 0]);
d=lvS(N);switch(M){case "Opera":if(IN())return d(["Version","Opera"]);if(qp()?mA("Opera"):Qq("OPR"))return d(["OPR"]);break;case "Microsoft Edge":if(qp()?0:Qq("Edge"))return d(["Edge"]);if(ALN())return d(["Edg"]);break;case "Chromium":if(oN())return d(["Chrome","CriOS","HeadlessChrome"])}return M==="Firefox"&&OS()||M==="Safari"&&_.rZ()||M==="Android Browser"&&_.VrA()||M==="Silk"&&Qq("Silk")?(d=N[2])&&d[1]||"":""};
_.BZi=function(M){if(qp()&&M!=="Silk"){var d=wZ.brands.find(function(N){return N.brand===M});
if(!d||!d.version)return NaN;d=d.version.split(".")}else{d=$p2(M);if(d==="")return NaN;d=d.split(".")}return d.length===0?NaN:Number(d[0])};
KZ=function(){return Wj?!!wZ&&!!wZ.platform:!1};
_.k6S=function(){return KZ()?wZ.platform==="Android":Qq("Android")};
TZq=function(){return Qq("iPhone")&&!Qq("iPod")&&!Qq("iPad")};
_.yq=function(){return TZq()||Qq("iPad")||Qq("iPod")};
_.Dp6=function(){return KZ()?wZ.platform==="macOS":Qq("Macintosh")};
_.giZ=function(){return KZ()?wZ.platform==="Windows":Qq("Windows")};
_.WA6=function(){return KZ()?wZ.platform==="Chrome OS":Qq("CrOS")};
_.cj=function(M){return M[M.length-1]};
_.Sr=function(M,d,N){d=_.wjZ(M,d,N);return d<0?null:typeof M==="string"?M.charAt(d):M[d]};
_.wjZ=function(M,d,N){for(var R=M.length,X=typeof M==="string"?M.split(""):M,A=0;A<R;A++)if(A in X&&d.call(N,X[A],A,M))return A;return-1};
pjj=function(M){for(var d=_.z6,N=typeof M==="string"?M.split(""):M,R=M.length-1;R>=0;R--)if(R in N&&d.call(void 0,N[R],R,M))return R;return-1};
_.i2=function(M,d){return _.er(M,d)>=0};
_.mpq=function(M,d){_.i2(M,d)||M.push(d)};
_.aN=function(M,d){d=_.er(M,d);var N;(N=d>=0)&&_.G6(M,d);return N};
_.G6=function(M,d){Array.prototype.splice.call(M,d,1)};
_.US=function(M){var d=M.length;if(d>0){for(var N=Array(d),R=0;R<d;R++)N[R]=M[R];return N}return[]};
_.xi=function(M,d){for(var N=1;N<arguments.length;N++){var R=arguments[N];if(_.CZ(R)){var X=M.length||0,A=R.length||0;M.length=X+A;for(var l=0;l<A;l++)M[X+l]=R[l]}else M.push(R)}};
_.QNN=function(M,d,N,R){Array.prototype.splice.apply(M,hZZ(arguments,1))};
hZZ=function(M,d,N){return arguments.length<=2?Array.prototype.slice.call(M,d):Array.prototype.slice.call(M,d,N)};
RI=function(M,d){d=d||M;for(var N=0,R=0,X={};R<M.length;){var A=M[R++],l=_.Me(A)?"o"+_.d3(A):(typeof A).charAt(0)+A;Object.prototype.hasOwnProperty.call(X,l)||(X[l]=!0,d[N++]=A)}d.length=N};
_.qSS=function(M,d,N){N=N||_.XL;for(var R=0,X=M.length,A;R<X;){var l=R+(X-R>>>1);var k=N(d,M[l]);k>0?R=l+1:(X=l,A=!k)}return A?R:-R-1};
_.AC=function(M,d,N){if(!_.CZ(M)||!_.CZ(d)||M.length!=d.length)return!1;var R=M.length;N=N||Ivi;for(var X=0;X<R;X++)if(!N(M[X],d[X]))return!1;return!0};
_.XL=function(M,d){return M>d?1:M<d?-1:0};
Ivi=function(M,d){return M===d};
viZ=function(M,d,N){d=Array.prototype.splice.call(M,d,1);Array.prototype.splice.call(M,N,0,d[0])};
jNq=function(M){return OZq[M]||""};
oi2=function(M){if(!sNj)return _.lL(M);M=P2Z.test(M)?M.replace(P2Z,jNq):M;M=atob(M);for(var d=new Uint8Array(M.length),N=0;N<M.length;N++)d[N]=M.charCodeAt(N);return d};
rLS=function(M,d){M.__closure__error__context__984382||(M.__closure__error__context__984382={});M.__closure__error__context__984382.severity=d};
_.kd=function(M){M=Error(M);rLS(M,"warning");return M};
To=function(M,d){if(M!=null){var N;var R=(N=KAp)!=null?N:KAp={};N=R[M]||0;N>=d||(R[M]=N+1,M=Error(),rLS(M,"incident"),RN(M))}};
hC=function(M,d,N){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(N===void 0?0:N)&&Symbol.for&&M?Symbol.for(M):M!=null?Symbol(M):Symbol():d};
vV=function(M,d){qe||_.II in M||yLv(M,JLS);M[_.II]|=d};
sV=function(M,d){qe||_.II in M||yLv(M,JLS);M[_.II]=d};
cLp=function(M){if(4&M)return 512&M?512:1024&M?1024:0};
PV=function(M){vV(M,34);return M};
SSi=function(M){vV(M,32);return M};
r3=function(){return typeof BigInt==="function"};
yz=function(M,d){return d===void 0?M.copyOnWrite!==Kg&&!!(2&(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.II]|0)):!!(2&d)&&M.copyOnWrite!==Kg};
_.zo=function(M,d){if(M!=null)if(typeof M==="string")M=M?new JC(M,cV):_.SJ();else if(M.constructor!==JC)if(zZq&&M!=null&&M instanceof Uint8Array)M=M.length?new JC(new Uint8Array(M),cV):_.SJ();else{if(!d)throw Error();M=void 0}return M};
bL=function(M,d){if(typeof d!=="number"||d<0||d>=M.length)throw Error();};
bZS=function(M,d,N){d=d&128?0:-1;var R=M.length,X;if(X=!!R)X=M[R-1],X=X!=null&&typeof X==="object"&&X.constructor===Object;for(var A=R+(X?-1:0),l=0;l<A;l++)N(l-d,M[l]);if(X){M=M[R-1];for(var k in M)!isNaN(k)&&N(+k,M[k])}};
HV=function(M){return M&128?eJ:void 0};
iL=function(M){M.isGuard_doNotManuallySetPrettyPlease=!0;return M};
HZi=function(){var M=eZZ;return iL(function(d){for(var N in M)if(d===M[N]&&!/^[0-9]+$/.test(N))return!0;return!1})};
_.Go=function(M){var d=M;if(niZ(d)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(d))throw Error(String(d));}else if(iZ2(d)&&!Number.isSafeInteger(d))throw Error(String(d));return Lg?BigInt(M):M=fvL(M)?M?"1":"0":niZ(M)?M.trim()||"0":String(M)};
LAj=function(M,d){if(M.length>d.length)return!1;if(M.length<d.length||M===d)return!0;for(var N=0;N<M.length;N++){var R=M[N],X=d[N];if(R>X)return!1;if(R<X)return!0}};
trN=function(M){var d=M>>>0;aI=d;Cg=(M-d)/4294967296>>>0};
Yd=function(M){if(M<0){trN(-M);var d=_.V(G6i(aI,Cg));M=d.next().value;d=d.next().value;aI=M>>>0;Cg=d>>>0}else trN(M)};
avj=function(M,d){var N=d*4294967296+(M>>>0);return Number.isSafeInteger(N)?N:_.Zm(M,d)};
EV=function(M,d){var N=d&2147483648;N&&(M=~M+1>>>0,d=~d>>>0,M==0&&(d=d+1>>>0));M=avj(M,d);return typeof M==="number"?N?-M:M:N?"-"+M:M};
_.Zm=function(M,d){d>>>=0;M>>>=0;if(d<=2097151)var N=""+(4294967296*d+M);else r3()?N=""+(BigInt(d)<<BigInt(32)|BigInt(M)):(N=(M>>>24|d<<8)&16777215,d=d>>16&65535,M=(M&16777215)+N*6777216+d*6710656,N+=d*8147497,d*=2,M>=1E7&&(N+=M/1E7>>>0,M%=1E7),N>=1E7&&(d+=N/1E7>>>0,N%=1E7),N=d+Upj(N)+Upj(M));return N};
Upj=function(M){M=String(M);return"0000000".slice(M.length)+M};
_.M$=function(M,d){d&2147483648?r3()?M=""+(BigInt(d|0)<<BigInt(32)|BigInt(M>>>0)):(d=_.V(G6i(M,d)),M=d.next().value,d=d.next().value,M="-"+_.Zm(M,d)):M=_.Zm(M,d);return M};
dq=function(M){if(M.length<16)Yd(Number(M));else if(r3())M=BigInt(M),aI=Number(M&BigInt(4294967295))>>>0,Cg=Number(M>>BigInt(32)&BigInt(4294967295));else{var d=+(M[0]==="-");Cg=aI=0;for(var N=M.length,R=d,X=(N-d)%6+d;X<=N;R=X,X+=6)R=Number(M.slice(R,X)),Cg*=1E6,aI=aI*1E6+R,aI>=4294967296&&(Cg+=Math.trunc(aI/4294967296),Cg>>>=0,aI>>>=0);d&&(d=_.V(G6i(aI,Cg)),M=d.next().value,d=d.next().value,aI=M,Cg=d)}};
G6i=function(M,d){d=~d;M?M=~M+1:d+=1;return[M,d]};
N$=function(M){return Array.prototype.slice.call(M)};
_.RC=function(M,d){throw Error(d===void 0?"unexpected value "+M+"!":d);};
_.Ad=function(M){if(M!=null&&typeof M!=="number")throw Error("I`"+typeof M+"`"+M);return M};
_.lr=function(M){if(M==null||typeof M==="number")return M;if(M==="NaN"||M==="Infinity"||M==="-Infinity")return Number(M)};
uiq=function(M){if(M!=null&&typeof M!=="boolean")throw Error("J`"+_.$e(M)+"`"+M);return M};
_.C2v=function(M){if(M==null||typeof M==="boolean")return M;if(typeof M==="number")return!!M};
_.ke=function(M){switch(typeof M){case "bigint":return!0;case "number":return BP(M);case "string":return xpS.test(M);default:return!1}};
_.Tb=function(M){if(!BP(M))throw _.kd("enum");return M|0};
_.WP=function(M){return M==null?M:BP(M)?M|0:void 0};
YS6=function(M){if(typeof M!=="number")throw _.kd("int32");if(!BP(M))throw _.kd("int32");return M|0};
_.hd=function(M){return M==null?M:YS6(M)};
_.Q9=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return BP(M)?M|0:void 0};
_.vP=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return BP(M)?M>>>0:void 0};
de2=function(M){var d=0;d=d===void 0?0:d;if(!_.ke(M))throw _.kd("int64");var N=typeof M;switch(d){case 512:switch(N){case "string":return OT(M);case "bigint":return String(ji(64,M));default:return ZZZ(M)}case 1024:switch(N){case "string":return Eij(M);case "bigint":return _.Go(ji(64,M));default:return MJp(M)}case 0:switch(N){case "string":return OT(M);case "bigint":return _.Go(ji(64,M));default:return sT(M)}default:return _.RC(d,"Unknown format requested type for int64")}};
PP=function(M){return M==null?M:de2(M)};
N3N=function(M){if(M[0]==="-")return!1;var d=M.length;return d<20?!0:d===20&&Number(M.substring(0,6))<184467};
Rd6=function(M){var d=M.length;return M[0]==="-"?d<20?!0:d===20&&Number(M.substring(0,7))>-922337:d<19?!0:d===19&&Number(M.substring(0,6))<922337};
XVv=function(M){if(M<0){Yd(M);var d=_.Zm(aI,Cg);M=Number(d);return oC(M)?M:d}d=String(M);if(N3N(d))return d;Yd(M);return avj(aI,Cg)};
Fti=function(M){if(Rd6(M))return M;dq(M);return _.M$(aI,Cg)};
ACr=function(M){if(N3N(M))return M;dq(M);return _.Zm(aI,Cg)};
sT=function(M){M=rq(M);oC(M)||(Yd(M),M=EV(aI,Cg));return M};
_.VJp=function(M){M=rq(M);return M>=0&&oC(M)?M:XVv(M)};
ZZZ=function(M){M=rq(M);if(oC(M))M=String(M);else{var d=String(M);Rd6(d)?M=d:(Yd(M),M=_.M$(aI,Cg))}return M};
_.lmr=function(M){M=rq(M);if(M>=0&&oC(M))M=String(M);else{var d=String(M);N3N(d)?M=d:(Yd(M),M=_.Zm(aI,Cg))}return M};
OT=function(M){var d=rq(Number(M));if(oC(d))return String(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return Fti(M)};
Eij=function(M){var d=rq(Number(M));if(oC(d))return _.Go(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return r3()?_.Go(ji(64,BigInt(M))):_.Go(Fti(M))};
MJp=function(M){return oC(M)?_.Go(sT(M)):_.Go(ZZZ(M))};
_.$er=function(M){return oC(M)?_.Go(_.VJp(M)):_.Go(_.lmr(M))};
_.B32=function(M){var d=rq(Number(M));if(oC(d)&&d>=0)return String(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return ACr(M)};
_.koZ=function(M){var d=rq(Number(M));if(oC(d)&&d>=0)return _.Go(d);d=M.indexOf(".");d!==-1&&(M=M.substring(0,d));return r3()?_.Go((0,_.KJ)(64,BigInt(M))):_.Go(ACr(M))};
_.T3i=function(M){if(M==null)return M;if(typeof M==="bigint")return Jd(M)?M=Number(M):(M=ji(64,M),M=Jd(M)?Number(M):String(M)),M;if(_.ke(M))return typeof M==="number"?sT(M):OT(M)};
De6=function(M,d){d=d===void 0?!1:d;var N=typeof M;if(M==null)return M;if(N==="bigint")return String(ji(64,M));if(_.ke(M))return N==="string"?OT(M):d?ZZZ(M):sT(M)};
_.gdZ=function(M){var d=typeof M;if(M==null)return M;if(d==="bigint")return _.Go(ji(64,M));if(_.ke(M))return d==="string"?Eij(M):MJp(M)};
WtZ=function(M){if(M==null)return M;var d=typeof M;if(d==="bigint")return String(ji(64,M));if(_.ke(M)){if(d==="string")return OT(M);if(d==="number")return sT(M)}};
wVj=function(M){if(M==null)return M;var d=typeof M;if(d==="bigint")return String((0,_.KJ)(64,M));if(_.ke(M)){if(d==="string")return _.B32(M);if(d==="number")return _.VJp(M)}};
_.cP=function(M){if(typeof M!=="string")throw Error();return M};
Si=function(M){if(M!=null&&typeof M!=="string")throw Error();return M};
_.zb=function(M){return M==null||typeof M==="string"?M:void 0};
pVZ=function(M,d,N,R){if(M!=null&&M[br]===HP)return M;if(!Array.isArray(M))return N?R&2?((M=d[nJ])||(M=new d,PV(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),M=d[nJ]=M),d=M):d=new d:d=void 0,d;N=M[_.II]|0;R=N|R&32|R&2;R!==N&&sV(M,R);return new d(M)};
mer=function(M,d,N){M=d?YS6(M):_.Q9(M);return M==null?N?0:void 0:M|0};
hdv=function(M){return M};
QIA=function(M){return M};
Imp=function(M,d,N,R,X,A){M=pVZ(M,R,N,A);X&&(M=qVj(M));return M};
vd6=function(M){return[M,this.get(M)]};
sIZ=function(){return Ogi||(Ogi=new ir(PV([]),void 0,void 0,void 0,jIq))};
td=function(M){var d=fJ(LJ);return d?M[d]:void 0};
odj=function(M,d){var N=fJ(LJ),R;qe&&N&&((R=M[N])==null?void 0:R[d])!=null&&To(PLZ,3)};
yCi=function(M,d){var N=N===void 0?!1:N;if(fJ(rCA)&&fJ(LJ)&&void 0===rCA){var R=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=R[LJ];if(!X)return;if(X=X.reviveUnknownFields)try{X(R,d,Kt2);return}catch(A){RN(A)}}N&&(M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(N=fJ(LJ))&&N in M&&(M=M[N])&&delete M[d])};
bgp=function(M,d,N,R){var X=R!==void 0;R=!!R;var A=fJ(LJ),l;!X&&qe&&A&&(l=M[A])&&Gb(l,JCi);A=[];var k=M.length;l=4294967295;var T=!1,W=!!(d&64),w=W?d&128?0:-1:void 0;if(!(d&1)){var p=k&&M[k-1];p!=null&&typeof p==="object"&&p.constructor===Object?(k--,l=k):p=void 0;if(W&&!(d&128)&&!X){T=!0;var m;l=((m=cCA)!=null?m:hdv)(l-w,w,M,p)+w}}d=void 0;for(m=0;m<k;m++){var I=M[m];if(I!=null&&(I=N(I,R))!=null)if(W&&m>=l){var O=m-w,y=void 0;((y=d)!=null?y:d={})[O]=I}else A[m]=I}if(p)for(var c in p)k=p[c],k!=null&&
(k=N(k,R))!=null&&(m=+c,I=void 0,W&&!Number.isNaN(m)&&(I=m+w)<l?A[I]=k:(m=void 0,((m=d)!=null?m:d={})[c]=k));d&&(T?A.push(d):A[l]=d);X&&fJ(LJ)&&(M=td(M))&&M instanceof SVv&&(A[LJ]=zdr(M));return A};
edA=function(M){M[0]=aC(M[0]);M[1]=aC(M[1]);return M};
aC=function(M){switch(typeof M){case "number":return Number.isFinite(M)?M:""+M;case "bigint":return Jd(M)?Number(M):""+M;case "boolean":return M?1:0;case "object":if(Array.isArray(M)){var d=M[_.II]|0;return M.length===0&&d&1?void 0:bgp(M,d,aC)}if(M!=null&&M[br]===HP)return Hgj(M);if(M instanceof JC){d=M.JSC$6699_value_;if(d==null)M="";else if(typeof d==="string")M=d;else{if(sNj){for(var N="",R=0,X=d.length-10240;R<X;)N+=String.fromCharCode.apply(null,d.subarray(R,R+=10240));N+=String.fromCharCode.apply(null,
R?d.subarray(R):d);d=btoa(N)}else d=_.UT(d);M=M.JSC$6699_value_=d}return M}if(M instanceof ir)return M=M.size!==0?Array.from(ur.prototype.entries.call(M),edA):void 0,M;return}return M};
xe=function(M,d){if(d){cCA=d==null||d===hdv||d[ndZ]!==igZ?hdv:d;try{return Hgj(M)}finally{cCA=void 0}}return Hgj(M)};
Hgj=function(M){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bgp(M,M[_.II]|0,aC)};
JCi=function(M,d){d<500||To(fm2,1)};
GoZ=function(M){switch(typeof M){case "boolean":return LtS||(LtS=[0,void 0,!0]);case "number":return M>0?void 0:M===0?tJA||(tJA=[0,void 0]):[-M,void 0];case "string":return[0,M];case "object":return M}};
ZD=function(M,d,N){return M=_.Ye(M,d[0],d[1],N?1:2)};
_.Ye=function(M,d,N,R){R=R===void 0?0:R;if(M==null){var X=32;N?(M=[N],X|=128):M=[];d&&(X=X&-8380417|(d&1023)<<13)}else{if(!Array.isArray(M))throw Error("L");X=M[_.II]|0;2048&X&&!(2&X)&&amZ();if(X&256)throw Error("N");if(X&64)return R!==0||X&2048||sV(M,X|2048),M;if(N&&(X|=128,N!==M[0]))throw Error("O");a:{N=M;X|=64;var A=N.length;if(A){var l=A-1,k=N[l];if(k!=null&&typeof k==="object"&&k.constructor===Object){d=X&128?0:-1;l-=d;if(l>=1024)throw Error("Q");for(var T in k)A=+T,A<l&&(N[A+d]=k[T],delete k[T]);
X=X&-8380417|(l&1023)<<13;break a}}if(d){T=Math.max(d,A-(X&128?0:-1));if(T>1024)throw Error("R");X=X&-8380417|(T&1023)<<13}}}X|=64;R===0&&(X|=2048);sV(M,X);return M};
amZ=function(){To(Ueq,5)};
xeZ=function(M,d){if(typeof M!=="object")return M;if(Array.isArray(M)){var N=M[_.II]|0;return M.length===0&&N&1?void 0:uLi(M,N,d)}if(M!=null&&M[br]===HP)return CLp(M);if(M instanceof ir){d=M.arrayState;if(d&2)return M;if(!M.size)return;N=PV(Array.from(ur.prototype.entries.call(M)));if(M.valueCtor)for(M=0;M<N.length;M++){var R=N[M],X=R[1];X==null||typeof X!=="object"?X=void 0:X!=null&&X[br]===HP?X=CLp(X):Array.isArray(X)?X=uLi(X,X[_.II]|0,!!(d&32)):X=void 0;R[1]=X}return N}if(M instanceof JC)return M};
uLi=function(M,d,N){if(d&2)return M;!N||4096&d||16&d?M=ET(M,d,!1,N&&!(d&16)):(vV(M,34),d&4&&Object.freeze(M));return M};
N9=function(M,d,N){M=new M.constructor(d);N&&(M.copyOnWrite=Kg);M.noLegacyNull=Kg;return M};
CLp=function(M){var d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=d[_.II]|0;return yz(M,N)?M:RG(M,d,N)?N9(M,d):ET(d,N)};
ET=function(M,d,N,R){R!=null||(R=!!(34&d));M=bgp(M,d,xeZ,R);R=32;N&&(R|=2);d=d&8380609|R;sV(M,d);return M};
qVj=function(M){var d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=d[_.II]|0;return yz(M,N)?RG(M,d,N)?N9(M,d,!0):new M.constructor(ET(d,N,!1)):M};
XS=function(M){if(M.copyOnWrite!==Kg)return!1;var d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;d=ET(d,d[_.II]|0);vV(d,2048);M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=d;M.copyOnWrite=void 0;M.noLegacyNull=void 0;return!0};
Aj=function(M){if(!XS(M)&&yz(M,M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.II]|0))throw Error();};
Vt=function(M,d){d===void 0&&(d=M[_.II]|0);d&32&&!(d&4096)&&sV(M,d|4096)};
RG=function(M,d,N){return N&2?!0:N&32&&!(N&4096)?(sV(d,N|2),M.copyOnWrite=Kg,!0):!1};
lO=function(M,d,N,R,X){var A=N+(X?0:-1),l=M.length-1;if(l>=1+(X?0:-1)&&A>=l){var k=M[l];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[N]=R,d}if(A<=l)return M[A]=R,d;if(R!==void 0){var T;l=((T=d)!=null?T:d=M[_.II]|0)>>13&1023||536870912;N>=l?R!=null&&(A={},M[l+(X?0:-1)]=(A[N]=R,A)):M[A]=R}return d};
_.kZ=function(M,d,N,R,X){var A=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=A[_.II]|0;R=yz(M,l)?1:R;X=!!X||R===3;R===2&&XS(M)&&(A=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=A[_.II]|0);M=YVA(A,d);var k=M===$Z?7:M[_.II]|0,T=ZgZ(k,l);var W=4&T?!1:!0;if(W){4&T&&(M=N$(M),k=0,T=Bx(T,l),l=lO(A,l,d,M));for(var w=0,p=0;w<M.length;w++){var m=N(M[w]);m!=null&&(M[p++]=m)}p<w&&(M.length=p);N=(T|4)&-513;T=N&=-1025;T&=-4097}T!==k&&(sV(M,T),2&T&&Object.freeze(M));return M=EdL(M,T,A,
l,d,R,W,X)};
EdL=function(M,d,N,R,X,A,l,k){var T=d;A===1||(A!==4?0:2&d||!(16&d)&&32&R)?Th(d)||(d|=!M.length||l&&!(4096&d)||32&R&&!(4096&d||16&d)?2:256,d!==T&&sV(M,d),Object.freeze(M)):(A===2&&Th(d)&&(M=N$(M),T=0,d=Bx(d,R),R=lO(N,R,X,M)),Th(d)||(k||(d|=16),d!==T&&sV(M,d)));2&d||!(4096&d||16&d)||Vt(N,R);return M};
YVA=function(M,d,N){M=gs(M,d,N);return Array.isArray(M)?M:$Z};
ZgZ=function(M,d){2&d&&(M|=2);return M|1};
Th=function(M){return!!(2&M)&&!!(4&M)||!!(256&M)};
Mip=function(M){return _.zo(M,!0)};
d$A=function(M,d){var N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=N[_.II]|0;a:{var X=R;R=yz(M,R);!R&&XS(M)&&(N=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=N[_.II]|0);var A=gs(N,d);M=!1;if(A==null){if(R){d=sIZ();break a}A=[]}else if(A.constructor===ir)if(A.arrayState&2&&!R)A=Array.from(ur.prototype.entries.call(A));else{d=A;break a}else Array.isArray(A)?M=!!((A[_.II]|0)&2):A=[];if(R){if(!A.length){d=sIZ();break a}M||(M=!0,PV(A))}else if(M){M=!1;R=A;R=N$(R);for(A=0;A<
R.length;A++){var l=R[A]=N$(R[A]);Array.isArray(l[1])&&(l[1]=PV(l[1]))}A=R}!M&&X&32&&SSi(A);R=new ir(A,void 0,mer,mer);X=lO(N,X,d,R);M||Vt(N,X);d=R}return d};
_.ws=function(M,d,N,R){Aj(M);var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.II]|0;if(N==null)return lO(X,A,d),M;var l=N===$Z?7:N[_.II]|0,k=l,T=Th(l),W=T||Object.isFrozen(N);T||(l=0);W||(N=N$(N),k=0,l=Bx(l,A),W=!1);l|=5;var w;T=(w=cLp(l))!=null?w:0;for(w=0;w<N.length;w++){var p=N[w],m=R(p,T);Object.is(p,m)||(W&&(N=N$(N),k=0,l=Bx(l,A),W=!1),N[w]=m)}l!==k&&(W&&(N=N$(N),l=Bx(l,A)),sV(N,l));lO(X,A,d,N);return M};
_.m1=function(M,d,N,R,X){Aj(M);var A=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;lO(A,A[_.II]|0,d,(R==="0"?Number(N)===0:N===R)?void 0:N,X);return M};
_.hj=function(M,d,N){if(d&2)throw Error();var R=HV(d),X=YVA(M,N,R),A=X===$Z?7:X[_.II]|0,l=ZgZ(A,d);if(2&l||Th(l)||16&l)X=N$(X),A=0,l=Bx(l,d),lO(M,d,N,X,R);l&=-13;l!==A&&sV(X,l);return X};
NqN=function(M){if(qe){var d;return(d=M[q9])!=null?d:M[q9]=new Map}if(q9 in M)return M[q9];d=new Map;Object.defineProperty(M,q9,{value:d});return d};
XPL=function(M,d,N,R,X){var A=NqN(M),l=R4p(A,M,d,N,X);l!==R&&(l&&(d=lO(M,d,l,void 0,X)),A.set(N,R));return d};
R4p=function(M,d,N,R,X){var A=M.get(R);if(A!=null)return A;for(var l=A=0;l<R.length;l++){var k=R[l];gs(d,k,X)!=null&&(A!==0&&(N=lO(d,N,A,void 0,X)),A=k)}M.set(R,A);return A};
IG=function(M,d,N,R,X){var A=!1;R=gs(M,R,X,function(l){var k=pVZ(l,N,!1,d);A=k!==l&&k!=null;return k});
if(R!=null)return A&&!yz(R)&&Vt(M,d),R};
FG2=function(M,d,N,R,X,A,l,k){var T=yz(M,N);A=T?1:A;l=!!l||A===3;T=k&&!T;(A===2||T)&&XS(M)&&(d=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=d[_.II]|0);M=YVA(d,X);var W=M===$Z?7:M[_.II]|0,w=ZgZ(W,N);if(k=!(4&w)){var p=M,m=N,I=!!(2&w);I&&(m|=2);for(var O=!I,y=!0,c=0,e=0;c<p.length;c++){var t=pVZ(p[c],R,!1,m);if(t instanceof R){if(!I){var C=yz(t);O&&(O=!C);y&&(y=C)}p[e++]=t}}e<c&&(p.length=e);w|=4;w=y?w&-4097:w|4096;w=O?w|8:w&-9}w!==W&&(sV(M,w),2&w&&Object.freeze(M));if(T&&!(8&w||!M.length&&
(A===1||(A!==4?0:2&w||!(16&w)&&32&N)))){Th(w)&&(M=N$(M),w=Bx(w,N),N=lO(d,N,X,M));R=M;T=w;for(W=0;W<R.length;W++)p=R[W],w=qVj(p),p!==w&&(R[W]=w);T|=8;w=T=R.length?T|4096:T&-4097;sV(M,w)}return M=EdL(M,w,d,N,X,A,k,l)};
Adr=function(M){M==null&&(M=void 0);return M};
Bx=function(M,d){return M=(2&d?M|2:M&-3)&-273};
_.Vi6=function(M,d,N,R,X){Aj(M);d=_.kZ(M,d,X,2,!0);var A;X=(A=cLp(d===$Z?7:d[_.II]|0))!=null?A:0;d.push(N(R,X));return M};
lD2=function(M,d,N,R,X,A,l){Aj(M);var k=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=FG2(M,k,k[_.II]|0,N,d,2,!0);if(A&&l)X!=null||(X=M.length-1),bL(M,X),M.splice(X,A),M.length||(M[_.II]&=-4097);else{if(A){if(typeof X!=="number"||X<0||X>M.length)throw Error();}else R=R!=null?R:new N;X!=void 0?M.splice(X,A,R):M.push(R);X=N=M===$Z?7:M[_.II]|0;(R=yz(R))?(N&=-9,M.length===1&&(N&=-4097)):N|=4096;N!==X&&sV(M,N);R||Vt(k)}};
$$i=function(M,d){if(typeof M==="string")return new OA(oi2(M),d);if(Array.isArray(M))return new OA(new Uint8Array(M),d);if(M.constructor===Uint8Array)return new OA(M,!1);if(M.constructor===ArrayBuffer)return M=new Uint8Array(M),new OA(M,!1);if(M.constructor===JC)return d=jv(M)||new Uint8Array(0),new OA(d,!0,M);if(M instanceof Uint8Array)return M=M.constructor===Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new OA(M,!1);throw Error();};
_.sA=function(){var M=function(){throw Error();};
Object.setPrototypeOf(M,M.prototype);return M};
kbZ=function(M,d){var N=N===void 0?BqZ:N;return new oG(M,d,N)};
WGL=function(M,d,N,R,X){d=Tqj(d,R);d!=null&&(N=_.D$Z(M,N),X(d,M),_.gei(M,N))};
KK=function(M,d,N,R){var X=R[M];if(X)return X;X={};X.binaryFields=R;X.messageMetadata=GoZ(R[0]);var A=R[1],l=1;A&&A.constructor===Object&&(X.extensions=A,A=R[++l],typeof A==="function"&&(X.isMessageSet=!0,wPv!=null||(wPv=A),pPq!=null||(pPq=R[l+1]),A=R[l+=2]));for(var k={};A&&Array.isArray(A)&&A.length&&typeof A[0]==="number"&&A[0]>0;){for(var T=0;T<A.length;T++)k[A[T]]=A;A=R[++l]}for(T=1;A!==void 0;){typeof A==="number"&&(T+=A,A=R[++l]);var W=void 0;if(A instanceof oG)var w=A;else w=m$A,l--;A=void 0;
if((A=w)==null?0:A.$$isMsg){A=R[++l];W=R;var p=l;typeof A==="function"&&(A=A(),W[p]=A);W=A}A=R[++l];p=T+1;typeof A==="number"&&A<0&&(p-=A,A=R[++l]);for(;T<p;T++){var m=k[T];W?N(X,T,w,W,m):d(X,T,w,m)}}return R[M]=X};
QCp=function(M){return Array.isArray(M)?M[0]instanceof oG?M:[h4q,M]:[M,void 0]};
Tqj=function(M,d){if(M instanceof _.Jj)return M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(M))return ZD(M,d,!1)};
qTA=function(M,d,N,R){var X=N.$$binaryReaderFn;M[d]=R?function(A,l,k){return X(A,l,k,R)}:X};
IDi=function(M,d,N,R,X){var A=N.$$binaryReaderFn,l,k;M[d]=function(T,W,w){return A(T,W,w,k||(k=KK(Sv,qTA,IDi,R).messageMetadata),l||(l=vep(R)),X)}};
vep=function(M){var d=M[OJi];if(d!=null)return d;var N=KK(Sv,qTA,IDi,M);d=N.isMessageSet?function(R,X){return wPv(R,X,N)}:function(R,X){for(;jCi(X)&&X.nextWireType_!=4;){var A=X.nextField_,l=N[A];
if(l==null){var k=N.extensions;k&&(k=k[A])&&(k=sCi(k),k!=null&&(l=N[A]=k))}if(l==null||!l(X,R,A)){k=X;l=k.fieldCursor_;zh(k);if(k.discardUnknownFields)var T=void 0;else{var W=k.decoder_.cursor_-l;k.decoder_.cursor_=l;T=PrL(k.decoder_,W)}W=k=l=void 0;var w=R;T&&((l=(k=(W=w[LJ])!=null?W:w[LJ]=new SVv)[A])!=null?l:k[A]=[]).push(T)}}if(R=td(R))R.reviveUnknownFields=N.binaryFields[oeZ];return!0};
M[OJi]=d;M[oeZ]=rdZ.bind(M);return d};
rdZ=function(M,d,N,R){var X=this[Sv],A=this[OJi],l=ZD(void 0,X.messageMetadata,!1),k=td(M);if(k){var T=!1,W=X.extensions;if(W){X=function(O,y,c){if(c.length!==0)if(W[y])for(O=_.V(c),y=O.next();!y.done;y=O.next()){y=KGZ(y.value);try{T=!0,A(l,y)}finally{y.free()}}else R==null||R(M,y,c)};
if(d==null)Gb(k,X);else if(k!=null){var w=k[d];w&&X(k,d,w)}if(T){var p=M[_.II]|0;if(p&2&&p&2048&&(N==null||!N.reviveIntoImmutable))throw Error();var m=HV(p),I=function(O,y){if(gs(M,O,m)!=null)switch(N==null?void 0:N.resolutionBehavior){case 1:return;default:throw Error();}y!=null&&(p=lO(M,p,O,y,m));delete k[O]};
d==null?bZS(l,l[_.II]|0,function(O,y){I(O,y)}):I(d,gs(l,d,m))}}}};
sCi=function(M){M=QCp(M);var d=M[0].$$binaryReaderFn;if(M=M[1]){var N=vep(M),R=KK(Sv,qTA,IDi,M).messageMetadata;return function(X,A,l){return d(X,A,l,R,N)}}return d};
bO=function(M,d,N){M[d]=N.$$binaryWriterFn};
Hx=function(M,d,N,R){var X,A,l=N.$$binaryWriterFn;M[d]=function(k,T,W){return l(k,T,W,A||(A=KK(ev,bO,Hx,R).messageMetadata),X||(X=yd6(R)))}};
yd6=function(M){var d=M[Jd6];if(!d){var N=KK(ev,bO,Hx,M);d=function(R,X){return cd2(R,X,N)};
M[Jd6]=d}return d};
cd2=function(M,d,N){bZS(M,M[_.II]|0,function(X,A){if(A!=null){var l=STZ(N,X);if(l)l(d,A,X);else{A=fJ(LJ);var k;qe&&A&&((k=M[A])==null?void 0:k[X])!=null&&To(z4S,3)}}});
var R=td(M);R&&Gb(R,function(X,A,l){nK(d,d.encoder_.end());for(X=0;X<l.length;X++)nK(d,jv(l[X])||new Uint8Array(0))})};
STZ=function(M,d){var N=M[d];if(N)return N;if(N=M.extensions)if(N=N[d]){N=QCp(N);var R=N[0].$$binaryWriterFn;if(N=N[1]){var X=yd6(N),A=KK(ev,bO,Hx,N).messageMetadata;N=M.isMessageSet?pPq(A,X):function(l,k,T){return R(l,k,T,A,X)}}else N=R;
return M[d]=N}};
_.bJq=function(M,d,N){if(Array.isArray(d)){var R=d[_.II]|0;if(R&4)return d;for(var X=0,A=0;X<d.length;X++){var l=M(d[X]);l!=null&&(d[A++]=l)}A<X&&(d.length=A);N&&(sV(d,(R|5)&-1537),R&2&&Object.freeze(d));return d}};
_.iO=function(M,d,N){return new oG(M,d,N)};
_.e4S=function(M,d,N){return new oG(M,d,N)};
_.fK=function(M,d,N){lO(M,M[_.II]|0,d,N,HV(M[_.II]|0))};
HJj=function(M,d,N){d=_.lr(d);d!=null&&(_.LK(M,N,1),M=M.encoder_,N=tj||(tj=new DataView(new ArrayBuffer(8))),N.setFloat64(0,+d,!0),aI=N.getUint32(0,!0),Cg=N.getUint32(4,!0),_.aG(M,aI),_.aG(M,Cg))};
_.UA=function(M,d,N){d=WtZ(d);if(d!=null){switch(typeof d){case "string":neA(d)}if(d!=null)switch(_.LK(M,N,0),typeof d){case "number":M=M.encoder_;Yd(d);iJN(M,aI,Cg);break;case "bigint":N=BigInt.asUintN(64,d);N=new fDS(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)));iJN(M.encoder_,N.JSC$6756_lo,N.JSC$6756_hi);break;default:N=neA(d),iJN(M.encoder_,N.JSC$6756_lo,N.JSC$6756_hi)}}};
tiA=function(M,d,N){d=_.Q9(d);d!=null&&d!=null&&(_.LK(M,N,0),_.LGv(M.encoder_,d))};
_.aDr=function(M,d,N){GbL(M,N,wVj(d))};
_.U$r=function(M,d,N){d=_.C2v(d);d!=null&&(_.LK(M,N,0),M.encoder_.JSC$6758_buffer_.push(d?1:0))};
_.x$j=function(M,d,N){d=_.zb(d);d!=null&&uY2(M,N,Xj2(d))};
YTr=function(M,d,N,R,X){d=Tqj(d,R);d!=null&&(N=_.D$Z(M,N),X(d,M),_.gei(M,N))};
_.ZJp=function(M,d,N){d=d==null||typeof d=="string"||d instanceof JC?d:void 0;d!=null&&uY2(M,N,$$i(d,!0).buffer)};
_.EeL=function(M,d,N){d=_.Q9(d);d!=null&&(d=parseInt(d,10),_.LK(M,N,0),_.LGv(M.encoder_,d))};
_.uO=function(M,d){return function(N,R){var X={treatNewDataAsImmutable:!0};R&&Object.assign(X,R);N=KGZ(N,void 0,void 0,X);try{var A=new M,l=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vep(d)(l,N);var k=A}finally{N.free()}return k}};
_.CK=function(M){return function(d){return MvA(d,M)}};
d9Z=function(M){return function(){return MvA(this,M)}};
_.Ns6=function(M){return iL(function(d){return d instanceof M&&!yz(d)})};
_.xZ=function(M){return function(d){return R62(M,d)}};
VvZ=function(M,d){return XxZ({child:M,origin:d||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:F1S,getPayloadCase:function(N){return N.getPayloadCase()},
createInitMessage:function(N){var R=new YZ,X=new AjZ;N=_.ZG(X,1,N);return _.EA(R,5,MO,N)}})};
dH=function(M){return{valueOf:M}.valueOf()};
$9q=function(){var M=null;if(!lGS)return M;try{var d=function(N){return N};
M=lGS.createPolicy("goog#html",{createHTML:d,createScript:d,createScriptURL:d})}catch(N){}return M};
khA=function(){BsZ===void 0&&(BsZ=$9q());return BsZ};
_.RO=function(M){var d=khA();M=d?d.createScriptURL(M):M;return new NO(M)};
_.XC=function(M){if(M instanceof NO)return M.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
FC=function(M){return M.toString().indexOf("`")===-1};
VL=function(M){return new _.A_(TsZ,M)};
ly=function(M){return M instanceof _.A_};
_.$8=function(M){if(ly(M))return M.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
BQ=function(M){return new D9S(function(d){return d.substr(0,M.length+1).toLowerCase()===M+":"})};
k8=function(M,d){d=d===void 0?gZZ:d;if(ly(M))return M;for(var N=0;N<d.length;++N){var R=d[N];if(R instanceof D9S&&R.isValid(M))return VL(M)}};
_.gH=function(M,d){d=d===void 0?gZZ:d;return k8(M,d)||DW};
_.WQ=function(M){var d=window;if(typeof MediaSource!=="undefined"&&M instanceof MediaSource||typeof d.ManagedMediaSource!=="undefined"&&M instanceof d.ManagedMediaSource)return VL(URL.createObjectURL(M));d=M.type;d.toLowerCase()==="application/octet-stream"?d=!0:(d=d.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),d=(d==null?void 0:d.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(d[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(d[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(d[1])||/^font\/[\w-]+$/i.test(d[1])));if(!d)throw Error("da");return VL(URL.createObjectURL(M))};
_.pS=function(M){for(var d=_.wH.apply(1,arguments),N=[M[0]],R=0;R<d.length;R++)N.push(String(d[R])),N.push(M[R+1]);return VL(N.join(""))};
_.wxj=function(M){if(!W1L){a:{var d=document.createElement("a");try{d.href=M}catch(N){M=void 0;break a}M=d.protocol;M=M===":"||M===""?"https:":M}return M}try{d=new URL(M)}catch(N){return"https:"}return d.protocol};
_.QL=function(M){M instanceof _.A_?M=_.$8(M):M=pxp.test(M)?M:void 0;return M};
IO=function(M,d){d=_.QL(d);d!==void 0&&(M.href=d)};
O0=function(M){var d=khA();M=d?d.createHTML(M):M;return new vQ(M)};
jd=function(M){if(M instanceof vQ)return M.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.s0=function(M,d){M.src=_.XC(d).toString()};
m92=function(M,d){M.setAttribute("sandbox","");for(var N=0;N<d.length;N++)M.sandbox.supports&&!M.sandbox.supports(d[N])||M.sandbox.add(d[N])};
_.h62=function(M,d,N){M.removeAttribute("srcdoc");switch(d){case 0:if(N instanceof NO)throw new PQ("TrustedResourceUrl",0);m92(M,[]);d=_.QL(N);d!==void 0&&(M.src=d);break;case 1:if(!(N instanceof NO))throw new PQ(typeof N,1);m92(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.s0(M,N);break;case 2:if(N instanceof NO)throw new PQ("TrustedResourceUrl",2);m92(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
d=_.QL(N);d!==void 0&&(M.src=d);break;default:_.RC(d)}};
_.oO=function(M,d,N,R){d=_.QL(d);return d!==void 0?M.open(d,N,R):null};
_.rH=function(M){M=M===void 0?document:M;var d,N;M=(N=(d=M).querySelector)==null?void 0:N.call(d,"script[nonce]");return M==null?"":M.nonce||M.getAttribute("nonce")||""};
_.yL=function(M){var d=khA();M=d?d.createScript(M):M;return new _.KS(M)};
J_=function(M){if(M instanceof _.KS)return M.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
QGj=function(M){var d=_.rH(M.ownerDocument);d&&M.setAttribute("nonce",d)};
_.cQ=function(M,d){M.textContent=J_(d);QGj(M)};
_.Sd=function(M,d){M.src=_.XC(d);QGj(M)};
_.zP=function(M,d){if(M.nodeType===1&&/^(script|style)$/i.test(M.tagName))throw Error("da");M.innerHTML=jd(d)};
_.by=function(M,d,N,R){if(M.length===0)throw Error("da");M=M.map(function(A){if(A instanceof qAZ)A=A.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return A});
var X=N.toLowerCase();if(M.every(function(A){return X.indexOf(A)!==0}))throw Error("ea`"+N);
d.setAttribute(N,R)};
_.ed=function(M,d,N){if(d instanceof NO)M.href=_.XC(d).toString(),M.rel=N;else{if(IGS.indexOf(N)===-1)throw Error("fa`"+N);d=_.QL(d);d!==void 0&&(M.href=d,M.rel=N)}};
vZZ=function(M){return"function"==typeof _.HQ&&M instanceof _.HQ};
_.OKZ=function(M){if(vZZ(M))return M.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.nS=function(M,d){d=_.QL(d);d!==void 0&&(M.href=d)};
fS=function(M,d){M&&(d=M.indexOf(d),0<=d&&M.splice(d,1))};
LS=function(M){return typeof M==="function"};
jGj=function(M){return M instanceof t_||M&&"closed"in M&&LS(M.remove)&&LS(M.add)&&LS(M.unsubscribe)};
GP=function(){};
aO=function(M){sGL(function(){throw M;})};
U0=function(M){return M};
uy=function(){return POZ(_.wH.apply(0,arguments))};
POZ=function(M){return M.length===0?U0:M.length===1?M[0]:function(d){return M.reduce(function(N,R){return R(N)},d)}};
oZi=function(M){var d;return(d=M!=null?M:void 0)!=null?d:Promise};
rjq=function(M,d){return new CS(function(N){var R=0;return d.schedule(function(){R===M.length?N.complete():(N.next(M[R++]),N.closed||this.schedule())})})};
K1r=function(M,d){if(!M)throw Error("ga");return new CS(function(N){var R=new t_;R.add(d.schedule(function(){var X=M[Symbol.asyncIterator]();R.add(d.schedule(function(){var A=this;X.next().then(function(l){l.done?N.complete():(N.next(l.value),A.schedule())})}))}));
return R})};
yjq=function(M,d,N){d=d.schedule(function(){try{N.call(this)}catch(R){M.error(R)}},0);
M.add(d)};
Jji=function(M,d){return new CS(function(N){var R;N.add(d.schedule(function(){R=M[x8]();yjq(N,d,function(){var X=R.next(),A=X.value;X.done?N.complete():(N.next(A),this.schedule())})}));
return function(){var X;return LS((X=R)==null?void 0:X.return)&&R.return()}})};
cj2=function(M,d){return new CS(function(N){var R=new t_;R.add(d.schedule(function(){var X=M[Y8]();R.add(X.subscribe({next:function(A){R.add(d.schedule(function(){return N.next(A)}))},
error:function(A){R.add(d.schedule(function(){return N.error(A)}))},
complete:function(){R.add(d.schedule(function(){return N.complete()}))}}))}));
return R})};
SAv=function(M,d){return new CS(function(N){return d.schedule(function(){return M.then(function(R){N.add(d.schedule(function(){N.next(R);N.add(d.schedule(function(){return N.complete()}))}))},function(R){N.add(d.schedule(function(){return N.error(R)}))})})})};
z6S=function(M){return new TypeError("ha`"+(M!==null&&typeof M==="object"?"an invalid object":"'"+M+"'"))};
e6p=function(M,d){if(M!=null){if(LS(M[Y8]))return cj2(M,d);if(bKj(M))return rjq(M,d);if(LS(M==null?void 0:M.then))return SAv(M,d);if(Symbol.asyncIterator&&LS(M==null?void 0:M[Symbol.asyncIterator]))return K1r(M,d);if(LS(M==null?void 0:M[x8]))return Jji(M,d)}throw z6S(M);};
E0=function(M,d){return d?e6p(M,d):ZW(M)};
ZW=function(M){if(M instanceof CS)return M;if(M!=null){if(LS(M[Y8]))return HKL(M);if(bKj(M))return nZi(M);if(LS(M==null?void 0:M.then))return iKr(M);if(Symbol.asyncIterator&&LS(M==null?void 0:M[Symbol.asyncIterator]))return fGA(M);if(LS(M==null?void 0:M[x8]))return L16(M)}throw z6S(M);};
HKL=function(M){return new CS(function(d){var N=M[Y8]();if(LS(N.subscribe))return N.subscribe(d);throw new TypeError("ia");})};
nZi=function(M){return new CS(function(d){for(var N=0;N<M.length&&!d.closed;N++)d.next(M[N]);d.complete()})};
iKr=function(M){return new CS(function(d){M.then(function(N){d.closed||(d.next(N),d.complete())},function(N){return d.error(N)}).then(null,aO)})};
L16=function(M){return new CS(function(d){for(var N=M[x8]();!d.closed;){var R=N.next(),X=R.value;R.done?d.complete():d.next(X)}return function(){return LS(N==null?void 0:N.return)&&N.return()}})};
fGA=function(M){return new CS(function(d){tvL(M,d).catch(function(N){return d.error(N)})})};
tvL=function(M,d){var N,R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:_.Mv(T,2,3);var W=M[Symbol.asyncIterator];A=W!==void 0?W.call(M):new Ghp(_.V(M));case 5:return _.D(T,A.next(),8);case 8:R=T.yieldResult;if(R.done){T.jumpTo(3);break}l=R.value;d.next(l);T.jumpTo(5);break;case 3:_.du(T);_.Nv(T,9);if(!R||R.done||!(X=A.return)){T.jumpTo(9);break}return _.D(T,X.call(A),9);case 9:_.du(T,0,0,1);if(N)throw N.error;_.Xg(T,10,1);break;case 10:_.Xg(T,4);break;case 2:k=_.Fg(T);N={error:k};T.jumpTo(3);
break;case 4:d.complete(),_.Vy(T)}})};
l6=function(M,d){return d?rjq(M,d):nZi(M)};
aGv=function(M){return LS(M[M.length-1])?M.pop():void 0};
$t=function(M){var d=M[M.length-1];return d&&LS(d.schedule)?M.pop():void 0};
BY=function(){var M=_.wH.apply(0,arguments),d=$t(M);return d?rjq(M,d):l6(M)};
kt=function(M){var d=LS(M)?M:function(){return M};
return new CS(function(N){return N.error(d())})};
TB=function(M){return function(d){if(LS(d==null?void 0:d.lift))return d.lift(function(N){try{return M(N,this)}catch(R){this.error(R)}});
throw new TypeError("ja");}};
gu=function(){return TB(function(M,d){var N=null;M._refCount++;var R=new Dq(d,void 0,void 0,void 0,function(){if(!M||M._refCount<=0||0<--M._refCount)N=null;else{var X=M._connection,A=N;N=null;!X||A&&X!==A||X.unsubscribe();d.unsubscribe()}});
M.subscribe(R);R.closed||(N=M.connect())})};
uSZ=function(){var M=U9A;var d=d===void 0?0:d;return TB(function(N,R){R.add(M.schedule(function(){return N.subscribe(R)},d))})};
WY=function(M){return TB(function(d,N){var R=0;d.subscribe(new Dq(N,function(X){N.next(M.call(void 0,X,R++))}))})};
x9q=function(M){return WY(function(d){return COq(d)?M.apply(null,_.wu(d)):M(d)})};
dOq=function(M){if(M.length===1){var d=M[0];if(YAv(d))return{args:d,keys:null};if(d&&typeof d==="object"&&ZKj(d)===EZq)return M=Mdq(d),{args:M.map(function(N){return d[N]}),
keys:M}}return{args:M,keys:null}};
pI=function(){var M=_.wH.apply(0,arguments),d=$t(M),N=aGv(M);M=dOq(M);var R=M.args,X=M.keys;if(R.length===0)return E0([],d);d=new CS(NHN(R,d,X?function(A){for(var l={},k=0;k<A.length;k++)l[X[k]]=A[k];return l}:U0));
return N?d.pipe(x9q(N)):d};
NHN=function(M,d,N){N=N===void 0?U0:N;return function(R){Rqi(d,function(){for(var X=M.length,A=Array(X),l=X,k=M.map(function(){return!1}),T=!0,W={i$jscomp$260:0};W.i$jscomp$260<X;W={i$jscomp$260:W.i$jscomp$260},W.i$jscomp$260++)Rqi(d,function(w){return function(){E0(M[w.i$jscomp$260],d).subscribe(new mn(R,function(p){A[w.i$jscomp$260]=p;
T&&(k[w.i$jscomp$260]=!0,T=!k.every(U0));T||R.next(N(A.slice()))},function(){return--l===0}))}}(W),R)},R)}};
Rqi=function(M,d,N){M?N.add(M.schedule(d)):d()};
XQ2=function(M,d,N,R){var X=[],A=0,l=0,k=!1,T=function(W){A++;ZW(N(W,l++)).subscribe(new Dq(d,function(w){d.next(w)},void 0,function(){A--;
for(var w={};X.length&&A<R;w={bufferedValue:void 0})w.bufferedValue=X.shift(),T(w.bufferedValue);!k||X.length||A||d.complete()}))};
M.subscribe(new Dq(d,function(W){return A<R?T(W):X.push(W)},void 0,function(){k=!0;
!k||X.length||A||d.complete()}));
return function(){X=null}};
hS=function(M,d){var N=N===void 0?Infinity:N;if(LS(d))return hS(function(R,X){return WY(function(A,l){return d(R,A,X,l)})(ZW(M(R,X)))},N);
typeof d==="number"&&(N=d);return TB(function(R,X){return XQ2(R,X,M,N)})};
FLr=function(M){M=M===void 0?Infinity:M;return hS(U0,M)};
A_Z=function(){var M=_.wH.apply(0,arguments);return FLr(1)(l6(M,$t(M)))};
Qy=function(M){return new CS(function(d){ZW(M()).subscribe(d)})};
qv=function(M,d,N){if(LS(N)){var R=N;N=void 0}if(R)return qv(M,d,N).pipe(x9q(R));R=_.V(LS(M.addEventListener)&&LS(M.removeEventListener)?VdZ.map(function(l){return function(k){return M[l](d,k,N)}}):LS(M.addListener)&&LS(M.removeListener)?lWZ.map($Oj(M,d)):LS(M.on)&&LS(M.off)?BHi.map($Oj(M,d)):[]);
var X=R.next().value,A=R.next().value;return!X&&bKj(M)?hS(function(l){return qv(l,d,N)})(l6(M)):new CS(function(l){if(!X)throw new TypeError("ka");
var k=function(){var T=_.wH.apply(0,arguments);return l.next(1<T.length?T:T[0])};
X(k);return function(){return A(k)}})};
$Oj=function(M,d){return function(N){return function(R){return M[N](d,R)}}};
vY=function(){var M=_.wH.apply(0,arguments),d=$t(M);var N=typeof M[M.length-1]==="number"?M.pop():Infinity;return M.length?M.length===1?ZW(M[0]):FLr(N)(l6(M,d)):I2};
THv=function(M){return M.length===1&&kPZ(M[0])?M[0]:M};
DOp=function(){var M=THv(_.wH.apply(0,arguments));return TB(function(d,N){var R=[d].concat(_.wu(M)),X=function(){if(!N.closed)if(R.length>0){try{var A=ZW(R.shift())}catch(k){X();return}var l=new Dq(N,void 0,GP,GP);N.add(A.subscribe(l));l.add(X)}else N.complete()};
X()})};
O_=function(M){return TB(function(d,N){var R=0;d.subscribe(new Dq(N,function(X){return M.call(void 0,X,R++)&&N.next(X)}))})};
WLZ=function(){var M=_.wH.apply(0,arguments);M=THv(M);return M.length===1?ZW(M[0]):new CS(g8r(M))};
g8r=function(M){return function(d){for(var N=[],R={i$jscomp$263:0};N&&!d.closed&&R.i$jscomp$263<M.length;R={i$jscomp$263:R.i$jscomp$263},R.i$jscomp$263++)N.push(ZW(M[R.i$jscomp$263]).subscribe(new Dq(d,function(X){return function(A){if(N){for(var l=0;l<N.length;l++)l!==X.i$jscomp$263&&N[l].unsubscribe();N=null}d.next(A)}}(R))))}};
wQZ=function(){var M=_.wH.apply(0,arguments),d=aGv(M),N=THv(M);return N.length?new CS(function(R){var X=N.map(function(){return[]}),A=N.map(function(){return!1});
R.add(function(){X=A=null});
for(var l={sourceIndex$jscomp$1:0};!R.closed&&l.sourceIndex$jscomp$1<N.length;l={sourceIndex$jscomp$1:l.sourceIndex$jscomp$1},l.sourceIndex$jscomp$1++)ZW(N[l.sourceIndex$jscomp$1]).subscribe(new Dq(R,function(k){return function(T){X[k.sourceIndex$jscomp$1].push(T);X.every(function(W){return W.length})&&(T=X.map(function(W){return W.shift()}),R.next(d?d.apply(null,_.wu(T)):T),X.some(function(W,w){return!W.length&&A[w]})&&R.complete())}}(l),void 0,function(k){return function(){A[k.sourceIndex$jscomp$1]=
!0;
!X[k.sourceIndex$jscomp$1].length&&R.complete()}}(l)));
return function(){X=A=null}}):I2};
pQq=function(M){var d,N,R;return!!M&&typeof M.active==="boolean"&&typeof((d=M.clock)==null?void 0:d.now)==="function"&&((N=M.clock)==null?void 0:N.timeline)!==void 0&&!((R=M.lastMeasurement)==null||!R.timestamp)&&typeof M.equivalentTo==="function"&&typeof M.extrapolateToNow==="function"&&typeof M.extrapolateToTime==="function"&&typeof M.map==="function"&&typeof M.joinWith==="function"};
mOZ=function(M){function d(N){return typeof N==="boolean"||typeof N==="string"||typeof N==="number"||N===void 0||N===null}
return d(M)?!0:Array.isArray(M)?M.every(d):typeof M==="object"?Object.keys(M).every(function(N){return typeof N==="string"})&&Object.values(M).every(function(N){return Array.isArray(N)?N.every(d):d(N)}):!1};
hqi=function(M){if(mOZ(M))return M;if(pQq(M))return{lastMeasurement:{value:hqi(M.lastMeasurement.value),timestamp:jl(M.lastMeasurement.timestamp,new s_(0,M.lastMeasurement.timestamp.timeline))},active:M.active};try{return JSON.parse(JSON.stringify(M))}catch(d){}return String(M)};
PY=function(M,d){return function(N){return new CS(function(R){return N.subscribe(function(X){M.timeExecution(d,function(){R.next(X)})()},function(X){M.timeExecution(d,function(){R.error(X)})()},function(){M.timeExecution(d,function(){R.complete()})()})})}};
QO2=function(M,d){var N=!1;return new CS(function(R){var X=M.setTimeout(function(){N=!0;R.next(!0);R.complete()},d);
return function(){N||M.clearTimeout(X)}})};
q06=function(M){M=M.global;if(M.fetchLater)return M.fetchLater.bind(M)};
o2=function(M){return TB(function(d,N){var R=null,X=!1,A;R=d.subscribe(new Dq(N,void 0,function(l){A=ZW(M(l,o2(M)(d)));R?(R.unsubscribe(),R=null,A.subscribe(N)):X=!0}));
X&&(R.unsubscribe(),R=null,A.subscribe(N))})};
IWv=function(M,d,N){return function(R,X){var A=N,l=d,k=0;R.subscribe(new Dq(X,function(T){var W=k++;l=A?M(l,T,W):(A=!0,T);X.next(l)},void 0,void 0))}};
v8j=function(M){M=M===void 0?null:M;return TB(function(d,N){var R=!1;d.subscribe(new Dq(N,function(X){R=!0;N.next(X)},void 0,function(){R||N.next(M);
N.complete()}))})};
ru=function(){return TB(function(M,d){M.subscribe(new Dq(d,GP))})};
KI=function(M){return TB(function(d,N){d.subscribe(new Dq(N,function(){return N.next(M)}))})};
JS=function(M){return M<=0?function(){return I2}:TB(function(d,N){var R=0;
d.subscribe(new Dq(N,function(X){++R<=M&&(N.next(X),M<=R&&N.complete())}))})};
cY=function(M){var d=d===void 0?U0:d;var N;M=(N=M)!=null?N:OSS;return TB(function(R,X){var A,l=!0;R.subscribe(new Dq(X,function(k){var T=d(k);if(l||!M(A,T))l=!1,A=T,X.next(k)}))})};
OSS=function(M,d){return M===d};
sOZ=function(M){M=M===void 0?jOL:M;return TB(function(d,N){var R=!1;d.subscribe(new Dq(N,function(X){R=!0;N.next(X)},void 0,function(){return R?N.complete():N.error(M())}))})};
jOL=function(){return new PyN};
Sl=function(){var M=_.wH.apply(0,arguments);return function(d){return A_Z(d,BY.apply(null,_.wu(M)))}};
o82=function(M){return TB(function(d,N){var R=0;d.subscribe(new Dq(N,function(X){M.call(void 0,X,R++,d)||(N.next(!1),N.complete())},void 0,function(){N.next(!0);
N.complete()}))})};
r_q=function(){return TB(function(M,d){var N=[];M.subscribe(new Dq(d,function(R){N.push(R);1<N.length&&N.shift()},void 0,function(){for(var R=_.V(N),X=R.next();!X.done;X=R.next())d.next(X.value);
d.complete()},function(){N=null}))})};
KLj=function(M,d){var N=arguments.length>=2;return function(R){return R.pipe(M?O_(function(X,A){return M(X,A,R)}):U0,r_q(),N?v8j(d):sOZ(function(){return new PyN}))}};
b6=function(M){var d=LS(M)?M:function(){return M};
return LS()?TB(function(N,R){var X=d();(void 0)(X).subscribe(R).add(N.subscribe(X))}):function(N){var R=new zB(N,d);
LS(N==null?void 0:N.lift)&&(R.lift=N.lift);R.source=N;R.subjectFactory=d;return R}};
nI=function(M){var d=new el(M,void 0,void 0);return function(N){return b6(function(){return d})(N)}};
i6=function(M,d){return TB(IWv(M,d,arguments.length>=2))};
fI=function(){var M=_.wH.apply(0,arguments),d=$t(M);return TB(function(N,R){(d?A_Z(M,N,d):A_Z(M,N)).subscribe(R)})};
LI=function(M){return TB(function(d,N){var R=null,X=0,A=!1;d.subscribe(new Dq(N,function(l){var k;(k=R)==null||k.unsubscribe();k=X++;ZW(M(l,k)).subscribe(R=new Dq(N,function(T){return N.next(T)},void 0,function(){R=null;
A&&!R&&N.complete()}))},void 0,function(){(A=!0,!R)&&N.complete()}))})};
tS=function(M,d){d=d===void 0?!1:d;return TB(function(N,R){var X=0;N.subscribe(new Dq(R,function(A){var l=M(A,X++);(l||d)&&R.next(A);!l&&R.complete()}))})};
GB=function(M,d,N){var R=LS(M)||d||N?{next:M,error:d,complete:N}:M;return R?TB(function(X,A){X.subscribe(new Dq(A,function(l){var k;(k=R.next)==null||k.call(R,l);A.next(l)},function(l){var k;
(k=R.error)==null||k.call(R,l);A.error(l)},function(){var l;
(l=R.complete)==null||l.call(R);A.complete()}))}):U0};
y_Z=function(){var M=_.wH.apply(0,arguments),d=aGv(M);return TB(function(N,R){for(var X=M.length,A=Array(X),l=M.map(function(){return!1}),k=!1,T={i$jscomp$273:0};T.i$jscomp$273<X;T={i$jscomp$273:T.i$jscomp$273},T.i$jscomp$273++)ZW(M[T.i$jscomp$273]).subscribe(new Dq(R,function(W){return function(w){A[W.i$jscomp$273]=w;
k||l[W.i$jscomp$273]||(l[W.i$jscomp$273]=!0,(k=l.every(U0))&&(l=null))}}(T),void 0,GP));
N.subscribe(new Dq(R,function(W){k&&(W=[W].concat(_.wu(A)),R.next(d?d.apply(null,_.wu(W)):W))}))})};
J_i=function(M){var d=[],N=0,R;for(R in M)d[N++]=R;return d};
c_j=function(M,d){for(var N in M)if(M[N]==d)return!0;return!1};
S0S=function(M,d,N){for(var R in M)if(d.call(N,M[R],R,M))return R};
zqS=function(M){if(!M||typeof M!=="object")return M;if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);if(M instanceof Date)return new Date(M.getTime());var d=Array.isArray(M)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(M)||M instanceof DataView?{}:new M.constructor(M.length),N;for(N in M)d[N]=zqS(M[N]);return d};
bSA=function(M){var d=arguments.length;if(d==1&&Array.isArray(arguments[0]))return bSA.apply(null,arguments[0]);if(d%2)throw Error("oa");for(var N={},R=0;R<d;R+=2)N[arguments[R]]=arguments[R+1];return N};
eqv=function(M){var d=arguments.length;if(d==1&&Array.isArray(arguments[0]))return eqv.apply(null,arguments[0]);for(var N={},R=0;R<d;R++)N[arguments[R]]=!0;return N};
_.a2=function(M){return new qAZ(M[0].toLowerCase())};
HSN=function(M){try{return new URL(M,window.document.baseURI)}catch(d){return new URL("about:invalid")}};
n8i=function(M,d){var N=d.createRange();N.selectNode(d.body);M=O0(M);return N.createContextualFragment(jd(M))};
iSL=function(M){M=M.nodeName;return typeof M==="string"?M:"FORM"};
fWZ=function(M){M=M.nodeType;return M===1||typeof M!=="number"};
U_=function(M,d,N){M.setAttribute(d,N)};
LLi=function(M){return M.parts.map(function(d){var N=d.descriptor;return""+d.url+(N?" "+N:"")}).join(" , ")};
_.u6=function(M){var d=_.wH.apply(1,arguments);if(d.length===0)return _.RO(M[0]);for(var N=M[0],R=0;R<d.length;R++)N+=encodeURIComponent(d[R])+M[R+1];return _.RO(N)};
_.CI=function(M,d){M=_.XC(M).toString();var N=M.split(/[?#]/),R=/[?]/.test(M)?"?"+N[1]:"";return tdq(N[0],R,/[#]/.test(M)?"#"+(R?N[2]:N[1]):"",d)};
tdq=function(M,d,N,R){function X(l,k){l!=null&&(Array.isArray(l)?l.forEach(function(T){return X(T,k)}):(d+=A+encodeURIComponent(k)+"="+encodeURIComponent(l),A="&"))}
var A=d.length?"&":"?";R.constructor===Object&&(R=Object.entries(R));Array.isArray(R)?R.forEach(function(l){return X(l[1],l[0])}):R.forEach(X);
return _.RO(M+d+N)};
xt=function(M,d,N,R){this.top=M;this.right=d;this.bottom=N;this.left=R};
GPZ=function(M){M=M.global;if(M.PendingGetBeacon)return M.PendingGetBeacon};
Zq=function(M){return function(d){return d.pipe(aWZ(M,b6(new Yt)))}};
E_=function(M){return function(d){return d.pipe(aWZ(M,nI(1)))}};
aWZ=function(M,d){function N(R){return new CS(function(X){return R.subscribe(function(A){My(M,function(){return void X.next(A)},3)},function(A){My(M,function(){return void X.error(A)},3)},function(){My(M,function(){return void X.complete()},3)})})}
return uy(N,uSZ(),d,gu(),N)};
Cyj=function(M){var d=UOL(M);return d===null?new dF(null):d.pipe(WY(function(N){N=N.serialize();if(uCA)N=_.Np.btoa(N);else{for(var R=[],X=0,A=0;A<N.length;A++){var l=N.charCodeAt(A);l>255&&(R[X++]=l&255,l>>=8);R[X++]=l}N=_.UT(R)}return N}),JS(1),E_(M.queue))};
xOL=function(M){var d=d===void 0?{}:d;if(typeof Event==="function")return new Event(M,d);if(typeof document!=="undefined"){var N=document.createEvent("CustomEvent");N.initCustomEvent(M,d.bubbles||!1,d.cancelable||!1,d.detail);return N}throw Error();};
Y0r=function(M){return typeof M==="string"?document.getElementById(M):M};
E86=function(M){var d=!1;d=d===void 0?!1:d;if(M.tagName==="IMG"){if(M.complete&&(!M.naturalWidth||!M.naturalHeight))return!0;var N;if(d&&((N=M.style)==null?void 0:N.display)==="none")return!0}var R,X;return ZS6.test((R=M.getAttribute("width"))!=null?R:"")&&ZS6.test((X=M.getAttribute("height"))!=null?X:"")};
Mli=function(M,d){if(M.tagName==="IMG")return M.naturalWidth&&M.naturalHeight?!0:!1;try{if(M.readyState)var N=M.readyState;else{var R,X;N=(R=M.contentWindow)==null?void 0:(X=R.document)==null?void 0:X.readyState}return N==="complete"}catch(A){return d===void 0?!1:d}};
dvp=function(M){M||(M=function(d,N,R){d.addEventListener(N,R)});
return M};
Fnj=function(M,d){var N=NuN();N=N===void 0?new RnL:N;if(M=Y0r(M)){var R=dvp(R);for(var X=!1,A=function(c){X||(X=!0,d(c))},l,k=2,T=0;T<XYi.length;++T)if(XYi[T]===M.tagName){k=3;
l=[M];break}l||(l=M.querySelectorAll(XYi.join(",")));var W=0,w=0,p=!0,m=M=!1;T={};for(var I=0;I<l.length;T={isImg:void 0},I++){var O=l[I];if(!E86(O))if(T.isImg=O.tagName==="IMG",Mli(O,N.crossDomainLoadedDefault))M=!0,T.isImg&&(p=!0);else{W++;var y=function(c){return function(e){W--;!W&&p&&A(k);c.isImg&&(e=e&&e.type==="error",w--,e||(p=!0),!w&&m&&p&&A(k))}}(T);
R(O,"load",y);T.isImg&&(w++,R(O,"error",y))}}w===0&&(p=!0);l=null;l=_.Np.document.readyState==="complete";if(W===0&&!M&&l)k=5;else if(W||!M){R(_.Np,"load",function(){!N.pendingImagesBlockLoad||!w&&p?A(4):m=!0});
return}A(k)}};
AS2=function(M,d,N){if(M)for(var R=0;M!=null&&R<500&&!N(M);++R)M=d(M)};
Vlr=function(M,d){AS2(M,function(N){try{return N===N.parent?null:N.parent}catch(R){}return null},d)};
lqZ=function(M,d){if(M.tagName=="IFRAME")d(M);else{M=M.querySelectorAll("IFRAME");for(var N=0;N<M.length&&!d(M[N]);++N);}};
$vv=function(M){return(M=M.ownerDocument)&&(M.parentWindow||M.defaultView)||null};
Buq=function(M,d,N){try{var R=JSON.parse(N.data)}catch(l){}if(typeof R==="object"&&R&&R.type==="creativeLoad"){var X=$vv(M);if(N.source&&X){var A;Vlr(N.source,function(l){try{if(l.parent===X)return A=l,!0}catch(k){}});
A&&lqZ(M,function(l){if(l.contentWindow===A)return d(R),!0})}}};
kBi=function(M){return typeof M==="string"?document.getElementById(M):M};
WnS=function(){var M={};return M[0]=_.u6(Tuv,"current"),M[1]=_.u6(DvL),M[2]=_.u6(gtq),M};
Ny=function(M,d){return M.left===d.left&&M.top===d.top&&M.width===d.width&&M.height===d.height};
wYj=function(M,d){return{left:Math.max(M.left,d.left),top:Math.max(M.top,d.top),width:Math.max(0,Math.min(M.left+M.width,d.left+d.width)-Math.max(M.left,d.left)),height:Math.max(0,Math.min(M.top+M.height,d.top+d.height)-Math.max(M.top,d.top))}};
pYj=function(M,d){return{left:Math.round(M.left+d.x),top:Math.round(M.top+d.y),width:M.width,height:M.height}};
mvq=function(M,d,N){if(M&&d!==null&&d!=d.top){if(!d.top)return new _.R8(-12245933,-12245933);d=d.top}try{return(N===void 0?0:N)?(new _.R8(d.innerWidth,d.innerHeight)).round():_.Xt(d).round()}catch(R){return new _.R8(-12245933,-12245933)}};
hnr=function(M,d,N){try{if(M){if(!d.top)return new xt(-12245933,-12245933,-12245933,-12245933);d=d.top}var R=mvq(M,d,N),X=R.height,A=R.width;if(A===-12245933)return new xt(A,A,A,A);var l=Ft(Aw(d.document)),k=l.x,T=l.y;return new xt(T,k+A,T+X,k)}catch(W){return new xt(-12245933,-12245933,-12245933,-12245933)}};
Q2L=function(M){var d;return(d=M.google_tag_data)!=null?d:M.google_tag_data={}};
q_i=function(M){var d,N;return typeof((d=M.navigator)==null?void 0:(N=d.userAgentData)==null?void 0:N.getHighEntropyValues)==="function"};
vtN=function(M){if(!q_i(M))return null;var d=Q2L(M);if(d.uach_promise)return d.uach_promise;M=M.navigator.userAgentData.getHighEntropyValues(Iqq).then(function(N){d.uach!=null||(d.uach=N);return N});
return d.uach_promise=M};
znZ=function(M){var d;return OIq(j2j(s2S(P6A(otZ(rSi(KnZ(ySi(JSZ(new cSi,M.architecture||""),M.bitness||""),M.mobile||!1),M.model||""),M.platform||""),M.platformVersion||""),M.uaFullVersion||""),((d=M.fullVersionList)==null?void 0:d.map(function(N){var R=new S_j;R=_.VZ(R,1,N.brand);return _.VZ(R,2,N.version)}))||[]),M.wow64||!1)};
bIr=function(M){var d,N;return(N=(d=vtN(M))==null?void 0:d.then(function(R){return znZ(R)}))!=null?N:null};
enL=function(M,d){return new CS(function(N){var R=!1,X=Array(d.length);X.fill(void 0);var A=new Set,l=new Set,k=function(p,m){M.running?(X[m]=p,A.add(m),R||(R=!0,My(M,function(){R=!1;N.next(_.US(X))},1))):N.error(new lC(m))},T=function(p,m){l.add(m);
A.add(m);My(M,function(){N.error(p)},1)},W=function(p){l.add(p);
My(M,function(){l.size===d.length&&N.complete()},1)},w=d.map(function(p,m){return p.subscribe(function(I){return void k(I,m)},function(I){return void T(I,m)},function(){return void W(m)})});
return function(){w.forEach(function(p){return void p.unsubscribe()})}})};
nti=function(M,d,N){function R(){if(d.debugChannel){var c=d.debugChannel,e=c.next;var t={creativeId:d.debugNames.getName(N),requiredSignals:X,signals:Object.assign({},A),hasPrematurelyCompleted:l,errorMessage:k,erroredSignalKey:T};t={specMajor:2,specMinor:0,specPatch:0,timestamp:jl(d.timeProvider.now(),new s_(0,d.timeProvider.timeline)),instanceId:d.debugNames.getName(d.symbol),creativeState:t};e.call(c,t)}}
for(var X=Object.keys(M),A={},l=!1,k=null,T=null,W={},w=new Set,p=[],m=[],I=_.V(X),O=I.next(),y={};!O.done;y={key$jscomp$374:void 0},O=I.next())y.key$jscomp$374=O.value,O=M[y.key$jscomp$374],O instanceof dF?(W[y.key$jscomp$374]=O.value,w.add(y.key$jscomp$374),d.debugChannel&&(A[String(y.key$jscomp$374)]=hqi(O.value))):(O=O.pipe(cY(function(c,e){return pQq(c)||pQq(e)?!1:c===e}),WY(function(c){return function(e){d.debugChannel&&(A[String(c.key$jscomp$374)]=hqi(e),R());
var t={};return t[c.key$jscomp$374]=e,t}}(y)),o2(function(c){return function(e){if(e instanceof lC)throw new HIA(String(c.key$jscomp$374));
throw e;}}(y)),GB(function(c){return function(){w.add(c.key$jscomp$374)}}(y),function(c){return function(e){T=String(c.key$jscomp$374);
k=String(e);R()}}(y),function(c){return function(){w.has(c.key$jscomp$374)||(l=!0,R())}}(y))),m.push(y.key$jscomp$374),p.push(O));
(M=Object.keys(A).length>0)&&R();I=enL(d.queue,p).pipe(o2(function(c){if(c instanceof lC)throw new $4(String(m[c.inputObservableIndex]));throw c;}),WY(function(c){return Object.freeze(Object.assign.apply(Object,[{},
W].concat(_.wu(c))))}));
return(p=p.length>0)&&M?vY(BY(Object.freeze(W)),I):p?I:BY(Object.freeze(W))};
iIZ=function(M,d,N,R,X){return M.performanceMonitor.timeExecution.bind(M.performanceMonitor)(733,function(){var A={};try{return d.pipe(o2(function(l){R(Object.assign({},A,{error:l}));return I2}),hS(function(l){try{var k=N(M,l)}catch(W){return R(Object.assign({},A,{error:W instanceof Error?W:String(W)})),I2}var T={};
return nti(k,M,l.symbol).pipe(GB(function(W){T=W}),nI(1),gu()).pipe(X,o2(function(W){R(Object.assign({},T,{error:W}));
return I2}),Sl(void 0),WY(function(){return!0}))})).pipe(i6(function(l){return l+1},0),o2(function(l){R(Object.assign({},A,{error:l}));
return I2}))}catch(l){return R(Object.assign({},A,{error:l})),I2}})()};
BT=function(M){var d=new Map;if(typeof M!=="object"||M===null)return d;Object.values(M).forEach(function(N){N&&typeof N.extrapolateToNow==="function"&&(d.has(N.clock.timeline)||d.set(N.clock.timeline,N.clock.now()))});
return d};
fqS=function(M,d){return typeof M==="string"?encodeURIComponent(M):typeof M==="number"?String(M):Array.isArray(M)?M.map(function(N){return fqS(N,d)}).join(","):M instanceof s_?M.toString():M&&typeof M.extrapolateToNow==="function"?fqS(M.extrapolateUsingTimestampMap(d).value,d):M===!0?"1":M===!1?"0":M===void 0||M===null?null:M instanceof Lnp?tlv(M):[M.top,
M.left,M.top+M.height,M.left+M.width].join()};
Tt=function(M,d){M=Object.entries(M).map(function(N){var R=_.V(N);N=R.next().value;R=R.next().value;R=fqS(R,d);return R===null?"":N+"="+R}).filter(function(N){return N!==""});
return M.length?M.join("&"):""};
Uvi=function(M,d){var N=GB6,R=aqi;d=d===void 0?.01:d;return function(X){d>0&&Math.random()<=d&&(M.global.HTMLFencedFrameElement&&M.global.fence&&typeof M.global.fence.reportEvent==="function"&&M.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),X=Object.assign({},X,{errorMessage:X.error instanceof Error&&X.error.message?X.error.message:String(X.error),errorStack:X.error instanceof Error&&X.error.stack?String(X.error.stack):null,errorName:X.error instanceof
Error&&X.error.name?String(X.error.name):null,errorContext:String(M.performanceMonitor.timedFunctionContext),errorEscapedQueryId:X.escapedQueryId}),N(Object.assign({},X,{payloadMapper:function(){return function(A){try{return R(Object.assign({},A))}catch(l){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),BT(X)).forEach(function(A){M.beaconFactory.makeBeacon(A).sendNow()}))}};
ugZ=function(){var M=_.wH.apply(0,arguments);return function(d){var N=d.pipe(nI(1),gu());d=M.map(function(R){return N.pipe(R,Sl(!0))});
return pI(d).pipe(JS(1),ru())}};
C6r=function(){var M=_.wH.apply(0,arguments);return function(d){var N=d.pipe(nI(1),gu());d=M.map(function(R){return N.pipe(R,Sl(!0))});
return vY.apply(null,_.wu(d)).pipe(JS(1),ru())}};
xvr=function(M,d){return function(N){var R=N.pipe(nI(1),gu());N=R.pipe(M,Sl(!0));R=R.pipe(uy(d,nI(),gu()),Sl(!0));N=pI([N,R]);return WLZ(N,R).pipe(JS(1),ru())}};
Y_Z=function(M,d,N){N(!0)};
ZIj=function(M,d){return uy(LI(function(N){var R=M(N),X=d(N),A={};return R&&X&&A?new CS(function(l){X(R,A,function(k){l.next(Object.assign({},N,{canEmit:k}));l.complete()});
return function(){}}):Du}),O_(function(N){return N.canEmit}))};
Etq=function(M){var d={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(N){return N.pipe(LI(function(R){return new CS(function(X){function A(){k.disconnect();T.unsubscribe()}
var l=M.MutationObserver;if(l&&R.ref!==void 0){var k=new l(function(W){X.next(W)});
k.observe(R.ref,d);var T=R.JSC$7248_released.subscribe(A);return A}})}))}};
MMZ=function(M){if(M.measurementDeferralState===3)return null;if(M.timeOnScreenReason!==void 0){var d=M.creativeFound===!1?"n":null;if(d!==null)return d}return M.geometricMeasurementErrors instanceof gF?"msf":M.contextValidationErrors instanceof WT?"c":M.contextVisibilityKnown===!1?"pv":M.geometricMeasurementErrors||M.contextValidationErrors?"x":null};
py=function(M,d){return M.replace(dyp,function(N,R){try{var X=_.wF.get(d,R);if(X==null||X.toString()==null)return N;X=X.toString();if(X==""||!_.ki(X==null?"":String(X)))return encodeURIComponent(X).replace(/%2C/g,",")}catch(A){}return N})};
NFr=function(M,d){var N=Object.assign({},M),R=M.userAgentClientHints;N=(delete N.userAgentClientHints,N);N=M.payloadMapper(N);var X=Tt(N,d);return _.mi(M.urlPrefixes,function(A){var l="";typeof R==="string"&&(l="&"+Tt({uach:R},d));var k={};return py(A,(k.VIEWABILITY=X,k))+l})};
GB6=function(M,d){var N=M.payloadMapper(M),R=Tt(N,d);return R?_.mi(M.urlPrefixes,function(X){X=X.indexOf("?")>=0?X:X+"?";X="?&".indexOf(X.slice(-1))>=0?X:X+"&";return X+R}):M.urlPrefixes};
ROv=function(){return uy(O_(function(M){return M!==void 0}),WY(function(M){return M}))};
XTi=function(M){return uy(WY(function(){return!0}),fI(!1),E_(M))};
Fiq=function(M){return M.length<=0?I2:pI(M.map(function(d){var N=0;return d.pipe(WY(function(R){return{index:N++,value:R}}))})).pipe(O_(function(d){return d.every(function(N){return N.index===d[0].index})}),WY(function(d){return d.map(function(N){return N.value})}))};
Awr=function(M,d){M.currentState&&(M.previousState=M.currentState);M.currentState=d;M.previousState&&M.previousState.value?(d=Math.max(0,jl(d.timestamp,M.previousState.timestamp)),M.totalTime+=d,M.consecutiveTime+=d):M.consecutiveTime=0;return M};
VM2=function(){return uy(i6(Awr,{totalTime:0,consecutiveTime:0}),WY(function(M){return M.totalTime}))};
luv=function(){return uy(i6(Awr,{totalTime:0,consecutiveTime:0}),WY(function(M){return M.consecutiveTime}))};
$yA=function(M,d){return function(N){return Fiq(d.map(function(R){return N.pipe(M(R))}))}};
BFZ=function(){var M;return uy(GB(function(d){return void(M=d.timestamp)}),luv(),WY(function(d){return{timestamp:M,
value:Math.round(d)}}))};
ktr=function(M,d){return Ny(M.topWindowViewportExternalGeometry,d.topWindowViewportExternalGeometry)&&Ny(M.elementGeometry,d.elementGeometry)&&Ny(M.exposedViewportLocalGeometry,d.exposedViewportLocalGeometry)&&Ny(M.intersectionGeometry,d.intersectionGeometry)&&M.elementGeometrySourceName===d.elementGeometrySourceName&&M.measurementRequests===d.measurementRequests&&M.viewportGeometrySourceName===d.viewportGeometrySourceName&&M.viewportLocalAppOffset.x===d.viewportLocalAppOffset.x&&M.viewportLocalAppOffset.y===
d.viewportLocalAppOffset.y};
g4q=function(M,d){return function(N){return function(R){var X=R.pipe(b6(new Yt),gu());R=N.element.pipe(cY());X=X.pipe(WY(function(A){return A.value}));
return pI([R,X,d]).pipe(WY(function(A){var l=_.V(A);A=l.next().value;var k=l.next().value;l=l.next().value;if(A.ref===void 0)var T={top:0,left:0,width:0,height:0};else{T=A.ref.getBoundingClientRect();var W=A.ref,w=M.global,p=new _.hw(0,0),m=QZ(_.qy(W));if(I8(m,"parent")){do{if(m==w)var I=_.vT(W);else I=TFZ(W),I=new _.hw(I.left,I.top);p.x+=I.x;p.y+=I.y}while(m&&m!=w&&m!=m.parent&&(W=m.frameElement)&&(m=m.parent))}T={top:p.y,left:p.x,width:T.width,height:T.height}}T=pYj(T,k.viewportLocalAppOffset);
w=wYj(T,k.exposedViewportLocalGeometry);p=M.timeProvider.now();m=Object;W=m.assign;if(l!==2||M.inCrossDomainIframe||w.width<=0||w.height<=0)var O=!1;else try{var y=M.document.elementFromPoint(w.left+w.width/2,w.top+w.height/2);O=y?!DyL(y,A):!1}catch(c){O=!1}return{timestamp:p,value:W.call(m,{},k,{elementGeometrySourceName:"geo",intersectionGeometry:O?Oq.intersectionGeometry:w,elementGeometry:T})}}),Zq(M.queue))}}};
DyL=function(M,d,N){N=N===void 0?0:N;return M.ref===void 0||d.ref===void 0?!1:M.ref===d.ref||_.jM(d.ref,function(R){return R===M.ref})?!0:d.ref.ownerDocument&&d.ref.ownerDocument.defaultView&&d.ref.ownerDocument.defaultView===d.ref.ownerDocument.defaultView.top?!1:N<10&&d.ref.ownerDocument&&d.ref.ownerDocument.defaultView&&d.ref.ownerDocument.defaultView.frameElement?DyL(M,new sq(d.ref.ownerDocument.defaultView.frameElement),N+1):!0};
pTi=function(M){return function(d){return d.pipe(M.ResizeObserver?Wij(M):wT2(M),nI(1),gu())}};
Wij=function(M){return function(d){return d.pipe(LI(function(N){var R=M.ResizeObserver;if(!R||N.ref===void 0)return BY(Oq.elementGeometry);var X=(new CS(function(A){function l(){N.ref!==void 0&&k.unobserve(N.ref);k.disconnect();T.unsubscribe()}
if(N.ref===void 0)return A.complete(),function(){};
var k=new R(function(W){W.forEach(function(w){A.next(w)})});
k.observe(N.ref);var T=N.JSC$7248_released.subscribe(l);return l})).pipe(PY(M.performanceMonitor,736),WY(function(A){return A.contentRect}));
return vY(BY(N.ref.getBoundingClientRect()),X)}),cY(Ny))}};
wT2=function(M){return function(d){var N=d.pipe(Etq(M)),R=M.onResize;N=vY(d.pipe(WY(function(){return xOL("resize")})),N,R);
return pI(d,N).pipe(PY(M.performanceMonitor,737),WY(function(X){X=_.V(X).next().value;return X.ref===void 0?void 0:X.ref.getBoundingClientRect()}),ROv(),cY(Ny))}};
Q82=function(M,d){var N=myZ(M,d).pipe(nI(1),gu());return function(R){return function(X){X=X.pipe(LI(function(A){return A.element}),cY());
return pI([N,X]).pipe(LI(function(A){var l=_.V(A);A=l.next().value;l=l.next().value;return hOZ(M,A.intersectionObserver,pTi(M),A.observations,R,A.flushRecords,l)}),Zq(M.queue))}}};
qqj=function(M){return WY(function(d){return d.value.viewportGeometrySourceName!=="nio"?d:Object.assign({},d,{value:Object.assign({},d.value,{exposedViewportLocalGeometry:PT(M,!0),topWindowViewportExternalGeometry:PT(M,!0)})})})};
IuN=function(M,d){return BY(d).pipe(M,WY(function(){return d}))};
myZ=function(M,d){return M.timeProvider.timeline!==v42?kt(new gF(2)):M.MutationObserver?typeof IntersectionObserver==="undefined"?kt(new gF(0)):(new CS(function(N){var R=new Yt,X=new o8(R.next.bind(R),{threshold:[].concat(_.wu(d))});N.next({observations:R.pipe(PY(M.performanceMonitor,735)),intersectionObserver:X,flushRecords:function(A){A=X.takeRecords(A);A.length>0&&R.next(A)}})})).pipe(JS(1),nI(1),gu()):kt(new gF(1))};
Oyj=function(M){return e6p(M.sort(function(d,N){return d.time-N.time}),U9A)};
hOZ=function(M,d,N,R,X,A,l){return new CS(function(k){function T(){O||(O=!0,l.ref!==void 0&&d.unobserve(X,l.ref),w.unsubscribe(),I.unsubscribe(),m.unsubscribe(),y.unsubscribe())}
if(l.ref!==void 0){j8i(d,X);d.observe(X,l.ref);var W=new rF({timestamp:M.timeProvider.now(),value:Object.assign({},Oq,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),w=R.pipe(hS(function(c){return Oyj(c)}),O_(function(c){return c.target===l.ref}),WY(function(c){return{timestamp:new s_(c.time,v42),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:c.rootBounds||Ky,topWindowViewportExternalGeometry:c.rootBounds||PT(M,!0),measurementRequests:p,elementGeometrySourceName:"nio",intersectionGeometry:c.intersectionRect,elementGeometry:c.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:c.isIntersecting,isV2Visible:c.isVisible}}}),b6(W),gu()).subscribe(k),p=new Yt,m=p.subscribe(function(){A(X);
k.next({timestamp:M.timeProvider.now(),value:W.value.value});l.ref!==void 0&&(d.unobserve(X,l.ref),d.observe(X,l.ref))}),I=IuN(N,l).subscribe(function(){p.next()}),O=!1,y=l.JSC$7248_released.subscribe(function(){return T()});
return T}})};
s8Z=function(M,d){var N=M.getOnBackgrounded().pipe(WY(function(){return"b"}));
return WLZ(d,N).pipe(JS(1),E_(M.queue))};
yZ=function(M){return function(d){var N;return d.pipe(GB(function(R){return void(N=R.timestamp)}),WY(function(R){return R.value}),M,WY(function(R){return{timestamp:N,
value:R}}))}};
cT=function(M,d,N){N=N===void 0?function(R,X){return R===X}:N;
return M.timestamp.equals(d.timestamp)&&N(M.value,d.value)};
zt=function(M,d){return d.pipe(WY(function(N){return new SM(M.timeProvider,{timestamp:M.timeProvider.now(),value:N})}))};
PCi=function(M){return function(d){return d.pipe(y_Z(M),WY(function(N){var R=_.V(N);N=R.next().value;R=R.next().value;var X=N.value;return{timestamp:N.timestamp,value:X>=1?!0:X<=0?!1:X>=R}}))}};
rwN=function(){return uy(O_(function(M,d){return d>0}),o4A,fI(-1),cY())};
Kiq=function(M,d,N){return M?pI([d,N]).pipe(O_(function(R){var X=_.V(R);R=X.next().value;X=X.next().value;return R.timestamp.equals(X.timestamp)}),WY(function(R){var X=_.V(R);
R=X.next().value;X=X.next().value;return R.value>X.value?R:X})):d};
cwj=function(M){return function(d){var N=d.pipe(ywA),R=d.pipe(Jwp);return M instanceof CS?M.pipe(LI(function(X){return Kiq(X,N,R)})):Kiq(M.value,N,R)}};
tMi=function(M,d,N,R){var X=R.geometryIsOccluded,A=R.exposureThreshold,l=R.wasLargeAdAtRender,k=R.allowLargeAdThreshold,T=R.largeAdExposureThreshold,W=R.mayUseViewportShareExposure,w=R.hasMeasurementStarted;R=R.useIntersectionObserverV2;d=SqZ(M,N,d);N=zOS(M,N);R=byj(d,R);var p=eOZ(M,X,W,d),m=p.pipe(WY(function(Fi){return Fi.value}),cY(),E_(M),i6(function(Fi,Y){return Math.max(Fi,Y)},0)),I=p.pipe(WY(function(Fi){return Fi.value}),rwN(),E_(M)),O=d.pipe(Hyr,WY(function(Fi){return Fi.value}),JS(2),cY(),
E_(M));
l=n4Z(M,d,l,k);var y=l.pipe(fI(!1),cY(),WY(function(Fi){return Fi?T:A}));
k=p.pipe(PCi(y),cY(),E_(M));var c=pI([k,d]).pipe(O_(function(Fi){var Y=_.V(Fi);Fi=Y.next().value;Y=Y.next().value;return Fi.timestamp.equals(Y.timestamp)}),WY(function(Fi){var Y=_.V(Fi);
Fi=Y.next().value;Y=Y.next().value;return{visible:Fi.value,geometry:Y.value.elementGeometry}}),i6(function(Fi,Y){return!Y.visible&&Fi.visible?Fi:Y},{visible:!1,
geometry:Ky}),WY(function(Fi){return Fi.geometry}),fI(Ky),E_(M),cY(Ny));
W=W instanceof CS?W.pipe(cY(),KI()):Du;y=pI([W,y]).pipe(KI());var e=d.pipe(O_(function(Fi){return Fi.value.viewportGeometrySourceName!=="ns"&&Fi.value.elementGeometrySourceName!=="ns"}),i6(function(Fi){return Fi+1},0),fI(0),E_(M)),t=N.pipe(KI(!0),fI(!1),E_(M));
t=pI([w,t]).pipe(WY(function(Fi){var Y=_.V(Fi);Fi=Y.next().value;Y=Y.next().value;return Fi&&!Y}),E_(M));
var C=d.pipe(iyp,cY()),U=C.pipe(WY(function(Fi){return Fi.value}),i6(function(Fi,Y){return Math.max(Fi,Y)},0),cY(),E_(M));
M=C.pipe(WY(function(Fi){return Fi.value}),rwN(),E_(M));
return{shouldResetExposureSignals:W,shouldResetViewabilitySignals:y,geometrySignals:{readyGeometryWithDefault:d,measurementStrategy:d.pipe(fui),creativePosition:c.pipe(cY(Ny)),visible:k.pipe(cY(cT)),timestampedExposure:p.pipe(cY(cT)),maximumExposure:m,minimumExposure:I,browserSize:d.pipe(Lir,cY(_.AC)),timestampedScreenShare:C,maxScreenShare:U,minScreenShare:M,geometricMeasurementErrors:N,measurementRequests:d.pipe(WY(function(Fi){return Fi.value.measurementRequests})),
isLargeAd:l,geometryIsOccluded:X,hasMeasurementStarted:w,geometryMeasurable:t,validMeasurementCount:e,loadTimeExposure:O,v2VisibilityBitVector:R}}};
zOS=function(M,d){return d.pipe(O_(function(){return!1}),WY(function(N){return N}),o2(function(N){return bC(new dF(N),M)}))};
SqZ=function(M,d,N){return d.pipe(DOp(Du),E_(M)).pipe(cY(function(R,X){return cT(R,X,ktr)}),fI({timestamp:N.now(),
value:Oq}),E_(M))};
eOZ=function(M,d,N,R){N=R.pipe(cwj(N),yZ(WY(function(X){return Math.round(X*100)/100})),E_(M));
return d instanceof dF?N:pI([N,d]).pipe(WY(function(X){var A=_.V(X);X=A.next().value;A=A.next().value;return{timestamp:A.timestamp.maximum(X.timestamp),value:A.value?0:X.value}}),cY(cT),E_(M))};
n4Z=function(M,d,N,R){d=[d.pipe(WY(function(X){return X.value.elementGeometry.width*X.value.elementGeometry.height>=242500}))];
N instanceof CS&&d.push(N.pipe(WY(function(X){return!!X})));
N=pI(d);return R?N.pipe(WY(function(X){return X.some(function(A){return A})}),fI(!1),cY(),E_(M)):bC(new dF(!1),M)};
byj=function(M,d){M=pI([M,d]).pipe(WY(function(X){var A=_.V(X);X=A.next().value;if(A.next().value&&X.value.isIntersecting)return X.value.isV2Visible}),cY());
var N=M.pipe(WY(function(X){return X===void 0?!0:X}),i6(function(X,A){return X||!A},!1)),R=M.pipe(i6(function(X,A){return A===void 0?X:A?!1:X!=null?X:!0},void 0),WY(function(X){return!!X}));
return pI([d,wQZ(M,N,R)]).pipe(WY(function(X){var A=_.V(X);X=A.next().value;var l=_.V(A.next().value);A=l.next().value;var k=l.next().value;l=l.next().value;var T=0;if(!X)return 0;if(A===void 0)return 16;A&&(T|=1);A||(T|=2);k&&(T|=4);l&&(T|=8);return T}))};
uti=function(M,d,N,R,X){var A=eM.timeThresholdMs;var l=l===void 0?new Gtp(d,R):l;return(new CS(function(k){var T=N.pipe(fI(void 0),LI(function(){return aur(X)})).pipe(WY(function(W){var w=W.value;
W=W.timestamp;var p=w.visible;w=w.consecutiveViewTime;var m=w>=A;m||!p?HT(l):(W=Math.max(0,jl(d.now(),W)),Uy6(l,Math.max(0,A-w-W)));return m}),i6(function(W,w){return w||W},!1),cY()).subscribe(k);
return function(){l.dispose();T.unsubscribe()}})).pipe(tS(function(k){return!k},!0),E_(M))};
aur=function(M){return Fiq([M,M.pipe(BFZ())]).pipe(WY(function(d){var N=_.V(d);d=N.next().value;N=N.next().value;return{timestamp:d.timestamp,value:{visible:d.value,consecutiveViewTime:N.value}}}),cY(function(d,N){return cT(d,N,function(R,X){return R.consecutiveViewTime===X.consecutiveViewTime&&R.visible===X.visible})}))};
CCZ=function(){return uy(luv(),i6(function(M,d){return Math.max(M,d)},0),WY(function(M){return Math.round(M)}))};
xyN=function(M){return uy(PCi(BY(M)),CCZ())};
Yqq=function(M,d){return d instanceof CS?d.pipe(LI(function(N){return(N=N?15:null)?kt(new gF(N)):M})):(d=d.value?15:null)?kt(new gF(d)):M};
ZyA=function(M){var d=new gF(13);if(M.length<1)return{chain:I2,capturedErrors:I2};var N=new Yt,R=M[0];return{chain:M.slice(1).reduce(function(X,A){return X.pipe(o2(function(l){N.next(l);return A}))},R).pipe(o2(function(X){N.next(X);
return kt(d)}),b6(new Yt),gu()),
capturedErrors:N}};
E46=function(M,d){var N=M.pipe(b6(new Yt),gu());return LI(function(R){return N.pipe(d(R))})};
dQj=function(M,d){if(M.inCrossDomainIframe)return kt(new gF(6));var N=new Yt;return vY(BY({}),d,N).pipe(WY(function(){return{timestamp:M.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:MzL(M),topWindowViewportExternalGeometry:PT(M,!0),measurementRequests:N,viewportLocalAppOffset:{x:0,y:0}}}}),Zq(M.queue))};
MzL=function(M){var d=PT(M,!1);if(!M.inIframe||!ny(M.global.parent)||M.global.parent===M.global)return d;var N=new iC(M.global.parent,M.debugChannel);N.beaconFactory=M.beaconFactory;N=MzL(N);M=M.global.frameElement.getBoundingClientRect();return wYj(pYj(wYj(N,M),{x:d.left-M.left,y:d.top-M.top}),d)};
Nx2=function(M){if(M.prerendering)return 3;var d;return(d={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[M.visibilityState||M.webkitVisibilityState||M.mozVisibilityState||""])!=null?d:0};
RyL=function(M){return M.document.JSC$7259_onVisibilityChange.pipe(WY(function(d){return d==="visible"}),cY(),E_(M.queue))};
XUA=function(M,d,N){var R;return d.pipe(cY(),LI(function(X){return N.pipe(WY(function(){if(!R){R=!0;try{X.next()}finally{R=!1}}return!0}))}),fI(!1),E_(M.queue))};
Fxv=function(M){return uy(yZ(WY(function(d){return d>=1?!0:d<=0?!1:d>=M})),VM2(),WY(function(d){return Math.round(d)}))};
VzA=function(M,d,N,R,X){var A=A8r;if(A.length>1)for(var l=0;l<A.length-1;l++)if(A[l]<A[l+1])throw Error();l=X.pipe(fI(void 0),LI(function(){return N.pipe(BFZ())}),cY(),E_(M));
X=X.pipe(fI(void 0),LI(function(){return N.pipe(CCZ())}),cY(),E_(M));
return{totalMeasurementTime:R.pipe(fI(void 0),LI(function(){return d.pipe(WY(function(k){return{timestamp:k.timestamp,value:!0}}),VM2())}),cY(),E_(M)),
totalUnviewedTime:R.pipe(fI(void 0),LI(function(){return d.pipe(WY(function(k){return{timestamp:k.timestamp,value:k.value===0}}),VM2())}),cY(),E_(M)),
maxTimeOnScreen:R.pipe(fI(void 0),LI(function(){return d.pipe($yA(xyN,A))}),cY(_.AC),E_(M)),
timeOnScreen:R.pipe(fI(void 0),LI(function(){return d.pipe($yA(Fxv,A),WY(function(k){return k.map(function(T,W){return W>0?T-k[W-1]:T})}))}),cY(_.AC),E_(M)),
maxConsecutiveViewTime:X,consecutiveViewTime:l.pipe(cY(cT),E_(M))}};
$Q2=function(M){var d=!0;d=d===void 0?!1:d;return uy(LI(function(N){return lLi(M.document,N,d)}),E_(M.queue))};
Bxr=function(M,d,N){var R=N.pipe(WY(function(X){return{value:X,timestamp:M.timeProvider.now()}}),cY(cT));
return d instanceof CS?d.pipe(cY(),LI(function(X){return X?bC(new dF({value:!1,timestamp:M.timeProvider.now()}),M.queue):R})):d.value===!1?R:new dF(!1)};
k5j=function(M,d,N,R,X,A,l){var k=eM;d=d instanceof CS?d.pipe(fI(!1),cY()):d;var T=!M.isMobile();N=Bxr(M,N,R);M=l.measurableCreative.pipe(XTi(M.queue));return Object.assign({},k,{geometryIsOccluded:N,wasLargeAdAtRender:X,allowLargeAdThreshold:T,mayUseViewportShareExposure:d,hasMeasurementStarted:M,useIntersectionObserverV2:A})};
DQZ=function(M,d,N,R,X,A){var l=1;A=A===void 0?!0:A;l=l===void 0?.01:l;var k=k===void 0?M.timeProvider.intervalObservable(100).pipe(E_(M.queue)):k;return M.performanceMonitor.timeExecution(916,function(){return TxZ(M,d.pipe(Zq(M.queue)),N.pipe(Zq(M.queue)),R,X,A,l,k)})()};
TxZ=function(M,d,N,R,X,A,l,k){var T=RyL(M).pipe(WY(function(w){return!w})),W=new gai(M,[new Wxi(M,A8r),
new wUZ(M,k)]);k=ugZ(pUq,mQA);return iIZ(M,d,function(w,p){var m=bC(new dF(p.element),w.queue).pipe($Q2(w),E_(w.queue)),I={loadedElement:m,shouldMeasure:m.pipe(KI(!0)),measurableCreative:m.pipe(WY(function(Fi){var Y=Y===void 0?Symbol():Y;return Object.freeze({symbol:Y,element:bC(new dF(Fi),w.queue)})})),
creativeSearchResult:bC(new dF("mue"),w.queue)},O=new dF(!1),y=new dF(!1),c=new dF(17),e=new dF(!1),t=new dF(!1),C=bC(fy,w.queue);O=W.buildGeometrySource(I,{inApp:O,useV2:!1,requestSource:bC(c,w.queue)}).geometrySource;I=k5j(w,e,y,T,t,C,I);y=tMi(w.queue,w.timeProvider,O,I);I=y.geometrySignals;e=y.shouldResetViewabilitySignals;y=VzA(w.queue,I.timestampedExposure,I.visible,y.shouldResetExposureSignals,e);e=uti(w.queue,w.timeProvider,e,I.measurementRequests,I.visible);t=N.pipe(O_(function(Fi){return Fi===
p.element.ref}),WY(function(){return"ur"}));
C=QO2(w.timeProvider,X).pipe(KI("t"));t=s8Z(w,vY(t,C));C=XUA(w,I.measurementRequests,t.pipe(O_(function(Fi){return Fi!==null})));
O=t.pipe(O_(function(Fi){return Fi!==null}),WY(function(){return Nx2(w.global.document)===1}));
var U=hyL(w.document);return Object.assign({},{beaconFactory:new dF(w.beaconFactory),context:new dF(w),inferredPingId:new dF("lidar2"),timeOnScreenPingId:new dF("lidartos"),binaryContext:new dF(17),binaryVersion:new dF(R),requestSource:c,contextValidationErrors:new dF(w.validate()?null:new WT),contextVisibilityKnown:new dF(U),payloadMapper:new dF(aqi),endOfSessionReason:t,timeOnScreenReason:t,requestMeasurementOnEndOfSession:C,hasImpressionFired:QWZ,crossDomainIframeState:new dF(w.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:fy,inFetchLaterBeaconExperiment:fy,isTurtlex:fy,turtlexReportEventData:new dF(""),reportFencedFrameEvent:Du,isViewableAttributionEnabled:fy,inViewableAttributionExperiment:new dF(0),fetchBeaconFactory:Du,supportsPendingBeacon:fy,supportsFetchLater:fy,emit:new dF(Y_Z),beginToRenderEvent:new dF(Symbol()),activeViewUnmeasurableEvent:new dF(Symbol()),activeViewViewableEvent:new dF(Symbol()),creativeFound:QWZ,immediateUrlPrefixes:new dF(p.immediateUrls),timeOnScreenUrlPrefixes:new dF(p.timeOnScreenUrls),
cpmavUrls:Du,viewableRelayUrls:Du,measurementDeferralState:new dF(2),urlSerializer:new dF(NFr),viewUrlSerializer:new dF(qsr),isCreativeLoaded:m.pipe(XTi(w.queue)),pageVisible:T.pipe(WY(function(Fi){return!Fi})),
eosPageVisible:O,timestampedExposureHistory:I.timestampedExposure.pipe(i6(function(Fi,Y){Fi.push(Y);return Fi},[]))},I,{viewable:zt(w,e),
maxTimeOnScreen:zt(w,y.maxTimeOnScreen),timeOnScreen:zt(w,y.timeOnScreen),maxConsecutiveViewTime:zt(w,y.maxConsecutiveViewTime),consecutiveViewTime:y.consecutiveViewTime.pipe(WY(function(Fi){return new SM(w.timeProvider,Fi)})),
totalMeasurementTime:zt(w,y.totalMeasurementTime),totalUnviewedTime:zt(w,y.totalUnviewedTime),userAgentClientHints:Cyj(w),clientOrderPingCounter:new dF(new Lnp)})},Uvi(M,l),C6r(A?xvr(k,ILp):xvr(k,vai),Okr))};
jWA=function(M){return new RegExp("[^#]*[?&]"+M+"=([^&#]*)")};
sW6=function(M,d){return(M=d.exec(M))?M[1]:null};
P_L=function(M){var d=_.wH.apply(1,arguments).filter(Boolean).join("&");if(!d)return M;var N=M.match(/[?&]adurl=/);return N?M.slice(0,N.index+1)+d+"&"+M.slice(N.index+1):M+(M.indexOf("?")<0?"?":"&")+d};
Ly=function(M,d){return d?"&"+M+"="+encodeURIComponent(d):""};
oaZ=function(){try{var M,d;return!!((M=window)==null?0:(d=M.top)==null?0:d.location.href)&&!1}catch(N){return!0}};
_.tw=function(M){M&&typeof M.dispose=="function"&&M.dispose()};
_.Gt=function(M){for(var d=0,N=arguments.length;d<N;++d){var R=arguments[d];_.CZ(R)?_.Gt.apply(null,R):_.tw(R)}};
Kxr=function(){var M=r8Z();M=M===void 0?"bevasrsg":M;return new Promise(function(d){var N=window===window.top?window:oaZ()?window:window.top,R=N[M],X;((X=R)==null?0:X.bevasrs)?d(new a8(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),N[M]=R),R.nqfbel.push(function(A){d(new a8(A))}))})};
y8S=function(M){var d={c:M.oN,e:M.pJG,mc:M.evg,me:M.qo2};M.uh&&(d.co={c:M.uh.cYD,a:M.uh.lb5,s:M.uh.rO6});return d};
J8q=function(M){var d,N,R={oN:M.c,pJG:M.e,evg:(d=M.mc)!=null?d:!1,qo2:(N=M.me)!=null?N:!1};M.co&&(R.uh={cYD:M.co.c,lb5:M.co.a,rO6:M.co.s});return R};
c8A=function(M){return function(){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M(),2);d=N.yieldResult;return N.return({f:function(){return d.rpD()},
c:function(R){return d.uvD(R)},
m:function(R){return d.vX(J8q(R))},
mws:function(R){return d.vR(J8q(R))}})})}};
Ssj=function(M,d){var N=r8Z();N=N===void 0?"bevasrsg":N;d={s:function(A){var l;return M.snapshot(Object.assign({},A.c&&{oN:A.c},A.s&&{vWn:A.s},{eWc:(l=A.p)!=null?l:!0}))},
e:function(A){var l;return void((l=M.dRS)==null?void 0:l.call(M,A))},
c:function(A,l){return M.kNS(A,l)},
p:M.lgG,l:function(){return M.hCw()},
wpc:d?c8A(d):void 0};var R=window===window.top?window:oaZ()?window:window.top,X=R[N];if(X){X.bevasrs=d;if(X.nqfbel!==void 0)for(N=_.V(X.nqfbel),R=N.next();!R.done;R=N.next())R=R.value,R(d);X.nqfbel=void 0}else X={},X=(X.bevasrs=d,X.nqfbel=void 0,X),R[N]=X};
bkL=function(M){var d=d===void 0?49:d;var N=[];_.Uq(M,zyv,6,_.uC()).forEach(function(R){_.Cy(R,2)<=d&&N.push(_.Cy(R,1))});
return N};
eyq=function(M){var d=d===void 0?49:d;var N=[];_.Uq(M,zyv,6,_.uC()).forEach(function(R){_.Cy(R,2)>d&&N.push(_.Cy(R,1))});
return N};
HkN=function(M){M.then(function(){},function(){})};
x4=function(M){return{fieldType:1,fieldName:M}};
Y4=function(M){return{fieldType:2,fieldName:M}};
_.Zu=function(M){return{fieldType:3,fieldName:M}};
naq=function(){function M(){X[0]=1732584193;X[1]=4023233417;X[2]=2562383102;X[3]=271733878;X[4]=3285377520;w=W=0}
function d(p){for(var m=l,I=0;I<64;I+=4)m[I/4]=p[I]<<24|p[I+1]<<16|p[I+2]<<8|p[I+3];for(I=16;I<80;I++)p=m[I-3]^m[I-8]^m[I-14]^m[I-16],m[I]=(p<<1|p>>>31)&4294967295;p=X[0];var O=X[1],y=X[2],c=X[3],e=X[4];for(I=0;I<80;I++){if(I<40)if(I<20){var t=c^O&(y^c);var C=1518500249}else t=O^y^c,C=1859775393;else I<60?(t=O&y|c&(O|y),C=2400959708):(t=O^y^c,C=3395469782);t=((p<<5|p>>>27)&4294967295)+t+e+C+m[I]&4294967295;e=c;c=y;y=(O<<30|O>>>2)&4294967295;O=p;p=t}X[0]=X[0]+p&4294967295;X[1]=X[1]+O&4294967295;X[2]=
X[2]+y&4294967295;X[3]=X[3]+c&4294967295;X[4]=X[4]+e&4294967295}
function N(p,m){if(typeof p==="string"){p=unescape(encodeURIComponent(p));for(var I=[],O=0,y=p.length;O<y;++O)I.push(p.charCodeAt(O));p=I}m||(m=p.length);I=0;if(W==0)for(;I+64<m;)d(p.slice(I,I+64)),I+=64,w+=64;for(;I<m;)if(A[W++]=p[I++],w++,W==64)for(W=0,d(A);I+64<m;)d(p.slice(I,I+64)),I+=64,w+=64}
function R(){var p=[],m=w*8;W<56?N(k,56-W):N(k,64-(W-56));for(var I=63;I>=56;I--)A[I]=m&255,m>>>=8;d(A);for(I=m=0;I<5;I++)for(var O=24;O>=0;O-=8)p[m++]=X[I]>>O&255;return p}
for(var X=[],A=[],l=[],k=[128],T=1;T<64;++T)k[T]=0;var W,w;M();return{reset:M,update:N,digest:R,digestString:function(){for(var p=R(),m="",I=0;I<p.length;I++)m+="0123456789ABCDEF".charAt(Math.floor(p[I]/16))+"0123456789ABCDEF".charAt(p[I]%16);return m}}};
aLA=function(M,d){d=d===void 0?ikj:d;if(!fLZ){var N;M=(N=M.navigator)==null?void 0:N.userAgentData;if(!M||typeof M.getHighEntropyValues!=="function"||M.brands&&typeof M.brands.map!=="function")return Promise.reject(Error("ya"));Lxp((M.brands||[]).map(function(X){var A=new tzZ;A=_.VZ(A,1,X.brand);return _.VZ(A,2,X.version)}));
typeof M.mobile==="boolean"&&_.Eq(G5i,2,M.mobile);fLZ=M.getHighEntropyValues(d)}var R=new Set(d);return fLZ.then(function(X){var A=G5i.clone();R.has("platform")&&_.VZ(A,3,X.platform);R.has("platformVersion")&&_.VZ(A,4,X.platformVersion);R.has("architecture")&&_.VZ(A,5,X.architecture);R.has("model")&&_.VZ(A,6,X.model);R.has("uaFullVersion")&&_.VZ(A,7,X.uaFullVersion);return A.serialize()}).catch(function(){return G5i.serialize()})};
MQ=function(M,d,N,R){this.initialValue_=M;this.maxValue_=d;this.currBaseValue_=this.currValue_=M;this.randomFactor_=N||0;this.backoffFactor_=R||2};
dx=function(M){this.src=M;this.listeners={};this.typeCount_=0};
xQS=function(){for(var M;M=UQp.remove();){try{M.fn.call(M.scope)}catch(d){RN(d)}uxN.put(M)}C_v=!1};
_.YsZ=function(M){switch(M){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
Zk6=function(M){switch(M){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.EaZ=function(){};
lKZ=function(M){return{nNq:new M96(M),errorCount:new dFq(M),eventCount:new N0A(M),b7i:new RM6(M),bw6:new Xgi(M),zrF:new FFp(M),sYA:new Alj(M),uBO:new V9L(M)}};
pgN=function(M,d,N,R){M=$Fi(B0q(kT6(new _.NQ(1828,"0"),M),new T0r));d.length&&DF2(M,gTN(new WFA,d));R!==void 0&&(M.destinationUrl=R);var X=new wgZ(1828,"","",!1,"",M.build());_.RW(X,M);var A=new Xx({flush:function(l){try{X.flush(l)}catch(k){N(k)}}});
A.addOnDisposeCallback(function(){setTimeout(function(){try{A.snapshotAndFlush()}finally{X.dispose()}})});
A.invocationLimit=1E5;A.flushInterval=3E4;A.JSC$7671_flushTimer.setInterval(3E4);return A};
Fx=function(){var M,d,N;return(N=(M=globalThis.performance)==null?void 0:(d=M.now)==null?void 0:d.call(M))!=null?N:Date.now()};
eMZ=function(M,d,N){if(M.disable)return new mFZ;d=d?bkL(d):[];if(N)return N.fFD(d),N.share();M={dN:M.dN,bQD:M.wGX,bHU:M.kc6,destinationUrl:M.destinationUrl,znD:M.znD,tAm:M.tAm};N=d;N=N===void 0?[]:N;return new buq(M,N)};
_.Hu6=function(M){if(!M)return null;M=_.A8(M,4);return M===null||M===void 0?null:_.RO(M)};
fKp=function(M,d){return d?nTS(d):M?iu6(M):Promise.resolve()};
nTS=function(M){return new Promise(function(d,N){var R=_.Vf("SCRIPT"),X=_.Hu6(M);_.Sd(R,X);R.onload=function(){_.l_(R);d()};
R.onerror=function(){_.l_(R);N(Error("Ja"))};
($a("HEAD")[0]||document.documentElement).appendChild(R)})};
iu6=function(M){return new Promise(function(d){var N=_.Vf("SCRIPT");if(M){var R=_.A8(M,6);R=R===null||R===void 0?null:_.yL(R)}else R=null;_.cQ(N,R);($a("HEAD")[0]||document.documentElement).appendChild(N);_.l_(N);d()})};
BU=function(M,d,N){var R,X=new Promise(function(A){R=setTimeout(A,d)});
return Promise.race([M.finally(function(){return void clearTimeout(R)}),
X.then(N)])};
LFp=function(M,d){try{return globalThis.sessionStorage.setItem(M,d),!0}catch(N){return!1}};
t9i=function(M,d,N,R){d=d===void 0?0:d;N=N===void 0?M.length:N;var X=0;for(R&&(X=t9i(R));d<N;d++)R=typeof M==="string"?M.charCodeAt(d):M[d],X=GTA(31,X)+R|0;return X};
aKr=function(M,d){return[t9i(M,0,M.length>>1,d),t9i(M,M.length>>1)]};
UFi=function(M){var d=_.V(aKr(M,ka));M=d.next().value;d=d.next().value;return M.toString(16)+d.toString(16)};
uIi=function(M,d){var N=aKr(d);M=new Uint32Array(M.buffer);d=M[0];var R=_.V(N);N=R.next().value;R=R.next().value;for(var X=1;X<M.length;X+=2){for(var A=d,l=X,k=N,T=R,W=0;W<22;W++)l=l>>>8|l<<24,l+=A|0,l^=k+38293,A=A<<3|A>>>29,A^=l,T=T>>>8|T<<24,T+=k|0,T^=W+38293,k=k<<3|k>>>29,k^=T;A=[A,l];M[X]^=A[0];X+1<M.length&&(M[X+1]^=A[1])}};
Cdq=function(M,d,N,R,X){var A=(4-(ka.length+N.length)%4)%4,l=new Uint8Array(4+A+ka.length+4+N.length),k=new DataView(l.buffer),T=0;k.setUint32(T,Math.random()*4294967295);T=T+4+A;l.set(ka,T);T+=ka.length;k.setUint32(T,X);l.set(N,T+4);uIi(l,R);return M.insert(d,function(W){return void globalThis.sessionStorage.removeItem(W)})?LFp(d,_.UT(l))?"s":"t":"i"};
xF2=function(M,d){var N=globalThis.sessionStorage.getItem(M);if(!N)return["m"];try{var R=_.lL(N);uIi(R,d)}catch(X){return globalThis.sessionStorage.removeItem(M),["c"]}for(d=4;d<7&&R[d]===0;)d++;for(N=0;N<ka.length;N++)if(R[d++]!==ka[N])return globalThis.sessionStorage.removeItem(M),["d"];N=(new DataView(R.buffer)).getUint32(d);return Math.floor(Date.now()/1E3)>=N?(globalThis.sessionStorage.removeItem(M),["e"]):["a",new Uint8Array(R.buffer,d+4)]};
YoN=function(M){return globalThis.TextEncoder?(new TextEncoder).encode(M):_.T5(M)};
ZuZ=function(M){var d=M,N;return function(){if(d){var R=d;d=void 0;N=R.apply(this,arguments)}return N}};
MxA=function(M){return iL(function(d){if(d instanceof M)return!0;var N,R,X=d==null?void 0:(N=d.ownerDocument)==null?void 0:(R=N.defaultView)==null?void 0:R[M.name];return ETq(X)&&d instanceof X})};
_.WU=function(M,d,N){_.DL.call(this);this.JSC$7886_listener_=M;this.JSC$7886_interval_=d||0;this.handler_=N;this.callback_=(0,_.gx)(this.JSC$7888_doAction_,this)};
_.wx=function(M){M=dVA(M);return _.RO(M)};
dVA=function(M){return M===null?"null":M===void 0?"undefined":M};
R$N=function(M){if(M&&M.focus)if(M!==document.activeElement)M.focus();else return NK2(function(){return _.B(function(d){document.activeElement&&document.activeElement.blur();return d.return(NK2(function(){M.focus()}))})})};
_.Xyr=function(M){var d=d===void 0?5:d;setTimeout(function(){var N;return _.B(function(R){R.nextAddress==1&&(N=document.activeElement);if(R.nextAddress!=5)return(document.activeElement===N||document.activeElement===document.body)&&d>=0&&M?_.D(R,R$N(M),5):R.jumpTo(0);if(document.activeElement===M)return R.return();M=M.parentElement;--d;return R.jumpTo(2)})},15)};
NK2=function(M){return new Promise(function(d){requestAnimationFrame(function(){d(M())})})};
AAA=function(M){if(_.pk)M(_.pk);else{var d;((d=FIv)!=null?d:FIv=[]).push(M)}};
h8=function(){!_.pk&&_.mx&&_.Vx6(_.mx());return _.pk};
_.Vx6=function(M){_.pk=M;var d;(d=FIv)==null||d.forEach(AAA);FIv=void 0};
_.Qf=function(M){_.pk&&_.pk.beforeLoadModuleCode(M)};
_.qQ=function(){_.pk&&_.pk.JSC$8841_setLoaded()};
IW=function(M){return Jd(M)?Number(M):String(M)};
lRN=function(M){this.action=M;this.wfv=!1};
$VZ=function(M,d){lRN.call(this,"set-drive-options");this.appId=M;this.appOrigin=d};
BKN=function(M){lRN.call(this,"visibility");this.visible=M};
kNq=function(M,d,N){vU.call(this,M,d,N)};
TKS=function(M){Os.call(this,M)};
DVp=function(M){M=M&&M.getWindow()||window;return M.gadgets&&M.gadgets.rpc};
WIZ=function(M,d){var N=d&&d.getWindow()||window;if(DVp(d))M();else if(gVi)gVi.push(M);else var R=gVi=[M],X=N.setInterval(function(){if(DVp(d)){N.clearInterval(X);for(var A=0;A<R.length;A++)R[A]();gVi=null}},100)};
pyZ=function(M,d){var N=new jz(M);_.RW(d,N);var R={passive:!1};d.listen(N,"mousewheel",function(X){return void wyi(M,X)},R).listen(M,"scroll",function(X){return void wyi(M,X)},R)};
wyi=function(M,d){var N;a:{for(N=d.target;N;){if(N.nodeType==1){var R=_.ss(N,"overflowY");if(R=="auto"||R=="scroll")break a}N=N.parentNode}N=null}if(!N||!_.PU(M,N)||N.scrollHeight==N.clientHeight||d.deltaY>0&&Math.abs(N.scrollTop-(N.scrollHeight-N.clientHeight))<=1||d.deltaY<0&&N.scrollTop==0)d.preventDefault(),d.stopPropagation()};
Sz=function(M,d,N,R,X,A,l,k,T){k=k===void 0?!1:k;T=T===void 0?!1:T;vU.call(this,void 0,void 0,void 0);vU.call(this,A?A+" picker modal-dialog":"picker modal-dialog",!0,N);_.oW(M,"protocol");this.iframeManager_=new mVA;this.targetId_=rx();this.rpcToken_=rx();M=_.Kk(M);_.yf(M,"hostId");N=_.yf(M,"parent");this.useGapi_=!T&&!0||(N==null?void 0:N.includes("onepick.corp.google.com"));k&&_.J8(M,"fv2","true");this.setUrl(M.toString());this.preferredDialogWidth_=R;this.preferredDialogHeight_=X;R!==void 0||
X!==void 0?R=!0:(R=_.yf(_.Kk(M.toString()),"hostId"),h$A||(h$A=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),R=!h$A.has(R));this.autoSizeDialog_=R;this.JSC$8076_gadgetsDomHelper_=l||this.JSC$8027_dom_;d&&(l=this.JSC$8076_gadgetsDomHelper_,d=_.yf(_.Kk(this.JSC$8078_url_),"grugl")=="true"?QJS:qli,DVp(l)||(l=l||Aw(document),R=l.createElement("SCRIPT"),_.Sd(R,d),R.type="text/javascript",l.JSC$7214_document_.body.appendChild(R)));
M=M.toString();d=null;l=M.indexOf("/picker?");l>-1?d=M.substring(0,l+8-1):l2(M,"/picker")&&(d=M);d&&this.setRelayUrl(d+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(M=this.buttons_,M.JSC$8061_element_=this.buttonEl_,M.render()):_.zP(this.buttonEl_,IRv),_.cU(this.buttonEl_,!!this.buttons_))};
_.sJi=function(M){var d=d===void 0?vVi:d;var N=_.d3(M),R=function(A){A=_.V(A);A.next();A=z5(A);return d(N,A)},X=function(A){var l=_.V(A);
A=l.next().value;l=z5(l);return M.apply(A,l)};
return function(){var A=_.wH.apply(0,arguments),l=this||_.Np,k=OFN.get(l);k||(k={},OFN.set(l,k));return _.jJj(k,[this].concat(_.wu(A)),X,R)}};
b_=function(M){var d={};M=M.replace(/\r/g,"").split("\n");for(var N=0;N<M.length;N++){var R=M[N],X=R.indexOf(":");X<0||(d[R.substring(0,X)]=R.substring(X+2,R.length))}return d};
PsZ=function(M,d,N){N=N===void 0?function(){}:N;
d=_.V(d);for(var R=d.next();!R.done;R=d.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;if(R instanceof Array&&R.includes(M)||R===M)return X()}return N()};
_.ez=function(M,d,N){N=N===void 0?function(){}:N;
return M?d():N()};
_.rA6=function(M){var d;return((d=oVi.documentOverride)!=null?d:M).__wizdispatcher};
nk=function(M){var d=HU;HU=M;return d};
yAv=function(M,d){var N;if((N=M)==null?0:N.isDisposed)throw Error("nb`"+String(M.debugName));for(;M!==void 0;){N=M;if(N.retrieve)return N.retrieve(d,{optional:!0});M=M.parent}return KIv};
i_=function(M){return{"\u0275prov":{providedIn:"root",token:Symbol(M),factory:void 0,value:void 0}}};
JAS=function(M){var d=nk(M);M={};return M[Symbol.dispose]=function(){nk(d)},M};
cAr=function(M,d){M.disposables||(M.disposables=[]);M.disposables.push(d)};
fk=function(M){var d=HU;d&&!d.isDisposed&&(cAr(d,function(){return void SlZ(M)}),M.parent=d)};
z$A=function(M){if(M.disposables){for(var d=_.V(M.disposables),N=d.next();!N.done;N=d.next())N=N.value,N();M.disposables.length=0}};
SlZ=function(M){if(!M.isDisposed){M.isDisposed=!0;var d;(d=M[Symbol.dispose])==null||d.call(M);delete M.parent;z$A(M)}};
GNi=function(M){var d={retrieve:function(N){switch(N.\u0275prov.token){case bFq.\u0275prov.token:var R=M.asyncDeps;break;case e$2.\u0275prov.token:R=M.rootElement;break;case HFj.\u0275prov.token:R=M.modelRootElement;break;case nVZ.\u0275prov.token:R=M.appContext;break;case iFr.\u0275prov.token:R=M.rendererData;break;case fRi.\u0275prov.token:R=M.injectingConstructor;break;case LIN.\u0275prov.token:R=M.dispatcher}if(R)N=R;else a:{for(R=d.parent;R;){var X=R;if(X.retrieve){N=X.retrieve(N);break a}R=
R.parent}R=N.\u0275prov.token;X=txq[R];X!==void 0?N=X:(X=N.\u0275prov.providedIn,N.\u0275prov.factory?(N=N.\u0275prov.factory(),R&&X==="root"&&(txq[R]=N)):N=KIv)}return N}};
fk(d);return d};
aRA=function(M){if(typeof document!=="undefined"&&document&&document.getElementById&&(M=document.getElementById(M))){var d=M.tagName.toUpperCase();if(d=="SCRIPT"||d=="LINK")return M}return null};
uoj=function(M,d){if((M=M===void 0?"":M)&&d)throw Error("ub");var N="";var R=_.Np._F_jsUrl;(M=d||aRA(M))&&(N=M.src?M.src:M.getAttribute("href"));if(R&&N){if(R!=N)throw Error("vb`"+R+"`"+N);N=R}else N=R||N;if(!UVN(N))throw Error("wb");return N};
YlS=function(){if(!CsN){CsN=!0;try{var M=uoj(_.Np._F_jsUrl?"":"base-js")}catch(R){return}var d=xVL(t8(M)),N=Object.keys(d);N.length!==0&&AAA(function(R){for(var X=_.V(N),A=X.next();!A.done;A=X.next()){A=A.value;for(var l=_.V(Object.keys(d[A])),k=l.next();!k.done;k=l.next())R.addExtraEdge(A,k.value)}})}};
ZFZ=function(M,d,N){var R;return M&&d?M+"__"+d:(R=M!=null?M:d)!=null?R:N};
Mwi=function(){var M=Object.assign({},EV6);Object.getOwnPropertyNames(EV6).forEach(function(d){G5[d]!==void 0&&(M[d]=G5[d])});
return M};
dBi=function(M,d){if(G5.enablePerformanceTiming){var N,R;(R=(N=performance).mark)==null||R.call(N,M+"Start__"+d)}};
N2A=function(M,d){if(G5.enablePerformanceTiming){var N,R;(R=(N=performance).measure)==null||R.call(N,M+"__"+d,M+"Start__"+d)}};
XJL=function(M,d){var N=Object.create(RaA);N.debugName=d;!HU||fk(N);d=nk(N);try{M(N)}finally{nk(d)}return function(){return void SlZ(N)}};
VwZ=function(M){return FD6(M)&&AmZ in M};
lsZ=function(M,d){return Object.is(M,d)};
Ck=function(M){var d=u_;u_=M;return d};
T2Z=function(M){if(xa)throw Error("da");if(u_!==null){var d=u_.nextProducerIndex++;$BL(u_);d<u_.producerNode.length&&u_.producerNode[d]!==M&&Ya(u_)&&B2q(u_.producerNode[d],u_.producerIndexOfThis[d]);u_.producerNode[d]!==M&&(u_.producerNode[d]=M,u_.producerIndexOfThis[d]=Ya(u_)?ksp(M,u_,d):0);u_.producerLastReadVersion[d]=M.version}};
WDN=function(M){if(!Ya(M)||M.dirty)if(M.dirty||M.lastCleanEpoch!==DBp)(M.producerMustRecompute(M)||gYj(M))&&M.producerRecomputeValue(M),M.dirty=!1,M.lastCleanEpoch=DBp};
wJ2=function(M){if(M.liveConsumerNode!==void 0){var d=xa;xa=!0;try{for(var N=_.V(M.liveConsumerNode),R=N.next();!R.done;R=N.next()){var X=R.value;X.dirty||(M=void 0,X.dirty=!0,wJ2(X),(M=X.consumerMarkedDirty)==null||M.call(X,X))}}finally{xa=d}}};
pJ6=function(){var M;return((M=u_)==null?void 0:M.consumerAllowSignalWrites)!==!1};
mB6=function(M){M&&(M.nextProducerIndex=0);return Ck(M)};
haS=function(M,d){Ck(d);if(M&&M.producerNode!==void 0&&M.producerIndexOfThis!==void 0&&M.producerLastReadVersion!==void 0){if(Ya(M))for(d=M.nextProducerIndex;d<M.producerNode.length;d++)B2q(M.producerNode[d],M.producerIndexOfThis[d]);for(;M.producerNode.length>M.nextProducerIndex;)M.producerNode.pop(),M.producerLastReadVersion.pop(),M.producerIndexOfThis.pop()}};
gYj=function(M){$BL(M);for(var d=0;d<M.producerNode.length;d++){var N=M.producerNode[d],R=M.producerLastReadVersion[d];if(R!==N.version)return!0;WDN(N);if(R!==N.version)return!0}return!1};
ksp=function(M,d,N){Qc6(M);if(M.liveConsumerNode.length===0&&M.producerNode!==void 0)for(var R=0;R<M.producerNode.length;R++)M.producerIndexOfThis[R]=ksp(M.producerNode[R],M,R);M.liveConsumerIndexOfThis.push(N);return M.liveConsumerNode.push(d)-1};
B2q=function(M,d){Qc6(M);if(M.liveConsumerNode.length===1&&M.producerNode!==void 0)for(var N=0;N<M.producerNode.length;N++)B2q(M.producerNode[N],M.producerIndexOfThis[N]);N=M.liveConsumerNode.length-1;M.liveConsumerNode[d]=M.liveConsumerNode[N];M.liveConsumerIndexOfThis[d]=M.liveConsumerIndexOfThis[N];M.liveConsumerNode.length--;M.liveConsumerIndexOfThis.length--;d<M.liveConsumerNode.length&&(N=M.liveConsumerIndexOfThis[d],M=M.liveConsumerNode[d],$BL(M),M.producerIndexOfThis[N]=d)};
Ya=function(M){var d,N;return M.consumerIsAlwaysLive||((N=M==null?void 0:(d=M.liveConsumerNode)==null?void 0:d.length)!=null?N:0)>0};
$BL=function(M){M.producerNode!=null||(M.producerNode=[]);M.producerIndexOfThis!=null||(M.producerIndexOfThis=[]);M.producerLastReadVersion!=null||(M.producerLastReadVersion=[])};
Qc6=function(M){M.liveConsumerNode!=null||(M.liveConsumerNode=[]);M.liveConsumerIndexOfThis!=null||(M.liveConsumerIndexOfThis=[])};
IsZ=function(M){var d=Object.create(qdN);d.computation=M;M=function(){WDN(d);T2Z(d);if(d.value===ZL)throw d.error;return d.value};
M[Es]=d;return M};
OEZ=function(M,d){var N=Object.create(vYq);N.value=M;d!==void 0&&(N.equal=d);M=function(){T2Z(N);return N.value};
M[Es]=N;return M};
PkN=function(M,d){M=OEZ(M,d);var N=M[Es];return[M,function(R){return jcL(N,R)},
function(R){pJ6()||scq(N);jcL(N,R(N.value))}]};
jcL=function(M,d){pJ6()||scq(M);if(!M.equal(M.value,d)){M.value=d;M.version++;DBp++;wJ2(M);var N;(N=oYZ)==null||N(M)}};
MF=function(M){var d=Ck(null);try{return M()}finally{Ck(d)}};
_.d0=function(M,d,N){N=N===void 0?"":N;M=PkN(M,d==null?void 0:d.equals);var R=M[0],X=R[Es];X.debugName=ZFZ(d==null?void 0:d.debugName,N,"[signal]");if(!G5.enablePerformanceTiming)return M;var A=M[1],l=M[2];return[R,function(k){rmZ(function(){return void A(k)},X)},
function(k){rmZ(function(){return void l(k)},X)}]};
rmZ=function(M,d){dBi("signalSet",d.debugName);try{M()}finally{N2A("signalSet",d.debugName)}};
ymp=function(M,d){var N=_.V(_.d0(M,void 0,"cPpJzc"));M=N.next().value;N=N.next().value;M[KDv]=N;M[NF]=d;return M};
Jm2=function(M){return!!M&&typeof M==="object"&&Object.getPrototypeOf(M)===Object.prototype};
cm6=function(M){return typeof M==="function"&&KDv in M&&typeof M[KDv]==="function"};
SdZ=function(M,d){Object.defineProperty(M,NF,{get:function(){return d}})};
XI=function(M,d){if(R4(M)){var N=M.map(function(A){return XI(A,d)});
SdZ(N,d);return N}if(Jm2(M)){N={};M=_.V(Object.entries(M));for(var R=M.next();!R.done;R=M.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;N[R]=XI(X,d)}SdZ(N,d);return N}return ymp(M,d)};
zaL=function(M){if(R4(M))return M.map(function(X){return zaL(X)});
if(Jm2(M)){var d={};M=_.V(Object.entries(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;d[N]=zaL(R)}return d}return cm6(M)?M():M};
ear=function(){var M={height:0,width:0};if(!Jm2(M))throw Error("Ib");var d=Symbol("Jb");return[XI(M,d),function(N,R){if(N[NF]===d)if(typeof R==="function"){var X=[].concat(_.wu(zaL(N)));R=R(X)||X;bEv(N,[].concat(_.wu(R)))}else bEv(N,R);else throw Error("Kb");}]};
bEv=function(M,d){if(cm6(M))M[KDv](d);else if(R4(M)&&R4(d))d=XI(d,M[NF]),M.length=0,M.push.apply(M,_.wu(d));else if((Jm2(M)||R4(M))&&(R4(d)||typeof d==="object"&&d!==null)){d=_.V(Object.entries(d));for(var N=d.next();!N.done;N=d.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;var X=M,A=X[N];Object.hasOwn(M,N)?bEv(A,R):X[N]=XI(R,M[NF])}}else throw Error("Lb");};
HEq=function(M){return Object.create(Object.assign({},FI,M))};
iEN=function(){var M;return(M=nYN)!=null?M:nYN=HEq({consumerAllowSignalWrites:!0})};
_.Al=function(M,d,N){N=N===void 0?"":N;M=IsZ(M);var R=M[Es];R.debugName=ZFZ(d==null?void 0:d.debugName,N,"[computed]");(d==null?void 0:d.equals)!=null&&(R.equal=d.equals);return M};
VJ=function(M){var d=Ck(fsS);try{M()}finally{Ck(d)}};
Ck2=function(M){if(!M.isDisposed)switch(M.effectType){case LDj:twZ.schedule(M);break;case Gsr:asj.schedule(M);break;case UB6:uOi.schedule(M);break;default:_.RC(M.effectType)}};
YdS=function(M){xBi.push(M);return function(){var d=xBi.indexOf(M);d!==-1&&xBi.splice(d,1)}};
EYv=function(){if(ld>0)twZ.flush();else for(var M=_.V(ZEv),d=M.next();!d.done;d=M.next())d.value.flush()};
dUZ=function(M){for(var d=_.V(M),N=d.next();!N.done;N=d.next()){var R=N.value;for(N=[R];R.parent!==void 0;)R=R.parent,M6r(R)&&M.has(R)&&N.push(R);for(;N.length>0;){R=N.pop();try{R.run()}finally{M.delete(R)}}}};
NcZ=function(M){ld--;if(M){M=_.V(ZEv);for(var d=M.next();!d.done;d=M.next())d.value.clear()}else ld>0||EYv()};
R1j=function(M){var d=M.component;var N=M.debugInstance;M=M.fn;var R,X=(R=d.debugName)!=null?R:d.name;$T={name:N?X+" ("+N+")":X,isReactive:d.componentType!==Bg,parent:$T};d=M();$T=$T.parent;return d};
DK=function(){var M=$T;return M?M.isReactive:!1};
g0=function(M,d){d=d===void 0?{}:d;var N=$T;d.stack&&($T=d.stack);try{return M()}catch(k){M=k;d=$T;for(var R=0,X=d;X!==null;)R++,X=X.parent;if(R!==0&&!M.componentStack)try{if(M.componentStack=d,G5.enableComponentStacksInErrorMessages){var A=XfA(d),l=M.message+"\n\nComponent stack: "+A;M.stack&&(M.stack=M.stack.replace(M.message,l));M.message=l}}catch(T){}if(M!==F0Z){AkZ=$T;A=[];for(l=HU;l;)d=void 0,A.push((d=l.debugName)!=null?d:"[context]"),d=void 0,l=(d=l.parent)!=null?d:null;V6Z=A.reverse()}F0Z=
M;throw M;}finally{$T=N}};
XfA=function(M){for(var d=[];d.length<20&&M;)d.push(M.name),M=M.parent;return d.join(" > ")};
lxq=function(M,d,N){d=Object.create(d);d.componentStack=$T;d.effectFn=M;N&&(d.debugName=N);fk(d);return d};
_.Wg=function(M,d){M=lxq(M,$UZ,d);Ck2(M)};
_.w0=function(M,d){M=lxq(M,Bcv,d);Ck2(M)};
_.mF=function(M){var d=HU;if(d){var N=$T;cAr(d,function(){var R=Ck(iEN());try{g0(function(){return void M()},{stack:N})}finally{Ck(R)}})}};
hl=function(M,d){var N={};(d===void 0||d)&&fk(N);d=nk(N);try{M(N)}finally{nk(d)}return function(){return void SlZ(N)}};
_.QJ=function(M){return typeof M==="function"?M():(M==null?0:M[k2S])?M.get():M};
TcL=function(M){if(HU)throw Error("rb");hl(M,!1)};
qF=function(M,d){M=nk(M);try{return MF(d)}finally{nk(M)}};
I4=function(M,d,N){N=N===void 0?3:N;var R=AkZ,X,A;var l=(A=(X=V6Z)==null?void 0:X.slice())!=null?A:[];d={componentStack:R,contextTrace:l,errorSeverity:N,featureFlags:Mwi(),tagName:d};return[M,d]};
W0v=function(M,d,N){if(Object.hasOwnProperty.call(DUL,M)&&(M=DUL[M],Object.hasOwnProperty.call(M,d)&&(M=M[d],M instanceof Array))){for(var R=null,X=!1,A=0,l=M.length;A<l;++A){var k=M[A],T=k.contingentAttribute;if(!T)return k.contract;R===null&&(R={});T=Object.hasOwnProperty.call(R,T)?R[T]:R[T]=N(T);if(T===k.requiredValue)return k.contract;T==null&&(X=!0)}if(X)return null}d=gWZ[d];return typeof d==="number"?d:null};
mUS=function(M,d,N){var R=null;(M=wfi[M])&&(R=M[d]);return typeof R!=="number"&&((M=wfi["*"])&&(R=M[d]),typeof R!=="number")?!1:!0===pfN[R][String(N).toLowerCase()]};
QQL=function(M,d){d=W0v(M.toLowerCase(),d,function(){var R;(R=G5.handleError)==null||R.call.apply(R,[G5].concat(_.wu(I4(Error("Qb"),M.toLowerCase()))))});
if(d===null)return null;var N;return(N=h12[d])!=null?N:null};
qIS=function(M,d,N){if(N===null||N===void 0)return N;M=QQL(M,d);return M===null?N:M(d,N)};
Ixi=function(){};
vg=function(M,d){for(;M.length>d;)M.pop()};
vWv=function(M){M=Array(M);vg(M,0);return M};
OAq=function(M,d,N){if(N==null)M.removeAttribute(d);else{var R;(R=d.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":d.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?M.setAttributeNS(R,d,N):M.setAttribute(d,N)}};
jQ6=function(M,d,N){M[d]=N};
P7S=function(M,d,N){M=M.style;if(typeof N==="string")M.cssText=N;else{M.cssText="";for(var R in N)if(sQZ.call(N,R)){d=M;var X=R,A=N[R];X.indexOf("-")>=0?d.setProperty(X,A):d[X]=A}}};
oWi=function(M,d,N){var R=typeof N;R==="object"||R==="function"?M[d]=N:OAq(M,d,N)};
rkq=function(){var M=new Ixi;M[Oo.default]=oWi;M.style=P7S;return M};
K0Z=function(M,d,N,R){(R[d]||R[Oo.default])(M,d,N)};
JkN=function(M,d,N){d=new ykZ(d,N);return M.__incrementalDOMData=d};
j9=function(M,d){if(M.__incrementalDOMData)return M.__incrementalDOMData;var N=M.nodeType===1?M.localName:M.nodeName,R=M.nodeType===1?M.getAttribute("key"):null;d=JkN(M,N,M.nodeType===1?R||d:null);if(M.nodeType===1&&(M=M.attributes,N=M.length)){R=d._attrsArr||(d._attrsArr=vWv(N*2));for(var X=0,A=0;X<N;X+=1,A+=2){var l=M[X],k=l.value;R[A]=l.name;R[A+1]=k}}return d};
ckq=function(M,d,N,R,X){return d==N&&R==X};
SIj=function(M){for(var d=so,N=Pg();N!==M;){var R=N.nextSibling;d.removeChild(N);o4.deleted.push(N);N=R}};
Pg=function(){return r0?r0.nextSibling:so.firstChild};
Ku=function(){r0=Pg()};
e1N=function(M,d,N){Ku();var R;a:{if(R=r0){do{var X=R,A=M,l=d,k=j9(X,l);if(z1Z(X,A,k.nameOrCtor,l,k.key))break a}while(d&&(R=R.nextSibling))}R=null}R||(M==="#text"?(N=yJ.createTextNode(""),JkN(N,"#text",null),M=N):(R=yJ,X=so,typeof M==="function"?R=new M:R=(X=M==="svg"?"http://www.w3.org/2000/svg":M==="math"?"http://www.w3.org/1998/Math/MathML":X==null||j9(X).nameOrCtor==="foreignObject"?null:X.namespaceURI)?R.createElementNS(X,M):R.createElement(M),JkN(R,M,d),M=R,N&&M.setAttribute("nonce",N)),o4.created.push(M),
R=M);N=R;if(N!==r0){if(bAN.indexOf(N)>=0)for(M=so,d=N.nextSibling,R=r0;R!==null&&R!==N;)X=R.nextSibling,M.insertBefore(R,d),R=X;else so.insertBefore(N,r0);r0=N}};
HAZ=function(M,d,N){e1N(M,d,N);so=r0;r0=null;return so};
nWi=function(){SIj(null);r0=so;so=so.parentNode};
Jl=function(){r0=so.lastChild};
L0L=function(M,d){d=d===void 0?{}:d;var N=d.matches===void 0?ckq:d.matches;return function(R,X,A){var l=o4,k=yJ,T=bAN,W=cg,w=S9,p=r0,m=so,I=z1Z;yJ=R.ownerDocument;o4=new iAS(R);z1Z=N;cg=[];S9=[];r0=null;var O=so=R.parentNode,y,c=fxi.call(R);if((y=c.nodeType===11||c.nodeType===9?c.activeElement:null)&&R.contains(y)){for(c=[];y!==O;)c.push(y),y=y.parentNode||(O?y.host:null);O=c}else O=[];bAN=O;try{return M(R,X,A)}finally{R=o4,zT&&R.deleted.length>0&&zT(R.deleted),yJ=k,o4=l,z1Z=I,cg=W,S9=w,r0=p,so=m,
bAN=T}}};
t6N=function(M,d,N,R){bd.push(K0Z);bd.push(M);bd.push(d);bd.push(N);bd.push(R)};
axq=function(M,d,N){var R=S9;d=d._attrsArr||(d._attrsArr=vWv(R.length));for(var X=!d.length||!1,A=0;A<R.length;A+=2){var l=R[A];if(X)d[A]=l;else if(d[A]!==l)break;var k=R[A+1];if(X||d[A+1]!==k)d[A+1]=k,t6N(M,l,k,N)}if(A<R.length||A<d.length){for(A=X=A;A<d.length;A+=2)e9[d[A]]=d[A+1];for(A=X;A<R.length;A+=2)X=R[A],l=R[A+1],e9[X]!==l&&t6N(M,X,l,N),d[A]=X,d[A+1]=l,delete e9[X];vg(d,R.length);for(var T in e9)t6N(M,T,void 0,N),delete e9[T]}M=G2v;G2v=N=bd.length;for(T=M;T<N;T+=5)(0,bd[T])(bd[T+1],bd[T+
2],bd[T+3],bd[T+4]);G2v=M;vg(bd,M);vg(R,0)};
fu=function(M){e1N("#text",null);var d=r0;var N=j9(d);if(N.text!==M){N=N.text=M;for(var R=1;R<arguments.length;R+=1)N=(0,arguments[R])(N);d.data!==N&&(d.data=N)}};
ZAi=function(M,d,N){if(N===!1&&UU6.has(d))OAq(M,d,null);else if(d!=="idomKey"&&d!=="skip"&&d!=="skipchildren"&&d!=="children"&&d!=="el"){if(d.startsWith("on"))if(d[2]===":"){if(N===void 0||N===null){var R;(R=G5.handleError)==null||R.call.apply(R,[G5].concat(_.wu(I4(Error("Wb`"+d),M.tagName))));M[d]=void 0;return}if(typeof N!=="object"||N===null)throw Error("Xb`"+d+"`"+typeof N);if(typeof N.getFn!=="function")throw Error("Yb`"+d+"`"+Object.keys(N));var X=N.getFn(0),A=d.slice(3);if((R=DK())&&M["on"+
A]===void 0)M.addEventListener(A,X),_.mF(function(){return void M.removeEventListener(A,X)});
else if(R||!uVZ.includes(A))M["on"+A]=X}else{C7Z(M,d,N);return}else if(d.startsWith("data-")&&typeof N==="string")try{N=xUq(N)}catch(l){N="zSoyz"}typeof N!=="function"||M._disposeEffects!=null?(G5.enableAttributeSanitization&&(N=qIS(M.tagName,d,N)),d==="style"?YIv(M,d,N):d.startsWith("prop:")?(d=d.slice(5),M[d]=N):C7Z(M,d,N)):(M._signalProps||(M._signalProps=[]),M._signalValues||(M._signalValues=[]),M._signalProps.push(d))}};
EWj=function(M,d,N){N=(N===void 0?{}:N).isReactive;if(d==null?0:d.el){var R=d.el;if(typeof R==="function")R(M);else{var X;(X=R.onRender)==null||X.call(R,M);M._disposeRef||(M._disposeRef=function(){var A;(A=R.onUnmount)==null||A.call(R);delete M._disposeRef},N&&_.mF(function(){var A;
return void((A=M._disposeRef)==null?void 0:A.call(M))}))}}};
M5p=function(M){return FD6(M)&&Lu in M};
dZv=function(M){return M5p(M)?M[Lu].flattened:M};
NLZ=function(M,d){var N=_.wH.apply(2,arguments),R;d=(R=d)!=null?R:{};R={};return R.type=M,R.props=d,R.children=N,R[tl]=!0,R};
_.GT=function(M){return M.children};
a4=function(M){var d=R9Z!==NLZ;R9Z=M?XhA:NLZ;return d};
Cu=function(M){return _.Me(M)?"nodeType"in M:!1};
xT=function(){return document.createTextNode("")};
ZK=function(M){M=document.createTextNode(String(M));M._isSignalTextNode=!0;return M};
F7p=function(M){var d=document.createElement("div");if(!(M instanceof vQ)){if(M.contentKind!==Eo)throw Error("Ub");M=O0(M.toString())}_.zP(d,M);M=_.V(d.childNodes);for(var N=M.next();!N.done;N=M.next())N.value._isSafeOrSanitizedHtmlNode=!0;return d};
MV=function(M){M=typeof M;return M==="string"||M==="number"||M==="boolean"};
AQL=function(M){return M instanceof NO||ly(M)||"function"==typeof _.HQ&&M instanceof _.HQ||!1};
V5i=function(M,d){var N=M.parentElement;if(!N)return d;N.replaceChild(d,M);return d};
lSL=function(M,d){var N=M[0].parentElement;if(N)if(M[0].previousSibling||M[M.length-1].nextSibling){N.insertBefore(d,M[0]);for(var R=M.length-1;R>=0;R--)N.removeChild(M[R])}else N.textContent="",N.appendChild(d);return d};
$ZZ=function(M,d){if(M[0].parentElement)for(var N=M[0].parentElement,R=d.length,X=M.length,A=R,l=0,k=0,T=M[X-1].nextSibling,W=null;l<X||k<A;)if(M[l]===d[k])l++,k++;else{for(;M[X-1]===d[A-1];)X--,A--;if(X===l)for(var w=A<R?k?d[k-1].nextSibling:d[A-k]:T;k<A;){var p=d[k++];N.insertBefore(p,w)}else if(A===k)for(;l<X;)w=M[l],W&&W.has(w)||N.removeChild(w),l++;else if(M[l]===d[A-1]&&d[k]===M[X-1])w=M[--X].nextSibling,N.insertBefore(d[k++],M[l++].nextSibling),N.insertBefore(d[--A],w),M[X]=d[A];else{if(!W)for(W=
new Map,w=k;w<A;)W.set(d[w],w++);w=W.get(M[l]);if(w==null)N.removeChild(M[l]),l++;else if(k<w&&w<A){p=l;for(var m=1,I=void 0;++p<X&&p<A&&(I=W.get(M[p]))!=null&&I===w+m;)m++;if(m>w-k)for(p=M[l];k<w;)N.insertBefore(d[k++],p);else N.replaceChild(d[k++],M[l++])}else l++}}return d};
kiS=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("gc`"+M.length+"`"+M.map(BLj).join(", "));M=M[0]}if(M==null)return null;if(!(M instanceof _.KS)){var d,N;if((d=window)==null?0:(N=d.trustedTypes)==null?0:N.isScript(M))throw Error("fc");if(String(M).trim().length===0)return null;throw Error("hc`"+BLj(M));}return M};
TLS=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("ic`"+M.length+"`"+M.map(BLj).join(", "));M=M[0]}if(M==null)return null;if(!vZZ(M)){if(String(M).trim().length===0)return null;throw Error("jc`"+BLj(M));}return M};
BLj=function(M){return"("+typeof M+") "+(M!=null&&typeof M==="object"?M.constructor.name:typeof M)+" "+M};
NV=function(M,d){function N(){X=!1;d.isControlFlowComponent&&ld++;var A=R[0],l=R[Lu].flattened,k=a4(!0);try{var T=M(),W=DZN(A,T,R);Array.isArray(W)||(R[Lu].flattened=[W]);var w=R[Lu].flattened;if(l&&(!Array.isArray(l)||l.length!==0)){var p=Array.isArray(l)?l[0]:l,m=p[dK],I=p._disposeEffects;p._disposeEffects=void 0;p=Array.isArray(w)?w[0]:w;p[dK]=m;p[dK]&&(p[dK].numNodes=p===w?1:w.length);p._disposeEffects=I}R[0]=W;d.isControlFlowComponent&&NcZ(!1)}catch(O){throw d.isControlFlowComponent&&NcZ(!0),
O;}finally{a4(k)}}
d=d===void 0?{}:d;var R=gvS(),X=!0;_.w0(function(){(W7r==null?0:W7r.logger)&&!X?W7r.logger.logGraft(R[0],N):N()},d.debugName);
return R};
DZN=function(M,d,N){for(;typeof d==="function";)d=d();if(d!=null&&d[tl]){var R,X,A;(A=G5.handleError)==null||A.call.apply(A,[G5].concat(_.wu(I4(Error("kc`"+((R=d.type)==null?void 0:R.TAG_NAME)),(X=d.type)==null?void 0:X.TAG_NAME))))}if(M==null)return d==null?xT():MV(d)?ZK(d):AQL(d)?ZK(d.toString()):Cu(d)?d:d.length===0?xT():whr(d,N);if(Cu(M)){if(d==null)return V5i(M,xT());if(MV(d))return phZ(M,d);if(AQL(d))return phZ(M,d.toString());if(Cu(d))return V5i(M,d);if(d.length===0)return V5i(M,xT());d=whr(d,
N);$ZZ([M],N[Lu].flattened);return d}M=RJ(M);if(d==null)return lSL(M,xT());if(MV(d))return lSL(M,ZK(d));if(AQL(d))return lSL(M,ZK(d.toString()));if(Cu(d))return $ZZ(M,[d])[0];if(d.length===0)return lSL(M,xT());d=whr(d,N);$ZZ(M,N[Lu].flattened);return d};
phZ=function(M,d){M.nodeType===Node.TEXT_NODE?M.textContent!==String(d)&&(M.textContent=String(d)):M=V5i(M,ZK(d));return M};
RJ=function(M,d,N){return mZ6(M,d!=null?d:[],N===void 0?!1:N)};
whr=function(M,d){var N=RJ(M,void 0,!0);if(N.length===0)return xT();d[Lu].flattened=N;return M};
mZ6=function(M,d,N,R,X){d=d===void 0?[]:d;N=N===void 0?!1:N;X=X===void 0?-1:X;if(M==null)return d;if(M instanceof Xo)return M=M.render(),mZ6(M,d,N,R,X);if(Cu(d)&&d.nodeType===Node.ELEMENT_NODE)switch(d.tagName){case "SCRIPT":N=kiS(M);N!==null&&_.cQ(d,N);return;case "STYLE":N=TLS(M);N!==null&&(d.textContent=_.OKZ(N));return}MV(M)&&(M=ZK(M),R&&N&&(R[X]=M));if(M!=null&&M.contentKind===Eo||M instanceof vQ){N=F7p(M);N=Array.from(N.childNodes);N=_.V(N);for(M=N.next();!M.done;M=N.next())h9i(d,M.value);return d}AQL(M)&&
(M=ZK(M.toString()),R&&N&&(R[X]=M));if(Cu(M))return h9i(d,M);if(Array.isArray(M)){for(var A=0;A<M.length;A++)mZ6(M[A],d,N,M,A);return d}if(typeof M==="function"){M=NV(M,{debugName:"qmF2ne"})[0];if(Array.isArray(M)){N=_.V(M);for(M=N.next();!M.done;M=N.next())h9i(d,M.value);return d}R&&N&&(R[X]=M);return h9i(d,M)}if(M!=null&&M[tl]){R=a4(!0);X=R9Z;try{A=X.apply(null,[M.type,M.props].concat(_.wu(M.children)))}finally{a4(R)}return mZ6(A,d,N)}var l;(l=G5.handleError)==null||l.call.apply(l,[G5].concat(_.wu(I4(Error("lc")))));
return d};
gvS=function(M){var d={};d=Object.assign([],(d[Lu]={flattened:[]},d));if(!M)return d;d[0]=whr(M,d);return d};
h9i=function(M,d){Array.isArray(M)?M.push(d):M.appendChild(d);return M};
Fo=function(M){if(!G5.enableLazyTsx)return M;if(Array.isArray(M)){for(var d=0;d<M.length;d++)M[d]=Fo(M[d]);return M}return M instanceof Xo?(M=M.render(),Fo(M)):M};
ISi=function(M,d){var N,R,X=QRZ(M),A=function(I){R=I;I=a4(!0);var O=Ck(AA);dBi("render",X);try{N=Fo(M(d))}finally{N2A("render",X),Ck(O),a4(I)}};
A=G5.enableContextPerComponent?XJL(A,X):hl(A,G5.alwaysTrackContexts||!!HU);VwZ(R);if(!d.renderedFromIdom){var l=nk(R);try{return qDA(M,d,N),N}finally{nk(l)}}!M5p(N)&&Array.isArray(N)&&(N=gvS(N));var k=dZv(N);l=Array.isArray(k)?k[0]:k;var T=!1;if(l){var W,w=(W=d==null?void 0:d.idomKey)!=null?W:M;W=k!==l;l._disposeEffects=A;var p=l[dK]||{},m=M5p(N)?N:p.sourceDynamicRange;Object.assign(p,{key:w,numNodes:W?k.length:1,context:R,higherOrder:!!l[dK],sourceDynamicRange:m});l[dK]=p}else T=!0;(function(){var I=
nk(R);try{qDA(M,d,k)}finally{nk(I)}})();
T&&A();return N};
QRZ=function(M){var d,N;return(N=(d=M.debugName)!=null?d:M.name)!=null?N:"[component]"};
vvL=function(M){var d={},N;for(N in M)d={prev$jscomp$23:void 0,next$jscomp$25:void 0},d.prev$jscomp$23=VD[N],d.next$jscomp$25=M[N],VD[N]=function(R){return function(){var X=_.wH.apply(0,arguments);R.prev$jscomp$23.apply(null,_.wu(X));R.next$jscomp$25.apply(null,_.wu(X))}}(d)};
OaZ=function(){if(DK())throw Error("mc");return ls};
jRj=function(M,d){if(!M.__unmounted&&d){M.__unmounted=!0;try{M.didUnmount()}catch(X){var N,R;(R=G5.handleError)==null||R.call.apply(R,[G5].concat(_.wu(I4(X,(N=M.JSC$8152___type)==null?void 0:N.TAG_NAME))))}VD.didUnmount(M);M.el=null;d.__instance&&delete d.__instance}};
PvZ=function(M,d,N){M._signalProps!=null&&M._disposeEffects==null&&((N===void 0?0:N)?M._disposeEffects=hl(function(){return void sRr(M,d)},G5.alwaysTrackContexts||!!HU):sRr(M,d))};
sRr=function(M,d){_.w0(function(){for(var N=M._signalProps,R=M._signalValues,X=0;X<N.length;X++){var A=N[X],l=d[A]();R[X]!==l&&(R[X]=l,ZAi(M,A,l))}},"e3YVbb")};
ovZ=function(M,d,N){var R,X=[];M._disposeEffects=hl(function(){_.w0(function(){var A=N();if(A===null||A===void 0)A="";if(MV(A)||A===null)R!=null||(R=document.createTextNode("")),R.parentNode!==M&&(R._isSignalTextNode=!0,M.insertBefore(R,d)),R.textContent=String(A);else if(A!=null&&A.contentKind===Eo||A instanceof vQ){for(var l=X.length>0?X[X.length-1].nextSibling:d,k=_.V(X),T=k.next();!T.done;T=k.next())M.removeChild(T.value);A=F7p(A);X=Array.from(A.childNodes);A=_.V(X);for(k=A.next();!k.done;k=A.next())M.insertBefore(k.value,
l)}else throw T=(k=(l=$T)==null?void 0:l.name)!=null?k:"unknown",Error("bc`"+T+"`"+typeof A);},"VvDgC")},G5.alwaysTrackContexts||!!HU)};
yQv=function(M,d){var N=_.wH.apply(2,arguments);d!=null||(d={});return!G5.enableLazyTsx||$T!=null&&!DK()?rQr(M,d,N):new K7p(M,d,N)};
rQr=function(M,d,N){if(M===_.GT)return N;if(typeof M==="function")return $T&&!DK()&&(d.renderedFromIdom=!0),R1j({component:M,debugInstance:d.debugInstance,fn:function(){var A=JQv(M,d,N);if(A)return A;N.length>0&&(d.children=N.length===1?N[0]:N);A=d;if(M.componentType!==Bg)var l=!1;else{A||(A={});var k=new $V(A,M),T=Ck(AA);try{l=k.render(A)}finally{Ck(T)}l instanceof HTMLElement&&(l.__instance=k,k.el=l,k.JSC$8152___type=M,M.TAG_NAME=l.tagName.toLowerCase(),VD.didPatch(k))}return l===!1?ISi(M,d):l}});
var R=cQi(M,d),X;for(X in d)ZAi(R,X,d[X]);PvZ(R,d);RJ(N,R);EWj(R,d,{isReactive:!0});SDA(R,d);return R};
cQi=function(M,d){M=(z9i.has(M.toLowerCase())?0:baA.has(M.startsWith("svg:")?M.replace("svg:",""):M))?document.createElementNS("http://www.w3.org/2000/svg",M.startsWith("svg:")?M.replace("svg:",""):M):e9Z(M,d)||document.createElement(M);M[Ha2]=!0;return M};
nvi=function(M){if(M){var d;(d=M._disposeRef)==null||d.call(M);var N;(N=M._disposeEffects)==null||N.call(M);M.__instance&&M.__instance instanceof By&&(d=M.__instance,jRj(d,M),d instanceof $V&&d.disposeEffects());for(d=0;d<M.childNodes.length;d++)nvi(M.childNodes[d])}};
fSv=function(M){iaZ.push(M)===1&&requestAnimationFrame(function(){setTimeout(function(){var d=[].concat(_.wu(iaZ));iaZ=[];d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;try{for(var R=0;R<N.length;R++)nvi(N[R])}catch(X){R=N=void 0,(R=(N=G5).handleError)==null||R.call.apply(R,[N].concat(_.wu(I4(X))))}}})})};
_.g=function(M,d){return R9Z.apply(null,[M,d].concat(_.wu(_.wH.apply(2,arguments))))};
t5p=function(){var M=document.body.firstElementChild;window.ng||M.__ngContext__||(M.__ngContext__={},M.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=L7L)};
_.kV=function(M){var d=M.cond;if(d===void 0)return M.else&&M.else();var N=_.Al(function(){return!!d()},void 0,"y0Xknf"),R=function(){var X=d();
if(!X){var A;(A=G5.handleError)==null||A.call.apply(A,[G5].concat(_.wu(I4(GiZ.nonNullableCondIsNull()))))}return X};
return NV(function(){var X=N(),A;hl(function(){var l=Ck(AA);try{A=Fo(X?M.then(R):M.else&&M.else())}finally{Ck(l)}},!0);
return A},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
aSZ=function(M){return _.kV(M)};
_.TN=function(M){return M.keyBy==="INDEX"?UZN(M):uyp(M)};
Cv2=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){var N=void 0;(N=d.value)==null||N()}};
uyp=function(M){var d=M.keyBy===void 0||M.keyBy==="REFERENCE",N=d?function(w){return w}:M.keyBy,R=[],X=[],A=[],l=[],k=[],T=[],W=!0;
_.mF(function(){Cv2(l)});
return NV(function(){var w=M.each(),p=w.length;if(p===0){if(R.length===0&&!W)return A;Cv2(l);R=w;X=[];for(w=0;w<R.length;w++)X.push(N(R[w]));A=[];l=[];k=[];T=[];M.fallback&&(l[0]=xZq(function(){A[0]=Fo(M.fallback())}));
W=!1;return A}for(var m=new YDj,I=R.length-1;I>=0;I--)m.push(X[I],I);I=Array(p);for(var O=Array(p),y=Array(p),c=Array(p),e=Array(d?0:p),t={i$jscomp$485:0};t.i$jscomp$485<p;t={i$jscomp$485:t.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},t.i$jscomp$485++){t.item$jscomp$103=w[t.i$jscomp$485];t.key$jscomp$523=N(t.item$jscomp$103);var C=m.pop(t.key$jscomp$523);C!=null?(y[t.i$jscomp$485]=A[C],O[t.i$jscomp$485]=X[C],I[t.i$jscomp$485]=l[C],c[t.i$jscomp$485]=k[C],d||(e[t.i$jscomp$485]=T[C]),VJ(function(U){return function(){c[U.i$jscomp$485](U.i$jscomp$485);
if(!d)e[U.i$jscomp$485](U.item$jscomp$103)}}(t)),delete l[C]):I[t.i$jscomp$485]=xZq(function(U){return function(){var Fi=_.V(_.d0(U.i$jscomp$485,void 0,"g4fKif")),Y=Fi.next().value;
Fi=Fi.next().value;c[U.i$jscomp$485]=Fi;O[U.i$jscomp$485]=U.key$jscomp$523;if(d)y[U.i$jscomp$485]=Fo(M.children(U.item$jscomp$103,Y));else{var $i=_.V(_.d0(U.item$jscomp$103,void 0,"Ile0Kc"));Fi=$i.next().value;$i=$i.next().value;e[U.i$jscomp$485]=$i;y[U.i$jscomp$485]=Fo(M.children(Fi,Y))}}}(t))}Cv2(l);
R=w;X=O;A=y;l=I;k=c;T=e;W=!1;return y},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
UZN=function(M){var d=[],N=[],R=[],X=[],A=!1;_.mF(function(){for(var l=_.V(X),k=l.next();!k.done;k=l.next())k=k.value,k()});
return NV(function(){var l=M.each();A&&l.length>0&&(X.pop()(),d.pop(),A=!1);for(var k=Array(l.length),T={i$jscomp$486:0};T.i$jscomp$486<l.length;T={i$jscomp$486:T.i$jscomp$486},T.i$jscomp$486++)if(T.i$jscomp$486<d.length)d[T.i$jscomp$486]!==l[T.i$jscomp$486]&&(VJ(function(w){return function(){return void N[w.i$jscomp$486](l[w.i$jscomp$486])}}(T)),d[T.i$jscomp$486]=l[T.i$jscomp$486]),k[T.i$jscomp$486]=R[T.i$jscomp$486];
else{var W=xZq(function(w){return function(){d[w.i$jscomp$486]=l[w.i$jscomp$486];var p=_.V(_.d0(l[w.i$jscomp$486],void 0,"QVJXFd")),m=p.next().value;p=p.next().value;N[w.i$jscomp$486]=p;k[w.i$jscomp$486]=Fo(M.children(m,w.i$jscomp$486))}}(T));
X[T.i$jscomp$486]=W}for(;d.length>l.length;)d.pop(),X.pop()(),N.pop();l.length===0&&!A&&M.fallback&&(T=xZq(function(){k[0]=Fo(M.fallback())}),X[0]=T,A=!0);
return R=k},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
xZq=function(M){var d=HU;return hl(function(N){var R=Ck(AA);try{N.parent=d,M(N)}finally{Ck(R)}},!1)};
_.gK=function(M){return M};
_.Wy=function(M){return{isDefault:!0,children:M.children}};
_.pF=function(M){var d=ZaZ(M),N=_.Al(function(){return EvN(d)},void 0,"BHmkEe");
return NV(function(){var R=N(),X;hl(function(){var A=Ck(AA);try{X=Fo(R())}finally{Ck(A)}});
return X},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
ZaZ=function(M){M=M.children;return Array.isArray(M)?M:[M]};
MF2=function(M){var d=M.props;M=M.getChildren()[0];return d.when?{when:d.when,children:M}:{isDefault:!0,children:M}};
EvN=function(M){var d=function(){return null};
M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N!=null&&N[tl]&&(N=N.type===_.Wy?{isDefault:!0,children:N.children[0]}:{when:N.props.when,children:N.children[0]}),N instanceof Xo&&(N=MF2(N)),N.isDefault)d=N.children;else if(N.when())return N.children;return d};
dEi=function(M){var d=null,N;return{value:null,onRender:function(R){if(N&&R!==N){var X;(X=d)==null||X();N._disposeRef=void 0}N=R;d=M(R)||null},
onUnmount:function(){var R;(R=d)==null||R();d=null}}};
RhZ=function(M){var d=OaZ();if(d==null)throw NDA.PRIMITIVE_INVALID_HOOK_CALL();var N=d.hookCounter++;d.hooks||(d.hooks=[]);var R=d.hooks;R[N]||(R[N]={key:M,host:d});if(M!==R[N].key){var X,A;M=((X=d.JSC$8152___type)==null?void 0:X.name)||((A=d.functionComponent)==null?void 0:A.name);throw NDA.OUT_OF_ORDER_HOOK_CALL(M);}return R[N]};
XmZ=function(M,d){return!M||M.length!==(d==null?void 0:d.length)||M.some(function(N,R){return N!==d[R]})};
mI=function(M,d){var N=RhZ("onChange"),R=OaZ();XmZ(N.deps,d)&&(N.deps=d,N.pendingEffect=M,R.__syncEffects||(R.__syncEffects=[]),R.__syncEffects.push(N))};
lt6=function(M,d){var N;d!=null?N=d:N=_.rA6(document).getAppContext();N.get(Fyi).JSC$25296_getEventTarget().dispatchEvent(new Aai(VFA,M,Eo))};
_.hA=function(M,d){var N=N===void 0?{enableDevtools:!1}:N;var R=g0(function(){var X=Ck(AA);try{return hl(function(){var A=_.rA6(_.qy(M)),l;var k=GNi({rootElement:{value:M},appContext:N.appContext||(A==null?void 0:(l=A.getOptionalAppContext)==null?void 0:l.call(A)),dispatcher:A});A=nk(k);k=a4(!0);ld++;try{RJ(d(),M),NcZ(!1)}catch(T){throw NcZ(!0),T;}finally{a4(k),nk(A)}},!1)}finally{Ck(X)}});
M[$EZ]=!0;N.legacyTriggerSoyRendererEvents&&lt6(M,N.appContext);return function(){M.textContent="";R();M[$EZ]=!1}};
_.QD=function(M){if(M6r(u_)){var d;(d=G5.handleError)==null||d.call.apply(d,[G5].concat(_.wu(I4(Error("ac")))))}var N=HU,R=$T;Promise.resolve().then(function(){N&&!N.isDisposed&&g0(function(){var X=nk(N);try{M()}finally{nk(X)}},{stack:R})})};
qV=function(M,d){mI(function(){return MF(M)},d)};
_.IJ=function(M){DK()?_.QD(function(){MF(M)}):mI(function(){return MF(M)},[])};
kaL=function(M){var d=[].concat(_.wu(M));M.length=0;M=_.V(d);for(d=M.next();!d.done;d=M.next()){d=d.value;BDq(d);var N=d.pendingEffect;d.pendingEffect=null;if(N=N==null?void 0:N())d.pendingCleanup=N}};
BDq=function(M){var d=M.pendingCleanup;M.pendingCleanup=null;d==null||d()};
TDv=function(M,d){if(DK())return M();var N=RhZ("useMemoInternal");XmZ(N.deps,d)&&(N.deps=d,N.value=M());return N.value};
vy=function(M,d){return TDv(M,d)};
Ol=function(M){return TDv(M,[])};
DE2=function(){var M=_.wH.apply(0,arguments),d=Ol(function(){return M.map(function(N){return _.d0(N,void 0,"lnSD0c")})});
qV(function(){for(var N=0;N<M.length;N++)(0,d[N][1])(M[N])},M);
return d.map(function(N){return _.V(N).next().value})};
jx=function(M){return Ol(function(){return{value:M}})};
_.sl=function(M,d){if(!M)return null;M=Object.keys(M);M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;var R=N.toLowerCase();if(R.indexOf(d,R.length-d.length)>-1)return N}return null};
_.oJ=function(){var M=arguments,d=_.Py;M.length>1?d[M[0]]=M[1]:M.length===1&&Object.assign(d,M[0])};
_.rK=function(M,d){return M in _.Py?_.Py[M]:d};
_.KF=function(M,d){return!!_.rK(M,d)};
gCL=function(M){var d=_.Py.EXPERIMENT_FLAGS;return d?d[M]:void 0};
wmZ=function(M){Wyq.forEach(function(d){return d(M)})};
_.JA=function(M){return M&&window.yterr?function(){try{return M.apply(this,arguments)}catch(d){_.yD(d)}}:M};
_.yD=function(M){var d=_.cy("yt.logging.errors.log");d?d(M,"ERROR",void 0,void 0,void 0,void 0,void 0):(d=_.rK("ERRORS",[]),d.push([M,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.oJ("ERRORS",d));wmZ(M)};
_.Sx=function(M,d,N,R,X){var A=_.cy("yt.logging.errors.log");A?A(M,"WARNING",d,N,R,void 0,X):(A=_.rK("ERRORS",[]),A.push([M,"WARNING",d,N,R,void 0,X]),_.oJ("ERRORS",A))};
mES=function(M,d){d=M.split(d);for(var N={},R=0,X=d.length;R<X;R++){var A=d[R].split("=");if(A.length===1&&A[0]||A.length===2)try{var l=pmi(A[0]||""),k=pmi(A[1]||"");if(l in N){var T=N[l];Array.isArray(T)?_.xi(T,k):N[l]=[T,k]}else N[l]=k}catch(m){var W=m,w=A[0],p=String(mES);W.args=[{key:w,value:A[1],query:M,method:hh6===p?"unchanged":p}];Q_v.hasOwnProperty(w)||_.Sx(W)}}return N};
qXA=function(M){var d=[];_.wF.forEach(M,function(N,R){var X=_.ex(R);_.Hy(Array.isArray(N)?N:[N],function(A){A==""?d.push(X):d.push(X+"="+_.ex(A))})});
return d.join("&")};
_.nF=function(M){M.charAt(0)==="?"&&(M=M.substring(1));return mES(M,"&")};
_.is=function(M){return M.indexOf("?")!==-1?(M=(M||"").split("#")[0],M=M.split("?",2),_.nF(M.length>1?M[1]:M[0])):{}};
_.fF=function(M,d){return Itp(M,d||{},!0)};
vCA=function(M,d){return Itp(M,d||{},!1)};
Itp=function(M,d,N){var R=M.split("#",2);M=R[0];R=R.length>1?"#"+R[1]:"";var X=M.split("?",2);M=X[0];X=_.nF(X[1]||"");for(var A in d)if(N||!_.wF.containsKey(X,A))X[A]=d[A];return _.LF(M,X)+R};
Ul=function(M){if(!d)var d=window.location.href;var N=_.tA(M)[1]||null,R=_.GN(M);return N&&R?aJ(M,d):R?_.GN(d)===R&&(Number(_.tA(d)[4]||null)||null)===(Number(_.tA(M)[4]||null)||null):!0};
_.j_r=function(M){M=OHS(M);return M===null?!1:M[0]==="com"&&M[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
OHS=function(M){M=_.GN(M);return M!==null?M.split(".").reverse():null};
pmi=function(M){return M&&M.match(s_i)?M:us(M)};
_.CF=function(M){return new PMq(M)};
_.h=function(){oCi||(oCi=new rar);return oCi};
yaq=function(M){var d=_.xV,N,R;_.B(function(X){N=_.h();return(R=N.resolve(_.CF(d)))?(M(R),X.return(Promise.resolve(R))):X.return(N.resolve(new KyZ(d)).then(function(A){M(A);return A}))})};
_.Q=function(M){M=YV(M);return typeof M==="string"&&M==="false"?!1:!!M};
_.ZR=function(M,d){M=YV(M);return M===void 0&&d!==void 0?d:Number(M||0)};
JaL=function(M){M=YV(M);return Array.isArray(M)?_.mi(M,function(d){return Number(d||0)}):[Number(M||0)]};
_.El=function(M){M=YV(M);return M!==void 0?String(M):""};
_.MB=function(M){M=YV(M);return Array.isArray(M)?_.mi(M,function(d){return String(d||"")}):[String(M||"")]};
caZ=function(){return _.rK("EXPERIMENTS_TOKEN","")};
YV=function(M){return _.rK("EXPERIMENT_FLAGS",{})[M]};
SXS=function(){for(var M=[],d=_.rK("EXPERIMENTS_FORCED_FLAGS",{}),N=_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,M.push({key:R,value:String(d[R])});N=_.rK("EXPERIMENT_FLAGS",{});R=_.V(Object.keys(N));for(var X=R.next();!X.done;X=R.next())X=X.value,X.startsWith("force_")&&d[X]===void 0&&M.push({key:X,value:String(N[X])});return M};
bHL=function(){if(!zhL)return null;var M=zhL();return"open"in M?M:null};
ehp=function(M){switch(d2(M)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
d2=function(M){return M&&"status"in M?M.status:-1};
_.NB=function(M,d){typeof M==="function"&&(M=_.JA(M));return window.setTimeout(M,d)};
_.Rc=function(M,d){typeof M==="function"&&(M=_.JA(M));return window.setInterval(M,d)};
_.XO=function(M){window.clearTimeout(M)};
nCS=function(M){M=_.is(M);for(var d=_.V(HH6),N=d.next();!N.done;N=d.next())if(M[N.value]!==void 0)return!0;return!1};
LyL=function(M,d,N,R,X,A,l,k){N=N===void 0?"GET":N;R=R===void 0?"":R;k=k===void 0?!1:k;var T=bHL();if(!T)return null;var W=function(){(T&&"readyState"in T?T.readyState:0)===4&&d&&_.JA(d)(T)};
"onloadend"in T?T.addEventListener("loadend",W,!1):T.onreadystatechange=W;_.Q("debug_forward_web_query_parameters")&&(M=iHL(M,window.location.search));T.open(N,M,!0);A&&(T.responseType=A);l&&(T.withCredentials=!0);N=N==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(X=ftj(M,X))for(var w in X)T.setRequestHeader(w,X[w]),"content-type"===w.toLowerCase()&&(N=!1);N&&T.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(k&&"setAttributionReporting"in XMLHttpRequest.prototype){M=
{eventSourceEligible:!0,triggerEligible:!1};try{T.setAttributionReporting(M)}catch(p){_.Sx(p)}}T.send(R);return T};
ftj=function(M,d){d=d===void 0?{}:d;var N=Ul(M),R=_.rK("INNERTUBE_CLIENT_NAME"),X=_.Q("web_ajax_ignore_global_headers_if_set"),A;for(A in tF2){var l=_.rK(tF2[A]),k=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||l||(l=_.rK("VISITOR_DATA"));var T;if(!(T=!l)){if(!(T=N||(_.GN(M)?!1:!0))){T=M;var W;if(W=_.Q("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY"))W=OHS(T),W=W===null?!1:W[1]==="google"?
!0:W[2]==="google"?W[0]==="au"&&W[1]==="com"?!0:W[0]==="uk"&&W[1]==="co"?!0:!1:!1;W&&(T=_.FO(T)||"",T=T.split("/"),T="/"+(T.length>1?T[1]:""),W=T==="/pagead");T=W?!0:!1}T=!T}T||X&&d[A]!==void 0||R==="TVHTML5_UNPLUGGED"&&k||(d[A]=l)}"X-Goog-EOM-Visitor-Id"in d&&"X-Goog-Visitor-Id"in d&&delete d["X-Goog-Visitor-Id"];if(N||!_.GN(M))d["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(N||!_.GN(M)){try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}w&&(d["X-YouTube-Time-Zone"]=
w)}document.location.hostname.endsWith("youtubeeducation.com")||!N&&_.GN(M)||(d["X-YouTube-Ad-Signals"]=qXA(Gar()));return d};
_.atZ=function(M,d){var N=_.GN(M);_.Q("debug_handle_relative_url_for_query_forward_killswitch")||!N&&Ul(M)&&(N=document.location.hostname);var R=_.FO(M);R=(N=N&&(N.endsWith("youtube.com")||N.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!N||R)return M;var X=_.nF(d),A={};_.Hy(HH6,function(l){X[l]&&(A[l]=X[l])});
return vCA(M,A)};
UES=function(M,d){d.method="POST";d.postParams||(d.postParams={});return _.Am(M,d)};
uKL=function(M,d){var N=_.rK("XSRF_FIELD_NAME"),R;d.headers&&(R=d.headers["Content-Type"]);return!d.excludeXsrf&&(!_.GN(M)||d.withCredentials||_.GN(M)===document.location.hostname)&&d.method==="POST"&&(!R||R==="application/x-www-form-urlencoded")&&!(d.postParams&&d.postParams[N])};
_.Am=function(M,d){var N=d.format||"JSON";M=CM2(M,d);var R=xES(M,d),X=!1,A=YXZ(M,function(T){if(!X){X=!0;k&&_.XO(k);var W=ehp(T),w=null,p=400<=T.status&&T.status<500,m=500<=T.status&&T.status<600;if(W||p||m)w=ZH6(M,N,T,d.convertToSafeHtml);W&&(W=EC2(N,T,w));w=w||{};p=d.context||_.Np;W?d.onSuccess&&d.onSuccess.call(p,T,w):d.onError&&d.onError.call(p,T,w);d.onFinish&&d.onFinish.call(p,T,w)}},d.method,R,d.headers,d.responseType,d.withCredentials);
R=d.timeout||0;if(d.onTimeout&&R>0){var l=d.onTimeout;var k=_.NB(function(){X||(X=!0,A.abort(),_.XO(k),l.call(d.context||_.Np,A))},R)}return A};
CM2=function(M,d){d.includeDomain&&(M=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+M);var N=_.rK("XSRF_FIELD_NAME");if(d=d.urlParams)d[N]&&delete d[N],M=_.fF(M,d);return M};
xES=function(M,d){var N=_.rK("XSRF_FIELD_NAME"),R=_.rK("XSRF_TOKEN"),X=d.postBody||"",A=d.postParams;uKL(M,d)&&(A||(A={}),A[N]=R);(_.Q("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof X==="string"&&(X=_.nF(X),_.wF.extend(X,A),X=d.postBodyFormat&&d.postBodyFormat==="JSON"?JSON.stringify(X):_.VO(X));A=X||A&&!_.wF.isEmpty(A);!MES&&A&&d.method!=="POST"&&(MES=!0,_.yD(Error("Gc")));return X};
ZH6=function(M,d,N,R){var X=null;switch(d){case "JSON":try{var A=N.responseText}catch(l){throw R=Error("Hc"),R.params=M,_.Sx(R),l;}M=N.getResponseHeader("Content-Type")||"";A&&M.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),X=JSON.parse(A));break;case "XML":if(M=(M=N.responseXML)?dwZ(M):null)X={},_.Hy(M.getElementsByTagName("*"),function(l){X[l.tagName]=NBi(l)})}R&&Rgr(X);
return X};
Rgr=function(M){if(_.Me(M))for(var d in M)d==="html_content"||l2(d,"_html")?M[d]=O0(M[d]):Rgr(M[d])};
EC2=function(M,d,N){if(d&&d.status===204)return!0;switch(M){case "JSON":return!!N;case "XML":return Number(N&&N.return_code)===0;case "RAW":return!0;default:return!!N}};
dwZ=function(M){return M?(M=("responseXML"in M?M.responseXML:M).getElementsByTagName("root"))&&M.length>0?M[0]:null:null};
NBi=function(M){var d="";_.Hy(M.childNodes,function(N){d+=N.nodeValue});
return d};
XlS=function(M){if(M.name==="JavaException")return!0;M=M.stack;return M.includes("chrome://")||M.includes("chrome-extension://")||M.includes("moz-extension://")};
_.lk=function(M){_.DL.call(this);this.JSC$8333_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!M};
AX2=function(M,d){var N=M.length,R=0,X=function(){return M.charCodeAt(R++)};
do{var A=FYN(X);if(A===Infinity)break;var l=A>>3;switch(A&7){case 0:A=FYN(X);if(l===d)return A;break;case 1:if(l===d)return;R+=8;break;case 2:A=FYN(X);if(l===d)return M.substr(R,A);R+=A;break;case 5:if(l===d)return;R+=4;break;default:return}}while(R<N)};
FYN=function(M){var d=M(),N=d&127;if(d<128)return N;d=M();N|=(d&127)<<7;if(d<128)return N;d=M();N|=(d&127)<<14;if(d<128)return N;d=M();return d<128?N|(d&127)<<21:Infinity};
lI6=function(M,d,N,R){if(M)if(Array.isArray(M)){var X=R;for(R=0;R<M.length&&!(M[R]&&(X+=VEi(R,M[R],d,N),X>500));R++);R=X}else if(typeof M==="object")for(X in M){if(M[X]){var A=X;var l=M[X],k=d,T=N;A=typeof l!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(l=AX2(atob(l.replace(/-/g,"+").replace(/_/g,"/")),2))?VEi(A+".ve",l,k,T):0;R+=A;R+=VEi(X,M[X],d,N);if(R>500)break}}else N[d]=$Y(M),R+=N[d].length;else N[d]=$Y(M),R+=N[d].length;return R};
VEi=function(M,d,N,R){N+="."+M;M=$Y(d);R[N]=M;return N.length+M.length};
$Y=function(M){try{return(typeof M==="string"?M:String(JSON.stringify(M))).substr(0,500)}catch(d){return"unable to serialize "+typeof M+" ("+d.message+")"}};
$wq=function(M){switch(M){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.kY=function(M,d,N,R,X){_.BJ.set(M,d,{maxAge:N,path:"/",domain:R===void 0?"youtube.com":R,secure:X===void 0?!1:X})};
_.BBZ=function(M,d,N){_.BJ.remove(M,d===void 0?"/":d,N===void 0?"youtube.com":N)};
_.Ts=function(){if(_.Q("embeds_web_enable_cookie_detection_fix")){if(!_.Np.navigator.cookieEnabled)return!1}else if(!_.BJ.isEnabled())return!1;if(!_.BJ.isEmpty())return!0;_.Q("embeds_web_enable_cookie_detection_fix")?_.BJ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.BJ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.BJ.get("TESTCOOKIESENABLED")!=="1")return!1;_.BJ.remove("TESTCOOKIESENABLED");return!0};
kDp=function(){var M=_.Np.navigator;return M?M.connection:void 0};
TB2=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}};
_.gP2=function(){var M=kDp();if(M){var d=Dwr[M.type||"unknown"]||"CONN_UNKNOWN";M=Dwr[M.effectiveType||"unknown"]||"CONN_UNKNOWN";d==="CONN_CELLULAR_UNKNOWN"&&M!=="CONN_UNKNOWN"&&(d=M);if(d!=="CONN_UNKNOWN")return d;if(M!=="CONN_UNKNOWN")return M}};
wlZ=function(){var M=kDp();if(M!=null&&M.effectiveType)return WYi.hasOwnProperty(M.effectiveType)?WYi[M.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.g2=function(){try{return _.Ds(),!0}catch(M){return!1}};
_.Ds=function(M){if(_.rK("DATASYNC_ID")!==void 0)return _.rK("DATASYNC_ID");throw new _.WJ("Datasync ID not set",M===void 0?"unknown":M);};
_.w2=function(M){this.mechanism=M};
pE=function(M){this.mechanism=M};
mD=function(M){this.storage_=M;this.cachedIsStorageAvailable_=null};
plp=function(){var M=null;try{M=_.Np.localStorage||null}catch(d){}mD.call(this,M)};
mwZ=function(){var M=null;try{M=_.Np.sessionStorage||null}catch(d){}mD.call(this,M)};
hm=function(M,d){this.mechanism_=M;this.JSC$8435_prefix_=d+"::"};
_.hgA=function(M){var d=new plp;return d.isAvailable()?M?new hm(d,M):d:null};
_.Qni=function(M){var d=new mwZ;return d.isAvailable()?M?new hm(d,M):d:null};
II6=function(){var M;return(M=quq())==null?void 0:M.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Ic=function(M){vPq||(_.QO?_.QO.logError(M):(_.qB.push({type:"ERROR",payload:M}),_.qB.length>10&&_.qB.shift()))};
vJ=function(M,d){vPq||(_.QO?_.QO.logEvent(M,d):(_.qB.push({type:"EVENT",eventType:M,payload:d}),_.qB.length>10&&_.qB.shift()))};
Od=function(M){if(M.indexOf(":")>=0)throw Error("Oc");};
jw=function(M){return M.substr(0,M.indexOf(":"))||M};
snN=function(){return(OLZ||jnZ)&&sd("applewebkit")&&!sd("version")&&(!sd("safari")||sd("gsa/"))};
sd=function(M){var d=_.gZ();return d?d.toLowerCase().indexOf(M)>=0:!1};
KY2=function(M,d,N,R){d=jw(d);var X=M instanceof Error?M:Error("Pc`"+M);if(X instanceof PJ)return X;M={objectStoreNames:N,dbName:d,dbVersion:R};if(X.name==="QuotaExceededError")return new PJ("QUOTA_EXCEEDED",M);if(_.PXS&&X.name==="UnknownError")return new PJ("QUOTA_MAYBE_EXCEEDED",M);if(X instanceof oPq)return new PJ("MISSING_INDEX",Object.assign({},M,{objectStore:X.objectStore,index:X.index}));if(X.name==="InvalidStateError"&&rXN.some(function(A){return X.message.includes(A)}))return new PJ("EXECUTE_TRANSACTION_ON_CLOSED_DB",
M);
if(X.name==="AbortError")return new PJ("UNKNOWN_ABORT",M,X.message);X.args=[Object.assign({},M,{name:"IdbError",originalName:X.name})];X.level="WARNING";return X};
oc=function(M,d,N){var R=II6();return new PJ("IDB_NOT_SUPPORTED",{context:{caller:M,publicName:d,version:N,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})};
yXZ=function(M){if(!M)throw Error();throw M;};
JXA=function(M){return M};
cXN=function(M,d,N){var R=function(){try{M.removeEventListener("success",X),M.removeEventListener("error",A)}catch(l){}},X=function(){d(M.result);
R()},A=function(){N(M.error);
R()};
M.addEventListener("success",X);M.addEventListener("error",A)};
Su2=function(M){return new Promise(function(d,N){cXN(M,d,N)})};
yO=function(M){return new r2(new KE(function(d,N){cXN(M,d,N)}))};
zgi=function(M,d){return new r2(new KE(function(N,R){var X=function(){var A=M?d(M):null;A?A.then(function(l){M=l;X()},R):N()};
X()}))};
egv=function(M,d,N){return new Promise(function(R,X){var A=d!==void 0?self.indexedDB.open(M,d):self.indexedDB.open(M);var l=N.blocked,k=N.blocking,T=N.terminated,W=N.upgrade,w=N.closed,p,m=function(){p||(p=new Jm(A.result,{closed:w}));return p};
A.addEventListener("upgradeneeded",function(I){try{if(I.newVersion===null)throw Error("Uc");if(A.transaction===null)throw Error("Vc");I.dataLoss&&I.dataLoss!=="none"&&vJ("IDB_DATA_CORRUPTED",{reason:I.dataLossMessage||"unknown reason",dbName:jw(M)});var O=m(),y=new bLA(A.transaction);W&&W(O,function(c){return I.oldVersion<c&&I.newVersion>=c},y);
y.done.catch(function(c){X(c)})}catch(c){X(c)}});
A.addEventListener("success",function(){var I=A.result;k&&I.addEventListener("versionchange",function(){k(m())});
I.addEventListener("close",function(){vJ("IDB_UNEXPECTEDLY_CLOSED",{dbName:jw(M),dbVersion:I.version});T&&T()});
R(m())});
A.addEventListener("error",function(){X(A.error)});
l&&A.addEventListener("blocked",function(){l()})})};
HLS=function(M,d,N){N=N===void 0?{}:N;return egv(M,d,N)};
_.Sw=function(M,d){d=d===void 0?{}:d;var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return _.Mv(l,2),N=self.indexedDB.deleteDatabase(M),R=d,(X=R.blocked)&&N.addEventListener("blocked",function(){X()}),_.D(l,Su2(N),4);
if(l.nextAddress!=2)return _.cJ(l,0);A=_.Fg(l);throw KY2(A,M,"",-1);})};
iL2=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.zs(nPr,d),2);N=R.yieldResult;return R.return(_.bk(N,["databases"],{enableRetries:!0,mode:"readwrite"},function(X){var A=X.objectStore("databases");return A.get(M.actualName).then(function(l){if(l?M.actualName!==l.actualName||M.publicName!==l.publicName||M.userIdentifier!==l.userIdentifier:1)return A.put(M).then(function(){})})}))})};
_.ew=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return M?_.D(R,_.zs(nPr,d),2):R.return();N=R.yieldResult;return R.return(N.delete("databases",M))})};
_.fIZ=function(M,d){var N,R;return _.B(function(X){return X.nextAddress==1?(N=[],_.D(X,_.zs(nPr,d),2)):X.nextAddress!=3?(R=X.yieldResult,_.D(X,_.bk(R,["databases"],{enableRetries:!0,mode:"readonly"},function(A){N.length=0;return HJ(A.objectStore("databases"),{},function(l){M(l.getValue())&&N.push(l.getValue());return l.continue()})}),3)):X.return(N)})};
LYi=function(M,d){return _.fIZ(function(N){return N.publicName===M&&N.userIdentifier!==void 0},d)};
aIj=function(){var M,d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:M=II6();if((d=M)==null?0:d.hasSucceededOnce)return X.return(!0);var A;if(A=tE2)A=/WebKit\/([0-9]+)/.exec(_.gZ()),A=!!(A&&parseInt(A[1],10)>=600);A&&(A=/WebKit\/([0-9]+)/.exec(_.gZ()),A=!(A&&parseInt(A[1],10)>=602));if(A||nE)return X.return(!1);try{if(N=self,!(N.indexedDB&&N.IDBIndex&&N.IDBKeyRange&&N.IDBObjectStore))return X.return(!1)}catch(l){return X.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return X.return(!1);
_.Mv(X,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.D(X,iL2(R,GD6),4);case 4:return _.D(X,_.ew("yt-idb-test-do-not-use",GD6),5);case 5:return X.return(!0);case 2:return _.Fg(X),X.return(!1)}})};
ufZ=function(){if(Uw6!==void 0)return Uw6;vPq=!0;return Uw6=aIj().then(function(M){vPq=!1;var d;if((d=quq())!=null&&d.expiringStorage_){var N;d={hasSucceededOnce:((N=II6())==null?void 0:N.hasSucceededOnce)||M};var R;(R=quq())==null||R.set("LAST_RESULT_ENTRY_KEY",d,2592E3,!0)}return M})};
ik=function(){return _.cy("ytglobal.idbToken_")||void 0};
_.LE=function(){var M=ik();return M?Promise.resolve(M):ufZ().then(function(d){(d=d?GD6:void 0)&&_.fE("ytglobal.idbToken_",d);return d})};
CXi=function(M){if(!_.g2())throw M=new PJ("AUTH_INVALID",{dbName:M}),_.Ic(M),M;var d=_.Ds();return{actualName:M+":"+d,publicName:M,userIdentifier:d}};
xwi=function(M,d,N,R){var X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return A=(X=Error().stack)!=null?X:"",_.D(w,_.LE(),2);case 2:l=w.yieldResult;if(!l)throw k=oc("openDbImpl",M,d),_.Q("ytidb_async_stack_killswitch")||(k.stack=k.stack+"\n"+A.substring(A.indexOf("\n")+1)),_.Ic(k),k;Od(M);T=N?{actualName:M,publicName:M,userIdentifier:void 0}:CXi(M);_.Mv(w,3);return _.D(w,iL2(T,l),5);case 5:return _.D(w,HLS(T.actualName,d,R),6);case 6:return w.return(w.yieldResult);case 3:return W=
_.Fg(w),_.Mv(w,7),_.D(w,_.ew(T.actualName,l),9);case 9:_.cJ(w,8);break;case 7:_.Fg(w);case 8:throw W;}})};
Yui=function(M,d,N){N=N===void 0?{}:N;return xwi(M,d,!1,N)};
ZLZ=function(M,d,N){N=N===void 0?{}:N;return xwi(M,d,!0,N)};
EPN=function(M,d){d=d===void 0?{}:d;var N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,_.LE(),2);if(X.nextAddress!=3){N=X.yieldResult;if(!N)return X.return();Od(M);R=CXi(M);return _.D(X,_.Sw(R.actualName,d),3)}return _.D(X,_.ew(R.actualName,N),0)})};
MDq=function(M,d,N){M=M.map(function(R){return _.B(function(X){return X.nextAddress==1?_.D(X,_.Sw(R.actualName,d),2):_.D(X,_.ew(R.actualName,N),0)})});
return Promise.all(M).then(function(){})};
dir=function(M){var d=d===void 0?{}:d;var N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,_.LE(),2);if(X.nextAddress!=3){N=X.yieldResult;if(!N)return X.return();Od(M);return _.D(X,LYi(M,N),3)}R=X.yieldResult;return _.D(X,MDq(R,d,N),0)})};
NUr=function(M,d){d=d===void 0?{}:d;var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.LE(),2);if(R.nextAddress!=3){N=R.yieldResult;if(!N)return R.return();Od(M);return _.D(R,_.Sw(M,d),3)}return _.D(R,_.ew(M,N),0)})};
tm=function(M,d){return RJN(M,d)};
FN2=function(M){return _.zs(X1p(),M)};
A$p=function(M,d,N,R){var X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:return X={config:M,hashData:d,timestamp:R!==void 0?R:(0,_.Gs)()},_.D(k,FN2(N),2);case 2:return A=k.yieldResult,_.D(k,A.clear("hotConfigStore"),3);case 3:return _.D(k,A.put("hotConfigStore",X),4);case 4:return l=k.yieldResult,k.return(l)}})};
VDZ=function(M,d,N,R,X){var A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return A={config:M,hashData:d,configData:N,timestamp:X!==void 0?X:(0,_.Gs)()},_.D(T,FN2(R),2);case 2:return l=T.yieldResult,_.D(T,l.clear("coldConfigStore"),3);case 3:return _.D(T,l.put("coldConfigStore",A),4);case 4:return k=T.yieldResult,T.return(k)}})};
lyi=function(M){var d,N;return _.B(function(R){return R.nextAddress==1?_.D(R,FN2(M),2):R.nextAddress!=3?(d=R.yieldResult,N=void 0,_.D(R,_.bk(d,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.ac(X.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){N=A.getValue()})}),3)):R.return(N)})};
$i2=function(M){var d,N;return _.B(function(R){return R.nextAddress==1?_.D(R,FN2(M),2):R.nextAddress!=3?(d=R.yieldResult,N=void 0,_.D(R,_.bk(d,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.ac(X.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){N=A.getValue()})}),3)):R.return(N)})};
BUZ=function(){return _.B(function(M){return _.D(M,dir("ytGcfConfig"),0)})};
kRA=function(){return"INNERTUBE_API_KEY"in _.Py&&"INNERTUBE_API_VERSION"in _.Py};
_.Ud=function(){return{innertubeApiKey:_.rK("INNERTUBE_API_KEY"),innertubeApiVersion:_.rK("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.rK("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.rK("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.rK("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.rK("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.rK("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.rK("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.rK("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.KF("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.KF("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.rK("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.miv=function(M){var d={client:{hl:M.innertubeContextHostLanguage,gl:M.innertubeContextGeoLocation,clientName:M.innertubeContextClientName,clientVersion:M.innertubeContextClientVersion,configInfo:M.innertubeContextClientConfigInfo}};navigator.userAgent&&(d.client.userAgent=String(navigator.userAgent));var N=_.Np.devicePixelRatio;N&&N!=1&&(d.client.screenDensityFloat=String(N));N=caZ();N!==""&&(d.client.experimentsToken=N);N=SXS();N.length>0&&(d.request={internalExperimentFlags:N});TUr(M,void 0,d);
Di2(void 0,d);gSS(void 0,d);WNr(M,void 0,d);w1A(void 0,d);_.Q("start_client_gcf")&&p1p(void 0,d);_.rK("DELEGATED_SESSION_ID")&&!_.Q("pageid_as_header_web")&&(d.user={onBehalfOfUser:_.rK("DELEGATED_SESSION_ID")});!_.Q("fill_delegate_context_in_gel_killswitch")&&(M=_.rK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d.user=Object.assign({},d.user,{serializedDelegationContext:M}));M=_.rK("INNERTUBE_CONTEXT");var R;if(_.Q("enable_persistent_device_token")&&(M==null?0:(R=M.client)==null?0:R.rolloutToken)){var X;
d.client.rolloutToken=M==null?void 0:(X=M.client)==null?void 0:X.rolloutToken}R=Object;X=R.assign;M=d.client;N={};for(var A=_.V(Object.entries(_.nF(_.rK("DEVICE","")))),l=A.next();!l.done;l=A.next()){var k=_.V(l.value);l=k.next().value;k=k.next().value;l==="cbrand"?N.deviceMake=k:l==="cmodel"?N.deviceModel=k:l==="cbr"?N.browserName=k:l==="cbrver"?N.browserVersion=k:l==="cos"?N.osName=k:l==="cosver"?N.osVersion=k:l==="cplatform"&&(N.platform=k)}d.client=X.call(R,M,N);return d};
TUr=function(M,d,N){M=M.innertubeContextClientName;if(M==="WEB"||M==="MWEB"||M===1||M===2)if(d){N=_.uk(d,hJZ,96)||new hJZ;var R=QDA();R=Object.keys(qNj).indexOf(R);R=R===-1?null:R;R!==null&&_.CE(N,3,R);_.ZG(d,96,N)}else N&&(N.client.mainAppWebInfo=(R=N.client.mainAppWebInfo)!=null?R:{},N.client.mainAppWebInfo.webDisplayMode=QDA())};
Di2=function(M,d){var N=_.cy("yt.embedded_player.embed_url");N&&(M?(d=_.uk(M,IyS,7)||new IyS,_.VZ(d,4,N),_.ZG(M,7,d)):d&&(d.thirdParty={embedUrl:N}))};
gSS=function(M,d){var N;if(_.Q("web_log_memory_total_kbytes")&&((N=_.Np.navigator)==null?0:N.deviceMemory)){var R;N=(R=_.Np.navigator)==null?void 0:R.deviceMemory;M?_.xY(M,95,PP(N*1E6)):d&&(d.client.memoryTotalKbytes=""+N*1E6)}};
WNr=function(M,d,N){if(M.appInstallData)if(d){var R;N=(R=_.uk(d,YY,62))!=null?R:new YY;_.VZ(N,6,M.appInstallData);_.ZG(d,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},N.client.configInfo.appInstallData=M.appInstallData)};
w1A=function(M,d){var N=_.gP2();N&&(M?_.CE(M,61,vSZ[N]):d&&(d.client.connectionType=N));_.Q("web_log_effective_connection_type")&&(N=wlZ())&&(M?_.CE(M,94,Obv[N]):d&&(d.client.effectiveConnectionType=N))};
_.PeZ=function(M,d,N){N=N===void 0?{}:N;var R={};_.rK("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":_.rK("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":N.visitorData||_.rK("VISITOR_DATA","")};if(d&&d.includes("www.youtube-nocookie.com"))return R;d=N.authorization||_.rK("AUTHORIZATION");d||(M?d="Bearer "+_.cy("gapi.auth.getToken")().access_token:(jDi.instance||(jDi.instance=new jDi),M=sDL(),_.Q("pageid_as_header_web")||delete M["X-Goog-PageId"],R=Object.assign({},R,M)));d&&(R.Authorization=d);return R};
p1p=function(M,d){var N=oSi();if(N){var R=N.coldConfigData,X=N.coldHashData;N=N.hotHashData;if(M){var A;d=(A=_.uk(M,YY,62))!=null?A:new YY;R=_.VZ(d,1,R);_.VZ(R,3,X).setHotHashData(N);_.ZG(M,62,d)}else d&&(d.client.configInfo=d.client.configInfo||{},R&&(d.client.configInfo.coldConfigData=R),X&&(d.client.configInfo.coldHashData=X),N&&(d.client.configInfo.hotHashData=N))}};
Zs=function(M){for(var d=M.length;--d>=0;)M[d]=0};
r$2=function(M,d,N,R,X){this.static_tree=M;this.extra_bits=d;this.extra_base=N;this.elems=R;this.max_length=X;this.has_stree=M&&M.length};
KNZ=function(M,d){this.dyn_tree=M;this.max_code=0;this.stat_desc=d};
Ed=function(M,d){M.pending_buf[M.pending++]=d&255;M.pending_buf[M.pending++]=d>>>8&255};
MU=function(M,d,N){M.bi_valid>16-N?(M.bi_buf|=d<<M.bi_valid&65535,Ed(M,M.bi_buf),M.bi_buf=d>>16-M.bi_valid,M.bi_valid+=N-16):(M.bi_buf|=d<<M.bi_valid&65535,M.bi_valid+=N)};
dc=function(M,d,N){MU(M,N[d*2],N[d*2+1])};
y$q=function(M,d){var N=0;do N|=M&1,M>>>=1,N<<=1;while(--d>0);return N>>>1};
J$r=function(M,d,N){var R=Array(16),X=0,A;for(A=1;A<=15;A++)R[A]=X=X+N[A-1]<<1;for(N=0;N<=d;N++)X=M[N*2+1],X!==0&&(M[N*2]=y$q(R[X]++,X))};
c$Z=function(M){var d;for(d=0;d<286;d++)M.dyn_ltree[d*2]=0;for(d=0;d<30;d++)M.dyn_dtree[d*2]=0;for(d=0;d<19;d++)M.bl_tree[d*2]=0;M.dyn_ltree[512]=1;M.opt_len=M.static_len=0;M.last_lit=M.matches=0};
SN2=function(M){M.bi_valid>8?Ed(M,M.bi_buf):M.bi_valid>0&&(M.pending_buf[M.pending++]=M.bi_buf);M.bi_buf=0;M.bi_valid=0};
zJ6=function(M,d,N){SN2(M);Ed(M,N);Ed(M,~N);NU.arraySet(M.pending_buf,M.window,d,N,M.pending);M.pending+=N};
bbj=function(M,d,N,R){var X=d*2,A=N*2;return M[X]<M[A]||M[X]===M[A]&&R[d]<=R[N]};
eJi=function(M,d,N){for(var R=M.heap[N],X=N<<1;X<=M.heap_len;){X<M.heap_len&&bbj(d,M.heap[X+1],M.heap[X],M.depth)&&X++;if(bbj(d,R,M.heap[X],M.depth))break;M.heap[N]=M.heap[X];N=X;X<<=1}M.heap[N]=R};
LNN=function(M,d,N){var R=0;if(M.last_lit!==0){do{var X=M.pending_buf[M.d_buf+R*2]<<8|M.pending_buf[M.d_buf+R*2+1];var A=M.pending_buf[M.l_buf+R];R++;if(X===0)dc(M,A,d);else{var l=RQ[A];dc(M,l+256+1,d);var k=HbA[l];k!==0&&(A-=nSZ[l],MU(M,A,k));X--;l=X<256?XV[X]:XV[256+(X>>>7)];dc(M,l,N);k=ibr[l];k!==0&&(X-=fyr[l],MU(M,X,k))}}while(R<M.last_lit)}dc(M,256,d)};
tDZ=function(M,d){var N=d.dyn_tree,R=d.stat_desc.static_tree,X=d.stat_desc.has_stree,A=d.stat_desc.elems,l,k=-1;M.heap_len=0;M.heap_max=573;for(l=0;l<A;l++)N[l*2]!==0?(M.heap[++M.heap_len]=k=l,M.depth[l]=0):N[l*2+1]=0;for(;M.heap_len<2;){var T=M.heap[++M.heap_len]=k<2?++k:0;N[T*2]=1;M.depth[T]=0;M.opt_len--;X&&(M.static_len-=R[T*2+1])}d.max_code=k;for(l=M.heap_len>>1;l>=1;l--)eJi(M,N,l);T=A;do l=M.heap[1],M.heap[1]=M.heap[M.heap_len--],eJi(M,N,1),R=M.heap[1],M.heap[--M.heap_max]=l,M.heap[--M.heap_max]=
R,N[T*2]=N[l*2]+N[R*2],M.depth[T]=(M.depth[l]>=M.depth[R]?M.depth[l]:M.depth[R])+1,N[l*2+1]=N[R*2+1]=T,M.heap[1]=T++,eJi(M,N,1);while(M.heap_len>=2);M.heap[--M.heap_max]=M.heap[1];l=d.dyn_tree;T=d.max_code;R=d.stat_desc.static_tree;X=d.stat_desc.has_stree;A=d.stat_desc.extra_bits;var W=d.stat_desc.extra_base,w=d.stat_desc.max_length,p,m=0;for(p=0;p<=15;p++)M.bl_count[p]=0;l[M.heap[M.heap_max]*2+1]=0;for(d=M.heap_max+1;d<573;d++){var I=M.heap[d];p=l[l[I*2+1]*2+1]+1;p>w&&(p=w,m++);l[I*2+1]=p;if(!(I>
T)){M.bl_count[p]++;var O=0;I>=W&&(O=A[I-W]);var y=l[I*2];M.opt_len+=y*(p+O);X&&(M.static_len+=y*(R[I*2+1]+O))}}if(m!==0){do{for(p=w-1;M.bl_count[p]===0;)p--;M.bl_count[p]--;M.bl_count[p+1]+=2;M.bl_count[w]--;m-=2}while(m>0);for(p=w;p!==0;p--)for(I=M.bl_count[p];I!==0;)R=M.heap[--d],R>T||(l[R*2+1]!==p&&(M.opt_len+=(p-l[R*2+1])*l[R*2],l[R*2+1]=p),I--)}J$r(N,k,M.bl_count)};
GRN=function(M,d,N){var R,X=-1,A=d[1],l=0,k=7,T=4;A===0&&(k=138,T=3);d[(N+1)*2+1]=65535;for(R=0;R<=N;R++){var W=A;A=d[(R+1)*2+1];++l<k&&W===A||(l<T?M.bl_tree[W*2]+=l:W!==0?(W!==X&&M.bl_tree[W*2]++,M.bl_tree[32]++):l<=10?M.bl_tree[34]++:M.bl_tree[36]++,l=0,X=W,A===0?(k=138,T=3):W===A?(k=6,T=3):(k=7,T=4))}};
ayj=function(M,d,N){var R,X=-1,A=d[1],l=0,k=7,T=4;A===0&&(k=138,T=3);for(R=0;R<=N;R++){var W=A;A=d[(R+1)*2+1];if(!(++l<k&&W===A)){if(l<T){do dc(M,W,M.bl_tree);while(--l!==0)}else W!==0?(W!==X&&(dc(M,W,M.bl_tree),l--),dc(M,16,M.bl_tree),MU(M,l-3,2)):l<=10?(dc(M,17,M.bl_tree),MU(M,l-3,3)):(dc(M,18,M.bl_tree),MU(M,l-11,7));l=0;X=W;A===0?(k=138,T=3):W===A?(k=6,T=3):(k=7,T=4)}}};
UiS=function(M){var d=4093624447,N;for(N=0;N<=31;N++,d>>>=1)if(d&1&&M.dyn_ltree[N*2]!==0)return 0;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return 1;for(N=32;N<256;N++)if(M.dyn_ltree[N*2]!==0)return 1;return 0};
FV=function(M,d,N){M.pending_buf[M.d_buf+M.last_lit*2]=d>>>8&255;M.pending_buf[M.d_buf+M.last_lit*2+1]=d&255;M.pending_buf[M.l_buf+M.last_lit]=N&255;M.last_lit++;d===0?M.dyn_ltree[N*2]++:(M.matches++,d--,M.dyn_ltree[(RQ[N]+256+1)*2]++,M.dyn_dtree[(d<256?XV[d]:XV[256+(d>>>7)])*2]++);return M.last_lit===M.lit_bufsize-1};
VN=function(M,d){M.msg=Ak[d];return d};
l7=function(M){for(var d=M.length;--d>=0;)M[d]=0};
$W=function(M){var d=M.state,N=d.pending;N>M.avail_out&&(N=M.avail_out);N!==0&&(NU.arraySet(M.output,d.pending_buf,d.pending_out,N,M.next_out),M.next_out+=N,d.pending_out+=N,M.total_out+=N,M.avail_out-=N,d.pending-=N,d.pending===0&&(d.pending_out=0))};
Dx=function(M,d){var N=M.block_start>=0?M.block_start:-1,R=M.strstart-M.block_start,X=0;if(M.level>0){M.strm.data_type===2&&(M.strm.data_type=UiS(M));tDZ(M,M.l_desc);tDZ(M,M.d_desc);GRN(M,M.dyn_ltree,M.l_desc.max_code);GRN(M,M.dyn_dtree,M.d_desc.max_code);tDZ(M,M.bl_desc);for(X=18;X>=3&&M.bl_tree[uPZ[X]*2+1]===0;X--);M.opt_len+=3*(X+1)+5+5+4;var A=M.opt_len+3+7>>>3;var l=M.static_len+3+7>>>3;l<=A&&(A=l)}else A=l=R+5;if(R+4<=A&&N!==-1)MU(M,d?1:0,3),zJ6(M,N,R);else if(M.strategy===4||l===A)MU(M,2+(d?
1:0),3),LNN(M,Bf,kW);else{MU(M,4+(d?1:0),3);N=M.l_desc.max_code+1;R=M.d_desc.max_code+1;X+=1;MU(M,N-257,5);MU(M,R-1,5);MU(M,X-4,4);for(A=0;A<X;A++)MU(M,M.bl_tree[uPZ[A]*2+1],3);ayj(M,M.dyn_ltree,N-1);ayj(M,M.dyn_dtree,R-1);LNN(M,M.dyn_ltree,M.dyn_dtree)}c$Z(M);d&&SN2(M);M.block_start=M.strstart;$W(M.strm)};
Wf=function(M,d){M.pending_buf[M.pending++]=d};
wc=function(M,d){M.pending_buf[M.pending++]=d>>>8&255;M.pending_buf[M.pending++]=d&255};
Cer=function(M,d){var N=M.max_chain_length,R=M.strstart,X=M.prev_length,A=M.nice_match,l=M.strstart>M.w_size-262?M.strstart-(M.w_size-262):0,k=M.window,T=M.w_mask,W=M.prev,w=M.strstart+258,p=k[R+X-1],m=k[R+X];M.prev_length>=M.good_match&&(N>>=2);A>M.lookahead&&(A=M.lookahead);do{var I=d;if(k[I+X]===m&&k[I+X-1]===p&&k[I]===k[R]&&k[++I]===k[R+1]){R+=2;for(I++;k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&k[++R]===k[++I]&&R<w;);
I=258-(w-R);R=w-258;if(I>X){M.match_start=d;X=I;if(I>=A)break;p=k[R+X-1];m=k[R+X]}}}while((d=W[d&T])>l&&--N!==0);return X<=M.lookahead?X:M.lookahead};
m0=function(M){var d=M.w_size,N;do{var R=M.window_size-M.lookahead-M.strstart;if(M.strstart>=d+(d-262)){NU.arraySet(M.window,M.window,d,d,0);M.match_start-=d;M.strstart-=d;M.block_start-=d;var X=N=M.hash_size;do{var A=M.head[--X];M.head[X]=A>=d?A-d:0}while(--N);X=N=d;do A=M.prev[--X],M.prev[X]=A>=d?A-d:0;while(--N);R+=d}if(M.strm.avail_in===0)break;X=M.strm;N=M.window;A=M.strstart+M.lookahead;var l=X.avail_in;l>R&&(l=R);l===0?N=0:(X.avail_in-=l,NU.arraySet(N,X.input,X.next_in,l,A),X.state.wrap===
1?X.adler=xiZ(X.adler,N,l,A):X.state.wrap===2&&(X.adler=pA(X.adler,N,l,A)),X.next_in+=l,X.total_in+=l,N=l);M.lookahead+=N;if(M.lookahead+M.insert>=3)for(R=M.strstart-M.insert,M.ins_h=M.window[R],M.ins_h=(M.ins_h<<M.hash_shift^M.window[R+1])&M.hash_mask;M.insert&&!(M.ins_h=(M.ins_h<<M.hash_shift^M.window[R+3-1])&M.hash_mask,M.prev[R&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=R,R++,M.insert--,M.lookahead+M.insert<3););}while(M.lookahead<262&&M.strm.avail_in!==0)};
YNj=function(M,d){for(var N;;){if(M.lookahead<262){m0(M);if(M.lookahead<262&&d===0)return 1;if(M.lookahead===0)break}N=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,N=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);N!==0&&M.strstart-N<=M.w_size-262&&(M.match_length=Cer(M,N));if(M.match_length>=3)if(N=FV(M,M.strstart-M.match_start,M.match_length-3),M.lookahead-=M.match_length,M.match_length<=M.max_lazy_match&&M.lookahead>=3){M.match_length--;
do M.strstart++,M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart;while(--M.match_length!==0);M.strstart++}else M.strstart+=M.match_length,M.match_length=0,M.ins_h=M.window[M.strstart],M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+1])&M.hash_mask;else N=FV(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++;if(N&&(Dx(M,!1),M.strm.avail_out===0))return 1}M.insert=M.strstart<2?M.strstart:2;return d===4?(Dx(M,
!0),M.strm.avail_out===0?3:4):M.last_lit&&(Dx(M,!1),M.strm.avail_out===0)?1:2};
hk=function(M,d){for(var N,R;;){if(M.lookahead<262){m0(M);if(M.lookahead<262&&d===0)return 1;if(M.lookahead===0)break}N=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,N=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);M.prev_length=M.match_length;M.prev_match=M.match_start;M.match_length=2;N!==0&&M.prev_length<M.max_lazy_match&&M.strstart-N<=M.w_size-262&&(M.match_length=Cer(M,N),M.match_length<=5&&(M.strategy===1||M.match_length===3&&
M.strstart-M.match_start>4096)&&(M.match_length=2));if(M.prev_length>=3&&M.match_length<=M.prev_length){R=M.strstart+M.lookahead-3;N=FV(M,M.strstart-1-M.prev_match,M.prev_length-3);M.lookahead-=M.prev_length-1;M.prev_length-=2;do++M.strstart<=R&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);while(--M.prev_length!==0);M.match_available=0;M.match_length=2;M.strstart++;if(N&&(Dx(M,!1),M.strm.avail_out===0))return 1}else if(M.match_available){if((N=
FV(M,0,M.window[M.strstart-1]))&&Dx(M,!1),M.strstart++,M.lookahead--,M.strm.avail_out===0)return 1}else M.match_available=1,M.strstart++,M.lookahead--}M.match_available&&(FV(M,0,M.window[M.strstart-1]),M.match_available=0);M.insert=M.strstart<2?M.strstart:2;return d===4?(Dx(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(Dx(M,!1),M.strm.avail_out===0)?1:2};
Zbi=function(M,d){for(var N,R,X,A=M.window;;){if(M.lookahead<=258){m0(M);if(M.lookahead<=258&&d===0)return 1;if(M.lookahead===0)break}M.match_length=0;if(M.lookahead>=3&&M.strstart>0&&(R=M.strstart-1,N=A[R],N===A[++R]&&N===A[++R]&&N===A[++R])){for(X=M.strstart+258;N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&N===A[++R]&&R<X;);M.match_length=258-(X-R);M.match_length>M.lookahead&&(M.match_length=M.lookahead)}M.match_length>=3?(N=FV(M,1,M.match_length-3),M.lookahead-=
M.match_length,M.strstart+=M.match_length,M.match_length=0):(N=FV(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++);if(N&&(Dx(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return d===4?(Dx(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(Dx(M,!1),M.strm.avail_out===0)?1:2};
ESq=function(M,d){for(var N;;){if(M.lookahead===0&&(m0(M),M.lookahead===0)){if(d===0)return 1;break}M.match_length=0;N=FV(M,0,M.window[M.strstart]);M.lookahead--;M.strstart++;if(N&&(Dx(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return d===4?(Dx(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(Dx(M,!1),M.strm.avail_out===0)?1:2};
QN=function(M,d,N,R,X){this.good_length=M;this.max_lazy=d;this.nice_length=N;this.max_chain=R;this.func=X};
MpN=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 NU.Buf16(1146);this.dyn_dtree=new NU.Buf16(122);this.bl_tree=new NU.Buf16(78);l7(this.dyn_ltree);l7(this.dyn_dtree);l7(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new NU.Buf16(16);this.heap=new NU.Buf16(573);l7(this.heap);this.heap_max=this.heap_len=0;this.depth=new NU.Buf16(573);l7(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};
drZ=function(M,d){if(!M||!M.state||d>5||d<0)return M?VN(M,-2):-2;var N=M.state;if(!M.output||!M.input&&M.avail_in!==0||N.status===666&&d!==4)return VN(M,M.avail_out===0?-5:-2);N.strm=M;var R=N.last_flush;N.last_flush=d;if(N.status===42)if(N.wrap===2)M.adler=0,Wf(N,31),Wf(N,139),Wf(N,8),N.gzhead?(Wf(N,(N.gzhead.text?1:0)+(N.gzhead.hcrc?2:0)+(N.gzhead.extra?4:0)+(N.gzhead.name?8:0)+(N.gzhead.comment?16:0)),Wf(N,N.gzhead.time&255),Wf(N,N.gzhead.time>>8&255),Wf(N,N.gzhead.time>>16&255),Wf(N,N.gzhead.time>>
24&255),Wf(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),Wf(N,N.gzhead.os&255),N.gzhead.extra&&N.gzhead.extra.length&&(Wf(N,N.gzhead.extra.length&255),Wf(N,N.gzhead.extra.length>>8&255)),N.gzhead.hcrc&&(M.adler=pA(M.adler,N.pending_buf,N.pending,0)),N.gzindex=0,N.status=69):(Wf(N,0),Wf(N,0),Wf(N,0),Wf(N,0),Wf(N,0),Wf(N,N.level===9?2:N.strategy>=2||N.level<2?4:0),Wf(N,3),N.status=113);else{var X=8+(N.w_bits-8<<4)<<8;X|=(N.strategy>=2||N.level<2?0:N.level<6?1:N.level===6?2:3)<<6;N.strstart!==0&&(X|=
32);N.status=113;wc(N,X+(31-X%31));N.strstart!==0&&(wc(N,M.adler>>>16),wc(N,M.adler&65535));M.adler=1}if(N.status===69)if(N.gzhead.extra){for(X=N.pending;N.gzindex<(N.gzhead.extra.length&65535)&&(N.pending!==N.pending_buf_size||(N.gzhead.hcrc&&N.pending>X&&(M.adler=pA(M.adler,N.pending_buf,N.pending-X,X)),$W(M),X=N.pending,N.pending!==N.pending_buf_size));)Wf(N,N.gzhead.extra[N.gzindex]&255),N.gzindex++;N.gzhead.hcrc&&N.pending>X&&(M.adler=pA(M.adler,N.pending_buf,N.pending-X,X));N.gzindex===N.gzhead.extra.length&&
(N.gzindex=0,N.status=73)}else N.status=73;if(N.status===73)if(N.gzhead.name){X=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>X&&(M.adler=pA(M.adler,N.pending_buf,N.pending-X,X)),$W(M),X=N.pending,N.pending===N.pending_buf_size)){var A=1;break}A=N.gzindex<N.gzhead.name.length?N.gzhead.name.charCodeAt(N.gzindex++)&255:0;Wf(N,A)}while(A!==0);N.gzhead.hcrc&&N.pending>X&&(M.adler=pA(M.adler,N.pending_buf,N.pending-X,X));A===0&&(N.gzindex=0,N.status=91)}else N.status=91;if(N.status===
91)if(N.gzhead.comment){X=N.pending;do{if(N.pending===N.pending_buf_size&&(N.gzhead.hcrc&&N.pending>X&&(M.adler=pA(M.adler,N.pending_buf,N.pending-X,X)),$W(M),X=N.pending,N.pending===N.pending_buf_size)){A=1;break}A=N.gzindex<N.gzhead.comment.length?N.gzhead.comment.charCodeAt(N.gzindex++)&255:0;Wf(N,A)}while(A!==0);N.gzhead.hcrc&&N.pending>X&&(M.adler=pA(M.adler,N.pending_buf,N.pending-X,X));A===0&&(N.status=103)}else N.status=103;N.status===103&&(N.gzhead.hcrc?(N.pending+2>N.pending_buf_size&&$W(M),
N.pending+2<=N.pending_buf_size&&(Wf(N,M.adler&255),Wf(N,M.adler>>8&255),M.adler=0,N.status=113)):N.status=113);if(N.pending!==0){if($W(M),M.avail_out===0)return N.last_flush=-1,0}else if(M.avail_in===0&&(d<<1)-(d>4?9:0)<=(R<<1)-(R>4?9:0)&&d!==4)return VN(M,-5);if(N.status===666&&M.avail_in!==0)return VN(M,-5);if(M.avail_in!==0||N.lookahead!==0||d!==0&&N.status!==666){R=N.strategy===2?ESq(N,d):N.strategy===3?Zbi(N,d):qU[N.level].func(N,d);if(R===3||R===4)N.status=666;if(R===1||R===3)return M.avail_out===
0&&(N.last_flush=-1),0;if(R===2&&(d===1?(MU(N,2,3),dc(N,256,Bf),N.bi_valid===16?(Ed(N,N.bi_buf),N.bi_buf=0,N.bi_valid=0):N.bi_valid>=8&&(N.pending_buf[N.pending++]=N.bi_buf&255,N.bi_buf>>=8,N.bi_valid-=8)):d!==5&&(MU(N,0,3),zJ6(N,0,0),d===3&&(l7(N.head),N.lookahead===0&&(N.strstart=0,N.block_start=0,N.insert=0))),$W(M),M.avail_out===0))return N.last_flush=-1,0}if(d!==4)return 0;if(N.wrap<=0)return 1;N.wrap===2?(Wf(N,M.adler&255),Wf(N,M.adler>>8&255),Wf(N,M.adler>>16&255),Wf(N,M.adler>>24&255),Wf(N,
M.total_in&255),Wf(N,M.total_in>>8&255),Wf(N,M.total_in>>16&255),Wf(N,M.total_in>>24&255)):(wc(N,M.adler>>>16),wc(N,M.adler&65535));$W(M);N.wrap>0&&(N.wrap=-N.wrap);return N.pending!==0?0:1};
N_i=function(M){if(!(this instanceof N_i))return new N_i(M);M=this.options=NU.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},M||{});M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new R5q;this.strm.avail_out=0;var d=this.strm;var N=M.level,R=M.method,X=M.windowBits,A=M.memLevel,l=M.strategy;if(d){var k=1;N===-1&&(N=6);X<0?(k=0,X=-X):X>15&&
(k=2,X-=16);if(A<1||A>9||R!==8||X<8||X>15||N<0||N>9||l<0||l>4)d=VN(d,-2);else{X===8&&(X=9);var T=new MpN;d.state=T;T.strm=d;T.wrap=k;T.gzhead=null;T.w_bits=X;T.w_size=1<<T.w_bits;T.w_mask=T.w_size-1;T.hash_bits=A+7;T.hash_size=1<<T.hash_bits;T.hash_mask=T.hash_size-1;T.hash_shift=~~((T.hash_bits+3-1)/3);T.window=new NU.Buf8(T.w_size*2);T.head=new NU.Buf16(T.hash_size);T.prev=new NU.Buf16(T.w_size);T.lit_bufsize=1<<A+6;T.pending_buf_size=T.lit_bufsize*4;T.pending_buf=new NU.Buf8(T.pending_buf_size);
T.d_buf=T.lit_bufsize;T.l_buf=3*T.lit_bufsize;T.level=N;T.strategy=l;T.method=R;if(d&&d.state){d.total_in=d.total_out=0;d.data_type=2;N=d.state;N.pending=0;N.pending_out=0;N.wrap<0&&(N.wrap=-N.wrap);N.status=N.wrap?42:113;d.adler=N.wrap===2?0:1;N.last_flush=0;if(!XDp){R=Array(16);for(A=l=0;A<28;A++)for(nSZ[A]=l,X=0;X<1<<HbA[A];X++)RQ[l++]=A;RQ[l-1]=A;for(A=l=0;A<16;A++)for(fyr[A]=l,X=0;X<1<<ibr[A];X++)XV[l++]=A;for(l>>=7;A<30;A++)for(fyr[A]=l<<7,X=0;X<1<<ibr[A]-7;X++)XV[256+l++]=A;for(X=0;X<=15;X++)R[X]=
0;for(X=0;X<=143;)Bf[X*2+1]=8,X++,R[8]++;for(;X<=255;)Bf[X*2+1]=9,X++,R[9]++;for(;X<=279;)Bf[X*2+1]=7,X++,R[7]++;for(;X<=287;)Bf[X*2+1]=8,X++,R[8]++;J$r(Bf,287,R);for(X=0;X<30;X++)kW[X*2+1]=5,kW[X*2]=y$q(X,5);FZv=new r$2(Bf,HbA,257,286,15);ATj=new r$2(kW,ibr,0,30,15);VpN=new r$2([],l4q,0,19,7);XDp=!0}N.l_desc=new KNZ(N.dyn_ltree,FZv);N.d_desc=new KNZ(N.dyn_dtree,ATj);N.bl_desc=new KNZ(N.bl_tree,VpN);N.bi_buf=0;N.bi_valid=0;c$Z(N);N=0}else N=VN(d,-2);N===0&&(d=d.state,d.window_size=2*d.w_size,l7(d.head),
d.max_lazy_match=qU[d.level].max_lazy,d.good_match=qU[d.level].good_length,d.nice_match=qU[d.level].nice_length,d.max_chain_length=qU[d.level].max_chain,d.strstart=0,d.block_start=0,d.lookahead=0,d.insert=0,d.match_length=d.prev_length=2,d.match_available=0,d.ins_h=0);d=N}}else d=-2;if(d!==0)throw Error(Ak[d]);M.header&&(d=this.strm)&&d.state&&d.state.wrap===2&&(d.state.gzhead=M.header);if(M.dictionary){var W;typeof M.dictionary==="string"?W=$rZ(M.dictionary):B_N.call(M.dictionary)==="[object ArrayBuffer]"?
W=new Uint8Array(M.dictionary):W=M.dictionary;M=this.strm;A=W;l=A.length;if(M&&M.state)if(W=M.state,d=W.wrap,d===2||d===1&&W.status!==42||W.lookahead)d=-2;else{d===1&&(M.adler=xiZ(M.adler,A,l,0));W.wrap=0;l>=W.w_size&&(d===0&&(l7(W.head),W.strstart=0,W.block_start=0,W.insert=0),N=new NU.Buf8(W.w_size),NU.arraySet(N,A,l-W.w_size,W.w_size,0),A=N,l=W.w_size);N=M.avail_in;R=M.next_in;X=M.input;M.avail_in=l;M.next_in=0;M.input=A;for(m0(W);W.lookahead>=3;){A=W.strstart;l=W.lookahead-2;do W.ins_h=(W.ins_h<<
W.hash_shift^W.window[A+3-1])&W.hash_mask,W.prev[A&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=A,A++;while(--l);W.strstart=A;W.lookahead=2;m0(W)}W.strstart+=W.lookahead;W.block_start=W.strstart;W.insert=W.lookahead;W.lookahead=0;W.match_length=W.prev_length=2;W.match_available=0;M.next_in=R;M.input=X;M.avail_in=N;W.wrap=d;d=0}else d=-2;if(d!==0)throw Error(Ak[d]);this._dict_set=!0}};
kLN=function(M,d){d=d||{};d.gzip=!0;d=new N_i(d);d.push(M,!0);if(d.err)throw d.msg||Ak[d.err];return d.result};
Drj=function(M,d){var N=T_N();N&&N.publish.call(N,M.toString(),M,d)};
mrq=function(M,d,N){var R=T_N();if(!R)return 0;var X=R.subscribe(M.toString(),function(A,l){var k=_.cy("ytPubsub2Pubsub2SkipSubKey");k&&k==X||(k=function(){if(g$A[X])try{if(l&&M instanceof WZZ&&M!=A)try{var T=M.dataClass,W=l;if(!W.args||!W.version)throw Error("Xc");try{if(!T.version_){var w=new T;T.version_=w.version}var p=T.version_}catch(m){}if(!p||W.version!=p)throw Error("Yc");try{l=Reflect.construct(T,_.US(W.args))}catch(m){throw m.message="yt.pubsub2.Data.deserialize(): "+m.message,m;}}catch(m){throw m.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+M.toString()+": "+m.message,m;}d.call(N||window,l)}catch(m){_.yD(m)}},wDp[M.toString()]?_.cy("yt.scheduler.instance")?_.IQ.addLowPriorityJob(k):_.NB(k,0):k())});
g$A[X]=!0;pDq[M.toString()]||(pDq[M.toString()]=[]);pDq[M.toString()].push(X);return X};
I4A=function(){var M=h5q,d=mrq(Qzv,function(N){M.apply(void 0,arguments);qWr(d)});
return d};
qWr=function(M){var d=T_N();d&&(typeof M==="number"&&(M=[M]),_.Hy(M,function(N){d.unsubscribeByKey(N);delete g$A[N]}))};
T_N=function(){return _.cy("ytPubsub2Pubsub2Instance")};
v$i=function(M,d,N){N=N===void 0?{sampleRate:.1}:N;Math.random()<Math.min(.02,N.sampleRate/100)&&Drj("meta_logging_csi_event",{timerName:M,timelineData:d})};
_.OhZ=function(M){return M?(M=M.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.yL(M):null:null};
_.vf=function(M){return M?(M=M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.RO(M):null:null};
szA=function(){jzj||(jzj=_.vf(_.rK("WORKER_SERIALIZATION_URL")));return jzj||void 0};
_.o$r=function(){var M=szA();PYr||M===void 0||(PYr=new Worker(_.XC(M),void 0));return PYr};
_.rTq=function(){return typeof Worker==="function"&&szA()?!0:!1};
_.cTi=function(){if(_.rTq()&&!KZS){var M=function(N){N=N.data;if(N.op==="gzippedGelBatch"){var R=yTi.get(N.key);R&&(JT2(N.gzippedBatch,R.latencyPayload,R.url,R.options,R.sendFn),yTi.delete(N.key))}},d=_.o$r();
d&&(d.addEventListener("message",M),d.onerror=function(){yTi.clear()},KZS=!0)}};
ihN=function(M,d,N,R,X){X=X===void 0?!1:X;var A={startTime:(0,_.Gs)(),ticks:{},infos:{}};if(OI)try{var l=SWi(d);if(l!=null&&(l>z5i||l<bhv))R(M,N);else{if(_.Q("gzip_gel_with_worker")&&(_.Q("initial_gzip_use_main_thread")&&!e5N||!_.Q("initial_gzip_use_main_thread"))){KZS||_.cTi();var k=_.o$r();if(k&&!X){yTi.set(HhS,{latencyPayload:A,url:M,options:N,sendFn:R});k.postMessage({op:"gelBatchToGzip",serializedBatch:d,key:HhS});HhS++;return}}var T=kLN(n$Z(d));JT2(T,A,M,N,R)}}catch(W){_.Sx(W),R(M,N)}else R(M,
N)};
JT2=function(M,d,N,R,X){e5N=!1;var A=(0,_.Gs)();d.ticks.gelc=A;j6++;_.Q("disable_compression_due_to_performance_degredation")&&A-d.startTime>=f4i&&(LZ6++,_.Q("abandon_compression_after_N_slow_zips")?j6===_.ZR("compression_disable_point")&&LZ6>tp6&&(OI=!1):OI=!1);GLZ(d);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=M;R.postParams=void 0;X(N,R)};
a4q=function(M){var d=d===void 0?!1:d;var N=N===void 0?!1:N;var R=(0,_.Gs)(),X={startTime:R,ticks:{},infos:{}},A=d?_.cy("yt.logging.gzipForFetch",!1):!0;if(OI&&A){if(!M.body)return M;try{var l=N?M.body:typeof M.body==="string"?M.body:JSON.stringify(M.body);A=l;if(!N&&typeof l==="string"){var k=SWi(l);if(k!=null&&(k>z5i||k<bhv))return M;N=d?{level:1}:void 0;A=kLN(n$Z(l),N);var T=(0,_.Gs)();X.ticks.gelc=T;if(d){j6++;if((_.Q("disable_compression_due_to_performance_degredation")||_.Q("disable_compression_due_to_performance_degradation_lr"))&&
T-R>=f4i)if(LZ6++,_.Q("abandon_compression_after_N_slow_zips")||_.Q("abandon_compression_after_N_slow_zips_lr")){d=LZ6/j6;var W=tp6/_.ZR("compression_disable_point");j6>0&&j6%_.ZR("compression_disable_point")===0&&d>=W&&(OI=!1)}else OI=!1;GLZ(X)}}M.headers=Object.assign({},{"Content-Encoding":"gzip"},M.headers||{});M.body=A;return M}catch(w){return _.Sx(w),M}}else return M};
SWi=function(M){try{return(new Blob(M.split(""))).size}catch(d){return _.Sx(d),null}};
GLZ=function(M){_.Q("gel_compression_csi_killswitch")||!_.Q("log_gel_compression_latency")&&!_.Q("log_gel_compression_latency_lr")||v$i("gel_compression",M,{sampleRate:.1})};
UrS=function(){this.blockSize=-1};
sI=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var M=1;M<this.blockSize;++M)this.pad_[M]=0;this.total_=this.inbuf_=0;this.reset()};
CYL=function(M){M=Object.assign({},M);delete M.Authorization;var d=uwZ();if(d){var N=new sI;N.update(_.rK("INNERTUBE_API_KEY"));N.update(d);M.hash=_.UT(N.digest(),3)}return M};
oQ=function(){xrZ||(xrZ=new _.Pf("yt.innertube"));return xrZ};
YWN=function(M,d,N,R){if(R)return null;R=oQ().get("nextId",!0)||1;var X=oQ().get("requests",!0)||{};X[R]={method:M,request:d,authState:CYL(N),requestTime:Math.round((0,_.Gs)())};oQ().set("nextId",R+1,86400,!0);oQ().set("requests",X,86400,!0);return R};
ZhZ=function(M){var d=oQ().get("requests",!0)||{};delete d[M];oQ().set("requests",d,86400,!0)};
M2A=function(M){var d=oQ().get("requests",!0);if(d){for(var N in d){var R=d[N];if(!(Math.round((0,_.Gs)())-R.requestTime<6E4)){var X=R.authState,A=CYL(_.PeZ(!1));_.wF.equals(X,A)&&(X=R.request,"requestTimeMs"in X&&(X.requestTimeMs=Math.round((0,_.Gs)())),E$Z(M,R.method,X,{}));delete d[N]}}oQ().set("requests",d,86400,!0)}};
dXZ=function(M){var d;return(M=M==null?void 0:(d=M.error)==null?void 0:d.code)&&M>=400&&M<=599?!1:!0};
NfL=function(M){var d;M=M==null?void 0:(d=M.error)==null?void 0:d.code;return!(M!==400&&M!==415)};
XNL=function(){if(RrL)return RrL();var M={};RrL=tm("LogsDatabaseV2",{objectStores:(M.LogsRequestsStore={addedAtVersion:2},M),shared:!1,upgrade:function(d,N,R){N(2)&&rc(d,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});N(3);N(5)&&(R=R.objectStore("LogsRequestsStore"),R.JSC$8494_wrapped.indexNames.contains("newRequest")&&R.JSC$8494_wrapped.deleteIndex("newRequest"),KA(R,"newRequestV2",["status","interface","timestamp"]));N(7)&&d.JSC$8479_wrapped.objectStoreNames.contains("sapisid")&&d.JSC$8479_wrapped.deleteObjectStore("sapisid");
N(9)&&d.JSC$8479_wrapped.objectStoreNames.contains("SWHealthLog")&&d.JSC$8479_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return RrL()};
yN=function(M){return _.zs(XNL(),M)};
A2Z=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N={startTime:(0,_.Gs)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.D(l,yN(d),2);if(l.nextAddress!=3)return R=l.yieldResult,X=Object.assign({},M,{options:JSON.parse(JSON.stringify(M.options)),interface:_.rK("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.D(l,R.put("LogsRequestsStore",X),3);A=l.yieldResult;N.ticks.tc=(0,_.Gs)();Fl2(N);return l.return(A)})};
V22=function(M,d){var N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return N={startTime:(0,_.Gs)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.D(w,yN(d),2);if(w.nextAddress!=3)return R=w.yieldResult,X=_.rK("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[M,X,0],l=[M,X,(0,_.Gs)()],k=IDBKeyRange.bound(A,l),T="prev",_.Q("use_fifo_for_networkless")&&(T="next"),W=void 0,_.D(w,_.bk(R,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.ac(p.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:k,direction:T},function(m){m.getValue()&&(W=m.getValue(),M==="NEW"&&(W.status="QUEUED",m.update(W)))})}),3);
N.ticks.tc=(0,_.Gs)();Fl2(N);return w.return(W)})};
l3i=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,yN(d),2);N=R.yieldResult;return R.return(_.bk(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){var A=X.objectStore("LogsRequestsStore");return A.get(M).then(function(l){if(l)return l.status="QUEUED",A.put(l).then(function(){return l})})}))})};
$Xv=function(M,d,N,R){N=N===void 0?!0:N;var X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,yN(d),2);X=A.yieldResult;return A.return(_.bk(X,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(l){var k=l.objectStore("LogsRequestsStore");return k.get(M).then(function(T){return T?(T.status="NEW",N&&(T.sendCount+=1),R!==void 0&&(T.options.compress=R),k.put(T).then(function(){return T})):r2.resolve(void 0)})}))})};
Bfi=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,yN(d),2);N=R.yieldResult;return R.return(N.delete("LogsRequestsStore",M))})};
ku2=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,yN(M),2);d=R.yieldResult;N=(0,_.Gs)()-2592E6;return _.D(R,_.bk(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){return HJ(X.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=N)return A.delete().then(function(){return A.continue()})})}),0)})};
TfN=function(){_.B(function(M){return _.D(M,dir("LogsDatabaseV2"),0)})};
Fl2=function(M){_.Q("nwl_csi_killswitch")||v$i("networkless_performance",M,{sampleRate:1})};
_.gBZ=function(M){return _.zs(DXi(),M)};
WlZ=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.gBZ(M),2);d=R.yieldResult;N=(0,_.Gs)()-2592E6;return _.D(R,_.bk(d,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(X){return HJ(X.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=N)return A.delete().then(function(){return A.continue()})})}),0)})};
wNi=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.gBZ(M),2);d=N.yieldResult;return _.D(N,d.clear("SWHealthLog"),0)})};
_.Jk=function(M,d,N,R,X,A,l){X=X===void 0?"":X;A=A===void 0?!1:A;l=l===void 0?!1:l;if(M)if(N&&!sd("cobalt"))_.Sx(new _.WJ("Legacy referrer-scrubbed ping detected")),M&&pNZ(M,void 0,{scrubReferrer:!0});else if(X)LyL(M,d,"POST",X,R);else if(_.rK("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||l)LyL(M,d,"GET","",R,void 0,A,l);else{b:{try{c:{var k=new mX6({url:M});if(sW6(k.JSC$7364_url_,hri)==="1")var T=null;else{var W=sW6(k.JSC$7364_url_,Qjj);if(W==="1"){var w=sW6(k.JSC$7364_url_,qOp);if(w)try{T={version:3,
directUrl:decodeURIComponent(w),asyncUrl:P_L(k.JSC$7364_url_,"act=1","ri=1",I3Z(k))};break c}catch(O){}}T=W==="2"?{version:4,directUrl:P_L(k.JSC$7364_url_,"dct=1","suid="+k.suid_,""),asyncUrl:P_L(k.JSC$7364_url_,"act=1","ri=1","suid="+k.suid_)}:null}}if(T){var p=_.FO(M);var m=!(!p||!p.endsWith("/aclk")||_.oW(M,"ri")!=="1");break b}}catch(O){}m=!1}if(m){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(M,"")){var I=!0;break b}}catch(O){}I=!1}I?(d&&d(),N=!0):N=!1}else N=
!1;N||pNZ(M,d)}};
pNZ=function(M,d,N){N=N===void 0?{}:N;var R=new Image,X=""+vBi++;O3Z[X]=R;R.onload=R.onerror=function(){d&&O3Z[X]&&d();delete O3Z[X]};
N.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=M};
cf=function(M,d){jj2(M,d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
sjA=function(M){var d;return((d=document.featurePolicy)==null?0:d.allowedFeatures().includes("attribution-reporting"))?M+"&nis=6":M+"&nis=5"};
PxA=function(M){if(!M)return!1;try{var d;if(((d=_.nF(M))==null?void 0:d.asm)==="4")return!0}catch(N){_.yD(N)}return!1};
jj2=function(M,d){d?(M=sjA(M),_.Jk(M,void 0,void 0,void 0,"",!0,!0)):_.Jk(M)};
r22=function(){oBZ||(oBZ=new _.Pf("yt.offline"));return oBZ};
KlL=function(M){if(_.Q("offline_error_handling")){var d=r22().get("errors",!0)||{};d[M.message]={name:M.name,stack:M.stack};M.level&&(d[M.message].level=M.level);r22().set("errors",d,2592E3,!0)}};
J2S=function(M,d,N,R){R=R===void 0?!1:R;d=_.Q("web_fp_via_jspb")?Object.assign({},d):d;_.Q("use_cfr_monitor")&&y26(M,d);if(_.Q("use_request_time_ms_header"))d.headers&&Ul(M)&&(d.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Gs)())));else{var X;if((X=d.postParams)==null?0:X.requestTimeMs)d.postParams.requestTimeMs=Math.round((0,_.Gs)())}N&&Object.keys(d).length===0?_.Jk(M):d.compress?d.postBody?(typeof d.postBody!=="string"&&(d.postBody=JSON.stringify(d.postBody)),ihN(M,d.postBody,
d,_.Am,R)):ihN(M,JSON.stringify(d.postParams),d,UES,R):_.Am(M,d)};
c2r=function(M,d){_.Q("use_event_time_ms_header")&&Ul(M)&&(d.headers||(d.headers={}),d.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Gs)())));return d};
_.zri=function(){SOi||(SOi=new _.S6({logOfflineErrors:!0,enablePolling:!0}));return SOi};
y26=function(M,d){var N=d.onError?d.onError:function(){};
d.onError=function(X,A){z2().requestComplete(M,!1);N(X,A)};
var R=d.onSuccess?d.onSuccess:function(){};
d.onSuccess=function(X,A){z2().requestComplete(M,!0);R(X,A)}};
_.b3Z=function(){return _.GN(document.location.toString())!=="www.youtube-nocookie.com"};
_.nBN=function(){return _.cy("ytNetworklessLoggingInitializationOptions")?_.erv.isNwlInitialized:_.H3N};
i3j=function(M,d){if(_.Q("polymer_on_demand_shady_dom")){var N;var R=(N=M.__shady_native_firstElementChild)!=null?N:M.firstElementChild}else R=M.firstElementChild;for(;R;){if(M=d(R)?R:i3j(R,d))return M;R=R.nextElementSibling}return null};
Lli=function(){var M=document;if("visibilityState"in M)return M.visibilityState;var d=f3S+"VisibilityState";if(d in M)return M[d]};
_.t2i=function(M,d){var N;b7(M,function(R){N=d[R];return!!N});
return N};
_.Hf=function(M){var d=Guj(M);d?d.focus():_.e6(M)};
Guj=function(M){return(M=i3j(M,function(d){return _.nA(d)?a3S(d)&&!!d.offsetParent:!1}))?M:null};
_.e6=function(M,d){M.hasAttribute("tabindex")||M.setAttribute("tabindex","-1");M.focus(d)};
UXj=function(M,d,N,R){R=R===void 0?{}:R;M.addEventListener&&(d!="mouseenter"||"onmouseenter"in document?d!="mouseleave"||"onmouseenter"in document?d=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(d="MozMousePixelScroll"):d="mouseout":d="mouseover");return _.wF.findKey(i7,function(X){var A=typeof X[4]==="boolean"&&X[4]==!!R,l=_.Me(X[4])&&_.Me(R)&&_.wF.equals(X[4],R);return!!X.length&&X[0]==M&&X[1]==d&&X[2]==N&&(A||l)})};
_.LA=function(M,d,N,R){R=R===void 0?{}:R;if(!M||!M.addEventListener&&!M.attachEvent)return"";var X=UXj(M,d,N,R);if(X)return X;X=++u86.count+"";var A=!(d!="mouseenter"&&d!="mouseleave"||!M.addEventListener||"onmouseenter"in document);var l=A?function(k){k=new fA(k);if(!_.jM(k.relatedTarget,function(T){return T==M},!0))return k.currentTarget=M,k.type=d,N.call(M,k)}:function(k){k=new fA(k);
k.currentTarget=M;return N.call(M,k)};
l=_.JA(l);M.addEventListener?(d=="mouseenter"&&A?d="mouseover":d=="mouseleave"&&A?d="mouseout":d=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(d="MozMousePixelScroll"),CxZ()||typeof R==="boolean"?M.addEventListener(d,l,R):M.addEventListener(d,l,!!R.capture)):M.attachEvent("on"+d,l);i7[X]=[M,d,N,l,R];return X};
_.YO2=function(M,d,N){var R=R===void 0?{}:R;var X=_.LA(M,d,function(){_.xXN(X);N.apply(M,arguments)},R)};
_.xXN=function(M){M&&(typeof M=="string"&&(M=[M]),_.Hy(M,function(d){if(d in i7){var N=i7[d],R=N[0],X=N[1],A=N[3];N=N[4];R.removeEventListener?CxZ()||typeof N==="boolean"?R.removeEventListener(X,A,N):R.removeEventListener(X,A,!!N.capture):R.detachEvent&&R.detachEvent("on"+X,A);delete i7[d]}}))};
tk=function(M){this.callback_=M;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(M=0;M<4;M++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.LA(window,"mousemove",(0,_.gx)(this.onMouseMove_,this));this.timerId_=_.Rc((0,_.gx)(this.checkPosition_,this),25)};
EBN=function(){var M={};var d=M.preferMobileEvents===void 0?!1:M.preferMobileEvents;M=M.enableScrollEventListener===void 0?!0:M.enableScrollEventListener;if(_.cy("_lact",window)==null){var N=parseInt(_.rK("LACT"),10);N=isFinite(N)?Date.now()-Math.max(N,0):-1;_.fE("_lact",N,window);_.fE("_fact",N,window);N==-1&&_.G2();_.LA(document,"keydown",_.G2);_.LA(document,"keyup",_.G2);_.LA(document,"mousedown",_.G2);_.LA(document,"mouseup",_.G2);d?_.LA(window,"touchmove",function(){Z3L("touchmove",200)},{passive:!0}):
(_.LA(window,"resize",function(){Z3L("resize",200)}),M&&_.LA(window,"scroll",function(){Z3L("scroll",200)}));
new tk(function(){Z3L("mouse",100)});
_.LA(document,"touchstart",_.G2,{passive:!0});_.LA(document,"touchend",_.G2,{passive:!0})}};
Z3L=function(M,d){MGA[M]||(MGA[M]=!0,_.IQ.addLowPriorityJob(function(){_.G2();MGA[M]=!1},d))};
_.G2=function(){_.cy("_lact",window)==null&&EBN();var M=Date.now();_.fE("_lact",M,window);_.cy("_fact",window)==-1&&_.fE("_fact",M,window);(M=_.cy("ytglobal.ytUtilActivityCallback_"))&&M()};
_.aQ=function(){var M=_.cy("_lact",window);return M==null?-1:Math.max(Date.now()-M,0)};
_.Zx=function(M,d,N){var R=_.CA();if(R&&d){var X=R.subscribe(M,function(){var A=arguments,l=function(){xW[X]&&d.apply&&typeof d.apply=="function"&&d.apply(N||window,A)};
try{_.dSZ[M]?l():_.NB(l,0)}catch(k){_.yD(k)}},N);
xW[X]=!0;YW[M]||(YW[M]=[]);YW[M].push(X);return X}return 0};
_.N4i=function(M){var d=_.CA();d&&(typeof M==="number"?M=[M]:typeof M==="string"&&(M=[parseInt(M,10)]),_.Hy(M,function(N){d.unsubscribeByKey(N);delete xW[N]}))};
_.R7r=function(M,d){var N=_.CA();N&&N.publish.apply(N,arguments)};
_.F36=function(M){var d=_.CA();if(d)if(d.clear(M),M)Xuq(M);else for(var N in YW)Xuq(N)};
_.CA=function(){return _.Np.ytPubsubPubsubInstance};
Xuq=function(M){YW[M]&&(M=YW[M],_.Hy(M,function(d){xW[d]&&delete xW[d]}),M.length=0)};
Ayj=function(){var M,d;return"h5vcc"in EI&&((M=EI.h5vcc.traceEvent)==null?0:M.traceBegin)&&((d=EI.h5vcc.traceEvent)==null?0:d.traceEnd)?1:"performance"in EI&&EI.performance.mark&&EI.performance.measure?2:0};
VGi=function(M){var d=Ayj();switch(d){case 1:EI.h5vcc.traceEvent.traceBegin("YTLR",M);break;case 2:EI.performance.mark(M+"-start");break;case 0:break;default:_.RC(d,"unknown trace type")}};
lcZ=function(M){var d=Ayj();switch(d){case 1:EI.h5vcc.traceEvent.traceEnd("YTLR",M);break;case 2:d=M+"-start";var N=M+"-end";EI.performance.mark(N);EI.performance.measure(M,d,N);break;case 0:break;default:_.RC(d,"unknown trace type")}};
$SN=function(M){var d,N;(N=(d=window).onerror)==null||N.call(d,M.message,"",0,0,M)};
B4r=function(M){if(_.Q("web_lifecycle_error_handling_killswitch"))return M();try{return M()}catch(d){$SN(d)}};
k3Z=function(M){return[M.auth===void 0?"undefined":M.auth,M.isJspb===void 0?"undefined":M.isJspb,M.cttAuthInfo===void 0?"undefined":M.cttAuthInfo,M.tier===void 0?"undefined":M.tier].join("/")};
_.q=function(M,d){if(M)return M[d.name]};
dL=function(){var M=_.cy("yt.logging.ims");M||(M=new MZ,_.fE("yt.logging.ims",M));return M};
QTi=function(M,d){if(M.endpoint==="log_event"){T4i(M);var N=DSp(M),R=gQS(M.payload)||"",X=W3j(R),A=200;if(X){if(X.enabled===!1&&!_.Q("web_payload_policy_disabled_killswitch"))return;A=wu2(X.tier);if(A===400){puq(M,d);return}}NZ[N]=!0;N={cttAuthInfo:N,isJspb:!1,tier:A};dL().storePayload(N,M.payload);mSp(d,!1,N,h7i(R))}};
IcL=function(M,d,N){if(d.endpoint==="log_event"){T4i(void 0,d);var R=DSp(d,!0),X=W3j(M),A=200;if(X){if(X.enabled===!1&&!_.Q("web_payload_policy_disabled_killswitch"))return;A=wu2(X.tier);if(A===400){qHv(M,d,N);return}}NZ[R]=!0;R={cttAuthInfo:R,isJspb:!0,tier:A};dL().storePayload(R,xe(d.payload));mSp(N,!0,R,h7i(M))}};
mSp=function(M,d,N,R){d=d===void 0?!1:d;R=R===void 0?!1:R;M&&(RR=new M);M=_.ZR("tvhtml5_logging_max_batch_ads_fork")||_.ZR("tvhtml5_logging_max_batch")||_.ZR("web_logging_max_batch")||100;var X=(0,_.Gs)(),A=vQN(d,N.tier),l=A.lastDebounceQueueFromLogTimeMs;R&&(A.useVideoStatsEndPoint=!0);R=0;N&&(R=dL().getSequenceCount(N));var k=function(){O62({writeThenSend:!0},d,N.tier)};
R>=1E3?k():R>=M?jTA||(jTA=sT6(function(){k();jTA=void 0},0)):X-l>=10&&(PuN(d,N.tier),A.lastDebounceQueueFromLogTimeMs=X)};
puq=function(M,d){if(M.endpoint==="log_event"){_.Q("more_accurate_gel_parser")&&dL().storePayload({isJspb:!1},M.payload);T4i(M);var N=DSp(M),R=new Map;R.set(N,[M.payload]);var X=gQS(M.payload)||"";d&&(RR=new d);return new _.Xy(function(A,l){RR&&RR.isReady()?oQi(R,RR,A,l,{bypassNetworkless:!0},!0,h7i(X)):A()})}};
qHv=function(M,d,N){if(d.endpoint==="log_event"){T4i(void 0,d);var R=DSp(d,!0),X=new Map;X.set(R,[xe(d.payload)]);N&&(RR=new N);return new _.Xy(function(A){RR&&RR.isReady()?ryN(X,RR,A,{bypassNetworkless:!0},!0,h7i(M)):A()})}};
DSp=function(M,d){var N="";if(M.dangerousLogToVisitorSession)N="visitorOnlyApprovedKey";else if(M.cttAuthInfo){if(d===void 0?0:d){d=M.cttAuthInfo.token;N=M.cttAuthInfo;var R=new K3r;N.videoId?R.setVideoId(N.videoId):N.playlistId&&Fy(R,2,yy2,Si(N.playlistId));Jyp[d]=R}else d=M.cttAuthInfo,N={},d.videoId?N.videoId=d.videoId:d.playlistId&&(N.playlistId=d.playlistId),cyj[M.cttAuthInfo.token]=N;N=M.cttAuthInfo.token}return N};
O62=function(M,d,N){M=M===void 0?{}:M;d=d===void 0?!1:d;new _.Xy(function(R,X){var A=vQN(d,N),l=A.useVideoStatsEndPoint;A.useVideoStatsEndPoint=!1;SHp(A.queueTimer);SHp(A.queueMaxTimer);A.queueMaxTimer=0;RR&&RR.isReady()?N===void 0&&_.Q("enable_web_tiered_gel")?z7r(R,X,M,d,300,l):z7r(R,X,M,d,N,l):(PuN(d,N),R())})};
z7r=function(M,d,N,R,X,A){var l=RR;N=N===void 0?{}:N;R=R===void 0?!1:R;X=X===void 0?200:X;A=A===void 0?!1:A;var k=new Map,T=new Map,W={isJspb:R,cttAuthInfo:void 0,tier:X},w={isJspb:R,cttAuthInfo:void 0};if(R){d=_.V(Object.keys(NZ));for(X=d.next();!X.done;X=d.next())X=X.value,T=_.Q("enable_web_tiered_gel")?dL().smartExtractMatchingEntries({keys:[W,w],sizeLimit:1E3}):dL().extractMatchingEntries({isJspb:!0,cttAuthInfo:X}),T.length>0&&k.set(X,T),(_.Q("web_fp_via_jspb_and_json")&&N.writeThenSend||!_.Q("web_fp_via_jspb_and_json"))&&
delete NZ[X];ryN(k,l,M,N,!1,A)}else{k=_.V(Object.keys(NZ));for(W=k.next();!W.done;W=k.next())W=W.value,w=_.Q("enable_web_tiered_gel")?dL().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:W,tier:X},{isJspb:!1,cttAuthInfo:W}],sizeLimit:1E3}):dL().extractMatchingEntries({isJspb:!1,cttAuthInfo:W}),w.length>0&&T.set(W,w),(_.Q("web_fp_via_jspb_and_json")&&N.writeThenSend||!_.Q("web_fp_via_jspb_and_json"))&&delete NZ[W];oQi(T,l,M,d,N,!1,A)}};
PuN=function(M,d){M=M===void 0?!1:M;d=d===void 0?200:d;var N=function(){O62({writeThenSend:!0},M,d)},R=vQN(M,d),X=R===b6j||R===e76?5E3:H6Z;
_.Q("web_gel_timeout_cap")&&!R.queueMaxTimer&&(X=sT6(function(){N()},X),R.queueMaxTimer=X);
SHp(R.queueTimer);X=_.rK("LOGGING_BATCH_TIMEOUT",_.ZR("web_gel_debounce_ms",1E4));_.Q("shorten_initial_gel_batch_timeout")&&nQS&&(X=i6i);X=sT6(function(){_.ZR("gel_min_batch_size")>0?dL().getSequenceCount({cttAuthInfo:void 0,isJspb:M,tier:d})>=fcZ&&N():N()},X);
R.queueTimer=X};
oQi=function(M,d,N,R,X,A,l){X=X===void 0?{}:X;var k=Math.round((0,_.Gs)()),T=M.size,W=L32(l);M=_.V(M);var w=M.next();for(l={};!w.done;l={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},w=M.next()){var p=_.V(w.value);w=p.next().value;p=p.next().value;l.batchRequest=_.wF.unsafeClone({context:_.miv(d.config_||_.Ud())});if(!_.CZ(p)&&!_.Q("throw_err_when_logevent_malformed_killswitch")){R();break}l.batchRequest.events=p;
(p=cyj[w])&&tGZ(l.batchRequest,w,p);delete cyj[w];l.dangerousLogToVisitorSession=w==="visitorOnlyApprovedKey";G3N(l.batchRequest,k,l.dangerousLogToVisitorSession);acN(X);l.onSuccess$jscomp$3=function(m){_.Q("start_client_gcf")&&_.IQ.addLowPriorityJob(function(){return _.B(function(I){return _.D(I,USi(m),0)})});
T--;T||N()};
l.networkFailures=0;l.onError$jscomp$5=function(m){return function(){m.networkFailures++;if(X.bypassNetworkless&&m.networkFailures===1)try{E$Z(d,W,m.batchRequest,uZ6({writeThenSend:!0},m.dangerousLogToVisitorSession,m.onSuccess$jscomp$3,m.onError$jscomp$5,A)),nQS=!1}catch(I){_.yD(I),R()}T--;T||N()}}(l);
try{E$Z(d,W,l.batchRequest,uZ6(X,l.dangerousLogToVisitorSession,l.onSuccess$jscomp$3,l.onError$jscomp$5,A)),nQS=!1}catch(m){_.yD(m),R()}}};
ryN=function(M,d,N,R,X,A){R=R===void 0?{}:R;var l=Math.round((0,_.Gs)()),k={value:M.size},T=new Map([].concat(_.wu(M)));T=_.V(T);for(var W=T.next();!W.done;W=T.next()){var w=_.V(W.value).next().value,p=M.get(w);W=new CuS;var m=d.config_||_.Ud(),I=new AQ,O=new xSr;_.VZ(O,1,m.innertubeContextHostLanguage);_.VZ(O,2,m.innertubeContextGeoLocation);_.CE(O,16,m.innertubeContextClientNameFieldNumber);_.VZ(O,17,m.innertubeContextClientVersion);if(m.innertubeContextClientConfigInfo){var y=m.innertubeContextClientConfigInfo,
c=new YY;y.coldConfigData&&_.VZ(c,1,y.coldConfigData);y.appInstallData&&_.VZ(c,6,y.appInstallData);y.coldHashData&&_.VZ(c,3,y.coldHashData);y.hotHashData&&c.setHotHashData(y.hotHashData);_.ZG(O,62,c)}(y=_.Np.devicePixelRatio)&&y!=1&&_.xY(O,65,_.Ad(y));y=caZ();y!==""&&_.VZ(O,54,y);y=SXS();if(y.length>0){c=new YHp;for(var e=0;e<y.length;e++){var t=new Vc;t.setKey(y[e].key);Fy(t,2,Z6q,Si(y[e].value));lv(c,15,Vc,t)}_.ZG(I,5,c)}TUr(m,O);Di2(I);gSS(O);WNr(m,O);w1A(O);_.Q("start_client_gcf")&&p1p(O);_.rK("DELEGATED_SESSION_ID")&&
!_.Q("pageid_as_header_web")&&(m=new $v,_.VZ(m,3,_.rK("DELEGATED_SESSION_ID")));!_.Q("fill_delegate_context_in_gel_killswitch")&&(y=_.rK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c=_.uk(I,$v,3)||new $v,m=I,y=_.VZ(c,18,y),_.ZG(m,3,y));m=O;y=_.V(Object.entries(_.nF(_.rK("DEVICE",""))));for(c=y.next();!c.done;c=y.next())e=_.V(c.value),c=e.next().value,e=e.next().value,c==="cbrand"?_.VZ(m,12,e):c==="cmodel"?_.VZ(m,13,e):c==="cbr"?_.VZ(m,87,e):c==="cbrver"?_.VZ(m,88,e):c==="cos"?_.VZ(m,18,
e):c==="cosver"?_.VZ(m,19,e):c==="cplatform"&&_.CE(m,42,$wq(e));I.setClient(O);_.ZG(W,1,I);if(O=Jyp[w])a:{if(_.A8(O,Bh(O,yy2,1)))I=1;else if(O.getPlaylistId())I=2;else break a;_.ZG(W,4,O);O=W.getContext()||new AQ;m=_.uk(O,$v,3)||new $v;y=new kv;y.setToken(w);_.CE(y,1,I);lv(m,12,kv,y);_.ZG(O,3,m)}delete Jyp[w];w=w==="visitorOnlyApprovedKey";EQZ()||_.Ti(W,2,l);!w&&(I=_.rK("EVENT_ID"))&&(O=MC6(),m=new dxp,_.VZ(m,1,I),_.Ti(m,2,O),_.ZG(W,5,m));acN(R);if(_.Q("jspb_serialize_with_worker")&&(I=_.o$r())&&
R.writeThenSend){_.NkA.set(Rpr,{client:d,resolve:N,networklessOptions:R,isIsolated:X,useVSSEndpoint:A,dangerousLogToVisitorSession:w,requestsOutstanding:k});I.postMessage({op:"gelBatchToSerialize",batchRequest:xe(W),clientEvents:p,key:Rpr});Rpr++;break}if(p){I=[];for(O=0;O<p.length;O++)try{I.push(new DS(p[O]))}catch(C){_.yD(new _.WJ("Transport failed to deserialize "+String(p[O])))}p=I}else p=[];p=_.V(p);for(I=p.next();!I.done;I=p.next())lv(W,3,DS,I.value);p={startTime:(0,_.Gs)(),ticks:{},infos:{}};
W=W.serialize();p.ticks.geljspc=(0,_.Gs)();_.Q("log_jspb_serialize_latency")&&v$i("gel_jspb_serialize",p,{sampleRate:.1});_.Xzi(W,d,N,R,X,A,w,k)}};
_.Xzi=function(M,d,N,R,X,A,l,k){R=R===void 0?{}:R;k=k===void 0?{value:0}:k;A=L32(A);R=uZ6(R,l,function(T){_.Q("start_client_gcf")&&_.IQ.addLowPriorityJob(function(){return _.B(function(W){return _.D(W,USi(T),0)})});
k.value--;k.value||N()},function(){k.value--;
k.value||N()},X);
R.headers["Content-Type"]="application/json+protobuf";R.postBodyFormat="JSPB";R.postBody=M;E$Z(d,A,"",R);nQS=!1};
acN=function(M){_.Q("always_send_and_write")&&(M.writeThenSend=!1)};
uZ6=function(M,d,N,R,X){M={retry:!0,onSuccess:N,onError:R,networklessOptions:M,dangerousLogToVisitorSession:d,bypassMonitoring:!!X,headers:{},postBodyFormat:"",postBody:"",compress:_.Q("compress_gel")||_.Q("compress_gel_lr")};EQZ()&&(M.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Gs)())));return M};
G3N=function(M,d,N){EQZ()||(M.requestTimeMs=String(d));_.Q("unsplit_gel_payloads_in_logs")&&(M.unsplitGelPayloadsInLogs=!0);!N&&(d=_.rK("EVENT_ID"))&&(N=MC6(),M.serializedClientEventId={serializedEventId:d,clientCounter:String(N)})};
MC6=function(){var M=_.rK("BATCH_CLIENT_COUNTER")||0;M||(M=Math.floor(Math.random()*65535/2));M++;M>65535&&(M=1);_.oJ("BATCH_CLIENT_COUNTER",M);return M};
tGZ=function(M,d,N){if(N.videoId)var R="VIDEO";else if(N.playlistId)R="PLAYLIST";else return;M.credentialTransferTokenTargetId=N;M.context=M.context||{};M.context.user=M.context.user||{};M.context.user.credentialTransferTokens=[{token:d,scope:R}]};
T4i=function(M,d){var N=_.El("il_payload_scraping")==="enable_il_payload_scraping";if(!_.cy("yt.logging.transport.enableScrapingForTest"))if(N)FXi=[],_.fE("yt.logging.transport.enableScrapingForTest",!0),_.fE("yt.logging.transport.scrapedPayloadsForTesting",FXi),_.fE("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.fE("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.fE("yt.logging.transport.scrapeClientEvent",!0);else return;N=_.cy("yt.logging.transport.scrapedPayloadsForTesting");var R=_.cy("yt.logging.transport.payloadToScrape");d&&(d=_.cy("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(d.payload)())&&N.push(d);d=_.cy("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var X=0;X<R.length;X++)if(M&&M.payload[R[X]])if(d)N.push(M.payload);else{var A=void 0;N.push(((A=M)==null?void 0:A.payload)[R[X]])}_.fE("yt.logging.transport.scrapedPayloadsForTesting",
N)};
EQZ=function(){return _.Q("use_request_time_ms_header")||_.Q("lr_use_request_time_ms_header")};
sT6=function(M,d){return _.Q("transport_use_scheduler")===!1?_.NB(M,d):_.Q("logging_avoid_blocking_during_navigation")||_.Q("lr_logging_avoid_blocking_during_navigation")?_.gL(_.IQ,function(){if(_.AtZ().currentState==="none")M();else{var N={};_.AtZ().install((N.none={callback:M},N))}},d):_.gL(_.IQ,M,d)};
SHp=function(M){_.Q("transport_use_scheduler")?_.IQ.cancelJob(M):_.XO(M)};
USi=function(M){var d,N,R,X,A,l,k,T,W,w;return _.B(function(p){return p.nextAddress==1?(R=(d=M)==null?void 0:(N=d.responseContext)==null?void 0:N.globalConfigGroup,X=_.q(R,VCi),l=(A=R)==null?void 0:A.hotHashData,k=_.q(R,lHi),W=(T=R)==null?void 0:T.coldHashData,(w=_.h().resolve(_.CF(Wh)))?l?X?_.D(p,$xi(w,l,X),2):_.D(p,$xi(w,l),2):p.jumpTo(2):p.return()):W?k?_.D(p,BkS(w,W,k),0):_.D(p,BkS(w,W),0):p.jumpTo(0)})};
vQN=function(M,d){d=d===void 0?200:d;return M?d===300?b6j:krj:d===300?e76:TkS};
W3j=function(M){if(_.Q("enable_web_tiered_gel")){M=DxA[M||""];var d,N,R,X=_.h().resolve(_.CF(Wh))==null?void 0:(d=gjv())==null?void 0:(N=d.loggingHotConfig)==null?void 0:(R=N.eventLoggingConfig)==null?void 0:R.payloadPolicies;if(X)for(d=0;d<X.length;d++)if(X[d].payloadNumber===M)return X[d]}};
gQS=function(M){M=Object.keys(M);M=_.V(M);for(var d=M.next();!d.done;d=M.next())if(d=d.value,DxA[d])return d};
wu2=function(M){switch(M){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
h7i=function(M){return M==="gelDebuggingEvent"};
L32=function(M){return(M===void 0?0:M)&&_.Q("vss_through_gel_video_stats")?"video_stats":"log_event"};
pa=function(M,d,N,R){R=R===void 0?{}:R;var X={},A=Math.round(R.timestamp||(0,_.Gs)());X.eventTimeMs=A<Number.MAX_SAFE_INTEGER?A:0;X[M]=d;M=_.aQ();X.context={lastActivityMs:String(R.timestamp||!isFinite(M)?-1:M)};R.sequenceGroup&&!_.Q("web_gel_sequence_info_killswitch")&&(M=X.context,d=R.sequenceGroup,d={index:WXi(d),groupKey:d},M.sequence=d,R.endOfSequence&&delete wL[R.sequenceGroup]);(R.sendIsolatedPayload?puq:QTi)({endpoint:"log_event",payload:X,cttAuthInfo:R.cttAuthInfo,dangerousLogToVisitorSession:R.dangerousLogToVisitorSession},
N)};
WXi=function(M){wL[M]=M in wL?wL[M]+1:0;return wL[M]};
_.hQ=function(M,d,N){N=N===void 0?{}:N;var R=m7;_.KF("ytLoggingEventsDefaultDisabled",!1)&&m7===m7&&(R=null);pa(M,d,R,N)};
_.Qc=function(){if(_.Q("web_fp_via_jspb")){var M=!0;M=M===void 0?!1:M;var d=wzZ;wzZ=[];if(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,M?pa(N.payloadName,N.payload,m7,N.options):_.hQ(N.payloadName,N.payload,N.options)}O62(void 0,!0);if(!_.Q("web_fp_via_jspb_and_json"))return}O62(void 0,!1)};
pzi=function(M,d){var N;if((N=d)==null?0:N.componentStack)return d;if(M=M.componentStack)d||(d={}),d.componentStack=XfA(M);return d};
mxq=function(){_.Hy(_.rK("ERRORS")||[],function(M){_.qZ.apply(null,M)});
_.oJ("ERRORS",[])};
_.IR=function(M){_.qZ(M)};
_.vh=function(M){_.qZ(M,"WARNING")};
hpA=function(M){M instanceof Error?_.qZ(M):(M=_.Me(M)?JSON.stringify(M):String(M),M=new _.WJ(M),M.name="RejectedPromiseError",_.vh(M))};
QAr=function(M,d,N,R,X,A){d=d===void 0?"Unknown file":d;N=N===void 0?0:N;var l=!1,k=gCL("log_window_onerror_fraction");if(k&&Math.random()<k)l=!0;else{k=document.getElementsByTagName("script");for(var T=0,W=k.length;T<W;T++)if(k[T].src.indexOf("/debug-")>0){l=!0;break}}l&&(l=!1,X?l=!0:(typeof M==="string"?k=M:ErrorEvent&&M instanceof ErrorEvent?(l=!0,k=M.message,d=M.filename,N=M.lineno,R=M.colno):(k="Unknown error",d="Unknown file",N=0),X=new _.WJ(k),X.name="UnhandledWindowError",X.message=k,X.fileName=
d,X.lineNumber=N,isNaN(R)?delete X.columnNumber:X.columnNumber=R),_.Q("wiz_enable_component_stack_propagation_killswitch")||(A=pzi(X,A)),A&&_.OD(X,A),l?_.qZ(X):_.vh(X))};
_.qZ=function(M,d,N,R,X,A,l,k){A=A===void 0?{}:A;A.name=N||_.rK("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=R||_.rK("INNERTUBE_CONTEXT_CLIENT_VERSION");N=A;d=d===void 0?"ERROR":d;l=l===void 0?!1:l;d=d===void 0?"ERROR":d;l=l===void 0?!1:l;if(M&&(M.hasOwnProperty("level")&&M.level&&(d=M.level),_.Q("console_log_js_exceptions")&&(R=[],R.push("Name: "+M.name),R.push("Message: "+M.message),M.hasOwnProperty("params")&&R.push("Error Params: "+JSON.stringify(M.params)),M.hasOwnProperty("args")&&R.push("Error args: "+
JSON.stringify(M.args)),R.push("File name: "+M.fileName),R.push("Stacktrace: "+M.stack),R=R.join("\n"),window.console.log(R,M)),!(qzi>=5))){R=[];X=_.V(IHL);for(A=X.next();!A.done;A=X.next()){A=A.value;try{A()&&R.push(A())}catch(c){}}R=[].concat(_.wu(vjS),_.wu(R));var T=Oq2(M);X=T.message||"Unknown Error";A=T.name||"UnknownError";var W=T.stack||M.stacktrace||"Not available";if(W.startsWith(A+": "+X)){var w=W.split("\n");w.shift();W=w.join("\n")}w=T.lineNumber||"Not available";T=T.fileName||"Not available";
var p=0;if(M.hasOwnProperty("args")&&M.args&&M.args.length)for(var m=0;m<M.args.length&&!(p=lI6(M.args[m],"params."+m,N,p),p>=500);m++);else if(M.hasOwnProperty("params")&&M.params){var I=M.params;if(typeof M.params==="object")for(m in I){if(I[m]){var O="params."+m,y=$Y(I[m]);N[O]=y;p+=O.length+y.length;if(p>500)break}}else N.params=$Y(I)}if(R.length)for(m=0;m<R.length&&!(p=lI6(R[m],"params.context."+m,N,p),p>=500);m++);navigator.vendor&&!N.hasOwnProperty("vendor")&&(N["device.vendor"]=navigator.vendor);
m={message:X,name:A,lineNumber:w,fileName:T,stack:W,params:N,sampleWeight:1};N=Number(M.columnNumber);isNaN(N)||(m.lineNumber=m.lineNumber+":"+N);if(M.level==="IGNORED")M=0;else a:{M=jAA();N=_.V(M.messageWeights);for(R=N.next();!R.done;R=N.next())if(R=R.value,m.message&&m.message.match(R.messageRegExp)){M=R.weight;break a}M=_.V(M.callbackWeights);for(N=M.next();!N.done;N=M.next())if(N=N.value,N.callback(m)){M=N.weight;break a}M=1}m.sampleWeight=M;M=_.V(sAv);for(N=M.next();!N.done;N=M.next())if(N=
N.value,N.patternsForType[m.name])for(X=_.V(N.patternsForType[m.name]),R=X.next();!R.done;R=X.next())if(A=R.value,R=m.message.match(A.regexp)){m.params["params.error.original"]=R[0];X=A.groups;A={};for(w=0;w<X.length;w++)A[X[w]]=R[w+1],m.params["params.error."+X[w]]=R[w+1];m.message=N.messageFn(A);break}m.params||(m.params={});M=jAA();m.params["params.errorServiceSignature"]="msg="+M.messageWeights.length+"&cb="+M.callbackWeights.length;m.params["params.serviceWorker"]="false";_.Np.document&&_.Np.document.querySelectorAll&&
(m.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new j5(PIN,"sample")).constructor!==j5&&(m.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(m);if(m.sampleWeight!==0&&!ojS.has(m.message)){if(l&&_.Q("web_enable_error_204"))rtr(d===void 0?"ERROR":d,m);else{d=d===void 0?"ERROR":d;d==="ERROR"?(KXj.publish("handleError",m),_.Q("record_app_crashed_web")&&yti===0&&m.sampleWeight===1&&(yti++,l={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.Q("report_client_error_with_app_crash_ks")||(l.systemHealth={crashData:{clientError:{logMessage:{message:m.message}}}}),_.hQ("appCrashed",l)),Jtq++):d==="WARNING"&&KXj.publish("handleWarning",m);if(_.Q("kevlar_gel_error_routing")){l=d;k=k===void 0?{}:k;b:{M=_.V(ctj);for(N=M.next();!N.done;N=M.next())if(sd(N.value.toLowerCase())){M=!0;break b}M=!1}if(M)k=void 0;else{N={stackTrace:m.stack};m.fileName&&(N.filename=m.fileName);M=m.lineNumber&&m.lineNumber.split?m.lineNumber.split(":"):[];M.length!==
0&&(M.length!==1||isNaN(Number(M[0]))?M.length!==2||isNaN(Number(M[0]))||isNaN(Number(M[1]))||(N.lineNumber=Number(M[0]),N.columnNumber=Number(M[1])):N.lineNumber=Number(M[0]));M={level:"ERROR_LEVEL_UNKNOWN",message:m.message,errorClassName:m.name,sampleWeight:m.sampleWeight};l==="ERROR"?M.level="ERROR_LEVEL_ERROR":l==="WARNING"&&(M.level="ERROR_LEVEL_WARNNING");N={isObfuscated:!0,browserStackInfo:N};k.pageUrl=window.location.href;k.kvPairs=[];_.rK("FEXP_EXPERIMENTS")&&(k.experimentIds=_.rK("FEXP_EXPERIMENTS"));
R=_.rK("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!gCL("web_disable_gel_stp_ecatcher_killswitch")&&R)for(X=_.V(Object.keys(R)),A=X.next();!A.done;A=X.next())A=A.value,k.kvPairs.push({key:A,value:String(R[A])});if(R=m.params)for(X=_.V(Object.keys(R)),A=X.next();!A.done;A=X.next())A=A.value,k.kvPairs.push({key:"client."+A,value:String(R[A])});R=_.rK("SERVER_NAME");X=_.rK("SERVER_VERSION");R&&X&&(k.kvPairs.push({key:"server.name",value:R}),k.kvPairs.push({key:"server.version",value:X}));k={errorMetadata:k,
stackTrace:N,logMessage:M}}k&&(_.hQ("clientError",k),(l==="ERROR"||_.Q("errors_flush_gel_always_killswitch"))&&_.Qc())}_.Q("suppress_error_204_logging")||rtr(d,m)}try{ojS.add(m.message)}catch(c){}qzi++}}};
rtr=function(M,d){var N=d.params||{};M={urlParams:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:M,"client.name":N.name},postParams:{url:_.rK("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};N.version&&(M["client.version"]=N.version);if(M.postParams){d.stack&&(M.postParams.stack=d.stack);d=_.V(Object.keys(N));for(var R=d.next();!R.done;R=d.next())R=R.value,M.postParams["client."+R]=N[R];if(N=_.rK("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(d=
_.V(Object.keys(N)),R=d.next();!R.done;R=d.next())R=R.value,M.postParams[R]=N[R];(N=_.rK("LAVA_VERSION"))&&(M.postParams["lava.version"]=N);N=_.rK("SERVER_NAME");d=_.rK("SERVER_VERSION");N&&d&&(M.postParams["server.name"]=N,M.postParams["server.version"]=d)}_.Am(_.rK("ECATCHER_REPORT_HOST","")+"/error_204",M)};
_.SzZ=function(M,d){d=d===void 0?"ERROR":d;var N=N===void 0?{}:N;var R=_.cy("ytbin.polymer.shared.lib.tampering.info");R&&(R=R())&&(N["params.tamperingInfo"]=R.sort().join(","));_.qZ(M,d,void 0,void 0,!0,N)};
_.OD=function(M){var d=_.wH.apply(1,arguments);M.args||(M.args=[]);Array.isArray(M.args)&&M.args.push.apply(M.args,_.wu(d))};
zpL=function(M){M.level="IGNORED"};
bqr=function(M,d){vjS.push(M);d();vjS.pop()};
rL=function(M,d){for(var N in d)d.hasOwnProperty(N)&&(M=_.oR(M,N,d[N]));return M};
_.epj=function(M,d,N){N=N===void 0?!1:N;if(!M)return null;if(M.adInfoDialogEndpoint||M.backstageImageUploadEndpoint||M.confirmDialogEndpoint||M.clientActionEndpoint||M.createBackstagePostDialogEndpoint||M.createCommentReplyDialogEndpoint||M.flowEndpoint||M.guideBuilderEndpoint||M.liveChatDialogEndpoint||M.modalEndpoint||M.openPopupAction||M.shareEndpoint||M.shareEntityEndpoint||M.showLiveChatItemEndpoint||M.subscriptionManagerEndpoint||M.unlimitedCreateFamilyEndpoint||M.unlimitedFamilyFlowEndpoint||
M.updateCommentDialogEndpoint||M.updateCommentReplyDialogEndpoint||M.userFeedbackEndpoint||M.videoEditorEndpoint||M.ypcCancelSurveyEndpoint)return d=_.ZR("polymer_report_client_url_requested_rate"),!N&&Math.random()<d&&_.vh(new _.WJ("urlForEndpoint used on client endpoint",M)),null;var R=_.ZR("polymer_report_missing_web_navigation_endpoint_rate");if(M.liveChatEndpoint||M.liveChatReplayEndpoint)R=0;if(!M.commandMetadata&&!M.clickTrackingParams&&Math.random()<R){var X={},A;for(A in M)X[A]="1";_.vh(new _.WJ("Missing navigation data",
X))}X="";if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url)X=M.commandMetadata.webCommandMetadata.url;else if(M.searchEndpoint)Math.random()<R&&_.vh(new _.WJ("Should not manually handle search",M)),X="/results?search_query="+encodeURIComponent(M.searchEndpoint.query).replace(/%20/g,"+"),M.searchEndpoint.params&&(X+="&sp="+M.searchEndpoint.params);else if(M.watchEndpoint)Math.random()<R&&_.vh(new _.WJ("Should not manually handle watch",M)),X="/watch?v="+
M.watchEndpoint.videoId,M.watchEndpoint.playlistId&&(X+="&list="+M.watchEndpoint.playlistId),M.watchEndpoint.index&&(X+="&index="+M.watchEndpoint.index),M.watchEndpoint.startTimeSeconds&&(X+="&t="+M.watchEndpoint.startTimeSeconds);else if(M.browseEndpoint)R=M.browseEndpoint.browseId,(A=M.browseEndpoint.canonicalBaseUrl)?X=A:R&&(X=R.substr(0,2),X=X==="FE"?R==="FEwhat_to_watch"?"/":R==="FEmy_videos"?"/my_videos":"/feed/"+R.substr(2):X==="VL"?"/playlist?list="+R.substr(2):"/channel/"+R),X&&M.browseEndpoint.query&&
(X=rL(X+"/search",{query:M.browseEndpoint.query})),X&&M.browseEndpoint.params&&(X=rL(X,{params:M.browseEndpoint.params}));else{if(M.urlEndpoint)return M.urlEndpoint.url;M.signInEndpoint?(X="https://accounts.google.com/ServiceLogin",R={},_.wF.extend(R,d||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),d=R):M.uploadEndpoint?X="//www.youtube.com/upload":M.liveChatEndpoint?(X=M.liveChatEndpoint,R=_.wF.clone(X),_.Me(X.continuation)&&(A=Object.keys(X.continuation)[0],
R.continuation=X.continuation[A].continuation),X=rL("/youtubei/v1/live_chat/get_live_chat",R)):M.liveChatReplayEndpoint?(X=_.wF.clone(M.liveChatReplayEndpoint),X.currentPlayerState&&(_.wF.extend(X,X.currentPlayerState),delete X.currentPlayerState),X=rL("/youtubei/v1/live_chat/get_live_chat_replay",X)):M.liveChatItemContextMenuEndpoint?X=rL("/youtubei/v1/live_chat/get_item_context_menu",M.liveChatItemContextMenuEndpoint):M.liveChatPurchaseMessageEndpoint?X=rL("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
M.liveChatPurchaseMessageEndpoint):M.openSuperStickerBuyFlowCommand?X=rL("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",M.openSuperStickerBuyFlowCommand):M.videoEditEndpoint?X=rL("/edit",{video_id:M.videoEditEndpoint.videoId}):M.liveDashboardEndpoint?X=M.liveDashboardEndpoint.videoId?rL("/live_dashboard",{v:M.liveDashboardEndpoint.videoId}):"/live_dashboard":M.signalNavigationEndpoint&&M.signalNavigationEndpoint.signal&&M.signalNavigationEndpoint.signal==="WEBCAM"?X="/webcam":M.getPdgBuyFlowCommand&&
(X=rL(M.getPdgBuyFlowCommand.buyflowApiPath,{params:M.getPdgBuyFlowCommand.params}))}return X||N?rL(X,d||{}):(_.vh(new _.WJ("Error: Can't construct url for endpoint","keys:"+Object.keys(M).sort().join(","),M)),null)};
Hqi=function(M){if(M){if(M.browseEndpoint)return!!M.browseEndpoint.nofollow;if(M.watchEndpoint)return!!M.watchEndpoint.nofollow;if(M.urlEndpoint)return!!M.urlEndpoint.nofollow}return!1};
_.iqZ=function(M,d){var N=d+M,R=njv.get(N);if(R)return R;M=d+"-"+M.replace(/([A-Z])/g,"-$1").toLowerCase();njv.set(N,M);return M};
fH6=function(M){var d=_.sl(M,"action")||_.sl(M,"command")||_.sl(M,"endpoint");if(!d)return null;d=_.iqZ(d,"yt");_.q(M,_.Ka)&&(d+="-"+_.q(M,_.Ka).signal.toLowerCase().replace(/_/g,"-"));return d};
aHr=function(M){try{var d=Object.keys(M)}catch(X){return[]}for(var N=0;N<d.length;N++){var R=d[N];if(LXZ.test(R)||tCi.test(R))return Grv(M[R])}return[]};
Grv=function(M){return M.command?[M.command]:M.onExecutionAction?[M.onExecutionAction]:M.onResponseReceivedCommand?[M.onResponseReceivedCommand]:M.updateFlowCommand?[M.updateFlowCommand]:M.clientActions?M.clientActions:M.action?[M.action]:M.actions||M.commands||M.onResponseReceivedActions||M.onResponseReceivedCommands||M.onResponseReceivedEndpoints||[]};
uQi=function(M,d){d=d===void 0?!1:d;var N=_.h().resolve(_.CF(yc));N||(N=new Uxq,_.h().addProvider({provide:yc,useValue:N}));return N&&M&&!_.wF.isEmpty(M)?N.getUrl(M,d):""};
CIj=function(M,d,N){N=N===void 0?"":N;if(d){M.data=d;var R=uQi(d);R?(IO(M,R),Hqi(d)||!Ul(R)?M.rel="nofollow":M.removeAttribute("rel"),_.q(d,_.JQ)&&_.q(d,_.JQ).target==="TARGET_NEW_WINDOW"?M.target="_blank":N?M.target=N:M.removeAttribute("target")):(M.removeAttribute("href"),M.removeAttribute("rel"),M.removeAttribute("target"))}};
_.bv=function(M,d){var N=HU;if(DK())xxq(M,function(){var A=_.wH.apply(0,arguments);qF(N,function(){d.apply(null,_.wu(A))})});
else{var R=_.ch.getInstance(),X=jx(d);mI(function(){X.value=d});
_.IJ(function(){var A={},l=_.S5(R,(A[M]=function(){var k=_.wH.apply(0,arguments);qF(N,function(){X.value.apply(X,_.wu(k))})},A));
return function(){var k={};_.zi(R,(k[M]="",k),l)}})}};
_.e5=function(M){return DK()?Yzp(M):ZqA(M)};
_.Hh=function(M){return DK()?Yzp(M):ZqA(M)};
ZqA=function(M){return Ol(function(){return Yzp(M)})};
Yzp=function(M){var d=dEi(function(N){d.value&&d.value===N||(d.__count=d.__count?d.__count+1:1);d.value=N;var R=function(){var X=Ck(null);try{return M==null?void 0:M(N)}finally{Ck(X)}}();
return function(){R==null||R();d.value=null}});
return d};
Ejj=function(M){var d=HU,N=$T;return{getFn:function(){return function(R){d.isDisposed||g0(function(){return MF(function(){return M(R)})},{stack:N})!==!0&&R.stopPropagation()}}}};
NTZ=function(M,d){if(DK())MmN(M,function(R){var X=Ck(null);try{d(R)}finally{Ck(X)}});
else{var N=jx(d);mI(function(){N.value=d});
_.IJ(function(){var R=M.value;if(R){var X=function(A){N.value(A)};
R.addEventListener("yt-service-request-sent",X,void 0);return function(){R?R.removeEventListener("yt-service-request-sent",X,void 0):dNi(M)}}dNi(M)})}};
dNi=function(M){var d;(d=G5.handleError)==null||d.call.apply(d,[G5].concat(_.wu(I4(NDA.LOG_NULL_EL_REF_VALUE(),M.__expectedTagName,2))))};
na=function(M){if(typeof M.children==="function")return M.children(),null;M=_.V(M.children);for(var d=M.next();!d.done;d=M.next())d=d.value,d();return null};
RuZ=function(M){var d;return((d=M.prototype)==null?void 0:d.render)===void 0};
XiL=function(M){M=M.items.map(M.children);return M.length>0&&typeof M[0]==="string"?M.join(""):M};
AIZ=function(M,d,N){N=N===void 0?!1:N;g0(function(){return Fdj(M,d,N)})};
Fdj=function(M,d,N){N=((N===void 0?0:N)?VmZ:lMr)(M,function(){iv(d)});
return N===null?M:N};
iv=function(M){if(M!==void 0&&M!==null)if(M instanceof Xo)for(var d=so;Pg()!=null&&Ha2 in Pg()&&d.contains(Pg());)Ku();else if(Array.isArray(M))for(d=_.V(M),M=d.next();!M.done;M=d.next())iv(M.value);else if(M instanceof NO||"function"==typeof _.HQ&&M instanceof _.HQ)fu(M.toString());else if(Cu(M)){if(Pg()!==M){var N,R;d=(R=(N=$T)==null?void 0:N.name)!=null?R:"unknown";throw Error("ec`"+M.tagName+"`"+d);}Ku()}else if(M!=null&&M.contentKind===Eo||M instanceof vQ)for(d=F7p(M),d=Array.from(d.childNodes),
d=_.V(d),M=d.next();!M.done;M=d.next())so.appendChild(M.value),Ku();else if(ly(M)&&(M=M.toString()),N=typeof M,N==="boolean"||N==="number"||N==="string")fu(M);else if(typeof M==="function"){d=so;var X=Pg();X&&(X._isSignalTextNode||X._isSafeOrSanitizedHtmlNode)||ovZ(d,X,M);Ku()}else if(M.type===XiL)iv(M.type(Object.assign({},M.props,{children:M.children[0]})));else{VD.beforeVisit(M);if(typeof M.type==="string"){a:{M.__open||HAZ(M.type,M.props.idomKey);X=so;for(d in M.props)if(M.props[d]!==$Nq){var A=
M.props[d];N=S9;N.push(d);N.push(A)}d=G5.attributes;d=d===void 0?fa:d;A=so;N=j9(A);axq(A,N,d);PvZ(X,M.props,!0);if((M.props.skip||M.props.skipchildren)&&so.hasChildNodes())Jl();else{if(M.type==="style"&&TLS(M.children)===null){Jl();d=void 0;break a}iv(M.children)}nWi();M.__open&&(M.__open=!1);EWj(X,M.props);d=X}return d}if(M.type===_.GT)iv(M.children);else if(!BTZ(M)){d=M;try{kxi(d)}catch(l){M=l,(A=G5.handleError)==null||A.call.apply(A,[G5].concat(_.wu(I4(M,(X=d.type)==null?void 0:X.TAG_NAME))))}d.__open&&
(nWi(),d.__open=!1)}}};
TTZ=function(M,d){var N;RuZ(M)?N=new $V(d,M):N=new M(d);N.JSC$8152___type=M;N.__updateContext={nextState:N.state,isForced:!1};return N};
kxi=function(M){var d=M.type,N=d.TAG_NAME;if(d===na)M.props.children=M.children,d(M.props);else{M.children.length>0&&(M.props.children=M.children);var R;(R=M.props).idomKey||(R.idomKey=d);if(N){var X=HAZ(N,M.props.idomKey);M.__open=!0;var A=X.__instance}A||(A=TTZ(d,M.props),A.props=null,X&&(X.__instance=A,A.el=X));var l;N=((l=A.__updateContext)!=null?l:{nextState:A.state,isForced:!1}).nextState;A.__updateContext=void 0;d.getDerivedStateFromProps&&(N=d.getDerivedStateFromProps(M.props,N));A.props=
M.props;A.state=N;l=function(){var k=A;VD.beforeRender(k);var T=k.render(k.props);VD.afterRender(k,T);T?(k.props.idomKey&&(T.props.idomKey=k.props.idomKey),k=T):k=void 0;if(T=k)if(T.__open=M.__open,k=iv(T),M.__open=T.__open,!d.TAG_NAME)if(k)d.TAG_NAME=k.tagName.toLowerCase(),k.__instance=A,A.el=k;else{var W;if((W=A.hooks)==null?0:W.length){var w;(w=G5.handleError)==null||w.call.apply(w,[G5].concat(_.wu(I4(Error("kd")))))}}A.didPatch();VD.didPatch(A)};
(N=A.functionComponent)?R1j({component:N,debugInstance:A.props.debugInstance,fn:l}):l()}};
BTZ=function(M){var d=M.type;if(!RuZ(d)||d===na||d.componentType===Bg)return!1;M.props.children=M.children.length>1?M.children:M.children[0];var N,R=(N=M.props.idomKey)!=null?N:M.type,X;if(Pg()&&((X=Pg()[dK])==null?void 0:X.key)===R){var A=Pg(),l=A[dK];if(!l)throw Error("dc`"+A.tagName);var k;(k=l.updateSignalsFromIdomProps)==null||k.call(l,M.props);DNv(l);return!0}if(gFv.has(d.name))throw k=d.name,d=(l=(A=$T)==null?void 0:A.name)!=null?l:"unknown",Error("cc`"+k+"`"+d);JQv(M.type,M.props,M.children);
M.props.renderedFromIdom=!0;(k=R1j({component:M.type,debugInstance:M.props.debugInstance,fn:function(){return ISi(M.type,M.props)}}))&&WdL(k);
return!0};
wii=function(M){for(var d=0;d<RJ(M).length;d++)Ku()};
DNv=function(M){var d=pij();if(d)wii(d);else for(var N=0;N<M.numNodes;N++)(d=pij())?wii(d):Ku()};
pij=function(){var M;return(M=Pg()[dK])==null?void 0:M.sourceDynamicRange};
WdL=function(M){M=dZv(M);M=Array.isArray(M)?M:[M];M=_.V(M);for(var d=M.next();!d.done;d=M.next())so.insertBefore(d.value,Pg()),Ku()};
mNZ=function(M){var d=OaZ(),N=Ol(function(){return{value:typeof M==="function"?M():M}});
return[N.value,function(R){if(ls!==null){var X;(X=G5.handleError)==null||X.call.apply(X,[G5].concat(_.wu(I4(Error("ld")))))}N.value=typeof R==="function"?R(N.value):R;d.__updateContext={nextState:d.state,isForced:!0};R=nk(d.effectContext);X=a4(!1);try{if(d.el){var A,l={},k=(l.props=d.props,l.type=d.JSC$8152___type,l.children=(A=d.props.children)!=null?A:[],l[tl]=!0,l);try{AIZ(d.el,k,!0)}catch(w){var T,W;(W=G5.handleError)==null||W.call.apply(W,[G5].concat(_.wu(I4(w,(T=d.JSC$8152___type)==null?void 0:
T.TAG_NAME))))}}}finally{a4(X),nk(R)}}]};
La=function(M,d){var N=HU,R=function(X){qF(N,function(){d(X)})};
window.addEventListener(M,R,void 0);_.mF(function(){window.removeEventListener(M,R,void 0)})};
_.Gi=function(M,d){var N=HU;_.IJ(function(){var R,X=(R=d.observer)!=null?R:_.h().resolve(tQ);if(R=M.value){var A=huS(R),l=[];d.showOption&&l.push(X.observe(R,function(){qF(N,function(){d.visibilityCallback(!0)})},d.showOption));
d.hideOption&&l.push(X.observe(R,function(){qF(N,function(){d.visibilityCallback(!1)})},d.hideOption));
d.prescanOption&&d.prescanCallback&&l.push(X.observe(R,function(){qF(N,function(){d.prescanCallback()})},d.prescanOption));
var k;A.visibilityMonitorKeys=((k=A.visibilityMonitorKeys)!=null?k:[]).concat(l)}})};
huS=function(M){var d;return(d=M.polymerController)!=null?d:M};
_.aR=function(M){M.componentType=Bg};
vFZ=function(M,d){var N=QqZ;return _.g(_.GT,null,_.ez(G5.enableLazyTsx,function(){return _.g(qLS,{id:N,value:M,children:d})},function(){var R=IMi(N,M);
fk(R);R=nk(R);try{return d()}finally{nk(R)}}))};
qLS=function(M){var d=M.children;M=IMi(M.id,M.value);fk(M);M=nk(M);try{return _.g(_.GT,null,Fo(d()))}finally{nk(M)}};
IMi=function(M,d){return Object.assign(Object.create(OOZ),{id:M,contextValue:d})};
jqj=function(M){var d,N=HU;_.w0(function(){var R=nk(N),X=a4(!d);try{if(d)AIZ(d,M.children(),!0);else if(d=Fo(M.children()),!(d instanceof Element))throw Error("md");}finally{a4(X),nk(R)}});
return d};
sqr=function(M){var d,N=hl(function(){var R=a4(!0);try{d=RJ(M())}finally{a4(R)}},!1);
return[d,N]};
oFj=function(M){M=M.buf.charCodeAt(M.pos++);return PG2[M]};
UD=function(M){var d=0,N=0;do{var R=oFj(M);d|=(R&31)<<N;N+=5}while(R&32);return d<0?d+4294967296:d};
yIZ=function(M,d,N){rIv(M,d);M[d][Kdi].unshift(N)};
rIv=function(M,d){if(!M[d]||!M[d][Kdi]){var N=M[d],R=N?[N]:[];M[d]=function(){for(var X=_.V(R),A=X.next();!A.done;A=X.next())A.value.apply(this,arguments)};
M[d][Kdi]=R}};
JI6=function(M){if(!M)return[];var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,Array.isArray(N)?d.push.apply(d,_.wu(JI6(N))):d.push(N);return d};
_.Ca=function(M,d){if(M&&cIq.test(M)||M==="//")return M;if(SLq===void 0){SLq=!1;try{var N=new URL("b","http://a");N.pathname="c%20d";SLq=N.href==="http://a/c%20d"}catch(R){}}d||(d=document.baseURI||window.location.href);if(SLq)try{return(new URL(M,d)).href}catch(R){return M}uv||(uv=document.implementation.createHTMLDocument("temp"),uv.base=uv.createElement("base"),uv.head.appendChild(uv.base),uv.anchor=uv.createElement("a"),uv.body.appendChild(uv.anchor));uv.base.href=d;uv.anchor.href=M;return uv.anchor.href||
M};
bON=function(M,d){return M.replace(zu2,function(N,R,X,A){return R+"'"+_.Ca(X.replace(/["']/g,""),d)+"'"+A})};
eui=function(M){return M.substring(0,M.lastIndexOf("/")+1)};
iOv=function(){HOZ=!1;for(var M=xv.length,d=0;d<M;d++){var N=xv[d];if(N)try{N()}catch(R){setTimeout(function(){throw R;})}}xv.splice(0,M);
nFA+=M};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(M){console.log("["+M.is+"]: registered")};
Ld2=function(M){fMv.push(M)};
Yv=function(M){return tmZ[M]||(tmZ[M]=M.indexOf("-")<0?M:M.replace(GxZ,function(d){return d[1].toUpperCase()}))};
ZS=function(M){return tmZ[M]||(tmZ[M]=M.replace(aMr,"-$1").toLowerCase())};
UNi=function(M,d){var N=d.parentInfo&&UNi(M,d.parentInfo);if(N)for(M=N.firstChild,N=0;M;M=M.nextSibling){if(d.parentIndex===N++)return M}else return M};
ucN=function(M,d){M=M._methodHost||M;return function(N){if(M[d])M[d](N,N.detail);else console.warn("listener method `"+d+"` not defined")}};
ED=function(M){return M.indexOf(".")>=0};
ME=function(M){var d=M.indexOf(".");return d===-1?M:M.slice(0,d)};
CG6=function(M,d){return M.indexOf(d+".")===0};
dD=function(M,d){return d.indexOf(M+".")===0};
NE=function(M,d,N){return d+N.slice(M.length)};
xNZ=function(M,d){return M===d||CG6(M,d)||dD(M,d)};
R_=function(M){if(Array.isArray(M)){for(var d=[],N=0;N<M.length;N++)for(var R=M[N].toString().split("."),X=0;X<R.length;X++)d.push(R[X]);return d.join(".")}return M};
YLq=function(M){return Array.isArray(M)?R_(M).split("."):M.toString().split(".")};
XK=function(M,d,N){d=YLq(d);for(var R=0;R<d.length;R++){if(!M)return;M=M[d[R]]}N&&(N.path=d.join("."));return M};
ZOv=function(M,d,N){var R=YLq(d),X=R[R.length-1];if(R.length>1){for(d=0;d<R.length-1;d++)if(M=M[R[d]],!M)return;M[X]=N}else M[d]=N;return R.join(".")};
EF6=function(M,d,N){var R=M[d];if(!R)R=M[d]={};else if(!M.hasOwnProperty(d)&&(R=M[d]=Object.create(M[d]),N))for(var X in R)for(M=R[X],d=R[X]=Array(M.length),N=0;N<M.length;N++)d[N]=M[N];return R};
Aa=function(M,d,N,R,X,A){if(d){var l=!1,k=FK++,T;for(T in N){var W=X?ME(T):T;if(W=d[W])for(var w=0,p=W.length,m=void 0;w<p&&(m=W[w]);w++)m.info&&m.info.lastRun===k||X&&!MkZ(T,m.trigger)||(m.info&&(m.info.lastRun=k),m.fn(M,T,N,R,m.info,X,A),l=!0)}return l}return!1};
MkZ=function(M,d){if(d){var N=d.name;return N==M||!(!d.structured||!CG6(N,M))||!(!d.wildcard||!dD(N,M))}return!0};
dHq=function(M,d,N,R,X){d=typeof X.method==="string"?M[X.method]:X.method;N=X.property;d?d.call(M,M.__data[N],R[N]):X.dynamicFn||console.warn("observer method `"+X.method+"` not defined")};
N5N=function(M,d,N,R){N={value:N,queueProperty:!0};R&&(N.path=R);(0,_.VG)(M).dispatchEvent(new CustomEvent(d,{detail:N}))};
Rti=function(M,d,N,R,X,A){A=(R=(A?ME(d):d)!=d?d:null)?XK(M,R):M.__data[d];R&&A===void 0&&(A=N[d]);N5N(M,X.eventName,A,R)};
X5i=function(M,d,N,R,X){N=M.__data[d];lM&&(N=lM(N,X.attrName,"attribute",M));M._propertyToAttribute(d,X.attrName,N)};
AoZ=function(M){var d=M.constructor.__orderedComputedDeps;if(!d){d=new Map;for(var N=M.__computeEffects,R=F$2(M),X=R.counts,A=R.ready,l=R.total;R=A.shift();)d.set(R,d.size),(R=N[R])&&R.forEach(function(k){k=k.info.methodInfo;--l;--X[k]===0&&A.push(k)});
l!==0&&console.warn("Computed graph for "+M.localName+" incomplete; circular?");M.constructor.__orderedComputedDeps=d}return d};
F$2=function(M){var d=M.__computeInfo,N={};M=M.__computeEffects;var R=[],X=0,A;for(A in d){var l=d[A];X+=N[A]=l.args.filter(function(T){return!T.literal}).length+(l.dynamicFn?1:0)}for(var k in M)d[k]||R.push(k);
return{counts:N,ready:R,total:X}};
l$r=function(M,d,N,R,X){d=VkS(M,d,N,R,X);if(d===$C)return!1;X=X.methodInfo;if(M.__dataHasAccessor&&M.__dataHasAccessor[X])return M._setPendingProperty(X,d,!0);M[X]=d;return!1};
kHZ=function(M,d,N,R,X,A,l){N.bindings=N.bindings||[];R={kind:R,target:X,parts:A,literal:l,isCompound:A.length!==1};N.bindings.push(R);R.target&&R.kind!="attribute"&&R.kind!="text"&&!R.isCompound&&R.parts[0].mode==="{"&&(N=R.parts[0],A=N.negate,R.listenerEvent=N.event||ZS(X)+"-changed",R.listenerNegate=A);X=d.nodeInfoList.length;for(N=0;N<R.parts.length;N++){var k=R.parts[N];k.compoundIndex=N;A=M;l=d;var T=R,W=k,w=X;if(!W.literal)if(T.kind==="attribute"&&T.target[0]==="-")console.warn("Cannot set attribute "+
T.target+' because "-" is not a valid attribute starting character');else for(k=W.dependencies,T={index:w,binding:T,part:W,evaluator:A},W=0;W<k.length;W++)w=k[W],typeof w=="string"&&(w=$HZ(w),w.wildcard=!0),A._addTemplatePropertyEffect(l,w.rootProperty,{fn:B5A,info:T,trigger:w})}};
B5A=function(M,d,N,R,X,A,l){l=l[X.index];var k=X.binding,T=X.part;A&&T.source&&d.length>T.source.length&&k.kind=="property"&&!k.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[k.target]?(N=N[d],d=NE(T.source,k.target,d),l._setPendingPropertyOrPath(d,N,!1,!0)&&M._enqueueClient(l)):(d=X.evaluator._evaluateBinding(M,T,d,N,R,A),d!==$C&&(k.isCompound&&(N=l.__dataCompoundStorage[k.target],N[T.compoundIndex]=d,d=N.join("")),k.kind==="attribute"||k.target!=="textContent"&&
(k.target!=="value"||l.localName!=="input"&&l.localName!=="textarea")||(d=d==void 0?"":d),T=d,lM&&(T=lM(T,k.target,k.kind,l)),k.kind=="attribute"?M._valueToNodeAttribute(l,T,k.target):(k=k.target,l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[k]?l.__readOnly&&l.__readOnly[k]||l._setPendingProperty(k,T)&&M._enqueueClient(l):M._setUnmanagedPropertyToNode(l,k,T))))};
T5q=function(M,d,N){if(N.listenerEvent){var R=N.parts[0];M.addEventListener(N.listenerEvent,function(X){var A=N.target,l=R.source,k=R.negate,T=X.detail,W=T&&T.path;W?(l=NE(A,l,W),X=T&&T.value):X=X.currentTarget[A];d.__readOnly&&d.__readOnly[l]||!d._setPendingPropertyOrPath(l,k?!X:X,!0,!!W)||T&&T.queueProperty||d._invalidateProperties()})}};
DHZ=function(M,d,N,R,X,A){A=d.static||A&&(typeof A!=="object"||A[d.methodName]);X={methodName:d.methodName,args:d.args,methodInfo:X,dynamicFn:A};for(var l=0,k=void 0;l<d.args.length&&(k=d.args[l]);l++)k.literal||M._addPropertyEffect(k.rootProperty,N,{fn:R,info:X,trigger:k});A&&M._addPropertyEffect(d.methodName,N,{fn:R,info:X});return X};
VkS=function(M,d,N,R,X){R=M._methodHost||M;var A=R[X.methodName];if(A)return M=M._marshalArgs(X.args,d,N),M===$C?$C:A.apply(R,M);X.dynamicFn||console.warn("method `"+X.methodName+"` not defined")};
gM2=function(M){for(var d="",N=0;N<M.length;N++)d+=M[N].literal||"";return d};
p5S=function(M){if(M=M.match(/([^\s]+?)\(([\s\S]*)\)/)){var d={methodName:M[1],static:!0,args:W$q};return M[2].trim()?w5A(M[2].replace(/\\,/g,"&comma;").split(","),d):d}return null};
w5A=function(M,d){d.args=M.map(function(N){N=$HZ(N);N.literal||(d.static=!1);return N},this);
return d};
$HZ=function(M){M=M.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var d={name:M,value:"",literal:!1},N=M[0];N==="-"&&(N=M[1]);N>="0"&&N<="9"&&(N="#");switch(N){case "'":case '"':d.value=M.slice(1,-1);d.literal=!0;break;case "#":d.value=Number(M),d.literal=!0}d.literal||(d.rootProperty=ME(M),d.structured=ED(M),d.structured&&(d.wildcard=M.slice(-2)==".*",d.wildcard&&(d.name=M.slice(0,-2))));return d};
mHv=function(M,d,N){M=XK(M,N);M===void 0&&(M=d[N]);return M};
Q0A=function(M,d,N,R){R={indexSplices:R};Bm&&!M._overrideLegacyUndefined&&(d.splices=R);M.notifyPath(N+".splices",R);M.notifyPath(N+".length",d.length);Bm&&!M._overrideLegacyUndefined&&(R.indexSplices=[])};
kC=function(M,d,N,R,X,A){Q0A(M,d,N,[{index:R,addedCount:X,removed:A,object:d,type:"splice"}])};
qcr=function(M){M=bON((M.body?M.body:M).textContent,M.baseURI);var d=document.createElement("style");d.textContent=M;return d};
vMA=function(M){M=M.trim().split(/\s+/);for(var d=[],N=0;N<M.length;N++)d.push.apply(d,_.wu(I$S(M[N])));return d};
I$S=function(M){var d=Ta.import(M);if(!d)return console.warn("Could not find style data in module named",M),[];if(d._styles===void 0){M=[];M.push.apply(M,_.wu(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d)));var N=d.querySelector("template");N&&M.push.apply(M,_.wu(OXi(N,d.assetpath)));d._styles=M}return d._styles};
OXi=function(M,d){if(!M._styles){for(var N=[],R=M.content.querySelectorAll("style"),X=0;X<R.length;X++){var A=R[X],l=A.getAttribute("include");l&&N.push.apply(N,_.wu(vMA(l).filter(function(k,T,W){return W.indexOf(k)===T})));
d&&(A.textContent=bON(A.textContent,d));N.push(A)}M._styles=N}return M._styles};
j02=function(M){return(M=Ta.import(M))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var d=[];M=M.querySelectorAll("link[rel=import][type~=css]");for(var N=0;N<M.length;N++){var R=M[N];if(R.import){var X=R.import;if((R=R.hasAttribute("shady-unscoped"))&&!X._unscopedStyle){var A=qcr(X);A.setAttribute("shady-unscoped","");X._unscopedStyle=A}else X._style||(X._style=qcr(X));d.push(R?X._unscopedStyle:X._style)}}return d};
Pa2=function(M){M=M.trim().split(/\s+/);for(var d="",N=0;N<M.length;N++)d+=s0Z(M[N]);return d};
s0Z=function(M){var d=Ta.import(M);if(d&&d._cssText===void 0){var N=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(d),R=d.querySelector("template");R&&(N+=oMi(R,d.assetpath));d._cssText=N||null}d||console.warn("Could not find style data in module named",M);return d&&d._cssText||""};
oMi=function(M,d){var N="";M=OXi(M,d);for(d=0;d<M.length;d++){var R=M[d];R.parentNode&&R.parentNode.removeChild(R);N+=R.textContent}return N};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var d="";M=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M);for(var N=0;N<M.length;N++)d+=M[N].textContent;return d};
Dt=function(M,d){return{index:M,removed:[],addedCount:d}};
K$q=function(M,d,N,R){var X=0,A=0,l=0,k=0,T=Math.min(d-X,R-A);if(X==0&&A==0)a:{for(l=0;l<T;l++)if(M[l]!==N[l])break a;l=T}if(d==M.length&&R==N.length){k=M.length;for(var W=N.length,w=0;w<T-l&&roZ(M[--k],N[--W]);)w++;k=w}X+=l;A+=l;d-=k;R-=k;if(d-X==0&&R-A==0)return[];if(X==d){for(d=Dt(X,0);A<R;)d.removed.push(N[A++]);return[d]}if(A==R)return[Dt(X,d-X)];T=X;l=A;R=R-l+1;k=d-T+1;d=Array(R);for(W=0;W<R;W++)d[W]=Array(k),d[W][0]=W;for(W=0;W<k;W++)d[0][W]=W;for(W=1;W<R;W++)for(w=1;w<k;w++)if(M[T+w-1]===
N[l+W-1])d[W][w]=d[W-1][w-1];else{var p=d[W-1][w]+1,m=d[W][w-1]+1;d[W][w]=p<m?p:m}T=d.length-1;l=d[0].length-1;R=d[T][l];for(M=[];T>0||l>0;)T==0?(M.push(2),l--):l==0?(M.push(3),T--):(k=d[T-1][l-1],W=d[T-1][l],w=d[T][l-1],p=W<w?W<k?W:k:w<k?w:k,p==k?(k==R?M.push(0):(M.push(1),R=k),T--,l--):p==W?(M.push(3),T--,R=W):(M.push(2),l--,R=w));M.reverse();d=void 0;T=[];for(l=0;l<M.length;l++)switch(M[l]){case 0:d&&(T.push(d),d=void 0);X++;A++;break;case 1:d||(d=Dt(X,0));d.addedCount++;X++;d.removed.push(N[A]);
A++;break;case 2:d||(d=Dt(X,0));d.addedCount++;X++;break;case 3:d||(d=Dt(X,0)),d.removed.push(N[A]),A++}d&&T.push(d);return T};
yoZ=function(M,d){return K$q(M,M.length,d,d.length)};
roZ=function(M,d){return M===d};
coj=function(M){if(M instanceof Jov)return M.value;throw Error("Dd`"+M);};
ScZ=function(M,d){for(var N in d)N===null?M.style.removeProperty(N):M.style.setProperty(N,d[N])};
zt2=function(M,d){return(M=window.getComputedStyle(M).getPropertyValue(d))?M.trim():""};
nMS=function(M){requestAnimationFrame(function(){bXZ?bXZ(M):(eti||(eti=new Promise(function(d){HXi=d}),document.readyState==="complete"?HXi():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&HXi()})),eti.then(function(){M&&M()}))})};
L$i=function(M){iXA=M&&M.shimcssproperties?!1:f$Z||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
uTL=function(M){if(!(tkv.indexOf(M)>-1)&&M!=="touchend"&&GHZ&&a$p&&UHZ)return{passive:!0}};
ZXi=function(M){for(var d=Car?["click"]:tkv,N=0,R;N<d.length;N++)R=d[N],M?(xHZ.length=0,document.addEventListener(R,Ycv,!0)):document.removeEventListener(R,Ycv,!0)};
gD=function(M){var d=M.type;return tkv.indexOf(d)>-1?d==="mousemove"?(d=M.buttons===void 0?1:M.buttons,M instanceof window.MouseEvent&&!EMZ&&(d=MBS[M.which]||0),!!(d&1)):(M.button===void 0?0:M.button)===0:!1};
do6=function(M){if(M.type==="click"){if(M.detail===0)return!0;var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);if(!d.nodeType||d.nodeType!==Node.ELEMENT_NODE)return!0;d=d.getBoundingClientRect();var N=M.pageX;M=M.pageY;return!(N>=d.left&&N<=d.right&&M>=d.top&&M<=d.bottom)}return!1};
NWi=function(M,d,N){M.movefn=d;M.upfn=N;document.addEventListener("mousemove",d);document.addEventListener("mouseup",N)};
Wm=function(M){document.removeEventListener("mousemove",M.movefn);document.removeEventListener("mouseup",M.upfn);M.movefn=null;M.upfn=null};
Rkj=function(M,d){for(var N=document.elementFromPoint(M,d),R=N;R&&R.shadowRoot&&!window.ShadyDOM;){var X=R;R=R.shadowRoot.elementFromPoint(M,d);if(X===R)break;R&&(N=R)}return N};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var d=XCA(M);return d.length>0?d[0]:M.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var d=M.type,N=M.currentTarget.__polymerGestures;if(N&&(N=N[d])){if(!M.__polymerGesturesHandled&&(M.__polymerGesturesHandled={},d.slice(0,5)==="touch")){var R=M.changedTouches[0];d==="touchstart"&&M.touches.length===1&&(FJS=R.identifier);if(FJS!==R.identifier)return;GHZ||(d==="touchstart"||d==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)}R=
M.__polymerGesturesHandled;if(!R.skip){for(var X=0,A;X<wD.length;X++)A=wD[X],N[A.name]&&!R[A.name]&&A.flow&&A.flow.start.indexOf(M.type)>-1&&A.reset&&A.reset();for(X=0;X<wD.length;X++)A=wD[X],N[A.name]&&!R[A.name]&&(R[A.name]=!0,A[d](M))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var d=M.changedTouches[0],N=M.type;if(N==="touchstart")A9A=d.clientX,VBq=d.clientY,lbA=!1;else if(N==="touchmove"&&!lbA){lbA=!0;N="auto";for(var R=XCA(M),X=0,A;X<R.length;X++)if(A=R[X],A.__polymerGesturesTouchAction){N=A.__polymerGesturesTouchAction;break}R=!1;X=Math.abs(A9A-d.clientX);d=Math.abs(VBq-d.clientY);M.cancelable&&(N==="none"?R=!0:N==="pan-x"?R=d>X:N==="pan-y"&&(R=X>d));R?M.preventDefault():
pH("track")}};
ha=function(M,d,N){return my[d]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,d,N),!0):!1};
QG=function(M,d,N){return my[d]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,d,N),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,d,N){var R=my[d],X=R.deps,A=R.name,l=M.__polymerGestures;l||(M.__polymerGestures=l={});for(var k=0,T,W;k<X.length;k++)T=X[k],Car&&tkv.indexOf(T)>-1&&T!=="click"||((W=l[T])||(l[T]=W={_count:0}),W._count===0&&M.addEventListener(T,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,uTL(T)),W[A]=(W[A]||0)+1,W._count=(W._count||0)+1);M.addEventListener(d,N);R.touchAction&&_.qE(M,R.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,d,N){var R=my[d],X=R.deps;R=R.name;var A=M.__polymerGestures;if(A)for(var l=0,k,T;l<X.length;l++)k=X[l],(T=A[k])&&T[R]&&(T[R]=(T[R]||1)-1,T._count=(T._count||1)-1,T._count===0&&M.removeEventListener(k,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,uTL(k)));M.removeEventListener(d,N)};
$oZ=function(M){wD.push(M);for(var d=0;d<M.emits.length;d++)my[M.emits[d]]=M};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){for(var d=0,N;d<wD.length;d++){N=wD[d];for(var R=0,X;R<N.emits.length;R++)if(X=N.emits[R],X===M)return N}return null};
_.qE=function(M,d){GHZ&&M instanceof HTMLElement&&I_.run(function(){M.style.touchAction=d});
M.__polymerGesturesTouchAction=d};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,d,N){d=new Event(d,{bubbles:!0,cancelable:!0,composed:!0});d.detail=N;(0,_.VG)(M).dispatchEvent(d);d.defaultPrevented&&(M=N.preventer||N.sourceEvent)&&M.preventDefault&&M.preventDefault()};
pH=function(M){M=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M.info&&(M.info.prevent=!0)};
vm=function(M,d,N,R){d&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,M,{x:N.clientX,y:N.clientY,sourceEvent:N,preventer:R,prevent:function(X){return pH(X)}})};
BWq=function(M,d,N){if(M.prevent)return!1;if(M.started)return!0;N=Math.abs(M.y-N);return Math.abs(M.x-d)>=5||N>=5};
kfS=function(M,d,N){if(d){var R=M.moves[M.moves.length-2],X=M.moves[M.moves.length-1],A=X.x-M.x,l=X.y-M.y,k=0;if(R){var T=X.x-R.x;k=X.y-R.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(d,"track",{state:M.state,x:N.clientX,y:N.clientY,dx:A,dy:l,ddx:T,ddy:k,sourceEvent:N,hover:function(){return Rkj(N.clientX,N.clientY)}})}};
Doi=function(M,d,N){var R=Math.abs(d.clientX-M.x),X=Math.abs(d.clientY-M.y),A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N||d);!A||TWi[A.localName]&&A.hasAttribute("disabled")||!(isNaN(R)||isNaN(X)||R<=25&&X<=25||do6(d))||M.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,"tap",{x:d.clientX,y:d.clientY,sourceEvent:d,preventer:N})};
gD2=function(M,d,N,R,X){var A;X&&(A=typeof N==="object"&&N!==null)&&(R=M.__dataTemp[d]);R=R!==N&&(R===R||N===N);A&&R&&(M.__dataTemp[d]=N);return R};
wCL=function(){if(OX&&!jF){if(!WJA){WJA=!0;var M=document.createElement("style");M.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(M)}return!0}return!1};
moN=function(){return pC6};
hki=function(M,d){pC6=M;Object.setPrototypeOf(M,d.prototype);new d;pC6=null};
Qfv=function(M,d){for(var N=0;N<d.length;N++){var R=d[N];if(!!M!=!!R.__hideTemplateChildren__)if(R.nodeType===Node.TEXT_NODE)M?(R.__polymerTextContent__=R.textContent,R.textContent=""):R.textContent=R.__polymerTextContent__;else if(R.localName==="slot")if(M)R.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.VG)((0,_.VG)(R).parentNode).replaceChild(R.__polymerReplaced__,R);else{var X=R.__polymerReplaced__;X&&(0,_.VG)((0,_.VG)(X).parentNode).replaceChild(R,X)}else R.style&&(M?(R.__polymerDisplay__=
R.style.display,R.style.display="none"):R.style.display=R.__polymerDisplay__);R.__hideTemplateChildren__=M;R._showHideChildren&&R._showHideChildren(M)}};
q$i=function(M){return(M=M.__dataHost)&&M._methodHost||M};
OQN=function(M,d,N){var R=N.mutableData?IbZ:sX;Pm.mixin&&(R=Pm.mixin(R));var X=function(){return R.apply(this,arguments)||this};
_.v(X,R);X.prototype.__templatizeOptions=N;X.prototype._bindTemplate(M);vDv(X,M,d,N);return X};
r9A=function(M,d,N,R){var X=N.forwardHostProp;if(X&&d.hasHostProps){var A=M.localName=="template",l=d.templatizeTemplateClass;if(!l){if(A){var k=N.mutableData?jfS:sfi;l=function(){return k.apply(this,arguments)||this};
_.v(l,k);l=d.templatizeTemplateClass=l}else{var T=M.constructor;l=function(){return T.apply(this,arguments)||this};
_.v(l,T);l=d.templatizeTemplateClass=l}var W=d.hostProps,w;for(w in W)l.prototype._addPropertyEffect("_host_"+w,l.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:PBA(X)}),l.prototype._createNotifyingProperty("_host_"+w);o_&&R&&oD6(d,N,R)}M.__dataProto&&Object.assign(M.__data,M.__dataProto);if(A)hki(M,l),M.__dataTemp={},M.__dataPending=null,M.__dataOld=null,M._enableProperties();else{Object.setPrototypeOf(M,l.prototype);d=d.hostProps;for(var p in d)p="_host_"+p,p in M&&(d=M[p],delete M[p],M.__data[p]=
d)}}};
PBA=function(M){return function(d,N,R){M.call(d.__templatizeOwner,N.substring(6),R[N])}};
vDv=function(M,d,N,R){var X=N.hostProps||{},A;for(A in R.instanceProps){delete X[A];var l=R.notifyInstanceProp;l&&M.prototype._addPropertyEffect(A,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:KJ2(l)})}if(R.forwardHostProp&&d.__dataHost)for(var k in X)N.hasHostProps||(N.hasHostProps=!0),M.prototype._addPropertyEffect(k,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:y9Z()})};
KJ2=function(M){return function(d,N,R){M.call(d.__templatizeOwner,d,N,R[N])}};
y9Z=function(){return function(M,d,N){M.__dataHost._setPendingPropertyOrPath("_host_"+d,N[d],!0,!0)}};
Pm=function(M,d,N){if(rD&&!q$i(M))throw Error("Jd");N=N||{};if(M.__templatizeOwner)throw Error("Kd");M.__templatizeOwner=d;var R=(d?d.constructor:sX)._parseTemplate(M),X=R.templatizeInstanceClass;X||(X=OQN(M,R,N),R.templatizeInstanceClass=X);var A=q$i(M);r9A(M,R,N,A);N=function(){return X.apply(this,arguments)||this};
_.v(N,X);N.prototype._methodHost=A;N.prototype.__dataHost=M;N.prototype.__templatizeOwner=d;N.prototype.__hostProps=R.hostProps;return N};
oD6=function(M,d,N){N=N.constructor._properties;M=M.propertyEffects;d=d.instanceProps;for(var R in M)if(!(N[R]||d&&d[R]))for(var X=M[R],A=0;A<X.length;A++){var l=X[A].info.part;if(!l.signature||!l.signature.static){console.warn("Property '"+R+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
J96=function(M,d){for(var N;d;)if(N=d.__dataHost?d:d.__templatizeInstance)if(N.__dataHost!=M)d=N.__dataHost;else return N;else d=(0,_.VG)(d).parentNode;return null};
KH=function(M){return M.localName==="slot"};
c9Z=function(){for(var M=yG.prototype,d="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),N={},R=0;R<d.length;N={method$jscomp$32:void 0},R++)N.method$jscomp$32=d[R],M[N.method$jscomp$32]=function(X){return function(){return this.node[X.method$jscomp$32].apply(this.node,arguments)}}(N)};
S$i=function(M,d){for(var N={},R=0;R<d.length;N={name$jscomp$378:void 0},R++)N.name$jscomp$378=d[R],Object.defineProperty(M,N.name$jscomp$378,{get:function(X){return function(){return this.node[X.name$jscomp$378]}}(N),
configurable:!0})};
zkr=function(){for(var M=yG.prototype,d=["textContent","innerHTML","className"],N={},R=0;R<d.length;N={name$jscomp$379:void 0},R++)N.name$jscomp$379=d[R],Object.defineProperty(M,N.name$jscomp$379,{get:function(X){return function(){return this.node[X.name$jscomp$379]}}(N),
set:function(X){return function(A){this.node[X.name$jscomp$379]=A}}(N),
configurable:!0})};
bQp=function(){Ja=document.documentElement.getAttribute("dir");Ja=document.documentElement.getAttribute("dir");for(var M=0;M<cm.length;M++){var d=cm[M];d.__autoDirOptOut||d.setAttribute("dir",Ja)}};
iQi=function(){SF=!0;requestAnimationFrame(function(){SF=!1;ekZ(HQS);setTimeout(function(){for(var M=0,d=za.length;M<d;M++)nDq(za.shift())})})};
ekZ=function(M){for(;M.length;)nDq(M.shift())};
nDq=function(M){var d=M[0],N=M[1];M=M[2];try{N.apply(d,M)}catch(R){setTimeout(function(){throw R;})}};
_.fbS=function(M,d,N){SF||iQi();HQS.push([M,d,N])};
_.bM=function(M,d,N){SF||iQi();za.push([M,d,N])};
Gfr=function(M,d){d=d===void 0?!1:d;if(!LJZ||!tBZ||!LJZ.handlesDynamicScoping)return null;var N=tBZ.ScopingShim;if(!N)return null;var R=N.scopeForNode(M),X=(0,_.VG)(M).getRootNode(),A=function(l){if((0,_.VG)(l).getRootNode()===X){var k=Array.from(LJZ.nativeMethods.querySelectorAll.call(l,"*"));k.push(l);for(l=0;l<k.length;l++){var T=k[l];if((0,_.VG)(T).getRootNode()===X){var W=N.currentScopeForNode(T);W!==R&&(W!==""&&N.unscopeNode(T,W),N.scopeNode(T,R))}}}};
A(M);return d?(d=new MutationObserver(function(l){for(var k=0;k<l.length;k++)for(var T=l[k],W=0;W<T.addedNodes.length;W++){var w=T.addedNodes[W];w.nodeType===Node.ELEMENT_NODE&&A(w)}}),d.observe(M,{childList:!0,
subtree:!0}),d):null};
abA=function(){document.body.removeAttribute("unresolved")};
Y$N=function(M){var d=M=M.replace(Uop,"").replace(u32,""),N=new CBA;N.start=0;N.end=d.length;for(var R=N,X=0,A=d.length;X<A;X++)if(d[X]==="{"){R.rules||(R.rules=[]);var l=R,k=l.rules[l.rules.length-1]||null;R=new CBA;R.start=X+1;R.parent=l;R.previous=k;l.rules.push(R)}else d[X]==="}"&&(R.end=X+1,R=R.parent||N);return xoA(N,M)};
xoA=function(M,d){var N=d.substring(M.start,M.end-1);M.parsedCssText=M.cssText=N.trim();M.parent&&(N=d.substring(M.previous?M.previous.end:M.parent.start,M.start-1),N=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(N),N=N.replace(ZQZ," "),N=N.substring(N.lastIndexOf(";")+1),N=M.parsedSelector=M.selector=N.trim(),M.atRule=N.indexOf("@")===0,M.atRule?N.indexOf("@media")===0?M.type=4:N.match(EDq)&&(M.type=7,M.keyframesName=M.selector.split(ZQZ).pop()):N.indexOf("--")===
0?M.type=1E3:M.type=1);if(N=M.rules)for(var R=0,X=N.length,A=void 0;R<X&&(A=N[R]);R++)xoA(A,d);return M};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){return M.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var d=arguments[1],N=6-d.length;N--;)d="0"+d;return"\\"+d})};
Mtv=function(M,d,N){N=N===void 0?"":N;var R="";if(M.cssText||M.rules){var X=M.rules;if(X&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(X))for(var A=0,l=X.length,k=void 0;A<l&&(k=X[A]);A++)R=Mtv(k,d,R);else d?d=M.cssText:(d=M.cssText,d=d.replace(dbA,"").replace(NzZ,""),d=d.replace(RXZ,"").replace(XaA,"")),(R=d.trim())&&(R="  "+R+"\n")}R&&(M.selector&&(N+=M.selector+" {\n"),N+=R,M.selector&&(N+="}\n\n"));return N};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){M=M[0];return!!M&&!!M.selector&&M.selector.indexOf("--")===0};
AuA=function(M){if(M=FSi[M])M._applyShimCurrentVersion=M._applyShimCurrentVersion||0,M._applyShimValidatingVersion=M._applyShimValidatingVersion||0,M._applyShimNextVersion=(M._applyShimNextVersion||0)+1};
Vtp=function(M){return M._applyShimCurrentVersion===M._applyShimNextVersion};
$bj=function(M){M._applyShimValidatingVersion=M._applyShimNextVersion;M._validating||(M._validating=!0,l7Z.then(function(){M._applyShimCurrentVersion=M._applyShimNextVersion;M._validating=!1}))};
kMZ=function(M){if(!M)return"";typeof M==="string"&&(M=Y$N(M));return Mtv(M,BzL)};
TzZ=function(M){!M.__cssRules&&M.textContent&&(M.__cssRules=Y$N(M.textContent));return M.__cssRules||null};
g_i=function(M,d,N,R){if(M){var X=!1,A=M.type;if(R&&A===4){var l=M.selector.match(Dbq);l&&(window.matchMedia(l[1]).matches||(X=!0))}A===1?d(M):N&&A===7?N(M):A===1E3&&(X=!0);if((M=M.rules)&&!X)for(X=0,A=M.length,l=void 0;X<A&&(l=M[X]);X++)g_i(l,d,N,R)}};
WSN=function(M,d){var N=M.indexOf("var(");if(N===-1)return d(M,"","","");a:{var R=0;var X=N+3;for(var A=M.length;X<A;X++)if(M[X]==="(")R++;else if(M[X]===")"&&--R===0)break a;X=-1}R=M.substring(N+4,X);N=M.substring(0,N);M=WSN(M.substring(X+1),d);A=R.indexOf(",");if(A===-1)return d(N,R.trim(),"",M);X=R.substring(0,A).trim();R=R.substring(A+1).trim();return d(N,X,R,M)};
waA=function(M){if(eF!==void 0)return eF;if(M.__cssBuild===void 0){var d=M.getAttribute("css-build");if(d)M.__cssBuild=d;else{a:{d=M.localName==="template"?M.content.firstChild:M.firstChild;if(d instanceof Comment&&(d=d.textContent.trim().split(":"),d[0]==="css-build")){d=d[1];break a}d=""}if(d!==""){var N=M.localName==="template"?M.content.firstChild:M.firstChild;N.parentNode.removeChild(N)}M.__cssBuild=d}}return M.__cssBuild||""};
mbZ=function(M,d,N,R){for(var X=d._noAccessors,A=Object.getOwnPropertyNames(d),l=0;l<A.length;l++){var k=A[l];if(!(k in R))if(X)M[k]=d[k];else{var T=Object.getOwnPropertyDescriptor(d,k);T&&(T.configurable=!0,Object.defineProperty(M,k,T))}}for(var W in paZ)d[W]&&(N[W]=N[W]||[],N[W].push(d[W]))};
hXS=function(M,d,N){d=d||[];for(var R=M.length-1;R>=0;R--){var X=M[R];X?Array.isArray(X)?hXS(X,d):d.indexOf(X)<0&&(!N||N.indexOf(X)<0)&&d.unshift(X):console.warn("behavior is null, check for missing or 404 import")}return d};
Q1S=function(M,d){for(var N in d){var R=M[N],X=d[N];M[N]=!("value"in X)&&R&&"value"in R?Object.assign({value:R.value},X):X}};
v_v=function(M,d,N){var R={},X=function(){return d.apply(this,arguments)||this};
_.v(X,d);X._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(l)for(var T=0,W;T<l.length;T++)W=l[T],W.properties&&this.createProperties(W.properties),W.observers&&this.createObservers(W.observers,W.properties);M.properties&&this.createProperties(M.properties);M.observers&&this.createObservers(M.observers,M.properties);this._prepareTemplate()}else d._finalizeClass.call(this)};
X.prototype.created=function(){d.prototype.created.call(this);var T=R.created;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype._registered=function(){var T=X.prototype;if(!T.hasOwnProperty("__hasRegisterFinished")){T.__hasRegisterFinished=!0;d.prototype._registered.call(this);OX&&k(T);T=Object.getPrototypeOf(this);var W=R.beforeRegister;if(W)for(var w=0;w<W.length;w++)W[w].call(T);if(W=R.registered)for(w=0;w<W.length;w++)W[w].call(T)}};
X.prototype._applyListeners=function(){d.prototype._applyListeners.call(this);var T=R.listeners;if(T)for(var W=0;W<T.length;W++){var w=T[W];if(w)for(var p in w)this._addMethodEventListenerToNode(this,p,w[p])}};
X.prototype._ensureAttributes=function(){var T=R.hostAttributes;if(T)for(var W=T.length-1;W>=0;W--){var w=T[W],p;for(p in w)this._ensureAttribute(p,w[p])}d.prototype._ensureAttributes.call(this)};
X.prototype.ready=function(){d.prototype.ready.call(this);var T=R.ready;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype.attached=function(){d.prototype.attached.call(this);var T=R.attached;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype.detached=function(){d.prototype.detached.call(this);var T=R.detached;if(T)for(var W=0;W<T.length;W++)T[W].call(this)};
X.prototype.attributeChanged=function(T,W,w){d.prototype.attributeChanged.call(this);var p=R.attributeChanged;if(p)for(var m=0;m<p.length;m++)p[m].call(this,T,W,w)};
_.Hm.Object.defineProperties(X,{properties:{configurable:!0,enumerable:!0,get:function(){var T={};if(l)for(var W=0;W<l.length;W++)Q1S(T,l[W].properties);Q1S(T,M.properties);return T}},
observers:{configurable:!0,enumerable:!0,get:function(){var T=[];if(l)for(var W=0,w;W<l.length;W++)w=l[W],w.observers&&(T=T.concat(w.observers));M.observers&&(T=T.concat(M.observers));return T}}});
if(N){Array.isArray(N)||(N=[N]);var A=d.prototype.behaviors;var l=hXS(N,null,A);X.prototype.behaviors=A?A.concat(N):l}var k=function(T){if(l)for(var W=l,w=0;w<W.length;w++)mbZ(T,W[w],R,qep);mbZ(T,M,R,I7i)};
OX||k(X.prototype);X.generatedFrom=M;return X};
P52=function(M){var d=typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0};d.fastInit===void 0&&(d.fastInit=!0);return function(N){if(!d.disableInheritanceCheck&&Object.getPrototypeOf(N.prototype).constructor!==_.nH)throw Error("Od");var R=N.prototype;R.is=d.is;yIZ(R,"created",function(){this.hostElement=this;this.polymerController=this});
Otp(R,N,d.fastInit);d.notifyObserversOnUndefined&&(R._overrideLegacyUndefined=!0);if(j1L)for(var X=_.V(Object.getOwnPropertyNames(R)),A=X.next();!A.done;A=X.next()){A=A.value;var l=Object.getOwnPropertyDescriptor(R,A);l.enumerable===!1&&(l.enumerable=!0,Object.defineProperty(R,A,l))}if("template"in N)var k=function(){return N.template};
else d.template!==void 0&&(k=d.template);if(k!==void 0){var T;Object.defineProperty(R,"_template",{get:function(){T===void 0&&(T=k());return T},
set:function(W){T=W},
configurable:!0,enumerable:!0})}Polymer(R);N[s1Z]=R}};
o_i=function(M){M=M===void 0?{}:M;M.fastInit===void 0&&(M.fastInit=!0);return function(d){if(!M.disableInheritanceCheck&&Object.getPrototypeOf(d.prototype).constructor!==iM)throw Error("Pd");Otp(d.prototype,d,M.fastInit)}};
Otp=function(M,d,N){N=N===void 0?!1:N;rup(d);N?yIZ(M,"created",function(){this.disableEnforceFastDefaultValuesCheck||KSv(d,this)}):yIZ(M,"ready",function(){for(var R={},X=_.V(JI6(this.behaviors)),A=X.next();!A.done;A=X.next())A=A.value,A.properties&&Object.assign(R,yuL(this,A.properties));
Object.assign(R,yuL(this,this.properties));KSv(d,this);X=_.V(Object.keys(R));for(A=X.next();!A.done;A=X.next())A=A.value,this[A]=R[A]})};
KSv=function(M,d){if(j1L){M=new M;for(var N=_.V(Object.getOwnPropertyNames(M)),R=N.next();!R.done;R=N.next())R=R.value,d[R]=M[R];for(N=d;N&&N!==Object.prototype;N=Object.getPrototypeOf(N)){R=_.V(Object.getOwnPropertyNames(N));for(var X=R.next();!X.done;X=R.next())X=X.value,M.hasOwnProperty(X)||Object.defineProperty(M,X,Ju2(d,X))}}else M.apply(d)};
Ju2=function(M,d){return{get:function(){var N=M[d];return N instanceof Function?N.bind(M):N},
set:function(N){M[d]=N}}};
yuL=function(M,d){if(!d)return{};for(var N={},R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next())if(X=X.value,!d[X].readOnly){var A=M[X];A!==void 0&&(N[X]=A)}return N};
rup=function(M){var d=new M;M=M.prototype.properties||{};for(var N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next())if(R=R.value,d.hasOwnProperty(R)){var X=M[R];typeof X==="function"&&(M[R]=X={type:X});d[R]!=null&&X.type===Object&&(X.type=cu2(d[R].constructor))}};
cu2=function(M){for(var d=_.V(Sev),N=d.next();!N.done;N=d.next())if(N=N.value,M===N)return N;return Object};
zXi=function(M){return function(d,N){d.behaviors=d.behaviors||[];d.behaviors.push(M||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",d,N).prototype:void 0));Object.defineProperty(d,N,{get:function(){return this},
enumerable:!0,configurable:!0})}};
btA=function(M){M=M===void 0?{}:M;return function(d,N){d.properties=d.properties||{};M.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?M.type=cu2(Reflect.getMetadata("design:type",d,N)):M.type=String);var R=M,X=d.properties[N];d.properties[N]=X?Object.assign({},X,R):R}};
eXj=function(M){return function(d,N){d.listeners=d.listeners||{};d.listeners[M]=N}};
Htr=function(){var M=_.wH.apply(0,arguments);if(M.length===0)throw Error("Qd");return function(d,N){d.observers=d.observers||[];d.observers.push(N+"("+M.join(",")+")")}};
n_q=function(){var M=_.wH.apply(0,arguments);return function(d,N,R){var X=Object.getOwnPropertyDescriptor(d,N).get,A="__compute__"+N;Object.defineProperty(d,A,{value:X,enumerable:!0});d.properties=d.properties||{};X=d.properties[N];X||(X={},d.properties[N]=X);X.computed=A+"("+M.join(",")+")";R.get=void 0}};
_.fH=function(M,d,N){_.DL.call(this);this.JSC$9107_id_=null;this.usingListeners_=!1;this.JSC$9107_listener_=M;this.handler_=N;this.JSC$9107_win_=d||window;this.callback_=(0,_.gx)(this.JSC$9109_doAction_,this)};
LH=function(M){this.range_=M};
ta=function(M){this.range_=M};
UX=function(M,d,N){_.DL.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=M;this.scrollTimer_=new _.Ga(50);this.JSC$9186_eventHandler_=new _.a_(this);this.scrollDelta_=new _.hw;this.containerIsActuallyContent_=M.tagName==="BODY"||M.tagName==="HTML";this.containerBounds_=it2(M);this.containerIsActuallyContent_&&(M=_.Xt(),this.containerBounds_.height=M.height,this.containerBounds_.width=M.width);this.margin_=d||0;if(d){if(d=this.containerBounds_.clone(),M=this.margin_){var R=
Math.min(M,d.height*.25);d.top+=R;d.height-=2*R;M=Math.min(M,d.width*.25);d.left+=M;d.width-=2*M}}else d=this.containerBounds_;this.scrollBounds_=d;N||this.JSC$9186_eventHandler_.listen(_.qy(this.containerNode_),"mousemove",this.JSC$9188_onMouseMove);this.JSC$9186_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9188_onTick_)};
_.uM=function(M){this.mechanism=M};
CH=function(M,d){this.JSC$9284_key_=M;this.JSC$9284_value_=d};
LSv=function(M){if(M>=55296&&M<=57343||M>1114111)return"\ufffd";M in f72&&(M=f72[M]);var d="";M>65535&&(M-=65536,d+=String.fromCharCode(M>>>10&1023|55296),M=56320|M&1023);return d+=String.fromCharCode(M)};
ttS=function(M,d){return M<d?1:-1};
a7Z=function(){return function(M){return M.charAt(1)==="#"?M.charAt(2)==="X"||M.charAt(2)==="x"?LSv(parseInt(M.substr(3),16)):LSv(parseInt(M.substr(2),10)):GMZ[M.slice(1,-1)]}};
C5Z=function(M){return M.slice(1,M.length-1).trim().replace(UbA,function(d){return uUp[d]||" "})};
xC=function(M){return M===32||M===9};
YC=function(M,d){return d<M.length?M.charCodeAt(d):-1};
xbq=function(M){for(;M;){if(M._lastLineBlank)return!0;var d=M.type;if(d==="list"||d==="item")M=M._lastChild;else break}return!1};
Zt=function(M){if(YeL.test(M)){var d=1,N=0,R=0;for(M[N]=="|"&&N++;N<M.length;){switch(M[N]){case "|":R=1;break;case " ":break;case "\t":break;default:R&&(R=0,d++)}N++}return Ztj.test(M)?-d:d}return 0};
E_r=function(M){return M=="table"||M=="row"||M=="cell"};
MSZ=function(){return new EX("document",[[1,1],[0,0]])};
dnA=function(){};
Mw=function(){var M={safe:!1};M=M||{};M.softbreak=M.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=M};
AiZ=function(M,d){var N="";if(M)if(M=M.toLowerCase(),M===" "||NPi.test(M))N="space";else if(Rxq.test(M))N="esc";else if(M.length==1){if(!d||X_A.test(M))N=M}else N=Fv2.test(M)?M.replace("arrow",""):M=="multiply"?"*":M;return N};
BPA=function(M,d){var N=M.hasModifiers;if(d.key)N=AiZ(d.key,N);else if(d.detail&&d.detail.key)N=AiZ(d.detail.key,N);else{N=d.keyIdentifier;var R="";N&&(N in VSi?R=VSi[N]:lki.test(N)?(N=parseInt(N.replace("U+","0x"),16),R=String.fromCharCode(N).toLowerCase()):R=N.toLowerCase());(N=R)||(N=d.keyCode,R="",Number(N)&&(N>=65&&N<=90?R=String.fromCharCode(32+N):N>=112&&N<=123?R="f"+(N-112+1):N>=48&&N<=57?R=String(N-48):N>=96&&N<=105?R=String(N-96):R=$n6[N]),N=R);N=N||""}return N===M.key&&(!M.hasModifiers||
!!d.shiftKey===!!M.shiftKey&&!!d.ctrlKey===!!M.ctrlKey&&!!d.altKey===!!M.altKey&&!!d.metaKey===!!M.metaKey)};
TPr=function(M){return M.length===1?{combo:M,key:M,event:"keydown"}:M.split("+").reduce(function(d,N){var R=N.split(":");N=R[0];R=R[1];N in k7Z?(d[k7Z[N]]=!0,d.hasModifiers=!0):(d.key=N,d.event=R||"keydown");return d},{combo:M.split(":").shift()})};
DnZ=function(M){return M.trim().split(" ").map(function(d){return TPr(d)})};
ghj=function(M,d){if(M&&M.fn){var N=M.fn;M.fn=function(){try{N.apply(this,arguments)}catch(R){if(R instanceof dB)console.warn("Argument '"+R.arg+"'"+(d?" for method '"+d+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw R;}}}return M};
WvZ=function(){var M=_.wH.apply(0,arguments);return M.length===0?function(d){return d}:M.length===1?M[0]:M.reduce(function(d,N){return function(){return d(N.apply(null,_.wu(_.wH.apply(0,arguments))))}})};
w_Z=function(){var M=_.wH.apply(0,arguments);return function(d){return function(N,R){N=d(N,R);var X=function(){throw Error("Ae");},A={getState:N.getState,
dispatch:function(l){return X.apply(null,[l].concat(_.wu(_.wH.apply(1,arguments))))}};
R=M.map(function(l){return l(A)});
X=WvZ.apply(null,_.wu(R))(N.dispatch);return Object.assign({},N,{dispatch:X})}}};
hxS=function(M){Object.keys(M).forEach(function(d){var N=M[d];if(typeof N(void 0,{type:p_Z})==="undefined")throw Error("Be`"+d);if(typeof N(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+mni()})==="undefined")throw Error("Ce`"+d+"`"+p_Z);})};
Nw=function(M){for(var d=Object.keys(M),N={},R=0;R<d.length;R++){var X=d[R];typeof M[X]==="function"&&(N[X]=M[X])}var A=Object.keys(N);try{hxS(N)}catch(k){var l=k}return function(k,T){k=k===void 0?{}:k;if(l)throw l;for(var W=!1,w={},p=0;p<A.length;p++){var m=A[p],I=k[m],O=(0,N[m])(I,T);if(typeof O==="undefined")throw k=T&&T.type,Error("De`"+(k?'"'+String(k)+'"':"(unknown type)")+"`"+m);w[m]=O;W=W||O!==I}return(W=W||A.length!==Object.keys(k).length)?w:k}};
QXA=function(M,d,N){function R(){if(w)throw Error("Ee");return k}
function X(I){if(typeof I!=="function")throw Error("Fe`"+typeof I);if(w)throw Error("Ge");var O=!0;W===T&&(W=T.slice());W.push(I);return function(){if(O){if(w)throw Error("He");O=!1;W===T&&(W=T.slice());var y=W.indexOf(I);W.splice(y,1);T=null}}}
function A(I){if(typeof I!=="object"||I===null)var O=!1;else{for(O=I;Object.getPrototypeOf(O)!==null;)O=Object.getPrototypeOf(O);O=Object.getPrototypeOf(I)===O}if(!O)throw Error("Ie`"+typeof I);if(typeof I.type==="undefined")throw Error("Je");if(w)throw Error("Ke");try{w=!0,k=l(k,I)}finally{w=!1}O=T=W;for(var y=0;y<O.length;y++)(0,O[y])();return I}
if(typeof d==="function"&&typeof N==="function"||typeof N==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof d==="function"&&typeof N==="undefined"&&(N=d,d=void 0);if(typeof N!=="undefined"){if(typeof N!=="function")throw Error("Me`"+typeof N);return N(QXA)(M,d)}if(typeof M!=="function")throw Error("Ne`"+typeof M);var l=M,k=d,T=[],W=T,w=!1;A({type:p_Z});var p={},m=(p.dispatch=A,p.subscribe=X,p.getState=R,p.replaceReducer=function(I){if(typeof I!=="function")throw Error("Oe`"+
typeof I);l=I;A({type:q1r});return m},p[Iki]=function(){var I={};
return I.subscribe=function(O){function y(){O.next&&O.next(R())}
if(typeof O!=="object"||O===null)throw new TypeError("Pe`"+typeof O);y();return{unsubscribe:X(y)}},I[Iki]=function(){return this},I},p);
return m};
vh6=function(M){function d(){X&&(X=!1,M());A&&R()}
function N(){requestAnimationFrame(d)}
function R(){var k=Date.now();if(X){if(k-l<2)return;A=!0}else X=!0,A=!1,setTimeout(N,20);l=k}
var X=!1,A=!1,l=0;return R};
Rn=function(M){return typeof M==="number"?M:parseFloat(M)||0};
O5Z=function(M){return _.wH.apply(1,arguments).reduce(function(d,N){return d+Rn(M["border-"+N+"-width"])},0)};
_.P=function(M,d){d=jd(O0(d));M.innerHTML=d};
Pbr=function(M){var d=jXN;d||(d=sXS(),d=jXN=_.wF.transpose(d));d=d[M];return typeof d==="string"?d:_.Xf(M)};
oh6=function(M){M=String(M).toLowerCase();var d=sXS()[M];return typeof d==="string"?d:_.Ff(M)};
ri6=function(M){M=M.toLowerCase();M=sXS()[M];return typeof M==="string"?M:null};
sXS=function(){if(!Kv2){for(var M=Object.assign({},yiZ),d=_.V(Jij),N=d.next();!N.done;N=d.next())N=N.value,M[N.toLowerCase()]=N;Kv2=M}return Kv2};
zxA=function(M,d){var N=window.customElements;return N&&N.get(M)||cir[M]===!0?2:d.name==="HTMLUnknownElement"?1:d.name==="HTMLElement"&&S1Z.test(M)?3:0};
H52=function(M,d){switch(d){case "innerHTML":return b5Z(M)===1?2:null;case "textContent":return M=b5Z(M),M===1||M===6?1:null;default:var N,R;return(R=(N=ex2[M.localName])==null?void 0:N[d])!=null?R:null}};
b5Z=function(M){var d=M.localName,N=zxA(d,M.constructor);switch(N){case 0:case 1:return nhr(d,M);case 3:case 2:return 1;default:_.RC(N,"got an unknown element classification")}};
nhr=function(M,d){var N=Object.hasOwnProperty.call(i5i,M)?i5i[M]:null;return N!==null?N:Object.hasOwnProperty.call(fkS,M)&&d instanceof SVGElement?fkS[M]:null};
LvZ=function(M,d){return d};
G7r=function(M){return(M=M.split(tSi,2))?{url:M[0],metadata:M[1]}:null};
Uni=function(M){var d=String(M.url).replace(akZ,encodeURIComponent);if(M=M.metadata){akZ.lastIndex=0;if(akZ.test(M))return null;d+=" "+M}return d};
Y1r=function(M){function d(W){var w=W.localName;if(!W.getAttribute("is")&&zxA(w,W.constructor)===2){var p;return(p=T)!=null?p:T=document.createElement("polyresinuncustomized")}(W=k[w])||(W=k[w]=document.createElement(w));return W}
var N=M.reportHandler||void 0,R=M.safeTypesBridge||uqZ,X=/^$/;if(M=M.allowedIdentifierPrefixes){M=_.V(M);for(var A=M.next();!A.done;A=M.next())X=new RegExp(X.source+"|^"+_.CbZ(A.value))}N&&N(!1,"initResin",null);var l=xnq(X,R,N),k={},T=null;return function(W,w,p){var m=W.nodeType;if(m!==Node.ELEMENT_NODE){if(m===Node.TEXT_NODE){w=W.parentElement;p=!w;if(w&&w.nodeType===Node.ELEMENT_NODE){m=w.localName;var I=zxA(m,w.constructor);switch(I){case 0:case 1:w=nhr(m,w);p=w===1||w===6;break;case 3:case 2:p=
!0;break;default:_.RC(I,"got an unknown element classification")}}if(p)return function(e){return""+R(e,"STRING",e)}}return function(e){if(!e&&e!==document.all)return e;
N&&N(!0,"Failed to sanitize "+(W.parentElement&&W.parentElement.nodeName)+" #text node to value "+e,W.parentElement);return $P}}var O=W.localName;
m=d(W);var y=null;switch(p){case "attribute":if(oh6(w)in m)break;return function(e){return e};
case "property":if(w in m){y=H52(m,w);break}if((I=ri6(w))&&I in m)break;return function(e){return e};
default:_.RC(p,"got an unknown resin type, expected either 'property' or 'attribute'")}var c=p==="attribute"?w.toLowerCase():Pbr(w);y||(y=W0v(O,c,function(e){var t=W.getAttribute(e);return!t||/[\[\{]/.test(e)?null:t}));
return function(e){var t=Bl,C=null;if(!e&&e!==document.all)return e;if(y!=null){var U=l[y],Fi=U.safeType;C=U.safeReplacement;Fi&&(t=R(e,Fi,Bl));t===Bl&&(U.filterString?(t=String(R(e,"STRING",e)),t=U.filterString(O,c,t)):U.filterRaw&&(t=U.filterRaw(O,c,e,W)),t===C&&(t=Bl))}t===Bl&&(t=C||$P,N&&N(!0,"Failed to sanitize attribute of <"+O+">: <"+O+" "+c+'="'+e+'">',W));return t}}};
xnq=function(M,d,N){return[,{filterRaw:function(R,X,A){return A},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:Z5N,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Z5N,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:$P,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:EhZ,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(R,X,A){A=
String(A).toLowerCase();return mUS(R,X,A)?A:$P},
safeReplacement:$P,safeType:void 0},,{filterRaw:void 0,filterString:function(R,X,A){return M.test(A)?A:$P},
safeReplacement:$P,safeType:"CONSTANT"},{filterRaw:function(R,X,A,l){if(typeof A==="string")var k=(k=A.match(MI2))?k.map(G7r).filter(Boolean):[];else if(Array.isArray(A))k=A;else return Z5N;var T=k;k=[];var W=[],w={};if(Array.isArray(T))for(var p=0,m=T.length;p<m;++p){var I=T[p],O=I&&I.url;if(O){var y=d(O,"URL",w);if(y){var c=y!==w;(c?k:W).push({url:c?y:O,metadata:I.metadata})}}}else W.push(T);T=W.length?JSON.stringify(W):null;W=Bl;if(k.length){if(!Array.isArray(k))throw Error();W=k.map(Uni).filter(Boolean).join(" , ")||
Bl}T&&N&&N(!0,"Failed to sanitize attribute value of <"+R+">: <"+R+" "+X+'="'+A+'">: '+T,l);return W===Bl?Z5N:W},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
dI2=function(M){var d=Y1r(M);return function(N,R,X,A){return A||A===document.all?d(N,R,X)(A):A}};
kP=function(M,d){function N(){function X(k,T,W){for(T=Reflect.getMetadata("parameters",k)||[];T.length<=W;)T.push(null);T[W]=T[W]||[];T[W].push(l);Reflect.defineMetadata(T,k);return k}
var A=_.wH.apply(0,arguments);if(this instanceof N)return R.apply(this,A),this;var l=new (Function.prototype.bind.apply(N,[null].concat(_.wu(A))));X.annotation=l;return X}
var R=Nli(d);N.prototype.toString=function(){return"@"+M};
return N.annotationCls=N};
Nli=function(M){return function(){var d=_.wH.apply(0,arguments),N=this;M.forEach(function(R,X){X=d[X];if(Array.isArray(R))N[R[0]]=X&&X!==void 0?X:R[1];else for(var A in R)N[A]=X&&X[A]!==void 0?X[A]:R[A]})}};
Rvj=function(M){return M!==void 0&&M!==null};
TD=function(M){if(typeof M==="string")return M;if(M===void 0||M===null)return""+M;if(M.overriddenName)return M.overriddenName;if(M.name)return M.name;M=M.toString();var d=M.indexOf("\n");return d===-1?M:M.substring(0,d)};
X6Z=function(M){M.__forward_ref__=X6Z;M.toString=function(){return TD(this())};
return M};
DI=function(M){return typeof M==="function"&&M.hasOwnProperty("__forward_ref__")&&M.__forward_ref__===X6Z?M():M};
F2j=function(M){return M?M.map(function(d){return new (Function.prototype.bind.apply(d.type.annotationCls,[null].concat(_.wu(d.args?d.args:[]))))}):[]};
AM2=function(M){for(var d=[],N=0;N<M.length;++N){if(d.indexOf(M[N])>-1){d.push(M[N]);break}d.push(M[N])}return d};
VIq=function(M){return M.length>1?" ("+AM2(M.slice().reverse()).map(function(d){return TD(d.token)}).join(" -> ")+")":""};
$IZ=function(M,d,N,R){if(R){var X=Error("We``"+(R instanceof Error?R.message:R));X.ngOriginalError=R}else X=Error();X.addKey=l0i;X.keys=[d];X.injectors=[M];X.constructResolvingMessage=N;X.message=X.constructResolvingMessage();X.ngOriginalError=R;return X};
l0i=function(M,d){this.injectors.push(M);this.keys.push(d);this.message=this.constructResolvingMessage()};
Blv=function(M,d){return $IZ(M,d,function(){return"No provider for "+TD(this.keys[0].token)+"!"+VIq(this.keys)})};
ke2=function(M,d){return $IZ(M,d,function(){return"Cannot instantiate cyclic dependency!"+VIq(this.keys)})};
TlL=function(M,d,N){return $IZ(M,N,function(){var R=TD(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+R+"!"+VIq(this.keys)+"."},d)};
DIv=function(M,d){for(var N=[],R=0,X=d.length;R<X;R++){var A=d[R];A&&A.length!=0?N.push(A.map(TD).join(" ")):N.push("?")}return Error("$e`"+TD(M)+"`"+N.join(", ")+"`"+TD(M))};
QxZ=function(M){var d=void 0,N=void 0;if(M&&M.useClass!==void 0){d=M.useClass;var R=DI(M.useClass);var X=gsA.factory(R);R=W2S(R)}else M&&M.useExisting!==void 0?(X=function(A){return A},R=[w6Z(gB.get(DI(M.useExisting)))]):M&&M.useFactory!==void 0?(X=M.useFactory,R=p6Z(M.useFactory,M.deps)):(N=M.useValue,X=function(){return M.useValue},R=mI6);
return new hvZ(X,R,d,N)};
I0r=function(M){return new q8N(gB.get(DI(M.provide)),[QxZ(M)],M.multi)};
Oep=function(M){M=vsq(M,[]).map(I0r);for(var d=new Map,N=0;N<M.length;N++){var R=M[N],X=d.get(R.key.id);if(X){if(R.multiProvider!==X.multiProvider)throw Error("bf`"+X+"`"+R);if(R.multiProvider)for(var A=0;A<R.resolvedFactories.length;A++)X.resolvedFactories.push(R.resolvedFactories[A]);else d.set(R.key.id,R)}else X=void 0,R.multiProvider?X=new q8N(R.key,R.resolvedFactories.slice(),R.multiProvider):X=R,d.set(R.key.id,X)}return Array.from(d.values())};
vsq=function(M,d){M.forEach(function(N){if(N instanceof jxA)d.push({provide:N,useClass:N});else if(N&&typeof N=="object"&&N.provide!==void 0)d.push(N);else if(N instanceof Array)vsq(N,d);else throw Error("Ze`"+N);});
return d};
p6Z=function(M,d){if(d){var N=d.map(function(R){return[R]});
return d.map(function(R){return sxZ(M,R,N)})}return W2S(M)};
W2S=function(M){var d=gsA.parameters(M);if(!d)return[];if(d.some(function(N){return N==null}))throw DIv(M,d);
return d.map(function(N){return sxZ(M,N,d)})};
sxZ=function(M,d,N){var R=null,X=!1;if(!Array.isArray(d))return d instanceof PUL?osL(d.token,X,null):osL(d,X,null);for(var A=null,l=0;l<d.length;++l){var k=d[l];if(k instanceof jxA)R=k;else if(k instanceof PUL)R=k.token;else if(k instanceof rMv)X=!0;else if(k instanceof K2r||k instanceof yMA)A=k}R=DI(R);if(R!=null)return osL(R,X,A);throw DIv(M,N);};
osL=function(M,d,N){return new JMi(gB.get(DI(M)),d,N)};
cMv=function(M,d){for(var N=Array(M.providers.length),R=0;R<M.providers.length;++R){var X=R;if(R<0||R>=M.providers.length)throw Error("af`"+R);N[X]=d(M.providers[R])}return N};
S8p=function(M){return typeof M==="function"&&gsA.parameters(M).every(function(d){return!!d})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,d){var N,R;if(M.contains(d))return!0;M=_.Wl(M).querySelectorAll("content,slot");for(N=0;N<M.length;++N){var X=_.Wl(M[N]).getDistributedNodes();for(R=0;R<X.length;++R)if(X[R].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X[R],d))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){M.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M)&&M.preventDefault();M.targetTouches&&(M=M.targetTouches[0],zvi=M.pageX,beZ=M.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var M=0,d=wB.length;M<d;M++)document.addEventListener(wB[M],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var M=0,d=wB.length;M<d;M++)document.removeEventListener(wB[M],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){var d=_.Wl(M).rootTarget;M.type!=="touchmove"&&evZ!==d&&(evZ=d,Her=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Wl(M).path));if(!Her.length)return!0;if(M.type==="touchstart")return!1;M=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Her,M.deltaX,M.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){for(var d=[],N=M.indexOf(ns6),R=0;R<=N;R++)if(M[R].nodeType===Node.ELEMENT_NODE){var X=M[R],A=X.style;A.overflow!=="scroll"&&A.overflow!=="auto"&&(A=window.getComputedStyle(X));A.overflow!=="scroll"&&A.overflow!=="auto"||d.push(X)}return d};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,d,N){if(d||N)for(var R=Math.abs(N)>=Math.abs(d),X=0;X<M.length;X++){var A=M[X];if(R?N<0?A.scrollTop>0:A.scrollTop<A.scrollHeight-A.clientHeight:d<0?A.scrollLeft>0:A.scrollLeft<A.scrollWidth-A.clientWidth)return A}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){var d={deltaX:M.deltaX,deltaY:M.deltaY};"deltaX"in M||("wheelDeltaX"in M&&"wheelDeltaY"in M?(d.deltaX=-M.wheelDeltaX,d.deltaY=-M.wheelDeltaY):"wheelDelta"in M?(d.deltaX=0,d.deltaY=-M.wheelDelta):"axis"in M?(d.deltaX=M.axis===1?M.detail:0,d.deltaY=M.axis===2?M.detail:0):M.targetTouches&&(M=M.targetTouches[0],d.deltaX=zvi-M.pageX,d.deltaY=beZ-M.pageY));return d};
iep=function(M){this.element=M;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
L2Z=function(M){this.element=M;this.color=window.getComputedStyle(M).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.Wl(this.waveContainer).appendChild(this.wave);f0Z(this)};
pL=function(M,d){for(var N in M)if(N.toLowerCase()===d.toLowerCase())return M[N]};
tIZ=function(M,d){for(var N in M)if(N.toLowerCase()===d.toLowerCase()){delete M[N];break}};
a0S=function(M){M=_.wF.clone(M);for(var d=0;d<Gei.length;++d){var N=Gei[d],R=pL(M,N);R&&(M["X-Goog-Upload-Header-"+N]=R,tIZ(M,N))}return M};
UIj=function(M){M=_.wF.clone(M);tIZ(M,"X-Goog-Upload-Status")};
CUi=function(M){return uWZ.some(function(d){return d.test(M)})};
Esj=function(M,d){var N;var R=(N=M.formContent)==null?void 0:N.locale;N=R==null?void 0:R.split("-")[0];R=R&&xIj.includes(R)?R:N&&xIj.includes(N)?N:void 0;R=(R!=null?R:"en").replaceAll("-","_").toLowerCase();var X;M=((X=M.initializationData)==null?0:X.useNightlyRelease)?"nightly":"live";var A;return(d==null?0:(A=d.getEnableAlohaBinarySplit)==null?0:A.call(d))?_.u6(Y8i,M):_.u6(ZeS,M,R)};
dcZ=function(M,d,N,R){if(MsN)return MsN;var X=Esj(M,R);return MsN=d.feedbackV2GlobalObject?Promise.resolve(d.feedbackV2GlobalObject):new Promise(function(A,l){var k=_.Vf("SCRIPT");_.Sd(k,X);k.onload=function(){d.feedbackV2GlobalObject?A(d.feedbackV2GlobalObject):l(Error("ef"))};
k.onerror=function(){l(Error("ff`"+X.toString()))};
N.body.appendChild(k)})};
RcL=function(M,d,N,R){if(Nyv)return Nyv;var X=Esj(M,R);return Nyv=d.feedbackV2GlobalObject?Promise.resolve(d.feedbackV2GlobalObject):new Promise(function(A,l){var k=_.Vf("SCRIPT");_.Sd(k,X);k.onload=function(){d.feedbackV2GlobalObject?A(d.feedbackV2GlobalObject):l(Error("ef"))};
k.onerror=function(){l(Error("ff`"+X.toString()))};
N.body.appendChild(k)})};
XXi=function(M,d,N,R,X){X=X===void 0?!0:X;var A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return A=Date.now(),_.D(w,dcZ(M,N,R,d),2);case 2:l=w.yieldResult;if(!(X||((T=M.initializationData)==null?0:T.useNightlyRelease)||((W=M.initializationData)==null?0:W.isLocalServer))){k=l.initializeFeedbackClient(M,A,d);w.jumpTo(3);break}return _.D(w,l.initializeFeedbackClientAsync(M,A,d),4);case 4:k=w.yieldResult;case 3:return k.initiateAloha(),w.return(k)}})};
Fkq=function(M,d,N,R){var X,A,l;return _.B(function(k){if(k.nextAddress==1)return X=Date.now(),_.D(k,RcL(M,N,R.document,d),2);if(k.nextAddress!=3)return A=k.yieldResult,_.D(k,A.initializeFeedbackClientAsync(M,X,d,R),3);l=k.yieldResult;l.initiateAloha();return k.return(l)})};
AY2=function(M,d,N){var R=!0;R=R===void 0?!0:R;var X,A,l,k,T,W,w,p,m,I;return _.B(function(O){X=N||_.Np;if((A=d)==null?0:(k=(l=A).getEnableAlohaBinarySplit)==null?0:k.call(l)){T=X;if(T.isFormOpened)throw W=Error("gf"),W.name="DuplicateFormError",W;T.isFormOpened=!0;M.callbacks=M.callbacks||{};w=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(y){T.isFormOpened=!1;w(y)};
try{return O.return(Fkq(M,d,T,X))}catch(y){throw T.isFormOpened=!1,y;}}else{p=X;if(p.isFormOpened)throw m=Error("gf"),m.name="DuplicateFormError",m;p.isFormOpened=!0;M.callbacks=M.callbacks||{};I=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(y){p.isFormOpened=!1;I(y)};
try{return O.return(XXi(M,d,p,X.document,R))}catch(y){throw p.isFormOpened=!1,y;}}_.Vy(O)})};
kUL=function(M,d){return _.B(function(N){return N.return(new Promise(function(R){var X=VsN(d!=null?d:"")+"/aloha_form_properties?productId="+M;lji(X,function(A){A=A.target;var l=null;try{var k=JSON,T=k.stringify;if(A.JSC$7680_xhr_){var W=A.JSC$7680_xhr_.responseText;W.indexOf(")]}'\n")==0&&(W=W.substring(5));var w=(0,_.mY)(W)}else w=void 0;l=R62($c2,T.call(k,w))}catch(p){T=new $c2,w=ByL(),w=_.hX(w,13,!1),w=_.hX(w,14,!0),w=_.hX(w,15,!0),w=_.hX(w,20,!1),l=_.ZG(T,1,w)}R(l)},"GET","",{},2E3,!0)}))})};
VsN=function(M){return CUi(M)?M:"https://www.google.com/tools/feedback"};
WkZ=function(M){M=M.match(new RegExp(TyS,"gi"))||[];M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;a:{var N=_.V(Dcv);for(var R=N.next();!R.done;R=N.next())if(R.value.test(d)){N=!1;break a}N=!0}if(!N)a:{N=_.V(g9L);for(R=N.next();!R.done;R=N.next())if(R.value.test(d)){N=!0;break a}N=!1}if(N)return!0}return!1};
wXZ=function(M){switch(M){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
mcZ=function(M){if(window.crypto&&window.crypto.getRandomValues)try{var d=Array(M),N=new Uint8Array(M);window.crypto.getRandomValues(N);for(var R=0;R<d.length;R++)d[R]=N[R];return d}catch(A){}d=Array(M);for(N=0;N<M;N++){R=Date.now();for(var X=0;X<R%23;X++)d[N]=Math.random();d[N]=Math.floor(Math.random()*256)}if(pXZ)for(N=1,R=0;R<pXZ.length;R++)d[N%M]^=d[(N-1)%M]/4^pXZ.charCodeAt(R),N++;return d};
Qb=function(M){M=mcZ(M);for(var d=[],N=0;N<M.length;N++)d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[N]&63));return d.join("")};
Qep=function(M){M&&_.hQ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:hc6,clientScreenNonce:M})};
qFp=function(M){return _.rK("client-screen-nonce-store",{})[M===void 0?0:M]};
IjL=function(M,d){d=d===void 0?0:d;var N=_.rK("client-screen-nonce-store");N||(N={},_.oJ("client-screen-nonce-store",N));N[d]=M};
v9i=function(M){M=M===void 0?0:M;return M===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+M};
O2Z=function(M){return _.rK(v9i(M===void 0?0:M))};
_.vl=function(M){return(M=O2Z(M===void 0?0:M))?new _.qw({veType:M,youtubeData:void 0,jspbYoutubeData:void 0}):null};
je2=function(){var M=_.rK("csn-to-ctt-auth-info");M||(M={},_.oJ("csn-to-ctt-auth-info",M));return M};
sev=function(){return Object.values(_.rK("client-screen-nonce-store",{})).filter(function(M){return M!==void 0})};
_.Ou=function(M){M=qFp(M===void 0?0:M);if(!M&&!_.KF("USE_CSN_FALLBACK",!0))return null;M||(M="UNDEFINED_CSN");return M?M:null};
o9q=function(M){for(var d=_.V(Object.values(Pmr)),N=d.next();!N.done;N=d.next())if(_.Ou(N.value)===M)return!0;return!1};
rYZ=function(M,d,N){var R=je2();(N=_.Ou(N))&&delete R[N];d&&(R[M]=d)};
jE=function(M){return je2()[M]};
_.KkL=function(M,d,N,R){N=N===void 0?0:N;if(M!==qFp(N)||d!==_.rK(v9i(N)))if(rYZ(M,R,N),IjL(M,N),_.oJ(v9i(N),d),d=function(){setTimeout(function(){Qep(M)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(d)}catch(X){d()}else d()};
yYv=function(M,d){d=d===void 0?"":d;var N=[],R;for(R in M)if(M.hasOwnProperty(R)){var X=d!==""?d+"."+R:R;typeof M[R]==="object"?N.push.apply(N,_.wu(yYv(M[R],X))):N.push([X,M[R]])}N.sort();return N};
_.cYp=function(M){var d=_.wH.apply(1,arguments);if(!su(M)||d.some(function(R){return!su(R)}))throw Error("hf");
d=_.V(d);for(var N=d.next();!N.done;N=d.next())JY6(M,N.value)};
JY6=function(M,d){for(var N in d)if(su(d[N])){if(N in M&&!su(M[N]))throw Error("jf");N in M||(M[N]={});JY6(M[N],d[N])}else if(SFv(d[N])){if(N in M&&!SFv(M[N]))throw Error("kf");N in M||(M[N]=[]);zcZ(M[N],d[N])}else M[N]=d[N];return M};
zcZ=function(M,d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,su(N)?M.push(JY6({},N)):SFv(N)?M.push(zcZ([],N)):M.push(N);return M};
su=function(M){return typeof M==="object"&&!Array.isArray(M)};
SFv=function(M){return typeof M==="object"&&Array.isArray(M)};
ecq=function(M){for(var d=_.V(Object.entries(b2L)),N=d.next();!N.done;N=d.next())if(N=_.V(N.value),N.next(),N=N.next().value,N==="SLI_STATUS_"+M)return N;return"SLI_STATUS_UNKNOWN"};
_.Pl=function(M,d,N,R){return H2Z(M,d,function(){return new _.n9S(M,d,N,R)})};
_.i2i=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
fji=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
on=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
LkN=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
tsZ=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
GUv=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
u7Z=function(M){M&&(M.dataset?M.dataset[ajZ()]="true":_.by([_.a2(UcL)],M,"data-loaded","true".toString()))};
Cmp=function(M){return M?M.dataset?M.dataset[ajZ()]:M.getAttribute("data-loaded"):null};
ajZ=function(){return xc6.loaded||(xc6.loaded="loaded".replace(/\-([a-z])/g,function(M,d){return d.toUpperCase()}))};
_.rB=function(M,d,N){YFr(M,d,N===void 0?null:N)};
_.E96=function(M,d){M&&d&&(M=""+_.d3(d),(M=Z2S[M])&&_.N4i(M))};
YFr=function(M,d,N){N=N===void 0?null:N;var R=_.M8S(M),X=document.getElementById(R),A=X&&Cmp(X),l=X&&!A;A?d&&d():(d&&(A=_.Zx(R,d),d=""+_.d3(d),Z2S[d]=A),l||(X=d2i(M,R,function(){Cmp(X)||(u7Z(X),_.R7r(R),_.NB(function(){_.F36(R)},0))},N)))};
d2i=function(M,d,N,R){R=R===void 0?null:R;var X=_.Vf("SCRIPT");X.id=d;X.onload=function(){N&&setTimeout(N,0)};
X.onreadystatechange=function(){switch(X.readyState){case "loaded":case "complete":X.onload()}};
R&&X.setAttribute("nonce",R);_.Sd(X,_.wx(M));M=document.getElementsByTagName("head")[0]||document.body;M.insertBefore(X,M.firstChild);return X};
_.M8S=function(M){var d=document.createElement("a");IO(d,M);return"js-"+KL(d.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.XvZ=function(){var M=_.wF.clone(NGS),d;return(new _.Xy(function(N,R){M.onSuccess=function(X){ehp(X)?N(new Rwp(X)):R(new _.yb("Request failed, status="+d2(X),"net.badstatus",X))};
M.onError=function(X){R(new _.yb("Unknown request error","net.unknown",X))};
M.onTimeout=function(X){R(new _.yb("Request timed out","net.timeout",X))};
d=_.Am("//googleads.g.doubleclick.net/pagead/id",M)})).thenCatch(function(N){if(N instanceof _.JX){var R;
(R=d)==null||R.abort()}return _.cl(N)})};
F8r=function(M){var d=_.rK("INNERTUBE_HOST_OVERRIDE");d&&(M=String(d)+String(_.SE(M)));return M};
AWi=function(M){var d={};_.Q("json_condensed_response")&&(d.prettyPrint="false");return M=vCA(M,d)};
_.zD=function(M){return Ul(M)?"same-origin":"include"};
_.bX=function(M){return Ul(M)?"same-origin":"cors"};
eE=function(M,d,N){N=N===void 0?{}:N;M={method:d===void 0?"POST":d,mode:_.bX(M),credentials:_.zD(M)};d={};for(var R=_.V(Object.keys(N)),X=R.next();!X.done;X=R.next())X=X.value,N[X]&&(d[X]=N[X]);Object.keys(d).length>0&&(M.headers=d);return M};
_.Hl=function(M,d){d=d===void 0?{}:d;return"service:"+M+"/"+Object.keys(d).sort().map(function(N){return N+":"+d[N]}).join("/")};
V8A=function(M){var d,N,R,X;M=(d=_.q(M,_.nL))==null?void 0:(N=d.watchEndpointSupportedOnesieConfig)==null?void 0:(R=N.html5PlaybackOnesieConfig)==null?void 0:(X=R.commonConfig)==null?void 0:X.url;if(!M)return[];d=new _.iX(M);return d.JSC$7917_domain_?["https://"+d.JSC$7917_domain_+"/generate_204"]:[]};
_.BGZ=function(){return lVS()||snN()||$2L&&sd("version/")?!0:_.rK("EOM_VISITOR_DATA")?!1:!0};
k_L=function(M){var d=M.docid||M.video_id||M.videoId||M.id;if(d)return d;d=M.raw_player_response;d||(M=M.player_response)&&(d=JSON.parse(M));return d&&d.videoDetails&&d.videoDetails.videoId||null};
_.D2j=function(M){a:{var d="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(d="EMBEDDED_PLAYER_MODE_PFL");var N=M.raw_embedded_player_response;if(!N&&(M=M.embedded_player_response))try{N=JSON.parse(M)}catch(X){break a}if(N)b:for(var R in TGi)if(TGi[R]==N.embeddedPlayerMode){d=TGi[R];break b}}return d==="EMBEDDED_PLAYER_MODE_PFL"};
_.g5i=function(){if(_.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.BGZ())return Error("pf");var M=_.rK("PLAYER_VARS",{});if(_.wF.get(M,"privembed",!1)=="1")return Error("qf");if(_.D2j(M))return Error("rf")};
W8Z=function(M){return M.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
fL=function(M){return!isNaN(Number(M))&&!_.ki(M)};
_.tX=function(M,d,N,R){R=R===void 0?!0:R;var X=_.rK("VALID_SESSION_TEMPDATA_DOMAINS",[]),A=_.GN(window.location.href);A&&X.push(A);A=_.GN(M);if(_.i2(X,A)||!A&&_.AL(M,"/"))if(X=document.createElement("a"),IO(X,M),M=X.href)if(M=_.SE(M),M=_.LL(M))R&&!d.csn&&(d.itct||d.ved)&&(d=Object.assign({csn:_.Ou()},d)),N?(N=parseInt(N,10),isFinite(N)&&N>0&&wvi(M,d,N)):wvi(M,d)};
m2p=function(M){var d=_.rK("VALID_SESSION_TEMPDATA_DOMAINS",[]),N=_.GN(window.location.href);N&&d.push(N);N=_.GN(M);if(!(_.i2(d,N)||!N&&_.AL(M,"/")))return null;M=_.SE(M);(M=_.LL(M))?(M=pvp(M),M=(M=_.BJ.get(M,void 0)||null)?_.nF(M):{}):M=null;return M};
wvi=function(M,d,N){M=pvp(M);d=d?_.VO(d):"";N=N||5;_.BGZ()&&_.kY(M,d,N)};
pvp=function(M){for(var d=_.V(hwS),N=d.next();!N.done;N=d.next())M=_.GD(M,N.value);return"ST-"+KL(M).toString(36)};
Qt6=function(M,d){M.commandMetadata&&_.q(M.commandMetadata,_.an)&&_.q(M.commandMetadata,_.an).url&&(M=_.is(_.q(M.commandMetadata,_.an).url).adurl)&&_.j_r(M)&&_.tX(_.SE(M),{encoded_ad_playback_context:d})};
_.qKS=function(M){if(M.requestFullscreen)M=M.requestFullscreen(void 0);else if(M.webkitRequestFullscreen)M=M.webkitRequestFullscreen();else if(M.mozRequestFullScreen)M=M.mozRequestFullScreen();else if(M.msRequestFullscreen)M=M.msRequestFullscreen();else if(M.webkitEnterFullscreen)M=M.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return M instanceof Promise?M:Promise.resolve()};
_.uX=function(M){var d;_.t2i(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Uu()==M&&(d=document):d=M;if(d&&(M=_.t2i(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],d))){M.call(d)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Uu=function(){var M=M===void 0?!1:M;var d=_.t2i(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(M)for(;d&&d.shadowRoot;)d=d.shadowRoot.fullscreenElement;return d?d:null};
_.CL=function(M,d){d=d===void 0?!0:d;M.addEventListener("wheel",IVS);M.overscrollConfig={cooldown:d}};
_.xP=function(M){M.overscrollConfig=void 0;M.removeEventListener("wheel",IVS)};
IVS=function(M){var d=M.deltaY,N=M.target,R=null;if(window.Polymer&&window.Polymer.Element){if(N=M.path||M.composedPath&&M.composedPath()){N=_.V(N);for(var X=N.next();!X.done&&(X=X.value,!v5p(X,d));X=N.next())if(X.overscrollConfig){R=X;break}}}else for(;N&&!v5p(N,d);){if(N.overscrollConfig){R=N;break}N=N.parentElement}R&&(d=R.overscrollConfig,d.cooldown?(R=M.deltaY,N=d.lastDeltaY||0,d.lastDeltaY=R,X=d.lastStopped||0,N&&X&&N>0==R>0?Math.abs(N)>=Math.abs(R)?(R=X+1200,N=!1):(R=X+600,N=!0):(R=Date.now()+
600,N=!0),R>Date.now()&&(M.preventDefault(),N&&(d.lastStopped=Date.now()))):M.preventDefault())};
v5p=function(M,d){return d<0&&M.scrollTop>0||d>0&&M.scrollTop<M.scrollHeight-M.clientHeight-1?(M=getComputedStyle(M).overflowY,M=="auto"||M=="scroll"):!1};
_.YP=function(M,d,N,R){R||(R={bubbles:!0,cancelable:!1,composed:!0});N!==null&&N!==void 0&&(R.detail=N);d=new CustomEvent(d,R);M.dispatchEvent(d);return d};
_.ZI=function(M,d,N,R){d=new OUi(d,!(R===void 0||!R),N);_.YP(M,"yt-action",d);return d.returnValue};
_.Eu=function(M,d,N){return _.ZI(M,d,N,!0)};
_.Mi=function(M,d,N){return _.ZI(M,d,N)[0]};
_.Ni=function(M,d,N,R){d&&d.length&&d.forEach(function(X){var A=fH6(X);A&&(_.Q("handle_service_request_actions")&&X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.sendPost?_.dU(N?N:M,[X]):_.Eu(M,A,[X,N,R]))})};
_.dU=function(M,d){var N=[M];d&&N.push.apply(N,d);d=_.ZI(M,"yt-service-request",N);return d.length>0&&(d=d[0],_.YP(M,"yt-service-request-sent",d),d&&d.ajaxPromise)?(d.ajaxPromise.then(function(R){_.YP(M,"yt-service-request-completed",R)},function(R){_.YP(M,"yt-service-request-error",{error:R,
params:N})},M),d.ajaxPromise):_.RD()};
_.FP=function(M,d){if(_.Q("handle_service_request_actions"))_.Ni(d,M,d);else{M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;var R=void 0;((R=_.q(N,_.XP))==null?0:R.commands)?_.FP(_.q(N,_.XP).commands,d):(R=void 0,((R=_.q(N,_.A$))==null?0:R.actions)?_.FP(_.q(N,_.A$).actions,d):(R=void 0,((R=_.q(N.commandMetadata,_.an))==null?0:R.sendPost)?_.dU(d,[N]):_.Ni(d,[N],d)))}}};
_.st2=function(M,d,N){d=d===void 0?{}:d;typeof d==="function"&&(d={callback:d});N||d._c&&d._c.jsl&&d._c.jsl.h||_.wF.extend(d,{_c:{jsl:{h:_.rK("GAPI_HINT_PARAMS")}}});(d.gapiHintOverride||_.rK("GAPI_HINT_OVERRIDE"))&&(N=_.is(document.location.href).gapi_jsh)&&_.wF.extend(d,{_c:{jsl:{h:N}}});jtp(M,d)};
_.le=function(M,d,N){d=d===void 0?{}:d;M=(M=M in Vh?Vh[M]:N)||"";N={};for(var R in d){N={key$jscomp$788:N.key$jscomp$788};N.key$jscomp$788=R;var X=function(A){return function(){return String(d[A.key$jscomp$788])}}(N);
M=M.replace(new RegExp("\\$\\{"+N.key$jscomp$788+"\\}","gi"),X);M=M.replace(new RegExp("\\$"+N.key$jscomp$788,"gi"),X)}return M};
_.$S=function(M,d){return PJZ(M in Vh?Vh[M]:{},d)};
PJZ=function(M,d){var N=_.rK("I18N_PLURAL_RULES");N||(N=function(R){return R==1?"one":"other"});
return(M=M["case"+d]||M[N(d)])?M.replace("#",d.toString()):d+""};
K8S=function(M){var d=o5S(M),N=document.getElementById(d),R=N&&Cmp(N);R||N&&!R||(N=rWA(M,d,function(){if(!Cmp(N)){u7Z(N);_.R7r(d);var X=_.B1(_.F36,d);_.NB(X,0)}}))};
rWA=function(M,d,N){var R=document.createElement("link");R.id=d;R.onload=function(){N&&setTimeout(N,0)};
M=_.wx(M);_.ed(R,M,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(R);return R};
o5S=function(M){var d=_.Vf("A");IO(d,VL(M));return"css-"+KL(d.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.JWp=function(M){var d=yWZ();M!==d&&(d=_.kS(),!_.Q("web_autonav_allow_off_by_default")&&M||_.TR(0,141,!0),_.TR(0,140,!M),d.save())};
yWZ=function(){var M=_.kS();return _.Q("web_autonav_allow_off_by_default")&&!M.getFlag(141)&&_.rK("AUTONAV_OFF_BY_DEFAULT")?!1:!M.getFlag(140)};
cWq=function(M,d){var N,R;M=((N=M.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=N.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(N=0;N<M.length;++N)if(M[N].scope===d)return M[N].token||void 0};
SKN=function(M){for(var d=0,N=0;N<M.length;N++)d=d*31+M.charCodeAt(N),N<M.length-1&&(d%=0x800000000000);return d%1E5};
_.Dy=function(M){return _.cy("ytcsi."+(M||"")+"data_")||zwZ(M)};
_.bUr=function(M){M=_.Dy(M);M.metadata||(M.metadata={});return M.metadata};
_.ewZ=function(M){M=_.Dy(M);M.tick||(M.tick={});return M.tick};
_.HUL=function(M){M=_.Dy(M);if(M.gel){var d=M.gel;d.gelInfos||(d.gelInfos={});d.gelTicks||(d.gelTicks={})}else M.gel={gelTicks:{},gelInfos:{}};return M.gel};
_.n5q=function(M){M=_.HUL(M);M.gelInfos||(M.gelInfos={});return M.gelInfos};
iUZ=function(M){var d=_.Dy(M).nonce;d||(d=Qb(16),_.Dy(M).nonce=d);return d};
zwZ=function(M){var d={tick:{},info:{}};_.fE("ytcsi."+(M||"")+"data_",d);return d};
fVZ=function(){var M=_.cy("ytcsi.debug");M||(M=[],_.fE("ytcsi.debug",M),_.fE("ytcsi.reference",{}));return M};
_.t8i=function(M){M=M||"";var d=L8i();if(d[M])return d[M];var N=fVZ(),R={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};N.push(R);return d[M]=R};
G_Z=function(M){M=M||"";var d=L8i();d[M]&&delete d[M];var N=fVZ(),R={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};N.push(R);d[M]=R};
L8i=function(){var M=_.cy("ytcsi.reference");if(M)return M;fVZ();return _.cy("ytcsi.reference")};
_.U2p=function(M){return aVZ[M]||"LATENCY_ACTION_UNKNOWN"};
YKq=function(M,d,N){N=N===void 0?{}:N;var R=!1;_.KF("ytLoggingEventsDefaultDisabled",!1)&&(R=!0);R=R?null:m7;N=N===void 0?{}:N;var X=Math.round(N.timestamp||(0,_.Gs)());_.Ti(d,1,X<Number.MAX_SAFE_INTEGER?X:0);X=new uX6;if(N.lact)_.Ti(X,1,isFinite(N.lact)?N.lact:-1);else if(N.timestamp)_.Ti(X,1,-1);else{var A=_.aQ();_.Ti(X,1,isFinite(A)?A:-1)}if(N.sequenceGroup&&!_.Q("web_gel_sequence_info_killswitch")){A=N.sequenceGroup;var l=WXi(A),k=new CJL;_.Ti(k,2,l);_.VZ(k,1,A);_.ZG(X,3,k);N.endOfSequence&&delete x2S[N.sequenceGroup]}_.ZG(d,
33,X);(N.sendIsolatedPayload?qHv:IcL)(M,{endpoint:"log_event",payload:d,cttAuthInfo:N.cttAuthInfo,dangerousLogToVisitorSession:N.dangerousLogToVisitorSession},R)};
_.wU=function(){return(_.Q("csi_use_time_origin")||_.Q("csi_use_time_origin_tvhtml5"))&&_.W1.timeOrigin?Math.floor(_.W1.timeOrigin):_.W1.timing.navigationStart};
_.ZUZ=function(M,d){_.pb("_start",M,d)};
_.mN=function(M,d){if(!_.Q("web_csi_action_sampling_enabled")||!_.Dy(d).actionDisabled){var N=_.t8i(d||"");_.cYp(N.info,M);M.loadType&&(N=M.loadType,_.bUr(d).loadType=N);_.cYp(_.n5q(d),M);N=iUZ(d);d=_.Dy(d).cttAuthInfo;E5r().info(M,N,d)}};
MXA=function(){var M,d,N,R;return((R=_.h().resolve(_.CF(Wh))==null?void 0:(M=gjv())==null?void 0:(d=M.loggingHotConfig)==null?void 0:(N=d.csiConfig)==null?void 0:N.debugTicks)!=null?R:[]).map(function(X){return Object.values(X)[0]})};
_.pb=function(M,d,N){if(!_.Q("web_csi_action_sampling_enabled")||!_.Dy(N).actionDisabled){var R=iUZ(N),X;if(X=_.Q("web_csi_debug_sample_enabled")&&R){(_.h().resolve(_.CF(Wh))==null?0:gjv())&&!dLL&&(dLL=!0,_.pb("gcfl",(0,_.Gs)(),N));var A,l,k;X=(_.h().resolve(_.CF(Wh))==null?void 0:(A=gjv())==null?void 0:(l=A.loggingHotConfig)==null?void 0:(k=l.csiConfig)==null?void 0:k.debugSampleWeight)||0;if(A=X!==0)b:{A=MXA();if(A.length>0)for(l=0;l<A.length;l++)if(M===A[l]){A=!0;break b}A=!1}A?(X=SKN(R)%X!==0,
_.Dy(N).debugTicksExcludedLogged||(A={},A.debugTicksExcluded=X,_.mN(A,N)),_.Dy(N).debugTicksExcludedLogged=!0):X=!1}if(!X){M[0]!=="_"&&NYi(M,N,d);X=_.t8i(N||"");X.tick[M]=d||(0,_.Gs)();if(X.callback&&X.callback[M])for(X=_.V(X.callback[M]),A=X.next();!A.done;A=X.next())A=A.value,A();X=_.HUL(N);X.gelTicks&&(X.gelTicks[M]=!0);A=_.ewZ(N);X=d||(0,_.Gs)();_.Q("log_repeated_ytcsi_ticks")?M in A||(A[M]=X):A[M]=X;A=_.Dy(N).cttAuthInfo;M==="_start"?E5r().baseline(R,d,A):E5r().tick(M,R,d,A);_.RVA(N);return X}}};
NYi=function(M,d,N){if(_.W1.mark)if(M.startsWith("mark_")||(M="mark_"+M),d&&(M+=" ("+d+")"),N===void 0||_.Q("web_csi_disable_alt_time_performance_mark"))_.W1.mark(M);else{N=_.Q("csi_use_performance_navigation_timing")||_.Q("csi_use_performance_navigation_timing_tvhtml5")?N-_.W1.timeOrigin:N-(_.W1.timeOrigin||_.W1.timing.navigationStart);try{_.W1.mark(M,{startTime:N})}catch(R){}}};
X3A=function(){var M,d=(M=_.W1.getEntriesByType)==null?void 0:M.call(_.W1,"mark");d&&d.forEach(function(N){if(N.name.startsWith("mark_")){var R;(R=_.W1.clearMarks)==null||R.call(_.W1,N.name)}})};
_.FEj=function(){switch(Lli()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.A42=function(M){var d={},N=function(A,l,k){l=l.match("_rid")?l.split("_rid")[0]:l;typeof k==="number"&&(k=JSON.stringify(k));A.requestIds?A.requestIds.push({endpoint:l,id:k}):A.requestIds=[{endpoint:l,id:k}]};
M=_.V(Object.entries(M));for(var R=M.next();!R.done;R=M.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;switch(R){case "GetBrowse_rid":N(d,R,X);break;case "GetGuide_rid":N(d,R,X);break;case "GetHome_rid":N(d,R,X);break;case "GetPlayer_rid":N(d,R,X);break;case "GetSearch_rid":N(d,R,X);break;case "GetSettings_rid":N(d,R,X);break;case "GetTrending_rid":N(d,R,X);break;case "GetWatchNext_rid":N(d,R,X);break;case "yt_red":d.isRedSubscriber=!!X;break;case "yt_ad":d.isMonetized=!!X}}return d};
_.VXi=function(M){var d=_.h$("aft",M);if(d)return d;d=_.rK((M||"")+"TIMING_AFT_KEYS",["ol"]);for(var N=d.length,R=0;R<N;R++){var X=_.h$(d[R],M);if(X)return X}return NaN};
_.lBZ=function(M,d){_.fE("ytglobal.timing"+(d||"")+"ready_",M)};
_.h$=function(M,d){if(M=_.ewZ(d)[M])return typeof M==="number"?M:M[M.length-1]};
_.RVA=function(M){var d=_.h$("_start",M),N=_.VXi(M),R=!$LN;d&&N&&R&&(Drj(BYp,new kYq(Math.round(N-d),M)),$LN=!0)};
DL6=function(M){zwZ(M);TYL();X3A();M||(_.rK("TIMING_ACTION")&&_.oJ("PREVIOUS_ACTION",_.rK("TIMING_ACTION")),_.oJ("TIMING_ACTION",""))};
_.gkZ=function(M){M=M===void 0?{}:M;_.JA(function(){Qh();G_Z();DL6();_.lBZ(!1);M.cttAuthInfo&&(_.Dy().cttAuthInfo=M.cttAuthInfo);_.oJ("TIMING_AFT_KEYS",[]);M.isHot?_.qi({loadType:"hot"}):_.qi({loadType:"warm"});_.oJ("TIMING_ACTION","");delete _.rK("TIMING_INFO",{}).yt_lt;_.JA(_.ZUZ)(M.startTime,void 0)})()};
_.ID=function(M,d,N,R){d=d===void 0?{}:d;_.JA(function(){var X=N?N:M;WEp(X);var A=d.sampleRate;if(!_.Q("web_csi_action_sampling_enabled")||A===void 0||A<=1)A=!1;else{var l=iUZ(X);A=SKN(l)%A!==0}A&&(_.Dy(X).actionDisabled=!0);_.t8i(X||"").info.actionType=M;d.cttAuthInfo&&(_.Dy(X).cttAuthInfo=d.cttAuthInfo);_.oJ(X+"TIMING_ACTION",M);_.JA(_.ZUZ)(d.startTime,X);A={actionType:R||_.U2p(M)};d.logPreviousAction&&(A.previousAction=_.U2p(_.rK("TIMING_ACTION")));(l=_.Ou())&&l!=="UNDEFINED_CSN"&&(A.clientScreenNonce=
l);_.qi(A,X);_.lBZ(!0,X)})()};
WEp=function(M){_.JA(function(){Qh(M);G_Z(M);DL6(M)})()};
w3p=function(){_.JA(function(){var M=[],d;for(d in _.cy("ytcsi.".slice(0,-1)))d.endsWith("data_")&&M.push(d.slice(0,-5));M=_.V(M);for(d=M.next();!d.done;d=M.next())WEp(d.value);Qh()})()};
_.mLi=function(M){return _.JA(function(){return _.p3Z("_start",M)})()};
_.qi=function(M,d,N){_.JA(_.mN)(M,d,N===void 0?!1:N)};
_.v1=function(M,d,N){return _.JA(_.pb)(M,d,N)};
_.p3Z=function(M,d){return _.JA(function(){var N=_.ewZ(d);return M in N})()};
QUj=function(M){if(!_.Q("universal_csi_network_ticks"))return"";M=_.FO(M)||"";for(var d=Object.keys(hVN),N=0;N<d.length;N++){var R=d[N];if(M.includes(R))return R}return""};
IBp=function(M){if(!_.Q("universal_csi_network_ticks"))return function(){};
var d=hVN[M];return d?(_.ON(d),function(){var N=_.Q("universal_csi_network_ticks")?(N=qMZ[M])?_.ON(N):!1:!1;return N}):function(){}};
_.ON=function(M,d,N){return _.JA(function(){if(_.p3Z(M,N))return!1;_.v1(M,d,N);return!0})()};
_.jD=function(M,d,N){_.JA(function(){if(!_.mLi(N)||_.p3Z(M,N))return!1;_.v1(M,d,N);return!0})()};
_.sN=function(M){return _.JA(_.h$)(M,void 0)};
Qh=function(M){_.mLi(M)&&_.v1("aa",void 0,M)};
_.PVS=function(M,d,N,R,X,A,l,k,T){var W=vkS();k=new _.qw({veType:d,youtubeData:A,jspbYoutubeData:k});A=P1({},W);X&&(A.cttAuthInfo=X);X={csn:W,pageVe:k.getAsJson()};_.Q("expectation_logging")&&T&&T.screenCreatedLoggingExpectations&&(X.screenCreatedLoggingExpectations=T.screenCreatedLoggingExpectations);N&&N.visualElement?(X.implicitGesture={parentCsn:N.clientScreenNonce,gesturedVe:N.visualElement.getAsJson()},l&&(X.implicitGesture.gestureType=l)):N&&_.vh(new _.WJ("newScreen() parent element does not have a VE - rootVe",
d));R&&(X.cloneCsn=R);M?pa("screenCreated",X,M,A):_.hQ("screenCreated",X,A);Drj(Qzv,new Ox6(W));oD.clear();jUr.clear();sUA.clear();return W};
yh=function(M,d,N,R,X){_.oki(M,d,N,[R],X===void 0?!1:X)};
_.oki=function(M,d,N,R,X){X=X===void 0?!1:X;for(var A=P1({cttAuthInfo:jE(d)||void 0},d),l=_.V(R),k=l.next();!k.done;k=l.next()){k=k.value;var T=k.getAsJson();(_.wF.isEmpty(T)||!T.trackingParams&&!T.veType)&&_.vh(Error("uf"));if(_.Q("no_client_ve_attach_unless_shown")){var W=r4i(k,d);if(T.veType&&!jUr.has(W)&&!sUA.has(W)&&!X){if(!_.Q("il_attach_cache_limit")||oD.size<1E3){oD.set(W,[M,d,N,k]);return}_.Q("il_attach_cache_limit")&&oD.size>1E3&&_.vh(new _.WJ("IL Attach cache exceeded limit"))}k=r4i(N,
d);oD.has(k)?KEi(N,d):sUA.set(k,!0)}}R=R.filter(function(w){w.csn!==d?(w.csn=d,w=!0):w=!1;return w});
N={csn:d,parentVe:N.getAsJson(),childVes:_.mi(R,function(w){return w.getAsJson()})};
d==="UNDEFINED_CSN"?J$("visualElementAttached",A,N):M?pa("visualElementAttached",N,M,A):_.hQ("visualElementAttached",N,A)};
J4Z=function(M,d,N,R,X){y4i(M,d,N,X)};
y4i=function(M,d,N,R){c4r(N,d);var X=P1({cttAuthInfo:jE(d)||void 0},d);N={csn:d,ve:N.getAsJson(),eventType:1};R&&(N.clientData=R);d==="UNDEFINED_CSN"?J$("visualElementShown",X,N):M?pa("visualElementShown",N,M,X):_.hQ("visualElementShown",N,X)};
SMA=function(M,d,N,R){c4r(N,d);var X=P1({cttAuthInfo:jE(d)||void 0},d);N={csn:d,ve:N.getAsJson(),eventType:4};R&&(N.clientData=R);d==="UNDEFINED_CSN"?J$("visualElementShown",X,N):M?pa("visualElementShown",N,M,X):_.hQ("visualElementShown",N,X)};
zVp=function(M,d,N,R,X){var A=(R=R===void 0?!1:R)?16:8;R=P1({cttAuthInfo:jE(d)||void 0,endOfSequence:R},d);N={csn:d,ve:N.getAsJson(),eventType:A};X&&(N.clientData=X);d==="UNDEFINED_CSN"?J$("visualElementHidden",R,N):M?pa("visualElementHidden",N,M,R):_.hQ("visualElementHidden",N,R)};
eVr=function(M,d,N,R,X){bxA(M,d,N,void 0,R,X)};
bxA=function(M,d,N,R,X){c4r(N,d);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var A=P1({cttAuthInfo:jE(d)||void 0},d);N={csn:d,ve:N.getAsJson(),gestureType:R};X&&(N.clientData=X);d==="UNDEFINED_CSN"?J$("visualElementGestured",A,N):M?pa("visualElementGestured",N,M,A):_.hQ("visualElementGestured",N,A)};
HxZ=function(M,d,N,R){var X=P1({cttAuthInfo:jE(d)||void 0},d);N={csn:d,ve:N.getAsJson(),clientData:R};d==="UNDEFINED_CSN"?J$("visualElementStateChanged",X,N):M?pa("visualElementStateChanged",N,M,X):_.hQ("visualElementStateChanged",N,X)};
nkZ=function(){var M=mcZ(16);for(var d=[],N=0;N<M.length;N++)d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[N]&63));return d.join("")};
J$=function(M,d,N){ixZ.push({payloadName:M,payload:N,jspbPayload:void 0,options:d});fBr||(fBr=I4A())};
h5q=function(M){if(ixZ){for(var d=_.V(ixZ),N=d.next();!N.done;N=d.next())N=N.value,N.payload&&(N.payload.csn=M.csn,_.hQ(N.payloadName,N.payload,N.options));ixZ.length=0}fBr=0};
r4i=function(M,d){return""+M.getAsJson().veType+M.getAsJson().veCounter+d};
c4r=function(M,d){if(_.Q("no_client_ve_attach_unless_shown")){var N=r4i(M,d);jUr.set(N,!0);KEi(M,d)}};
KEi=function(M,d){M=r4i(M,d);oD.has(M)&&(d=oD.get(M)||[],yh(d[0],d[1],d[2],d[3],!0),oD.delete(M))};
P1=function(M,d){_.Q("log_sequence_info_on_gel_web")&&(M.sequenceGroup=d);return M};
_.c1=function(M,d,N){_.JA(yh)(void 0,M,d,N)};
_.SD=function(M,d){_.JA(J4Z)(void 0,M,d,void 0,void 0,void 0)};
_.zR=function(M,d,N){_.JA(function(){_.Hy(d,function(R){SMA(void 0,M,R,N)})})()};
_.be=function(M,d,N,R){_.JA(function(){_.Hy(d,function(X){zVp(void 0,M,X,N,R)})})()};
_.eD=function(M,d,N){_.JA(eVr)(void 0,M,d,N,void 0)};
_.H1=function(M,d,N,R){_.JA(bxA)(void 0,M,d,N,R,void 0)};
_.nb=function(M,d,N){_.JA(HxZ)(void 0,M,d,N,void 0)};
fb=function(M){return ie.get(M)};
LEZ=function(M,d){ie.set(M,d)};
tXr=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(M){return(+M^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+M/4).toString(16)})};
uN6=function(M,d){d=d===void 0?{}:d;if(Lb&&Lb.sample(M,d)){var N=GYv++,R,X;M=new aBA(M,d,performance.now(),N,ULi,(X=(R=t$)==null?void 0:R.traceId)!=null?X:N);if(t$){var A;(A=t$).children||(A.children=[]);t$.children.push(M)}N=_.V(Lb.spanProcessors);for(R=N.next();!R.done;R=N.next())A=X=void 0,(A=(X=R.value).onSpanStart)==null||A.call(X,M);return t$=M}};
CVj=function(M){var d;return(d=Lb)==null?void 0:d.sample(M,void 0)};
xLZ=function(M){ULi=tXr();Lb=M};
YM2=function(M,d,N){if(!M)return d(N);var R=void 0;try{return d(N)}catch(X){throw R="error",X;}finally{M==null||M.close(R)}};
Zxq=function(M,d){var N=Object.keys(M);M=new _.WJ("[Command Handler] "+d,{filteredCommandNames:N,originalCommand:M});_.qZ(M)};
EkZ=function(M,d){Zxq(M,d+" was called but not set")};
MPS=function(M){return function(){return new M}};
GR=function(M){return function(){return _.h().resolve(M)}};
dGZ=function(M,d){var N=_.q(M,_.Ka);if(N&&(N=d[N.signal]))return N();M=_.V(Object.keys(M));for(N=M.next();!N.done;N=M.next())if(N=N.value,d[N]&&(N=d[N]))return N()};
aD=function(M,d,N,R){return{browseEndpoint:{browseId:M},commandMetadata:{webCommandMetadata:{url:d,rootVe:N,webPageType:R===void 0?"WEB_PAGE_TYPE_BROWSE":R}}}};
NIq=function(M,d,N){var R=d=d===void 0?0:d;N=N===void 0?0:N;var X=N-R;return _.UN(M,"PPSV",void 0,void 0,(X>600?0:X<60||N<=0||R/N>.9)?0:d)};
_.UN=function(M,d,N,R,X){var A="/watch?v="+M;M={videoId:M};d&&(M.playlistId=d,A+="&list="+d);R&&(A+="&pp="+R);X&&(M.startTimeSeconds=X,A+="&t="+X+"s");d={watchEndpoint:M,commandMetadata:{webCommandMetadata:{url:A,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};N&&(d.clickTrackingParams=N);R&&(_.q(d,_.nL).playerParams=R);return d};
Rir=function(M){return{browseEndpoint:{browseId:"VL"+M},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+M,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
XFZ=function(M){if(M){var d;if(M){var N=(d=_.q(M.commandMetadata,_.an))==null?void 0:d.url;d=!(!N||N==="/service_ajax")}else d=!1;if(d)return M;var R;if(M=(R=_.q(M,_.XP))==null?void 0:R.commands)for(R=_.V(M),M=R.next();!M.done;M=R.next())if(M=XFZ(M.value))return M}};
_.ue=function(M){return{runs:[{text:M}]}};
Fsi=function(M,d){return M&&d?{runs:[{text:M,navigationEndpoint:d}]}:void 0};
Cb=function(M){return M?_.ue(M):void 0};
_.xS=function(M){return M?{simpleText:M}:void 0};
_.YS=function(M){var d=M.type;M=M.payload;d={type:d};M!==void 0&&(d.payload=M);return d};
AV6=function(M,d,N){for(var R=Object.assign({},M),X=_.V(Object.keys(d)),A=X.next();!A.done;A=X.next()){A=A.value;var l=M[A],k=d[A];if(k===void 0)delete R[A];else if(l===void 0)R[A]=k;else if(Array.isArray(k)&&Array.isArray(l))R[A]=N?[].concat(_.wu(l),_.wu(k)):k;else if(!Array.isArray(k)&&_.Me(k)&&!Array.isArray(l)&&_.Me(l))R[A]=AV6(l,k,N);else if(typeof k===typeof l)R[A]=k;else return d=new _.WJ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,originalValue:l,updateValue:k}),
_.qZ(d),M}return R};
$Gv=function(M){if(!M.length)return"";try{if(VPr)return VPr.decode(M);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(M)}catch(l){}for(var d=0,N=[],R=M.length;d<R;){for(var X=0;X<1024&&d<R;){var A=M[d++];if(A<128)lAZ[X++]=A;else{if(A<224)A=(A&31)<<6|M[d++]&63;else if(A<240)A=(A&15)<<12|(M[d++]&63)<<6|M[d++]&63;else{if(X+1===1024){--d;break}A=(A&7)<<18|(M[d++]&63)<<12|(M[d++]&63)<<6|M[d++]&63;A-=65536;lAZ[X++]=55296|A>>10;A=56320|A&1023}lAZ[X++]=A}}A=String.fromCharCode.apply(String,
lAZ);X<1024&&(A=A.substring(0,X));N.push(A)}return N.join("")};
k9L=function(M,d){var N;if((N=BIq)==null?0:N.encodeInto)return d=BIq.encodeInto(M,d),d.read<M.length?M.length*4:d.written;for(var R=N=0;R<M.length;R++){var X=M.charCodeAt(R);X<128?d[N++]=X:(X<2048?d[N++]=X>>6|192:((X&64512)===55296&&R+1<M.length&&(M.charCodeAt(R+1)&64512)===56320?(X=65536+((X&1023)<<10)+(M.charCodeAt(++R)&1023),d[N++]=X>>18|240,d[N++]=X>>12&63|128):d[N++]=X>>12|224,d[N++]=X>>6&63|128),d[N++]=X&63|128)}return N};
TIi=function(M,d){M=new Uint8Array(M);d&&M.set(d);return M};
_.EN=function(M){M=new DGA(new gnj([_.lL(decodeURIComponent(M))]));if(WsA(M,2)){var d=Zy(M);var N=M.pos;N=M.arrayView.getDataView(N===void 0?0:N,d===void 0?-1:d);N=new Uint8Array(N.buffer,N.byteOffset,N.byteLength);M.pos+=d;d=N}else d=void 0;d=d?$Gv(d):void 0;M=WsA(M,4)?Zy(M):void 0;N=wFj[M];if(typeof N==="undefined")throw M=new _.WJ("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:M}),_.qZ(M),M;return{entityTypeFieldNumber:M,entityType:N,entityId:d}};
_.Nr=function(M,d,N){N=N===void 0?0:N;var R=new pFL;if(BIq)M=BIq.encode(M);else{var X=new Uint8Array(Math.ceil(M.length*1.2)),A=k9L(M,X);X.length<A&&(X=new Uint8Array(A),A=k9L(M,X));X.length>A&&(X=X.subarray(0,A));M=X}M!==void 0&&(Mr(R,18),X=M.length,Mr(R,X),d_(R,X),R.buf.set(M,R.pos),R.pos+=X);M=mGj[d];if(typeof M==="undefined")throw N=new _.WJ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:d}),_.qZ(N),N;M!==void 0&&(Mr(R,32),Mr(R,M));Mr(R,40);Mr(R,1);d=new Uint8Array(R.buf.buffer,
R.buf.byteOffset,R.pos);return encodeURIComponent(_.UT(d,N))};
hiZ=function(M){M=M.key||M.id;if(!M)throw Error("yf");return M};
qYA=function(M,d){M=M===void 0?{}:M;return Qgp(M,d)};
IAi=function(M,d,N,R){if(R===void 0)return R=Object.assign({},M[d]||{}),N=(delete R[N],R),R={},Object.assign({},M,(R[d]=N,R));var X={},A={};return Object.assign({},M,(A[d]=Object.assign({},M[d],(X[N]=R,X)),A))};
vnZ=function(M,d,N,R,X){var A=M[d];if(A==null||!A[N])return M;R=AV6(A[N],R,X==="REPEATED_FIELDS_MERGE_OPTION_APPEND");X={};A={};return Object.assign({},M,(A[d]=Object.assign({},M[d],(X[N]=R,X)),A))};
_.Rz=function(M,d,N){return M[d]?M[d][N]||null:null};
jgi=function(){if(O7v)return O7v();var M={};O7v=tm("PersistentEntityStoreDb",{objectStores:(M.EntityStore={addedAtVersion:1},M.EntityAssociationStore={addedAtVersion:2},M),shared:!1,upgrade:function(d,N){N(1)&&KA(rc(d,"EntityStore",{keyPath:"key"}),"entityType","entityType");N(2)&&(d=rc(d,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),KA(d,"byParentEntityKey","parentEntityKey"),KA(d,"byChildEntityKey","childEntityKey"))},
version:3});return O7v()};
sgS=function(M){return _.zs(jgi(),M)};
Xw=function(M){return window.Int32Array?new Int32Array(M):Array(M)};
onZ=function(M){return _.zs(PcZ(),M)};
rVS=function(M){return new Fw("WRONG_DATA_TYPE",{encoderVersion:M})};
Ks6=function(M){return M instanceof Error?new Fw("UNKNOWN_ENCODE_ERROR",{originalMessage:M.message}):new Fw("UNKNOWN_ENCODE_ERROR")};
yVZ=function(M){return M instanceof Error?new Fw("UNKNOWN_DECODE_ERROR",{originalMessage:M.message}):new Fw("UNKNOWN_DECODE_ERROR")};
JVS=function(M,d){M=M instanceof Fw?M:d(M);_.qZ(M);throw M;};
cVZ=function(M){M=(new TextEncoder).encode(M).subarray(0,16);var d=new Uint8Array(16);d.set(M);return d};
ziN=function(M){var d=SYS[M];if(d)return d;_.vh(new _.WJ("Entity model not found.",{entityType:M}))};
_.AT=function(){b7p||(b7p=eiZ());return b7p};
eiZ=function(){var M,d,N;return _.B(function(R){if(R.nextAddress==1)return _.Mv(R,2),_.D(R,_.LE(),4);if(R.nextAddress!=2){M=R.yieldResult;if(!M||!_.g2()||typeof _.Np.BroadcastChannel==="undefined")return R.return();d=new H7q;return R.return(new VQ(M,d))}N=_.Fg(R);N instanceof Error&&_.qZ(N);return R.return()})};
_.lY=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1){N=M.mutations;if(!N||N.length<=0)return R.return();d&&d.dispatch(_.YS({type:"ENTITY_LOADED",payload:N}));return _.D(R,nnv(N),2)}N.length=0;_.Vy(R)})};
nnv=function(M){var d;return _.B(function(N){return N.nextAddress==1?_.D(N,_.AT(),2):(d=N.yieldResult)?_.D(N,_.$$(d,"readwrite",function(R){for(var X={},A=_.V(M),l=A.next(),k={};!l.done;k={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},l=A.next())k.mutation$jscomp$4=l.value,k.mutation$jscomp$4.entityKey&&i7N(k.mutation$jscomp$4)&&(k.mutationEntityType$jscomp$3=(0,_.wF.getAnyKey)(k.mutation$jscomp$4.payload),l=void 0,k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(l=function(T){return function(){return _.fAZ(R,
T.mutation$jscomp$4.payload[T.mutationEntityType$jscomp$3],T.mutationEntityType$jscomp$3)}}(k)),k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(l=function(T){return function(){return Lsi(R,T.mutation$jscomp$4.entityKey)}}(k)),k.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(l=function(T){return function(){return tPr(R,T.mutation$jscomp$4.entityKey,T.mutation$jscomp$4.payload[T.mutationEntityType$jscomp$3],T.mutationEntityType$jscomp$3)}}(k)),l&&(X[k.mutation$jscomp$4.entityKey]=
X[k.mutation$jscomp$4.entityKey]?X[k.mutation$jscomp$4.entityKey].then(l):l()));
return r2.all(Object.values(X))}),0):N.return()})};
i7N=function(M){var d;M=(d=M.options)==null?void 0:d.persistenceOption;return M==="ENTITY_PERSISTENCE_OPTION_PERSIST"||M==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
UGN=function(M,d){var N,R;_.B(function(X){if(X.nextAddress==1)return _.D(X,_.AT(),2);if(X.nextAddress!=3)return(N=X.yieldResult)?_.D(X,_.$$(N,"readonly",function(A){var l={},k=Object.keys(d).map(function(T){var W=d[T]?[].concat(_.wu(d[T])):[];return G9S(A,T,W,l)});
return r2.all(k).then(function(){return l})}),3):X.return();
R=X.yieldResult;Object.keys(R).length>0&&M.dispatch(aAS(R));_.Vy(X)})};
G9S=function(M,d,N,R){return BD(M,d,N).then(function(X){R[d]=uMj(N,X)})};
uMj=function(M,d){if(d.length!==M.length)throw Error("Bf");return d.reduce(function(N,R,X){N[M[X]]=R;return N},{})};
YYZ=function(M){var d=M.filter(function(X){var A;return(X==null?void 0:(A=X.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_COMPLETE"}).length,N=M.filter(function(X){var A;
return(X==null?void 0:(A=X.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_FAILED"}).length,R=M.filter(function(X){var A;
return(X==null?void 0:(A=X.transferEntity)==null?void 0:A.transferState)&&Cci.includes(X.transferEntity.transferState)});
if(!(d||R!=null&&R.length))return 0;d=_.xGq(R)+d;M=M.length-N;return M===0?0:Math.round(d*100/M)/100};
_.xGq=function(M){var d=[];d=d.concat.apply(d,_.wu(M.filter(function(A){return A.streamEntity}).map(function(A){var l=Object.assign({},A.streamEntity),k,T=(k=A.transferEntity)==null?void 0:k.transferState;
l.streamsProgress=l.streamsProgress||[];l.streamsProgress=l.streamsProgress.map(function(W){var w=Object.assign({},W);w.numBytesDownloaded=T==="TRANSFER_STATE_COMPLETE"?W.numTotalBytes:W.numBytesDownloaded;return w});
return l}).map(function(A){return A.streamsProgress})));
var N=M=0;d=_.V(d);for(var R=d.next();!R.done;R=d.next()){var X=R.value;R=Number(X.numBytesDownloaded);X=Number(X.numTotalBytes);N+=isNaN(R)?0:R;M+=isNaN(X)?0:X}return M===0?0:Math.round(N*100/M)/100};
Z7r=function(M){if(!M||!M.expirationTimestamp||!M.action)return!1;var d=(0,_.Gs)()/1E3;return Number(M.expirationTimestamp)>=d};
k$=function(M){return M&&M.expirationTimestamp&&M.action?Z7r(M)&&M.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.TL=function(M){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(M||"TRANSFER_STATE_UNKNOWN")};
Eni=function(M){var d=new pFL;if(M!==void 0){var N=Math.ceil(Math.log2(M.length*4+2)/7);N=N===void 0?2:N;Mr(d,10);d.submessagePosStack.push(d.pos);d.submessagePosStack.push(N);d.pos+=N;d_(d,M.length*1.2);N=k9L(M,d.buf.subarray(d.pos));d.pos+N>d.buf.length&&(d_(d,N),N=k9L(M,d.buf.subarray(d.pos)));d.pos+=N;M=d.submessagePosStack.pop();N=d.submessagePosStack.pop();for(var R=d.pos-N-M;M--;){var X=M?128:0;d.view.setUint8(N++,R&127|X);R>>=7}}d=new Uint8Array(d.buf.buffer,d.buf.byteOffset,d.pos);return(new TextDecoder("utf-8")).decode(d)};
_.D4=function(M){var d=0;M=_.V(M);for(var N=M.next(),R={};!N.done;R={transferState$jscomp$3:void 0},N=M.next()){var X=N.value,A=void 0;N=(A=X.streamEntity)!=null?A:{};A=void 0;R.transferState$jscomp$3=(A=X.transferEntity)==null?void 0:A.transferState;A=X=void 0;((X=N)==null?0:(A=X.streamsProgress)==null?0:A.length)&&N.streamsProgress.forEach(function(l){return function(k){k=Number(l.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?k.numTotalBytes:k.numBytesDownloaded);isFinite(k)&&(d+=k)}}(R))}return d};
MOp=function(M){return M.some(function(d){var N;if(!(d==null?0:(N=d.transferEntity)==null?0:N.transferState)){var R;return!(d==null?0:(R=d.policyEntity)==null?0:R.action)||d.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Cci.includes(d.transferEntity.transferState)})};
dmi=function(M,d){if(!d)return!1;if(_.Q("of_pb_en_po_ks"))return!0;var N;M=(N=_.Rz(M,"offlineVideoPolicy",_.Nr(d,"offlineVideoPolicy")))!=null?N:void 0;return!!M&&k$(M)};
_.R0p=function(M){var d=["TRANSFER_STATE_COMPLETE"];d=d===void 0?NJL:d;return M.filter(function(N){var R,X;return d.includes((X=(R=N.transferEntity)==null?void 0:R.transferState)!=null?X:"TRANSFER_STATE_UNKNOWN")})};
X0Z=function(M,d){if(d){var N,R=(N=_.Rz(M,"playbackData",_.Nr(d,"playbackData")))!=null?N:null,X;N=(X=_.Rz(M,"transfer",_.Nr(d,"transfer")))!=null?X:null;var A;X=(A=_.Rz(M,"offlineVideoStreams",_.Nr(d,"offlineVideoStreams")))!=null?A:null;var l;M=(l=_.Rz(M,"offlineVideoPolicy",_.Nr(d,"offlineVideoPolicy")))!=null?l:null;if(R||N||X||M)return{playbackDataEntity:R,transferEntity:N,streamEntity:X,policyEntity:M}}};
_.g_=function(M){var d=M.playbackData;if(!d)return[];var N=[];d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next()){var X=R.value;if(!FQ6(M,_.EN(X).entityId)&&(R=X0Z(M,_.EN(X).entityId))){var A=void 0,l=void 0;X=(l=Number((A=_.Rz(M,"playbackData",X))==null?void 0:A.streamDownloadTimestampSeconds))!=null?l:(0,_.Gs)();N.push({entity:R,streamDownloadTimestamp:X})}}return N.sort(function(k,T){var W=k.streamDownloadTimestamp,w=T.streamDownloadTimestamp;return w===W?k.entity.streamEntity&&!T.entity.streamEntity?
1:-1:w-W}).map(function(k){return k.entity})};
AOZ=function(M){return _.R0p(_.g_(M))};
_.VOZ=function(M){return _.g_(M).filter(function(d){var N;if(((N=d.policyEntity)==null?0:N.action)&&d.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var R;if((R=d.transferEntity)==null?0:R.transferState){var X;return Cci.includes((X=d.transferEntity)==null?void 0:X.transferState)}return!0})};
FQ6=function(M,d){var N;return((N=_.Rz(M,"downloadStatusEntity",_.Nr(d,"downloadStatusEntity")))==null?void 0:N.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
l6N=function(M){var d;if(M==null?0:(d=M.playbackDataEntity)==null?0:d.key)return _.EN(M.playbackDataEntity.key).entityId;var N;if(M==null?0:(N=M.transferEntity)==null?0:N.key)return _.EN(M.transferEntity.key).entityId;var R;if(M==null?0:(R=M.streamEntity)==null?0:R.key)return _.EN(M.streamEntity.key).entityId;var X;if(M==null?0:(X=M.policyEntity)==null?0:X.key)return _.EN(M.policyEntity.key).entityId};
BJZ=function(M){var d=new Set,N;M=(N=M.mainDownloadsListEntity)==null?void 0:N[$mv];var R;if(!(M==null?0:(R=M.downloads)==null?0:R.length))return d;var X;M==null||(X=M.downloads)==null||X.forEach(function(A){(A==null?0:A.videoItem)&&d.add(A.videoItem)});
return d};
WD=function(M,d){if(d){var N=_.Rz(M,"mainVideoEntity",_.Nr(d,"mainVideoEntity")),R=_.Rz(M,"downloadStatusEntity",_.Nr(d,"downloadStatusEntity")),X=_.Rz(M,"ytMainChannelEntity",_.Nr(d,"ytMainChannelEntity")),A={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};M=X0Z(M,d);R=(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.Q("woffle_render_failed_download_state_ks")&&(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_FAILED";!M&&R&&(M=A);if(M&&N&&
X)return Object.assign({},{videoEntity:N,channelEntity:X},M)}};
TJ6=function(M,d){return kJp(M,d)==="TRANSFER_STATE_COMPLETE"&&dmi(M,d)};
tOj=function(M,d){if(!d)return!1;var N;M=(N=_.Rz(M,"playbackData",_.Nr(d,"playbackData")))!=null?N:void 0;return!!M&&!!M.playerResponseJson};
kJp=function(M,d){if(!d)return"TRANSFER_STATE_UNKNOWN";var N=_.Rz(M,"transfer",_.Nr(d,"transfer"));if(N){var R;return(R=N.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN"}N=_.Rz(M,"offlineOrchestrationActionWrapperEntity",_.Nr(d,"offlineOrchestrationActionWrapperEntity"));M=_.Rz(M,"mainVideoEntity",_.Nr(d,"mainVideoEntity"));return N||M?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
GJp=function(M,d){if(!d)return"TRANSFER_STATE_UNKNOWN";if(M=_.Rz(M,"transfer",_.Nr(d,"transfer"))){var N;return(N=M.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
a6S=function(M,d){return d&&(M=_.Rz(M,"videoPlaybackPositionEntity",_.Nr(d,"videoPlaybackPositionEntity")),M==null?0:M.lastPlaybackPositionSeconds)?Number(M.lastPlaybackPositionSeconds):0};
uz2=function(M,d){return Um2(M).some(function(N){var R;return(N==null?void 0:(R=N.mainPlaylistEntity)==null?void 0:R.playlistId)===d})};
xmi=function(M,d,N){var R=C02(M,d);if(!R.length)return[];d=[];R=_.V(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;var A=WD(M,X);N&&kJp(M,X)!=="TRANSFER_STATE_COMPLETE"||A&&d.push(A)}return d};
C02=function(M,d){if(!d)return[];var N=_.Nr(d,"mainPlaylistEntity"),R;d=(R=M.mainPlaylistEntity)==null?void 0:R[N];R=[];if(d==null||!d.videos)return R;d=_.V(d.videos);for(N=d.next();!N.done;N=d.next()){N=N.value;var X=void 0,A=void 0,l=void 0,k=(X=M)==null?void 0:(A=X.mainPlaylistVideoEntity)==null?void 0:(l=A[N])==null?void 0:l.video;k&&(N=_.EN(k).entityId)&&R.push(N)}return R};
Yjj=function(M,d){if(d){var N=_.Rz(M,"mainPlaylistEntity",_.Nr(d,"mainPlaylistEntity")),R=_.Rz(M,"mainPlaylistDownloadStateEntity",_.Nr(d,"mainPlaylistDownloadStateEntity"));M=_.Rz(M,"ytMainChannelEntity",_.Nr(d,"ytMainChannelEntity"));if(R&&N)return Object.assign({},{mainPlaylistEntity:N,mainPlaylistDownloadStateEntity:R},!!M&&{channelEntity:M})}};
Um2=function(M){return ZGj(M).sort(function(d,N){return N.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return d.downloadedPlaylistEntities})};
ZGj=function(M){var d=M.mainPlaylistDownloadStateEntity,N=[];if(!d)return N;for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){var A=X.value;X=Yjj(M,_.EN(A).entityId);var l=void 0;A=Number((l=d[A])==null?void 0:l.addedTimestampMillis);l=isNaN(A)?(0,_.Gs)():A;X!==void 0&&N.push({downloadedPlaylistEntities:X,addedTimestampMillis:l})}return N};
EcZ=function(M){var d,N=(d=M.mainPlaylistVideoEntity)!=null?d:{};return new Set(Um2(M).reduce(function(R,X){R=R===void 0?[]:R;var A,l;X==null||(A=X.mainPlaylistEntity)==null||(l=A.videos)==null||l.forEach(function(k){var T;(k=(T=N[k])==null?void 0:T.video)&&R.push(k)});
return R},[]))};
MHj=function(M){return"downloadedMusicPlaylistEntities"in M};
dsq=function(M){return"mainPlaylistEntity"in M&&"mainPlaylistDownloadStateEntity"in M};
N9N=function(M){return"videoEntity"in M&&"channelEntity"in M};
RKS=function(M){var d=M.musicPlaylistDownloadMetadataEntity,N=[];if(!d)return N;for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){X=X.value;a:{var A=M,l=_.EN(X).entityId;if(l){var k=_.Rz(A,"musicPlaylist",_.Nr(l,"musicPlaylist"));A=_.Rz(A,"musicPlaylistDownloadMetadataEntity",_.Nr(l,"musicPlaylistDownloadMetadataEntity"));if(k&&A){k={musicPlaylistEntity:k,musicPlaylistDownloadStateEntity:A};break a}}k=void 0}A=void 0;X=Number((A=d[X])==null?void 0:A.addedTimestampMillis);X=isNaN(X)?(0,_.Gs)():
X;k!==void 0&&N.push({downloadedMusicPlaylistEntities:k,addedTimestampMillis:X})}return N};
Xqi=function(M){var d=new Set;M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,"musicPlaylistEntity"in N&&"musicPlaylistDownloadStateEntity"in N){N=_.V(N.musicPlaylistEntity.tracks);for(var R=N.next();!R.done;R=N.next())d.add(R.value)}return d};
F6i=function(M,d){if(d){var N=_.Rz(M,"musicTrack",_.Nr(d,"musicTrack")),R=_.Rz(M,"musicArtist",_.Nr(d,"musicArtist"))||{};if((M=X0Z(M,d))&&N&&R)return Object.assign({},{musicTrackEntity:N,musicArtistEntity:R},M)}};
A6q=function(M){var d=M.musicTrackDownloadMetadataEntity,N=[];if(!d)return[];d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next()){var X=R.value;R=F6i(M,_.EN(X).entityId);var A=void 0;X=Number((A=_.Rz(M,"musicTrackDownloadMetadataEntity",X))==null?void 0:A.addedTimestampMillis);A=isNaN(X)?(0,_.Gs)():X;R!==void 0&&N.push({downloadedMusicEntities:R,addedTimestampMillis:A})}return N};
$sN=function(M,d){if(!d)return[];if(Object.values(VH2).includes(d))return l1i(M,d);d=_.Nr(d,"musicPlaylist");var N;M=(N=M.musicPlaylist)==null?void 0:N[d];N=[];if(M==null||!M.tracks)return N;M=_.V(M.tracks);for(d=M.next();!d.done;d=M.next())(d=_.EN(d.value).entityId)&&N.push(d);return N};
l1i=function(M,d){var N=new Set,R=RKS(M).map(function(A){return A.downloadedMusicPlaylistEntities});
R=Xqi(R);R=_.V(R);for(var X=R.next();!X.done;X=R.next())(X=_.EN(X.value).entityId)&&N.add(X);return B96(M).downloadedMusicEntities.filter(function(A){var l;if((l=A.musicTrackEntity)!=null&&l.videoId){A=A.musicTrackEntity;if(l=d==="PPOM"?!0:!N.has(A.videoId))b:switch(A=A.musicVideoType,d){case "PPSE":l=A==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:l=A!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}A=l}else A=!1;return A}).map(function(A){var l;
return(l=A.musicTrackEntity)==null?void 0:l.videoId})};
B96=function(M){var d=A6q(M).sort(function(N,R){return R.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return"downloadedMusicEntities"in N?N.downloadedMusicEntities:MHj(N)?N.downloadedMusicPlaylistEntities:{}});
M=RKS(M).sort(function(N,R){return R.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return"downloadedMusicEntities"in N?N.downloadedMusicEntities:MHj(N)?N.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:d,downloadedMusicPlaylistEntities:M}};
T9S=function(M,d){d=_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?$sN(M,d):C02(M,d);if(!d.length)return"TRANSFER_STATE_UNKNOWN";d=d.map(function(N){return GJp(M,N)});
return kQS(d)};
kQS=function(M){var d=new Set(M);if(d.has("TRANSFER_STATE_FAILED")&&d.size===1)return"TRANSFER_STATE_FAILED";d.delete("TRANSFER_STATE_FAILED");if(d.has("TRANSFER_STATE_UNKNOWN")&&d.size===1)return"TRANSFER_STATE_PRE_TRANSFER";d.delete("TRANSFER_STATE_UNKNOWN");if(d.has("TRANSFER_STATE_PRE_TRANSFER")&&d.size===1||d.size===0)return"TRANSFER_STATE_PRE_TRANSFER";M=d.has("TRANSFER_STATE_TRANSFERRING");d=d.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return M||d?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
w_=function(M){var d=M.mainVideoDownloadStateEntity,N=[];if(!d)return[];d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next()){var X=R.value;if(!FQ6(M,_.EN(X).entityId)){R=WD(M,_.EN(X).entityId);var A=void 0,l=void 0;X=(l=Number((A=_.Rz(M,"mainVideoDownloadStateEntity",X))==null?void 0:A.addedTimestampMillis))!=null?l:(0,_.Gs)();R!==void 0&&N.push({downloadedVideoEntities:R,addedTimestampMillis:X})}}return N};
Dsq=function(M){return w_(M).sort(function(d,N){return N.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return d.downloadedVideoEntities})};
_.W6Z=function(M){var d=EcZ(M),N=_.ph(M),R=BJZ(M),X=w_(M).filter(function(l){var k,T;if((l==null?void 0:(k=l.downloadedVideoEntities)==null?void 0:(T=k.transferEntity)==null?void 0:T.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var W,w;l=l==null?void 0:(W=l.downloadedVideoEntities)==null?void 0:(w=W.videoEntity)==null?void 0:w.key;return _.Q("kevlar_use_library_entity")?l&&(R.has(l)||N[l]):l&&!d.has(l)}),A=ZGj(M).filter(function(l){return T9S(M,l.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.wu(X),_.wu(A)).sort(function(l,k){return k.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return g3r(l)})};
wq2=function(M,d){if(d&&dmi(M,d)){var N,R,X=(R=(N=_.Rz(M,"playbackData",_.Nr(d,"playbackData")))!=null?N:void 0)==null?void 0:R.playerResponseJson;if(X){try{var A=JSON.parse(X);var l=_.Rz(M,"transfer",_.Nr(d,"transfer")),k=a6S(M,d);k&&(A=Object.assign({},A,{playerConfig:Object.assign({},A.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+k*1E3}}})}));A.cotn=l==null?void 0:l.cotn}catch(T){}return A}}};
_.hKZ=function(M){var d,N,R;M=(R=(N=((d=M.downloadsPageViewConfigurationEntity)!=null?d:{})[pqZ])==null?void 0:N.smartDownloadsOptInBannerVisibility)!=null?R:{};var X;return(X=_.q(M,msj))!=null?X:{}};
_.ph=function(M){var d,N,R;M=(R=(N=((d=M.mainDownloadsListEntity)!=null?d:{})[_.Quq])==null?void 0:N.downloads)!=null?R:[];d={};N=_.V(M);for(R=N.next();!R.done;R=N.next())M=void 0,d[(M=R.value.videoItem)!=null?M:""]=!0;return d};
qPp=function(M){var d=_.ph(M);if(Object.keys(d).length===0)return!1;var N=M.mainVideoEntity;if(!N)return!0;N=_.V(Object.keys(N));for(var R=N.next();!R.done;R=N.next()){R=R.value;var X=_.EN(R).entityId;if(d[R]&&!FQ6(M,X))return!1}return!0};
_.mZ=function(M){var d=_.ph(M);return w_(M).sort(function(N,R){return N.addedTimestampMillis-R.addedTimestampMillis}).map(function(N){return N.downloadedVideoEntities}).filter(function(N){var R;
return(N=N==null?void 0:(R=N.videoEntity)==null?void 0:R.key)&&!!d[N]})};
g3r=function(M){return"downloadedVideoEntities"in M?M.downloadedVideoEntities:"downloadedPlaylistEntities"in M?M.downloadedPlaylistEntities:{}};
I1L=function(M){var d=_.ph(M),N=EcZ(M),R=w_(M).filter(function(X){var A,l;return(X=X==null?void 0:(A=X.downloadedVideoEntities)==null?void 0:(l=A.videoEntity)==null?void 0:l.key)&&!d[X]&&!N.has(X)});
M=ZGj(M);return[].concat(_.wu(R),_.wu(M)).sort(function(X,A){return A.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return g3r(X)})};
_.hT=function(M){if(!_.Q("kevlar_use_library_entity"))return I1L(M);var d=w_(M).filter(function(R){var X,A;if(X=R=R==null?void 0:(X=R.downloadedVideoEntities)==null?void 0:(A=X.videoEntity)==null?void 0:A.key){var l,k,T;X=((k=(l=M.mainDownloadsListEntity)==null?void 0:l[$mv])==null?0:(T=k.downloads)==null?0:T.length)?BJZ(M).has(R):!1}return X}),N=ZGj(M);
return[].concat(_.wu(d),_.wu(N)).sort(function(R,X){return X.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return g3r(R)})};
v3L=function(M){var d=_.ph(M),N=EcZ(M);return Dsq(M).filter(function(R){var X;return(R=R==null?void 0:(X=R.videoEntity)==null?void 0:X.key)&&!d[R]&&!N.has(R)})};
O9q=function(M){if(!_.Q("kevlar_use_library_entity"))return v3L(M);var d=_.ph(M),N=BJZ(M);return Dsq(M).filter(function(R){var X;return(R=R==null?void 0:(X=R.videoEntity)==null?void 0:X.key)&&!d[R]&&N.has(R)})};
juA=function(M,d){d=_.Nr(d,"settingEntity");var N,R,X;return!!((X=(R=((N=M.settingEntity)!=null?N:{})[d])==null?void 0:R.settingOptionValue)!=null?X:{}).boolValue};
_.QQ=function(M){var d=_.mZ(M);if(MOp(d))return 0;var N=[];d=_.V(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;var X=void 0,A=void 0;if((X=R)==null?0:(A=X.videoEntity)==null?0:A.key)X=_.EN(R.videoEntity.key).entityId,R=M,X=_.Nr(X,"mainVideoDownloadStateEntity"),R=_.Rz(R,"mainVideoDownloadStateEntity",X),(R=Number(R==null?void 0:R.addedTimestampMillis))&&N.push(R)}return Math.max.apply(Math,_.wu(N))};
_.qr=function(M){return M.ui.richGridMiniMode};
_.Iz=function(M){return M.ui.richGridItemsPerRow};
_.suN=function(M){return M.ui.richGridSlimItemsPerRow};
_.P8S=function(M){return M.ui.guideIsExpanded};
_.vD=function(M){return M.ui.miniplayerIsActive};
_.o36=function(M){return M.ui.singleOptionSurveyIsActive};
_.OW=function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.r6S=function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.K6i=function(M){return M.ui.inlinePreviewIsActive};
_.y6j=function(M){return M.ui.inlinePreviewIsEnabled};
_.J6Z=function(M){return M.ui.miniplayerPlaybackState};
c6j=function(M){return M.ui.isOnline};
_.SPZ=function(M){return M.ui.frostedGlassMode};
_.jp=function(M,d){return kJp(M.entities,d)};
_.sW=function(M,d){return T9S(M.entities,d)};
zK6=function(M,d){var N;if(d){var R;M=(R=_.Rz(M.entities,"offlineVideoPolicy",_.Nr(d,"offlineVideoPolicy")))==null?void 0:R.action}else M=void 0;return(N=M)!=null?N:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
b9i=function(M,d){var N;d?(M=_.Rz(M.entities,"offlineVideoPolicy",_.Nr(d,"offlineVideoPolicy")),M=Number(M==null?void 0:M.expirationTimestamp)):M=void 0;return(N=M)!=null?N:0};
_.eKZ=function(M){return _.g_(M.entities).length};
H9N=function(M,d){return WD(M.entities,d)};
n3i=function(M,d){return Yjj(M.entities,d)};
PD=function(M,d){return(M=WD(M.entities,d))?_.xGq([M]):0};
_.i92=function(M,d){var N=_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(N){var R=M.entities;var X=$sN(R,d);if(X.length){var A=[];X=_.V(X);for(var l=X.next();!l.done;l=X.next())(l=F6i(R,l.value))&&A.push(l);R=A}else R=[]}else R=xmi(M.entities,d);var k;if(N){var T=M.entities;d?(d=_.Nr(d,"musicPlaylist"),T=(k=T.musicPlaylist)==null?void 0:k[d],k=T!=null&&T.tracks?T.tracks.length:0):k=0}else k=M.entities,d?(d=_.Nr(d,"mainPlaylistEntity"),k=(T=k.mainPlaylistEntity)==null?void 0:T[d],k=k!=null&&k.videos?
k.videos.length:0):k=0;return R.length!==k?0:R?YYZ(R):0};
_.f1A=function(M){return M.download.isLeaderTab};
_.L6Z=function(M,d,N){if(!d&&N){var R=M.entities;if(N){var X=Eni(N),A,l;d=(l=(A=_.Rz(R,"offlineabilityEntity",_.Nr(X,"offlineabilityEntity")))==null?void 0:A.addToOfflineButtonState)!=null?l:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else d="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else A=M.entities,d?(l=Eni(d),d=(X=(R=_.Rz(A,"offlineabilityEntity",_.Nr(l,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):d="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return d};
tHi=function(M,d){M=M.entities;if(d){d=Eni(d);var N,R;d=(R=(N=_.Rz(M,"offlineabilityEntity",_.Nr(d,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else d="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return d};
_.GQ6=function(M){var d=M.entities;M=c6j(M);var N=juA(d,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.Q("kevlar_modern_downloads_page")&&N)var R=!1;else{var X,A;d=(A=(X=((R=d.downloadsPageViewConfigurationEntity)!=null?R:{})[pqZ])==null?void 0:X.smartDownloadsOptInBannerVisibility)!=null?A:{};R=M?!!d.visibleWithConnection:!!d.visibleWithoutConnection}return R};
_.a1r=function(M){return juA(M.entities,"SMART_DOWNLOADS_ENABLED")};
_.UsA=function(M){return qPp(M.entities)};
u6A=function(M){return _.mZ(M.entities).every(function(d){var N;return(d==null?void 0:(N=d.transferEntity)==null?void 0:N.transferState)&&!Cci.includes(d.transferEntity.transferState)})};
_.C86=function(M,d){return FQ6(M.entities,d)};
xsi=function(M,d){if(d){var N,R;M=(R=(N=_.Rz(M.entities,"downloadStatusEntity",_.Nr(d,"downloadStatusEntity")))==null?void 0:N.downloadState)!=null?R:"DOWNLOAD_STATE_UNKNOWN"}else M="DOWNLOAD_STATE_UNKNOWN";return M};
oz=function(M,d){return a6S(M.entities,d)};
M4A=function(M){M=_.YPZ(M);var d=M.hours===void 0?0:M.hours,N=M.minutes===void 0?0:M.minutes,R=M.seconds===void 0?0:M.seconds,X=d>0;M=[];X&&(d=_.Z9A(d),M.push(d));d=X;d=d===void 0?!1:d;N=(["af","be","lt"].includes(_.r_)||d)&&N<10?E3Z().format(N):(new Intl.NumberFormat("en-u-nu-latn")).format(N);M.push(N);N=E3Z().format(R);M.push(N);N=":";"da fi id si sr sr-Latn".split(" ").includes(_.r_)&&(N=".");return M.join(N)};
_.YPZ=function(M){var d=M.hours||0,N=M.minutes||0,R=M.seconds||0;d=R+N*60+d*3600+(M.days||0)*86400+(M.weeks||0)*604800+(M.months||0)*2629800+(M.years||0)*31557600;if(d<=0)return{hours:0,minutes:0,seconds:0};M=d;d=Math.floor(M/3600);M%=3600;N=Math.floor(M/60);R=Math.floor(M%60);return{hours:d,minutes:N,seconds:R}};
_.Z9A=function(M){M=(new Intl.NumberFormat("en-u-nu-latn")).format(M);var d=["fr"],N="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(_.r_)?M.replace(",","\u00a0"):d.includes(_.r_)?M.replace(",","\u202f"):N.includes(_.r_)?M.replace(",","."):M};
E3Z=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
dT2=function(M){try{return(new _.Kh(5)).format(M)}catch(d){}};
yQ=function(M){return{thumbnailOverlayDownloadingRenderer:{state:M}}};
NmZ=function(M){if(M=dT2(M))return{thumbnailOverlaySidePanelRenderer:{text:_.ue(M),icon:{iconType:"PLAYLISTS"}}}};
RHL=function(){var M=_.le("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.ue(M),icon:{iconType:"PLAY_ALL"}}}};
XnN=function(M){M=_.JT(M,2);return _.r_!=="ru"&&_.r_!=="es_419"&&_.r_!=="es-419"&&_.r_!=="es"&&_.r_!=="es_US"&&_.r_!=="es-US"&&_.r_!=="fr"&&_.r_!=="pl"&&_.r_!=="it"&&_.r_!=="nl"&&_.r_!=="uk"&&_.r_!=="fr_CA"&&_.r_!=="fr-CA"||M===""?M:M[0].toLocaleUpperCase()+M.substring(1)};
AbA=function(M){return function(d){var N=M(),R=_.JT(d,N.dateFormat);d=_.JT(d,N.timeFormat);var X=FTZ.DATETIMEFORMATS[N.joinerStyle];X=X.replace(/'(?!')/g,"");X=X.replace("{0}",d);X=X.replace("{1}",R);return N.capitalize(X)}};
V4p=function(M){return M?typeof M.seconds==="string"&&(M.nanos===void 0||typeof M.nanos==="number"):!1};
lYi=function(M){return new Date(Number(M.seconds)*1E3+(M.nanos||0)*1E-6)};
_.JT=function(M,d){if(typeof M.getTime==="function")M={date:M};else if(V4p(M))M={date:lYi(M)};else if(typeof V4p(M.timestamp)&&typeof M.i18nInternalSecondsEastOfUtc==="number")M={date:lYi(M.timestamp),timeZone:cD(-M.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(M));var N=M;M=N.date;N=N.timeZone;d=$T6(d).format(M,N);_.r_==="zh-TW"&&(M=N?Number($T6("H").format(M,N)):M.getHours(),d=M<5?d.replace("\u4e0a\u5348","\u51cc\u6668"):M<8?d.replace("\u4e0a\u5348","\u65e9\u4e0a"):M<12?
d.replace("\u4e0a\u5348","\u4e0a\u5348"):M<13?d.replace("\u4e0b\u5348","\u4e2d\u5348"):M<19?d.replace("\u4e0b\u5348","\u4e0b\u5348"):d.replace("\u4e0b\u5348","\u665a\u4e0a"));return d};
$T6=function(M){if(Bmq.has(M))return Bmq.get(M);var d=kqZ(M);d=TmZ(d);DTi!==!0&&(DTi=!0);gON=!0;gON=!1;d=new Sp(d,FTZ);Bmq.set(M,d);return d};
kqZ=function(M){return(new Sp(M,FTZ)).patternParts_.map(function(d){return d.type===0?"'"+d.text+"'":d.text}).join("")};
TmZ=function(M){return _.r_==="en"||_.r_==="es_US"||_.r_==="es-US"?M:M.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(d,N,R){return"H".repeat(N.length)+R})};
IYL=function(M,d){WTi||(_.bY=_.wni,WTi=new pn2);var N=WTi;a:if(M=mTN(M),d=mTN(d||new Date),M>d)N=M.getTime()-d.getTime()>6048E5?_.JT(M,1):hHA(M);else{for(var R=0;QLL(M,12*(R+1))<d;)++R;if(R>0)N=N.format(-R,0);else{for(R=0;QLL(M,R+1)<d;)++R;if(R>0)N=N.format(-R,2);else{M=d.getTime()-M.getTime();d=_.V(q9v);for(R=d.next();!R.done;R=d.next()){R=R.value;var X=R.unit,A=Math.floor(M/R.unitDuration);if(A>=(R.threshold===void 0?1:R.threshold)){N=N.format(-A,X);break a}}N=N.format(-0,7)}}}return N};
mTN=function(M){if(typeof M.getTime==="function")return M;if(V4p(M))return lYi(M);throw Error("Df`"+JSON.stringify(M));};
QLL=function(M,d){for(var N=0,R;;++N)if(R=new Date(M.getFullYear(),M.getMonth()+d,M.getDate()-N,M.getHours(),M.getMinutes(),M.getSeconds()),R.getMonth()===(M.getMonth()+d)%12)return R};
_.ep=function(M){return{runs:[{text:M}]}};
_.HD=function(M){if(M&&M.simpleText)return M.simpleText;var d="";if(M&&M.runs)for(var N=0;N<M.runs.length;N++)M.runs[N].text&&(d+=M.runs[N].text);return d};
O4N=function(M,d,N,R){return M.videoEntity&&!M.policyEntity&&N!=="DOWNLOAD_STATE_FAILED"?[yQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:k$(M.policyEntity)&&d!=="TRANSFER_STATE_FAILED"&&d!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?d==="TRANSFER_STATE_PAUSED_BY_USER"?[yQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.TL(d)?[yQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:M.videoEntity.lengthSeconds?vOi(M.videoEntity.lengthSeconds,R):[]:
[yQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
vOi=function(M,d){var N=[{thumbnailOverlayTimeStatusRenderer:{text:_.ue(M4A({seconds:M})),style:"DEFAULT"}}];d&&(M=d<=0||M<=0?0:d>=M?100:Math.ceil(d*100/M),M>0&&N.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:M}}));return N};
jLq=function(M,d,N,R,X){if(d==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(_.TL(d)||d==="TRANSFER_STATE_PRE_TRANSFER")var A=[yQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var l,k;if(d==="TRANSFER_STATE_COMPLETE"&&((l=M.mainPlaylistEntity)==null?0:(k=l.videos)==null?0:k.length)){if(_.Q("web_modern_collections_v2")){var T;var W=(A=M.mainPlaylistEntity)==null?void 0:(T=A.videos)==null?void 0:T.length;A=(A=dT2(W))?{thumbnailOverlayBottomPanelRenderer:{text:_.ue(A),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var w;A=NmZ((W=M.mainPlaylistEntity)==null?void 0:(w=W.videos)==null?void 0:w.length)}var p;A=[RHL(),Object.assign({},(p=A)!=null?p:{})]}else A=[]}p=A;a:if(d==="TRANSFER_STATE_PRE_TRANSFER")N=Cb(_.le("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(d==="TRANSFER_STATE_TRANSFER_IN_QUEUE")N=Cb(_.le("WAITING_TO_DOWNLOAD"));else if(_.TL(d))N=Math.floor(N*100).toString(),N=Cb(_.le("DOWNLOADING_PERCENT",{percent:N},"Downloading... "+N+"%"));else{if(R&&(_.Q("playlist_is_offline_selector_killswitch")&&
(X=_.h().resolve(_.S6).isNetworkAvailable()),X)){N=Fsi(_.le("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Rir(R));break a}N=void 0}d=d==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.le("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},p.length?{thumbnailOverlays:p}:{},N?{viewPlaylistText:N}:{viewPlaylistText:_.ep("")},d.length?{badges:d}:{})};
sL6=function(M,d,N,R,X,A){if(d==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(R==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var l=O4N(M,d,R);if(M.videoEntity&&!M.policyEntity&&R!=="DOWNLOAD_STATE_FAILED"){var k=_.le("WAITING_TO_DOWNLOAD");if(k)return{shortViewCountText:_.ep(k),publishedTimeText:void 0,thumbnailOverlays:l}}if(!k$(M.policyEntity)){A=M.policyEntity&&!Z7r(M.policyEntity)?_.le("DOWNLOAD_EXPIRED",{},"Download expired"):
_.le("TRANSFER_FAILED",{},"Download failed");var T;if((T=M.policyEntity)==null?0:T.shortMessageForDisabledAction)A=M.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Cb(A),publishedTimeText:void 0,thumbnailOverlays:l}}if(d==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.ep(_.le("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:l};if(d==="TRANSFER_STATE_FAILED"||d==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.ep(_.le("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:l};if(d==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(T=_.le("WAITING_TO_DOWNLOAD"),R==="DOWNLOAD_STATE_PAUSED"&&(T=_.le("DOWNLOAD_PAUSED",{},"Download paused")),T))return{shortViewCountText:_.ep(T),publishedTimeText:void 0,thumbnailOverlays:l};if(_.TL(d))return M=Math.floor(N*100).toString(),{shortViewCountText:_.ep(_.le("DOWNLOADING_PERCENT",{percent:M},"Downloading... "+M+"%")),publishedTimeText:void 0,thumbnailOverlays:l};d=void 0;M.videoEntity.publishedTimestampMillis&&
(d=new Date,X&&(d=new Date(X)),d=Cb(IYL(new Date(Number(M.videoEntity.publishedTimestampMillis)),d)));X=[];_.Q("kevlar_woffle_badge_killswitch")||(X=[{metadataBadgeRenderer:{label:_.le("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var W;M=Cb((W=M.videoEntity.localizedStrings)==null?void 0:W.viewCount);return Object.assign({},A?{shortViewCountText:void 0}:{shortViewCountText:M},A?{}:{publishedTimeText:d},{badges:X,thumbnailOverlays:l})};
oO2=function(M,d){M=M===void 0?Pg2:M;switch(d.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:d.payload.playlistId,inviteLinkURL:d.payload.inviteLinkUrl};default:return M}};
KTp=function(M,d){M=M===void 0?rbp:M;switch(d.type){case "SET_CURRENT_FORM_ID":return d=d.payload.formId,M.currentFormId===d?M:{currentFormId:d,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var N=d.payload;d=N.groupId;N=N.command;if(M.currentFormId){var R=Object.assign({},M.commandsMap);R[d]=N;M=Object.assign({},M,{commandsMap:R})}return M;case "RESET_COMMAND_MAP":return Object.assign({},M,{commandsMap:{}});default:return M}};
Jb2=function(M,d){M=M===void 0?ybS:M;switch(d.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},M,{guideIsExpanded:d.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},M,{scrollAtTop:d.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},M,{guideIsVisibleButNotPersistent:d.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},M,{miniplayerIsActive:d.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},M,{singleOptionSurveyIsActive:d.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},M,{slimlineSurveyRatingSelectedIndex:d.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},M,{richGridMiniMode:d.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},M,{richGridItemsPerRow:d.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},M,{richGridSlimItemsPerRow:d.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},M,{richGridContainerWidth:d.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},M,{richGridStyle:d.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:d.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},M,{inlinePreviewIsActive:d.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},M,{inlinePreviewIsEnabled:d.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},M,{darkModeIsEnabled:d.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
M,{miniplayerPlaybackState:d.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},M,{tabGesturesIsActive:d.payload});case "SET_ONLINE_STATUS":return Object.assign({},M,{isOnline:d.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},M,{chipBarIsSticky:d.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},M,{frostedGlassMode:d.payload});default:return M}};
S96=function(M,d){M=M===void 0?cbj:M;switch(d.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},M,{transcription:d.payload});case "SET_OVERLAY_STATE":return Object.assign({},M,{overlay:d.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return M}};
GqZ=function(){return Nw(Object.assign({},{continuation:zHL,entities:qYA,download:b4Z,reportChannelAbuse:eHi,share:H4Z,talkToRecs:nOZ,ui:Jb2,voiceSearch:S96,watch:i4r,ypc:fYi,shorts:LT6,radioButtonGroup:KTp,collabInviteLink:oO2},t4Z))};
uD2=function(){return _.Q("web_player_entities_middleware")?new nh(GqZ(),[aY2,UTS]):new nh(GqZ(),[aY2])};
_.iY=function(){CgZ||(CgZ=uD2());return CgZ};
xTZ=function(M,d,N){if(M.length)return{titleText:_.ue(d!=null?d:_.le("DOWNLOADS",void 0,"Downloads")),contents:M.map(function(R){var X=R.videoEntity;R={videoId:X.videoId,title:Cb(X.title),shortBylineText:Cb(R.channelEntity.title),thumbnail:X.thumbnail};var A=X.videoId?oz(_.iY().getState(),X.videoId):0;X.videoId&&N?R.navigationEndpoint=_.UN(X.videoId,N,void 0,void 0,A):X.videoId&&(R.navigationEndpoint=NIq(X.videoId,A,X.lengthSeconds));X.lengthSeconds&&(R.thumbnailOverlays=vOi(X.lengthSeconds,A));return{playlistPanelVideoRenderer:R}}),
totalVideos:M.length}};
Y9A=function(M){return(M=(0,_.wF.getValueByKeys)(M,"playlistId"))?{playlistId:M}:null};
Z42=function(){return{}};
EOi=function(M,d){return new _.Xy(function(N,R){M.then(function(X){if(X){if(X=d(X))return N(X);R()}},R)})};
MVi=function(M){var d,N,R,X=(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.autoplay)==null?void 0:R.autoplay,A,l,k;d=(A=M.contents)==null?void 0:(l=A.twoColumnWatchNextResults)==null?void 0:(k=l.playlist)==null?void 0:k.playlist;return X&&d&&d.playlistId?{rawResponse:M,autoplayRenderer:X,playlistPanelRenderer:d,playlistId:d.playlistId}:null};
Nb6=function(M){var d=d===void 0?"UNKNOWN_INTERFACE":d;if(M.length===1)return M[0];var N=dlj[d];if(N){N=new RegExp(N);for(var R=_.V(M),X=R.next();!X.done;X=R.next())if(X=X.value,N.exec(X))return X}var A=[];Object.entries(dlj).forEach(function(l){var k=_.V(l);l=k.next().value;k=k.next().value;d!==l&&A.push(k)});
N=new RegExp(A.join("|"));M.sort(function(l,k){return l.length-k.length});
R=_.V(M);for(X=R.next();!X.done;X=R.next())if(X=X.value,!N.exec(X))return X;return M[0]};
_.fh=function(M){return"/youtubei/v1/"+Nb6(M)};
_.Lh=function(M){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:M}}}}};
_.tT=function(M){return _.Lh(_.ep(M))};
RfN=function(M,d){var N={mode:"NORMAL"};M&&(N.autoplayVideo=M.navigationEndpoint,N.nextButtonVideo=M.navigationEndpoint);d&&(N.previousButtonVideo=d.navigationEndpoint);return N};
AKZ=function(M,d,N){if(!N||!N.sets)return{sets:[RfN(M,d)]};var R=N.sets.find(function(l){return l.mode==="NORMAL"}),X=(0,_.wF.unsafeClone)(N);
if(!R)return X.sets.push(RfN(M,d)),X;if(!M)return N;R=_.wF.getValueByKeys.apply(null,[R].concat(_.wu(XAZ)));var A=_.wF.getValueByKeys.apply(null,[M].concat(_.wu(FMS)));if(R===A)return N;X.sets=X.sets.filter(function(l){return l.mode!=="NORMAL"});
X.sets.push(RfN(M,d));return X};
VVi=function(M){return!!M.playlistPanelVideoRenderer&&!M.playlistPanelVideoRenderer.unplayableText};
lpi=function(M){return!!M.playlistPanelVideoRenderer&&!!M.playlistPanelVideoRenderer.title};
$lq=function(M,d){if(d.contents&&!(M>=d.contents.length)&&(M=d.contents.slice(M).find(VVi)))return M.playlistPanelVideoRenderer};
Bbi=function(M,d){if(d.contents)return(d=d.contents.find(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId===M}))?d.playlistPanelVideoRenderer:void 0};
knZ=function(M,d){return d.contents?d.contents.findIndex(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId===M}):-1};
Tbp=function(M,d){return d.contents?d.contents.findIndex(function(N){return!!N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.playlistSetVideoId===M}):-1};
Dlr=function(M,d){M.contents&&d!==-1&&M.contents.splice(d,1).length===1&&M.totalVideos!==void 0&&(--M.totalVideos,delete M.videoCountText)};
_.gHZ=function(M){var d=[];if(!M||!M.contents)return d;M=_.V(M.contents);for(var N=M.next();!N.done;N=M.next())N=N.value,N.playlistPanelVideoRenderer&&N.playlistPanelVideoRenderer.videoId&&d.push(N.playlistPanelVideoRenderer.videoId);return d};
_.WMj=function(M){if(M&&M.contents)return(M=M.contents.find(function(d){return!!d.playlistPanelVideoRenderer&&!!d.playlistPanelVideoRenderer.selected})||M.contents[M.currentIndex])?M.playlistPanelVideoRenderer:void 0};
wAp=function(M,d,N,R,X,A,l){X=X===void 0?!1:X;A=A===void 0?!1:A;l=l===void 0?!1:l;if(M.contents&&M.contents.length!==0){R&&(M.contents=M.contents.filter(R));R=M.contents.length;for(var k=0;k<R;k++){var T=M.contents[k].playlistPanelVideoRenderer;T&&(k===d?(A&&delete T.menu,T.indexText=_.ep("\u25b6")):X||M.isInfinite||T.indexText===void 0?delete T.indexText:T.indexText=_.ep((k+1+N).toString()))}M.currentIndex=d+N;l&&(delete M.videoCountText,M.totalVideos=R)}};
hfN=function(M){M=pAZ(M);if(M){var d=M.length;var N=-10%d;N<0&&(N=d+N);M=M.slice(d-N)+M.slice(0,d-N)}else M="";N="";for(d=0;d<M.length&&M[d]!==mlp;d++)N+=M[d];return N};
QhS=function(M,d){var N=document.body;d=d===void 0?function(k){return k}:d;
var R,X=null;M=_.V(M);for(R=M.next();!R.done;R=M.next()){var A=R.value;R=document.createElement("div");X||(X=R);var l=A[0];A=A[1];l&&(R.id=d(l));if(A)for(l=_.V(A),A=l.next();!A.done;A=l.next())R.classList.add(d(A.value));N.appendChild(R);N=R}return[X,N]};
qnL=function(M,d){for(var N="",R=0;R<d;R++)N+=M.charAt(Math.floor(Math.random()*M.length));return N};
GL=function(M){return qnL("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",M)};
az=function(M){return qnL("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",M)};
UW=function(M){return qnL("0123456789",M)};
uY=function(){var M=performance.now(),d=new Date;var N="2."+d.getFullYear()+String(d.getMonth()+1).padStart(2,"0")+String(d.getDate()).padStart(2,"0");for(var R,X=Math.floor(Math.random()*11)+15,A=[],l=0;l<X;l++)A.push(Math.floor(Math.random()*26476865)+24547720);R=A.join(",");var k=GL(10),T=GL(100),W=GL(102),w=GL(106),p=GL(108),m=GL(11),I=GL(1140),O=GL(123),y=GL(14),c=GL(16),e=GL(1900),t=GL(23),C=GL(26),U=GL(34),Fi=GL(397),Y=GL(44),$i=GL(5),vj=GL(72),Pj=GL(74),sS=GL(75),tL=GL(88),b2=GL(91),Hj="rr4---sn-q4fl6ns6 rr5---sn-5hne6nsd rr2---sn-5hne6n6e rr5---sn-q4fl6nsk rr1---sn-q4fzenee rr1---sn-4g5lznl6 rr2---sn-4g5e6nsk rr5---sn-q4flrne7 rr2---sn-5hnekn7z rr5---sn-aigl6nzl rr1---sn-q4flrnle rr2---sn-q4flrnel rr1---sn-ab5sznzd rr5---sn-q4fl6n6d rr5---sn-q4fzen7r rr3---sn-q4fzenee rr1---sn-q4flrnlz rr5---sn-4g5ednsy rr2---sn-q4fl6nd7 rr3---sn-5hnekn7l".split(" ");
var LZ=Hj[Math.floor(Math.random()*Hj.length)];var w3=(new Date("2010-01-01")).getTime();var XY=(new Date(w3+Math.random()*((new Date).getTime()-w3))).toISOString().split("T")[0];for(var jJ,Ne=[],Vz=0;Vz<4;Vz++)Ne.push(Math.floor(Math.random()*100));jJ=Ne.join(".");var oI=Number(UW(5)),$d=Number(UW(6)),CJ=Number(UW(7)),xd=Number(UW(9)),Vq=UW(1),uL=UW(10),fg=UW(16),M9=UW(19),OV=UW(2),UV=UW(20),q$=UW(21),BV=UW(3),fZ=UW(4),WV=UW(5),V9=UW(6),Qz=UW(7),IC=UW(8),Qt=UW(9);var AX=qnL("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var pK=[az(5),az(5),az(5)].join("%2C"),HY=[UW(3),UW(5),UW(5)].join("%2C"),Vb=az(0),yy=az(1),Hg=az(10),DR=az(108),mL=az(11),lX=az(12),kT=az(13),zN=az(14),nu=az(15),R2=az(16),gU=az(17),hL=az(18),JL=az(19),nZ=az(2),g3=az(20),FY=az(22),Px=az(23),DD=az(24),mt=az(266),pg=az(3),gq=az(30),vx=az(34),FL=az(35),h_=az(36),bs=az(4),cx=az(40),Lk=az(43),Jw=az(47),bB=az(5),TT=az(6),Yi=az(7),pJ=az(75),ei=az(8),rs=az(80),TP=az(9),FS="https://www."+az(12)+".com",id={},P_={},Gx={},Cr6={},vs={},GO={},ai={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:R}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:N},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+az(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:N},{key:"client.name",value:"WEB"},{key:"client.fexp",value:R}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:q$+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+az(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:cx,ypcGetOfflineUpsellEndpoint:{params:rs}},trackingParams:FL+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&cnr="+OV+"&ratebypass=yes&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&c=WEB&txp="+Qz+"&n="+c+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:$d,width:640,height:360,lastModified:fg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qz,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+HY+"&mn="+
pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&cnr="+OV+"&ratebypass=yes&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&c=WEB&txp="+Qz+"&n="+c+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+DR+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:$d,width:1280,
height:720,lastModified:fg,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qz,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+HY+"&mn="+pK+"&ms="+
pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+Qt+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:CJ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:CJ,approxDurationMs:Qz},{itag:248,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+HY+"&mn="+pK+"&ms="+pK+"&mv="+
yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+Qt+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:CJ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:CJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:399,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+Qt+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:CJ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:CJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:136,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+Qt+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:CJ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:$d,approxDurationMs:Qz},{itag:247,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+HY+"&mn="+
pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+Qt+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:CJ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:398,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+Qt+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:CJ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:135,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:$d,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:$d,approxDurationMs:Qz},{itag:244,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+HY+"&mn="+
pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+DR+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:$d,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:397,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:$d,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:134,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:$d,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:$d,highReplication:!0,approxDurationMs:Qz},{itag:243,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:$d,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:396,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:$d,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:133,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:$d,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:$d,approxDurationMs:Qz},{itag:242,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+HY+"&mn="+
pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:$d,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:395,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:$d,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:$d,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:160,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:$d,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:oI,approxDurationMs:Qz},{itag:278,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+HY+"&mn="+
pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:$d,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:oI,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:394,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&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="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=video%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:oI,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:oI,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Qz},{itag:140,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fmp4&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:$d,
initRange:{start:"0",end:"631"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:$d,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qz,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+
OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+Qz+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:oI,initRange:{start:"0",end:"265"},indexRange:{start:BV,
end:fZ},lastModified:fg,contentLength:Qz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:oI,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fwebm&ns="+
DD+"&gir="+pg+"&clen="+Qz+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:oI,initRange:{start:"0",end:"265"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:Qz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:oI,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Qz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+LZ+".googlevideo.com/videoplayback?expire="+uL+"&ei="+t+"&ip="+jJ+"&id=o-AF"+Lk+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+HY+"&mn="+pK+"&ms="+pK+"&mv="+yy+"&mvi="+Vq+"&pl="+OV+"&initcwndbps="+Qz+"&siu="+Vq+"&spc="+Y+"&vprv="+Vq+"&svpuc="+Vq+"&mime=audio%2Fwebm&ns="+DD+"&gir="+pg+"&clen="+IC+"&dur="+IC+"&lmt="+fg+"&mt="+uL+"&fvip=3&keepalive="+pg+"&c=WEB&txp="+
Qz+"&n="+R2+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:$d,initRange:{start:"0",end:"265"},indexRange:{start:BV,end:fZ},lastModified:fg,contentLength:IC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:$d,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Qz,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="+Qt+"&docid="+m+"&ei="+t+"&feature="+k+"&fexp="+Vb+"&ns="+nZ+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yy+"&el="+Hg+"&len="+fZ+"&of="+FY+
"&uga="+OV+"&vm="+mt},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Qt+"&docid="+m+"&ei="+t+"&feature="+k+"&fexp="+Vb+"&ns="+nZ+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yy+"&el="+Hg+"&len="+fZ+"&of="+FY+"&uga="+OV+"&vm="+mt},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Qt+"&docid="+m+"&ei="+t+"&feature="+k+"&fexp="+Vb+"&ns="+nZ+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
yy+"&el="+Hg+"&len="+fZ+"&of="+FY+"&uga="+OV+"&vm="+mt},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+t+"&m="+tL+"&oid="+FY+"&plid="+c+"&pltype="+Yi+"&ptchn="+FY+"&ptk="+y+"&video_id="+m},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Qt+"&docid="+m+"&ei="+t+"&event="+zN+"&feature="+k+"&fexp="+Vb+"&ns="+nZ+"&plid="+c+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yy},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+m+"&ei="+t+"&feature="+
k+"&len="+fZ+"&ns="+nZ+"&plid="+c+"&ver="+Vq,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+m+"&caps="+pg+"&opi="+Qt+"&xoaf="+Vq+"&hl="+nZ+"&ip="+jJ+"&ipbits="+Vq+"&expire="+uL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+jJ+"&key="+pg+"&lang="+$i,name:{simpleText:lX},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+m+"&caps="+pg+"&opi="+Qt+"&xoaf="+Vq+"&hl="+nZ+"&ip="+jJ+"&ipbits="+Vq+"&expire="+uL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+jJ+"&key="+pg+"&kind="+pg+"&lang="+nZ,name:{simpleText:gU},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:mL,title:TP,lengthSeconds:"1155",keywords:[hL,TP,hL,lX],
channelId:DD,isOwnerViewing:!1,shortDescription:bs,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+vx,width:168,height:94},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+vx,width:196,height:110},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
m+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Qz,author:kT,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Qz,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+FY+"/featured_channel.jpg?v="+ei,width:40,height:40}]},trackingParams:FL+"=",navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"/channel/"+DD,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:DD}},channelName:kT,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:nu}]},subscribed:!1,enabled:!0,type:"FREE",channelId:DD,showPreferences:!1,subscribedButtonText:{runs:[{text:nu}]},unsubscribedButtonText:{runs:[{text:Hg}]},trackingParams:FL+"=",unsubscribeButtonText:{runs:[{text:kT}]},serviceEndpoints:[{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[DD],params:ei}},{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cx,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:FL+"=",dialogMessages:[{runs:[{text:zN},{text:gU},{text:bB}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:TT}]},serviceEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[DD],params:ei}},accessibility:{label:lX},trackingParams:FL+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hL}]},accessibility:{label:nu},trackingParams:FL+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:hL}},unsubscribeAccessibility:{accessibilityData:{label:g3}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:IC},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[DD],params:ei}},unsubscribeCommand:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[DD],params:ei}},addToWatchLaterCommand:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:mL,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:mL}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+m+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+h_+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
m+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+mL,width:1280,height:720},title:{simpleText:nu},description:{simpleText:zN},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+bB,externalChannelId:DD,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:Qz,category:"Travel & Events",publishDate:XY,ownerChannelName:kT,uploadDate:XY}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:zN},trackingParams:FL+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:cx,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:FL+"="}}],headerText:{simpleText:g3},icon:{infoCardIconRenderer:{trackingParams:FL+"="}},closeButton:{infoCardIconRenderer:{trackingParams:FL+"="}},trackingParams:FL+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:FL+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+mL+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:AX,interpreterSafeUrl:(id.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+gq+".js",id),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:lX},{text:TP,bold:!0}]},endpoint:{clickTrackingParams:cx,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:FL+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:zN}]},actionButton:{buttonRenderer:{text:{runs:[{text:bs}]},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+m,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
m,target:"TARGET_NEW_WINDOW"}},trackingParams:FL+"="}},trackingParams:FL+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+vj+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+vj+"=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:Qz,endMs:Qz,title:{accessibility:{accessibilityData:{label:Yi}},simpleText:zN},metadata:{simpleText:g3},callToAction:{simpleText:ei},dismiss:{simpleText:bB},endpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"/channel/"+DD,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:DD}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:mL}]},subscribed:!1,enabled:!0,type:"FREE",channelId:DD,showPreferences:!1,
subscribedButtonText:{runs:[{text:R2}]},unsubscribedButtonText:{runs:[{text:kT}]},trackingParams:FL+"=",unsubscribeButtonText:{runs:[{text:hL}]},serviceEndpoints:[{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[DD],params:ei}},{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:cx,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:FL+
"=",dialogMessages:[{runs:[{text:Yi},{text:g3},{text:Yi}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nu}]},serviceEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[DD],params:ei}},accessibility:{label:mL},trackingParams:FL+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hL}]},
accessibility:{label:TT},trackingParams:FL+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:gU}},unsubscribeAccessibility:{accessibilityData:{label:zN}}}},trackingParams:FL+"=",isSubscribe:!0,id:UV}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:168,height:94},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+vx,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+m+"/hqdefault.jpg?sqp=-oaymwE"+h_+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+m+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Qz,endMs:Qz,title:{accessibility:{accessibilityData:{label:R2}},simpleText:JL},metadata:{simpleText:R2},endpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
mL,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:mL,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+LZ+".googlevideo.com/videoplayback?source=youtube&oeis="+Vq+"&c=WEB&oad="+fZ+"&ovd="+fZ+"&oaad="+WV+"&oavd="+WV+"&ocs="+BV+"&oewis="+Vq+"&oputc="+Vq+"&ofpcc="+Vq+"&siu="+Vq+"&msp="+Vq+"&odepv="+Vq+
"&id=o-AF"+Lk+"&ip="+jJ+"&initcwndbps="+Qz+"&mt="+uL+"&oweuc="+Vb}}}}},trackingParams:FL+"=",id:UV,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:hL}},simpleText:TT},style:"DEFAULT"}}]}}],startMs:Qz,trackingParams:FL+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Vq,offsetEndMilliseconds:WV},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";ord="+uL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+BV+";dc_sk="+Vq+";dc_ctype="+OV+";dc_ref=http://www.youtube.com/video/"+mL+";dc_pubid="+Vq+";dc_btype=23?gclid="+b2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Vq+"&ns="+Vq+"&event="+Vq+"&device="+Vq+"&content_v="+m+"&el="+Hg+"&ei="+t+"&devicever="+N+"&bti="+Qz+"&format="+V9+"&break_type="+Vq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Vq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+jJ+"&slot_pos="+Vq+"&slot_len="+Vq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+HY+"&ad_len="+WV+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
mL+"&aqi="+t+"&ad_rmp="+Vq+"&sli="+Vq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+
";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+Qz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&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"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&ctype="+BV+"&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"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_engaged_view&ctype="+BV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+M9+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+Px+"&ad_cpn=[AD_CPN]&id="+TT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+Px+"&ad_cpn=[AD_CPN]&id="+TT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TT+"&avm="+Vq+"&dc_pubid="+Vq+"&dc_exteid="+
UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
W+"&sig="+Px+"&ad_cpn=[AD_CPN]&id="+TT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cx,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+
BV+"&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/"+m+"/mqdefault.jpg",width:320,height:180}]},trackingParams:FL+"="},trackingParams:FL+
"=",templatedCountdown:{templatedAdText:{text:gU,isTemplated:!0,trackingParams:FL+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:JL,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},trackingParams:FL+"=",skipOffsetMilliseconds:5E3}},trackingParams:FL+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Hg},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:TP,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:TP,isTemplated:!0,trackingParams:FL+"="}},trackingParams:FL+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(P_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+bs,P_),trackingParams:FL+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:FL+"="}},hoverText:{runs:[{text:hL}]},trackingParams:FL+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Jw+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},headline:{text:mL,isTemplated:!1,trackingParams:FL+"="},description:{text:bB,
trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:R2},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},startMs:Vq,trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:kT},elementId:lX}},elementId:lX,trackingParams:FL+"=",legacyInfoCardVastExtension:TT,sodarExtensionData:{siub:hL,bgub:kT,scs:bs,bgp:zN},externalVideoId:mL,adLayoutLoggingData:{serializedAdServingDataEntry:kT},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Jw+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},
headline:{text:zN,isTemplated:!1,trackingParams:FL+"="},description:{text:zN,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:JL},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+
UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+
Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:FL+"="}},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+
Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+
O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:FL+"="},abandonCommands:{commands:[{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+
Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cx,commandExecutorCommand:{commands:[{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:kT,isTemplated:!1,trackingParams:FL+
"="},trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:TP},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+Qz+";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="+Qt+";dc_trk_cid="+Qt+";ord="+uL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+BV+";dc_sk="+Vq+";dc_ctype="+OV+";dc_ref=http://www.youtube.com/video/"+mL+";dc_pubid="+Vq+";dc_btype=23?gclid="+b2+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Vq+"&ns="+Vq+"&event="+Vq+"&device="+Vq+"&content_v="+m+"&el="+Hg+"&ei="+t+"&devicever="+N+"&bti="+Qz+"&format="+V9+"&break_type="+Vq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Vq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+jJ+"&slot_pos="+Vq+"&slot_len="+Vq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
HY+"&ad_len="+WV+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+mL+"&aqi="+t+"&ad_rmp="+Vq+"&sli="+Vq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+
C+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+Qz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&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"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&ctype="+BV+"&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"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_engaged_view&ctype="+BV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+Px+"&ad_cpn=[AD_CPN]&id="+
TT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+
"&sig="+Px+"&ad_cpn=[AD_CPN]&id="+TT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TT+"&avm="+Vq+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+W+"&sig="+Px+"&ad_cpn=[AD_CPN]&id="+TT+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Vq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TT+"&dc_pubid="+Vq+"&dc_exteid="+UV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+V9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+
BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&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/"+m+"/mqdefault.jpg",width:320,height:180}]},trackingParams:FL+"="},trackingParams:FL+"=",templatedCountdown:{templatedAdText:{text:zN,isTemplated:!0,trackingParams:FL+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ei,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},
trackingParams:FL+"=",skipOffsetMilliseconds:5E3}},trackingParams:FL+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:gU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:hL,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Hg,
isTemplated:!0,trackingParams:FL+"="}},trackingParams:FL+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:cx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Gx.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+bs,Gx),trackingParams:FL+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:FL+"="}},hoverText:{runs:[{text:TP}]},trackingParams:FL+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},headline:{text:zN,isTemplated:!1,trackingParams:FL+"="},description:{text:gU,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:R2},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},startMs:Vq,trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Hg},elementId:zN}},elementId:g3,trackingParams:FL+"=",legacyInfoCardVastExtension:bB,sodarExtensionData:{siub:g3,bgub:g3,scs:hL,bgp:hL},externalVideoId:mL,adLayoutLoggingData:{serializedAdServingDataEntry:nu},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FL+"="},headline:{text:mL,
isTemplated:!1,trackingParams:FL+"="},description:{text:Hg,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:hL},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:FL+"="}},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+
Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:FL+"="},abandonCommands:{commands:[{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&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="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+OV+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:cx,commandExecutorCommand:{commands:[{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:TP,isTemplated:!1,trackingParams:FL+"="},trackingParams:FL+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Yi},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Vq+";dc_exteid="+UV+";met="+Vq+";ecn"+Vq+"="+Vq+";etm1="+Vq+";eid1="+
Qz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:nu}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:R2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:WV,offsetEndMilliseconds:V9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+OV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+N+"&m_pos_ms="+WV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:V9,offsetEndMilliseconds:V9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+V9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:V9,offsetEndMilliseconds:V9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+V9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Hg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:V9,offsetEndMilliseconds:V9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+V9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:V9,offsetEndMilliseconds:OV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+BV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+V9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:OV,offsetEndMilliseconds:OV},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+t+"&m_pos="+OV+"&token=ALHj"+Fi+"&index="+Vq+"&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="+
N+"&m_pos_ms="+OV}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:g3,isTemplated:!1,trackingParams:FL+"="},description:{text:lX,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:TP},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Jw+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:FL+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sS+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FL+"="},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+
";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Cr6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+bs,Cr6),trackingParams:FL+"="}},popupType:"DIALOG"}},trackingParams:FL+"="}},hoverText:{runs:[{text:TP}]},trackingParams:FL+"="}},adVideoId:mL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:kT},associatedCompositePlayerBytesLayoutId:R2}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:zN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lX,isTemplated:!1,trackingParams:FL+"="},description:{text:nu,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:nu},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+
O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Pj+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:FL+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+pJ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FL+"="},navigationEndpoint:{clickTrackingParams:cx,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+
Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(vs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+bs,vs),trackingParams:FL+"="}},popupType:"DIALOG"}},trackingParams:FL+"="}},
hoverText:{runs:[{text:JL}]},trackingParams:FL+"="}},adVideoId:mL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+mL+"&cid="+C+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hL},associatedCompositePlayerBytesLayoutId:R2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:g3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:kT,
isTemplated:!1,trackingParams:FL+"="},description:{text:Yi,isTemplated:!1,trackingParams:FL+"="},actionButton:{buttonRenderer:{text:{simpleText:Hg},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+
OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+
U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FL+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Jw+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:FL+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sS+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FL+
"="},navigationEndpoint:{clickTrackingParams:cx,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Qt+";dc_trk_cid="+Qt+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Vq+";ord="+Qt+";dc_rui="+Vq+";dc_exteid="+UV+";dc_av="+Vq+";dc_sk="+Vq+";dc_ctype="+OV+";dc_pubid="+Vq+";dc_btype=3?gclid="+b2+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+I+"____________"+O+"AxAA&ase=2&num="+Vq+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+FS+"&label=video_click_to_advertiser_site&ctype="+BV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FL+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:cx,openPopupAction:{popup:{aboutThisAdRenderer:{url:(GO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+nZ+"&origin=www.youtube.com&ata_theme="+bs,GO),trackingParams:FL+"="}},popupType:"DIALOG"}},trackingParams:FL+
"="}},hoverText:{runs:[{text:g3}]},trackingParams:FL+"="}},adVideoId:mL,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+I+"____________"+O+"AxAA&sigh="+m+"&cid="+C+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ei},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:R2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TP}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:gq,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:gq,command:{innertubeCommand:{clickTrackingParams:cx,ypcGetOfflineUpsellEndpoint:{params:rs}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:FL+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:uL,nanos:xd}}}},htL=JSON.stringify(ai),U2=performance.now()-M;return{objectRepresentation:ai,jsonRepresentation:htL,generationTime:U2}};
IpN=function(M,d){if(M===d)return!0;if(!M||!d||typeof M!==typeof d)return!1;if(M instanceof Array&&d instanceof Array){if(M.length!==d.length)return!1;for(var N=0;N<M.length;N++)if(!IpN(M[N],d[N]))return!1;return!0}if(typeof M==="object"&&typeof d==="object"&&M&&d){for(N in M)if(!(N in d&&IpN(M[N],d[N])))return!1;for(var R in d)if(!(R in M))return!1;return!0}return!1};
_.x$=function(){if(!Ch){Ch=new Xx(new vH6);var M=_.ZR("client_streamz_web_flush_count",-1);M!==-1&&(Ch.invocationLimit=M)}return Ch};
Y$=function(M,d,N,R){if(M===d)return!0;if(Array.isArray(M)&&Array.isArray(d)){if(M.length!==d.length)return!1;for(var X=0;X<M.length;X++)if(!Y$(M[X],d[X],N,R))return!1;return!0}if(M instanceof Set||d instanceof Set){if(M instanceof Set&&d instanceof Set){if(M.size!==d.size)return!1;R=_.V(M.values());for(X=R.next();!X.done;X=R.next())if(!d.has(X.value))return!1;return!0}return!1}if(M instanceof Function){if(R)return!0;M.name===""&&_.qZ(Error("Hf"),"ERROR");return!1}if(M instanceof Date&&d instanceof
Date)return M.getTime()===d.getTime();if(M instanceof Object&&d instanceof Object){if(O$p(M)&&O$p(d))try{return M.equals(d)}catch(l){_.qZ(Error("If`"+l),"ERROR")}X=Object.getOwnPropertyNames(M).filter(function(l){return N?M[l]!==void 0:!0});
var A=Object.getOwnPropertyNames(d).filter(function(l){return N?d[l]!==void 0:!0});
if(X.length!==A.length)return!1;X=_.V(X);for(A=X.next();!A.done;A=X.next())if(A=A.value,!Y$(M[A],d[A],N,R))return!1;return!0}return!1};
O$p=function(M){M=Object.getPrototypeOf(M).equals;return M instanceof Function&&M.length===1};
PWv=function(){return _.B(function(M){if(M.nextAddress==1)return jhZ!==2?M.jumpTo(2):_.D(M,shj(),3);M.nextAddress!=2&&(jhZ=M.yieldResult);return M.return(jhZ)})};
KMS=function(){return _.B(function(M){if(M.nextAddress==1)return _.Q("ab_pl_man")?oHj!==2?M.jumpTo(2):_.D(M,rKZ(),3):M.return(1);M.nextAddress!=2&&(oHj=M.yieldResult);return M.return(oHj)})};
cKZ=function(){return _.B(function(M){if(M.nextAddress==1)return _.Q("ab_fk_sk_cl")?yKN!==2?M.jumpTo(2):_.D(M,JKq(),3):M.return(1);M.nextAddress!=2&&(yKN=M.yieldResult);return M.return(yKN)})};
b$N=function(){return _.B(function(M){if(M.nextAddress==1)return _.Q("ab_det_apb_b")?Snq!==2?M.jumpTo(2):_.D(M,zfL(),3):M.return(1);M.nextAddress!=2&&(Snq=M.yieldResult);return M.return(Snq)})};
nH2=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,Promise.all([PWv(),b$N(),KMS(),cKZ()]),2);if(d.nextAddress!=3)return efL()?d.return(!0):_.D(d,H$i(),3);M=d.yieldResult;return d.return(M===0)})};
efL=function(){var M=!1,d=function(N,R){i$A.increment(R,N);N===0&&(M=!0)};
d(fpL(),"j.s_");d(jhZ,"f.i_");d(Snq,"a.b_");d(oHj,"p.m_");d(yKN,"i.f_");LMS===2&&(LMS=tVZ(QhS(GnS)));d(LMS,"e.h_");_.Q("ks_det_gpbl")||d(ap2(),"p.i_");_.Q("ks_get_o_pp")||d(UlN(),"g.o_");_.Q("ab_deg_unex_thr")||d(u5Z(),"a.o_");d(CWL,"s.t_");_.Q("ab_det_sc_inj_enf")&&d(xlZ(),"s.i_");d(YnZ,"d.p_");d(Z$L(_.Z4),"o.p_");d(EHi()===0?0:M$j(),"o.a_");return _.Q("debug_sk_em_precheck")?!0:M};
NQL=function(){var M=[].concat(_.wu(dhj));try{var d=uY();M.push({jsonRepresentation:d.jsonRepresentation,objectRepresentation:d.objectRepresentation})}catch(N){M=[].concat(_.wu(dhj))}return M};
RAA=function(){var M=["adPlacements","adSlots"];try{return M.filter(function(){return!0}).length!==M.length?0:1}catch(d){return 0}};
UlN=function(){if(RAA()===0)return 0;var M=uY(),d=M.objectRepresentation,N=(0,_.wF.unsafeClone)(d),R=[];if(d&&typeof d==="object")for(var X in d)R.push(X);else return 4;M=M.objectRepresentation.adPlacements;if(!(M&&M.length>0))return 4;try{if(!IpN(R,Object.getOwnPropertyNames(d)))return 0}catch(A){return 0}return IpN(N,d)?1:0};
Z$L=function(M){var d=Object.getOwnPropertyNames(Object.prototype);M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=hfN(N.value);for(var R=_.V(d),X=R.next();!X.done;X=R.next())if(N===X.value)return 0}return 1};
XGr=function(M){var d=hfN(M[1]);if(M[0]===null)return d;M=M[0];for(var N={},R=0;R<M.length;R++){var X=hfN(M[R]);if(R===0)N[X]=d;else{var A={};A[X]=N;N=A}}return N};
EHi=function(){for(var M=_.EW,d=0;d<M.length;d++){var N=XGr(M[d]),R=[];R.push(N);if(R.length===0)return 0}return 1};
M$j=function(){for(var M=_.EW,d={},N=0;N<M.length;d={rNw:void 0},N++){var R=[XGr(M[N])];d.rNw=[];R.forEach(function(X){return function(A){X.rNw[X.rNw.length]=A}}(d));
if(d.rNw.length===0)return 0}return 1};
fpL=function(){for(var M=_.V(NQL()),d=M.next();!d.done;d=M.next()){var N=d.value;d=N.jsonRepresentation;N=N.objectRepresentation;try{var R=JSON.parse(d);if(!Y$(R,N,!1,!1))return 0}catch(X){return 0}}return 1};
xlZ=function(){try{var M=_.MB("ab_det_sc_inj_val");M.length===1&&M[0]===""&&(M=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var d=document.querySelectorAll("script"),N=_.V(d),R=N.next();!R.done;R=N.next())for(var X=R.value,A=_.V(M),l=A.next();!l.done;l=A.next()){var k=l.value;d=void 0;if((d=X.textContent)==null?0:d.includes(k))return 0}}catch(T){return 4}return 1};
H$i=function(){var M,d,N,R,X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:_.Mv(k,2),M=_.V(dhj),d=M.next();case 4:if(d.done)return k.return(1);R=N=d.value;X=R.jsonRepresentation;A=R.objectRepresentation;return _.D(k,(new Response(X,{status:200})).json(),7);case 7:l=k.yieldResult;if(!Y$(l,A,!1,!1))return k.return(0);d=M.next();k.jumpTo(4);break;case 2:return _.Fg(k),k.return(4)}})};
u5Z=function(){try{btoa("abc")}catch(M){return 0}return 1};
shj=function(){var M,d,N,R,X,A,l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:_.Mv(p,2),M=_.V(NQL()),d=M.next();case 4:if(d.done)return p.return(1);R=N=d.value;X=R.jsonRepresentation;A=R.objectRepresentation;l=btoa(X);k="data:application/json;base64,"+l;T=new Request(k);Object.defineProperty(T,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(T,"method",{get:function(){return"POST"}});
Object.defineProperty(T,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(T,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(T,"body",{get:function(){return new ReadableStream}});
return _.D(p,fetch(T),7);case 7:return W=p.yieldResult,_.D(p,W.json(),8);case 8:w=p.yieldResult;if(!Y$(w,A,!1,!1))return p.return(0);d=M.next();p.jumpTo(4);break;case 2:return _.Fg(p),p.return(4)}})};
tVZ=function(M){var d=_.V(M);M=d.next().value;d=d.next().value;try{var N=document.createElement("div");document.body.appendChild(N);var R=getComputedStyle(N).display;document.body.removeChild(N);if(R==="none")return 4;var X=getComputedStyle(d).display==="none"?0:1;document.body.removeChild(M);return X}catch(A){return 4}};
JKq=function(){var M,d,N;return _.B(function(R){M=new _.MX;d=document.createElement("button");d.classList.add("ytp-ad-skip-button");d.style.opacity="0";d.style.height="0px";d.style.width="0px";d.style.padding="0px";d.style.border="none";N=function(){d.parentElement&&d.parentElement.removeChild(d)};
d.onclick=function(){M.resolve(0);N()};
document.body.appendChild(d);setTimeout(function(){N();M.resolve(1)},50);
return R.return(M.promise)})};
rKZ=function(){var M,d,N,R,X,A,l;return _.B(function(k){M=new _.MX;d=document.createElement("ytd-player");try{document.body.prepend(d)}catch(T){return k.return(4)}N=function(){d.parentElement&&d.parentElement.removeChild(d)};
d.getElementsByTagName("div").length>0?R=d.getElementsByTagName("div")[0]:(R=document.createElement("div"),d.appendChild(R));X=document.createElement("div");R.appendChild(X);A=document.createElement("video");l=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});A.src=_.$8(_.WQ(l));A.ontimeupdate=function(){N();M.resolve(0)};
X.appendChild(A);A.classList.add("html5-main-video");setTimeout(function(){X.classList.add("ad-interrupting")},200);
setTimeout(function(){N();M.resolve(1)},5E3);
return k.return(M.promise)})};
FqZ=function(M,d){var N,R;return _.B(function(X){switch(X.nextAddress){case 1:N=[],R=0;case 2:if(!(R<3)){X.jumpTo(4);break}return _.D(X,fetch(M,{cache:"no-store",method:d}).then(function(A){N.push(A.status)}).catch(function(){N.push(-1)}),3);
case 3:R++;X.jumpTo(2);break;case 4:return X.return(N)}})};
Asr=function(M){return M.domainLookupStart===0&&M.domainLookupEnd===0&&M.connectStart===0&&M.connectEnd===0};
V$q=function(M,d,N){N=N===void 0?"GET":N;var R,X,A,l,k,T,W,w,p,m;return _.B(function(I){if(I.nextAddress==1)return _.D(I,Promise.all([FqZ(M,N),FqZ(d,N)]),2);R=I.yieldResult;X=_.V(R);A=X.next().value;l=X.next().value;k=A;T=l;if(Math.min.apply(Math,_.wu(T))!==Math.max.apply(Math,_.wu(T))||Math.min.apply(Math,_.wu(k))!==Math.max.apply(Math,_.wu(k)))return I.return(2);if(Math.min.apply(Math,_.wu(T))===Math.min.apply(Math,_.wu(k)))return I.return(1);w=(W=performance.getEntriesByName(M))==null?void 0:W[0];
m=(p=performance.getEntriesByName(d))==null?void 0:p[0];return w&&m?Asr(m)?I.return(1):Asr(w)?I.return(0):I.return(1):I.return(2)})};
zfL=function(){var M;return _.B(function(d){var N=[];var R;var X,A,l;(X=R=(X=uY().objectRepresentation.streamingData)==null?void 0:(A=X.formats)==null?void 0:(l=A[0])==null?void 0:l.url)&&X&&!R.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(X=X.replace("initcwndbps","ctier=L&initcwndbps"),R={testUrl:X,baseUrl:R,method:"GET"}):R=void 0;R&&N.push(R);_.Q("ab_net_tp_e")&&N.push({testUrl:_.Np.location.origin+"/ad_companion",baseUrl:_.Np.location.origin+"/generate_204",method:"OPTIONS"});if(_.Q("ad_net_pb_ab")){var k;
b:{R=/api\/stats\/ads/;var T,W,w,p;X=(k=uY().objectRepresentation.adPlacements)==null?void 0:(T=k[0])==null?void 0:(W=T.adPlacementRenderer)==null?void 0:(w=W.renderer)==null?void 0:(p=w.linearAdSequenceRenderer)==null?void 0:p.linearAds;if(X!=null&&X.length&&(k=_.q(X[0],ld6))&&(k=k.pings,k!=null&&k.impressionPings))for(T=[].concat(_.wu(k.impressionPings)),k.progressPings&&(T=[].concat(_.wu(T),_.wu(k.progressPings))),k=_.V(T),T=k.next();!T.done;T=k.next())if(T=T.value,T.baseUrl&&R.test(T.baseUrl)){k=
T.baseUrl.replace("https://www.youtube.com","");break b}k=void 0}k&&N.push({testUrl:_.Np.location.origin+k,baseUrl:_.Np.location.origin+"/feed/download",method:"GET"})}if(_.Q("ad_net_pb_pbp")){var m;b:{k=/api\/stats\/qoe/;if(T=uY().objectRepresentation.playbackTracking){W=[];W.push(T==null?void 0:(m=T.videostatsPlaybackUrl)==null?void 0:m.baseUrl);var I;W.push(T==null?void 0:(I=T.videostatsDelayplayUrl)==null?void 0:I.baseUrl);var O;W.push(T==null?void 0:(O=T.videostatsWatchtimeUrl)==null?void 0:
O.baseUrl);var y;W.push(T==null?void 0:(y=T.ptrackingUrl)==null?void 0:y.baseUrl);var c;W.push(T==null?void 0:(c=T.qoeUrl)==null?void 0:c.baseUrl);var e;W.push(T==null?void 0:(e=T.atrUrl)==null?void 0:e.baseUrl);m=_.V(W);for(I=m.next();!I.done;I=m.next())if((I=I.value)&&k.test(I)){m=I.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}m=void 0}m&&N.push({testUrl:_.Np.location.origin+m,baseUrl:_.Np.location.origin+"/feed/download",method:"GET"})}N=N.length!==0?N[Math.floor(Math.random()*
N.length)]:void 0;return(M=N)?d.return(V$q(M.testUrl,M.baseUrl,M.method)):d.return(4)})};
ap2=function(){if(_.Np.gQF===void 0||_.Np.gQF===null||typeof _.Np.gQF!=="function")return 2;try{return _.Np.gQF()===!0?0:1}catch(M){return 0}};
$hi=function(M){switch(M){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.RC(M,"unknown result type")}};
_.BQS=function(M,d){var N=Number(_.rK("CATSTAT",0));if(d.tBA===void 0)return N;d=d.tBA;M=$hi(M);return N&~(3<<d)|M<<d};
kci=function(M){var d,N;if((M=(d=M.auxiliaryUi)==null?void 0:(N=d.messageRenderers)==null?void 0:N.bkaEnforcementMessageViewModel)&&M.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return M};
Dh2=function(){for(var M=_.V(Object.values(_.TQZ)),d=M.next();!d.done;d=M.next())d=d.value,d.isAsync&&d.tBA&&_.oJ("CATSTAT",_.BQS(2,d))};
_.X8=function(M,d){M=_.df("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",M);(d===void 0?0:d)?_.gyv(M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.NX(_.Rj(),M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
wGv=function(){if(!Wq2){if(Polymer.Base){var M=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{M.apply(this,arguments)}catch(p){_.yD(p)}};
var d=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{d.apply(this,arguments)}catch(p){_.yD(p)}};
var N=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{N.apply(this,arguments)}catch(p){_.yD(p)}};
var R=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{R.apply(this,arguments)}catch(p){_.yD(p)}};
var X=Polymer.Base._listen,A=new WeakMap;Polymer.Base._listen=function(p,m,I){var O=function(){try{I.apply(this,arguments)}catch(y){_.yD(y)}};
A.set(I,O);X.call(this,p,m,O)};
var l=Polymer.Base._unlisten;Polymer.Base._unlisten=function(p,m,I){l.call(this,p,m,A.get(I))}}if(Polymer.Async){var k=Polymer.Async,T=k._atEndOfMicrotask;
k._atEndOfMicrotask=function(){try{T.apply(k,arguments)}catch(p){_.yD(p)}}}if(Polymer.RenderStatus){var W=Polymer.RenderStatus,w=W.afterNextRender;
W.afterNextRender=function(p,m,I){w.call(W,p,function(){try{m.apply(this,arguments)}catch(O){_.yD(O)}},I)}}Wq2=!0}};
_.mhS=function(M){var d=M?_.FO(M):"";if(d){if(d.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(d.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(d.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(d.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(d.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(d.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";d=d.toLowerCase();if(d==="/")return"home";if(d===
"/channel_memberships")return"channel-memberships-shopfront";if(d.indexOf("/feed/trending")===0)return"trending";if(d.indexOf("/feed/explore")===0)return"explore";if(d.indexOf("/live")===0)return"live";if(d.indexOf("/results")===0)return"search";if(d.indexOf("/sports")===0)return"sports";if(d.indexOf("/fashion")===0||d.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(d))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(d))return"learning";
if(d.indexOf("/channel/")===0||d.indexOf("/user/")===0||d.indexOf("/gaming")===0||d.indexOf("/post/")===0)return"channel";if(pGv(M))return"show";if(d==="/playlist"||d.indexOf("/playlist/")===0||d==="/view_play_list"||d.indexOf("/view_play_list/")===0||d.indexOf("/show/")===0)return"playlist";if(d==="/feed/history"||d.indexOf("/feed/history/")===0)return"history";if(d==="/new")return"labs";if(d==="/feed/subscriptions")return"subscriptions";if(d.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(d==="/history_controls")return"standalone";if(d.indexOf("/account")===0||d==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(d.indexOf("/paid_memberships")===0||d.indexOf("/refund")===0||d.indexOf("/purchases")===0||d.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(d.indexOf("/product")===0)return"yts-products";if(d.indexOf("/premium")===0||d.indexOf("/musicpremium")===0)return d.indexOf("/premium/offers")===0||d.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(d===
"/cart/checkout"||d==="/cart")return"ypc-checkout";if(d.indexOf("/feed/downloads")===0||d.indexOf("/redeem")===0||d.indexOf("/reporthistory")===0)return"browse";if(d.indexOf("/hashtag")===0)return"hashtag-landing-page";if(d.indexOf("/handle")===0)return"handle";if(d.indexOf("/source")===0)return"audio-pivot";if(d.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(d.indexOf("/playables")===0)return"playables";if(d.indexOf("/create/live/join")===0)return"open-in-app";if(d.indexOf("/shorts")===
0)return"shorts";if(d.indexOf("/feed/channels")===0)return"subscriptions-channels";(d=M?_.FO(M):"")&&d.indexOf("/watch")===0&&_.Q("web_watch_enable_learning_journey")?(M=_.is(M),M=!!M.list&&M.list.indexOf("LJPP")===0):M=!1;if(M)return"learning-journey-watch"}};
pGv=function(M){var d=M?_.FO(M):"";if(!d)return!1;d=d.toLowerCase();return d.indexOf("/show/")===0||d.indexOf("/playlist")===0&&(M=_.is(M),M.list&&M.list.indexOf("EL")===0)?!0:!1};
Vp=function(M){var d="unknown",N;var R=((N=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:N.webPageType)||"";R?(N=R.toLowerCase(),N.startsWith("web_page_type_")&&(N=N.slice(14))):N=R;N&&hAp[N.toUpperCase()]?d=hAp[N.toUpperCase()]:_.q(M,_.F8)||_.q(M,QdA)?d="browse":_.q(M,_.A2)?d="search":_.q(M,_.nL)&&(d="watch");d==="unknown"&&_.vh(Error("Kf`"+JSON.stringify({clickTrackingParams:M==null?void 0:M.clickTrackingParams,commandMetadata:M==null?void 0:M.commandMetadata,allEndpointKeys:Object.keys(M||
[])})));return d};
_.lx=function(M){if(!_.qbN||M)_.qbN=_.Xt();return _.qbN};
_.Idi=function(M){return!!_.q(M,_.nL)||!!_.q(M,_.$B)&&_.Q("kevlar_enable_shorts_prefetch")};
_.vyZ=function(M,d){M=_.q(M,_.nL)||_.q(M,_.$B);return"v"+M.videoId+(M.playlistId?"-pl"+M.playlistId:"")+(d?"-an1":"")+(M.params?"-pr"+M.params:"")};
jd2=function(M){var d=_.ZR("web_pbj_log_warning_rate",0);d=d>0&&Math.random()<d;if(!_.q(M,_.$B))return d&&_.vh(Error("Nf")),!1;var N;return _.Q("shorts_controller_retrieve_seedless_sequence_v2")&&((N=_.q(M,_.$B))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:OV2(M)?!0:(d&&_.vh(Error("Of")),!1)};
OV2=function(M){var d=(_.q(M,_.nL)||_.q(M,_.$B)).videoId;if(!d||!sdL.test(d))return!1;var N;return(M=(N=_.q(M.commandMetadata,_.an))==null?void 0:N.url)&&(M.includes(d)||M.startsWith("/clip"))?!0:!1};
_.oyi=function(){var M=_.kS();return M.getFlag(192)?M.getFlag(190):!(_.Q("web_watch_cinematics_disabled_by_default")||_.Q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Pnv())};
_.BN=function(M,d,N){var R={};R.currentUrl=d;R.vis=M.vis!==void 0?M.vis:0;R.splay=!1;d=_.kS();R.autoCaptionsDefaultOn=d.getFlag(66);d.getFlag(141)?d.getFlag(140)?R.autonavState="STATE_OFF":R.autonavState="STATE_ON":R.autonavState="STATE_NONE";R.html5Preference="HTML5_PREF_WANTS";isNaN(_.rK("STS"))||(R.signatureTimestamp=_.rK("STS"));M.autonav&&(R.autoplay=!0,R.autonav=!0);M.mutedAutoplay&&(R.autoplay=!0,R.mutedAutoplay=!0);M.inlinePlayback&&(R.autoplay=!0,R.autonav=!1,R.isInlineUnmutedPlayback=!!M.inlineUnmuted);
R.referer=N;R.lactMilliseconds=M.lact!==void 0?M.lact.toString():"-1";_.Q("enable_unknown_lact_fix_on_html5")&&R.lactMilliseconds==="-1"&&_.vh(new _.WJ("Unknown LACT is set in playbackContext.",{"lact in tempData":M.lact||"undefined",autonav:M.autonav||"undefined"}));M={};d.getFlag(194)&&(M.hasShownAmbientMode=!0);d.getFlag(192)&&(M.hasToggledOffAmbientMode=!0);_.oyi()&&(M.watchAmbientModeEnabled=!0);R.watchAmbientModeContext=M;return R};
rsS=function(M){var d={},N=M.pbis||0;N&&(d.playbackBeginsInSeconds=N);M.prefetch_reason&&M.prefetch_reason==="hc_pbis"&&(d.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return d};
_.KqZ=function(M){var d=new kB(_.rK("ONE_PICK_URL",""));d.urlParamMap_.set("hostId",M);(M=_.rK("GAPI_LOCALE"))&&d.urlParamMap_.set("hl",M);(M=_.rK("SESSION_INDEX"))&&d.urlParamMap_.set("authuser",M);(M=_.rK("DELEGATED_SESSION_ID"))&&d.urlParamMap_.set("groupId",M);return d};
Jsq=function(){var M=_.h(),d=M.resolve(_.Tu);M=M.resolve(_.D3);return new ys2(d,M)};
Sbv=function(M){if(window.IntersectionObserver)return new csZ(M,400);throw new TypeError("Xf");};
bVp=function(){var M=Hammer.TouchAction,d=M.prototype.preventDefaults;M.prototype.preventDefaults=function(N){var R=this.actions.indexOf("pan-down")>-1;if(!R)return d.call(this,N);if(!zAi){var X=N.srcEvent;N=N.direction;var A;if((A=this.manager)==null?0:A.session.prevented)X.preventDefault();else if(R&&N&Hammer.DIRECTION_DOWN)return this.preventSrc(X)}}};
eAj=function(M){if(!M||M.size===0)return Hammer.DIRECTION_ALL;if(M.size===2){if(M.has("up")&&M.has("down"))return Hammer.DIRECTION_VERTICAL;if(M.has("right")&&M.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(M.size===1){if(M.has("up"))return Hammer.DIRECTION_UP;if(M.has("down"))return Hammer.DIRECTION_DOWN;if(M.has("right"))return Hammer.DIRECTION_RIGHT;if(M.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.nyS=function(){return HV2?Promise.resolve(HV2):new Promise(function(M,d){var N=self.indexedDB.open("swpushnotificationsdb");N.onerror=d;N.onsuccess=function(){var R=N.result;if(R.objectStoreNames.contains("swpushnotificationsstore"))HV2=R,M(HV2);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.nyS()};
N.onupgradeneeded=iVi})};
iVi=function(M){M=M.target.result;M.objectStoreNames.contains("swpushnotificationsstore")&&M.deleteObjectStore("swpushnotificationsstore");M.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
LqN=function(M){var d=fd6(),N;return _.B(function(R){switch(R.nextAddress){case 1:return _.Mv(R,2),_.D(R,M.match(d,{cacheName:"yt-appshell-assets"}),4);case 4:N=R.yieldResult;_.cJ(R,3);break;case 2:_.Fg(R);case 3:return R.return(N)}})};
fd6=function(){var M=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?t$6.registration.scope:GcN;M.endsWith("/")&&(M=M.slice(0,-1));return M+"/app_shell_home"};
adv=function(M){M.map(function(d){return d.source}).join("|")};
_.Uhq=function(M){return _.B(function(d){return d.return(LqN(M))})};
unr=function(){var M=window.caches,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.Uhq(M),2);d=N.yieldResult;return N.return(!!d)})};
d1i=function(){_.B(function(M){if(M.nextAddress==1){if(Cnp)return M.jumpTo(0);Cnp=!0;if(_.Q("enable_system_health_primes_monitoring"))return _.Rc(xh6,3E4),Ybi(),M.return();if(!(Math.random()<_.ZR("web_system_health_fraction")))return M.jumpTo(0);ZVL={heightPixels:screen.height,widthPixels:screen.width};gf&&!isNaN(gf.jsHeapSizeLimit)&&(ZVL.memoryTotalKbytes=String(Math.round(gf.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(ZVL.devicePixelRatio=window.devicePixelRatio);return _.D(M,Eyi(),4)}_.Rc(xh6,
3E4);return _.D(M,MQS(),0)})};
Eyi=function(){return _.B(function(M){if(M.nextAddress==1)return WN.intersectionObserverPresent="IntersectionObserver"in window,WN.serviceWorkerPresent="serviceWorker"in navigator,WN.webSharePresent="share"in navigator,WN.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,WN.cacheStoragePresent="caches"in window,WN.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,WN.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
WN.webkitTemporaryStoragePresent="webkitTemporaryStorage"in wf&&wf.webkitTemporaryStorage&&"queryUsageAndQuota"in wf.webkitTemporaryStorage,WN.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.D(M,ufZ(),2);WN.indexedDbPresent=M.yieldResult;WN.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;WN.broadcastChannelPresent="BroadcastChannel"in window;WN.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(WN.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,WN.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Vy(M)})};
xh6=function(){var M=9E4+Math.random()*2E3;_.aQ()>M||(_.Q("enable_system_health_primes_monitoring")?Ybi():MQS())};
MQS=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,Nhv(),2);M=d.yieldResult;_.hQ("systemHealthCaptured",M);_.Vy(d)})};
Ybi=function(){var M={metric:{}},d=Rmq();d.networkEvents.length&&(M.metric.networkEvents=Xk6(d));_.hQ("systemHealthCaptured",M)};
Nhv=function(){var M,d,N,R,X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:M={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};d=window.screen;_.Q("enable_is_extended_monitoring")&&d&&"isExtended"in d&&(M.isExtended=!!d.isExtended);N={metric:{staticContext:ZVL,dynamicContext:M,webMetric:F46,webApiSupport:WN}};
if(R=_.Ou())N.csn=R;gf&&(N.metric.webMetric.currentHeapKbytes=Math.round(gf.usedJSHeapSize/1E3));window.matchMedia&&(N.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,N.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,N.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in wf&&typeof wf.getBattery==="function")){w.jumpTo(2);break}return _.D(w,wf.getBattery(),3);case 3:if(X=
w.yieldResult)N.metric.dynamicContext.chargingStatus=X.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(N.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(WN.storageEstimatePresent)return _.D(w,navigator.storage.estimate(),8);if(!WN.webkitTemporaryStoragePresent){w.jumpTo(5);break}return _.D(w,ANN(),7);case 7:A=w.yieldResult;w.jumpTo(5);break;case 8:A=w.yieldResult;case 5:return N.metric.dynamicContext.deviceStorageQuotaMbytes=((l=A)==null?0:l.quota)?String(Math.round(A.quota/
1048576/10)*10):"-1",N.metric.dynamicContext.deviceStorageUsageMbytes=((k=A)==null?0:k.usage)?String(Math.round(A.usage/1048576/10)*10):"-1",T=N.metric.dynamicContext,_.D(w,unr(),9);case 9:return T.hasAppShell=w.yieldResult,W=Rmq(),W.networkEvents.length&&(N.metric.networkEvents=Xk6(W)),w.return(N)}})};
ANN=function(){return new Promise(function(M){var d;WN.webkitTemporaryStoragePresent&&(d=wf.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?wf.webkitTemporaryStorage.queryUsageAndQuota(function(N,R){M({usage:N,quota:R})}):M(void 0)})};
_.p3=function(M){M&=16777215;M=[(M&16711680)>>16,(M&65280)>>8,M&255];return VQj(M[0],M[1],M[2])};
_.ml=function(M){M=[(M&16711680)>>>16,(M&65280)>>>8,M&255,(M&4278190080)>>>24];var d=_.lhZ(M,function(N){return N==(N&255)});
M[3]=(M[3]/255).toFixed(3);if(!d)throw Error("Yf`"+M.join(","));return"rgba("+M.join(",")+")"};
_.$1N=function(M){return[(M&16711680)>>>16,(M&65280)>>>8,M&255]};
_.Bhi=function(M){M=M.map(function(d){d/=255;return d<=.03928?d/12.92:Math.pow((d+.05)/1.05,2.4)});
return M[0]*.2126+M[1]*.7152+M[2]*.0722};
h2=function(M,d){M=_.$1N(M);return"rgba("+M[0]+", "+M[1]+", "+M[2]+", "+d+")"};
_.k1L=function(){try{return!!self.localStorage}catch(M){return!1}};
W4r=function(){if(ThL())_.vh(Error("Zf"));else{var M=document.createElement("iframe");M.style.display="none";var d=d===void 0?window.location.href:d;var N=_.vf(_.rK("PERSIST_IDENTITY_IFRAME_URL"));d=N?N:(new URL(d)).host.indexOf("studio")===0?_.u6(D1Z,"persist_identity"):_.u6(g0i,"persist_identity");_.h62(M,1,d);M.id="persist_identity";var R;(R=document.body)==null||R.appendChild(M)}};
ThL=function(){var M=wkZ;M||(M=document.querySelector("#persist_identity"));return M};
pki=function(){var M=!1;try{M=!!window.sessionStorage.getItem("session_logininfo")}catch(d){M=!0}return(_.rK("INNERTUBE_CLIENT_NAME")==="WEB"||_.rK("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&M};
m1r=function(M,d){if(!pki())return!1;d||(d=_.rK("LOGIN_INFO"));return d?(M.session_logininfo=d,!0):!1};
Qk6=function(M,d){M=M===void 0?!1:M;if((d===void 0||!d)&&hmA!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.KF("LOG_STICKINESS",!1)){d=_.Ou();var N=_.vl(),R={identityStickinessData:{initialState:hmA}};d&&N&&_.nb(d,N,R)}if(d=ThL())if(N=d.src?(new URL(d.src)).origin:"*",M){var X;(X=d.contentWindow)==null||X.postMessage({action:"clear"},N)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(M=window.sessionStorage.getItem("session_logininfo"))){var A;(A=d.contentWindow)==null||A.postMessage({loginInfo:M},N)}};
_.Qp=function(M){M=M===void 0?!0:M;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.oJ("LOGIN_INFO",""),M&&window.sessionStorage.setItem("from_switch_account","1"),Qk6(!0,M)}catch(d){}};
qpN=function(M){M&&(M.startsWith("https://accounts.google.com/AddSession")?_.Qp():M.startsWith("https://accounts.google.com/ServiceLogin")?_.Qp():M.startsWith("https://myaccount.google.com")&&_.Kk(M).getPath().endsWith("/youtubeoptions")&&_.Qp())};
qX=function(M,d){qpN(M);if(_.KF("LOGGED_IN",!0)&&pki()){var N=m2p(M);N==null&&(N={});m1r(N,d)&&_.tX(M,N)}};
IhA=function(){function M(d){for(d=d.target;d&&d.nodeName!=="A";)if(d=d.parentNode,!(d&&d instanceof HTMLElement))return;if(d&&!d.hasAttribute("download")&&d.getAttribute("rel")!=="external"&&d.href)return d.href}
document.addEventListener("mousedown",function(d){d.button!==0&&(d=M(d))&&qX(d)});
document.addEventListener("click",function(d){(d=M(d))&&qX(d)})};
jki=function(){var M=new v0v;try{if(_.KF("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(k){M.increment(5,!1);return}if(_.rK("LOGIN_INFO")){var d=OfZ?OfZ:window.location;_.rK("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&W4r();var N=m2p(d.href);N==null&&(N={});var R=N.session_logininfo,X=Number(window.sessionStorage.getItem("stickiness_reload")),A=R===_.rK("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
X>=2||A)X>=2?M.increment(2,A):A?M.increment(7,A):window.sessionStorage.getItem("session_logininfo")||(M.increment(3,A),hmA="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.rK("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.rK("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))M.increment(4,A),window.sessionStorage.removeItem("stickiness_reload");
else if(X<2){window.sessionStorage.setItem("stickiness_reload",String(X+1));var l=d.href;l=_.GD(l,"sttick");qX(l,window.sessionStorage.getItem("session_logininfo"));l=_.fF(l,{sttick:X});M.increment(X,A);_.nS(d,l)}}else M.increment(6,!1)}else _.Qp(!1)}catch(k){}};
_.Ij=function(M,d,N,R,X){d=d===void 0?{}:d;N=N===void 0?"":N;R=R===void 0?window:R;M=_.LF(M,d);qX(M);N=_.gH(M+N,X);_.nS(R.location,N)};
skS=function(M){if(M.urlEndpoint){if(M=_.is(M.urlEndpoint.url),M.adurl)return us(M.adurl)}else if(M.watchEndpoint)return"//www.youtube.com/watch?v="+M.watchEndpoint.videoId;return null};
P$N=function(M){if(!M||!M.reportingPings)return null;var d={};M.reportingPings.forEach(function(N){N.pingType in d?d[N.pingType].push(N.url):d[N.pingType]=[N.url]});
return{adpings:qXA(d)}};
_.OO=function(M){M=M===void 0?!1:M;var d=_.kS(),N="USER_INTERFACE_THEME_LIGHT";d.getFlag(165)?N="USER_INTERFACE_THEME_DARK":d.getFlag(174)?N="USER_INTERFACE_THEME_LIGHT":_.vN()&&(N="USER_INTERFACE_THEME_DARK");return M?N:o0L()||N};
_.rN2=function(){return!_.Q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.vN=function(){return _.rN2()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.j2=function(){var M=_.kS();return _.rN2()&&!M.getFlag(165)&&!M.getFlag(174)};
o0L=function(){var M=M===void 0?window.location.href:M;if(_.Q("kevlar_disable_theme_param"))return null;var d=_.FO(M);if(_.K4L(d))return"USER_INTERFACE_THEME_DARK";try{var N=_.is(M).theme;return yNr.get(N)||null}catch(R){}return null};
_.K4L=function(M){return _.Q("enable_dark_theme_only_on_shorts")?!(M==null||!M.startsWith("/shorts/")):!1};
_.Spq=function(M,d,N,R,X){d=d===void 0?!1:d;N=N===void 0?!1:N;var A=_.rK("INNERTUBE_CONTEXT");if(!A)return _.qZ(Error("cg")),{};A=(0,_.wF.unsafeClone)(A);_.Q("web_no_tracking_params_in_shell_killswitch")||delete A.clickTracking;A.client||(A.client={});var l=A.client;l.clientName==="MWEB"&&l.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(l.clientFormFactor=_.rK("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");l.screenWidthPoints=window.innerWidth;l.screenHeightPoints=window.innerHeight;l.screenPixelDensity=
Math.round(window.devicePixelRatio||1);l.screenDensityFloat=window.devicePixelRatio||1;l.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());l.userInterfaceTheme=_.OO();if(!d){var k=_.gP2();k&&(l.connectionType=k);_.Q("web_log_effective_connection_type")&&(k=wlZ())&&(A.client.effectiveConnectionType=k)}var T;if(_.Q("web_log_memory_total_kbytes")&&((T=_.Np.navigator)==null?0:T.deviceMemory)){var W;T=(W=_.Np.navigator)==null?void 0:W.deviceMemory;A.client.memoryTotalKbytes=""+T*1E6}d&&R&&!_.Q("web_it_context_set_original_url_ks")&&
(l.originalUrl=JN2(_.Np.location.href,R).toString());_.Q("web_gcf_hashes_innertube")&&(k=oSi())&&(W=k.coldConfigData,T=k.coldHashData,k=k.hotHashData,A.client.configInfo=A.client.configInfo||{},W&&(A.client.configInfo.coldConfigData=W),T&&(A.client.configInfo.coldHashData=T),k&&(A.client.configInfo.hotHashData=k));W=_.is(_.Np.location.href);!_.Q("web_populate_internal_geo_killswitch")&&W.internalcountrycode&&(l.internalGeo=W.internalcountrycode);!_.Q("web_populate_client_screen_killswitch")&&X&&(l.clientScreen=
X);l.clientName==="MWEB"||l.clientName==="WEB"?(l.mainAppWebInfo={graftUrl:R||_.Np.location.href},_.Q("kevlar_woffle")&&_.sO.instance&&(R=_.sO.instance,l.mainAppWebInfo.pwaInstallabilityStatus=!R.appInstalledEventFired&&R.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),l.mainAppWebInfo.webDisplayMode=QDA(),l.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):l.clientName==="TVHTML5"&&(!_.Q("web_lr_app_quality_killswitch")&&
(R=_.rK("LIVING_ROOM_APP_QUALITY"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{appQuality:R})),R=_.rK("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(l.tvAppInfo=Object.assign(l.tvAppInfo||{},{certificationScope:R}));!_.Q("web_populate_time_zone_itc_killswitch")&&(R=TB2())&&(l.timeZone=R);(R=caZ())?l.experimentsToken=R:delete l.experimentsToken;l=SXS();R=_.cN6();R=(0,_.wF.getValues)(R.tokenJars);A.request=Object.assign({},A.request,{internalExperimentFlags:l,consistencyTokenJars:R});!_.Q("web_prequest_context_killswitch")&&
(l=_.rK("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(A.request.externalPrequestContext=l);R=_.kS();l=R.getFlag(58);R=R.get("gsml","");A.user=Object.assign({},A.user);l&&(A.user.enableSafetyMode=l);R&&(A.user.lockedSafetyMode=!0);_.Q("warm_op_csn_cleanup")?N&&(d=_.Ou())&&(A.clientScreenNonce=d):!d&&(d=_.Ou())&&(A.clientScreenNonce=d);M&&(A.clickTracking={clickTrackingParams:M});if(M=_.cy("yt.mdx.remote.remoteClient_"))A.remoteClient=M;_.PN.getInstance().setLocationOnInnerTubeContext(A);try{var w=Gar(),
p=w.bid;delete w.bid;A.adSignalsInfo={params:[],bid:p};for(var m=_.V(Object.entries(w)),I=m.next();!I.done;I=m.next()){var O=_.V(I.value),y=O.next().value,c=O.next().value;w=y;p=c;M=void 0;(M=A.adSignalsInfo.params)==null||M.push({key:w,value:""+p})}var e,t;if(((e=A.client)==null?void 0:e.clientName)==="TVHTML5"||((t=A.client)==null?void 0:t.clientName)==="TVHTML5_UNPLUGGED"){var C=_.rK("INNERTUBE_CONTEXT");C.adSignalsInfo&&(A.adSignalsInfo.advertisingId=C.adSignalsInfo.advertisingId,A.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",A.adSignalsInfo.limitAdTracking=C.adSignalsInfo.limitAdTracking)}}catch(U){_.qZ(U)}return A};
_.oj=function(){return{isShellLoad:_.KF("IS_SHELL_LOAD",!1)}};
bf2=function(){navigator.serviceWorker.getRegistrations().then(function(M){M.forEach(zmZ)})};
zmZ=function(M){M&&_.emA(Hf2,M.scope)};
_.emA=function(M,d){d={scope:d||_.El("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.XC(M),d)};
rf=function(M,d,N,R){if(d&&d.serializedYpcCujLoggingParams){if(N){var X={};X.transactionErrorType=N;R&&(X.errorMessage=R);d.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:X}}}N={};N.ypcCujContext=d;M=_.df("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",M,N);_.NX(_.Rj(),M,"FLOW_TYPE_YPC_ACQUISITION")}};
_.n02=function(M,d,N,R){var X={};X.serializedTransactionFlowLoggingParams=d;N&&(X.errorType=N);R&&(X.errorMessage=R);_.hQ(M,X);_.Qc()};
_.ifN=function(M){M&&_.n02("transactionFlowStarted",M)};
_.fhj=function(M){M&&_.n02("transactionFlowCancelled",M)};
_.K3=function(M,d,N){d&&_.n02("transactionFlowFailed",d,M,N)};
_.yp=function(){this.megabloxUrl_=null};
_.J2=function(M){try{var d=L4j==null?void 0:L4j.composedPath(M)}catch(N){d=M.composedPath?M.composedPath():[]}return d&&d.length>0?d:M.composedPath?M.composedPath():[]};
_.cN=function(M){return _.J2(M)[0]};
_.S2=function(M){if(!(M instanceof Element))return null;M=M.classList?Array.from(M.classList):void 0;if(!M)return null;var d=M.indexOf("style-scope");return d>-1&&d+1<M.length?M[d+1]:null};
zu=function(M){if(!(M instanceof HTMLElement))return null;var d=M&&(M.$$||M.polymerController)?M.tagName.toLowerCase():null;return d?d:_.S2(M)};
tQL=function(M,d){return M.replace(/[^a-z]*[^\s]+/g,function(N){return N+".style-scope."+d})};
G1A=function(M,d){return d?M.split(",").map(function(N){return tQL(N.trim(),d)}).join(", "):M};
_.bx=function(M){var d,N,R,X;return(X=(R=(N=(d=M.root)!=null?d:M.shadowRoot)!=null?N:M.__shady_native_shadowRoot)!=null?R:M.__shady_shadowRoot)!=null?X:M};
e2=function(M){return M instanceof ShadowRoot?ShadowRoot:M instanceof DocumentFragment?DocumentFragment:M instanceof Document?Document:HTMLElement};
ahi=function(M){var d,N,R;return(R=(N=(d=M.parentElement)!=null?d:M.__shady_native_parentElement)!=null?N:M.__shady_parentElement)!=null?R:null};
U1p=function(M){var d,N,R;return(R=(N=(d=M.parentNode)!=null?d:M.__shady_native_parentNode)!=null?N:M.__shady_parentNode)!=null?R:null};
uBL=function(M){var d,N,R;return(R=(N=(d=M.__shady_parentNode)!=null?d:M.__shady_native_parentNode)!=null?N:M.parentNode)!=null?R:null};
C$S=function(M){var d,N;return(N=(d=U1p(M))!=null?d:M.host)!=null?N:null};
x1r=function(M){var d,N,R;return(R=(N=(d=M.nextSibling)!=null?d:M.__shady_native_nextSibling)!=null?N:M.__shady_nextSibling)!=null?R:null};
YpS=function(M){var d,N,R;return(R=(N=(d=M.previousSibling)!=null?d:M.__shady_native_previousSibling)!=null?N:M.__shady_previousSibling)!=null?R:null};
ZfS=function(M){var d,N,R;return(R=(N=(d=M.nextElementSibling)!=null?d:M.__shady_native_nextElementSibling)!=null?N:M.__shady_nextElementSibling)!=null?R:null};
E0i=function(M){var d,N,R;return(R=(N=(d=M.previousElementSibling)!=null?d:M.__shady_native_previousElementSibling)!=null?N:M.__shady_previousElementSibling)!=null?R:null};
MYZ=function(M){var d,N,R;return new Set([].concat(_.wu((d=M.children)!=null?d:[]),_.wu((N=M.__shady_native_children)!=null?N:[]),_.wu((R=M.__shady_children)!=null?R:[])))};
dfi=function(M){var d,N,R;return new Set([].concat(_.wu((d=M.childNodes)!=null?d:[]),_.wu((N=M.__shady_native_childNodes)!=null?N:[]),_.wu((R=M.__shady_childNodes)!=null?R:[])))};
N16=function(M){if(!M)return null;var d=_.S2(M);if(!d){var N;return(N=Node.prototype.getRootNode)==null?void 0:N.call(M)}d=d.toUpperCase();for(M=ahi(M);M&&M.tagName!==d;)M=ahi(M);return M?_.bx(M):null};
RTi=function(M){for(;M&&!(M instanceof HTMLElement);)M=C$S(M);return M};
XcZ=function(M){var d=RTi(M);return M===d?_.S2(M):d?zu(d):null};
FfN=function(M){return(M=RTi(M))?zu(M):null};
Ahq=function(M){if(M instanceof Comment)return!1;if(M instanceof Text){var d,N;if(((N=(d=M.textContent)==null?void 0:d.trim())!=null?N:"")==="")return!1}return!0};
HN=function(M,d,N){var R=d(M);for(N=N===void 0?FfN(M):N;R&&(XcZ(R)!==N||!Ahq(R));)M=R,R=d(M);return R};
VY2=function(M,d,N){if(!d)return null;M=FfN(M);return XcZ(d)===M&&Ahq(d)?d:HN(d,N,M)};
llZ=function(M){return HN(M,uBL,_.S2(M))};
$fL=function(M){return HN(M,ZfS)};
B1i=function(M){return HN(M,x1r)};
k4i=function(M){return HN(M,E0i)};
T1j=function(M){return HN(M,YpS)};
DfA=function(M){return VY2(M,M.firstChild||M.__shady_native_firstChild||M.__shady_firstChild||null,x1r)};
g2q=function(M){var d,N,R;var X=(R=(N=(d=M.firstElementChild)!=null?d:M.__shady_native_firstElementChild)!=null?N:M.__shady_firstElementChild)!=null?R:null;return VY2(M,X,ZfS)};
WfA=function(M){var d,N,R;var X=(R=(N=(d=M.lastChild)!=null?d:M.__shady_native_lastChild)!=null?N:M.__shady_lastChild)!=null?R:null;return VY2(M,X,YpS)};
wcN=function(M){var d,N,R;var X=(R=(N=(d=M.lastElementChild)!=null?d:M.__shady_native_lastElementChild)!=null?N:M.__shady_lastElementChild)!=null?R:null;return VY2(M,X,E0i)};
pcZ=function(M){var d=FfN(M);return Array.from(dfi(M)).filter(function(N){return XcZ(N)===d})};
mfA=function(M){var d=zu(M);return Array.from(MYZ(M)).filter(function(N){return _.S2(N)===d})};
_.n3=function(M,d,N){if(M instanceof HTMLElement&&_.S2(M)===N){var R=Array.from(M.classList).indexOf("style-scope");if(R===-1)M.classList.add("style-scope"),M.classList.add(d);else if(!(R+1>=M.classList.length)){R=M.classList[R+1];var X,A;M==null||(X=M.classList)==null||(A=X.replace)==null||A.call(X,R,d)}}if(M instanceof HTMLElement||M instanceof DocumentFragment)for(X=_.V(MYZ(M)),A=X.next();!A.done;A=X.next())_.n3(A.value,d,N);return M};
ix=function(M,d){if(M instanceof HTMLElement&&_.S2(M)===d){var N=Array.from(M.classList).indexOf("style-scope");N===-1||N+1>=M.classList.length||M.classList.remove("style-scope",M.classList[N+1])}if(M instanceof HTMLElement||M instanceof DocumentFragment){N=_.V(M.children);for(var R=N.next();!R.done;R=N.next())ix(R.value,d)}return M};
_.hTA=function(M,d){return e2(M).prototype.appendChild.call(M,d)};
QmZ=function(M,d){if(M===d)return!0;M=dfi(M);return Array.from(M).some(function(N){return QmZ(N,d)})};
_.K=function(M,d){if(M instanceof f3)return M;(d==null?0:d.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(M,"ownerDocument")&&Object.defineProperty(M,"ownerDocument",{get:function(){return window.document}});
return new f3(M)};
Ilq=function(){var M=f3.prototype,d=[].concat(_.wu(qfA?[]:["getRootNode"]),["setAttribute","removeAttribute"]);d=_.V(d);for(var N=d.next(),R={};!N.done;R={method$jscomp$49:void 0},N=d.next())R.method$jscomp$49=N.value,M[R.method$jscomp$49]=function(X){return function(){return this.host[X.method$jscomp$49].apply(this.host,arguments)}}(R)};
OWZ=function(){var M=f3.prototype,d=[].concat(_.wu(qfA?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.wu(v2N?[]:["querySelector","querySelectorAll"]));d=_.V(d);for(var N=d.next(),R={};!N.done;R={method$jscomp$50:void 0},N=d.next())R.method$jscomp$50=N.value,M[R.method$jscomp$50]=function(X){return function(){return this.root[X.method$jscomp$50].apply(this.root,arguments)}}(R)};
P12=function(){var M=f3.prototype,d=[].concat(_.wu(jmi?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.wu(sm2?[]:["parentNode"]));d=_.V(d);for(var N=d.next(),R={};!N.done;R={prop$jscomp$62:void 0},N=d.next())R.prop$jscomp$62=N.value,Object.defineProperty(M,R.prop$jscomp$62,{get:function(X){return function(){return this.host[X.prop$jscomp$62]}}(R),
configurable:!0})};
KfZ=function(){var M=f3.prototype,d=["activeElement"].concat(_.wu(jmi?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.wu(o2q?[]:["children"]),_.wu(rhZ?[]:["lastChild"]));d=_.V(d);for(var N=d.next(),R={};!N.done;R={prop$jscomp$63:void 0},N=d.next())R.prop$jscomp$63=N.value,Object.defineProperty(M,R.prop$jscomp$63,{get:function(X){return function(){return this.root[X.prop$jscomp$63]}}(R),
configurable:!0})};
yhL=function(){for(var M=f3.prototype,d=_.V(["innerHTML","textContent"]),N=d.next(),R={};!N.done;R={prop$jscomp$64:void 0},N=d.next())R.prop$jscomp$64=N.value,Object.defineProperty(M,R.prop$jscomp$64,{get:function(X){return function(){return this.root[X.prop$jscomp$64]}}(R),
set:function(X){return function(A){this.root[X.prop$jscomp$64]=A}}(R),
configurable:!0})};
JhZ=function(M){var d=f3.prototype;M=_.V(Object.entries(M));for(var N=M.next(),R={};!N.done;R={fn$jscomp$359:void 0},N=M.next()){var X=_.V(N.value);N=X.next().value;X=X.next().value;R.fn$jscomp$359=X;d[N]=function(A){return function(){return A.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.wu(arguments)))}}(R)}};
Sfq=function(){for(var M=f3.prototype,d=_.V(Object.entries(chL)),N=d.next(),R={};!N.done;R={fn$jscomp$360:void 0},N=d.next()){var X=_.V(N.value);N=X.next().value;X=X.next().value;R.fn$jscomp$360=X;Object.defineProperty(M,N,{get:function(A){return function(){return A.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.wu(arguments)))}}(R),
configurable:!0})}};
_.L3=function(M){return M instanceof zTq||M instanceof Document?M:new zTq(M)};
bWj=function(){for(var M=zTq.prototype,d=_.V("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),N=d.next(),R={};!N.done;R={method$jscomp$51:void 0},N=d.next())R.method$jscomp$51=N.value,M[R.method$jscomp$51]=function(X){return function(){return HTMLElement.prototype[X.method$jscomp$51].call.apply(HTMLElement.prototype[X.method$jscomp$51],[this.node].concat(_.wu(arguments)))}}(R)};
eTi=function(){for(var M=zTq.prototype,d=_.V("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),N=d.next(),R={};!N.done;R={prop$jscomp$65:void 0},N=d.next())R.prop$jscomp$65=N.value,Object.defineProperty(M,R.prop$jscomp$65,{get:function(X){return function(){var A;return(A=this.node["__shady_native_"+X.prop$jscomp$65])!=null?A:this.node[X.prop$jscomp$65]}}(R),
configurable:!0})};
_.t2=function(M,d,N){N===void 0&&(N=!M.classList.contains(d));N?M.classList.add(d):M.classList.remove(d)};
_.Gu=function(M,d,N){N===void 0&&(N=!M.hasAttribute(d));if(d==="class")throw Error("gg");N?_.L3(M).setAttribute(d,""):_.L3(M).removeAttribute(d)};
HWZ=function(M){return(M.localName!=="slot"?[]:(0,_.aj)(M).assignedNodes({flatten:!0})).filter(function(d){return d.nodeType===Node.ELEMENT_NODE})};
_.n2S=function(M){return(M=_.K(M).querySelector("slot"))&&M.localName==="slot"?HWZ(M):[]};
_.UO=function(M,d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(M,d)};
iWA=function(M,d){var N=d.bind(M);return function(R){N(R,R.detail)}};
_.ux=function(M,d){var N=flq.get(M);N||(N=new WeakMap,flq.set(M,N));if(N.has(d))return N.get(d);if(_.Q("web_fi_listen_disable_bound_fn_helper")){var R=d.bind(M);M=function(X){R(X,X==null?void 0:X.detail)}}else M=iWA(M,d);
N.set(d,M);return M};
G4A=function(M,d){Lf2(M);M.created[tYL].push(d)};
Lf2=function(M){if(!M.created||!M.created[tYL]){var d=M.created,N=d?[d]:[];M.created=function(){for(var R=_.V(N),X=R.next();!X.done;X=R.next())X.value.apply(this)};
M.created[tYL]=N}};
al2=function(M){return function(){var d=_.wH.apply(0,arguments);return function(N,R,X){M.apply(null,_.wu(d))(N,R,X)}}};
Ufj=function(){return function(){var M=_.wH.apply(0,arguments);return function(d,N,R){zXi.apply(null,_.wu(M))(d,N,R)}}};
_.S=function(M){return Ufj()(M)};
_.z=function(){return al2(n_q).apply(null,_.wu(_.wH.apply(0,arguments)))};
_.C3=function(M){return _.Q("pbcm_fi_listen_decorators")?u1Z(M):al2(eXj)(M)};
u1Z=function(M){return function(d,N){G4A(d,function(){var R=this[N],X=_.Q("web_fi_listen_disable_bound_fn_helper")?function(A){R(A,A.detail)}.bind(this):iWA(this,R);
C1j.has(M)?ha(this.hostElement,M,X):this.hostElement.addEventListener(M,X)})}};
_.xB=function(){return al2(Htr).apply(null,_.wu(_.wH.apply(0,arguments)))};
_.H=function(M){M=M===void 0?{}:M;return al2(btA)(M)};
_.YB=function(M){if(M.hostElement&&M!==M.hostElement){var d=_.Wl(M.hostElement);d=M.renderIdom?d:d.shadowRoot}d||(M=M.root,d=M instanceof Node?_.Wl(M):null);return d};
_.Z3=function(M){return xfA?YfL(M):function(d,N){Object.defineProperty(d,N,{get:function(){var R;return(R=_.YB(this))==null?void 0:R.querySelector(M)},
enumerable:!0,configurable:!0})}};
YfL=function(M){return function(d,N){Object.defineProperty(d,N,{get:function(){var R,X=(R=_.K(this.hostElement))==null?void 0:R.querySelector(M);if(X)return X;var A;R=(A=this.is)!=null?A:"yt-undefined-target";ZWA!=null||(ZWA=Date.now());(KL(R)+ZWA)%100>_.ZR("pbcm_fi_query_decorators_fallback_logging_pct")||(E2r!=null||(E2r=new MqZ),dMZ.has(R)||(dMZ.add(R),E2r.increment(R)));var l;return(l=_.YB(this))==null?void 0:l.querySelector(M)},
enumerable:!0,configurable:!0})}};
_.EO=function(M){return xfA?NVv(M):function(d,N){Object.defineProperty(d,N,{get:function(){var R;return(R=_.YB(this))==null?void 0:R.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
NVv=function(M){return function(d,N){Object.defineProperty(d,N,{get:function(){var R,X=(R=_.K(this.hostElement))==null?void 0:R.querySelectorAll(M);if(X==null?0:X.length)return X;var A;return(A=_.YB(this))==null?void 0:A.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
RUL=function(M){return function(d){if(![_.nH,_.n].includes(Object.getPrototypeOf(d.prototype).constructor))throw Error("hg");P52(Object.assign({},typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(d)}};
_.d4=function(){var M=M===void 0?{}:M;return function(d){if(![iM,_.MS].includes(Object.getPrototypeOf(d.prototype).constructor))throw Error("ig");o_i(Object.assign({},M,{disableInheritanceCheck:!0}))(d)}};
Fg6=function(M,d){XIj[M]!=null||(XIj[M]=new Set);XIj[M].add(d)};
_.NS=function(){var M=_.xB.apply(null,_.wu(_.wH.apply(0,arguments)));return function(d,N){Fg6(d.is,N);M(d,N)}};
VE=function(M,d,N){if(RT(M)&&!AzA.has(d)){d=d.replace(/^JSC\$[\d]+_/,"");d=d.replace(/\.\d+(\.|$)/g,function(A,l){return".#"+l});
XZ[M]!=null||(XZ[M]={});var R,X;(R=XZ[M])[X=d]!=null||(R[X]=new Set);XZ[M][d].has(N)||(XZ[M][d].add(N),_.hQ("polymerPropertyAccessEvent",{componentName:M,propertyName:d,accessType:N}))}};
VqZ=function(){return _.Q("polymer_property_access_logging_debug")||_.Q("polymer_enable_property_access_logging")};
RT=function(M){if(_.Q("polymer_property_access_logging_debug"))return!0;if(!_.Q("polymer_enable_property_access_logging"))return!1;lg6||(lg6=Date.now());return(KL(M)+lg6)%100<_.ZR("polymer_property_access_logging_percent")};
$M6=function(M,d){return RT(d)&&M.hostElement.loggingStatus?new Proxy(M,{get:function(N,R,X){if(N.hostElement.loggingStatus.bypassProxyController)return N[R];N.hostElement.loggingStatus.isExternalGet=!0;var A=N[R];N.hostElement.loggingStatus.isExternalGet=!1;if(A instanceof Function)return function(){var l=_.wH.apply(0,arguments);try{return N.hostElement.loggingStatus.currentExternalCall=R,VE(d,R,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),A.apply(this===X?N:this,l)}finally{N.hostElement.loggingStatus.currentExternalCall=
void 0}};
VE(d,R,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return A},
set:function(N,R,X){if(N.hostElement.loggingStatus.bypassProxyController)return N[R]=X,!0;N.hostElement.loggingStatus.isRendererStamper?VE(d,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):N.hostElement.loggingStatus.isDeclarativeExternal||VE(d,R,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{N.hostElement.loggingStatus.currentExternalSet=R,N[R]=X}finally{N.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):M};
BVr=function(M,d){M&&M.loggingStatus&&!M.loggingStatus.isDeclarativeExternal&&!M.loggingStatus.isExternalGet&&M.loggingStatus.currentExternalSet!==d&&VE(M.tagName.toLowerCase(),d,"PROPERTY_ACCESS_GET_INTERNAL")};
lu=function(M,d,N){M&&(N||M.loggingStatus&&!M.loggingStatus.isInitializing&&!M.loggingStatus.isDefiningPropertyAccessor&&M.loggingStatus.currentExternalSet!==d)&&VE(M.tagName.toLowerCase(),d,"PROPERTY_ACCESS_SET_INTERNAL")};
kSq=function(){return{_definePropertyAccessor:function(M,d){var N=this,R=N.hostElement.loggingStatus;R&&(R.isDefiningPropertyAccessor=!0);var X=N[M];X!==void 0&&(N.__data?N._setPendingProperty(M,X):(N.__dataProto!=null||(N.__dataProto={}),N.__dataProto[M]=X));R&&(R.isDefiningPropertyAccessor=!1);Object.defineProperty(this,M,{get:function(){BVr(N.hostElement,M);return this.__data[M]},
set:function(A){d||this._setPendingProperty(M,A,!0)&&this._invalidateProperties()}})},
created:function(){var M=this._setPendingProperty.bind(this);this._setPendingProperty=function(d,N,R){lu(this.hostElement,d);return M.apply(this,[d,N,R])}}}};
TVi=function(M){VqZ()&&_.S($Q.prototype)(M.prototype,"__templateBindingLoggingBehavior")};
DMZ=function(M,d){if(d.resolvedFactories.length!==M.resolvedFactories.length)return!0;d=_.V(d.resolvedFactories.entries());for(var N=d.next();!N.done;N=d.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(R.providerClass){if(R.providerClass!==M.resolvedFactories[N].providerClass)return!0}else if(R.providerValue){if(R.providerValue!==M.resolvedFactories[N].providerValue)return!0}else if(R.factory!==M.resolvedFactories[N].factory)return!0}return!1};
gli=function(M,d){M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N.constructor===Array)gli(N,d);else{var R=d;R.has(N)||(N.inject&&R.add(N),N.behaviors&&gli(N.behaviors,R))}};
Bu=function(M,d){var N=M[d];M[d]=function(){var R=_.wH.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(N)return N.apply(this,R)}};
mML=function(){_.kQ.Class=function(N,R){N=Wgi(N,R);Bu(N.prototype,"created");return N};
Bu(T3.prototype,"_initializeProperties");Bu(_.Dc.prototype,"_initializeProperties");if(wIv)Bu(pIi,"created");else{var M=function(){Bu(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))M();else{var d=customElements.define;customElements.define=function(N,R,X){d.call(customElements,N,R,X);N==="tp-yt-iron-list"&&(M(),customElements.define=d)}}}};
Qri=function(M,d){M.prototype.behaviors=M.prototype.behaviors||[];M.prototype.behaviors.unshift(hUp.InjectBehavior);M.prototype.provide=d};
_.w4=function(M){return function(d){if(!M.disableElementRegistration){M.noInjection||Qri(d,M.providers);var N=d.prototype;N.__templateHelpers||zXi(g4.prototype)(N,"__templateHelpers");N=M.is;qyq||(qyq=Date.now());(KL(N)+qyq)%100<_.ZR("polymer_log_prop_change_observer_percent")&&zXi(Wu.prototype)(d.prototype,"__propertyObserverObserver");d.prototype.behaviors=d.prototype.behaviors||[];d.prototype.behaviors.unshift(_.Igv.YtHostElementBehavior);TVi(d);RUL({is:M.is,notifyObserversOnUndefined:M.notifyObserversOnUndefined!==
!1,fastInit:M.fastInit,template:M.template,disableEnforceFastDefaultValuesCheck:!0})(d)}}};
_.f=function(M){return _.w4({is:M.is,template:M.template,disableElementRegistration:M.disableElementRegistration,cssBuildOptOut:M.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
jri=function(M,d){if(vlZ){M=new M;for(var N=_.V(Object.getOwnPropertyNames(M)),R=N.next();!R.done;R=N.next())R=R.value,d[R]=M[R];for(N=d;N&&N!==Object.prototype;N=Object.getPrototypeOf(N)){R=_.V(Object.getOwnPropertyNames(N));for(var X=R.next();!X.done;X=R.next())X=X.value,M.hasOwnProperty(X)||Object.defineProperty(M,X,ONr(d,X))}}else M.apply(d)};
ONr=function(M,d){return{get:function(){var N=M[d];return N instanceof Function?N.bind(M):N},
set:function(N){M[d]=N}}};
PKi=function(M,d){for(var N=M._noAccessors,R=_.V(Object.getOwnPropertyNames(M)),X=R.next();!X.done;X=R.next())if(X=X.value,!sri.has(X))if(N)d[X]=M[X];else{var A=Object.getOwnPropertyDescriptor(M,X);A&&(A.configurable=!0,Object.defineProperty(d,X,A))}};
olS=function(M,d,N){return function(R){if(N){var X=N();R.model=X}if(M[d])M[d](R,R.detail)}};
p6=function(M){var d=[];if(typeof M==="string")M.length>0&&d.push.apply(d,_.wu(M.split(".")));else{M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,typeof N==="string"?d.push.apply(d,_.wu(N.split("."))):d.push(N)}return d};
rzS=function(M,d){if(d[d.length-1]!=="*"&&d[d.length-1]!=="splices"){for(var N=0;N<d.length;N++){if(!M)return;M=M[d[N]]}return M}};
Kg2=function(M,d){if(M.length>d.length)return!1;for(var N=0;N<M.length;N++)if(M[N]!==d[N])return!1;return!0};
JzN=function(M,d,N){if(d.type==="compute"){var R=d.getter.bind(N);var X=d.args}else R=function(){return N[d.method.methodName].apply(N,_.wu(_.wH.apply(0,arguments)))},X=d.method.args;
yz6(M,d.propertyKey,R,X,d.value)};
SyZ=function(M,d){if(d.readOnly){var N=Object.getOwnPropertyDescriptor(M.model,d.propertyKey);Object.defineProperty(M.model,d.propertyKey,{get:N.get,set:function(){}});
M.model[cz2(d.propertyKey)]=N.set}};
zUi=function(M,d,N){if(N){var R=d.propertyKey,X=d.selector;d=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.wu(d.selectorArgs.map(function(A){return{type:"path",path:A}})));
yz6(M,R,function(A){var l=_.wH.apply(1,arguments);return X.apply(null,[N.getState()].concat(_.wu(l)))},d)}};
eUr=function(M,d,N){var R=_.Xf(d.propertyKey)+"-changed";bNr(M,function(X){var A={value:X.value,queueProperty:!0};X.path.split(".").length>1&&(A.path=X.path);N.dispatchEvent(new CustomEvent(R,{detail:A}))},[{type:"wildcard",
path:d.propertyKey}])};
HNj=function(M,d,N){bNr(M,function(){N[d.method.methodName].apply(N,_.wu(_.wH.apply(0,arguments)))},d.method.args)};
cz2=function(M){return"_set"+(M.charAt(0).toUpperCase()+M.slice(1))};
nlv=function(){var M,d=hl(function(N){M=N},!1);
return[M,d]};
GSS=function(M){M=M.trim().replace(iN2,",").replace(fgj,"$1");var d=M[0];d==="-"&&(d=M[1]);if(d>="0"&&d<="9")return{type:"literal",value:Number(M)};if(d==="'"||d==='"')return{type:"literal",value:M.slice(1,-1)};if(d=M.match(LgS)){d=d[1];var N=tqZ[d];if(N)return{type:N,path:M.slice(0,-(d.length+1))}}return{type:"path",path:M}};
CKr=function(M){var d=M.match(agi);if(d)return M={methodName:d[1],args:UMS},d[2].trim()&&(d=d[2].replace(urq,"&comma;").split(","),M.args=d.map(GSS)),M};
xMr=function(M,d,N){d=_.Xf(d);var R=lM;R&&(N=R(N,d,"attribute",M));m3(M,N,d)};
m3=function(M,d,N){d=Yyp(d);d===void 0?M.removeAttribute(N):M.setAttribute(N,d)};
Yyp=function(M){switch(typeof M){case "object":if(M instanceof Date)return M.toString();if(M){var d=window.trustedTypes?window.trustedTypes.isHTML(M)||window.trustedTypes.isScript(M)||window.trustedTypes.isScriptURL(M):void 0;if(d)return M;try{return JSON.stringify(M)}catch(N){_.vh(Error("Eg`"+M))}}break;case "boolean":return M?"":void 0;default:return M!==null&&M!==void 0?M.toString():void 0}};
ZNr=function(M){if(M===void 0)throw Error("Fg");return M};
RCr=function(M,d,N,R){var X=ElL(R);if(X.length){R=N;var A="property";M16.test(N)?A="attribute":N[N.length-1]==="$"&&(N=N.slice(0,-1),A="attribute");var l=d06(X);l&&A==="attribute"&&(N==="class"&&M.hasAttribute("class")&&(l+=" "+M.getAttribute(N)),m3(M,l,N));A==="attribute"&&R==="disable-upgrade$"&&M.setAttribute("disable-upgrade","");M.localName==="input"&&R==="value"&&M.setAttribute("value","");M.removeAttribute(R);A==="property"&&(N=_.Ff(N));d=ZNr(d);N$S(d,A,N,X);return!0}return N.slice(0,3)===
"on-"?(M.removeAttribute(N),(A=d).events!=null||(A.events=[]),d.events.push({name:N.slice(3),value:R}),!0):N==="id"?(d.id=R,!0):!1};
ElL=function(M){for(var d=[],N=0,R;(R=Xsp.exec(M))!==null;){R.index>N&&d.push({type:"literal",value:M.slice(N,R.index)});var X=R[1][0];N=!!R[2];R=R[3].trim();if(X==="{")throw Error("Gg");(X=CKr(R))?d.push({type:"method",negate:N,signature:X}):d.push({type:"path",negate:N,path:R});N=Xsp.lastIndex}N&&N<M.length&&(M=M.substring(N))&&d.push({type:"literal",value:M});return d};
d06=function(M){for(var d="",N=0;N<M.length;N++){var R=M[N];R.type==="literal"&&(d+=R.value)}return d};
N$S=function(M,d,N,R){M.bindings!=null||(M.bindings=[]);M.bindings.push({kind:d,target:N,parts:R})};
$06=function(M,d,N){var R=!1;if(M.localName==="template"){R=N;var X=d.stripWhitespace;X=FzZ(M,X===void 0?!1:X);var A=M.content.ownerDocument.createDocumentFragment();X.content=A;A.appendChild(M.content);R&&(R.templateInfo=X);R=!0}else M.localName==="slot"&&(d.hasInsertionPoint=!0);if(M.firstChild&&(X=N,M.localName!=="script"&&M.localName!=="style")){A=0;for(var l=M.firstChild;l;){var k=l;if(k.localName==="template"){var T=k.getAttribute("is");if((l=T==="dom-if")||T==="dom-repeat"){k.removeAttribute("is");
T=k.ownerDocument.createElement("ps-"+T);k.parentNode.replaceChild(T,k);T.appendChild(k);var W=Array.from(k.attributes);W=_.V(W);for(var w=W.next();!w.done;w=W.next())w=w.value,l?A1v.has(w.name)&&m3(T,w.value,w.name):V1r.has(w.name)?m3(T,w.value,w.name):loq.has(w.name),k.removeAttribute(w.name);l=T}else l=k}if(l.nodeType===Node.TEXT_NODE){k=void 0;T=M;for(W=l;((k=W.nextSibling)==null?void 0:k.nodeType)===Node.TEXT_NODE;)w=void 0,(w=W).textContent!=null||(w.textContent=""),W.nextSibling.textContent&&
(W.textContent+=W.nextSibling.textContent),T.removeChild(W.nextSibling);if(d.stripWhitespace&&l.textContent&&!l.textContent.trim()){M.removeChild(l);l=l.nextSibling;continue}}$06(l,d,{parentIndex:A,parentInfo:X});l.parentNode&&A++;l=l.nextSibling}}var p;if((p=M.hasAttributes)==null?0:p.call(M)){p=N=ZNr(N);X=!1;A=Array.from(M.attributes);A=_.V(A);for(k=A.next();!k.done;k=A.next())k=k.value,X=RCr(M,p,k.name,k.value)||X;R=X||R}M.nodeType===Node.TEXT_NODE&&(p=ElL(M.textContent),p.length&&(M.textContent=
d06(p)||" ",N=ZNr(N),N$S(N,"text","textContent",p),R=!0));N&&R&&(N.infoIndex=d.nodeInfoList.push(N)-1)};
FzZ=function(M,d){d={nodeInfoList:[],stripWhitespace:(d===void 0?!1:d)||M.hasAttribute("strip-whitespace")};$06(M.content,d);return d};
B$2=function(M){Object.assign(M,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
T$6=function(M,d,N){d.signalCache!=null||(d.signalCache={});var R=d.signalCache[N];if(!R){var X=N.split("."),A,l;R=_.Q("web_polysi_immutable_root_fix_killswitch")?!((A=M.options)==null?0:(l=A.immutableProps)==null?0:l.has(X[0])):!kjZ(M,X[0]);if(X.length>1&&R){var k=M.getPathMutationSignal(X);R=function(){var T=qF(M.owner,function(){return M.getWithPath([X[0]])}),W,w=(W=k())==null?void 0:W.value;
return{rootWasDefined:T!==void 0,value:w}}}else R=function(){var T=M.getWithPath(X);
return{rootWasDefined:T!==void 0,value:T}};
d.signalCache[N]=R}return R()};
g1v=function(M,d,N,R,X){d=d.parts.map(function(l,k){if(l.type==="literal"){N.partWasDefined!=null||(N.partWasDefined=[]);var T;(T=N.partWasDefined)[k]||(T[k]=l.value!==void 0);return l.value}var W;if(l.type==="method"){var w,p=(w=(W=N.partWasDefined)==null?void 0:W[k])!=null?w:!1;p||(p=l.signature.args.every(function(O){return O.type==="literal"}));
var m=!1,I=!0;W=l.signature.args.map(function(O){if(O.type==="literal")return O.value;if(O.type!=="path")throw Error("Hg`"+O.type);var y=T$6(M,N,O.path);O=y.value;y=y.rootWasDefined;m||(m=y);I&&(I=y);return O});
p||(p=X===1?I:m);N.partWasDefined!=null||(N.partWasDefined={});N.partWasDefined[k]=p;if(!p)return;W=(k=T$6(M,N,l.signature.methodName).value)&&typeof k==="function"?k.apply(R,W):void 0}else w=T$6(M,N,l.path),W=w.value,N.partWasDefined!=null||(N.partWasDefined={}),(p=N.partWasDefined)[k]||(p[k]=W!==void 0||w.rootWasDefined);l.negate&&(W=!W);return W});
if(d.length===1){var A;return((A=N.partWasDefined)==null?0:A[0])?d[0]:D0Z}return d.join("")};
Wz6=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M&&"canNotifyPath"in M};
wsL=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M};
psZ=function(M){return"polymerController"in M};
m0Z=function(M,d){d=""+p6(d)[0];if(Wz6(M))return M.canNotifyPath(d);if(psZ(M)&&Wz6(M.polymerController))return M.polymerController.canNotifyPath(d);if(wsL(M)){var N;return!((N=M.properties)==null||!N[d])}if(psZ(M)&&wsL(M.polymerController)){var R;return!((R=M.polymerController.properties)==null||!R[d])}return!1};
hC2=function(M,d,N){Wz6(M)||wsL(M)?M.notifyPath(d,N):psZ(M)&&(Wz6(M.polymerController)||wsL(M.polymerController))&&M.polymerController.notifyPath(d,N)};
qt6=function(M,d,N){if(N!==D0Z){M.kind==="attribute"||M.target!=="textContent"&&(M.target!=="value"||d.localName!=="input"&&d.localName!=="textarea")||(N=N===void 0?"":N);var R,X=(R=QZi.Polymer)==null?void 0:R.sanitizeDOMValue;X&&(N=X(N,M.target,M.kind,d));if(M.kind==="attribute"){M=M.target;if(M==="class"||M==="name"||M==="slot")d=(0,_.aj)(d);m3(d,N,M)}else if(M=M.target,N!==d[M]||typeof N==="object")d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!0,VE(d.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
d[M]=N,d.loggingStatus&&(d.loggingStatus.isDeclarativeExternal=!1)}};
Io6=function(M,d,N,R){var X=d.parts[0];if(d.parts.length!==1||X.type!=="path"||!m0Z(N,d.target))return!1;var A=_.V(X.path.split(".")),l=A.next().value,k=z5(A);if(!_.Q("web_polysi_immutable_root_fix_killswitch")&&kjZ(M,l))return!1;R.signalCache!=null||(R.signalCache={});A=R.signalCache[X.path];var T;A=(T=A)==null?void 0:T().value;if((A==null?void 0:A.path)!==void 0){R=p6(A.path);var W=p6(X.path);R=[d.target].concat(_.wu(R.slice(W.length-1)));hC2(N,R,X.negate?!A.value:A.value);return!0}var w=hy(M,l);
var p=w.getChangeRecordSignal(k),m=!1;A=function(){if(!m){var O=qF(M.owner,function(){return w.getWithPath([])});
m||(m=O!==void 0)}return{value:p(),rootWasDefined:m}};
R.signalCache[X.path]=A;R.partWasDefined!=null||(R.partWasDefined={});A=A();(W=R.partWasDefined)[0]||(W[0]=A.rootWasDefined);var I=qF(M.owner,function(){return w.getWithPath(k)});
R.partWasDefined[0]&&qF(M.owner,function(){return void qt6(d,N,X.negate?!I:I)});
return!0};
v1A=function(M,d,N,R,X,A){if(!Io6(M,d,N,R)){var l=g1v(M,d,R,X,A);qF(M.owner,function(){return void qt6(d,N,l)})}};
Odv=function(M,d,N,R,X,A){N=_.V(N);for(var l=N.next(),k={};!l.done;k={infoIndex:void 0},l=N.next()){l=l.value;var T=l.bindings;k.infoIndex=l.infoIndex;l=l.parentInfo;if(T){T=_.V(T);for(var W=T.next(),w={};!W.done;w={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},W=T.next()){w.b$jscomp$254=W.value;if(k.infoIndex===void 0)throw Error("Ig");w.bindingCtx$jscomp$4={};M.effect(function(p,m){return function(){X&&!X()||v1A(M,p.b$jscomp$254,d[m.infoIndex],p.bindingCtx$jscomp$4,R,A)}}(w,k))}}l&&Odv(M,d,[l],
R,X,A)}};
jZq=function(M,d){M=(d.parentInfo?jZq(M,d.parentInfo):M).firstChild;for(var N=0;M;M=M.nextSibling)if(d.parentIndex===N++)return M;throw Error("Jg");};
PDp=function(M,d,N,R){M=document.importNode(M.content,!0);M.__noInsertionPoint=!(R==null?0:R.hasInsertionPoint);for(var X=Array(d.length),A={},l=0;l<d.length;l++){var k=d[l],T=jZq(M,k);X[l]=T;k.id&&(A[k.id]=T);if(k.templateInfo){var W=T.parentElement;W&&(W.templateInfo=k.templateInfo,W.parentSignalProxy=N,W.eventListenerHost=R.eventListenerHost,W.stampingEnabled=R.enabledSignal)}W=void 0;if((W=k.events)==null?0:W.length)for(W=0;W<k.events.length;W++){var w=k.events[W];sZ2(R.eventListenerHost,T,w.name,
w.value,R.getModel)}}Odv(N,X,d,R.thisCtx,R.enabledSignal,R.methodInvocationRequirement);return{root:M,nodes:X,nodesById:A}};
r1Z=function(M,d){M=M();var N;(N=o1q.ShadyCSS)==null||N.prepareTemplate(M,d);d=FzZ(M);return{template:M,nodeInfoList:d.nodeInfoList,hasInsertionPoint:d.hasInsertionPoint}};
J1j=function(){KzN=!1;for(var M=QE.length,d=0;d<M;d++){var N=QE[d];if(N)try{N()}catch(R){Promise.resolve().then(function(){throw R;})}}QE.splice(0,M);
y1i+=M};
bdq=function(M){KzN||(KzN=!0,c1N.textContent=(StZ++).toString());QE.push(M);return zCS++};
_.vu=function(M,d,N){qS++;M=d?new eCr(qS,M,d,N):new Hd2(qS,M);IT.set(qS,M);return qS};
n1j=function(M){(M=IT.get(M))&&M.cancel()};
foL=function(M,d){M=idZ.get(M);return M?(d=M.get(d))?d:null:null};
_.OH=function(M,d,N,R){var X=foL(M,d);if(!X){X=new Lzp;var A=idZ.get(M);A||(A=new Map,idZ.set(M,A));A.set(d,X)}M=N.bind(M);X.run(M,R,void 0)};
_.t1r=function(M,d){var N;(N=foL(M,d))==null||N.cancel()};
Gjv=function(M){var d;(d=foL(M,"doRender"))==null||d.flush()};
jG=function(M){var d;return(d=M.hostElement)!=null?d:M};
aor=function(M){var d=M.indexOf(".");return d===-1?M:M.slice(0,d)};
U0j=function(M,d,N,R,X,A){A=(X=(R=A?aor(d):d)?d:null)?M.get(X):M.__data[d];X&&A===void 0&&(A=N[d]);_.YP(M.hostElement,W8Z(R)+"-changed",{value:A,queueProperty:!0,path:X!=null?X:void 0},{bubbles:!1,composed:!1})};
u46=function(M,d){M.__isReflecting=!0;xMr(M.hostElement,d,M.__data[d]);M.__isReflecting=!1};
CDZ=function(M){if(M._onIronRequestResizeNotifications){var d=M._onIronRequestResizeNotifications.bind(M);M._onIronRequestResizeNotifications=function(N){_.cN(N)!==M.hostElement&&d(N)}}M._ariaActiveAttributeChanged&&(M._ariaActiveAttributeChanged=M._ariaActiveAttributeChanged.bind(M.hostElement));
M._activeChanged&&(M._activeChanged=function(N){M.toggles?m3(M.hostElement,N?"true":"false",M.ariaActiveAttribute):M.hostElement.removeAttribute(M.ariaActiveAttribute);M._changedButtonState()});
M._asyncClick&&(M._asyncClick=function(){_.vu(function(){M.hostElement.click()},1)});
!M.keyEventTarget||M.keyEventTarget instanceof EventTarget||(M.keyEventTarget=jG(M.keyEventTarget));M._disabledChanged&&(M._disabledChanged=M._disabledChanged.bind(M.hostElement));M._observeItems&&(M._observeItems=function(N){var R=jG(N);return _.Wl(R).observeNodes(function(X){M._updateItems();M._updateSelected();_.YP(R,"iron-items-changed",X,{bubbles:!1,cancelable:!1})})});
M._updateItems&&M._updateItems===_.sH._updateItems&&(M._updateItems=function(){var N=_.Wl(M.hostElement).queryDistributedElements(M.selectable||"*");N=Array.prototype.filter.call(N,M._bindFilterItem);M._setItems(N)});
M._computeKeyboardClass&&(M._computeKeyboardClass=function(N){_.t2(M.hostElement,"keyboard-focus",N)});
M.ensureRipple&&(M.ensureRipple=function(N){if(M.hasRipple&&!M.hasRipple()){if(!M._createRipple)return;M._ripple=M._createRipple();M._ripple.noink=M.noink;var R=M._rippleContainer||M.hostElement;R&&_.K(R).appendChild(M._ripple)}var X;if(N&&((X=M._ripple)==null?0:X.uiDownAction)){R=_.K(M._rippleContainer||M.hostElement);var A;X=(A=N.composedPath())==null?void 0:A[0];R.contains(X)&&M._ripple.uiDownAction(N)}});
M._updateMultiselectable&&(M._updateMultiselectable=function(N){N?M.hostElement.setAttribute("aria-multiselectable","true"):M.hostElement.removeAttribute("aria-multiselectable")})};
x0N=function(M,d,N){N=_.V(N);for(var R=N.next();!R.done;R=N.next())jri(R.value.constructor,M);jri(d.constructor,M)};
ZdZ=function(M,d){M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N.type==="signal"){var R=N.propertyKey;if(d.hasOwnProperty(R)&&d[R]!=null&&N.attributeType===Object){a:{R=d[R].constructor;for(var X=_.V(YtZ),A=X.next();!A.done;A=X.next())if(A=A.value,R===A){R=A;break a}R=Object}N.attributeType=R}}};
E1q=function(){};
Mjj=function(M){var d;return(d=M.hostElement)!=null?d:M};
ddA=function(){throw Error("Ng");};
Nri=function(M,d){M.constructor.prototype.useSignals=!0;var N=new M.constructor;x0N(N,M,d.behaviors);ZdZ(d.reactiveSchemas,N);N={};for(var R=_.V(d.reactiveSchemas),X=R.next();!X.done;X=R.next())X=X.value,X.type==="signal"&&(N[X.propertyKey]=X.attributeType);var A={copyPropertiesToProto:ddA,didRegister:!1,typesForSignals:N},l=["disable-upgrade"].concat(_.wu(d.observedAttributes)),k=function(T){Pu.call(this,M,d,A,T)};
_.v(k,Pu);_.Hm.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l}}});
A.copyPropertiesToProto=function(){for(var T=0;T<d.behaviors.length;T++)PKi(d.behaviors[T],k.prototype);PKi(M,k.prototype)};
d.legacyOptimizations||A.copyPropertiesToProto();k.prototype.is=M.is;return k};
RzS=function(M,d){if(Object.getPrototypeOf(d.prototype).constructor!==_.n)throw Error("Og");d.prototype.is=M.is;return Nri(d.prototype,M)};
XSi=function(M){return M.type==="compute"||M.type==="computeWithMethod"};
FPj=function(M){for(var d=M.reactiveSchemas.filter(XSi),N=new Map,R=new Map,X=new Map,A=_.V(d),l=A.next();!l.done;l=A.next())l=l.value,N.set(l.propertyKey,l),R.set(l.propertyKey,[]),X.set(l.propertyKey,0);A=0;d=_.V(d);for(l=d.next();!l.done;l=d.next()){l=l.value;for(var k=_.V(l.type==="computeWithMethod"?l.method.args:l.args),T=k.next();!T.done;T=k.next())T=T.value,T.type!=="literal"&&(T=T.path.split(".")[0],R.has(T)&&(R.get(T).push(l.propertyKey),X.set(l.propertyKey,X.get(l.propertyKey)+1),A++))}l=
[].concat(_.wu(R.keys())).filter(function(W){return X.get(W)===0});
for(d=[];l.length;)for(k=l.shift(),d.push(N.get(k)),k=_.V(R.get(k)),T=k.next();!T.done;T=k.next())T=T.value,X.set(T,X.get(T)-1),A--,X.get(T)===0&&l.push(T);N=M.reactiveSchemas.filter(function(W){return!XSi(W)});
M.reactiveSchemas=[].concat(_.wu(N),_.wu(d))};
AeZ=function(M,d){if(d.properties)for(var N=_.V(Object.entries(d.properties)),R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;M.properties[R]=typeof X==="function"?{type:X}:X}d.observers&&M.observers.push.apply(M.observers,_.wu(d.observers));d.disabledPolySiReactions&&M.disabledPolySiReactions.push.apply(M.disabledPolySiReactions,_.wu(d.disabledPolySiReactions))};
VjZ=function(M,d){for(var N=d.length-1;N>=0;N--){var R=d[N];Array.isArray(R)?VjZ(M,R):M.indexOf(R)<0&&M.unshift(R)}};
lQi=function(M,d){M.reactiveSchemas=M.reactiveSchemas.filter(function(N){return N.type==="observe"&&d.includes(N.method.methodName)||XSi(N)&&d.includes(N.propertyKey)?!1:!0})};
Bri=function(M,d){var N=d.prototype,R,X,A={is:M.is,reactiveSchemas:[],observedAttributes:[],behaviors:[hUp.InjectBehavior,g4.prototype],disableElementRegistration:M.disableElementRegistration,provide:(R=M.providers)!=null?R:[],reactivityMode:M.reactivityMode,signalProperties:(X=N.signalProperties)!=null?X:[]};"template"in d?A.templateGetter=function(){return d.template}:M.getTemplate&&(A.templateGetter=M.getTemplate);
N.behaviors&&VjZ(A.behaviors,N.behaviors);$di(A,d);return A};
$di=function(M,d){for(var N=d.prototype,R={properties:{},observers:[],disabledPolySiReactions:[]},X=_.V(M.behaviors),A=X.next();!A.done;A=X.next())AeZ(R,A.value);AeZ(R,N);if(M.signalProperties)for(N=_.V(M.signalProperties),X=N.next();!X.done;X=N.next())delete R.properties[X.value];N=_.V(Object.entries(R.properties));for(X=N.next();!X.done;X=N.next()){A=_.V(X.value);X=A.next().value;A=A.next().value;var l=void 0;if((l=M.signalProperties)==null||!l.includes(X)){l=void 0;var k=M,T=A.type;if(!T)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{T=Reflect.getMetadata("design:type",d,X);for(var W=_.V(kZq),w=W.next();!w.done;w=W.next())if(w=w.value,T===w){T=w;break a}T=Object}else T=String;A.computed||A.selector||(k.reactiveSchemas.push({type:"signal",propertyKey:X,value:A.value,attributeType:T,readOnly:A.readOnly}),k.observedAttributes.push(_.Xf(X)));A.reflectToAttribute&&k.reactiveSchemas.push({type:"reflect",propertyKey:X});if(A.computed){T=CKr(A.computed);if(!T)throw Error("Pg");k.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:X,method:T,value:A.value})}A.observer&&k.reactiveSchemas.push({type:"observe",method:{methodName:A.observer,args:[{type:"path",path:X}]}});A.notify&&k.reactiveSchemas.push({type:"notify",propertyKey:X});A.selector&&k.reactiveSchemas.push({type:"redux",propertyKey:X,selector:A.selector,selectorArgs:(l=A.selectorArgs)!=null?l:[]})}}TrS&&FPj(M);d=_.V(R.observers);for(X=d.next();!X.done;X=d.next())N=M,X=X.value,(A=CKr(X))?N.reactiveSchemas.push({type:"observe",method:A}):console.log('Warning: unable to parse observe declaration: "'+
X+'"');lQi(M,R.disabledPolySiReactions)};
DdA=function(M,d){for(var N=0;N<d.length;N++){var R=d[N],X=void 0;(X=R).showHideApi!=null||(X.showHideApi={});X=void 0;!!M!==!((X=R.showHideApi)==null||!X.hideTemplateChildren)&&(R.nodeType===Node.TEXT_NODE?M?(R.showHideApi.polymerTextContent=R.textContent,R.textContent=""):(X=void 0,R.textContent=(X=R.showHideApi.polymerTextContent)!=null?X:null):R instanceof Element&&R.localName==="slot"?M?(R.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.aj)((0,_.aj)(R).parentNode).replaceChild(R.showHideApi.polymerReplaced,
R)):(X=R.showHideApi.polymerReplaced)&&(0,_.aj)((0,_.aj)(X).parentNode).replaceChild(R,X):R instanceof HTMLElement&&R.style&&(M?(R.showHideApi.polymerDisplay=R.style.display,R.style.display="none"):R.style.display=R.showHideApi.polymerDisplay));R.showHideApi.hideTemplateChildren=M;R.showHideChildren&&R.showHideChildren(M)}};
WPN=function(){if(!g72){var M=document.createElement("style");M.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(M);g72=!0}};
oT=function(){return _.Q("disable_hidden_dom_if_using_stamper")||_.Q("creator_disable_hidden_dom_if_using_stamper")};
wSr=function(M,d){var N=_.r4().getState();return d?M.apply(null,[N].concat(_.wu(d))):M(N)};
hzq=function(){if(pSA)return pSA;var M=_.V(_.d0(0,void 0,"Nl6eIe")),d=M.next().value;M.next();var N=M.next().value;_.r4().subscribe(function(){mdS(N)});
return pSA=d};
mdS=function(M){_.Q("delay_redux_signal_update_killswitch")?M(function(d){return d+1}):QlS||(QlS=!0,Promise.resolve().then(function(){M(function(d){return d+1});
QlS=!1}))};
_.r4=function(){return qCZ.getAppStore()};
K6=function(M,d){return qCZ.getSelectFn()(M,d)};
_.yE=function(M){qCZ.getDispatchFn()(M)};
IQv=function(M,d){var N={},R;for(R in M)N[R]=d(M[R],R);return N};
_.Jy=function(M,d){return function(){var N;return(N=_.QJ(M))!=null?N:d}};
_.cu=function(M,d){var N=Object.assign({},M),R;for(R in d)d.hasOwnProperty(R)&&(N[R]=_.Jy(M[R],d[R]));return N};
v7r=function(M,d,N){M instanceof Element&&(N.debugName||(N.debugName="<"+M.tagName.toLowerCase()+(M.tagName.includes("-")?">":"."+M.className+">")),_.Q("ytwiz_enable_debug_component_props")&&(M.debugProps||(M.debugProps=IQv(d,function(R){return function(){return R()}}))))};
_.SG=function(M,d){var N=function(R){var X={stack:[],error:void 0,hasError:!1};try{var A=OzL={};var l=jlZ(X,uN6("component()")),k;if(((k=N)==null?0:k.idomCompat)&&R.renderedFromIdom){l==null||l.attr("idomCompat",!0);var T,W=typeof N.idomCompat==="object"?(T=N)==null?void 0:T.idomCompat.callbacks:{},w=_.V(sli(R,W,N.debugName)),p=w.next().value;w.next();var m=w.next().value,I=PR6(M,p);A.privateValue=I;OzL=void 0;v7r(I,p,N);l==null||l.attr("debugName",N.debugName);var O=dZv(I),y=Array.isArray(O)?O[0]:
O;y[dK]||(y[dK]={});y[dK].updateSignalsFromIdomProps=m;return I}var c=IQv(R,o7i);var e=PR6(M,c);A.privateValue=e;OzL=void 0;v7r(e,c,N);l==null||l.attr("debugName",N.debugName);return e}catch(t){X.error=t,X.hasError=!0}finally{reA(X)}};
N.debugName=d===void 0?"":d;return N};
PR6=function(M,d){M=M(d);return Fo(M)};
KPS=function(M,d){M[d]||(M=new _.WJ("IDOM interop setter undefined. Key:",d),_.qZ(M))};
o7i=function(M,d){return d==="children"||d==="ref"||typeof M==="function"||M===void 0?M:function(){return _.QJ(M)}};
sli=function(M,d,N){var R={},X={},A={},l={},k;for(k in M){l={key$jscomp$886:l.key$jscomp$886};l.key$jscomp$886=k;var T=M[l.key$jscomp$886];if(l.key$jscomp$886==="children"||l.key$jscomp$886==="ref")R[l.key$jscomp$886]=T;else if(typeof T==="function")l.key$jscomp$886 in d||T.length>0?(A[l.key$jscomp$886]=T,R[l.key$jscomp$886]=function(w){return function(){return A[w.key$jscomp$886].apply(A,_.wu(_.wH.apply(0,arguments)))}}(l)):R[l.key$jscomp$886]=T;
else if(!(M[l.key$jscomp$886]===void 0&&l.key$jscomp$886 in d)){var W=_.V(_.d0(M[l.key$jscomp$886],{debugName:"__cwis:"+N+":"+l.key$jscomp$886},"cEBU8c"));T=W.next().value;W=W.next().value;R[l.key$jscomp$886]=T;X[l.key$jscomp$886]=W}}return[R,X,function(w){var p={},m;for(m in w)p={key$jscomp$887:p.key$jscomp$887,val$jscomp$116:void 0},p.key$jscomp$887=m,p.val$jscomp$116=w[p.key$jscomp$887],p.key$jscomp$887!=="children"&&p.key$jscomp$887!=="ref"&&(typeof p.val$jscomp$116==="function"?p.key$jscomp$887 in
d?A[p.key$jscomp$887]=p.val$jscomp$116:p.val$jscomp$116.length>0&&(A[p.key$jscomp$887]=p.val$jscomp$116,_.vh(new _.WJ("Callback detected that was not set in the idomCompat callbacks map. Key:",p.key$jscomp$887))):p.key$jscomp$887 in d&&p.val$jscomp$116===void 0||(KPS(X,p.key$jscomp$887),VJ(function(I){return function(){X[I.key$jscomp$887](I.val$jscomp$116)}}(p))))}]};
ce6=function(M,d,N){var R=v_v(M.prototype,yeL,M.prototype.behaviors);R.prototype.is=d;R.prototype.localName=d;N&&Jev(R,N);return function(X){X&&(R.prototype.hostElement=X);var A=new R;A.root=A;A.hostElement=X;return A}};
Jev=function(M,d){var N;Object.defineProperty(M.prototype,"_template",{get:function(){N===void 0&&(N=d());return N},
set:function(R){N=R},
configurable:!0,enumerable:!0})};
HzL=function(M,d,N,R){function X(){if(!I){for(var O=new Set,y=_.V(w),c=y.next();!c.done;c=y.next()){c=c.value;for(var e=_.V(Object.getOwnPropertyNames(c)),t=e.next();!t.done;t=e.next()){t=t.value;var C=void 0,U=(C=Object.getOwnPropertyDescriptor(c,t))==null?void 0:C.value;U&&U instanceof Function&&!z3(t)&&O.add(t)}}y=_.V(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(c=y.next();!c.done;c=y.next())e=_.V(c.value),c=e.next().value,e=e.next().value,e.value instanceof Function&&!z3(c)&&
O.add(c);I=O}return I}
SCr(M,d,R==null?void 0:R.providers);Otp(M.prototype,M,!0);var A=ce6(M,d,N),l,k=(l=M.prototype.properties)!=null?l:{},T,W,w=(W=(T=M.prototype.behaviors)==null?void 0:T.flat(Infinity))!=null?W:[];N=_.V(w);for(l=N.next();!l.done;l=N.next())k=Object.assign({},l.value.properties,k);var p=[].concat(_.wu(zzL),_.wu(Object.keys(k).map(function(O){return _.Xf(O)}))),m=!1,I;
return{ctor:function(O,y){var c=A(O),e,t;O=[].concat(_.wu((e=R==null?void 0:R.allowedProps)!=null?e:[]),_.wu((t=R==null?void 0:R.allowedPropsFromBehaviors)!=null?t:[]));c.allowedProps=O.length>0?O:void 0;e={};t=_.V(p);for(O=t.next();!O.done;O=t.next())O=O.value,e[O]=_.Ff(O);c.__dataAttributes=e;var C=c.ready.bind(c);c.ready=function(){y.beforeReady();C();if(RT(d)&&!m){var U=c.__templateInfo;if(U==null?0:U.hostProps){U=_.V(Object.keys(U.hostProps));for(var Fi=U.next();!Fi.done;Fi=U.next())VE(d,Fi.value,
"PROPERTY_ACCESS_GET_INTERNAL")}m=!0}};
c._overrideLegacyUndefined=!0;return c},
props:k,observedAttributes:p,getInitialMethods:X,getPropsToForwardBeforeRegister:function(){for(var O=[],y=new Set,c=_.V(Object.keys(k)),e=c.next();!e.done;e=c.next())e=e.value,O.push([e,k[e].readOnly]),y.add(e);c=X();e=_.V(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var t=e.next();!t.done;t=e.next())t=t.value,!bzZ(t)||c.has(t)||y.has(t)||(O.push([t,!1]),y.add(t));y=_.V(ezS);for(c=y.next();!c.done;c=y.next())O.push([c.value,!0]);return O},
getPropsToForwardBeforeReady:function(O){for(var y=[],c=_.V(Object.entries(O)),e=c.next();!e.done;e=c.next()){var t=_.V(e.value);e=t.next().value;t=t.next().value;if(bzZ(e)&&!(t instanceof Function)&&(y.push([e,!1]),RT(d))){var C=t=void 0;(C=(t=O)._createPropertyAccessor)==null||C.call(t,e)}}return y},
shouldForwardProp:bzZ,shouldLog:RT}};
SCr=function(M,d,N){Qri(M,N);M.prototype.behaviors.unshift(n7A);if(VqZ()){if(RT(d)){var R;(R=M.prototype).behaviors!=null||(R.behaviors=[]);M.prototype.behaviors.unshift(kSq())}TVi(M)}_.S(g4.prototype)(M.prototype,"__templateHelpers")};
z3=function(M){return izA.has(M)||M.startsWith("__compute__")};
bzZ=function(M){return!z3(M)&&!M.startsWith("_")&&!M.endsWith("_")};
aQA=function(M,d){function N(){var m=T();m=_.V(m);for(var I=m.next();!I.done;I=m.next()){var O=_.V(I.value);I=O.next().value;O=O.next().value;fQi(p.prototype,I,O)}R=!0}
var R=!1,X=M.ctor,A=M.getInitialMethods,l=M.observedAttributes,k=M.getPropsToForwardBeforeReady,T=M.getPropsToForwardBeforeRegister,W=M.shouldForwardProp,w=M.shouldLog,p=function(){var m=HTMLElement.call(this)||this;m.didForwardDynamicProps=!1;m.loggingStatus={};R||N();m.inst=X(m,{beforeReady:function(){m.didForwardDynamicProps||(m.forwardDynamicProps(),m.didForwardDynamicProps=!0)}});
m.controllerProxy=$M6(m.inst,d);m.forwardMethods();return m};
_.v(p,HTMLElement);p.prototype.forwardMethods=function(){for(var m=this,I=_.V(this.inst.getExtraMethodsToForward()),O=I.next(),y={};!O.done;y={method$jscomp$61:void 0},O=I.next()){var c=_.V(O.value);O=c.next().value;c=c.next().value;y.method$jscomp$61=c;this[O]=function(e){return function(){return e.method$jscomp$61.call.apply(e.method$jscomp$61,[m.inst].concat(_.wu(_.wH.apply(0,arguments))))}}(y)}I=_.V(A());
for(y=I.next();!y.done;y=I.next())y=y.value,W(y)&&LPj(this,y),w(d)&&!z3(y)&&tjr(this.inst,y)};
p.prototype.forwardDynamicProps=function(){var m=k(this.inst);m=_.V(m);for(var I=m.next();!I.done;I=m.next()){var O=_.V(I.value);I=O.next().value;O=O.next().value;fQi(this,I,O);w(d)&&!z3(I)&&GZ2(this.inst,I)}};
p.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
p.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
p.prototype.attributeChangedCallback=function(m,I,O){this.inst.attributeChangedCallbackWrapper(m,I,O)};
_.Hm.Object.defineProperties(p.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return d}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Hm.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l}}});
customElements.define(d,p)};
fQi=function(M,d,N){M.hasOwnProperty(d)||Object.defineProperty(M,d,{get:function(){var R,X=((R=M.is)!=null?R:M.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||VE(X,d,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,R=this.polymerController[d],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,R},
set:function(R){if(!N){var X,A=((X=M.is)!=null?X:M.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||VE(A,d,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=d,this.loggingStatus.bypassProxyController=!0,this.polymerController[d]!==R&&(X={},this.polymerController.setProperties((X[d]=R,X)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
LPj=function(M,d,N){var R=M.polymerController;M[d]=function(){var X=_.wH.apply(0,arguments);M.loggingStatus.currentExternalCall=d;M.loggingStatus.bypassProxyController=!0;var A,l=((A=M.is)!=null?A:M.tagName).toLowerCase();VE(l,d,"PROPERTY_ACCESS_CALL_EXTERNAL");var k;A=(k=N!=null?N:R[d])==null?void 0:k.call.apply(k,[R].concat(_.wu(X)));M.loggingStatus.currentExternalCall=void 0;M.loggingStatus.bypassProxyController=!1;return A}};
tjr=function(M,d){var N=M.hostElement,R=M[d];M[d]=function(){var X=_.wH.apply(0,arguments);if(N.loggingStatus.currentExternalCall!==d){var A,l=((A=N.is)!=null?A:N.tagName).toLowerCase();VE(l,d,"PROPERTY_ACCESS_CALL_INTERNAL")}return R==null?void 0:R.apply(M,X)}};
GZ2=function(M,d){var N=Object.getOwnPropertyDescriptor(M,d);N&&!N.get&&Object.defineProperty(M,d,{get:function(){BVr(M.hostElement,d);return N.value},
set:function(R){lu(M.hostElement,d);N.value=R}})};
UdN=function(M){return _.Q("poly_si_dom_repeat_detached_fix_killswitch")||M.tagName!=="PS-DOM-REPEAT"?M.tagName==="DOM-REPEAT":!0};
CRL=function(M,d){var N=uES(M);M instanceof Element&&N.unshift(M);M=_.V(N.filter(UdN));for(var R=M.next();!R.done;R=M.next()){R=_.V(R.value.__instances);for(var X=R.next();!X.done;X=R.next())if(X=X.value,X.root){X=Array.from(X.root.children);X=_.V(X);for(var A=X.next();!A.done;A=X.next())N.push.apply(N,_.wu(CRL(A.value,d)))}}return N.filter(function(l){return l.usePatchedLifecycles&&l.lifecycleIsConnected===d})};
uES=function(M){var d=null;M instanceof Element?d=Element.prototype.querySelectorAll:M instanceof DocumentFragment&&(d=DocumentFragment.prototype.querySelectorAll);return d?Array.from(d.call(M,"*")):[]};
bu=function(M){MF(function(){for(var d=_.V(CRL(M,!1)),N=d.next();!N.done;N=d.next()){N=N.value;N.lifecycleIsConnected=!0;try{var R=void 0,X=void 0,A=void 0,l=void 0;(R=(l=N.polymerController)!=null?l:N)==null||(A=(X=R).connectedCallback)==null||A.call(X)}catch(k){_.qZ(k)}}})};
eG=function(M){MF(function(){for(var d=_.V(CRL(M,!0)),N=d.next();!N.done;N=d.next()){N=N.value;N.lifecycleIsConnected=!1;try{var R=void 0,X=void 0,A=void 0,l=void 0;(R=(l=N.polymerController)!=null?l:N)==null||(A=(X=R).disconnectedCallback)==null||A.call(X)}catch(k){_.qZ(k)}}})};
NtZ=function(){if(!xdi){xdi=!0;var M=[Node];Hu&&M.push(Hu.Wrapper);var d=Node.prototype.insertBefore,N=Node.prototype.removeChild;M=_.V(M);for(var R=M.next(),X={};!R.done;X={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},R=M.next())R=R.value,X.nativeInsertBefore=R.prototype.insertBefore,R.prototype.insertBefore=function(l){return function(k,T){if(k instanceof DocumentFragment){var W=Array.from(k.children);k=l.nativeInsertBefore.call(this,k,T);
if(this.isConnected&&l.nativeInsertBefore===d)for(T=_.V(W),W=T.next();!W.done;W=T.next())bu(W.value);return k}W=k instanceof Element&&k.isConnected;T=l.nativeInsertBefore.call(this,k,T);W&&eG(k);this.isConnected&&bu(k);return T}}(X),X.nativeAppendChild=R.prototype.appendChild,R.prototype.appendChild=function(l){return function(k){if(k instanceof DocumentFragment){var T=Array.from(k.children);
k=l.nativeAppendChild.call(this,k);if(this.isConnected){T=_.V(T);for(var W=T.next();!W.done;W=T.next())bu(W.value)}return k}T=k instanceof Element&&k.isConnected;W=l.nativeAppendChild.call(this,k);T&&eG(k);this.isConnected&&bu(k);return W}}(X),X.nativeRemoveChild=R.prototype.removeChild,R.prototype.removeChild=function(l){return function(k){var T=k instanceof Element&&k.isConnected,W=l.nativeRemoveChild.call(this,k);
T&&N===l.nativeRemoveChild&&eG(k);return W}}(X),X.nativeReplaceChild=R.prototype.replaceChild,R.prototype.replaceChild=function(l){return function(k,T){if(k instanceof DocumentFragment){var W=Array.from(k.children);
k=l.nativeReplaceChild.call(this,k,T);if(this.isConnected)for(eG(T),T=_.V(W),W=T.next();!W.done;W=T.next())bu(W.value);return k}W=k instanceof Element&&k.isConnected;var w=this.isConnected,p=l.nativeReplaceChild.call(this,k,T);w&&eG(T);W&&eG(k);w&&bu(k);return p}}(X);
M=[Element];Hu&&M.push(Hu.Wrapper);M=_.V(M);R=M.next();for(X={};!R.done;X={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},R=M.next())R=R.value,R.prototype.before=YCS(R.prototype.before),R.prototype.after=YCS(R.prototype.after),X.nativeReplaceWith=R.prototype.replaceWith,R.prototype.replaceWith=function(l){return function(){var k=_.wH.apply(0,arguments),T=_.V(Zzp(k)),W=T.next().value,
w=T.next().value;T=this.isConnected;l.nativeReplaceWith.apply(this,k);k=_.V(w);for(w=k.next();!w.done;w=k.next())eG(w.value);if(T)for(eG(this),W=_.V(W),T=W.next();!T.done;T=W.next())T=T.value,T instanceof Element&&bu(T)}}(X),X.nativeRemove=R.prototype.remove,R.prototype.remove=function(l){return function(){var k=this.isConnected;
l.nativeRemove.call(this);k&&eG(this)}}(X),X.nativeInsertAdjacentElement=R.prototype.insertAdjacentElement,R.prototype.insertAdjacentElement=function(l){return function(k,T){var W=T.isConnected;
k=l.nativeInsertAdjacentElement.call(this,k,T);W&&eG(T);k.isConnected&&bu(k);return k}}(X),X.nativeSetAttribute=R.prototype.setAttribute,R.prototype.setAttribute=function(l){return function(k,T){var W=E7N(this);
if(!W.usePatchedLifecycles)return l.nativeSetAttribute.call(this,k,T);var w=this.getAttribute(k);l.nativeSetAttribute.call(this,k,T);T=this.getAttribute(k);M32(W,k,w,T)}}(X),X.nativeRemoveAttribute=R.prototype.removeAttribute,R.prototype.removeAttribute=function(l){return function(k){var T=E7N(this);
if(!T.usePatchedLifecycles)return l.nativeRemoveAttribute.call(this,k);var W=this.getAttribute(k);l.nativeRemoveAttribute.call(this,k);W!==null&&M32(T,k,W,null)}}(X),X.nativeToggleAttribute=R.prototype.toggleAttribute,R.prototype.toggleAttribute=function(l){return function(k,T){var W=E7N(this);
if(!this.usePatchedLifecycles)return l.nativeToggleAttribute.call(this,k,T);var w=this.getAttribute(k),p=w!==null;T=l.nativeToggleAttribute.call(this,k,T);T!==p&&M32(W,k,w,T?"":null);return T}}(X);
M=[Document,DocumentFragment,Element,ShadowRoot];Hu&&M.push(Hu.Wrapper);M=_.V(M);for(X=M.next();!X.done;X=M.next())X=X.value,X.prototype.prepend=YCS(X.prototype.prepend),X.prototype.append=YCS(X.prototype.append);(Hu==null?void 0:Hu.noPatch)===!0&&dWZ();document.readyState==="complete"?bu(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&bu(document.body)});
var A=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");A&&A.get&&A.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:A.enumerable,configurable:!0,get:A.get,set:function(l){l||eG(this);A.set.call(this,l);return l}})}};
YCS=function(M){return function(){var d=_.wH.apply(0,arguments),N=_.V(Zzp(d)),R=N.next().value;N=N.next().value;M.apply(this,d);d=_.V(N);for(N=d.next();!N.done;N=d.next())eG(N.value);if(this.isConnected)for(R=_.V(R),d=R.next();!d.done;d=R.next())d=d.value,d instanceof Element&&bu(d)}};
dWZ=function(){for(var M=_.V(RFZ),d=M.next();!d.done;d=M.next()){d=d.value.prototype;for(var N=_.V(XLA),R=N.next();!R.done;R=N.next()){R=R.value;var X=Object.getOwnPropertyDescriptor(d,R);X&&Object.defineProperty(d,"__shady_native_"+R,X)}}};
M32=function(M,d,N,R){var X,A;if((X=M.polymerController)==null?0:(A=X.observedAttributes)==null?0:A.includes(d))if(M=M.polymerController,M.attributeChangedCallbackWrapper)M.attributeChangedCallbackWrapper.call(M,d,N,R);else{var l;(l=M.attributeChangedCallback)==null||l.call(M,d,N,R)}};
Zzp=function(M){var d=[],N=[];M=_.V(M);for(var R=M.next();!R.done;R=M.next())R=R.value,R instanceof Element&&R.isConnected&&N.push(R),R instanceof DocumentFragment?d.push.apply(d,_.wu(Array.from(R.children))):d.push(R);return[d,N]};
E7N=function(M){return!(M instanceof Element)&&M.node instanceof Element?M.node:M};
F9r=function(M,d){var N=d?["children"].concat(_.wu(d)):["children"];d=[];N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=R.value;if(M.hasOwnProperty(X)){R=M[X];R=typeof R==="function"?R():R;R=Fo(Array.isArray(R)?R:[R]).flat();if(X!=="children"){X=W8Z(X);for(var A=_.V(R),l=A.next();!l.done;l=A.next())l=l.value,l instanceof Element&&l.setAttribute("slot",X)}d.push(R)}}d.length===0?M=[]:(M=Fo(_.g("div",null,d)),M=Array.from(M.childNodes));return M};
V3q=function(M,d,N){var R={};_.w0(function(){var X={},A;for(A in d)if(d.hasOwnProperty(A)){var l=void 0,k=void 0;if(!(((l=N.slotProps)==null?0:l.includes(A))||A==="children"||((k=N.callbackProps)==null?0:k.includes(A))||A==="ref")&&(l=_.QJ(d[A]),R[A]!==l)){R[A]=l;k=void 0;var T=(k=M.hostElement)!=null?k:M;AJL.has(A)&&(T[A]=l);X[A]=l}}VJ(function(){if(M.setProperties)M.setProperties(X);else for(var W=_.V(Object.entries(X)),w=W.next();!w.done;w=W.next()){var p=_.V(w.value);w=p.next().value;p=p.next().value;
M[w]=p}})})};
$Wv=function(M,d,N,R){var X=F9r(N,R.slotProps),A=_.Q("web_wcw_disable_slot_host_shady_dom_wrap")?M:(0,_.aj)(M);X=_.V(X);for(var l=X.next();!l.done;l=X.next())A.appendChild(l.value);V3q(d,N,R);R=_.V(R.callbackProps||[]);X=R.next();for(A={};!X.done;A={kebabEventName:void 0,eventListener:void 0},X=R.next())l=X=X.value,String(X).substring(0,2)==="on"&&N[l]?(A.kebabEventName=W8Z(String(X).substring(2)),A.eventListener=N[l],M.addEventListener(A.kebabEventName,A.eventListener),_.mF(function(w){return function(){M.removeEventListener(w.kebabEventName,
w.eventListener)}}(A))):d[l]=N[l];
if(N.ref){N=_.V(l2q(N.ref));var k=N.next().value,T=N.next().value,W=d.attached.bind(d);d.attached=function(){k(M);W()};
_.mF(function(){T()})}};
l2q=function(M){if(typeof M==="function"){var d;return[function(N){d=M(N)},
function(){var N;(N=d)==null||N()}]}if(!M.onRender||!M.onUnmount)throw Error("Tg");
return[M.onRender,M.onUnmount]};
DW6=function(M,d,N,R,X){R=R===void 0?{}:R;var A=Btp,l=!1;A?(l=!0,Btp=void 0):(kAZ=d,A=document.createElement(d),kAZ=void 0);var k=A;k.usePatchedLifecycles=!0;k.lifecycleIsConnected=!1;A.loggingStatus={};var T=TtL(M,d,A,R,X);_.mF(function(){k.lifecycleIsConnected&&(k.lifecycleIsConnected=!1,T.disconnectedCallback())});
l||$Wv(A,T,N,R);return A};
TtL=function(M,d,N,R,X){X=X===void 0?HzL:X;ggv[d]!=null||(ggv[d]=X(M,d,R==null?void 0:R.getTemplate,R));var A=ggv[d],l=A.ctor;X=A.getInitialMethods;var k=A.getPropsToForwardBeforeReady;M=A.getPropsToForwardBeforeRegister;R=A.shouldForwardProp;var T=A.observedAttributes,W=A.shouldLog,w=l(N,{beforeReady:function(){var p=w;p._takeAttributes?p._takeAttributes():p.setPropertiesFromInitialAttributeValues&&p.setPropertiesFromInitialAttributeValues();p=_.V(k(N.polymerController));for(var m=p.next();!m.done;m=
p.next()){var I=_.V(m.value);m=I.next().value;I=I.next().value;fQi(N,m,I);W(d)&&!z3(m)&&GZ2(N.polymerController,m)}N.polymerController=$M6(w,d)}});
N.polymerController=w;N.polymerController.observedAttributes=T;A=_.V(w.getExtraMethodsToForward());for(l=A.next();!l.done;l=A.next())T=_.V(l.value),l=T.next().value,T=T.next().value,LPj(N,l,T);X=_.V(X());for(A=X.next();!A.done;A=X.next())A=A.value,R(A)&&LPj(N,A),W(d)&&!z3(A)&&tjr(w,A);M=_.V(M());for(R=M.next();!R.done;R=M.next())X=_.V(R.value),R=X.next().value,X=X.next().value,fQi(N,R,X);return w};
wLr=function(M,d){return n6===d?(M.isInert=!0,n6="",!0):W9j===d?(M.isInert=!0,W9j="",!0):!1};
pLq=function(M){var d=iu;iu=M;return d};
hFq=function(M){if(f6.has(M))W9j=M;else if(L6.has(M)&&iu&&mWq(iu)===M){var d;(d=iu)._numRenders!=null||(d._numRenders=0);iu._numRenders++;if(iu._numRenders>1)throw Error("Ug");return iu}};
Qwp=function(M){f6.has(mWq(M))?W9j=mWq(M):L6.has(mWq(M))&&iu!==M&&(M._isInert=!0)};
mWq=function(M){var d;return(d=M==null?void 0:M.tagName.toLowerCase())!=null?d:""};
q3j=function(M,d){if(M.componentType===Bg)throw Error("Vg");L6.add(d);var N=function(){var R=HTMLElement.call(this)||this;R.is=d;if(kAZ===d)return R.isInert=!0,R;R.createElement();return R};
_.v(N,HTMLElement);N.prototype.createElement=function(){if(!this.isInert){Btp=this;var R=_.V(sqr(function(){return _.g(M,null)})).next().value;
Btp=void 0;B$2(this);return R}};
customElements.define(d,N)};
vgS=function(M,d,N,R,X){M.prototype.is=d;(R==null?0:R.useSink)?I2j(M,d,N,R,X):(N=HzL(M,d,N,R),aQA(N,d));return M};
I2j=function(M,d,N,R,X){NtZ();var A=_.SG(function(l){return DW6(M,d,l,Object.assign({},R,{getTemplate:N}),X)},"a");
q3j(A,d);return A};
jwq=function(M){return!O8Z.has(M)};
ogi=function(M,d,N,R){function X(){if(!p){for(var m=new Set(swp),I=_.V(A.behaviors),O=I.next();!O.done;O=I.next()){O=O.value;for(var y=_.V(Object.getOwnPropertyNames(O)),c=y.next();!c.done;c=y.next()){c=c.value;var e=void 0,t=(e=Object.getOwnPropertyDescriptor(O,c))==null?void 0:e.value;t&&t instanceof Function&&m.add(c)}}I=_.V(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(O=I.next();!O.done;O=I.next())y=_.V(O.value),O=y.next().value,y=y.next().value,y.value instanceof Function&&
m.add(O);p=m}return p}
var A=Bri({is:d,disableElementRegistration:!1,getTemplate:N,providers:R==null?void 0:R.providers,reactivityMode:R==null?void 0:R.reactivityMode},M);if((R==null?0:R.allowedProps)||(R==null?0:R.allowedPropsFromBehaviors)){var l,k;A.allowedProps=[].concat(_.wu((l=R.allowedProps)!=null?l:[]),_.wu((k=R.allowedPropsFromBehaviors)!=null?k:[]))}var T=RzS(A,M);d=T.observedAttributes;var W={};N=_.V(A.reactiveSchemas);for(R=N.next();!R.done;R=N.next())if(R=R.value,R.type==="signal")W[R.propertyKey]={readOnly:R.readOnly},
R.readOnly&&(W[cz2(R.propertyKey)]={readOnly:!0});else if(R.type==="compute"||R.type==="computeWithMethod"||R.type==="redux")W[R.propertyKey]={readOnly:!0};var w=A.reactiveSchemas.length,p;return{ctor:function(m,I){m=new T(m);m.beforeReady=I.beforeReady;return m},
props:W,observedAttributes:d,getInitialMethods:X,getPropsToForwardBeforeRegister:function(){for(var m=[],I=new Set,O=_.V(PQZ),y=O.next();!y.done;y=O.next())y=y.value,m.push([y,y!=="observers"&&y!=="properties"]),I.add(y);O=_.V(Object.keys(W));for(y=O.next();!y.done;y=O.next())y=y.value,m.push([y,W[y].readOnly]),I.add(y);O=X();y=_.V(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var c=y.next();!c.done;c=y.next())c=c.value,!jwq(c)||O.has(c)||I.has(c)||(m.push([c,!1]),I.add(c));m.push(["allowedProps",
!0]);return m},
getPropsToForwardBeforeReady:function(m){var I=[];m=_.V(Object.keys(m));for(var O=m.next();!O.done;O=m.next()){O=O.value;var y=X();jwq(O)&&!y.has(O)&&I.push([O,!1])}m=_.V(A.reactiveSchemas.slice(w));for(O=m.next();!O.done;O=m.next())O=O.value,O.type!=="compute"&&O.type!=="computeWithMethod"&&O.type!=="redux"&&O.type!=="signal"||I.push([O.propertyKey,O.type==="signal"?O.readOnly:!0]);return I},
shouldForwardProp:jwq,shouldLog:RT}};
_.L=function(M,d,N,R){var X,A,l=(A=(X=R)==null?void 0:X.mode)!=null?A:0;R!=null||(R={});var k;(k=R).reactivityMode!=null||(k.reactivityMode=0);l===1&&_.MB("creator_poly_si_disable_list").includes(d)&&(l=2);return l===1?vgS(M,d,N,Object.assign({},R,{useSink:!0}),ogi):vgS(M,d,N,Object.assign({},R,{useSink:l===2}))};
_.ty=function(){return function(M,d,N,R){var X,A,l=(A=(X=R)==null?void 0:X.mode)!=null?A:2;R!=null||(R={});var k;(k=R).reactivityMode!=null||(k.reactivityMode=0);if(l===0)throw Error("Wg`"+l);return I2j(M,d,N,R,l===1?ogi:void 0)}};
_.G3=function(M){return _.Q("creator_poly_si_killswitch")?!1:_.Q("force_all_poly_si_batches")&&(M==="poly_si_all_on_test_check"||M==="creator_poly_si_batch_050"?0:M)||document.documentElement.hasAttribute("use-signals")?!0:!M||_.Q(M+"_holdback_enabled")&&_.Q("kevlar_polysi_holdback")?!1:_.Q(M)};
aT=function(M){return M?M.icon?M.icon.iconType.toLowerCase():M.customThumbnail?"member":"":""};
rJ6=function(M){if(!M)return"";M=_.V(M);for(var d=M.next();!d.done;d=M.next())if((d=d.value)&&d.liveChatAuthorBadgeRenderer&&(d=aT(d.liveChatAuthorBadgeRenderer))&&d!=="verified")return d;return""};
K9Z=function(M,d){if(!M)return null;var N;return((N=M.find(function(R){return R&&R.liveChatAuthorBadgeRenderer?aT(R.liveChatAuthorBadgeRenderer)===d:!1}))==null?void 0:N.liveChatAuthorBadgeRenderer)||null};
_.b86=function(M){var d=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;M=yJA(M);d=yJA(d);var N=JJv(M.hex);d=JJv(d.hex);var R=d[0]/255;var X=d[1]/255,A=d[2]/255,l=Math.max(R,X,A),k=Math.min(R,X,A),T=0,W=0,w=.5*(l+k);l!=k&&(l==R?T=60*(X-A)/(l-k):l==X?T=60*(A-R)/(l-k)+120:l==A&&(T=60*(R-X)/(l-k)+240),W=0<w&&w<=.5?(l-k)/(2*w):(l-k)/(2-2*w));R=[Math.round(T+360)%360,W,w];N=cJj(N,d);for(M=S3v(M.hex);N<4.5;){M=R[2]>=.5?M.darker((4.5-N)/2):M.brighter((4.5-N)/2);N=M.toString();
X=zFL(N);if(!X.length)throw Error("Sd`"+N);N=X;N=cJj(N,d)}return M.hex()};
cJj=function(M,d){M=_.Bhi(M);d=_.Bhi(d);return(Math.max(M,d)+.05)/(Math.min(M,d)+.05)};
_.UH=function(M){return"#"+("000000"+(M&16777215).toString(16)).slice(-6)};
_.eFr=function(M){for(var d=0,N=0;N<M.length;N++)d=M.charCodeAt(N)+((d<<5)-d);M="#";for(N=0;N<3;N++)M+=("00"+(d>>N*8&255).toString(16)).slice(-2);return M};
H8Z=function(M){M=(M||"").split(":");M.length===1&&M.unshift("yt-icons");M[1]=M[1].toLowerCase();return M};
GAA=function(M,d){var N=(d=d===void 0?!1:d)?ngi:i8r,R=d?f2q:L92;M.getIconNames().forEach(function(X){X=d?X:X.substring(X.indexOf(":")+1);M.name==="yt-icons"?t3N.add(X):X.includes("-filled")?N.add(X):R.add(X)})};
uu=function(M,d,N,R){N=N===void 0?!1:N;R=R===void 0?!1:R;var X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,a2i,2);if(R)return k.return(t3N.has(M));X=N?ngi:i8r;A=N?f2q:L92;return d?(l=M.includes("-filled")?M:M.concat("-filled"),k.return(X.has(l))):k.return(A.has(M))})};
_.CQN=function(M){if(UWi(M))return M;var d=M=M.toLowerCase();(M=uG6.get(M))&&(d=M);return d};
_.C6=function(M){if(UWi(M))return M.toString();var d=xWp.get(M);if(d)return d;d=M.toLowerCase();var N="yt-icons",R=d.replace(/_/g,"-");switch(M){case "MY_CHANNEL":d="account_circle";break;case "ADD_TO_LIBRARY":d="add";break;case "ALERT_WARN_RED":d="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":d="person_music";break;case "BLOCK_USER":d="block";break;case "CAPTIONS":d="closed_caption";break;case "CLOSED_CAPTION":N="av";d="closed-caption";break;case "COLLECTION":N="maps";d="layers";break;case "CONTACT":N=
"icons";d="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":N="ytcp-icons";d=R.split("creator-studio-")[1];break;case "DISMISSAL":d="close";break;case "DO_NOT_DISTURB":d="block";break;case "DOGFOOD":N="icons";d="pets";break;case "DRAFT":d="paper_corner_folded";break;
case "EMPTY_LIKE":d="like_outline";break;case "EXIT_APP":d="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":d=R;break;case "GAMES":N="ytg";d="my-games";break;case "GO_TO_PAGE":d="arrow-forward";break;case "GROUP":N="social";break;case "HIDE":d="not_interested";break;case "INPUT_COMPONENT":N="icons";d="settings-input-component";break;case "KIDS_BLOCK":d="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":N="ytg";d="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":N=
"ytg";d="membership-post-purchase";break;case "MULTIVIEW":d="screen_multi_view";break;case "MY_LOCATION":N="maps";d=R;break;case "NOTIFICATIONS_INBOX":d="NOTIFICATIONS";break;case "NEXT":d="chevron_right";break;case "OFFLINE":d="power-settings-new";break;case "PAUSE":N="miniplayer";break;case "PAYMENT":N="icons";break;case "PHONE_DOWNLOAD":d="phone_download";break;case "PREMIUM_STANDALONE":N="yt-logos";d="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":N="yt-logos";d="premium_standalone_cairo";
break;case "QUESTION_ANSWER":d="question_answer";break;case "REDEEM":N="icons";d="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":d="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":d="library_add";break;case "SCHOOL":N="yt-sys-icons";d="creator_academy";break;case "SETTINGS_LIGHT":d="settings_applications";break;case "SETTINGS_MATERIAL":d="settings";break;case "SEARCH_HISTORY":d="watch_history";break;case "SHOPPING_BAG":d="bag";break;case "SOCIAL":case "PEOPLE":N=
"yt-icons";d="people";break;case "STAFF_PICK":N="ytg";d="spotlight";break;case "START_DVR":d="add";break;case "STOP_DVR":N="av";d="stop";break;case "TAB_LIKED":d="like";break;case "TAB_INBOX":d="mail";break;case "TERMS_OF_SERVICE":N="icons";d="description";break;case "TRENDING":d="fire";break;case "UNBLOCK_USER":d="remove";break;case "UNPLUGGED_DARK_THEME":N="image";d="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":d="live";break;case "UNPLUGGED_SPORTS":N="ytu";d="visibility-off";break;
case "VIDEOS":N="av";d="play-circle-filled";break;case "YOUTUBE":N="yt-logos";d="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":N="yt-logos-ext";d="yt-logo-red-updated";break;case "YOUTUBE_LOGO":N="yt-logos-ext";d="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":N="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":N="shorts";d=R;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":N="yt-sys-icons";d="youtube_improve_tv";break;case "OUTLINE_BAG":N=
"yt-sys-icons";d="bag";break;case "QUEUE_PLAY_LAST":N="yt-sys-icons";d="list_queue_last";break;case "SLASH_CIRCLE_LEFT":d="slash_circle_left";break;case "SPEED_1_POINT_2X":d="1_point_2x";break;case "SPEED_1_POINT_5X":d="1_point_5x";break;case "SPEED_1_POINT_8X":d="1_point_8x";break;case "SPEED_POINT_2X":d="point_2x";break;case "SPEED_POINT_5X":d="point_5x";break;case "SPEED_POINT_8X":d="point_8x";break;case "SPEED_1X":d="1x";break;case "SPEED_2X":d="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":N="yt-sys-icons";
d="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":N="yt-sys-icons";d="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":N="yt-sys-icons",d="tic_tac_toe"}d=N+":"+d;xWp.set(M,d);return d};
UWi=function(M){var d;_.Q("kevlar_use_wil_icons")?d=!!_.h().resolve(_.xQ).resolveIcon({iconName:M.toString()}):d=!1;return d};
_.Zc=function(M,d,N,R){N=N===void 0?{}:N;R=R===void 0?!1:R;N===null&&(N={});var X=_.MB("kevlar_command_handler_command_banlist");X=_.V(X);for(var A=X.next();!A.done;A=X.next())if(A=M?M.hasOwnProperty(A.value):void 0,A)return!1;X=_.q(M.commandMetadata,_.an);return R&&X!=null&&X.url?!1:!d.disableCommandHandlerOverride&&_.YQ.instance?(R=_.YQ.instance,N.form||(N.form={element:d}),N.form.element||(N.form.element=d),!N.clickedVisualElement&&d.visualElement&&(N.clickedVisualElement=d.visualElement),R.resolveCommand(M,
N),!0):!1};
Y3N=function(M,d){M=EH(M);for(var N=_.V(M.visibilityMonitorKeys||[]),R=N.next();!R.done;R=N.next())d.unobserveByKey(R.value);M.visibilityMonitorKeys=void 0};
dqZ=function(M,d){if(_.Ou()){if(_.Q("kevlar_vimio_use_shared_monitor"))Z8v(M,d.data);else if(!Z8v(M,d.data))return;var N=d.data,R=Eg6(N);if(_.Q("enable_client_ve_spec_logging"))Y3N(M,d.observer);else{var X=EH(M);X.trackedParams&&X.trackedParams!==R&&Y3N(M,d.observer)}X=EH(M);!N||X.data&&X.data===N||(X.data=N);MT2(M,d);X.trackedParams=R}};
MT2=function(M,d){var N=d.observer;if(!N&&_.Q("web_skip_missing_vimio_observer")){var R,X;_.vh(new _.WJ("VisibilityObserver is not defined.",M.tagName,M.trackedParams,(R=d.data)==null?void 0:R.trackingParams,(X=d.data)==null?void 0:X.loggingDirectives))}else{var A=d.layer,l=d.visibilityCallback||function(){},k=d.prescanCallback,T=EH(M);
R=[];d.showOption&&R.push(N.observe(M,function(){d.skipLogging&&d.skipLogging()||_.Mx().reportShown(T,void 0,A);l(!0)},d.showOption));
d.hideOption&&R.push(N.observe(M,function(){_.Mx().reportHidden(T,void 0,A);l(!1)},d.hideOption));
d.prescanOption&&k&&R.push(N.observe(M,function(){k()},d.prescanOption));
T.visibilityMonitorKeys=R}};
Z8v=function(M,d){M=EH(M);if(M.visualElement&&!d)return!0;if(!d)return!1;var N=!1;if(_.Q("enable_client_ve_spec_logging")){var R,X;N=!!((R=d.loggingDirectives)==null?0:(X=R.clientVeSpec)==null?0:X.uiType)}R=Eg6(d);if(!R&&!N)return!1;_.Q("mweb_component_visibility_logging")&&(M.veContainer||(M.veContainer={}),M.veContainer.trackingParams=R);if(M.trackedParams&&M.trackedParams===R)return!1;var A;if(_.Q("enable_client_ve_spec_logging")&&((A=M.visualElement)==null?0:A.isClientVe())){var l;A=(l=M.visualElement)==
null?void 0:l.getAsJspb();var k,T,W,w;if(_.Cy(A,2)===((k=d.loggingDirectives)==null?void 0:(T=k.clientVeSpec)==null?void 0:T.uiType)&&_.Cy(A,3,-1)===((W=d.loggingDirectives)==null?void 0:(w=W.clientVeSpec)==null?void 0:w.elementIndex))return!1}if(_.Q("enable_client_ve_spec_logging")){var p,m;!M.visualElement&&((p=d.loggingDirectives)==null?0:(m=p.clientVeSpec)==null?0:m.uiType)&&(k=d.loggingDirectives.clientVeSpec,d=k.uiType,l=k.elementIndex,k=k.clientYoutubeData,M.visualElement=_.dk(_.Nx(),{veType:d,
elementIndex:l,clientYouTubeData:k}))}return!0};
Eg6=function(M){if(M==null?0:M.rendererContext){var d=_.q(M.rendererContext,_.NAi);if(d==null?0:d.loggingDirectives)return d.loggingDirectives.trackingParams}return(M==null?0:M.loggingDirectives)?M.loggingDirectives.trackingParams:M==null?void 0:M.trackingParams};
EH=function(M){var d;return(d=M.polymerController)!=null?d:M};
AEp=function(M){_.Mx();if(_.JA(RA().JSC$10351_elementShouldLogGesture).bind(RA())(M,4)){Rjr(M);var d=XWq(M);Fjq.set(M,d)}};
Rjr=function(M){Fjq.has(M)&&(Fjq.get(M).cancel("untrack hover element"),Fjq.delete(M))};
XWq=function(M){var d,N=[],R=!1,X=new _.Xy(function(A,l){XQ(M,"mouseenter",_.JA(function(){var k,T,W;return _.B(function(w){if(w.nextAddress==1)return d=(0,_.Gs)(),k=VTN(M),N.push(k),T=lnZ(M,function(){R=!0;l(Error("Xg"))}),_.D(w,k,2);
if(w.nextAddress!=3)return T&&FQ(T),W=$qr(M),N.push(W),_.D(w,W,3);A();_.Vy(w)})}))});
X.then(function(){var A=(0,_.Gs)()-d;A=Math.round(A);if(!(500>A||6E5<=A)){var l=M.getScreenLayer?M.getScreenLayer():void 0;l=_.Ou(l)||"";var k=BAr(_.Mx(),M);_.H1(l,M.visualElement?M.visualElement:_.At(k),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:A}})}AEp(M)},function(){Vu&&(Vu(),Vu=null);
R&&(Rjr(M),AEp(M))});
return X};
VTN=function(M){var d;return(new _.Xy(function(N,R){Vu=function(){R(Error("Yg"))};
d=_.IQ.debounce(_.JA(function(){FQ(X);N()}),1,100);
var X=_.lI(M,"mousemove",d)})).thenCatch(function(){var N=_.IQ.cancelDebouncedJobMap.get(d);
N&&_.IQ.cancelJob(N)})};
$qr=function(M){var d;return(new _.Xy(function(N,R){Vu=function(){R(Error("Zg"))};
d=XQ(M,"mouseleave",_.JA(function(){N()}))})).thenCatch(function(){FQ(d)})};
lnZ=function(M,d){return XQ(M,"mouseleave",_.JA(d))};
TAv=function(M){kK2&&_.Bz.cancel(kK2);kK2=_.Bz.run(function(){_.YP(M,"yt-visibility-refresh");kK2=0})};
DqN=function(M){M=Number(M);return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
Wjj=function(M){if(!M)return!1;if(_.q(M,_.gJv))return!0;var d;if(M=(d=_.q(M,_.XP))==null?void 0:d.commands)for(d=_.V(M),M=d.next();!M.done;M=d.next())if(_.q(M.value,_.gJv))return!0;return!1};
wWq=function(M){var d=!0;d=d===void 0?!0:d;if(!M.useSignals&&!M.experimentalPropertiesChanged||_.Q("experimental_templating_behavior_nopatch_killswitch")){var N=M._propertiesChanged;M._propertiesChanged=function(R,X,A){d?M.debounceRender():M.doRender();N&&N.call(M,R,X,A)}}};
pWZ=function(M,d){if(M.useSignals||M.experimentalPropertiesChanged)if(_.Q("experimental_templating_behavior_nopatch_killswitch"))M.experimentalPropertiesChanged=function(){};
else return;var N=new Set,R=[M].concat(_.wu(M.behaviors));R=_.V(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;for(var A in X.properties)N.has(A)||(M._addPropertyEffect(A,"function",d),N.add(A))}};
mqi=function(){var M=Polymer.Element,d=M._prepareTemplate;M._prepareTemplate=function(){d.call(this);var N=this.prototype;if(N.experimentalTemplatingInUse&&N.experimentalTemplatingInUse()&&N.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.qZ(Error("$g"));else{N=this.template.content.childNodes;for(var R=N.length-1;R>=0;R--){var X=N[R];X.nodeName!=="STYLE"&&X.nodeName!=="LINK"&&X.nodeName!=="SCRIPT"&&X.nodeName!=="#comment"&&X.remove()}}}};
hjZ=function(M){var d=!0;d=d===void 0?!0:d;mqi();var N=M.ready;M.ready=function(){this._template=null;N.call(this)};
pWZ(M,d?M.debounceRender:M.doRender)};
q62=function(M,d,N){if(N===null||N===void 0)return N;var R=W0v(M.tagName.toLowerCase(),d,function(){throw Error("Qb");});
if(R===null)return N;R=Q6A[R];var X;if((X=R.isUnwrappable)==null?0:X.call(R,N)){if(R.unwrap)return R.unwrap(N);throw Error("ch");}return R.filterString?R.filterString(M.tagName,d,String(N)):N};
InN=function(M,d,N){var R=d[d.length-1]!=="$",X=q62(M,d,N);if(R)if(typeof X==="function"&&d.startsWith("reactiveon")&&d===d.toLowerCase()){var A=HU;jQ6(M,d.slice(8),function(l){qF(A,function(){X(l)})})}else M[d]=X;
else N=X==null?null:String(X),OAq(M,d.slice(0,-1),N)};
kj=function(M){vJN.length===0&&requestAnimationFrame(function(){setTimeout(function(){var d=vJN.slice();vJN.length=0;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;try{N()}catch(R){_.cl(R)}}})});
vJN.push(M)};
O0L=function(M){if(M){var d=M.component;if(d){var N;d==null||(N=d.events)==null||N.publish("DISCONNECTED");var R;d==null||(R=d.onDisconnected)==null||R.call(d)}var X,A;(X=M.__spec)==null||(A=X.didUnmount)==null||A.call(X);for(d=0;d<M.childNodes.length;d++)O0L(M.childNodes[d])}};
DH=function(M,d,N){var R=d&&d.key,X=cg;X[0]=M;X[1]=R;X[2]=void 0;for(var A in d)d.hasOwnProperty(A)&&(M=d[A],R=S9,R.push(A),R.push(M));d=cg;a:{if(A=cg[2])for(M=0;M<A.length;M+=2)if(A[M]==="nonce"){A=A[M+1];break a}A=""}A=HAZ(d[0],d[1],A);M=j9(A);R=d[2];if(!M.staticsApplied&&(M.staticsApplied=!0,R&&R.length))if((X=M._attrsArr)&&X.length){for(X=0;X<R.length;X+=2)Tr[R[X]]=X+1;X=M._attrsArr||(M._attrsArr=vWv(0));for(var l=0,k=0;k<X.length;k+=2){var T=X[k],W=X[k+1],w=Tr[T];w?R[w]===W&&delete Tr[T]:(X[l]=
T,X[l+1]=W,l+=2)}vg(X,l);for(var p in Tr)K0Z(A,p,R[Tr[p]],fa),delete Tr[p]}else for(p=0;p<R.length;p+=2)K0Z(A,R[p],R[p+1],fa);axq(A,M,fa);vg(d,0);N&&N(so);nWi()};
j62=function(M){var d=M.toString().toLowerCase();return function(N,R){DH(d,N,R)}};
_.gk=function(M,d,N){N===void 0?delete M[d.name]:M[d.name]=N};
_.Wz=function(M){var d={androidIncludeFontPadding:!1},N=0,R=[],X=[],A=[];if(M.simpleText)return d.content=M.simpleText,d;if(M.runs===void 0)return d.content="",d;M=_.V(M.runs);for(var l=M.next();!l.done;l=M.next()){l=l.value;var k=l.text,T=void 0,W=(T=k)==null?void 0:T.length;if(k&&W){R.push(k);if(l.bold||l.italics||l.strikethrough||l.underline||l.textColor!=null&&l.textColor!==0||l.deemphasize){k=X;T=k.push;var w={startIndex:N,length:W};l.bold&&(w.weightLabel="FONT_WEIGHT_MEDIUM");l.italics&&(w.italic=
!0);l.strikethrough&&(w.strikethrough="LINE_STYLE_SINGLE");l.underline&&(w.underline="LINE_STYLE_SINGLE");l.textColor!=null&&l.textColor!==0?document.documentElement.hasAttribute("dark")?w.fontColor=l.darkModeTextColor||l.textColor:w.fontColor=l.textColor:l.deemphasize&&(document.documentElement.hasAttribute("dark")?w.fontColor=parseInt("ff"+s6i("#aaa").substring(1),16):w.fontColor=parseInt("ff"+s6i("#606060").substring(1),16));T.call(k,w)}l.navigationEndpoint&&(k=A,T=k.push,w={startIndex:N,length:W,
onTap:{innertubeCommand:l.navigationEndpoint}},l.loggingDirectives&&_.gk(w,PEZ,l.loggingDirectives),T.call(k,w));N+=W}}d.content=R.join("");d.styleRuns=X.length?X:void 0;d.commandRuns=A.length?A:void 0;return d};
rEA=function(M){if(M==null||!M.runs)return!0;M=_.V(M.runs);for(var d=M.next();!d.done;d=M.next())if(d=d.value,d.bracket||d.errorUnderline||d.deemphasize||_.q(d,wk)||_.q(d,oJr))return!1;return!0};
Kjp=function(M,d){return function(N){var R=d.unit;if(R!==N)throw Error("fh`"+M+"`"+R+"`"+N);return d}};
pq=function(M){if(!((M==null?0:M.value)&&(M==null?0:M.unit)))return"";switch(M.unit){case "DIMENSION_UNIT_FRACTION":var d="%";break;default:d="px"}M=M.value;d==="%"&&(M*=100);return""+M+d};
yEi=function(M){try{return M()}catch(d){_.vh(d)}};
_.ht=function(M){var d=_.q(M,_.mX);if(d)return d;if((d=_.q(M,JE6))&&d.commands)return cEZ(d.commands);if((d=_.q(M,S6r))&&d.commands)return cEZ(d.commands);if((M=_.q(M,zjv))&&M.identifier&&M.command&&(b02||(b02=[]),!b02.includes(M.identifier)))return b02.push(M.identifier),_.q(M.command,_.mX)};
cEZ=function(M){if(M.length!==0){var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())(N=_.ht(N.value))&&d.push(N);return{commandExecutorCommand:{commands:d}}}};
_.qx=function(M){var d=M.defaultTarget,N=M.elementConfig,R=M.elementsCommand,X=M.skipOnClick,A=M.forceNewState,l=M.additionalCommandArgs,k=M.innertubeCommand||_.ht(R);if(k){M={};var T=ejS(k);R=T.navigatingCommand;T=T.href;R&&T?(M.href$=T,H0L(M,R,T,d),_.Q("web_atagconfig_pointerdown")&&nJL(M,R),A&&(M["force-new-state$"]=!0)):(M.role$="button",M.href$="javascript:void(0);");_.q(k,i06)&&(M["aria-haspopup$"]=!0);X||(M.onclick=function(W){if(fnq(W)){var w=Object.assign({},{form:{element:W.target,event:W}},
l);W.preventDefault();_.Qu(k,w)}});
return Object.assign({},N,M)}};
Ljr=function(M){if(M.length){if(M.length===1)return M[0];var d={};_.gk(d,_.XP,{commands:M});return d}};
IA=function(M){return M&&M.href$!=="javascript:void(0);"};
ejS=function(M){var d,N=((d=_.q(M,_.XP))==null?void 0:d.commands)||[M];M=_.V(N);for(d=M.next();!d.done;d=M.next()){d=d.value;var R=void 0,X=void 0;N=(X=_.q((R=d)==null?void 0:R.commandMetadata,_.an))==null?void 0:X.url;_.Q("web_remove_web_navigation_endpoint_data")||(R=void 0,N=N||((R=_.q(d,tTS))==null?void 0:R.url));if(N&&N!=="/service_ajax"){if(R=k8(N,GKZ))return M=_.$8(R),{navigatingCommand:d,href:M};_.vh(new _.WJ("AttributedString URL could not be sanitized",N))}}return{}};
fnq=function(M){return M.button!==void 0?M.button===0&&!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey):!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey)};
H0L=function(M,d,N,R){N=!Ul(N);var X,A,l;if((X=_.q(d,_.F8))!=null&&X.nofollow||(A=_.q(d,_.nL))!=null&&A.nofollow||(l=_.q(d,_.JQ))!=null&&l.nofollow||N)M.rel$="nofollow";var k;d=((k=_.q(d,_.JQ))==null?void 0:k.target)==="TARGET_NEW_WINDOW"?"_blank":R===void 0?"":R;M.target$=d};
nJL=function(M,d){d.clickTrackingParams&&(M.params={itct:d.clickTrackingParams});M.onpointerdown=function(N){anp(N)};
M._data=d};
UqL=function(M){(M.loggingUrls||[]).forEach(function(d){cf(d.baseUrl,d.attributionSrcMode)})};
u2j=function(M){M.currentTarget._data&&UqL(M.currentTarget._data)};
anp=function(M){var d=M.currentTarget;M=yEi(function(){return d.href});
var N=d.params;M&&_.tX(M,N||{},8,!0)};
CEZ=function(M,d){if(d=_.q(d,_.JQ))(d==null?void 0:d.target)==="TARGET_NEW_WINDOW"&&(M.target="_blank"),d.nofollow&&(M.rel="nofollow")};
xqL=function(M){M=_.q(M==null?void 0:M.commandMetadata,_.an);return(M==null?0:M.url)?M.url:null};
_.vz=function(M,d){(M=_.ht(M))&&_.Qu(M,d)};
_.Qu=function(M,d){yaq(function(N){d?N.resolveCommand(M,d):N.resolveCommand(M)})};
ML6=function(M,d){var N=["yt-core-attributed-string__link"];d!=null&&d.noLinkColor||((d==null?0:d.isOverlay)?N.push("yt-core-attributed-string__link--overlay-call-to-action-color"):N.push("yt-core-attributed-string__link--call-to-action-color"),(d==null?0:d.linkInheritColor)&&N.push("yt-core-attributed-string--link-inherit-color"));N={className:N.join(" "),tabindex$:"0"};var R=M.onTap||M.onLongPress;if(!R)return N;var X=Y6i(M);X&&(N["aria-label$"]=X);d=_.qx({elementsCommand:R,elementConfig:N,skipOnClick:!(d==
null||!d.skipOnClick),forceNewState:!0});M.onLongPress&&(R=new Z0S(function(){var A=_.ht(M.onLongPress);A&&_.h().resolve(_.xV).resolveCommand(A)}),d&&EJZ(R,d));
return d||N};
Y6i=function(M){var d,N;return(d=M.onTapOptions)==null?void 0:(N=d.accessibilityInfo)==null?void 0:N.accessibilityLabel};
dK6=function(M){var d=M;M<=16777215&&(d+=parseInt("ff000000",16));return _.ml(d)};
NXi=function(M){var d=M.isDarkTheme;var N=M.extension;M=M.runColor;var R=void 0;if(N=N==null?void 0:N.colorMap){d=d?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";N=_.V(N);for(var X=N.next();!X.done;X=N.next())if(X=X.value,d===X.key){R=X.value;break}}R==null&&M&&(R=M);if(R)return dK6(R)};
Oz=function(M){var d=M.config;var N=M.image;var R=M.imageConfig;var X=M.imageWrapperConfig;var A=M.run;var l=M.tag;var k=M.textLength;var T=M.startIndex===void 0?0:M.startIndex;M=M.length;T===void 0&&(T=0);A={run:A,startIndex:T,endIndex:M!==void 0?T+M:k,tag:l};N&&(A.image=N);R&&(A.imageConfig=R);X&&(A.imageWrapperConfig=X);d&&(A.config=d);return A};
XZ2=function(M,d){var N=[];N.push("yt-core-attributed-string");(d==null?0:d.className)&&N.push(d==null?void 0:d.className);(d==null?0:d.ellipsisTruncate)?N.push("yt-core-attributed-string--ellipsis-truncate"):(d==null?0:d.noWrap)?N.push("yt-core-attributed-string--white-space-no-wrap"):(d==null?0:d.noPreWrap)||N.push("yt-core-attributed-string--white-space-pre-wrap");(d==null?0:d.linkInheritColor)&&N.push("yt-core-attributed-string--link-inherit-color");M.alignment&&N.push(REL(M.alignment));M.lineBreakMode&&
N.push("yt-core-attributed-string--word-wrapping");return N.join(" ")};
Fpi=function(M){if(M.weight)return M.weight;switch(M.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
AfA=function(M){switch(M){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
REL=function(M){switch(M){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
lN2=function(M,d,N){var R=d;M.content&&N&&(N=M.content.indexOf("\n"),N!==-1&&(R=Math.min(d,N)));if(!M.content||M.content.length<=R)d=M;else if(M.attachmentRuns||M.commandRuns||M.decorationRuns||M.styleRuns||M.paragraphStyleRuns){d=jC(M.content,R);N=R;var X=M.attachmentRuns;if(X){var A=[];X=_.V(X);for(var l=X.next();!l.done;l=X.next())l=Object.assign({},l.value),l.startIndex===void 0||l.startIndex>=N||(l.length||(l.length=0),l.length+l.startIndex>N&&(l.length=N-l.startIndex),A.push(l));N=A}else N=
void 0;A=VLZ(R,M.commandRuns);X=R;var k=M.decorationRuns;if(k){l=[];k=_.V(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;var W=_.q(T.textDecorator,sz);if(W&&W.startIndex!==void 0&&!(W.startIndex>=X)){T=Object.assign({},T,{textDecorator:{highlightTextDecorator:Object.assign({},W)}});W=_.q(T.textDecorator,sz);if(!W.length||W.length+W.startIndex>X)W.length=X-W.startIndex;l.push(T)}}X=l}else X=void 0;l=VLZ(R,M.styleRuns);if(k=M.paragraphStyleRuns)for(M=[],k=_.V(k),T=k.next();!T.done;T=k.next()){var w=
T.value;T=Object.assign({},w);if(!(T.startIndex===void 0||T.startIndex>=R)){if(!T.length||T.length+T.startIndex>R)T.length=R-T.startIndex;W=[];var p=void 0,m=void 0;if((p=w)==null?0:(m=p.listGroup)==null?0:m.listItems)for(w=_.V(w.listGroup.listItems),p=w.next();!p.done;p=w.next())if(p=Object.assign({},p.value),!(p.startIndex===void 0||p.startIndex>=R)){if(!p.length||p.length+p.startIndex>R)p.length=R-p.startIndex;W.push(p)}W.length>0&&(T.listGroup||(T.listGroup={}),T.listGroup=Object.assign({},T.listGroup,
{listItems:W}));M.push(T)}}else M=void 0;d={content:d,attachmentRuns:N,commandRuns:A,decorationRuns:X,styleRuns:l,paragraphStyleRuns:M}}else d=Object.assign({},M,{content:jC(M.content,R)});return d};
VLZ=function(M,d){if(d){var N=[];d=_.V(d);for(var R=d.next();!R.done;R=d.next())if(R=Object.assign({},R.value),!(R.startIndex===void 0||R.startIndex>=M)){if(!R.length||R.length+R.startIndex>M)R.length=M-R.startIndex;N.push(R)}return N}};
jC=function(M,d){var N=d,R;if(R=N>0)R=M.charCodeAt(N-1),R=R>=55296&&R<=56319;R&&(N=M.charCodeAt(N),R=N>=56320&&N<=57343);R&&--d;return M.substring(0,d)};
TXZ=function(M,d,N){N=N===void 0?$Ki:N;if(M){var R=_.h().resolve(tQ);R||_.Q("mweb_no_observer_killswitch")?dqZ(M,{data:d,observer:R,visibilityCallback:N,hideOption:BXZ,showOption:kWv,layer:M.layer}):_.vh(new _.WJ("Warning: monitorVisibility called with null observer",M.tagName,d==null?void 0:d.loggingDirectives,d==null?void 0:d.trackingParams))}else _.vh(new _.WJ("Warning: monitorVisibility called with null element",d==null?void 0:d.loggingDirectives,d==null?void 0:d.trackingParams,d==null?void 0:
d.rendererContext))};
hEA=function(M,d){var N=[],R=M.content.length,X,A=(X=_.h().resolve(_.CF(_.Pz)))==null?void 0:X();if(M.paragraphStyleRuns){X=_.V(M.paragraphStyleRuns);for(var l=X.next();!l.done;l=X.next()){var k=N.push,T=k.apply;var W=void 0;l=l.value;if((W=l.listGroup)!=null&&W.listItems){W=[];b:switch(l.listGroup.listType){case "LIST_TYPE_BULLET":var w="ul";break b;default:w="span"}W.push(Oz({run:l,textLength:R,tag:w,config:{className:"yt-core-attributed-string__list-group"},startIndex:l.startIndex,length:l.length}));
w=_.V(l.listGroup.listItems);for(var p=w.next();!p.done;p=w.next()){p=p.value;b:switch(l.listGroup.listType){case "LIST_TYPE_BULLET":var m="li";break b;default:m="span"}W.push(Oz({run:l,textLength:R,tag:m,startIndex:p.startIndex,length:p.length}))}l=W}else l=[];T.call(k,N,_.wu(l))}}if(M.styleRuns&&(d==null||!d.noStyleRuns))for(X=_.V(M.styleRuns),k=X.next();!k.done;k=X.next()){k=k.value;T=NXi({extension:_.q(k.styleRunExtensions,DKq),isDarkTheme:A===void 0?!1:A,runColor:k.fontColor});W=[];T&&W.push("yt-core-attributed-string--link-inherit-color");
k.italic&&W.push("yt-core-attributed-string--italicized");k.underline&&k.strikethrough?W.push("yt-core-attributed-string--underline-strikethrough",AfA(k.underline)):k.underline?W.push("yt-core-attributed-string--underlined",AfA(k.underline)):k.strikethrough&&W.push("yt-core-attributed-string--strikethrough",AfA(k.strikethrough));if(k.baselineOffset){a:switch(k.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":l="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":l=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:l="yt-core-attributed-string--baseline-offset-unknown"}W.push(l)}l=W.join(" ");W=k;w={};if(W.weight||W.weightLabel)w.fontWeight=Fpi(W).toString();T&&(w.color=T);N.push(Oz({run:k,textLength:R,tag:"span",config:{className:l,style:w},startIndex:k.startIndex,length:k.length}))}if(M.decorationRuns)for(X=_.V(M.decorationRuns),k=X.next();!k.done;k=X.next())k=k.value,T={},k.textDecorator&&(w=k.textDecorator,l=A===void 0?!1:A,p=[],W=
_.q(w,sz),w=_.q(w,gmi),W?(w=p,p=w.concat,m=[],(l=NXi({extension:_.q(W.highlightTextDecoratorExtensions,Wp2),isDarkTheme:l,runColor:W.backgroundColor}))&&m.push("background-color: "+l+";"),W.backgroundCornerRadius!==void 0&&m.push("border-radius: "+W.backgroundCornerRadius+"px;"),W.leftPadding!==void 0&&m.push("padding-left: "+W.leftPadding+"px;"),W.rightPadding!==void 0&&m.push("padding-right: "+W.rightPadding+"px;"),W.topPadding!==void 0&&m.push("padding-top: "+W.topPadding+"px;"),W.bottomPadding!==
void 0&&m.push("padding-bottom: "+W.bottomPadding+"px;"),p=p.call(w,m)):w&&(W=p,p=W.concat,l=l?"#2ba640":"#107516",l=w.color?dK6(w.color):l,l=["padding: 2px;","border-top: solid "+l+" 2px;","border-bottom: solid "+l+" 2px;","background: linear-gradient(135deg, "+l+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+l+" 3px, rgba(0, 0, 0, 0) 3px);"],p=p.call(W,l)),l=p.join(" "),T.style$=l,l=k.textDecorator,W=[],w=_.q(l,gmi),_.q(l,sz)?W.push("yt-core-attributed-string--highlight-text-decorator"):
w&&W.push("yt-core-attributed-string--bracket-text-decorator"),l=W.join(" "),T.className=l,T.dir="auto"),l=_.q(k.textDecorator,sz),W=_.q(k.textDecorator,gmi),w=_.q(k.textDecorator,sz),p=_.q(k.textDecorator,gmi),N.push(Oz({run:k,textLength:R,tag:"span",config:T,startIndex:(l==null?void 0:l.startIndex)||(W==null?void 0:W.startIndex)||0,length:(w==null?void 0:w.length)||(p==null?void 0:p.length)||0}));if(M.commandRuns&&(d==null||!d.noEndpoints))for(A=_.V(M.commandRuns),X=A.next();!X.done;X=A.next())X=
X.value,k=ML6(X,d),N.push(Oz({run:X,textLength:R,tag:"a",config:k,startIndex:X.startIndex,length:X.length}));if(M.attachmentRuns)for(M=_.V(M.attachmentRuns),A=M.next();!A.done;A=M.next()){A=A.value;T=k=void 0;X={className:"yt-core-attributed-string--inline-block-mod"};if((T=A.element)==null?0:T.properties){T=(k=A.element)==null?void 0:k.properties;k=[];T=_.q(T,wZN);if(T==null?0:T.margin)T=T.margin,T.left&&k.push("margin-left: "+pq(T.left)+";"),T.right&&k.push("margin-right: "+pq(T.right)+";"),T.top&&
k.push("margin-top: "+pq(T.top)+";"),T.bottom&&k.push("margin-bottom: "+pq(T.bottom)+";");k=k.length!==0?k.join(" "):void 0;X.style$=k}l=void 0;k={alt:"",preserveHeight:!0,preserveWidth:!0};T=["yt-core-attributed-string__image-element"];if(A.alignment){a:switch(A.alignment){case "ALIGNMENT_BASELINE":W="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":W="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:W=
"yt-core-attributed-string__image-element--image-alignment-bottom"}T.push(W)}if((l=A.element)==null?0:l.properties)l=[],W=_.q(A.element.properties,wZN),(W==null?0:W.height)&&l.push("height: "+pq(W.height)+";"),(W==null?0:W.width)&&l.push("width: "+pq(W.width)+";"),l=l.length!==0?l.join(" "):void 0,k.style$=l,W=void 0,l=((W=_.q(A.element.properties,pZS))==null?void 0:W.label)||"",k.alt=l;k.className=T.join(" ");T=void 0;w=W=void 0;l=((w=A.element)==null?0:w.type)?(W=_.q(A.element.type,mKZ))==null?
void 0:W.image:void 0;N.push(Oz({run:A,textLength:R,tag:"img",image:l,imageConfig:k,imageWrapperConfig:X,startIndex:A.startIndex,length:(T=A.length)!=null?T:0}))}if(d==null?0:d.headerRuns)for(d=_.V(d.headerRuns),M=d.next();!M.done;M=d.next())if(M=M.value,M.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(M.headerMapping)){a:{switch(M.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":A=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":A="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":A="yt-core-attributed-string--heading-3";break a}A=void 0}N.push(Oz({run:M,textLength:R,tag:"span",config:A?{className:A}:void 0,startIndex:M.startIndex,length:M.length}))}return N};
_.oA=function(M){return(M==null?void 0:M.content)!==void 0};
Qyr=function(M){return _.oA(M)?M:_.Wz(M)};
q5v=function(M){return M.image!==void 0&&M.imageConfig!==void 0};
INA=function(M,d){if(d==null?0:d.userInput)for(M=_.V(M),d=M.next();!d.done;d=M.next())if(d=d.value,d.tag!=="a"&&d.tag!=="li"){var N=void 0;(N=d).config||(N.config={});d.config.dir=d.tag==="ul"?_.h().resolve(_.rk):"auto"}};
vmL=function(M){return function(d){var N=M.run;(N.onTap!==void 0||N.onLongPress!==void 0)&&_.q(N,PEZ)&&TXZ(d,{loggingDirectives:_.q(N,PEZ)})}};
Omi=function(M){return function(d){for(var N in M)(fa[N]||fa[Oo["default"]])(d,N,M[N])}};
omZ=function(M,d){jy6(d);var N={data:null,start:0,end:M.length,parts:[]};d=_.V(d);for(var R=d.next();!R.done;R=d.next())R=R.value,syZ(N,R.startIndex,R.endIndex,R);Pjr(M,N);return N};
syZ=function(M,d,N,R){for(var X=_.V(M.parts),A=X.next();!A.done;A=X.next()){A=A.value;if(typeof A==="string")throw Error("hh");if(A.start<=d&&N<=A.end){syZ(A,d,N,R);return}}M.parts.push({data:R,parts:[],start:d,end:N})};
Pjr=function(M,d){for(var N=d.parts.length;N>=0;N--){var R=d.parts[N],X=d.parts[N-1],A=N===d.parts.length?d.end:R.start;X=N===0?d.start:X.end;A!==X&&d.parts.splice(N,0,M.slice(X,A));R&&Pjr(M,R)}};
jy6=function(M){M.sort(function(d,N){if(d.startIndex<N.startIndex)return-1;if(N.startIndex<d.startIndex)return 1;d=d.endIndex-d.startIndex;N=N.endIndex-N.startIndex;return d>N?-1:N>d?1:0})};
_.rf2=function(M){var d=M.thumbnails;if(d){M={sources:[]};d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R={};R.url=N.url;R.width=N.width;R.height=N.height;M.sources.push(R)}return M}};
KpL=function(M,d,N,R){if(!d)return M.length>=1?M[M.length-1]:null;if(R)for(var X=_.V(M),A=X.next();!A.done;A=X.next()){A=A.value;var l=void 0,k=(l=A.url)==null?void 0:l.indexOf(R);if(k!==void 0&&k>=0)return A}R=_.V(M);for(X=R.next();!X.done;X=R.next())if(X=X.value,X.width&&X.height&&(N&&X.width>=d||!N&&X.height>=d))return X;for(d=M.length-1;d>=0;d--)if(N&&M[d].width||!N&&M[d].height)return M[d];return M[0]};
_.yfZ=function(M){var d;return(M=(d=M.sources)==null?void 0:d[0])?M.width/M.height:0};
Jf6=function(M){if(M.sources){M=_.V(M.sources);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;if((N=d.clientResource)==null?0:N.imageName)return d}}};
cfN=function(M){var d;if((d=M.clientResource)!=null&&d.imageColor)return _.ml(M.clientResource.imageColor)};
_.zE6=function(M,d,N,R,X,A,l){if(!d||d.length===0||d[0].clientResource)return null;if(N&&d[0].url)return d[0].url;R===void 0&&(R=!0);if(R){var k;M=S5i*(X||(M==null?void 0:(k=M.getBoundingClientRect())==null?void 0:k.width)||0)}else{var T;M=S5i*(A||(M==null?void 0:(T=M.getBoundingClientRect())==null?void 0:T.height)||0)}d=KpL(d,M,R,l);return(d==null?0:d.url)?d.url:(d==null?0:d.imageData)?d.imageData:null};
bmi=function(M,d,N){N=N?[N]:[];M.opacity&&N.push("opacity: "+M.opacity+";");d&&M.placeholderColor?(M=_.ml(M.placeholderColor),N.push("background-color: "+M+";")):N.push("background-color: transparent;");return N.join(" ")};
eEp=function(M,d,N,R,X){var A=["yt-core-image"];d&&A.push(d);N||A.push("yt-core-image--fill-parent-height");R||A.push("yt-core-image--fill-parent-width");switch(M.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":A.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":A.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":A.push("yt-core-image--content-mode-center");break;default:A.push("yt-core-image--content-mode-scale-to-fill")}M.flipForRtlLayout&&
A.push("yt-core-image--flip-rtl");switch(X){case "TOP_START":var l;A.push(((l=document.body)==null?void 0:l.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return A.join(" ")};
nmi=function(M){var d;if(M==null?0:(d=M.clientResource)==null?0:d.imageName){var N;M=(N=M.clientResource)==null?void 0:N.imageName;a:{switch(M){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":N="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":N="yt-logos-ext:yt-logo-updated";break a}N=void 0}return N||HmA.get(M)||M}};
Kq=function(M){return _.Q("mweb_wiz_skip_render")?imZ(M):fNi(M)};
imZ=function(M){return function(d){var N=HAZ("wink-root");Jl();nWi();AIZ(N,_.g(M,d))}};
fNi=function(M){var d=d===void 0?!1:d;return function(N){if(!d||!_.Q("mweb_skip_keto_to_c3_if_no_data")||N.data!==void 0){var R=a4(!1);try{var X=N.children;_.Q("mweb_render_outside_patch_killswitch")||so?X?iv(_.g(M,N,X)):iv(_.g(M,N)):_.vh(new _.WJ("ketoToC3 called outside of a patch",{tagName:M.TAG_NAME}))}finally{a4(R)}}}};
Lpq=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
GW6=function(M,d){M.onViewportEntered=d;tL2.observe(M)};
aNj=function(){var M={rootMargin:"10%",threshold:.01};_.Q("mweb_enable_set_io_root_to_null_safari")?M.root=null:_.Q("mweb_enable_set_io_root_to_body_safari")&&(M.root=document.body);return new IntersectionObserver(function(d,N){d.filter(function(R){return R.intersectionRect.height>0}).forEach(function(R){R=R.target;
if(!_.Q("mweb_enable_only_update_image_when_connected")||R.isConnected!==!1){var X;(X=R.onViewportEntered)==null||X.call(R);N.unobserve(R)}})},M)};
UK2=function(M,d,N,R,X){function A(){if(R){var k=R.loadedClass,T=R.notifyOnUnloaded;k&&_.yu(M,k);T&&M.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function l(){var k=N(d,M);k&&M.getAttribute("src")!==k&&(_.Q("mweb_enable_only_update_image_when_connected")&&M.isConnected===!1||k===M.src||(M.src=k),A())}
X=X===void 0?!0:X;M.removeAttribute("src");A();d&&(X?GW6(M,l):l())};
ueN=function(M,d){for(var N in d)N==="className"?M.className=d[N]:(fa[N]||fa[Oo.default])(M,N,d[N])};
Cji=function(M,d,N,R){Kq(_.Jt)({contentMode:d.contentMode,loadedClass:d.loadedClass,isPreloaded:d.isPreloaded,notifyOnLoaded:d.notifyOnLoaded,notifyOnUnloaded:d.notifyOnUnloaded,preferredThumbnail:d.preferredThumbnail,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,objectPosition:d.objectPosition,targetWidth:d.targetWidth,targetHeight:d.targetHeight,shouldShowPlaceholder:d.shouldShowPlaceholder,useWidth:d.useWidth,alt:d.alt,className:d.className,onerror:d.onerror,onload:d.onload,style$:d.style$,
color:d.color,width:d.width,height:d.height,"aria-hidden$":d["aria-hidden$"],draggable:d.draggable,"data-disabled$":d["data-disabled$"],data:M,callback:N,renderLazy:R===void 0?!0:R,hideOn404:!1})};
Y5j=function(M,d,N){N=N===void 0?!1:N;var R=M.sources!==void 0?M:_.rf2(M);if(R){var X=d.onload;d.onload=function(T){var W=T.target;N&&W.naturalWidth===120||_.cz(W,"yt-core-image--loaded");d.notifyOnLoaded&&W.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));X==null||X(T)};
d.targetWidth&&d.preserveWidth&&(d.width=d.targetWidth);d.targetHeight&&d.preserveHeight&&(d.height=d.targetHeight);var A=Jf6(R),l=A&&nmi(A);if(l)return(M=cfN(A))&&(d.color=M),{type:"icon",iconName:l,config:Object.assign({},d,d.alt?{}:{"aria-hidden$":"true"},{"aria-label$":d.alt,role:"img"})};if(M.sources===void 0){d.alt=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label||d.alt;d.style$=bmi(M,d.shouldShowPlaceholder,d.style$);var k;d.isPreloaded=!((k=_.q(M,
xKv))==null||!k.isPreloaded)}d.contentMode&&!R.contentMode&&(R.contentMode=d.contentMode);d.className=eEp(R,d.className,d.preserveHeight,d.preserveWidth,d.objectPosition);d.loadedClass="yt-core-image--loaded";return{type:"image",image:R,config:d}}};
_.Zmi=function(){var M=_.wH.apply(0,arguments);return _.Hh(function(d){var N=M.map(function(R){return R(d)});
return function(){return void N.forEach(function(R){return void(R==null?void 0:R())})}})};
SC=function(M,d){var N=d==null?void 0:d.initial;return _.Al(function(){_.QJ(!0);return N=M(N)},{equals:d==null?void 0:d.isEqual},"rSlKsc")};
Em2=function(M,d){if(M===d)return!0;if(M===void 0||d===void 0)return!1;var N,R,X,A,l,k,T,W;return M.content===d.content&&((N=M.styleRuns)==null?void 0:N.length)===((R=d.styleRuns)==null?void 0:R.length)&&((X=M.commandRuns)==null?void 0:X.length)===((A=d.commandRuns)==null?void 0:A.length)&&((l=M.attachmentRuns)==null?void 0:l.length)===((k=d.attachmentRuns)==null?void 0:k.length)&&((T=M.decorationRuns)==null?void 0:T.length)===((W=d.decorationRuns)==null?void 0:W.length)};
NjZ=function(M,d){if(M){var N=Qyr(M);if(N!=null&&N.content)if(_.Q("attr_string_reactive"))Kq(M7Z)({text:M,config:d});else{var R=!(d==null||!d.ariaLabel)||!(N.commandRuns&&N.commandRuns.length!==0||N.paragraphStyleRuns&&N.paragraphStyleRuns.length!==0);M=R?d==null?void 0:d.ariaLabel:null;R=R?"text":null;DH("span",{className:XZ2(N,d),dir$:(d==null?0:d.userInput)?"auto":void 0,"aria-label$":M,role$:R},function(){if(N.styleRuns||N.commandRuns||N.attachmentRuns||N.decorationRuns){var X=hEA(N,d);INA(X,
d);X=omZ(N.content,X);X=_.V(X.parts);for(var A=X.next();!A.done;A=X.next())dkZ(A.value)}else fu(N.content)})}}};
dkZ=function(M){typeof M==="string"?fu(M):q5v(M.data)?DH("span",M.data.imageWrapperConfig,function(){Cji(M.data.image,M.data.imageConfig)}):DH(M.data.tag,M.data.config,function(d){vmL(M.data)(d);
d=_.V(M.parts);for(var N=d.next();!N.done;N=d.next())dkZ(N.value)})};
X7A=function(M){return M.parts.map(RSN)};
RSN=function(M){if(typeof M==="string")return M;M=q5v(M.data)?_.g("span",{el:_.Zmi(Omi(M.data.imageWrapperConfig))},_.g(_.Jt,Object.assign({},{data:M.data.image},M.data.imageConfig))):_.g(M.data.tag,{el:_.Zmi(vmL(M.data),Omi(M.data.config))},M.parts.map(RSN));return Fo(M)};
FWj=function(M,d){return M===d?!0:M===void 0||d===void 0?!1:M.noStyleRuns===d.noStyleRuns&&M.noLinkColor===d.noLinkColor&&M.noEndpoints===d.noEndpoints&&M.headerRuns===d.headerRuns&&M.isOverlay===d.isOverlay&&M.linkInheritColor===d.linkInheritColor&&M.userInput===d.userInput};
AGi=function(M){return function(){var d,N,R,X,A,l,k,T,W,w,p,m,I,O;return{ariaLabel:(d=M.ariaLabel)==null?void 0:d.call(M),className:(N=M.className)==null?void 0:N.call(M),ellipsisTruncate:(R=M.ellipsisTruncate)==null?void 0:R.call(M),isOverlay:(X=M.isOverlay)==null?void 0:X.call(M),linkInheritColor:(A=M.linkInheritColor)==null?void 0:A.call(M),noEndpoints:(l=M.noEndpoints)==null?void 0:l.call(M),noStyleRuns:(k=M.noStyleRuns)==null?void 0:k.call(M),noLinkColor:(T=M.noLinkColor)==null?void 0:T.call(M),
noPreWrap:(W=M.noPreWrap)==null?void 0:W.call(M),noWrap:(w=M.noWrap)==null?void 0:w.call(M),skipOnClick:(p=M.skipOnClick)==null?void 0:p.call(M),stopPropagation:(m=M.stopPropagation)==null?void 0:m.call(M),userInput:(I=M.userInput)==null?void 0:I.call(M),headerRuns:(O=M.headerRuns)==null?void 0:O.call(M)}}};
V7A=function(M){return M.value===""||M.value==="true"?!0:M.value==="false"?!1:isNaN(Number(M.value))?M.value:Number(M.value)};
zr=function(M,d){M=new lPN(M,d);_.qZ(M);throw M;};
$k6=function(M,d,N){var R=pLq(M);M._numRenders=0;try{var X=sqr(function(){return _.g(d,Object.assign({},N))})}catch(l){var A=function(k){k.args||(k.args=[]);
k.args.push("Error in web component wrapper");k.args.push(M.tagName.toLowerCase());return k};
_.IR(l instanceof Error?A(l):new lPN("Wiz rendering error",M.tagName.toLowerCase()));throw l;}finally{pLq(R)}return X};
_.eC=function(M,d,N){function R(w){var p={};w=_.V(w);for(var m=w.next();!m.done;m=w.next()){m=m.value;var I=void 0,O=void 0,y=void 0,c=_.Ff((y=(O=(I=m).getAttribute)==null?void 0:O.call(I,"slot"))!=null?y:"children");if(I=p[c])I.push(m);else if(c in A||c==="children")p[c]=[m]}if(Bjr)for(w=_.V(Object.keys(p)),c=w.next(),m={};!c.done;m={content$jscomp$55:void 0},c=w.next())c=c.value,c!=="children"&&(m.content$jscomp$55=p[c],p[c]=function(e){return function(){return e.content$jscomp$55}}(m));
return p}
N=N===void 0?{}:N;M.componentType!==Bg||zr("Components must be marked reactive to be used from web component wrapper.",d);f6.has(d)&&zr("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",d);var X,A=(X=N.props)!=null?X:{};L6.add(d);var l=kg6();X=function(){var w=l.apply(this,arguments)||this;w.rawProps={};w.queuingRender=!1;w.dispose=function(){};
w.isWebComponentWrapper=!0;w.isReparenting=!1;w.hasAttached=!1;return w};
_.v(X,l);X.prototype.render=function(){this.hasAttached=!0;for(var w=_.V([].concat(_.wu(this.attributes))),p=w.next();!p.done;p=w.next())p=p.value,p.name!=="slot"&&this.removeAttribute(p.name);w=Object.assign({},this.componentProps,this.slotProps);p=_.V($k6(this,M,w));w=p.next().value;p=p.next().value;!(w[0]instanceof Element)||w.length>1?zr("Wrapped Wiz components must return a single root element.",d):(w=w[0].tagName.toLowerCase(),w!==d&&zr("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(w+" !== '"+d),d),this.dispose=p)};
X.prototype.setUpProps=function(){for(var w=this.rawProps,p=this.attributes,m=_.V(Object.keys(A)),I=m.next();!I.done;I=m.next()){I=I.value;var O=void 0;((O=this)==null?0:O[I])&&this[I]!==TjN&&w[I]===void 0&&(w[I]=this[I],(O=Object.getOwnPropertyDescriptor(this.constructor.prototype,I))&&Object.defineProperty(this,I,O))}m=_.V(p);for(I=m.next();!I.done;I=m.next()){O=I.value;I=_.Ff(O.name);var y=I==="class"&&!p.getNamedItem("class-name");if(I in A||y)O=V7A(O),I!=="class"||w.className?w[I]=O:w.className=
O}p={};for(var c in A)A[c]===_.bI||Bjr&&A[c]===Dkj||(w[c]instanceof Function&&zr("Function props must be configured as STATIC, not SIGNAL.",d),I=_.V(_.d0(w[c],void 0,"uFSkac")),m=I.next().value,I=I.next().value,p[c]=I,w[c]=m);w=_.V([w,p]);this.componentProps=w.next().value;this.setters=w.next().value;this.slotProps=R(this.childNodes)};
X.prototype.connectedCallback=function(){n6===d&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in A&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
X.prototype.disconnectedCallback=function(){if(!this._isInert){var w;a:{if(_.gUZ)for(w=this;w;){if(_.WWZ.has(w)){w=!0;break a}w=w.parentElement}w=!1}if(w)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){w=_.V([].concat(_.wu(this.attributes)));for(var p=w.next();!p.done;p=w.next())p=p.value,p.name!=="slot"&&this.removeAttribute(p.name)}this.innerText="";B$2(this)}}};
X.prototype._setPendingPropertyOrPath=function(){};
X.prototype.notifyPath=function(){};
_.Hm.Object.defineProperties(X.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var k=_.V(Object.keys(A)),T=k.next(),W={};!T.done;W={prop$jscomp$103:void 0},T=k.next())W.prop$jscomp$103=T.value,T=void 0,((T=N.legacyPolymer)==null?0:T.forwardHostProps)&&AJL.has(W.prop$jscomp$103)||Object.defineProperty(X.prototype,W.prop$jscomp$103,{set:function(w){return function(p){var m=this;this._isInert||(this.setters?VJ(function(){var I,O;return void((O=(I=m.setters)[w.prop$jscomp$103])==null?void 0:O.call(I,p))}):(this.rawProps[w.prop$jscomp$103]=p,this.queuingRender&&w.prop$jscomp$103===
"data"&&p!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(W),
get:w7Z.has(W.prop$jscomp$103)?void 0:function(){return TjN}});
customElements.define(d,X)};
_.p7i=function(M,d){return(M=_.Hz(M,d))?_.$8(_.gH(M)):null};
_.nq=function(M){if(M=_.Hz(M,Number.MAX_VALUE,void 0,"width"))return _.gH(M)};
_.Hz=function(M,d,N,R){R=R===void 0?"width":R;if(!M||!M.length)return null;if(_.Q("kevlar_tuner_should_always_use_device_pixel_ratio")){var X=window.devicePixelRatio;_.Q("kevlar_tuner_should_clamp_device_pixel_ratio")?X=Math.min(X,_.ZR("kevlar_tuner_clamp_device_pixel_ratio")):_.Q("kevlar_tuner_should_use_thumbnail_factor")&&(X=_.ZR("kevlar_tuner_thumbnail_factor"));mki=X}else mki||(mki=window.devicePixelRatio);X=mki;_.Q("kevlar_tuner_should_always_use_device_pixel_ratio")?d*=X:X>1&&(d*=X);if(_.Q("kevlar_tuner_min_thumbnail_quality"))return M[0].url||
null;X=M.length;if(_.Q("kevlar_tuner_max_thumbnail_quality"))return M[X-1].url||null;if(N)for(var A=0;A<X;A++)if(M[A].url.indexOf(N)>=0)return M[A].url||null;for(N=0;N<X;N++)if(M[N][R]>=d)return M[N].url||null;for(d=X-1;d>0;d--)if(M[d][R])return M[d].url||null;return M[0].url||null};
qgS=function(){iI.size?setTimeout(function(){fq(hSv)},0):Q5Z=0};
hSv=function(){var M=(0,_.Gs)(),d=null,N=!1;iI.forEach(function(X){X.loaded=!0;X.loadTime=M;X.pendingPaint=!1;var A=IPi.get(X);A&&A.resolve(M);d=X;N||!X.ftlEligible&&X.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(N=!0)});
var R;((R=d)==null?0:R.markDirty)&&d.markDirty();iI.clear();Q5Z=0;N&&vUv(M)};
Or2=function(M){iI.add(M);M.pendingPaint=!0;Q5Z||(Q5Z=_.Lq(_.IQ,qgS))};
j5p=function(M){M.loaded=!1;M.loadTime=Infinity;var d=IPi.get(M);d&&(d.reject(Error("nh")),IPi.delete(M));M.pendingPaint&&(iI.delete(M),M.pendingPaint=!1)};
_.s5r=function(M){var d=M.indexOf(":");return d===-1?{originalName:M}:{originalName:M.substring(0,d),datasyncId:M.substring(d+1)}};
_.oUq=function(){return _.B(function(M){if(PZi!==void 0)return M.return(PZi);PZi=new Promise(function(d){var N;return _.B(function(R){switch(R.nextAddress){case 1:return _.Mv(R,2),_.D(R,_.tt.open("test-only"),4);case 4:return _.D(R,_.tt.delete("test-only"),5);case 5:_.cJ(R,3);break;case 2:if(N=_.Fg(R),N instanceof Error&&N.name==="SecurityError")return d(!1),R.return();case 3:d("caches"in window),_.Vy(R)}})});
return M.return(PZi)})};
yGN=function(){return _.B(function(M){if(M.nextAddress==1)return _.D(M,_.oUq(),2);if(!M.yieldResult)return M.return(void 0);rGi||(rGi=new KWr);return M.return(rGi)})};
JG2=function(M){var d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.D(A,yGN(),2);case 2:d=A.yieldResult;if(!d)throw Error("ph");return _.D(A,d.open("yt-player-local-img"),3);case 3:return N=A.yieldResult,_.D(A,N.match(M),4);case 4:R=A.yieldResult;if(!R)throw Error("qh");return _.D(A,R.blob(),5);case 5:return X=A.yieldResult,A.return(X)}})};
cGZ=function(M,d){for(var N in M)if(M.hasOwnProperty(N)&&d[N])return N;return null};
Sgi=function(M){return"stamp"+M.replace("-","_")+"_"};
zSi=function(M){var d=M.match(/\[\[([\w\.]+)\]\]/);if(d&&d.length>1)return d[1];_.qZ(Error("sh`"+M));return null};
brZ=function(M){return M===void 0?_.KF("REUSE_COMPONENTS",!1):M||!1};
nUS=function(M,d,N){N&&(d.is?(eSq.has(d)&&(M=eSq.get(d),N=M.listener,delete d[M.property],N.type==="element"&&d.removeEventListener(N.eventName,N.handler),eSq.delete(d)),Hrq(d)):d.__proto__==HTMLElement.prototype&&(d=new _.WJ("Rendererstamper removed a non custom element","Stamper: "+M+" element: "+(d&&d.nodeName)),_.vh(d)))};
irr=function(M,d,N,R){var X=d.node?d.node:d;_.K(N).parentNode===X&&(d.removeChild(N),nUS(M,N,R));if(M=Gr.get(N))Gr.delete(N),_.IQ.cancelJob(M);N.hidden=!1};
fPZ=function(M,d,N,R){if(d&&d.children&&(N=d.children[N]))if(_.KF("DEFERRED_DETACH"))for(;N&&!Gr.has(N);){var X=M,A=d,l=N,k=R;l.hidden=!0;X=_.gL(_.IQ,irr.bind(null,X,A,l,k),0);Gr.set(l,X);N=N.nextElementSibling}else for(;(l=d.lastElementChild)&&(d.removeChild(l),nUS(M,l,R),l!=N););};
LWi=function(M){var d=_.e5();_.IJ(function(){for(var N=_.V(M.slotContent),R=N.next();!R.done;R=N.next())d.value.appendChild(R.value)});
return _.g("__slot-el",{el:d,skip:!0})};
_.aA=function(M,d,N){N=N===void 0?t7A:N;f6.add(d);var R;(R=N).propNames!=null||(R.propNames=[]);var X=new Set(N.propNames),A=kg6();R=function(){var W=A.call(this)||this;W.props={};W.isUpdating=!1;W.hasAttached=!1;W.isInert=!1;W.updateQueued=!1;W.initialClasses=[];wLr(W,d);return W};
_.v(R,A);R.prototype.forwardKebabCaseProp=function(W,w){W=_.Ff(W);if(X.has(W)||W==="children")this.props[W]=w};
R.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var W=_.V(this.initialClasses),w=W.next();!w.done;w=W.next())(w=w.value)&&this.classList.add(w);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
R.prototype.handleSlottedContent=function(){for(var W=new Map,w=_.V(this.children),p=w.next();!p.done;p=w.next()){p=p.value;var m=void 0,I=(m=p.getAttribute("slot"))!=null?m:"children";(m=W.get(I))?m.push(p):W.set(I,[p]);if(!p.getAttribute("key")){var O=void 0,y=void 0;p.setAttribute("key",I+"_"+((y=(O=m)==null?void 0:O.length)!=null?y:0))}}W=_.V(W);for(w=W.next();!w.done;w=W.next())p=_.V(w.value),w=p.next().value,p=p.next().value,this.forwardKebabCaseProp(w,_.g(LWi,{slotContent:p}))};
R.prototype.connectedCallback=function(){var W=this;if(!wLr(this,d)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var w=_.V(this.attributes),p=w.next();!p.done;p=w.next())p=p.value,this.forwardKebabCaseProp(p.name,V7A(p));this.handleSlottedContent();N.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){W.afterFirstPatch()});
this.hasAttached=!0}};
R.prototype.attributeChangedCallback=function(W,w,p){this.isInert||this.isUpdating||this.isConnected||W!=="class"||this.initialClasses.push.apply(this.initialClasses,_.wu(p.split(" ")))};
R.prototype.disconnectedCallback=function(){nvi(this)};
R.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var W,w;AIZ(this,_.g(M,Object.assign({},this.props,{idomKey:(w=(W=this.__incrementalDOMData)==null?void 0:W.key)!=null?w:d})),!0)}catch(m){var p=m instanceof Error?m:new _.WJ("Wiz rendering error");p.args||(p.args=[]);p.args.push("Error in deprecated web component wrapper");p.args.push(d.toLowerCase());_.qZ(p);throw m;}finally{this.updateQueued=this.isUpdating=!1}}};
R.prototype.enqueueUpdate=function(){var W=this;return _.B(function(w){if(N.synchronous)return W.update(),w.return();if(W.updateQueued)return w.return();W.updateQueued=!0;return w.return(Promise.resolve().then(function(){W.update()}))})};
R.prototype.notifyPath=function(){N.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Hm.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var l=_.V(N.propNames),k=l.next(),T={};!k.done;T={prop$jscomp$105:void 0},k=l.next())T.prop$jscomp$105=k.value,Object.defineProperty(R.prototype,T.prop$jscomp$105,{set:function(W){return function(w){this.isInert||w===this.props[W.prop$jscomp$105]||(this.props[W.prop$jscomp$105]=w,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(T)});
customElements.define(d,R)};
_.GgZ=function(M,d){return _.Rz(M.entities,"markersEngagementPanelSyncEntity",d)};
aPL=function(M,d){return _.Rz(M.entities,"fantasyWinProbabilityEntity",d)};
UkZ=function(M,d){return _.Rz(M.entities,"fantasyTeamEntity",d)};
uj2=function(M,d){return _.Rz(M.entities,"fantasyPlayerEntity",d)};
CZi=function(M,d){return _.Rz(M.entities,"booleanEntity",d)};
xkZ=function(M,d){return _.Rz(M.entities,"qrCodeEntity",d)};
Ygq=function(M){return _.Rz(M.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
ZrA=function(){if(Uz)return Uz;if(window.lottie)return Uz=Promise.resolve(window.lottie);var M=_.vf(_.rK("LOTTIE_URL"));return M?Uz=new Promise(function(d,N){var R=document.createElement("script");R.addEventListener("load",function(){d(lottie)});
R.addEventListener("error",function(X){var A="Lottie library failed to load.";X?X.message&&(A+=" Original description: "+X.message,_.OD(X,A)):X=Error(A);_.vh(X);N(X)});
R.setAttribute("async","");_.Sd(R,M);document.head.appendChild(R)}):Promise.reject(Error("th"))};
EUA=function(){return Uz?Uz:ZrA()};
Mer=function(){var M=Ygq(_.iY().getState());if(M&&M.animationStyle)switch(M.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return uI.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return uI.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return uI.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
dAi=function(M){if(M)switch(M){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.Q("kevlar_use_wil_icons"))return(M=Mer())?M:uI.get("LIKE")}};
NEZ=function(M){var d=dAi(M);if(d)return d;switch(M){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return uI.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return uI.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return uI.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return uI.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return uI.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return uI.get("NOTIFICATION_BELL")}};
X8i=function(M,d){if(!M||RQr)d=!1;else{if(M.closest){var N=!!dAi(d);N=_.rK("ID_TOKEN")&&N?!!M.closest("segmented-like-dislike-button-view-model"):!1}else N=!1;if(!N)if(M.closest)if(N=!_.rK("ID_TOKEN"),M=M.closest("ytd-subscription-notification-toggle-button-renderer-next"),N||!M)N=!1;else{var R;N=((R=M.data)==null?void 0:R.targetId)==="notification-bell"&&d!=="EXPAND_MORE"}else N=!1;d=N}return d};
FRp=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.Mv(R,2),_.D(R,fetch(M),4);case 4:return d=R.yieldResult,_.D(R,d.json(),5);case 5:return R.return(R.yieldResult);case 2:N=_.Fg(R),_.vh(N),_.Vy(R)}})};
Aqv=function(M,d){var N,R,X;return _.B(function(A){if(A.nextAddress==1)return(N=d?M.pathDarkTheme:M.path)?_.D(A,Promise.all([FRp(N),ZrA()]),2):A.return();R=A.yieldResult;X=R[0];Cq.set(N,X);_.Vy(A)})};
_.xj=function(){var M=_.wH.apply(0,arguments);return function(){for(var d="",N=_.V(M),R=N.next();!R.done;R=N.next())if(R=R.value,typeof R==="function"&&(R=R()),R)if(typeof R==="string")d+=" "+R;else for(var X in R)if(R.hasOwnProperty(X)){var A=R[X];typeof A==="function"&&(A=A());A&&(d+=" "+X)}d=d.trim()||void 0;return _.QJ(d)}};
_.Yj=function(M){var d;var N=M.data;var R=M.className;var X=M.animationName;var A=M.animationRef;var l=(d=M.elRefForInterop)||_.e5(),k;_.mF(function(){var w;return void((w=k)==null?void 0:w.destroy())});
var T;_.Wg(function(){var w=_.QJ(X);if(w!==T){T=w;var p=Object.assign({},{animationName:w,animationRef:_.QJ(A)},_.QJ(N));try{_.h().resolve(VeS)().then(function(O){var y;(y=k)==null||y.destroy();y=p.animationRef;var c=p.listeners;O=O.loadAnimation(Object.assign({},{container:l.value},p.animationConfig));y&&(y.lottieEl=O);if(c)for(y=_.V(Object.entries(c)),c=y.next();!c.done;c=y.next()){var e=_.V(c.value);c=e.next().value;(e=e.next().value)&&O.addEventListener(c,e)}k=O})}catch(O){w=O;
var m="LottieComponent error.";w.message&&(m+=" Original description: "+w.message);_.OD(w,m);_.vh(w);var I;((I=p.listeners)==null?0:I.error)&&p.listeners.error(w)}}});
var W=_.xj("ytLottieComponentHost",R);return _.g(aSZ,{cond:function(){return!d},
then:function(){return _.g("lottie-component",{class:W,el:l})}})};
lij=function(M){var d=_.e5(),N=_.V(DE2(M.data.animationConfig.name||"",M.className)),R=N.next().value;N=N.next().value;var X=Ol(function(){return M.data.animationRef});
qV(function(){M.data.animationRef&&(M.data.animationRef.lottieEl=X==null?void 0:X.lottieEl)},[M.data.animationRef]);
return _.g("lottie-component",{skip:!0,class:_.xj(N,"ytLottieComponentHost"),el:d},_.g(_.Yj,{data:M.data,animationRef:X,animationName:R,elRefForInterop:d}))};
BE6=function(M,d,N,R){function X(l,k){if(d.value===k&&M!=null&&M.value){for(;M.value.firstChild;)M.value.removeChild(M.value.firstChild);M.value.classList.add("yt-spec-icon-shape");l(M.value,R)}}
N=_.$AZ(_.h().resolve(_.xQ),N);if(typeof N==="function")d.value=null,X(N,null);else{var A=new _.Xy(N.then,N);d.value=A;A.then(function(l){X(l,A)})}};
TEi=function(M,d){var N=document.createElement("div"),R=_.hA(N,function(){return _.g(_.kV,{cond:M,then:function(X){return _.g(kGi,{data:X,options:d})}})});
return[N,R]};
_.ZH=function(){for(var M=[],d=_.V(_.wH.apply(0,arguments)),N=d.next();!N.done;N=d.next())if(N=N.value)if(typeof N==="string")M.push(N);else{N=_.V(Object.entries(N));for(var R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;(X=X.next().value)&&M.push(R)}}return M.join(" ")};
w8N=function(M){var d=_.e5(),N=jx(),R=fL(M.character)||fL(M.previousCharacter);mI(function(){if(M.marginMultiplier){var X;(X=N.value)==null||X.cancel();R?(X=M.previousCharacter?Number(M.previousCharacter)+10:M.rollUp?0:30,M.shouldAnimate||(X-=DAv(M,X))):(X=M.rollUp?0:2,M.shouldAnimate||(X-=M.rollUp?-1:1));d.value.style.marginTop="-"+X*M.marginMultiplier+"px";M.shouldAnimate?N.value=gLj(d.value,M,X,R):d.value.style.display=M.character?"":"none"}});
return _.g("animated-rolling-character",{el:d,class:"animated-rolling-character-wiz"},_.ez(R,function(){for(var X=[],A=1;A<30;A++)X.push(_.g("div",null,A%10));return _.g(_.GT,null,_.g("div",null,"\u00a0"),X,_.g("div",null,"\u00a0"))},function(){return WR2(M.character)}))};
WR2=function(M){return _.g(_.GT,null,_.g("div",null,"\u00a0"),_.g(_.GT,null,_.ez(!M||_.ki(M),function(){return _.g("div",null,"\u00a0")},function(){return _.g("div",null,M)})),_.g("div",null,"\u00a0"))};
gLj=function(M,d,N,R){N=new Animation(new KeyframeEffect(M,[{transform:"translateY(0px)"},{transform:"translateY("+(R?DAv(d,N):d.rollUp?-1:1)*d.marginMultiplier+"px)"}],p8S),document.timeline);d.character?(M.style.display="",N.onfinish=null):N.onfinish=function(){M.style.display="none"};
N.play();return N};
DAv=function(M,d){var N=Number(M.character)+10;if(M.previousCharacter)if(M.character){var R=Number(M.character),X=Number(M.previousCharacter);M=M.rollUp?X<R?N:N+10:X<R?N-10:N}else M=M.rollUp?30:0;else M=M.character==="0"?N:M.rollUp?N-10:N+10;return d-M};
_.Ez=function(M,d){return function(N){var R={},X;for(X in N){var A=void 0,l=void 0;((A=d)==null?0:(l=A.callbacks)==null?0:l[X])||(R[X]=N[X])}return _.g(jqj,null,function(){for(var k in R)N[k]=_.QJ(R[k]);N.disableReactiveLogging=!0;return _.g(M,Object.assign({},N))})}};
_.MN=function(M){var d=jx(),N=jx();qV(function(){d.value=M.numberText;N.value=M.numberValue},[M.numberText]);
var R=M.fontSizeMultiplier?M.heightPx*M.fontSizeMultiplier:M.heightPx,X=vy(function(){if(M.numberText){var l=M.numberText;var k=M.forceRollUp||!N.value||!M.numberValue||N.value<M.numberValue;var T=!!M.shouldAnimate,W=d.value,w=[],p=0,m=0,I=(W?W.replace(/\D/g,"").length:0)-(l?l.replace(/\D/g,"").length:0);W=W?W.split(/(\d)/).filter(Boolean):[];for(l=l.split(/(\d)/).filter(Boolean);I<0;){var O=l[m];w.push({character:O,rollUp:k,marginMultiplier:R,shouldAnimate:T});m++;fL(O)&&I++}for(;p<I;)O=W[p],w.push({previousCharacter:O,
rollUp:k,marginMultiplier:R,shouldAnimate:T}),p++,fL(O)||I++;for(;m<l.length;)I=l[m],O=W[p],fL(I)===fL(O)?(m++,p++):fL(I)?(p++,I=void 0):fL(O)&&(m++,O=void 0),w.push({character:I,previousCharacter:O,rollUp:k,marginMultiplier:R,shouldAnimate:T});k=w}else k=[];return k},[M.numberText]),A=M.numberText?["height: "+R+"px;",
"line-height: "+M.heightPx+"px;"].join(" "):"";return _.g("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:A,dir:"ltr","aria-hidden":"true"},X.map(function(l){return _.g(w8N,Object.assign({},l))}))};
mAA=function(M){var d=M.nodeName;if(M.id)return d+="#"+M.id;if(M.classList)for(var N=_.V(M.classList),R=N.next();!R.done;R=N.next())d+="."+R.value;M.parentElement&&(d=mAA(M.parentElement)+" > "+d);return d};
hQ2=function(M){return function(d){var N=uN6("event",{type:d.type});N&&d.target&&N.attr("nodepath",mAA(d.target));return YM2(N,M,d)}};
_.dT=function(M){M&&CVj("event")&&(M=hQ2(M));return Ejj(function(d){var N,R=(N=M)==null?void 0:N(d);return typeof R==="boolean"?R:!0})};
NN=function(M){return function(){return M()?M():void 0}};
QsA=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
qU2=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Ii6=function(M){var d=_.V(_.d0(M,void 0,"Clci1e")),N=d.next().value,R=d.next().value;N.current=M;return[N,function(X){return void R(N.current=X)}]};
_.Rq=function(M){var d=SC(function(){return Ii6(M())},{isEqual:function(N,R){return N[0].current===R[0].current}});
return[function(){return d()[0]()},
function(N){return void d()[1](N)}]};
_.Xc=function(M){return function(){var d="",N;for(N in M){for(var R=M[N];typeof R==="function";)R=R();R!==void 0&&R!==null&&(d+="; "+N+": "+R)}return d.length>0?_.QJ(d.slice(2)):_.QJ()}};
vLA=function(M){switch(M){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
ssN=function(M,d,N,R,X,A){var l=OD2(M),k=l.disabled,T=l.iconPosition,W=l.style,w=l.focused,p=function(){return!!O()&&T()==="icon-only"},m=function(){return!!O()&&T()==="icon-only-40"},I=function(){return!!O()&&T()==="icon-with-label"},O=function(){return!!d||!(R==null||!R())};
return{type:function(){return W()==="call-to-action-inverse"?"text":W()==="overlay-dark"&&M().type!=="filled"&&M().type!=="tonal"?"tonal":M().type},
shouldFocus:function(){return(w()||(A==null?void 0:A()))&&!k()},
hasIconLeading:function(){return!!O()&&T()==="leading"},
hasIconTrailing:function(){return!!O()&&T()==="trailing"},
hasIconLeadingTrailing:function(){return!!O()&&!!(N||X!=null&&X())&&T()==="leading-trailing"},
hasIconOnly:p,hasIconOnly40:m,hasIconWithLabel:I,iconButton:function(){return p()||m()||I()},
visiblyDisabled:function(){return(k()?"disabled":M().state)==="disabled"||k()},
overrideSmallSizeIcon:function(){return jsj(M(),O())},
iconToRender:d?d:function(){return _.g(_.Fc,{icon:R,size:function(){return AI(M(),!0)},
active:function(){return M().toggled}})},
secondaryIconToRender:N?N:function(){return _.g(_.Fc,{icon:X,size:function(){return AI(M(),!0)},
active:function(){return M().toggled}})}}};
OD2=function(M){return{size:function(){return M().size},
style:function(){return M().style},
focused:function(){return M().focused},
disabled:function(){return M().disabled},
onTap:function(d){var N,R;return(R=(N=M()).onTap)==null?void 0:R.call(N,d)},
alignByText:function(){return M().alignByText},
aTagConfig:function(){return M().aTagConfig},
customColors:function(){return M().customColors},
segmentedPosition:function(){return M().segmentedPosition},
toggled:function(){return M().toggled},
toggleable:function(){return M().toggleable},
accessibilityLabel:function(){return M().accessibilityLabel},
onToggle:function(d){var N,R;return(R=(N=M()).onToggle)==null?void 0:R.call(N,d)},
iconPosition:function(){return M().iconPosition},
oneOffCustomTextWrap:function(){return M().oneOffCustomTextWrap},
disableTextEllipsis:function(){return M().disableTextEllipsis},
disableBackdropFilter:function(){return M().disableBackdropFilter},
tooltipText:function(){return M().tooltipText},
ariaHidden:function(){return M().ariaHidden},
tabIndex:function(){return M().tabIndex},
buttonText:function(){return M().buttonText},
formattedButtonText:function(){return M().formattedButtonText},
animatedTextProps:function(){return M().animatedTextProps}}};
PHq=function(M){return M.style==="overlay-dark"?4:M.style==="overlay"?M.type==="filled"?4:3:M.type==="filled"||M.style==="call-to-action-inverse"||M.style==="mono-inverse"?2:1};
jsj=function(M,d){d=(M.iconPosition==="icon-only"||M.iconPosition==="icon-only-40"||M.iconPosition==="icon-with-label")&&d;return!M.segmentedPosition&&d&&M.size==="S"};
oLN=function(){return!_.Q("web_disable_backdrop_filter")};
AI=function(M,d){switch(M.size){case "XS":return 16;case "S":return jsj(M,d)?24:16;default:return 24}};
rqj=function(M){switch(M){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
KRN=function(M){switch(M){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
yqv=function(M){switch(M){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
Jqj=function(M){if(M.style==="overlay-dark"&&M.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
cq2=function(M){if(!M)return{};var d=M.color,N=M.backgroundColor;M=M.borderColor;var R="";d&&(R+="color: "+d+";");N&&(R+="background-color: "+N+";");M&&(R+="border-color: "+M+";");return{style:R}};
SUN=function(M,d){if(!HU){var N;TcL(function(){return N=vFZ(M,d)});
return N}return vFZ(M,d)};
zQA=function(){var M=yAv(HU||void 0,QqZ);return M===KIv||(M==null?void 0:M.name)==="\u0275NotFound"?void 0:M};
HDi=function(M){var d=M.data;var N=M.icon;var R=M.secondaryIcon;var X=M.iconName;var A=M.secondaryIconName;zQA();var l=d.size;M=d.style;var k=d.focused,T=d.disabled,W=d.onTap,w=d.alignByText,p=d.aTagConfig,m=d.customColors,I=d.segmentedPosition,O=d.toggled,y=d.toggleable,c=d.accessibilityLabel,e=d.onToggle,t=d.iconPosition,C=d.oneOffCustomTextWrap,U=d.disableTextEllipsis,Fi=d.disableBackdropFilter,Y=d.tooltipText,$i=d.ariaHidden,vj=d.tabIndex,Pj=!!N||!!X,sS=N,tL=R;if(X){var b2=AI(d,!0);sS=function(){return _.g(_.Fc,
{icon:X,size:b2,active:d.toggled})}}if(A){var Hj=AI(d,!0);
tL=function(){return _.g(_.Fc,{icon:A,size:Hj,active:d.toggled})}}var LZ=d.state;
N=d.type;M==="call-to-action-inverse"&&(N="text");M==="overlay-dark"&&N!=="filled"&&N!=="tonal"&&(N="tonal");var w3=Pj&&t==="leading",XY=Pj&&t==="trailing",jJ=Pj&&(!!R||!!A)&&t==="leading-trailing";R=Pj&&t==="icon-only";var Ne=Pj&&t==="icon-only-40";t=Pj&&t==="icon-with-label";var Vz=R||Ne||t;T&&(LZ="disabled");var oI=LZ==="disabled"||T;Pj=jsj(d,Pj);LZ={};var $d=_.ZH((LZ["yt-spec-button-shape-next"]=!0,LZ[rqj(N)]=!0,LZ[KRN(M)]=!oI,LZ["yt-spec-button-shape-next--disabled"]=!!oI,LZ[yqv(l)]=!0,LZ["yt-spec-button-shape-next--focused"]=
!!k&&!T,LZ["yt-spec-button-shape-next--icon-trailing"]=XY,LZ["yt-spec-button-shape-next--icon-leading"]=w3,LZ["yt-spec-button-shape-next--icon-leading-trailing"]=jJ,LZ["yt-spec-button-shape-next--icon-button"]=R||t,LZ["yt-spec-button-shape-next--icon-only-default"]=Ne,LZ["yt-spec-button-shape-next--align-by-text"]=!!w,LZ["yt-spec-button-shape-next--segmented-start"]=I==="start",LZ["yt-spec-button-shape-next--segmented-end"]=I==="end",LZ["yt-spec-button-shape-next--override-small-size-icon"]=Pj,LZ["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!C,LZ["yt-spec-button-shape-next--disable-text-ellipsis"]=!!U,LZ["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Fi&&oLN(),LZ)),CJ=_.dT(function(xd){W==null||W(xd);y&&(e==null||e(xd))});
l=function(){return p?_.g(_.VX,{aTagConfig:p,disabled:T,className:$d,style:cq2(m).style,title:Y!=null?Y:"",ariaLabel:c,ariaCurrent:y&&O},_.g(_.GT,null,bDN(d,w3,jJ,XY,Vz,sS,tL))):_.g("button",{"on:click":CJ,class:$d,title:Y!=null?Y:"",style:T&&p?"pointer-events:none":cq2(m).style,disabled:T,"aria-pressed":y?!!O:void 0,"aria-label":c?c:void 0,"aria-disabled":oI,"aria-hidden":$i,tabindex:vj},_.g(_.GT,null,bDN(d,w3,jJ,XY,Vz,sS,tL)))};
k={};M=(k["yt-spec-button-shape-with-label"]=!0,k["yt-spec-button-shape-with-label--is-overlay"]=M==="overlay"||M==="overlay-dark",k);return _.g("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},t?_.g("label",{class:_.ZH(M)},l(),_.g("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},eQq(d))):l())};
eQq=function(M){var d=M.formattedButtonText,N=M.animatedTextProps,R=M.buttonText,X=M.oneOffCustomTextWrap;M=M.iconPosition;return N?_.g(_.MN,{numberText:N.numberText,numberValue:N.numberValue,heightPx:N.heightPx,fontSizeMultiplier:N.fontSizeMultiplier,shouldAnimate:N.shouldAnimate,forceRollUp:N.forceRollUp}):d?(N=M==="icon-with-label"||X,_.g(_.lG,{text:Object.assign({},d,N?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!N})):R};
bDN=function(M,d,N,R,X,A,l){return _.g(_.GT,null,_.ez(A&&(d||N||X),function(){return _.g(_.GT,null,_.g("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},A==null?void 0:A()))}),_.ez((M.buttonText||M.formattedButtonText||M.animatedTextProps)&&!X,function(){return _.g(_.GT,null,_.g("div",{class:"yt-spec-button-shape-next__button-text-content"},eQq(M)))}),_.ez(R,function(){return _.g(_.GT,null,_.g("div",{class:"yt-spec-button-shape-next__icon"},A==null?void 0:A()))}),_.ez(N,function(){return _.g(_.GT,
null,_.g("div",{class:"yt-spec-button-shape-next__secondary-icon"},l==null?void 0:l()))}),_.ez(!M.disabled&&!0,function(){return _.g(_.$F,{model:{color:PHq(M)}})}))};
nLL=function(M,d,N){Kq(HDi)({data:M,icon:d?function(){return _.g(na,null,d)}:void 0,
secondaryIcon:N?function(){return _.g(na,null,N)}:void 0})};
tej=function(M,d,N){var R=M.buttonText,X=M.formattedButtonText,A=M.formattedButtonTextLegacy,l=M.animatedTextProps,k=M.style,T=M.size,W=M.focused,w=M.disabled,p=M.onTap,m=M.alignByText,I=M.aTagConfig,O=M.customColors,y=M.segmentedPosition,c=M.toggled,e=M.toggleable,t=M.accessibilityLabel,C=M.onToggle,U=M.iconPosition,Fi=M.oneOffCustomTextWrap,Y=M.disableTextEllipsis,$i=M.disableBackdropFilter,vj=M.tooltipText,Pj=M.ariaHidden,sS=M.tabIndex,tL=M.state,b2=M.type;k==="call-to-action-inverse"&&(b2="text");
k==="overlay-dark"&&b2!=="filled"&&b2!=="tonal"&&(b2="tonal");var Hj=!!d&&U==="leading",LZ=!!d&&U==="trailing",w3=!!d&&!!N&&U==="leading-trailing",XY=!!d&&U==="icon-only",jJ=!!d&&U==="icon-only-40",Ne=!!d&&U==="icon-with-label",Vz=XY||jJ||Ne;w&&(tL="disabled");var oI=tL==="disabled"||w;tL=jsj(M,!!d);var $d={},CJ=($d["yt-spec-button-shape-next"]=!0,$d[rqj(b2)]=!0,$d[KRN(k)]=!oI,$d["yt-spec-button-shape-next--disabled"]=!!oI,$d[yqv(T)]=!0,$d["yt-spec-button-shape-next--focused"]=!!W&&!w,$d["yt-spec-button-shape-next--icon-trailing"]=
LZ,$d["yt-spec-button-shape-next--icon-leading"]=Hj,$d["yt-spec-button-shape-next--icon-leading-trailing"]=w3,$d["yt-spec-button-shape-next--icon-button"]=XY||Ne,$d["yt-spec-button-shape-next--icon-only-default"]=jJ,$d["yt-spec-button-shape-next--align-by-text"]=!!m,$d["yt-spec-button-shape-next--segmented-start"]=y==="start",$d["yt-spec-button-shape-next--segmented-end"]=y==="end",$d["yt-spec-button-shape-next--override-small-size-icon"]=tL,$d["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!Fi,$d["yt-spec-button-shape-next--disable-text-ellipsis"]=!!Y,$d["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!$i&&oLN(),$d),xd=function(){if(l)Kq(_.MN)(l);else if(A)A(U==="icon-with-label"||Fi?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(X){var UV=U==="icon-with-label"||Fi;NjZ(Object.assign({},X,UV?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!UV})}else R&&
fu(R)},Vq=function(UV){p==null||p(UV);
e&&(C==null||C(UV))},uL=I?iDA:fi2,fg=I?"aria-current$":"aria-pressed$",M9=function(){d&&(Hj||w3||Vz)&&function(){Bi({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){d()})}();
(R||X||A||l)&&!Vz&&function(){Bi({className:"yt-spec-button-shape-next__button-text-content"},function(){xd()})}();
LZ&&function(){Bi({className:"yt-spec-button-shape-next__icon"},function(){d()})}();
w3&&function(){Bi({className:"yt-spec-button-shape-next__secondary-icon"},function(){N()})}();
w||Kq(_.$F)({model:{color:PHq(M)}})},OV=function(){var UV={};
uL(Object.assign({},(UV.className=_.ZH(CJ),UV.onclick=I?void 0:Vq,UV.disabled=w,UV["aria-disabled$"]=oI,UV.style=w&&I?"pointer-events:none":void 0,UV[fg]=e?!!c:void 0,UV["aria-label$"]=t,UV.title$=vj!=null?vj:"",UV["aria-hidden$"]=Pj,UV.tabindex$=sS,UV),I,cq2(O)),function(){M9()})};
Ne?(T={},k=(T["yt-spec-button-shape-with-label"]=!0,T["yt-spec-button-shape-with-label--is-overlay"]=k==="overlay"||k==="overlay-dark",T),LRi({className:_.ZH(k)},function(){OV();Bi({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},xd)})):OV()};
GG2=function(M,d,N){_.Q("web_wiz_button_shape")?nLL(M,d,N):tej(M,d,N)};
kF=function(M,d){_.Qu(M,Object.assign({},d,{forceClickLogging:!0}))};
aiZ=function(M,d,N,R){var X=void 0;return function(A){var l=_.ht(N?M==null?void 0:M.onDisabledTap:M==null?void 0:M.onTap);if(l){var k;X=(k=X)!=null?k:d==null?void 0:d.value;if(l)if(_.Q("web_button_vm_click_client_ve_killswitch"))kF(l,Object.assign({},{form:{element:X,event:A}},void 0));else{var T;k=l==null?void 0:l.clickTrackingParams;var W,w=M==null?void 0:(T=M.loggingDirectives)==null?void 0:(W=T.clientVeSpec)==null?void 0:W.uiType;T=w&&!k?_.Tx(w):void 0;kF(l,Object.assign({},{form:{element:X,event:A}},
{clickedVisualElement:T}))}}R&&R(A)}};
UAi=function(M){switch(M){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
ulN=function(M){switch(M){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
CHi=function(M){switch(M){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
xAL=function(M){switch(M){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
YUq=function(M,d){return _.Rz(M.entities,"engagementToolbarStateEntityPayload",d)};
ELi=function(M){(M=_.At(M))&&_.ZDZ(M)};
_.ZDZ=function(M){var d=_.Ou();d&&_.SD(d,M)};
MuN=function(M,d,N){_.ZI(M,"yt-open-popup-action",[d,N||M])};
d_Z=function(M,d){var N=_.sl(M,"endpoint"),R=_.sl(M,"action");return(N=R?R:N)&&d&&(N=d.navigationEndpointPopupMap[N])&&(M=_.cy(N,M),(N=_.sl(M,"renderer"))&&d.supportedPopups.hasOwnProperty(N))?{openPopupAction:{popupType:d.popupTypeMap[N],popup:M}}:null};
NMr=function(M,d,N,R){if(R){var X;N=N==null?void 0:(X=N.data)==null?void 0:X.contents;(X=N instanceof Array&&N.length?N[0]:N)&&(N=_.sl(X,"renderer"))&&R.supportedPopups.hasOwnProperty(N)&&(d.stopPropagation(),MuN(M,{openPopupAction:{popupType:R.popupTypeMap[N],popup:X}}))}};
Fwr=function(M,d,N,R){R=R===void 0?!1:R;var X=RWZ(d);if(X){X.href&&qX(X.href);var A=d.button;A=A!==void 0?A===0&&!DM(d):!DM(d);X.data&&A&&XRA(M,X,d,N,R)}};
XRA=function(M,d,N,R,X){X=X===void 0?!1:X;var A=_.ZR("pbj_navigate_limit",-1)===0;Axr(d);_.h().resolve(_.CF(yc));var l=d.data;if(Object.keys(l).length!==0)if(!_.Q("unplugged_web_disable_actions_for_cec_endpoint")&&_.q(l,_.XP))_.Q("endpoint_behavior_command_executor_fix_killswitch")||(N.preventDefault(),N.stopPropagation()),_.Ni(M,[l],M);else if(R=d_Z(l,R))l.loggingUrls&&l.loggingUrls.forEach(function(T){T.baseUrl&&_.Jk(T.baseUrl)}),N.preventDefault(),N.stopPropagation(),MuN(M,R,d);
else{var k=Vu6(0,d.data,N);if(M=d.getForm)M=M(),k.tempData=k.tempData||{},k.tempData=Object.assign({},k.tempData,M);M=_.J2(N);if(R=M.find(function(T){return!!T.visualElement}))k.createScreenConfig=k.createScreenConfig||{},k.createScreenConfig.clickedVisualElement=R.visualElement;
if(!A)if(N.preventDefault(),N.stopPropagation(),_.q(l,_.lCr)&&!X&&_.YQ.instance)_.YQ.instance.resolveCommand(l,k);else if(_.Q("kevlar_command_handler_formatted_string")&&!X&&_.YQ.instance&&$_Z(l))X=M.find(function(T){return!!T.is})||N.target,N={form:Object.assign({},k,{event:N,
element:X,originatingNode:d})},_.YQ.instance.resolveCommand(l,N);else{l=_.J2(N);N=[];for(X=0;X<l.length;X++)(A=l[X].is)&&N.push(A);bqr({parents:N.join(","),text:d.innerText},function(){_.YP(d,"yt-navigate",k)})}}};
BMj=function(M){if(M=RWZ(M))Axr(M),qpN(M.href)};
RWZ=function(M){M=_.J2(M);for(var d,N=0;N<M.length;N++)if(d=M[N],d.tagName==="A"&&d.classList.contains("yt-simple-endpoint")){if(!d.data)break;return d}return null};
DM=function(M){return M.shiftKey||M.altKey||M.metaKey||M.ctrlKey};
k0q=function(M,d){var N={itct:d.clickTrackingParams};_.Q("kevlar_client_side_screens")&&(!_.q(d,_.$B)||_.Q("kevlar_exclude_endpoint_killswitch"))&&(N.endpoint=JSON.stringify(d));_.Q("enable_unknown_lact_fix_on_html5")&&_.h().resolve(_.CF(_.gT))&&(N.lact=_.aQ());m1r(N);_.tX(M,N)};
Axr=function(M){M.href&&Object.keys(M.data).length!==0&&k0q(M.href,M.data)};
$_Z=function(M){for(var d=_.V(TMN),N=d.next();!N.done;N=d.next())if(M[N.value])return!1;return!0};
_.Wi=function(M,d){if(d){var N={};D_S.forEach(function(R){R=gIi(d,R,"--yt-lightsource-");Object.assign(N,R)});
Wwv.forEach(function(R){R=gIi(d,R,"--yt-basic-");Object.assign(N,R)});
_.UO(M,N)}};
gIi=function(M,d,N){var R={};R[N+_.Xf(d)]=M&&M[d]?_.ml(M[d]):"";return R};
_.pO=function(M,d,N){wT[M]||(wT[M]={});wT[M][d]=N};
_.md=function(M){wT[M]||(wT[M]={});return wT[M]};
wRZ=function(M){if(!M)return{};var d=M.foregroundTitleColor,N=M.backgroundColor;M=M.borderColor;var R="text";M?R="outline":N&&(R="filled");return{type:R,customColors:{color:d?_.ml(d):void 0,backgroundColor:N?_.ml(N):void 0,borderColor:M?_.ml(M):void 0}}};
qBL=function(M){var d=M.renderer;var N=M.element;var R=M.commandController;var X=M.onTapCallback;var A=M.skipCommandHandling;var l=M.overrides;var k=M.forceIcon;var T=M.forceModernIconButton;var W=M.forceDisabled;var w=M.isSubscribe===void 0?!1:M.isSubscribe;var p=M.isPressed===void 0?!1:M.isPressed;var m=M.useButtonSize===void 0?!1:M.useButtonSize;M=pRZ(d);w&&(M.style="mono",M.type="filled");k=!d.icon||!k&&d.text?d.icon?d.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:T?"icon-only":"icon-only-40";k==="icon-only-40"&&(M.type="text");var I;T=Object;w=T.assign;m=m_L(d,m);p=!!d.isSelected||!_.Q("web_propagate_is_pressed_killswitch")&&!!p;var O=d.isSelected!==void 0;W=W===void 0?d.isDisabled:W;var y=d.text?_.Wz(d.text):void 0;var c,e,t,C=((c=d.accessibilityData)==null?void 0:(e=c.accessibilityData)==null?void 0:e.label)||((t=d.accessibility)==null?void 0:t.label);c=C?C:_.HD(d.text);N=hW6(d,N,R,X,A);R=Qpr(d);R!=null&&R.length?(R=_.qx({innertubeCommand:Ljr(R),
forceNewState:!0}),R=IA(R)?R:void 0):R=void 0;return w.call(T,{},M,m,{iconPosition:k},l,{focused:!1,toggled:p,toggleable:O,disabled:W,formattedButtonText:y,accessibilityLabel:c,onTap:N,aTagConfig:R},wRZ((I=d.colorData)==null?void 0:I.basicColorPaletteData),{oneOffCustomTextWrap:d.oneOffCustomTextWrap})};
hW6=function(M,d,N,R,X){return function(A){var l=Qpr(M);R(l,A);if(!X){l=_.V(l);for(var k=l.next();!k.done;k=l.next())kF(k.value,{form:{element:d,event:A},commandController:N})}}};
Qpr=function(M){var d=[];M.command&&d.push(M.command);M.serviceEndpoint&&d.push(M.serviceEndpoint);M.navigationEndpoint&&d.push(M.navigationEndpoint);return d};
m_L=function(M,d){if(d)switch(M.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(M.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
pRZ=function(M){switch(M.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_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"}}};
_.hI=function(M){return _.Al(function(){hzq()();return K6(M)},void 0,"Icv7j")};
QX=function(M,d){return _.Rz(M.entities,"likeStatusEntity",d)};
ICi=function(M,d){return _.Rz(M.entities,"likeCountEntity",d)};
_.vI6=function(M,d){return _.Rz(M.entities,"stringEntity",d)};
OBZ=function(M,d){if(!M)return!1;var N,R=(N=_.q(M,_.A$))==null?void 0:N.signal;if(R&&d.signalEndpointMap)return!!d.signalEndpointMap[R];var X;if((N=(X=_.q(M,_.qN))==null?void 0:X.request)&&d.continuationEndpointMap)return!!d.continuationEndpointMap[N];for(var A in M)if(d.commandEndpointMap[A])return!0;return!1};
jpL=function(M,d){if(d.streamingEndpointMap)for(var N in M)if(d.streamingEndpointMap[N]&&(M=d.streamingEndpointMap[N]))return M()};
spr=function(M,d){var N,R=(N=_.q(M,_.A$))==null?void 0:N.signal;if(R&&d.signalEndpointMap&&(N=d.signalEndpointMap[R]))return N();var X;if((N=(X=_.q(M,_.qN))==null?void 0:X.request)&&d.continuationEndpointMap&&(X=d.continuationEndpointMap[N]))return X();for(var A in M)if(d.commandEndpointMap[A]&&(M=d.commandEndpointMap[A]))return M()};
PNr=function(M){var d={"Content-Type":"application/json"};_.rK("EOM_VISITOR_DATA")?d["X-Goog-EOM-Visitor-Id"]=_.rK("EOM_VISITOR_DATA"):_.rK("VISITOR_DATA")&&(d["X-Goog-Visitor-Id"]=_.rK("VISITOR_DATA"));d["X-Youtube-Bootstrap-Logged-In"]=_.rK("LOGGED_IN",!1);_.rK("DEBUG_SETTINGS_METADATA")&&(d["X-Debug-Settings-Metadata"]=_.rK("DEBUG_SETTINGS_METADATA"));M!=="cors"&&((M=_.rK("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(d["X-Youtube-Client-Name"]=M),(M=_.rK("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(d["X-Youtube-Client-Version"]=
M),(M=_.rK("CHROME_CONNECTED_HEADER"))&&(d["X-Youtube-Chrome-Connected"]=M),(M=_.rK("DOMAIN_ADMIN_STATE"))&&(d["X-Youtube-Domain-Admin-State"]=M),_.KF("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(M=_.rK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(d["X-YouTube-Lava-Device-Context"]=M));return d};
oI2=function(M,d){d.watchNextResponse||d.reelItemWatchResponse?d.watchNextResponse?M.content=d.watchNextResponse:M.content=d.reelItemWatchResponse:d.playerResponse?M.player=d.playerResponse:d.reelWatchSequenceResponse&&(M.reelSequence=d.reelWatchSequenceResponse)};
Iq=function(M){return function(){return new M}};
vi=function(M){var d=_.h();return function(){return d.resolve(M)}};
_.OL=function(M){if(!M)return null;for(var d=[],N=0;N<M.textSegments.length;N++){var R=M.textSegments[N];R.text?d.push(R):R.emojiId&&d.push({emoji_id:R.emojiId})}return{text_segments:d}};
cxZ=function(M,d,N,R,X,A,l){A=A===void 0?[]:A;var k=new _.jm;k.endpoint=N;if(!N)return _.IR(new _.WJ("handle undefined endpoint",d.tagName)),k;var T=aHr(N);T.length&&(_.Ni(M,T,d,R),k.actions=T);N.loggingUrls&&N.loggingUrls.forEach(function(w){w.baseUrl&&cf(w.baseUrl,w.attributionSrcMode)});
T=!_.Q("web_skip_impression_click_killswitch")&&R&&R.impression;if(N.clickTrackingParams&&!rxi(N)&&!KwS(d)&&!T&&(T=_.Nx(),!_.sL(T,d))){var W=d.getScreenLayer&&d.getScreenLayer();W?T.clickCommand(N,null,W):T.clickCommand(N,null)}T=!1;for(W=0;W<A.length;W++)if((0,A[W])(d,N,R)){T=!0;break}!T&&yxi(N)&&(k.ajaxPromise=Jx6(M,d,N,R,X,l));return k};
KwS=function(M){var d;return(M=(d=M.data)==null?void 0:d.navigationEndpoint)&&!!M.clickTrackingParams};
rxi=function(M){var d=_.q(M,_.A$);if(d&&(d=d.signal)&&SBi.indexOf(d)>=0)return!0;for(var N in M)if(zWv.indexOf(N)>=0)return!0;return!1};
yxi=function(M){var d;if(((d=_.q(M,_.A$))==null?void 0:d.signal)==="CLIENT_SIGNAL")return!1;for(var N in M)if(bB2.indexOf(N)>=0)return!1;M=Object.keys(M);return M.length===1&&M[0]==="loggingUrls"?!1:!0};
G0q=function(M,d,N,R,X,A,l){var k=_.Pi.instance;if(k&&_.oq(k,R))var T=_.rT(k,R,X).then(function(w){return(w==null?0:w.data)?w:{data:w}});
else T=M.requestDataForServiceEndpoint(R,X),_.q(R,eWS)||_.q(R,HBS)||_.q(R,_.nIr)||_.q(R,iBA)||_.vh(new _.WJ("No RequestBuilder for endpoint",R));var W=_.KO();W.promise.thenCatch(function(){var w=_.sl(R,"action")||_.sl(R,"command")||_.sl(R,"endpoint");w&&(w=R[w],w.hasOwnProperty("onFailureAction")?_.Ni(d,[w.onFailureAction],N):w.hasOwnProperty("onFailureCommand")&&_.Ni(d,w.onFailureCommand,N));T.cancel("Resolver promise rejected")});
T.then(function(w){if(w){var p=w.error;if(p){if(A&&A.onServerError)A.onServerError(R,w);W.reject(new _.WJ("Response error",R,p))}else if(w=w.data)if(p=w.error){if(A&&A.onServerError)A.onServerError(R,w);W.reject(new _.WJ("Returned error",R,p))}else{fCS(d,N,w,R);Lwj(w);if(p=Grv(w))for(var m=_.V(p),I=m.next();!I.done;I=m.next()){I=I.value;var O=_.h().resolve(_.CF(tuv))||yX;if(!_.Pi.instance||!O.some(function(c){return!!_.q(R,c)})||_.Q("kevlar_response_processor_allowlist_killswitch")){var y=O=void 0;
((y=_.q((O=I)==null?void 0:O.commandMetadata,_.an))==null?0:y.sendPost)?_.dU(d,[I]):_.Ni(d,[I],N)}}(m=_.q(w==null?void 0:w.frameworkUpdates,JI))&&l&&l(m);if(A&&A.onSuccess)A.onSuccess(R,w);W.resolve(new _.ci(w,p))}}else W.reject(new _.WJ("Invalid service endpoint provided",R))},function(w){W.reject(w)});
return W.promise};
Lwj=function(M){var d;(M=(d=_.q(M==null?void 0:M.onResponseReceivedCommand,_.aCq))==null?void 0:d.continuationItems)&&(M==null?void 0:M.length)===1&&_.q(M[0],U_2)&&_.v1("so_r",void 0,"search_overview_answer")};
Jx6=function(M,d,N,R,X,A){var l;return(l=d.getNetworkManager&&d.getNetworkManager()?d.getNetworkManager():_.h().resolve(_.CF(_.Tu)))?G0q(l,M,d,N,R,X,A):_.cl("No network manager.")};
fCS=function(M,d,N,R){if(N=N.trackingParams||N.loggingDirectives&&N.loggingDirectives.trackingParams){var X;(_.q(R,uvZ)||_.q(R,CN2)||_.q(R,x_N))&&R.clickTrackingParams?X=_.At(R.clickTrackingParams):_.Q("web_graft_to_parent_command")&&R.clickTrackingParams&&(X=_.At(R.clickTrackingParams));var A;R=(A=d.getScreenLayer)==null?void 0:A.call(d);d=_.Nx().graftServerVe(N,X,R);_.Eu(M,"yt-store-grafted-ve-action",[d])}};
_.YBp=function(M){var d=new Image;return new _.Xy(function(N,R){d.addEventListener("load",function(){N()});
d.addEventListener("error",function(){R()});
d.src=M})};
ZBq=function(M){return!!M};
EIS=function(M){return!!M};
MoZ=function(M,d,N){var R=M.rowIndex;R!==void 0&&_.Eu(M.hostElement,"yt-section-reactive-dismissal",[R,d,N])};
_.Sm=function(M,d,N){M=_.V(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===d)break;for(var X=_.V(N),A=X.next();!A.done;A=X.next())if(A=A.value,R.tagName===A||!_.Q("web_event_button_role_check_killswitch")&&R.role==="button"&&A==="BUTTON")return!0}return!1};
_.zx=function(M,d,N){M=_.V(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===d)break;for(var X=_.V(N),A=X.next();!A.done;A=X.next())if(R.id===A.value)return!0}return!1};
bG=function(M,d){if(!M&&!d)return"medium";M=Math.max(M||0,d||0);return M>=256?"large":M>=96?"medium":"small"};
dYZ=function(M){switch(M){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.nO=function(){var M=_.h().resolve(_.CF(_.em));return M?(M=M.getCurrentPage())?_.Hi(M):null:null};
_.iG=function(){var M=_.nO();if(!M){var d=_.h().resolve(_.CF(_.em)),N=d?typeof d:"no page manager";d=d?d.getCurrentPage():null;N=new _.WJ("Player is missing when requested.",N,d?d.tagName:"no page");_.qZ(N)}return M};
_.Hi=function(M){return M&&M.getPlayer?M.getPlayer():null};
NNS=function(M,d){M={args:{raw_player_response:M}};d&&(M.args=Object.assign({},M.args,d));return M};
Rb2=function(M){if(M.args){if(M.args.raw_player_response)return M.args.raw_player_response;if(M.args.player_response)return JSON.parse(M.args.player_response)}};
_.X4j=function(M,d){var N={url:"/watch?v="+M.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};M.playlistId&&(N.url+="&list="+M.playlistId);M.playerParams&&(N.url+="&pp="+M.playerParams);M={watchEndpoint:M,commandMetadata:{webCommandMetadata:N}};d&&(M.clickTrackingParams=d);return M};
Avq=function(){return FBr||!!_.cy("yt.player.Application")};
l9p=function(){return VoA||!!document.querySelector("link#player-css")};
BN6=function(){function M(){FBr=!0;$Yq.resolve()}
var d,N;return _.B(function(R){$Yq||($Yq=new _.MX,Avq()?M():(d=document.createElement("script"),d.addEventListener("load",M),N=_.wx(_.rK("PLAYER_JS_URL")),_.Sd(d,N),document.head.appendChild(d)));return R.return($Yq.promise)})};
TNN=function(){function M(){VoA=!0;kwS.resolve()}
if(!kwS)if(kwS=new _.MX,l9p())M();else{var d=document.createElement("link");d.id="player-css";d.addEventListener("load",M);var N=_.wx(_.rK("PLAYER_CSS_URL"));_.ed(d,N,"stylesheet");document.head.appendChild(d)}return kwS.promise};
DYZ=function(){return Avq()&&l9p()?Promise.resolve([]):Promise.all([BN6(),TNN()])};
gAp=function(M,d,N){var R={args:{}};M&&(R.args.raw_player_response=M);d&&(R.args.raw_watch_next_response=d);N&&(R.args=Object.assign({},R.args,N));return R};
mYS=function(M,d,N){var R=!1;R=R===void 0?!0:R;M=typeof M==="string"?_.fO(document,M):M;var X=WBq+"_"+_.d3(M),A=w4Z[X];if(A&&R)return p4L(d,N)?A.api.loadVideoByPlayerVars(d.args||null):A.loadNewVideoConfig(d),A.api;A=new LO(M,X,d,N,void 0);w4Z[X]=A;A.addOnDisposeCallback(function(){delete w4Z[A.getId()]});
return A.api};
p4L=function(M,d){return d&&d.serializedExperimentFlags?d.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):M&&M.args&&M.args.fflags?M.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
hbq=function(){var M=new _.MX;M.resolved=!1;var d=M.resolve;M.resolve=function(N){M.resolved=!0;d(N)};
return M};
qxi=function(M){var d={};Qa2().install((d.document_disposed={callback:M},d))};
tI=function(M,d){if(!M&&Math.random()<=_.ZR("kevlar_unified_player_logging_threshold")){M=Error("vh`"+(d?d:"Unspecified error"));if(_.Q("kevlar_unified_player_throw_errors"))throw M;_.vh(M)}};
_.I9i=function(){var M=_.cy("ytDebugData.callbacks");M||(M={},_.fE("ytDebugData.callbacks",M));return M};
OPi=function(M,d){var N=_.I9i();if(_.Q("web_dd_iu")||vAq.includes(M))N[M]=d};
jav=function(){return _.B(function(M){return M.return({isLeader:_.f1A(_.iY().getState()),c:_.rK("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.rK("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
saL=function(){var M;_.B(function(d){if(d.nextAddress==1)return OPi("APP_STATE",jav),_.D(d,_.h().resolve(_.aq),2);M=d.yieldResult;OPi("PI",function(){return _.B(function(N){return N.return(M.getVideoStats())})});
_.Vy(d)})};
P4Z=function(M){var d=_.LL(_.SE(_.Np.location.href));M=_.LL(_.SE(M));return _.Q("kevlar_clear_non_displayable_url_params")?d==UL(M):UL(d)==UL(M)};
UL=function(M){var d=_.oAZ(M);M=M.slice(0);var N=["frags"];_.Q("kevlar_hide_pp_url_param")&&N.push("pp");_.Q("kevlar_hide_time_continue_url_param")&&N.push("time_continue");N=_.V(N);for(var R=N.next();!R.done;R=N.next())R=R.value,M=_.GD(_.LL(M),R);return _.LL(M)+(d?"#"+d:"")};
uG=function(M,d){d=Number(d)*1E3;var N=Math.round((0,_.Gs)()),R=N.toString();M={innertubeResponse:M,serverDateTimestampMs:R,lastModifiedTimestampMs:R,expireTimestampMs:(N+d).toString()};if(d=_.rK("INNERTUBE_CONTEXT_CLIENT_NAME"))M.clientName=d;return M};
KBZ=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++rvi};
_.yvA=function(){var M=_.vl(),d=_.Ou();d&&M&&_.be(d,[M],!0)};
cvi=function(M){return M&&Jvj.some(function(d){return M.includes(d)})};
nA2=function(M){var d=_.q(M,_.JQ);if(!d)return!1;var N=d.url,R=d.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!N)return _.qZ(Error("Ah")),!1;if(d.target==="TARGET_NEW_WINDOW"){var X={};_.Q("resolve_url_parent_tracking_params")&&(!_.GN(N)||aJ(window.location.href,N))&&(X={endpoint:M,itct:M.clickTrackingParams});m1r(X);M=null;try{if(R){a:{var A=N,l=X;R=R===void 0?!1:R;l&&_.tX(A,l);var k=_.gH(A),T=_.$8(k);A!=T&&_.Sx(Error("$f`"+A));A=T;try{if(R){T=A;T=sjA(T);qX(T);M=_.oO(window,T,"_blank",
"attributionsrc");break a}}catch(m){_.yD(m)}qX(A);M=_.oO(window,k,"_blank")}Sxp(_.h().resolve(zbZ),M,N);return!0}}catch(m){_.qZ(m)}_.tX(N,X);X={target:"_blank",noopener:_.Q("set_window_noopener_ks")&&!d.allowOpener};d=window;k=ly(N)?N:_.gH(typeof N.href!="undefined"?N.href:String(N));M=self.crossOriginIsolated!==void 0;A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);T=X.noreferrer;if(M&&T&&A==="unsafe-url")throw Error("qe");A=T&&!M;T=X.target||N.target;R=
[];l=[];var W=!1;for(p in X){var w=X[p];switch(p){case "width":case "height":case "top":case "left":R.push(p+"="+w);break;case "target":break;case "noopener":case "noreferrer":w?l.push(p):(W=!0,l.push(p+"=false"));break;case "attributionsrc":R.push(p+(w?"="+w:""));break;default:R.push(p+"="+(w?1:0))}}var p=T!==void 0&&!["_blank","_self","_top","_parent",""].includes(T);p=OS()&&p;bPA&&M&&R.length===0&&l.length>0&&!p&&!W?(l.length===2&&(l=["noreferrer"]),_.oO(d,k,T,l[0]),M=ebZ()):(p=R.join(","),_.yq()&&
d.navigator&&d.navigator.standalone&&T&&T!="_self"?(p=_.Vf("A"),IO(p,k),p.target=T,A&&(p.rel="noreferrer"),((X=X.attributionsrc)||X==="")&&p.setAttribute("attributionsrc",X),X=document.createEvent("MouseEvent"),X.initMouseEvent("click",!0,!0,d,1),p.dispatchEvent(X),p=ebZ()):A?(p=_.oO(d,"",T,p),d=_.$8(k),p&&(p.opener=null,d===""&&(d="javascript:''"),d='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+CO(d)+'">',d=O0(d),(X=p.document)&&X.write&&(X.write(jd(d)),
X.close()))):((p=_.oO(d,k,T,p))&&X.noopener&&(p.opener=null),p&&X.noreferrer&&(p.opener=null)),M=p);Sxp(_.h().resolve(zbZ),M,N);return!0}p=_.FO(N);p=cvi(p)||N==="https://studio.youtube.com/";d=!(!_.GN(N)||aJ(window.location.href,N));X=N.indexOf("disable_polymer=1")>=0;if(d||X||p)qX(N),Qh(),_.Ij(N,void 0,void 0,window.top,HP6);else return _.vh(new _.WJ("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",M)),!1;return!0};
_.LBr=function(M,d){d=d===void 0?0:d;if(!(_.q(M,iPA)||_.q(M,f9L)||_.q(M,_.JQ)&&_.q(M,_.JQ).url))return!1;var N,R=(N=_.q(M,_.JQ))==null?void 0:N.url;N=R?{externalLinkData:{url:R}}:null;return _.Nx().clickCommand(M,N,d)};
_.xF=function(M,d){return _.Rz(M.entities,"subscriptionStateEntity",d)};
toj=function(M,d){return _.Rz(M.entities,"subscriptionNotificationStateEntity",d)};
Gwr=function(M,d){return _.Rz(M.entities,"upcomingEventReminderStateEntity",d)};
a9Z=function(M,d){return _.Rz(M.entities,"engagementToolbarSurfaceEntityPayload",d)};
UYi=function(M,d){return _.Rz(M.entities,"triStateButtonStateEntityPayload",d)};
uu6=function(M,d){return _.Rz(M.entities,"commerceCartCheckoutButtonEntity",d)};
_.C4S=function(M,d){return _.Rz(M.entities,"playlistLoopStateEntity",d)};
xY6=function(M,d){return _.Rz(M.entities,"commandEntity",d)};
ZPq=function(M,d,N,R,X){X=X===void 0?{}:X;return function(A){var l,k;var T=((l=M.loggingDirectives)==null?0:(k=l.clientVeSpec)==null?0:k.uiType)?_.Tx(M.loggingDirectives.clientVeSpec.uiType):void 0;X.clickedVisualElement||(X.clickedVisualElement=T);T=YxZ(M,d);N(T,A);T=_.V(T);for(l=T.next();!l.done;l=T.next()){l=l.value;k=R;var W=A,w=X;w.form?w.form.event=W:w.form={element:k,event:W};kF(l,w)}}};
YxZ=function(M,d){var N=[];d?(M.toggledCommand&&N.push(M.toggledCommand),M.toggledServiceEndpoint&&N.push(M.toggledServiceEndpoint)):(M.defaultCommand&&N.push(M.defaultCommand),M.defaultServiceEndpoint&&N.push(M.defaultServiceEndpoint),M.defaultNavigationEndpoint&&N.push(M.defaultNavigationEndpoint));return N};
EAN=function(M,d){var N=M.toggledStyle||M.style,R;switch((R=d?N:M.style)==null?void 0:R.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"}}};
MRZ=function(M,d){d=d.uniqueId+"-border";var N,R;var X=(R=(N=_.h().resolve(_.CF(_.Pz)))==null?void 0:N())!=null?R:!1;return{animationRef:M,animationConfig:{name:d,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(X?"dark":"light")+"_v2.json"}}};
_.YF=function(){return _.B(function(M){return M.nextAddress==1?_.D(M,_.h().resolve(_.aq),2):M.return(_.h().resolve(dtv)())})};
_.ZM=function(){return _.h().resolve(dtv)()};
_.EL=function(){return Ol(function(){return{lottieEl:void 0}})};
Nei=function(M,d){return M.startsWith(d.uniqueId)};
RPL=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.YF(),2);d=R.yieldResult;if((N=d)==null||!N.addEventListener)return MH(),R.return();d.addEventListener("onCueRangeEnter",M);_.Vy(R)})};
Xeq=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.YF(),2);d=R.yieldResult;if((N=d)==null||!N.removeEventListener)return MH(),R.return();d.removeEventListener("onCueRangeEnter",M);_.Vy(R)})};
FmA=function(M){var d,N,R,X,A;_.B(function(l){if(l.nextAddress==1)return _.D(l,_.YF(),2);d=l.yieldResult;if((N=d)==null||!N.addCueRange)return MH(),l.return();R=_.V(M.timings);for(X=R.next();!X.done;X=R.next())A=X.value,d.addCueRange(M.uniqueId+"-"+A,A/1E3,(A+100)/1E3);_.Vy(l)})};
ADN=function(M){var d,N,R,X,A;_.B(function(l){if(l.nextAddress==1)return _.D(l,_.YF(),2);d=l.yieldResult;if((N=d)==null||!N.removeCueRange)return MH(),l.return();R=_.V(M.timings);for(X=R.next();!X.done;X=R.next())A=X.value,d.removeCueRange(M.uniqueId+"-"+A);_.Vy(l)})};
VRq=function(){var M,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.YF(),2);M=R.yieldResult;if((d=M)==null||!d.getPlayerState)return MH(),R.return();N=M.getPlayerState();return R.return(N===2)})};
MH=function(){_.vh(new _.WJ("Smartimation player does not exist or is corrupted"))};
kdr=function(M){var d=l8Z;$tZ.push(M);BeA||(d(function(){for(var N=_.V($tZ),R=N.next();!R.done;R=N.next())R=R.value,R();$tZ.length=0;BeA=!1}),BeA=!0)};
l8Z=function(M){Promise.resolve().then(M)};
d5=function(M){M=_.V(mNZ(M));var d=M.next().value,N=M.next().value,R=!1;_.IJ(function(){return function(){R=!0}});
return[d,function(X){kdr(function(){R&&!_.Q("cow_prevent_state_setter_after_cleanup_killswitch")||N(X)})}]};
DtN=function(M){function d(W){var w;return _.B(function(p){if(p.nextAddress==1)return(w=!Nei(W,R)||!R.enabled)?p.jumpTo(2):_.D(p,VRq(),3);p.nextAddress!=2&&(w=p.yieldResult);if(w)return p.return();N();setTimeout(function(){T(!1)},1500);
_.Vy(p)})}
function N(){setTimeout(function(){T(!0);var W;(W=A.lottieEl)==null||W.goToAndPlay(0)},150)}
var R=M.settings;var X=M.className;M=M.children;var A=_.EL(),l=_.V(d5(!1)),k=l.next().value,T=l.next().value;R||(R={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.vh(new _.WJ("Smartimation Settings is undefined")));qV(function(){if(R.experimentEnabled)return R.enabled?RPL(d):(T(!1),Xeq(d)),function(){Xeq(d)}},[R.enabled,
R.experimentEnabled]);qV(function(){if(R.experimentEnabled)return FmA(R),function(){ADN(R)}},[R.timings.join("")]);
return _.g("yt-smartimation",{class:Te6(X,k,R)},_.ez(R.experimentEnabled,function(){return _.g("div",{class:"smartimation__border"},_.g(lij,{className:"smartimation__border-gradient",data:MRZ(A,R)}))}),_.g("div",{class:"smartimation__content"},M))};
Te6=function(M,d,N){var R=["smartimation"];M&&R.push(M);N.experimentEnabled&&R.push("smartimation--experiment-enabled");d&&R.push("smartimation--active-border");try{var X;var A=(X=window.CSS)!=null&&X.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(l){_.vh(new _.WJ("Smartimation CSS.supports threw an error")),A=!1}A&&R.push("smartimation--enable-masking");
return R.join(" ")};
gfj=function(){try{var M;return(M=window.CSS)!=null&&M.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(d){return _.vh(new _.WJ("Smartimation CSS.supports threw an error")),!1}};
qar=function(M,d,N,R,X){var A=M.playlistId?WmA:wer;d=d();N=N();X=!!M.videoId&&X()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.TL(d))return per({data:M,actionType:A,disabled:X},N);if(M.videoId&&R())return mt2({data:M,actionType:A,disabled:X});switch(d){case "TRANSFER_STATE_UNKNOWN":return mt2({data:M,actionType:A,disabled:X});case "TRANSFER_STATE_FAILED":return M.videoId?hPq({data:M,actionType:A,disabled:X}):Q96({data:M,actionType:A,disabled:X});case "TRANSFER_STATE_COMPLETE":return Q96({data:M,
actionType:A,disabled:X});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return per({data:M,actionType:A,disabled:X},N);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return M.videoId?hPq({data:M,actionType:A,disabled:X}):mt2({data:M,actionType:A,disabled:X});default:return mt2({data:M,actionType:A,disabled:X})}};
I8q=function(M,d){var N=M.onTapCommand,R=_.ht(N);if(M.videoId&&_.q(R,_.NH))return _.q(R,_.NH).action=d,N;M.playlistId&&_.q(R,_.R0)&&(_.q(R,_.R0).action=d);return N};
mt2=function(M){var d=M.data;var N=M.actionType;M=M.disabled;return{text:vfZ,iconType:"OFFLINE_DOWNLOAD",onTap:I8q(d,N.ACTION_ADD),disabled:M}};
per=function(M,d){var N=M.data;var R=M.actionType;M=M.disabled;var X="OFFLINE_DOWNLOAD";d>=0&&d<=.1?X="OFFLINE_DOWNLOADING_ZERO":d>.1&&d<=.3?X="OFFLINE_DOWNLOADING_TWENTY":d>.3&&d<=.5?X="OFFLINE_DOWNLOADING_FORTY":d>.5&&d<=.7?X="OFFLINE_DOWNLOADING_SIXTY":d>.7&&d<1?X="OFFLINE_DOWNLOADING_EIGHTY":d===1&&(X="OFFLINE_PIN");return{text:Oi2,iconType:X,onTap:I8q(N,R.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
Q96=function(M){var d=M.data;var N=M.actionType;M=M.disabled;return{text:j9N,iconType:"OFFLINE_PIN",onTap:I8q(d,N.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
hPq=function(M){var d=M.data;var N=M.actionType;M=M.disabled;return{text:s9N,iconType:"OFFLINE_DOWNLOAD",onTap:I8q(d,N.ACTION_RETRY),disabled:M}};
Pl6=function(){var M=_.V(d5(!1)),d=M.next().value,N=M.next().value;return function(){N(!d)}};
ofA=function(M){return Ol(function(){return{value:M}})};
rDj=function(M,d){var N=ofA(M),R=ofA(d);qV(function(){N.value=M},[M]);
qV(function(){R.value=d},d&&d.length>=1?d:[void 0]);
var X=Ol(function(){return{value:void 0}});
if(M!==N.value||R.value!==d||X.value===void 0)X.value=K6(M,d);var A=Pl6();_.IJ(function(){function l(){var T=K6(N.value,d);T!==X.value&&(X.value=T,A())}
var k=_.r4().subscribe(l);l();return k});
return X.value};
_.XT=function(M,d){return rDj(M,[d])};
_.FT=function(M,d){var N=hzq();return _.Al(function(){N();return K6(M,[_.QJ(d)||""])},void 0,"HaeHEc")};
Kmv=function(M){var d=_.FT(_.jp,function(){return M().videoId}),N=_.FT(_.sW,function(){return M().playlistId});
return function(){return M().videoId?d:M().playlistId?N:_.V(_.d0("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
yDZ=function(M){var d=_.FT(PD,function(){return M().videoId}),N=_.FT(_.i92,function(){return M().playlistId});
return function(){return M().videoId?d:M().playlistId?N:_.V(_.d0(0,void 0,"K4tgOc")).next().value}};
JDr=function(M){var d=_.FT(_.C86,function(){return M().videoId});
return function(){return M().videoId?d:_.V(_.d0(!1,void 0,"Oaxwcf")).next().value}};
cDS=function(M){var d=_.FT(tHi,function(){return M().videoId});
return function(){return M().videoId?d:_.V(_.d0("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
SaZ=function(){return{}};
ePp=function(M){var d=M.backgroundLottieRef;var N=M.foregroundLottieRef;var R=M.children;var X=M.wrapperClass;M=M.disableAnimation;M=(_.Q("web_animated_actions")||_.Q("web_animated_actions_v2"))&&!M;return _.g("yt-animated-action",{class:_.xj("animated-action__container",X)},_.g("div",{class:"animated-action__content-with-background"},_.ez(M,function(){return _.g(zPr,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:d,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(bir()?"dark":"light")+"_v5.json"}}})}),R),_.ez(M,function(){return _.g(zPr,{lottiePlayerProps:{animationRef:N,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(bir()?"dark":"light")+"_v4.json"}}})}))};
zPr=function(M){var d=M.wrapperClass;var N=M.lottieClass;M=M.lottiePlayerProps;return _.g("div",{class:_.ZH("animated-action__lottie",d),"aria-hidden":"true"},_.g(lij,{className:N,data:M}))};
bir=function(){var M,d;return(d=(M=_.h().resolve(_.CF(_.Pz)))==null?void 0:M())!=null?d:!1};
HiS=function(){var M,d;return(d=(M=_.h().resolve(_.CF(_.Pz)))==null?void 0:M())!=null?d:!1};
ii2=function(M,d){M=M===void 0?nf2:M;switch(d.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},M,{isOpen:d.payload});default:return M}};
LmZ=function(M,d){M=M===void 0?f8N:M;switch(d.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},M,{isAllowed:d.payload});default:return M}};
Gdj=function(M,d){M=M===void 0?tR6:M;switch(d.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{errorMessage:d.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{title:d.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},M,{privacy:d.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},M,{isDisabled:d.payload});default:return M}};
UtZ=function(M,d){M=M===void 0?a8i:M;switch(d.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},M,{isOpen:d.payload});default:return M}};
Clv=function(M,d){M=M===void 0?u9r:M;switch(d.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},M,{isFullscreen:d.payload});case "SET_NAVIGATION_BUTTON":var N=d.payload.targetId,R=Object.assign({},M.navigationButtons);R[N]=d.payload.button;return Object.assign({},M,{navigationButtons:R});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},M,{topPanelId:d.payload});case "SET_SECONDARY_HEADER":return N=d.payload.panelId,R=Object.assign({},M.secondaryHeader),R[N]=d.payload.secondaryHeader,
Object.assign({},M,{secondaryHeader:R});default:return M}};
EfS=function(){return Nw(Object.assign({},{entities:qYA,voiceSearch:S96,engagementPanel:Clv,bottomSheet:ii2,cinematicSetting:LmZ,shorts:LT6,drawerLayout:UtZ,createPlaylist:Gdj,locationCollection:xtZ,reportChannel:Yar,reportForm:Zi2},t4Z))};
My2=function(M,d){return"https://www.gstatic.com/youtube/img/lottie/"+M+"/"+d+".json"};
dD6=function(M){return{lottiePlayerProps:{animationConfig:{name:M.name,path:My2("custom_animated_like_icon",M.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:M.totalFrames,lazyLoad:!0}};
Nwq=function(M,d){_.IQ.addLowPriorityJob(function(){var N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.Mv(A,2),_.D(A,ZrA(),4);case 4:return _.D(A,fetch(M),5);case 5:return N=A.yieldResult,_.D(A,N.json(),6);case 6:R=A.yieldResult;Cq.set(M,R);requestAnimationFrame(function(){d(R)});
_.cJ(A,0);break;case 2:X=_.Fg(A),_.vh(X),_.Vy(A)}})})};
RGr=function(M){var d={animationConfig:{},listeners:{}},N=function(){M(!0)};
d.listeners.data_failed=N;d.listeners.error=N;d.listeners.data_ready=function(){M(!1)};
return d};
Ao=function(M){var d=M.model;var N=M.subscribed;var R=M.isOverlay;var X=M.element;var A=M.commandController;var l=M.notificationState;if(N){var k,T;var W=(d==null?void 0:(k=d.buttonStyle)==null?void 0:k.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:d==null?void 0:(T=d.unsubscribeButtonContent)==null?void 0:T.buttonText}else{var w;W=d==null?void 0:(w=d.subscribeButtonContent)==null?void 0:w.buttonText}a:{var p;switch(d==null?void 0:(p=d.buttonStyle)==
null?void 0:p.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":k="S";break a;default:k="M"}}a:if(R)R="overlay";else switch(d.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":R="overlay";break a;default:R="mono"}a:if(N)var m="tonal";else switch((m=d.buttonStyle)==
null?void 0:m.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":m="tonal";break a;default:m="filled"}return{style:R,type:m,state:d.disableSubscribeButton?"disabled":"active",size:k,focused:M.focused,toggled:N,accessibilityLabel:XKi(d,N,l),buttonText:W,iconPosition:d.disableNotificationBell?"none":"leading-trailing",onTap:FOZ(d,N,X,A),disableTextEllipsis:!!M.disableTextEllipsis}};
FOZ=function(M,d,N,R){return function(X){if(d){var A;var l=M.disableNotificationBell?_.ht(M==null?void 0:(A=M.unsubscribeButtonContent)==null?void 0:A.onTapCommand):_.ht(M==null?void 0:M.onShowSubscriptionOptions)}else{var k;l=_.ht(M==null?void 0:(k=M.subscribeButtonContent)==null?void 0:k.onTapCommand)}l&&kF(l,{form:{element:N},commandController:R});X.stopPropagation()}};
XKi=function(M,d,N){if(d){if(M==null?0:M.disableNotificationBell){var R;return M==null?void 0:(R=M.unsubscribeButtonContent)==null?void 0:R.accessibilityText}switch(N){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var X;return M==null?void 0:(X=M.bellAccessibilityData)==null?void 0:X.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var A;return M==null?void 0:(A=M.bellAccessibilityData)==null?void 0:A.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var l;return M==null?void 0:(l=
M.bellAccessibilityData)==null?void 0:l.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var k;return M==null?void 0:(k=M.bellAccessibilityData)==null?void 0:k.disabledLabel;default:var T;return M==null?void 0:(T=M.unsubscribeButtonContent)==null?void 0:T.accessibilityText}}else{var W;return M==null?void 0:(W=M.subscribeButtonContent)==null?void 0:W.accessibilityText}};
VM=function(M){if(!M)return null;switch(M){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":M="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":M="NOTIFICATIONS_OFF";break;default:M="NOTIFICATIONS_NONE"}return M};
AHA=function(M,d,N){N.subscribed!==d&&((N=N.key)&&_.yE(_.la("subscriptionStateEntity",N,{key:N,subscribed:d})),M.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:d})),d||_.ZI(M,"yt-unsubscribe-action"))};
lXZ=function(M){M=_.q(_.ht(M),_.$M);var d,N,R,X;return(X=_.q(M==null?void 0:(d=M.panelLoadingStrategy)==null?void 0:(N=d.inlineContent)==null?void 0:(R=N.sheetViewModel)==null?void 0:R.content,Vyr))==null?void 0:X.listItems};
$Dv=function(M,d){if(M.onShowSubscriptionOptions&&d&&(M=lXZ(M.onShowSubscriptionOptions),M!=null&&M.length)){var N=VM(d);M.forEach(function(R){R=_.q(R,_.B5);var X,A,l,k,T=R==null?void 0:(X=R.leadingImage)==null?void 0:(A=X.sources)==null?void 0:(l=A[0])==null?void 0:(k=l.clientResource)==null?void 0:k.imageName;R&&T&&(R.isSelected=T===N)})}};
BwN=function(M,d,N,R){d&&N?M.style.width=N+"px":!d&&R&&(M.style.width=R+"px")};
kvZ=function(M,d,N){var R;(R=M.lottieEl)==null||R.goToAndPlay(0);var X;(X=d.lottieEl)==null||X.goToAndPlay(0);_.kM(_.IQ,function(){var A;(A=N.lottieEl)==null||A.goToAndPlay(0)},300)};
wKq=function(M){var d=_.e5(),N=_.e5(),R=_.e5(),X=_.EL(),A=_.EL(),l=_.EL(),k=_.h().resolve(Twp),T,W=(T=_.XT(_.xF,M.data.stateEntityStoreKey))!=null?T:void 0,w,p,m,I=(m=_.XT(toj,(p=(w=M.data.notificationStateEntityStoreKeys)==null?void 0:w.subsNotificationStateKey)!=null?p:""))!=null?m:void 0;T=!!M.data.disableNotificationBell;var O=!M.data.enableSubscribeButtonPostClickAnimation;w=_.V(d5(0));var y=w.next().value,c=w.next().value;w=_.V(d5(0));var e=w.next().value,t=w.next().value;w=_.V(d5(!1));var C=
w.next().value,U=w.next().value;w=_.V(d5(!1));var Fi=w.next().value,Y=w.next().value,$i=jx(!1),vj=jx("");w=_.V(d5(!1));var Pj=w.next().value,sS=w.next().value,tL=function(){Y(!0);_.kM(_.IQ,function(){Y(!1)},1500)};
qV(function(){Fi&&!O&&W&&kvZ(X,A,l)},[Fi]);
qV(function(){!O&&W&&(M.animateWidth&&BwN(d.value,!!W.subscribed,y,e),W.subscribed&&W.key===vj.value&&tL(),W.key&&(vj.value=W.key))},[W==null?void 0:W.subscribed,
W==null?void 0:W.key]);var b2=vy(function(){var oI=M.data,$d=!(W==null||!W.subscribed),CJ=!!M.isOverlay,xd=C?d.value:void 0,Vq=I==null?void 0:I.state;$Dv(oI,Vq);return Ao({model:oI,subscribed:$d,isOverlay:CJ,element:xd,notificationState:Vq,disableTextEllipsis:!0,focused:Pj})},[M.data,
W,I,Pj,M.isOverlay,C]),Hj=function(){var oI=_.h().resolve(_.CF(_.TH));oI&&sS(oI.isKeyBoardInUse())},LZ=function(){sS(!1)};
NTZ(d,function(oI){w3();W&&(oI.detail.endpoint.subscribeEndpoint||oI.detail.endpoint.unsubscribeEndpoint)&&AHA(d.value,!W.subscribed,W)});
_.bv("yt-player-subscribe",function(oI){W&&oI===M.data.channelId&&AHA(d.value,!0,W)});
_.bv("yt-player-unsubscribe",function(oI){W&&oI===M.data.channelId&&AHA(d.value,!1,W)});
_.bv("yt-update-subscribe-button-action",function(oI){oI=_.q(oI,DDj);W&&oI&&oI.channelId===M.data.channelId&&AHA(d.value,!!oI.subscribed,W)});
_.IJ(function(){d.value&&(d.value.addEventListener("focusin",Hj),d.value.addEventListener("focusout",LZ));_.gL(_.IQ,function(){w3()});
U(!0);return function(){d.value&&(d.value.removeEventListener("focusin",Hj),d.value.removeEventListener("focusout",LZ))}});
var w3=function(){if(!O&&M.animateWidth&&(N==null?0:N.value)&&(R==null?0:R.value)&&!$i.value){var oI=_.V((W==null?0:W.subscribed)?[N,R]:[R,N]),$d=oI.next().value;oI=oI.next().value;$d=Math.ceil($d.value.getBoundingClientRect().width);oI=Math.ceil(oI.value.getBoundingClientRect().width);c($d);t(oI);BwN(d.value,!(W==null||!W.subscribed),$d,oI);$i.value=!0}},XY=function(){var oI=VM(I==null?void 0:I.state);
return O||oI!=="NOTIFICATIONS_NONE"?function(){return k(oI)}:function(){Kq(gKZ)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:l})}};
w=function(){var oI=VM(I==null?void 0:I.state);return O||oI!=="NOTIFICATIONS_NONE"?function(){return _.g(_.Fc,{icon:oI!=null?oI:void 0})}:function(){return _.g(gKZ,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:l})}};
var jJ=!(W==null||!W.subscribed)&&!T&&!(I==null||!I.state),Ne=!(W==null?0:W.subscribed),Vz=Ne&&!T&&!(I==null||!I.state);T={};p={};return _.g("yt-subscribe-button-view-model",{class:_.ZH("yt-subscribe-button-view-model-wiz",(T["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(W==null||!W.subscribed)&&M.animateWidth&&Fi,T["yt-subscribe-button-view-model-wiz--hidden"]=!(W==null?0:W.subscribed)&&M.data.hideWhenUnsubscribed,T)),el:d},_.g(WOZ,{backgroundLottieRef:X,foregroundLottieRef:A,wrapperClass:_.ZH("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(p["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=M.animateWidth&&Fi,p["yt-subscribe-button-view-model-wiz__static-width"]=!M.animateWidth,p)),disableAnimation:O},_.g("div",{el:N,class:_.ZH("yt-subscribe-button-view-model-wiz__container"),idomKey:M.data.channelId},_.Q("web_wiz_button_shape")?_.g(HDi,{data:b2,icon:jJ?w():void 0,secondaryIcon:jJ?function(){return _.g(_.Fc,{icon:"EXPAND"})}:void 0}):_.g(na,null,function(){GG2(b2,jJ?XY():void 0,jJ?function(){return k("EXPAND")}:
void 0)}))),_.g("div",{el:R,
class:"yt-subscribe-button-view-model-wiz__invisible"},!M.animateWidth||O||$i.value?null:_.Q("web_wiz_button_shape")?_.g(HDi,{data:Ao({model:M.data,subscribed:Ne,isOverlay:!!M.isOverlay,element:d.value,disableTextEllipsis:!0}),icon:Vz?function(){var oI;return _.g(_.Fc,{icon:(oI=VM(I==null?void 0:I.state))!=null?oI:void 0})}:void 0,
secondaryIcon:Vz?function(){return _.g(_.Fc,{icon:"EXPAND"})}:void 0}):_.g(na,null,function(){GG2(Ao({model:M.data,
subscribed:Ne,isOverlay:!!M.isOverlay,element:d.value,disableTextEllipsis:!0}),Vz?function(){return k(VM(I==null?void 0:I.state))}:function(){},Vz?function(){return k("EXPAND")}:void 0)})))};
pKZ=function(M){if(M){switch(M){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":M="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":M="NOTIFICATIONS_OFF";break;default:M="NOTIFICATIONS_NONE"}return M}};
mDi=function(M,d,N){N.subscribed!==d&&((N=N.key)&&_.yE(_.la("subscriptionStateEntity",N,{key:N,subscribed:d})),M.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:d})),d||_.ZI(M,"yt-unsubscribe-action"))};
hGS=function(M){M=_.q(_.ht(M),_.$M);var d,N,R,X;return(X=_.q(M==null?void 0:(d=M.panelLoadingStrategy)==null?void 0:(N=d.inlineContent)==null?void 0:(R=N.sheetViewModel)==null?void 0:R.content,Vyr))==null?void 0:X.listItems};
QES=function(M,d){if(M.onShowSubscriptionOptions&&d&&(M=hGS(M.onShowSubscriptionOptions),M!=null&&M.length)){var N=pKZ(d);M.forEach(function(R){R=_.q(R,_.B5);var X,A,l,k,T=R==null?void 0:(X=R.leadingImage)==null?void 0:(A=X.sources)==null?void 0:(l=A[0])==null?void 0:(k=l.clientResource)==null?void 0:k.imageName;R&&T&&(R.isSelected=T===N)})}};
qJi=function(M,d,N,R){d&&N?M.style.width=N+"px":!d&&R&&(M.style.width=R+"px")};
IXv=function(M,d,N){var R;(R=M.lottieEl)==null||R.goToAndPlay(0);var X;(X=d.lottieEl)==null||X.goToAndPlay(0);_.kM(_.IQ,function(){var A;(A=N.lottieEl)==null||A.goToAndPlay(0)},300)};
D$=function(){return _.h().resolve(_.CF(vK6))||{}};
OlZ=function(M){return typeof M==="function"};
_.W5=function(M){Object.keys(M);var d=function(N,R){var X=d.mapping||M;if(!N)return _.g(_.GT,null);if(Array.isArray(N)&&(N=jEZ(X,d,N),Array.isArray(N))){if(!N.length)return _.g(_.GT,null);if(N.length>1){for(var A=!1,l=!1,k=[],T={},W=0;W<N.length;T={data$jscomp$1831:void 0},W++)if(T.data$jscomp$1831=N[W],T.data$jscomp$1831){var w=sEj(T.data$jscomp$1831,X),p=w.mappingEntry;w=w.rendererName;p&&w&&(p&&(!OlZ(p)&&PFi(p)&&(l=!0),!OlZ(p)&&p.asyncId||(A=!0)),k.push(oKp(T.data$jscomp$1831,p,w,d,R)))}return l&&
!A?_.g(_.GT,null,rHL()):_.g(_.GT,null,k)}N=N[0]}if(!N)return _.g(_.GT,null);N=jEZ(X,d,[N])[0];if(!N)return _.g(_.GT,null);A=sEj(N,X);X=A.mappingEntry;A=A.rendererName;return X&&A?_.g(_.GT,null,oKp(N,X,A,d,R)):_.g(_.GT,null)};
d.mapping=M;return d};
_.KOj=function(M){var d=void 0,N;for(N in M)if(M.hasOwnProperty(N)){d=N;break}return d};
jEZ=function(M,d,N){var R,X=(R=D$().preProcessOptions)==null?void 0:R.idomOptions;if(!X)return N;D$();return X.preProcessPropsIdom(M,N,d.triggerRerender)};
sEj=function(M,d){return(M=_.KOj(M))?{mappingEntry:d[M],rendererName:M}:{mappingEntry:void 0,rendererName:void 0}};
oKp=function(M,d,N,R,X){if(!d)return _.g(_.GT,null);var A={};X&&X[N]&&(A=Object.assign({},X[N]));M[N]!==void 0&&(A.data=M[N]);if(OlZ(d))return d.debugName||(d.debugName=N),_.g(d,A);d.asyncId&&(R.pendingIdsMap=R.pendingIdsMap||{},R.pendingIdsMap[N]=d.asyncId);return d.templateFn?d.templateFn(A):PFi(d)?rHL():_.g(_.GT,null)};
PFi=function(M){var d;return(d=M.showPlaceholder)!=null?d:D$().defaultShowPlaceholder};
rHL=function(){var M=D$().placeholder;return M()};
yHZ=function(M,d){d=d===void 0?{shouldPersist:!0}:d;return{useUpdatableData:function(N,R){var X=[],A=_.V(_.Rq(function(){var W=N();if(R!=null&&R.length&&X){var w=X.length>0;for(var p=!1,m=0;m<R.length;m++){var I=R[m]();w&&I!==X[m]&&(p=!0);X[m]=I}w=p}else w=!1;if(w)_.w5.remove(T());else if(w=_.w5.get(T()))return w;return W})),l=A.next().value,k=A.next().value,T=_.Al(function(){return M(N())},void 0,"VFraLb");
_.Wg(function(){if(T()!=null){pX.set(T(),[l,k,!1]);var W=T();_.mF(function(){pX.delete(W)})}});
return[l,function(W){k(W);d.shouldPersist&&_.w5.set(T(),W)}]},
getData:function(N){var R;return(R=pX.get(M(N)))==null?void 0:R[0]()},
updateData:function(N,R){N=M(N);var X=pX.get(N);if(!X)return!1;var A=_.V(X);X=A.next().value;A=A.next().value;R=R(X());A(R);d.shouldPersist&&_.w5.set(N,R);return!0},
useUpdatableDataIdom:function(N,R){var X=M(N),A=_.w5.get(X),l=_.V(d5(A!=null?A:N)),k=l.next().value,T=l.next().value,W=jx(A!=null?A:N);qV(function(){if(X!=null)return pX.set(X,[function(){return W.value},
function(w){T(w);W.value=w},
pX.has(X)]),_.IQ.addJob(function(){_.m$(_.IQ,function(){var w=pX.get(X);w&&(w[2]=!1)},0)},8),function(){var w;
((w=pX.get(X))==null?0:w[2])||pX.delete(X)}},[X]);
qV(function(){k!==N&&(T(N),W.value=N)},R?[].concat(_.wu(R),[X]):[X]);
return[k,T]}}};
JHZ=function(M){var d=_.V(_.d0(!0,void 0,"bKtO6d")),N=d.next().value;d.next();return function(){var R=Fo(M.children());return _.g(_.kV,{cond:N,then:function(){return R},
else:M.fallback})}()};
_.ho=function(M){var d=cHq(M),N=d.data,R=d.mapping,X=d.wrapper;d=d.pendingFallback;var A=function(){return SJj(_.QJ(N))},l=function(){var k=A(),T=[];
k=_.V(k);for(var W=k.next();!W.done;W=k.next()){var w=void 0;W=W.value;var p=void 0;for(w in W)if(!(!W).hasOwnProperty(w)){p=w;break}(w=p)&&T.push(w)}return T};
return M.data?_.g(JHZ,{fallback:d},function(){return _.g(_.TN,{each:l},function(k,T){var W=X?function(p){return X(function(){return R[k](p,T)},w,T)}:function(p){return R[k](p,T)};
W.debugName||(W.debugName=String(k));if(!R[String(k)])return document.createComment("");var w=zGj(A,k,T);return _.g(W,{data:w})})}):_.g(_.GT,null)};
cHq=function(M){var d=M.targetId||blj(M.children);if(!M.data||!d||_.Q("mweb_new_replaceables_killswitch"))return Object.assign({},M,{mapping:M.children,wrapper:void 0});var N="stamper-"+eG2++,R=function(){var k;return(k=_.QJ(M.targetId))!=null?k:N};
d=_.V(HlN(function(){var k=SJj(M.data());k.targetId=R;return k})).next().value;
var X=Object.assign({},D$().replaceableMapping,M.children);if(M.replacementWrapper){var A=X.notificationTextRenderer,l=X.notificationMultiActionRenderer;A&&(X.notificationTextRenderer=function(k,T){return M.replacementWrapper(A({data:k.data},T))});
l&&(X.notificationMultiActionRenderer=function(k,T){return M.replacementWrapper(l({data:k.data},T))})}return Object.assign({},M,{data:d,
mapping:X,wrapper:function(k,T,W){return SUN({targetId:R,stamperIndex:W},k)}})};
zGj=function(M,d,N){var R;return _.Al(function(){var X=M()[N()];if(X)R=X[d];else return _.vh(new _.WJ("Stamper failed to find "+String(d)+" at index "+N()+" of data array of length "+(M().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),R;return X[d]},void 0,"DHuMIe")};
blj=function(M){M=_.V(Object.keys(M));for(var d=M.next();!d.done;d=M.next())if(d=d.value,nKp.includes(d)||ilL.includes(d)||fXi.includes(d))return!0;return!1};
SJj=function(M){return M?Array.isArray(M)?M:[M]:[]};
LOr=function(M){M=_.q(M,_.QM);return(M==null?void 0:M.iconName)&&!(M==null?0:M.title)};
aXN=function(M,d,N){var R;return _.g(_.GT,null,M==null?void 0:(R=M.actions)==null?void 0:R.map(function(X){return _.g("div",{class:function(){var A={"yt-flexible-actions-view-model-wiz__action":!0};A["yt-flexible-actions-view-model-wiz__action--row-action"]=d;A["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(LOr(X))var l=!0;else if(l=_.q(X,_.qH),(l==null?0:l.isToggled)&&LOr(l==null?void 0:l.toggledButtonViewModel)||(l==null||!l.isToggled)&&LOr(l==null?void 0:l.defaultButtonViewModel))l=
!0;else{var k;l=((k=_.q(X,tyi))==null?0:k.playlistId)?!0:!1}A=(A["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=l,A["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=N,A);return _.ZH(A)}},Gvr([X],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!d}}))}))};
UDi=function(M){var d=M.layout===1,N,R=((N=M.data)==null?void 0:N.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";N={};R=(N["yt-flexible-actions-view-model-wiz"]=!0,N["yt-flexible-actions-view-model-wiz--inline"]=!d,N["yt-flexible-actions-view-model-wiz--scrollable"]=R,N);var X,A;return _.g("yt-flexible-actions-view-model",{class:_.ZH(M.className,R)},(X=M.data)==null?void 0:(A=X.actionsRows)==null?void 0:A.map(function(l){if(d){var k;return _.g("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
aXN(l,d,!((k=M.data)==null||!k.respectActionIntrinsicWidth)))}return aXN(l,d,!1)}))};
uki=function(M){return!(M==null||!M.iconName||(M==null?0:M.title))};
CFj=function(M){var d=_.q(M.data.toggleButtonViewModel,_.qH),N,R=(N=M.data.dislikeEntityKey)!=null?N:"",X=_.XT(QX,R);d=Object.assign({},d,{isToggled:X?X.likeStatus==="DISLIKE":d.isToggled});return _.g("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.g(_.I0,{data:d,buttonShapeOverrides:M.buttonShapeOverrideables,onToggle:function(A){X&&A!==(X.likeStatus==="DISLIKE")&&X.key&&_.yE(_.v5("likeStatusEntity",X.key,{likeStatus:A?"DISLIKE":"INDIFFERENT",hadUserInteraction:A}))}}))};
YJ6=function(M){var d=_.Q("web_supports_animations_api"),N=_.q(M.data.toggleButtonViewModel,_.qH),R,X,A,l,k=_.V(d5({numberText:(l=(R=M.likeCountEntity)==null?void 0:(X=R.likeCountIfIndifferent)==null?void 0:X.content)!=null?l:"",numberValue:Number((A=M.likeCountEntity)==null?void 0:A.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),T=k.next().value,W=k.next().value,w,p,m,I;R=_.V(d5({numberText:(I=(w=M.likeCountEntity)==null?void 0:(p=w.likeCountIfLiked)==null?void 0:p.content)!=null?
I:"",numberValue:Number((m=M.likeCountEntity)==null?void 0:m.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));w=R.next().value;var O=R.next().value;p=_.V(d5(void 0));var y=p.next().value,c=p.next().value,e;p=(e=M.data.likeStatusEntityKey)!=null?e:"";var t,C;e=(C=(t=M.likeCountEntity)==null?void 0:t.key)!=null?C:"";var U=_.XT(QX,p),Fi=_.XT(ICi,e);t=vy(function(){return(U==null?void 0:U.likeStatus)==="LIKE"},[U]);
qV(function(){var Y,$i=Fi&&((Y=Fi.likeCountIfIndifferent)==null?void 0:Y.content)!==T.numberText;if(!y&&$i){var vj,Pj;W({numberText:(Pj=Fi==null?void 0:(vj=Fi.likeCountIfIndifferent)==null?void 0:vj.content)!=null?Pj:"",numberValue:Number(Fi==null?void 0:Fi.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var sS,tL;O({numberText:(tL=Fi==null?void 0:(sS=Fi.likeCountIfLiked)==null?void 0:sS.content)!=null?tL:"",numberValue:Number(Fi==null?void 0:Fi.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[Fi]);
N=Object.assign({},N,{isToggled:t});d=d&&M.likeCountEntity;return _.g("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.g(_.I0,{data:N,buttonShapeOverrides:M.buttonShapeOverrideables,animatedTextPropsDefault:d?T:void 0,animatedTextPropsToggled:d?w:void 0,onToggle:function(Y){xDj(Y,U,y,c)},
style:function(){return M.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
xDj=function(M,d,N,R){N&&_.IQ.cancelJob(N);N=_.IQ.addLowPriorityJob(function(){R(void 0)},5E3);
R(N);d&&M!==(d.likeStatus==="LIKE")&&d.key&&_.yE(_.la("likeStatusEntity",d.key,{key:d.key,likeStatus:M?"LIKE":"INDIFFERENT",hadUserInteraction:M}))};
ZlL=function(M,d,N,R){N&&_.IQ.cancelJob(N);N=_.IQ.addLowPriorityJob(function(){R(void 0)},5E3);
R(N);d&&M!==(d.likeStatus==="LIKE")&&d.key&&_.yE(_.la("likeStatusEntity",d.key,{key:d.key,likeStatus:M?"LIKE":"INDIFFERENT",hadUserInteraction:M}))};
Nvv=function(M){var d,N=_.q((d=M.data)==null?void 0:d.likeButtonViewModel,Oc),R;d=_.q((R=M.data)==null?void 0:R.dislikeButtonViewModel,jk);var X,A=(X=_.XT(QX,(N==null?void 0:N.likeStatusEntityKey)||""))!=null?X:N==null?void 0:N.likeStatusEntity;R=vy(function(){var l=M.data,k;l=(l==null?void 0:(k=l.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:l,enabled:(A==null?void 0:A.likeStatus)==="INDIFFERENT"&&l.length>0,experimentEnabled:l.length>0}},[M.data,
A]);return _.g("segmented-like-dislike-button-view-model",{class:_.ZH(M.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.g(_.EKN,{settings:R},_.g("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},N?_.g(MUp,{data:N,likeCountEntity:M.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,d?_.g(daZ,{data:d,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
RlL=function(M,d){var N=fb(M)||{layerNode:d};N.layerNode=d;LEZ(M,N);M.getScreenLayer=function(){return sc(N.layerNode)}};
XBS=function(M){var d;M=M.parentNode;for(var N;M&&((d=fb(M))==null||!d.isRenderer)&&!((N=M.polymerController)!=null?N:M).isRenderer_;)M=M.parentNode||M.host;if(d=M)return fb(d)};
Fe2=function(M){if(M){ie.delete(M);var d=_.h().resolve(tQ);Y3N(M,d)}};
VUA=function(M,d,N){if(N===void 0?0:N){if(N=M.getAttribute("client-ve-type"),d.data&&!d.disableReactiveLogging||N)_.w0(function(){A0q(M,_.QJ(d.data))}),_.mF(function(){return void Fe2(M)})}else typeof d.data!=="function"&&A0q(M,d.data)};
A0q=function(M,d){lJi++;$aZ(M,d)&&_.IQ.addJob(function(){_.m$(_.IQ,function(){if($aZ(M,d)&&M.ownerDocument.documentElement===document.documentElement&&M){var N;if(M.getAttribute("layer")){var R=N=Number(M.getAttribute("layer")),X=fb(M);X?X.layerNode.layer=R:RlL(M,new BvZ(R));(R=XBS(M))&&(X=fb(M))!=null&&(X.layerNode.parent=R.layerNode)}else if(N=fb(M))N=sc(N.layerNode);else{N=sc;R=new BvZ;if(X=XBS(M))R.parent=X.layerNode;RlL(M,R);N=N(R)}N!=null||(N=0);R=M.getAttribute("client-ve-type");X=Number(R);
var A=!1;R=!1;var l=fb(M),k;if((k=l)&&!(k=l[P5]!==d)&&(k=X)){var T;k=((T=ie.get(M))==null?void 0:T.clientVeType)===void 0}k&&(l[P5]=d,A=R=l.isRenderer=!0);ie.has(M)&&(ie.get(M).clientVeType=X);M.visualElement&&(R=!0);(T=d==null?void 0:d.loggingDirectives)&&T.clientVeSpec&&(l=kpp(_.Mx(),M),T=_.Tv2(_.Nx(),T,l||void 0,N))&&(M.visualElement=T);!M.visualElement&&X&&A&&(M.veType=X,T=void 0,_.Q("wiz_next_client_ve_parent_fix")&&(T=kpp(_.Mx(),M)),T=_.dk(_.Nx(),M,T,N),M.visualElement=T);R&&(T=_.h().resolve(tQ),
dqZ(M,{data:d,observer:T,layer:N,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
$aZ=function(M,d){return(d==null?0:d.trackingParams)||(d==null?0:d.loggingDirectives)||_.q(d==null?void 0:d.rendererContext,_.NAi)||M.getAttribute("client-ve-type")?!0:!1};
grN=function(M){return _.Q("cow_logging_in_component_wrapper")?function(d){VUA(d,M,!0)}:DaZ};
DaZ=function(){};
_.Wev=function(M,d){return _.Rz(M.entities,"accountLinkStatusEntity",d)};
wB2=function(M,d){return _.Rz(M.entities,"hatsSurveyEntity",d)};
pB2=function(M,d){return _.Rz(M.entities,"hatsSurveyStateEntity",d)};
mar=function(M,d){return _.Rz(M.entities,"quantityIncrementerEntity",d)};
vrA=function(M){var d=M.data;var N=M.className===void 0?"":M.className;var R=M.setMinWidth;M=M.forceIconOnly;var X=_.e5(grN({data:d}));R=R?"ytwAccountLinkButtonViewModelHostMinWidth":"";var A=_.FT(_.Wev,function(){var p;return(p=_.QJ(d).accountLinkStatusEntityKey)!=null?p:""}),l=_.FT(_.Wev,function(){var p;
return(p=_.QJ(d).accountLinkStatusSecondaryEntityKey)!=null?p:""}),k=function(){if(!_.Q("web_account_link_secondary_killswitch")){var p,m;
return((p=A())==null?void 0:p.linked)||((m=l())==null?void 0:m.linked)}var I;return(I=A())==null?void 0:I.linked};
_.Wg(function(){var p=A();if(p){var m=hlL(new QBZ,qwZ(new IJr,!!p.linked));_.YF().then(function(I){I&&(I.setAccountLinkState(_.UT(m.JSC$9958_serializeBinary(),4)),I.updateAccountLinkingConfig(!!p.linked))})}});
var T=function(){return _.q(_.QJ(d).toggleButtonViewModel,_.qH)};
_.bv("yt-signal-action-show-account-link-dialog",function(){if(T()){var p=k()?T().toggledButtonViewModel:T().defaultButtonViewModel;p=_.q(p,_.QM);var m;if((m=A())==null?0:m.isWarning){m=_.q(_.QJ(d).warningButtonViewModel,_.QM);if(!m){_.Sx(Error("Bh"));return}p=m}var I;(m=_.ht((I=p)==null?void 0:I.onTap))&&_.FP([m],X.value)}else _.Sx(Error("Ch"))});
var W=function(){var p=T();return Object.assign({},p,{isToggled:k()})},w=M?{iconPosition:"icon-only"}:{};
return _.g("account-link-button-view-model",{class:_.xj("ytwAccountLinkButtonViewModelHost",function(){return _.QJ(N)},R),
el:X,"button-renderer":!0},_.g("div",null,_.g(_.kV,{cond:function(){var p;if((p=A())==null?0:p.isWarning)return(p=_.q(_.QJ(d).warningButtonViewModel,_.QM))||_.Sx(Error("Bh")),p},
then:function(p){return _.g(_.o0,{data:p,buttonOverrides:w})},
else:function(){return _.g(_.I0,{data:W,buttonShapeOverrides:w})}})))};
OnZ=function(M){switch(M){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
jBL=function(M){switch(M){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
sB2=function(M){switch(M){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.orZ=function(M){var d=_.ZR("web_generic_client_event_wait_period ",0);d||(d=3E5);var N=Ppv.get(M);!_.Q("enable_web_client_experiment_event_timeout_killswitch")&&N&&(0,_.Gs)()-N<d||(Ppv.set(M,(0,_.Gs)()),_.hQ("genericClientExperimentEvent",{eventType:M}))};
y0i=function(M){var d=M.data;var N=M.children;var R=r0i(d),X=(d==null?0:d.thumbnailSize)?d.thumbnailSize:"medium";M=!(d==null||!d.doubleStack);var A=!(d==null||!d.experimentEnabled),l={},k=(l["collections-stack-wiz__collection-stack1"]=!0,l[KeN(X)]=!0,l);if(d==null?0:d.customClassName1stStack)k[d.customClassName1stStack]=!0;X={};var T=(X["collections-stack-wiz__collection-stack2"]=M,X["collections-stack-wiz__collection-stack2--responsive-mode"]=d==null?void 0:d.enableResponsiveMode,X);if(d==null?
0:d.customClassName2ndStack)T[d.customClassName2ndStack]=!0;return _.g("yt-collections-stack",{class:"collections-stack-wiz",hidden:!A},_.ez(d,function(){return _.g("div",null,_.ez(d.doubleStack,function(){return _.g("div",{class:_.ZH(T),style:"background-color:"+R})}),_.g("div",{class:_.ZH(k),
style:"background-color:"+R}),N)}))};
KeN=function(M){switch(M){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
r0i=function(M){if(!M)return"";var d,N=(d=_.h().resolve(_.CF(_.Pz)))==null?void 0:d(),R;if(!N&&((R=M.vibrantColorPalette)==null?0:R.iconInactiveColor))return h2(M.vibrantColorPalette.iconInactiveColor,"1");var X;return N&&((X=M.darkColorPalette)==null?0:X.iconInactiveColor)?h2(M.darkColorPalette.iconInactiveColor,"1"):M.color?h2(M.color,"1"):M.sampledThumbnailColor?(M=M.sampledThumbnailColor,"rgba("+M.red+","+M.green+","+M.blue+");"):""};
_.r5=function(M,d){if(!M.includes("DATE_PLACEHOLDER"))return M;var N=new Date(0);N.setUTCSeconds(d);return M.replace("DATE_PLACEHOLDER",J0N(N))};
_.KX=function(M){M=_.c06(M);return _.Q("web_watch_enable_single_column_grid_view")?M:!1};
_.c06=function(M){return M.watch.isWatchNarrowWidth};
Swi=function(M,d,N){return function(R){var X=M.command;X&&(kF(X,{form:{element:N}}),d([X],R))}};
bni=function(M,d,N,R,X){return function(A){var l=zlZ(M,N);l&&kF(l,{form:{element:R},commandController:X});d&&d.stopPropagation&&A.stopPropagation()}};
zlZ=function(M,d){if(M.signInEndpoint&&!_.Q("web_subscribe_sign_in_endpoint_killswitch"))return M.signInEndpoint;if(d){if(M.serviceEndpoints)return M.serviceEndpoints[1];if(M.onUnsubscribeEndpoints)return M.onUnsubscribeEndpoints[0]}else{if(M.serviceEndpoints)return M.serviceEndpoints[0];if(M.onSubscribeEndpoints)return M.onSubscribeEndpoints[0]}};
elq=function(M,d){var N,R,X,A;d=d&&((N=M.unsubscribeAccessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)||((X=M.subscribeAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label);return M.longSubscriberCountText?[d,_.HD(M.longSubscriberCountText)].filter(function(l){return l}).join(" "):d};
yM=function(M,d){return d||(M==null?0:M.isChannelDelegate)?"disabled":"active"};
HnZ=function(M,d){var N;switch((N=M.style)==null?void 0:N.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:yM(M)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:yM(M)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:yM(M,!0)};case "OVERLAY":return d?{style:"overlay",type:"tonal",state:yM(M)}:{style:"overlay",type:"filled",state:yM(M)};default:return d?{style:"mono",type:"tonal",state:yM(M)}:{style:"mono",type:"filled",state:yM(M)}}};
nrN=function(M,d){var N=M.map(function(R){return R.toString()});
return _.dT(function(R){if(N.includes(R.key)){d&&R.preventDefault();var X;(X=R.currentTarget)==null||X.click()}})};
_.Jo=function(){return nrN(["Enter"])};
_.inS=function(){return nrN(["Enter"," "],!0)};
_.c5=function(M){if(M.composedPath)return M.composedPath();if(!M.__composedPath){for(var d=[],N=M.target;N;)d.push(N),N=N.parentNode;d.push(window);M.__composedPath=d}return M.__composedPath};
_.fJr=function(M,d,N){M=_.V(M);for(var R=M.next();!R.done;R=M.next()){R=R.value;if(R===d)break;for(var X=_.V(N),A=X.next();!A.done;A=X.next())if(A=A.value,R.tagName===A||R.role==="button"&&A==="BUTTON")return!0}return!1};
tUi=function(M,d){var N,R=(N=d.observer)!=null?N:_.h().resolve(tQ);if(M){N=Ler(M);var X=[];d.showOption&&X.push(R.observe(M,function(){d.visibilityCallback(!0)},d.showOption));
d.hideOption&&X.push(R.observe(M,function(){d.visibilityCallback(!1)},d.hideOption));
d.prescanOption&&d.prescanCallback&&X.push(R.observe(M,function(){d.prescanCallback()},d.prescanOption));
var A;N.visibilityMonitorKeys=((A=N.visibilityMonitorKeys)!=null?A:[]).concat(X)}};
Ler=function(M){var d;return(d=M.polymerController)!=null?d:M};
_.zH=function(M){return!!_.Sk(M)};
_.ba=function(M,d){var N=zQA();qV(function(){var R=M.value;if(R)return Gp6(R,d),aJS(R,d,void 0,void 0,void 0,N)},[d])};
_.ek=function(M,d,N,R,X,A){var l=zQA();_.Wg(function(){var k=M.value;k&&(Gp6(k,d(),A),k=aJS(k,d(),N,R,X,l),_.mF(k))})};
Gp6=function(M,d,N){var R=Uai(d),X=uar(d);d=R&&CpZ;var A=X&&xaL;(R||X)&&tUi(M,{visibilityCallback:function(l){var k=_.h().resolve(_.xV);l&&R?k.resolveCommand(R,{form:{element:N?M:void 0},disableClickTracking:!0}):!l&&X&&k.resolveCommand(X,{form:{element:N?M:void 0},disableClickTracking:!0})},
showOption:d,hideOption:A})};
aJS=function(M,d,N,R,X,A){var l=new Map;if(d=_.Sk(d)){var k;M=(R==null?void 0:(k=R.onTap)==null?void 0:k.value)||M;N=Ywp(d,M,N==null?void 0:N.onTap,X,A);M.addEventListener("click",N);l.set("click",N)}return function(){for(var T=_.V(l),W=T.next();!W.done;W=T.next()){var w=_.V(W.value);W=w.next().value;w=w.next().value;M.removeEventListener(W,w)}}};
_.Sk=function(M){var d;return(M=(d=_.q(M,Znp))==null?void 0:d.onTap)&&_.ht(M)};
Uai=function(M){var d;return(M=(d=_.q(M,Znp))==null?void 0:d.onVisible)&&_.ht(M)};
uar=function(M){var d;return(M=(d=_.q(M,Znp))==null?void 0:d.onHidden)&&_.ht(M)};
Ywp=function(M,d,N,R,X){var A=function(k){_.h().resolve(_.xV).resolveCommand(M,k)},l=function(k){R&&_.fJr(_.c5(k),d,R)||A(k.target?{form:{element:k.target,
sourceData:M,mutationContext:X}}:void 0)};
N&&(l=function(k){N(k,A)});
return l};
ErL=function(M){var d=M.data;var N=M.className;M=M.alwaysShow;var R=_.e5();_.ba(R,d.rendererContext);a:switch(d.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}X=_.ZH("ytThumbnailHoverOverlayViewModelScrim",X);var A,l=(A=_.q(d==null?void 0:d.rendererContext,_.H5))==null?void 0:A.label,k=_.Sk(d.rendererContext)!==void 0;A=k?"button":void 0;k=k?0:void 0;var T=_.inS(),W={};return _.g("thumbnail-hover-overlay-view-model",
{el:R,class:_.ZH("ytThumbnailHoverOverlayViewModelHost",N,(W.ytThumbnailHoverOverlayViewModelHostForceHover=M,W)),"aria-label":l,role:A,tabindex:k,"on:keypress":T},_.g("div",{class:X},d.icon?_.g(_.Jt,{data:d.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,d.text?_.g(_.lG,{text:d.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
MWS=function(M){switch(M){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
dJr=function(M){switch(M){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
NiA=function(M){switch(M){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
R_Z=function(M){switch(M){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
XHS=function(M){return M==="medium"||M==="48"||M==="large"||M==="extra-large"||M==="extra-extra-large"||M==="giant"};
Fc6=function(M){return!!((M==null?0:M.includes(3))||(M==null?0:M.includes(5)))};
VW2=function(M){return{size:Ar6(M.data.avatarImageSize),onTap:M.onTap,decorations:M.decorations||[],badgeText:M.badgeText,accessibilityText:M.accessibilityText,avatarButtonCustomClassName:M.avatarButtonCustomClassName}};
Ar6=function(M){switch(M){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
leA=function(M){function d(){N.endpoint&&_.vz(N.endpoint)}
var N=M.data;var R=M.decorations;var X=M.avatarButtonCustomClassName;M=M.isOverlay;return _.g("avatar-view-model",null,N.image?_.g(nX,{data:VW2({data:N,onTap:N.endpoint?d:void 0,decorations:R,badgeText:void 0,accessibilityText:N.accessibilityText,avatarButtonCustomClassName:X}),image:N.image,iconType:"RADAR_LIVE",overlays:function(){return _.g(ia,{data:N})},
isOverlay:M}):null)};
BiZ=function(M){var d=M.data;var N=M.avatar;var R=M.onTap;var X=M.element;M=M.commandController;R=R?$JL(R,X,M):void 0;X=[];d.liveData&&X.push(0);var A;M=(A=d.liveData)==null?void 0:A.liveBadgeText;var l;A=(l=_.q(d.rendererContext,_.H5))==null?void 0:l.label;return VW2({data:N,onTap:R,decorations:X,badgeText:M,accessibilityText:A?A:d.a11yLabel})};
$JL=function(M,d,N){return function(){kF(M,{form:{element:d},commandController:N})}};
kmq=function(M,d,N,R){return d?BiZ({data:M,avatar:d,onTap:N,element:R}):{size:"medium"}};
Tii=function(M){var d=M.data;M=M.className;var N=_.Hh(),R=_.q(d.avatar,_.fX),X=_.Sk(d.rendererContext),A,l=kmq(d,R,X,(A=N.value)!=null?A:void 0);return _.g("yt-decorated-avatar-view-model",{class:_.ZH("yt-decorated-avatar-view-model-wiz",M),el:N},_.ez(R==null?void 0:R.image,function(){var k,T,W;return _.g(nX,{data:l,image:R.image,iconType:"RADAR_LIVE",overlays:function(){return _.g(ia,{data:R})},
idomKey:R==null?void 0:(k=R.image)==null?void 0:(T=k.sources)==null?void 0:(W=T.at(0))==null?void 0:W.url})}))};
DJS=function(M){switch(M){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_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}};
goi=function(M){switch(M){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
WcZ=function(M){var d=0;M.avatars&&(d+=M.avatars.length);M.decoratedText&&(d+=1);return d};
pHZ=function(M){var d=M.data,N=d.avatars,R=d.text,X=d.rendererContext,A=d.decoratedText,l=(d=_.e5())&&_.zH(X);_.ba(d,X);var k=WcZ(M.data)>1,T,W=N&&N.length>0?DJS((T=_.q(N[0],_.fX))==null?void 0:T.avatarImageSize):0,w,p=N&&N.length>0?(w=_.q(N[0],_.fX))==null?void 0:w.avatarImageSize:"AVATAR_SIZE_UNKNOWN",m,I;T={};return _.g("yt-avatar-stack-view-model",{el:d,class:_.ZH("yt-avatar-stack-view-model-wiz",M.className,(T["yt-avatar-stack-view-model-wiz--tappable"]=l,T["yt-avatar-stack-view-model-wiz--is-overlay"]=
M.isOverlay,T["yt-avatar-stack-view-model-wiz--medium-text"]=M.useMediumText,T)),tabindex:l?0:void 0,role:l?"link":void 0,"aria-label":(I=(m=_.q(X,_.H5))==null?void 0:m.label)!=null?I:""},_.ez(N&&!M.hideAvatar,function(){return _.g("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.ez(A,function(){var O={};return _.g("div",{class:_.ZH("yt-avatar-stack-view-model-wiz__text-container",(O["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=p==="AVATAR_SIZE_XXS"||p==="AVATAR_SIZE_XS",
O["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=M.isOverlay&&(p==="AVATAR_SIZE_XXS"||p==="AVATAR_SIZE_XS"),O)),style:"width: "+W+"px; height: "+W+"px"},_.g(_.lG,{text:A,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),N.slice().reverse().map(function(O){return _.g("div",{class:goi(p)},wHN(O,{avatarViewModel:{decorations:M.decorations?M.decorations:k?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:M.isOverlay}}))}))}),_.ez(R,function(){return _.g(_.lG,{text:R,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
mJ6=function(M){switch(M){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_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}};
h_2=function(M){switch(M){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
QYZ=function(M){switch(M){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
qE2=function(M){var d=M.data;return _.g("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:M.hidden===void 0?!1:M.hidden},_.g(_.lG,{text:d.title,className:"yt-thumbnail-overlay-title-view-model__title"}),d.subtitle?_.g(_.lG,{text:d.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
IeS=function(M){switch(M){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
voq=function(M){var d=M.data;M=M.hidden===void 0?!1:M.hidden;var N={};M={class:_.ZH("yt-page-indicator-view-model",(N["yt-page-indicator-view-model__indicator--hidden"]=!d.indicatorCount,N)),hidden:M};if(d.indicatorCount){N=[];for(var R=0;R<d.indicatorCount;R++){var X={};X=_.ZH("yt-page-indicator-view-model__indicator",(X["yt-page-indicator-view-model__indicator--selected"]=d.selectedIndex===R,X));N.push(_.g("div",{class:X}))}d=_.g(_.GT,null,N)}else d=_.g(_.GT,null);return _.g("yt-page-indicator-view-model",
M,d)};
jYv=function(M){M&&(OoN(M)?delete M.inlinePlayerData:"inlinePlaybackEndpoint"in M&&delete M.inlinePlaybackEndpoint)};
sYr=function(M){if("accessibilityText"in M)return M.accessibilityText||"";if("title"in M){var d,N,R;return((d=M.title)==null?void 0:(N=d.accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)||""}if("accessibility"in M){var X,A;return((X=M.accessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)||""}return""};
OoN=function(M){return"inlinePlayerData"in M};
LX=function(M){return new PAZ(M)};
_.oo2=function(M,d,N,R,X,A){var l=function(W){W.preventDefault()},k=function(){var W=M.value;
if(W)return(W._data=d)?(W.addEventListener("touchstart",anp,{passive:!0}),W.addEventListener("click",u2j),d.clickTrackingParams&&(W.params={itct:d.clickTrackingParams}),CEZ(W,d),IO(W,xqL(d)||"")):W.addEventListener("click",l),function(){d?(W.removeEventListener("touchstart",anp,{passive:!0}),W.removeEventListener("click",u2j)):W.removeEventListener("click",l)}},T=function(){var W=M.value;
if(W){var w=_.qx({innertubeCommand:d,elementsCommand:N,forceNewState:R,stopPropagation:A});if(w)return W._data=w._data,w["aria-haspopup$"]&&W.setAttribute("aria-haspopup",w["aria-haspopup$"].toString()),w["force-new-state$"]&&W.setAttribute("force-new-state",w["force-new-state$"].toString()),w.href$&&IO(W,w.href$),w.rel$&&(W.rel=w.rel$),w.role$&&W.setAttribute("role",w.role$),w.target$&&(W.target=w.target$),W.params=w.params,w.onclick&&W.addEventListener("click",w.onclick),w.onpointerdown&&W.addEventListener("onpointerdown",
w.onpointerdown),function(){w.onclick&&W.removeEventListener("click",w.onclick);w.onpointerdown&&W.removeEventListener("onpointerdown",w.onpointerdown)}}};
qV(X?T:k,[d,N])};
rrj=function(M){var d=M.children;var N=M.className;var R=M.dir;var X=M.style;var A=M.role;var l=M.ariaSelected;var k=M.ariaLabel;var T=M.ariaHidden;var W=M.ariaLabelledby;var w=M.ariaDescribedby;var p=M.command;var m=M.elementsCommand;var I=M.forceNewState;var O=M.isPlaceholder;var y=M.tabIdentifier;var c=M.target;var e=M.tabIndex;var t=M.useATagConfig;var C=M.stopPropagation;M=_.e5();_.oo2(M,p,m,I,t,C);m=_.dT(function(){return C===!1});
return _.g("a",{el:M,"on:click":m,class:N,style:X,dir:R,role:A?A:p?void 0:"group","aria-hidden":T?!0:void 0,"aria-label":k,"aria-labelledby":W,"aria-describedby":w,"aria-selected":l,tabindex:e!==void 0?e:void 0,target:c,"tab-identifier":y,"force-new-state":I?!0:void 0,"is-placeholder":O?!0:void 0},d)};
yri=function(M){var d=M.data;M=_.dT(function(){var X=_.q(d.onTap,_.mX);X&&_.h().resolve(_.xV).resolveCommand(X);return!1});
var N={sources:[{url:d.thumbnailUrl,width:120,height:90}]},R=d.rating&&d.ratingA11yLabel&&d.reviewsCount&&d.reviewsCountA11yLabel;return _.g("place-data-view-model",null,d.placeName&&d.placeCategory?_.g("div",{class:"yt-spec-place-data-view-model-shape","on:click":M},_.g(_.Jt,{data:N,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+Kci}),_.g(rrj,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.q(d.onTap,_.mX),forceNewState:!0,
useATagConfig:!0},_.g("h3",{class:"yt-spec-place-data-view-model-shape__name",title:d.placeName},d.placeName)),_.g("div",{class:"yt-spec-place-data-view-model-shape__metadata"},R?_.g("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.g("span",{class:"score",title:d.ratingA11yLabel},d.rating),_.g("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.g(_.Fc,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.g("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:d.reviewsCountA11yLabel},d.reviewsCount)):_.g("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.g("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.g("span",{class:"category",title:d.placeCategory},d.placeCategory)))):null)};
JrS=function(M){return function(d){M&&(M.thumbnailElRef=d.thumbnailElRef,M.thumbnail=d.thumbnail,M.thumbnailOverlays=d.thumbnailOverlays,M.thumbnailSize=d.thumbnailSize)}};
cri=function(M){var d;return(d=M.sharedUi)==null?void 0:d.animatedThumbnailEnabled};
SES=function(M){var d;return(d=M.sharedUi)==null?void 0:d.inlinePreviewEnabled};
_.z_Z=function(M){var d;return(d=M.sharedUi)==null?void 0:d.currentPageSubType};
boi=function(){return _.g("div",{class:"yt-pinking"},_.g("svg",{class:"yt-pinking__pinking-left"},_.g("defs",null,_.g("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.g("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.g("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.g("svg",{class:"yt-pinking__pinking-right"},_.g("defs",null,_.g("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.g("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.g("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
e_S=function(M){switch(M){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
tWS=function(M){var d=[],N=M.data,R=bG(M.width,M.height),X=_.h().resolve(_.CF(HoA)),A=_.e5(function(){d.push("elRef.value set")});
_.IJ(function(){d.push("onInit");return function(){d.push("onCleanup")}});
_.IJ(function(){var c;(c=M.playbackRef)==null||c.call(M,{thumbnailElRef:A,thumbnail:N.image,thumbnailOverlays:N.overlays,thumbnailSize:R})});
var l=rDj(cri),k,T=(k=M.aspectRatio)!=null?k:0,W=(k=(N.image?_.yfZ(N.image):T)<=1&&T===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",w=function(){A.value||_.vh(new _.WJ("Thumbnail elRef.value is null",d.join("\n")));X&&A.value&&X(A.value)},p={};
a:{if(!M.disableRounding&&!M.isClip)switch(R){case "large":var m="yt-thumbnail-view-model--large";break a;case "small":m="yt-thumbnail-view-model--small";break a;default:m="yt-thumbnail-view-model--medium";break a}m=void 0}T=_.ZH("yt-thumbnail-view-model",M.className,e_S(T),m,(p["yt-thumbnail-view-model--cinematic"]=k,p));p=void 0;var I,O;(m=k?(I=M.data)==null?void 0:(O=I.backgroundColor)==null?void 0:O.lightTheme:void 0)&&(p="background-color:"+h2(m,"1")+";");var y;I=M.hovered&&R!=="large"&&((y=
N.overlays)==null?void 0:y.some(function(c){return _.q(c,noZ)}));
return _.g("yt-thumbnail-view-model",{class:T,style:p,el:A},_.ez(k,function(){return _.g("div",{class:"yt-thumbnail-view-model__blurred-image"},_.g(_.Jt,{data:N.image,alt:"",contentMode:W,targetWidth:M.width,onload:w}))}),_.g("div",{class:"yt-thumbnail-view-model__image"},_.g(_.Jt,{data:N.image,
alt:"",contentMode:W,targetWidth:M.width,onload:w}),null),_.ez(!I,function(){return ioZ(N.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:R,isClip:M.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:M.lockupExperiments}})}),_.ez(M.hovered,function(){return fe6(N.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.ez(M.hovered&&l,function(){return LcZ(N.overlays)}),_.ez(M.isClip,function(){return boi()}))};
Gmq=function(M){switch(M){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
xJ6=function(M){var d=_.V(d5(-1)),N=d.next().value,R=d.next().value,X=Ol(function(){return new aei(R)});
_.IJ(function(){UJp(X,M.data.thumbnails.length);return function(){uHZ(X)}});
var A;return _.g("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(A=M.data.thumbnails)==null?void 0:A.map(function(l,k){var T=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!M.data.primaryThumbnail&&k===0&&T.push("yt-collection-thumbnail-slideshow--first-slide");k<=N&&T.push("yt-collection-thumbnail-slideshow--show-slide");k=T.join(" ");return _.g("div",{class:k},CA6(l,{thumbnailViewModel:{disableRounding:M.disableRounding}}))}))};
Zoi=function(M){var d=_.V(d5(!1)),N=d.next().value,R=d.next().value;_.IJ(function(){if(M){var X=_.h().resolve(_.CF(YEq));if(X){var A={triggeringElement:M,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
X.registerElement(A);return function(){X.unregisterElement(A)}}}});
return N};
Eop=function(M){var d=_.V(_.d0(!1,void 0,"RIOonf")),N=d.next().value,R=d.next().value;_.IJ(function(){var X=M==null?void 0:M();if(X){var A=_.h().resolve(_.CF(YEq));if(A){var l={triggeringElement:X,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
A.registerElement(l);_.mF(function(){A.unregisterElement(l)})}}});
return N};
NRv=function(M){var d,N=(d=_.h().resolve(_.CF(_.Pz)))==null?void 0:d(),R=Zoi(M.triggeringElement),X=!!M.data.primaryThumbnail,A=function(){var k;return _.g("div",null,MKq(M.data.primaryThumbnail,{thumbnailViewModel:{width:M.width,height:M.height,aspectRatio:M.aspectRatio,disableRounding:M.disableRounding,className:X?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:M.hovered,playbackRef:M.playbackRef}}),_.ez(R&&((k=M.data.thumbnails)==null?void 0:k.length),function(){return _.g("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.g(dP2,{data:M.data,disableRounding:!X}))}))};
d=M.data.stackColor;var l={experimentEnabled:X,thumbnailSize:bG(M.width,M.height),doubleStack:M.doubleStack,color:N?d==null?void 0:d.darkTheme:d==null?void 0:d.lightTheme,enableResponsiveMode:!1};return _.g("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.ez(X,function(){return _.g(y0i,{data:l},A())}),_.ez(!X,A))};
RN6=function(M,d,N){N?N(d):_.vz(d,M.target?{form:{element:M.target}}:void 0)};
_.to=function(M,d,N,R){_.Wg(function(){var X=M.value;if(X){var A=new Map,l,k=(l=d())==null?void 0:l.onTap;k&&(l=function(T){a:{var W=T.composedPath();W=_.V(W);for(var w=W.next();!w.done;w=W.next()){w=w.value;if(w===X)break;if(w.className.indexOf("HostIsClickableAdComponent")>=0||w.tagName==="A".toString()||w.tagName==="BUTTON".toString()){W=!0;break a}}W=!1}W||(_.Q("enable_square_image_components_ui_web_with_float_button")?_.YP(M.value,"yt-navigate",{endpoint:_.ht(k)}):RN6(T,k,N))},(R==null?0:R())||
_.Q("enable_web_home_top_landscape_image_layout_level_click")?(X.addEventListener("tap",l),A.set("tap",l)):(X.addEventListener("click",l),A.set("click",l)));
_.mF(function(){for(var T=_.V(A),W=T.next();!W.done;W=T.next()){var w=_.V(W.value);W=w.next().value;w=w.next().value;X.removeEventListener(W,w)}})}})};
XE6=function(M,d){var N,R=(N=M.interaction)==null?void 0:N.onTap;if(M=_.qx({elementsCommand:R,forceNewState:!0,skipOnClick:!0}))return M.onclick=function(X){fnq(X)&&(X.preventDefault(),R&&RN6(X,R,d))},IA(M)?M:void 0};
FuZ=function(M){switch(M){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
A3q=function(M){switch(M){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"}};
VKZ=function(M){switch(M){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.lfi=function(M){return _.Q("rich_grid_enable_dynamic_offset")&&M?Math.max(Math.round((M-_.ZR("rich_grid_dynamic_offset_anchor_width",1300))/100*_.ZR("rich_grid_dynamic_offset_offset_per_100",10)),_.ZR("rich_grid_dynamic_offset_lower_bound",-60)):0};
$PZ=function(M,d){switch(d){case 4:return 16;case 1:return M<528?16:M<1024?32:48;case 2:return(M>=528?16:8)/2;case 3:return(M<528?16:M<1024?32:48)+(M>=528?16:8)/2;default:return 0}};
BRp=function(M){var d=M.originalContainerWidth;var N=M.sizing;var R=M.standardUnit;if(M.isCompactList&&d<528)return 1;switch(N){case "STANDARD":return R;case "COMPACT":return R+1;case "EXTRA_COMPACT":return _.Q("web_responsive_extra_compact_2x")?R*2:_.Q("web_responsive_current")?R===1?2:R%2===0?R/2*3:R+2:R<4?R*2:Math.ceil(R*3/2);case "MINI":return R>1?R*2:3;default:return R}};
TRZ=function(M){var d=M.containerWidth;var N=M.peek;var R=M.gutter;var X=M.numItems;M=M.ignoreMaxWidthLimit;d=N?Math.max((d-N-R*X)/X,0):Math.max((d-R*(X-1))/X,0);return M?d:Math.min(d,k$6)};
_.GH=function(M){var d=M.containerWidth;var N=M.hasPeek;var R=M.sizing;var X=M.marginSettings;var A=M.isCompactList;var l=M.enableFullBleedForSingleCol;var k=M.standardUnitMinWidth;R=R||"STANDARD";N=!!N;M=d>=528?16:8;var T=N?d>=528?48:24:0;X=$PZ(d,X);var W=Math.max(d-X*2,0);k=_.Q("kevlar_disable_min_width_override")?void 0:k;k=Math.min(Math.max(Math.floor((W-T+M)/((k!=null?k:DPv)+_.lfi(d)+M)),1),6);var w=(l=!!l&&k===1)||k===1&&R!=="STANDARD";N=N||w?W:Math.min(W,(k$6+M)*k-M);R=BRp({originalContainerWidth:d,
sizing:R,standardUnit:k,isCompactList:A});return{itemWidth:TRZ({containerWidth:N,peek:T,gutter:M,numItems:R,ignoreMaxWidthLimit:w}),gutter:M,maxContainerWidth:N,numItems:R,margin:l?0:X,contentMargin:$PZ(d,1),typographyBump:TRZ({containerWidth:N,peek:T,gutter:M,numItems:k,ignoreMaxWidthLimit:w})>400&&!(A&&d<528),standardUnit:k}};
gwr=function(M){switch(M){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Wuj=function(M){if(M){var d;if((d=M.responsiveContainerConfiguration)==null?0:d.responsiveSize)return gwr(M.responsiveContainerConfiguration.responsiveSize);if(M.layoutSizing)switch(M.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
wEZ=function(M){if(M.fullbleed)return 1;switch(M.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
QbS=function(M,d,N,R,X,A,l,k){a:switch(M){case 4:A=!!(A&&A<100);break a;default:A=!1}a:switch(M){case 3:case 4:var T=R==="LOCKUP_CONTENT_TYPE_CHANNEL"||R==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:T=!1}a:switch(M){case 5:var W=!0;break a;case 4:W=!1;break a;default:W=!1}a:if(M===4&&R==="LOCKUP_CONTENT_TYPE_SOURCE")var w=1;else switch(M){case 3:w=1;break a;default:w=0}return{isOverlay:W,isCard:pEN(R,l),sizing:d!=null?d:"STANDARD",typographyBump:N!=null?N:!1,isTiny:A,isCentered:T,isCollection:mPi(R),
arrangement:w,addMarginForFullbleed:M===1&&R!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:M===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:hNZ(R,X,k),disableRounding:M===5||pEN(R,l)||M===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:mPi(R)?2:0,useLegacyTypography:!(k==null||!k.useLegacyTypography),useRichGridLegacyTypography:!(k==null||!k.useRichGridLegacyTypography)}};
mPi=function(M){switch(M){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
pEN=function(M,d){if(d&&M==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(M){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
hNZ=function(M,d,N){if(d&&(N==null||!N.alwaysRespectPodcastShowAspectRatio||M!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(M){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
q76=function(M){switch(M){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
ORr=function(M,d,N){a:switch(M.badgeStyle){case "BADGE_OVERLAY":var R=!0;break a;default:R=!1}return{type:d?16:Ifr(M.badgeStyle),brNzRatingBadgeType:vwZ(M.badgeStyle),text:M.badgeText,icon:M.iconName,isOverlay:R,modern:N||_.Q("web_modern_badge_view_model")}};
Ifr=function(M){switch(M){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
vwZ=function(M){switch(M){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
sbZ=function(M){var d=M.data?ORr(M.data,!!M.workaroundShortsIsThumbnailBadge,M.modern):void 0;return _.g("yt-badge-view-model",{class:_.ZH("yt-badge-view-model-wiz",M.class)},_.ez(d==null?void 0:d.brNzRatingBadgeType,function(){return _.g(jbi,{data:d})}),_.ez(d&&!d.brNzRatingBadgeType,function(){return _.g(_.a0,{data:d})}))};
_.Uc=function(M){if(M){var d;return((d=_.h().resolve(_.CF(_.Pz)))==null?0:d())?M.darkThemeImage:M.image}};
r3j=function(M,d,N,R,X,A){if(!N)return X&&A&&d==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+X+"px; height: "+A+"px;":"";X=N.size;N=N.allowFullWidth;if(d==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&N)return"width: 100%;";if(X===void 0)return"";switch(M){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+X+"px; height: "+X+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+X+"px; height: "+1/Poi*
X+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+X*owq+"px; height: "+X+"px;";default:return(R==null?0:R.height)&&(R==null?0:R.width)?R.width/R.height>1?"max-width: "+X*owq+"px;":"max-width: "+X+"px;":"max-width: "+X+"px;"}};
Kuq=function(M){var d;return M&&((d=_.Uc(M.themedImage))!=null?d:M.image)};
y3Z=function(M){var d;return M==null?void 0:(d=M.sources)==null?void 0:d[0]};
c3i=function(M,d){var N,R;return!!((M==null?0:(N=M.byline)==null?0:N.hideAvatar)&&((R=_.q(d,J3L))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
S7q=function(M,d){var N,R;return!!((M==null?0:(N=M.byline)==null?0:N.addPadding)&&((R=_.q(d,J3L))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
zN6=function(M,d,N,R){var X={},A=(X["yt-content-metadata-view-model-wiz__delimiter"]=!0,X["yt-content-metadata-view-model-wiz__delimiter--standalone"]=R,X);return _.ez(d-1>N,function(){return _.g("span",{class:_.ZH(A),"aria-hidden":!0},M)})};
eNZ=function(M,d){return _.g(_.lG,{text:M.text,linkInheritColor:!0,className:bRS(d),userInput:!0})};
nwZ=function(M){var d=M.metadataPart;var N=M.isOverlay;var R=M.useMediumText;var X=M.hideAvatar;var A=1;d.maxLines!==void 0&&(A=d.maxLines);return _.g(_.GT,null,_.ez(d.avatarStack,function(){return HRZ(d.avatarStack,{avatarStackViewModel:{isOverlay:N,useMediumText:R,hideAvatar:X}})}),_.ez(d.text,function(){var l=A;
return _.g(_.GT,null,d.tooltip?_.g("span",{title:d.tooltip,role:"tooltip"},eNZ(d,l)):eNZ(d,l))}))};
bRS=function(M){switch(M){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
iRj=function(M){var d=M.metadataRow;var N=M.isInline;var R=M.delimiter;var X=M.isOverlay;var A=M.useMediumText;var l=M.extensions;var k=c3i(l==null?void 0:l.lockupMetadata,d);M=S7q(l==null?void 0:l.lockupMetadata,d);l=!!((l==null?0:l.lockupMetadata)&&d.badges);var T={};M=(T["yt-content-metadata-view-model-wiz__metadata-row"]=!0,T["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=N,T["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=M,T["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
l,T);var W,w;return _.g("div",{class:_.ZH(M)},(W=d.badges)==null?void 0:W.map(function(p){return _.g("div",{class:"yt-content-metadata-view-model-wiz__badge"},HRZ(p))}),(w=d.metadataParts)==null?void 0:w.map(function(p,m){return _.g(_.GT,null,nwZ({metadataPart:p,
isOverlay:X,useMediumText:A,hideAvatar:k}),zN6(R,d.metadataParts.length,m,!1))}),_.ez(d.isSpacerRow&&!N,function(){return _.g("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
ffr=function(M){var d=M.className;var N=M.data;var R=M.layout===void 0?0:M.layout;var X=M.isOverlay===void 0?!1:M.isOverlay;var A=M.useMediumText;var l=M.extensions;M=_.e5();var k=R===0;R={};R=(R["yt-content-metadata-view-model-wiz"]=!0,R["yt-content-metadata-view-model-wiz--inline"]=k,R["yt-content-metadata-view-model-wiz--tappable"]=_.zH(N.rendererContext),R["yt-content-metadata-view-model-wiz--medium-text"]=A,R);_.ba(M,N.rendererContext);return _.g("yt-content-metadata-view-model",{class:_.ZH(d,
R),el:M},_.ez(N.metadataRows,function(){return N.metadataRows.map(function(T,W){return _.g(_.GT,null,iRj({metadataRow:T,isInline:k,delimiter:N.delimiter,isOverlay:X,useMediumText:A,extensions:l}),_.ez(k&&!T.isSpacerRow,function(){return zN6(N.delimiter,N.metadataRows.length,W,!0)}))})}))};
Luv=function(M){switch(M){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
tKZ=function(M){if(M==null?0:M.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(M==null?void 0:M.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
G$q=function(M){if(M==null?0:M.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(M==null?void 0:M.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
UPj=function(M){var d,N,R,X,A,l,k={},T=_.ZH(tKZ(M.lockupStyle),G$q(M.lockupStyle),(k["yt-lockup-metadata-view-model-wiz"]=!0,k["yt-lockup-metadata-view-model-wiz--overlay"]=(d=M.lockupStyle)==null?void 0:d.isOverlay,k["yt-lockup-metadata-view-model-wiz--card"]=(N=M.lockupStyle)==null?void 0:N.isCard,k["yt-lockup-metadata-view-model-wiz--centered"]=(R=M.lockupStyle)==null?void 0:R.isCentered,k["yt-lockup-metadata-view-model-wiz--typography-bump"]=(X=M.lockupStyle)==null?void 0:X.typographyBump,k["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(A=M.lockupStyle)==null?void 0:A.useLegacyTypography,k["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(l=M.lockupStyle)==null?void 0:l.useRichGridLegacyTypography,k)),W,w,p,m,I,O;return _.g("yt-lockup-metadata-view-model",{class:T},_.ez(M.data.image,function(){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},afZ(M.data.image))}),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.g("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(W=M.data.title)==null?void 0:W.content},_.ez(M.data.title,function(){return _.g(_.VX,{command:M.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:M.lockupAccessibilityLabel},_.g(_.lG,{text:M.data.title}))})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},afZ(M.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((w=M.lockupStyle)==null?void 0:w.typographyBump)||((p=M.lockupStyle)==null?void 0:p.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((m=M.lockupStyle)==null?void 0:m.arrangement)===0,addPadding:((I=M.lockupStyle)==null?void 0:I.arrangement)===1}}}}})),_.ez(M.data.attribution,function(){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},afZ(M.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
afZ(M.data.menuButton,((O=M.lockupStyle)==null?0:O.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
u0Z=function(M){switch(M.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
CoL=function(M){var d=_.z_Z(_.r4().getState())||"";return M?M+d:""};
xPi=function(M){switch(M){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
ZR2=function(M){var d=_.V(_.d0(void 0,void 0,"BIquNb")),N=d.next().value,R=d.next().value,X=_.V(_.d0(void 0,void 0,"eR0GH"));d=X.next().value;var A=X.next().value,l=_.V(_.d0(void 0,void 0,"UmkP0"));X=l.next().value;var k=l.next().value;l=_.dT(function(w){if(Y7p(_.c5(w)))return!1;R(w);A(void 0);k(void 0);return!0});
var T=_.dT(function(w){M==null||M(w);if(Y7p(_.c5(w)))return!1;A(w);R(void 0);k(void 0);return!0}),W=_.dT(function(w){Y7p(_.c5(w))||(k(w),A(void 0),R(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:N,pointerDownEvent:d,pointerLeaveEvent:X},touchFeedbackOnPointerUp:l,touchFeedbackOnPointerDown:T,touchFeedbackOnPointerLeave:W}};
Y7p=function(M){var d=["BUTTON".toString()];M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;for(var R=_.V(d),X=R.next();!X.done;X=R.next())if(N.tagName===X.value)return!0}return!1};
Ew6=function(M){switch(M){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
MAZ=function(M){var d;return lN2(M,((d=M.content)==null?void 0:d.length)||0,!0)};
djZ=function(M){var d=MAZ(M),N,R;return(((N=M.content)==null?void 0:N.length)||0)>(((R=d.content)==null?void 0:R.length)||0)};
Npq=function(M){var d=M.isTruncated;var N=M.isAbsoluteButton;var R=M.lineHeight;var X=M.contentRef.value,A=M.placeholderTruncationTextRef.value,l=M.truncationTextRef.value;M=M.appDirection==="rtl";if(X&&A){var k=A.offsetLeft;M&&(k=X.offsetWidth-A.offsetWidth-A.offsetLeft);if(d){d=A.offsetWidth;A=X.offsetWidth;var T=N?A-d-70:k-70;R="linear-gradient(\n      to top, transparent 0%,\n      transparent "+R+"px,\n      #000 "+R+"px,\n      #000 100%), linear-gradient(\n      to "+((M?"left":"right")+",\n      #000 0px,\n      #000 "+
T+"px,\n      transparent "+(N?A-d:T+70)+"px)");X.style.setProperty("-webkit-mask-image",R);X.style.setProperty("mask-image",R)}else X.style.setProperty("-webkit-mask-image",""),X.style.setProperty("mask-image","");N?M?(l.style.setProperty("left","0"),l.style.setProperty("right","unset")):(l.style.setProperty("left",""),l.style.setProperty("right","0")):M?(l.style.setProperty("left","unset"),l.style.setProperty("right",k+"px")):(l.style.setProperty("left",k+"px"),l.style.setProperty("right","unset"))}};
R2S=function(M,d,N,R,X){var A=_.e5(),l=_.e5(),k=_.e5(),T=MAZ(M),W=_.h().resolve(_.rk),w=_.V(d5(djZ(M))),p=w.next().value,m=w.next().value,I=jx(null);qV(function(){function O(){if(A.value&&l.value&&k.value){var e=A.value;e.scrollHeight-e.offsetHeight>1?(m(!0),R||Npq({isTruncated:!0,isAbsoluteButton:!0,lineHeight:N,contentRef:A,placeholderTruncationTextRef:l,truncationTextRef:k,appDirection:W})):(e=djZ(M),m(e),R||Npq({isTruncated:e,isAbsoluteButton:!1,lineHeight:N,contentRef:A,placeholderTruncationTextRef:l,
truncationTextRef:k,appDirection:W}))}}
var y,c;(y=I.value)==null||(c=y.stop)==null||c.call(y);y=new _.ua(O,17);O();I.value=y},[M.content,
d,N,W,R,X]);_.IJ(function(){var O=function(){var c,e;(c=I.value)==null||(e=c.fire)==null||e.call(c)};
if(window.ResizeObserver){var y=new ResizeObserver(O);y.observe(A.value);return function(){var c,e;(c=I.value)==null||(e=c.stop)==null||e.call(c);y.disconnect()}}window.addEventListener("resize",O);
return function(){var c,e;(c=I.value)==null||(e=c.stop)==null||e.call(c);window.removeEventListener("resize",O)}});
return{isTruncated:p,displayText:T,contentRef:A,placeholderTruncationTextRef:l,truncationTextRef:k}};
X2Z=function(M){return _.g("button",{"aria-disabled":!0,disabled:!0,class:M.className,el:M.elRef,style:"line-height: "+M.lineHeight+"px;"},_.g(_.lG,{text:M.text}))};
Fo2=function(M){var d=M.text;var N=M.alwaysShowTruncationText;var R=M.truncationText;var X=M.onExpandClick;var A=M.lineHeight===void 0?16:M.lineHeight;var l=M.maxLines===void 0?2:M.maxLines;var k=M.disableTextMask===void 0?!1:M.disableTextMask;var T=M.isOverlay===void 0?!1:M.isOverlay;var W=M.accessibilityLabel===void 0?"":M.accessibilityLabel;var w=M.useMediumText===void 0?!1:M.useMediumText;M=_.dT(function(){return void(X==null?void 0:X())});
var p=R2S(d,l,A,k,w),m=p.isTruncated;d=p.displayText;var I=p.contentRef,O=p.placeholderTruncationTextRef;p=p.truncationTextRef;var y={};N=_.ZH((y["truncated-text-wiz__absolute-button"]=!k,y["truncated-text-wiz__bottom-button"]=k,y["truncated-text-wiz--hidden"]=!(N||m),y));k={};T=_.ZH((k["truncated-text-wiz"]=!0,k["truncated-text-wiz--overlay"]=T,k["truncated-text-wiz--medium-text"]=w,k));return _.g("truncated-text",{class:T,"on:click":M,style:"line-height: "+A+"px;"},_.g("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:I,style:"max-height: "+l*A+"px;"},_.g(_.lG,{text:d}),_.g(X2Z,{text:R,lineHeight:A,elRef:O,className:"truncated-text-wiz__inline-button"})),_.g("button",{"aria-label":W,class:N,el:p,style:"line-height: "+A+"px;"},_.g(_.lG,{text:R})))};
Apq=function(M){return{content:M!=null?M:""}};
$jj=function(M){var d=M.data;var N;M={class:M.className};a:switch(d.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var R="yt-video-attribute-view-model--vertical";break a;default:R="yt-video-attribute-view-model--horizontal"}a:switch(d.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var X="yt-video-attribute-view-model--image-small";break a;default:X="yt-video-attribute-view-model--image-large"}a:switch(d.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var A="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":A="yt-video-attribute-view-model--image-avatar";break a;default:A=""}a:switch(d.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var l="yt-video-attribute-view-model--metadata-header";break a;default:l=""}a:switch(d.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var k="yt-video-attribute-view-model--container-card";break a;default:k=""}var T=_.ht(d.onTap)||_.Sk(d.rendererContext)?"yt-video-attribute-view-model--clickable":"";
R=["yt-video-attribute-view-model",R,X,A,l,k,T].join(" ");if(d.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var W="";else X=d.lightColorPalette,A=d.darkColorPalette,l=((W=_.h().resolve(_.CF(_.Pz)))==null?0:W())&&A?A:X,W=(W=l==null?void 0:l.section2Color)?_.ml(W):"";return _.g("yt-video-attribute-view-model",M,_.g("div",{class:R,style:_.Xc({"background-color":W})},_.g(rrj,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(N=_.ht(d.onTap))!=
null?N:_.Sk(d.rendererContext),role:"group",ariaLabel:d.title,forceNewState:!0},d.heroText||d.image?_.g(VAA,{data:d}):null,_.g(lZL,{data:d,sizeSmall:d.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
BpZ=function(M){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:M.overflowMenuA11yLabel,onTap:function(d){d.preventDefault();d.stopPropagation();if(M.overflowMenuOnTap){var N=_.qx({elementsCommand:M.overflowMenuOnTap,forceNewState:!0});if(N==null?0:N.onclick)N.onclick(d)}}}};
VAA=function(M){M=M.data;var d,N=((d=_.h().resolve(_.CF(_.Pz)))==null?0:d())&&M.darkThemeImage?M.darkThemeImage:M.image;d=BpZ(M);return _.g("div",{class:"yt-video-attribute-view-model__hero-section"},N?_.g(_.Jt,{data:N,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):M.heroText?_.g("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.g("span",{class:"yt-video-attribute-view-model__hero-text"},M.heroText)):null,M.overflowMenuOnTap?
_.g("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.g(CX,{data:d,iconName:"MORE_VERT"})):null)};
lZL=function(M){var d=M.data;M=M.sizeSmall;var N=d.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",R=_.ht(d.onTap)||_.Sk(d.rendererContext);R=_.qx({innertubeCommand:R});R=IA(R);var X={};M={class:_.ZH("yt-video-attribute-view-model__metadata",(X["yt-video-attribute-view-model--small-font"]=M,X)),role:R?"link":"group"};R=_.g("h1",{class:"yt-video-attribute-view-model__title"},d.title);N=d.subtitle?_.g("h4",{class:"yt-video-attribute-view-model__subtitle"},N?_.g(Fo2,{text:Apq(d.subtitle),truncationText:Apq(d.subtitleTruncationText),
maxLines:2}):_.g("span",null,d.subtitle)):null;if(d.secondarySubtitle){X=d.secondarySubtitle;if(X!=null&&X.attachmentRuns){for(var A=[],l=_.V(X.attachmentRuns),k=l.next();!k.done;k=l.next())k=k.value,k.element&&A.push(Object.assign({},k,{element:Object.assign({},k.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));X=Object.assign({},X,{attachmentRuns:A})}X=_.g("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.g(_.lG,{text:X}))}else X=null;return _.g("div",M,R,N,X,d.buttonViewModel?kyr(d.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
Dji=function(M){var d={};d=_.ZH("video-summary-content-view-model-wiz",M.className,(d["video-summary-content-view-model-wiz--is-search"]=!!M.isSearch,d));var N=_.q(M.data.likeButtonViewModel,Oc),R=_.q(M.data.dislikeButtonViewModel,jk),X=vy(function(){var A=[],l,k=(l=M.data)==null?void 0:l.paragraphs;if(k==null||!k.length)return[];for(l=0;l<k.length;l++){var T=_.q(k[l],Tp6),W=void 0;l>0&&(W=_.q(k[l-1],Tp6));W&&!!W.marker===!!T.marker?A[A.length-1].paragraphs.push(T):A.push({isList:!!T.marker,paragraphs:[T]})}return A},
[M.data]);
return _.g("video-summary-content-view-model",{class:d},X.map(function(A){return A.isList?_.g("ul",{class:"video-summary-content-view-model-wiz__list"},A.paragraphs.map(function(l){return _.g("li",{class:"video-summary-content-view-model-wiz__list-item"},_.g(_.lG,{text:l.text}))})):A.paragraphs.map(function(l){return _.g("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.g(_.lG,{text:l.text}))})}),_.ez(!!N&&!!R,function(){return _.g("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.g("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.g(MUp,{data:N,
disableIconAnimation:!0})),_.g(daZ,{data:R}))}))};
_.xM=function(M,d,N,R,X){R=R===void 0?{}:R;if(!X||Math.random()<5E-4){d=d||null;N=N||null;M=M instanceof Error?M:new _.WJ(M);if(M.args)for(var A=_.V(M.args),l=A.next();!l.done;l=A.next())l=l.value,l instanceof Object&&(R=Object.assign({},l,R));R.category="H5 Ads Control Flow";d&&(R.slot=d?"slot:  "+d.slotType:"");N&&(R.layout=N?"layout:  "+N.layoutType:"",R.layoutId=N.layoutId);X&&(R.known_error_aggressively_sampled=!0);M.args=[R];_.vh(M)}};
_.gES=function(M,d){_.ZI(M,"yt-open-popup-action",[_.Lh(d),M])};
w2i=function(M){if(!M)return"";if(Woi[M])return Woi[M];YM||(YM=_.Vf("A"));YM.href!==M&&IO(YM,M);var d=YM.pathname;Woi[M]=d.startsWith("/")?d:"/"+d;return Woi[M]};
p2q=function(){var M=w2i(window.location.href);if(M==="/")return"home";if(M.startsWith("/results"))return"search";if(M.startsWith("/watch"))return"watch";if(M.startsWith("/shorts"))return"shorts";if(M.startsWith("/hashtag"))return"hashtag";if(M.startsWith("/create_channel"))return"create_channel";if(M.startsWith("/@")||M.startsWith("/user/")||M.startsWith("/channel/"))return"channel";if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/sponsor_channel"))return"sponsorship";if(M.startsWith("/select_site"))return"settings";
if(M.startsWith("/locate"))return"locate";if(M.startsWith("/redeem"))return"redeem";if(M.startsWith("/musicpremium")||M.startsWith("/premium")||M.startsWith("/red"))return"premium";if(M.startsWith("/paid_memberships"))return"paid_memberships";if(M.startsWith("/oops"))return"oops";if(M.startsWith("/clip"))return"clip";var d;return(Z$==null?void 0:(d=Z$.response)==null?void 0:d.page)==="404"?"404":M.startsWith("/feed/history")?"history":M.startsWith("/feed/library")?"library":M.startsWith("/feed/subscriptions")?
"subscriptions":M.startsWith("/feed/trending")?"trending":M.startsWith("/feed/news_destination")?"news":M.startsWith("/playlist")?"playlist":M.startsWith("/minor_moment")?"minor_moment":M.startsWith("/playable/")||M.match("^/playables/(?!saved).")?"mini_app":M.startsWith("/playables")?"playables":M.startsWith("/create/live/join")?"open_in_app":M.startsWith("/feed/explore")?"explore":"browse"};
_.qvN=function(){var M=Z$==null?void 0:Z$.response,d=M==null?void 0:M.endpoint;if(!d)return(M==null?void 0:M.page)==="watch"?"watch":p2q();var N;M=(N=_.q(d==null?void 0:d.commandMetadata,_.an))==null?void 0:N.webPageType;N=!1;if(M&&!mjZ.includes(M))switch(M){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var R;return((R=_.q(d==null?void 0:d.commandMetadata,_.an))==null?0:R.url)&&w2i(_.q(d.commandMetadata,_.an).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var X;return(d=(X=_.q(d,_.F8))==null?void 0:X.browseId)?h2A[d]||"browse":"browse";default:N=!0}if(_.q(d,_.Ec)||_.q(d,QVi))return"sponsorship";X=w2i(window.location.href);if(X.startsWith("/experiments"))return"experiments";if(X.startsWith("/create_channel"))return"create_channel";
if(_.q(d,_.JQ)&&X.startsWith("/shorts"))return"shorts";if(_.q(d,_.JQ)&&X.startsWith("/watch"))return"watch";N&&(d=new _.WJ("Unsupported mWeb page type",{pathname:X,webPageType:M}),_.qZ(d));return"browse"};
oEL=function(M){var d=M.data;var N=M.inlineMetadata;var R=M.aspectRatio;var X=M.scrimStyle;var A=M.useDefaultStyle;var l=M.className;var k=jx(new IZ6);M=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";M=A?M==="SHORTS_LOCKUP_STYLE_SLIM":d.style==="SHORTS_LOCKUP_STYLE_SLIM";N=N||M||!1;X=X!==void 0?X:1;var T=_.e5(function(c){k.value&&(k.value.hostElement=c,y())});
_.Gi(T,{visibilityCallback:function(c){c&&d.onFirstVisible&&_.vz(d.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});l=_.ZH("shortsLockupViewModelHost",l);var W=_.qx({elementsCommand:d.onTap}),w=_.e5();_.oo2(w,_.ht(d.onTap));var p=_.dT(function(c){if(W==null?0:W.onclick)W.onclick(c);return!1}),m=_.e5(),I=[];
I.push("shortsLockupViewModelHostThumbnailContainer");R===1?I.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):R===2&&I.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");M||I.push("shortsLockupViewModelHostThumbnailContainerRounded");_.Q("web_shorts_2_by_3_lockups_study")||_.Q("desktop_search_enable_two_by_three_shorts_aspect_ratio")||I.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var O,y=function(){if(k.value){var c;(c=O)==null||
Mo(c);c=k.value;var e;c.hostElement&&((e=c.data)==null?0:e.inlinePlayerData)&&(O=LX({mediaRenderer:c,lockupElement:c.hostElement,thumbnailElement:m.value,videoPreviewOpts:vEi}))}};
qV(function(){k.value&&(k.value.data=d,y())},[d]);
return _.g("ytm-shorts-lockup-view-model",{el:T,class:l},_.g("a",{el:w,"on:click":p,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!N,tabindex:N?0:-1},_.g("div",{el:m,class:I.join(" ")},_.ez(d.thumbnail,function(){return _.g(_.GT,null,_.g(_.Jt,{data:d.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),N?_.g(OYq,{data:d,
scrimStyle:X,useDefaultStyle:A}):null,jVv(d.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),N&&d.menuOnTap?_.g(sVj,{data:d,inlineMetadata:N}):null,N?null:_.g(Pqi,{useDefaultStyle:A,data:d}))};
OYq=function(M){var d=M.data;var N=M.scrimStyle;var R=M.useDefaultStyle;var X=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";M=R&&_.Q("web_hide_primary_text_for_pivot_panel");var A={};R=_.ZH("shortsLockupViewModelHostInlineMetadata",(A.shortsLockupViewModelHostMetadataRounded=!(R?X==="SHORTS_LOCKUP_STYLE_SLIM":d.style==="SHORTS_LOCKUP_STYLE_SLIM"),A.shortsLockupViewModelHostInlineMetadataShortScrim=N===3&&!_.Q("enable_shorts_lockup_new_scrim"),
A.shortsLockupViewModelHostInlineMetadataShortScrimNew=N===3&&_.Q("enable_shorts_lockup_new_scrim"),A.shortsLockupViewModelHostInlineMetadataMediumScrim=N===2||N===4,A.shortsLockupViewModelHostShowOverPlayer=!0,A));var l,k;X={};return _.g("div",{class:R+" image-overlay-text"},_.g("h3",{class:_.xj("shortsLockupViewModelHostMetadataTitle",(X.shortsLockupViewModelHostMetadataTitleTextShadow=N===4,X)),"aria-label":d.accessibilityText},_.ez(((l=d.overlayMetadata)==null?void 0:l.primaryText)&&!M,function(){return _.g(_.lG,
{text:d.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((k=d.overlayMetadata)==null?0:k.secondaryText)?_.g(rpZ,{data:d,
scrimStyle:N}):null)};
Pqi=function(M){var d=M.data;var N=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";M=(M.useDefaultStyle?N==="SHORTS_LOCKUP_STYLE_SLIM":d.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var R=_.qx({elementsCommand:d.onTap});N=_.e5();_.oo2(N,_.ht(d.onTap));var X=_.dT(function(p){if(R==null?0:R.onclick)R.onclick(p);return!1}),A,l,
k,T,W,w={};
return _.g("div",{class:M+" image-overlay-text","on:click":X},_.g("h3",{class:_.xj("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(w.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((A=d.overlayMetadata)==null?0:(l=A.primaryText)==null?0:l.content),w)),"aria-label":d.accessibilityText},_.g("a",{el:N,"on:click":X,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(k=d.overlayMetadata)==null?void 0:(T=k.primaryText)==
null?void 0:T.content},_.ez(d.overlayMetadata,function(){return _.g(_.lG,{text:d.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((W=d.overlayMetadata)==null?0:W.secondaryText)?_.g(rpZ,{data:d,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,d.menuOnTap?_.g(sVj,{data:d,inlineMetadata:!1}):null)};
rpZ=function(M){var d=M.data;var N=M.scrimStyle;M=M.className;var R,X={};return _.g("div",{class:_.xj((X.shortsLockupViewModelHostMetadataSubhead=N!==4,X.shortsLockupViewModelHostMetadataSubheadNew=_.Q("enable_shorts_lockup_new_scrim"),X.shortsLockupViewModelHostMetadataSubheadTextShadow=N===4,X),M),"aria-hidden":"true"},_.g(_.lG,{text:(R=d.overlayMetadata)==null?void 0:R.secondaryText,noStyleRuns:!0}))};
sVj=function(M){var d={};d=_.ZH((d.shortsLockupViewModelHostInlineMetadataMenu=M.inlineMetadata,d.shortsLockupViewModelHostOutsideMetadataMenu=!M.inlineMetadata,d.shortsLockupViewModelHostShowOverPlayer=!0,d));return _.g("div",{class:d},_.g(CX,{data:{style:M.inlineMetadata?"overlay":"mono",accessibilityLabel:M.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(N){N.preventDefault();N.stopPropagation();var R=_.qx({elementsCommand:M.data.menuOnTap,forceNewState:!0});
if(R==null?0:R.onclick)R.onclick(N)}},
iconName:"MORE_VERT"}))};
dW=function(M,d,N,R){return M&&d?M!==N||d!==R?(_.xM(Error("Ih"),void 0,void 0,{"stored-slot":M,"stored-layout":d,"latest-slot":N,"latest-layout":R}),!1):!0:!1};
Kor=function(M,d,N){return M({targetId:d},function(R){return N.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},R,{header:N.continuationItems?N.continuationItems[0]:void 0}):Object.assign({},R,{contents:N.continuationItems?N.continuationItems:[]})})};
yp6=function(M,d,N,R){if(d=d.trackingParams){var X,A=(X=N.getScreenLayer)==null?void 0:X.call(N);N=_.Ou(A);X=_.vl(A);if(N&&X){var l=_.At(d);_.Q("combine_ve_grafts")?M.graftServerVe(d,X,A):_.c1(N,X,l);R==null||R(l)}}};
cpZ=function(M){var d;return((d=Jpr.get(M))==null?void 0:d.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
bYZ=function(M,d){var N={type:d.slotType,controlFlowManagerLayer:Svj.get(d.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d.slotEntryTrigger&&(N.entryTriggerType=d.slotEntryTrigger.triggerType);d.slotPhysicalPosition!==1&&(N.slotPhysicalPosition=d.slotPhysicalPosition);if(M){N.debugData={slotId:d.slotId};if(M=d.slotEntryTrigger)N.debugData.slotEntryTriggerData=z2Z(M);M=d.slotFulfillmentTriggers;N.debugData.fulfillmentTriggerData=[];M=_.V(M);for(var R=M.next();!R.done;R=M.next())N.debugData.fulfillmentTriggerData.push(z2Z(R.value));
d=d.slotExpirationTriggers;N.debugData.expirationTriggerData=[];d=_.V(d);for(M=d.next();!M.done;M=d.next())N.debugData.expirationTriggerData.push(z2Z(M.value))}return N};
z2Z=function(M,d){var N={type:M.triggerType};d!=null&&(N.category=d);M.triggeringSlotId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedSlotId=M.triggeringSlotId);M.triggeringLayoutId!=null&&(N.triggerSourceData||(N.triggerSourceData={}),N.triggerSourceData.associatedLayoutId=M.triggeringLayoutId);return N};
e22=function(M,d,N,R){d={opportunityType:d};M&&(R||N)&&(R=_.mi(R||[],function(X){return bYZ(M,X)}),d.debugData=Object.assign({},N&&N.length>0?{associatedSlotId:N}:{},R.length>0?{slots:R}:{}));
return d};
HY2=function(M){return No(M.opportunityAdapterMap).concat(No(M.triggerAdapterMap)).concat(No(M.fulfillmentAdapterFactoryMap)).concat(No(M.slotAdapterFactoryMap)).concat(No(M.layoutRenderingAdapterFactoryMap))};
No=function(M){var d=[];M=_.V(M.values());for(var N=M.next();!N.done;N=M.next())N=N.value,N.isAdsControlFlowEventListener&&d.push(N);return d};
X3=function(M){var d=M.slotId,N=M.slotType,R=M.slotPhysicalPosition;return d===void 0?new Rf("Cannot construct a slot due to the missing id.",{adSlotMetadata:M}):N===void 0?new Rf("Cannot construct a slot due to the missing type.",{adSlotMetadata:M}):R===void 0?new Rf("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:M}):{slotId:d,slotType:N,slotPhysicalPosition:R,managerLayer:"external",adSlotLoggingData:M.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new nES}};
iYj=function(M){var d=M.layoutId,N=M.layoutType;return d===void 0?new F3("Cannot construct a layout due to the missing id.",{adLayoutMetadata:M}):N===void 0?new F3("Cannot construct a layout due to the missing type.",{adLayoutMetadata:M}):{layoutId:d,layoutType:N,managerLayer:"external",adLayoutLoggingData:M.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new nES,interactionLoggingAdsClientData:{}}};
fZ6=function(M){if((M=M.value)&&M.querySelector("img")){var d=M.querySelector("img");d.addEventListener("error",function(){JG2(d.src).then(function(N){(N=_.WQ(N).toString())?d.src=N:d.removeAttribute("src")}).catch(function(){d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Va=function(M,d){if(d&&(LoA(d.viewableCommand)||LoA(d.endOfSessionCommand))){M=M.value;var N=tAN(d==null?void 0:d.viewableCommand);d=tAN(d==null?void 0:d.endOfSessionCommand);if(!A9){var R=_.rK("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);A9=new GyZ((R==null?void 0:R.length)===2?R[1]:null)}aZ2(A9,M);UjS(A9,M,N,d)}};
lB=function(M){A9&&aZ2(A9,M.value)};
LoA=function(M){M=_.ht(M);return!(M==null||!M.loggingUrls)&&M.loggingUrls.length>0};
tAN=function(M){if(!M)return[];var d=[],N,R;((R=(N=_.ht(M))==null?void 0:N.loggingUrls)!=null?R:[]).forEach(function(X){X.baseUrl&&d.push(X.baseUrl)});
return d};
udj=function(M){return M.shorts.isDesktopSmallWidth};
_.Cqi=function(M){return M.shorts.isWatchWhileMode};
_.$D=function(M){return M.shorts.isFullscreen};
_.BC=function(M){return M.shorts.isShortsPipActive};
YvZ=function(M){var d,N;if(M=(d=_.q(M.reelsAdCardButtoned,xjq))==null?void 0:(N=d.animatedRenderingConfig)==null?void 0:N.easeOutSeconds)return M+"s"};
EEj=function(M,d,N){return _.B(function(R){return R.return(new Promise(function(X){var A=new Image;A.onload=function(){X(new ZYN(M,d,N,A.naturalWidth,A.naturalHeight))};
A.src=N.toString()}))})};
MhN=function(M,d){return Math.round(M/1E-5)===Math.round(d/1E-5)};
dzL=function(M,d){return Math.round(M/1E-5)===Math.round(d/1E-5)};
NdA=function(M,d){return M.year===d.year&&M.month===d.month&&M.day===d.day};
Rei=function(M,d){return M.year!==d.year?M.year<d.year:M.month!==d.month?M.month<d.month:M.day<d.day};
FUq=function(M){return M.day===XrN(M.year,M.month)?M.month===11?{year:M.year+1,month:0,day:1}:{year:M.year,month:M.month+1,day:1}:{year:M.year,month:M.month,day:M.day+1}};
Anq=function(){var M=new Date,d={year:M.getFullYear(),month:M.getMonth(),day:M.getDate()};return{start:d,end:{year:M.getFullYear()+2,month:M.getMonth(),day:M.getDate()},selectedDate:FUq(d)}};
Vhr=function(M){return(new Sp(2)).format(new Date(M.year,M.month,M.day))};
l_j=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
$zi=function(M,d){M=(M+(Number(d.utcOffsetSec)+(new Date(M*1E3)).getTimezoneOffset()*60))*1E3;d=l_j(new Date(M));return{date:d,secondsSinceMidnight:Math.floor((M-(new Date(d.year,d.month,d.day)).getTime())/1E3)}};
BdZ=function(M,d){d=d.months.findIndex(function(N){return N.year===M.year&&N.month===M.month});
return d>=0?d:void 0};
kOp=function(M){if(!M)return!1;try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENTBOX")return!0}catch(d){return!1}return kOp(M.parentNode)};
kD=function(M){return M?!(M.tagName!=="A"||!M.href||!M.classList.contains("yt-simple-endpoint")):!1};
Tdq=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1};
Dzv=function(M,d,N){if(!M)return null;var R=kD(M);if(R&&N)return d=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+d);if(R&&!N)return document.createTextNode("");if(Tdq(M))return N=M.alt,M=M.dataset.emojiId,!M&&d&&(d=_.Tf(d,N))&&d.isCustomEmoji&&(M=d.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(N);R=M.cloneNode(!1);for(var X=0;X<M.childNodes.length;++X){var A=Dzv(M.childNodes[X],d,N);A&&R.appendChild(A)}return R};
Db=function(M){return M?kD(M)?M:Db(M.lastChild):null};
g6r=function(M){return M?kD(M)?M:g6r(M.firstChild):null};
WUj=function(M){if(!M)return null;for(var d=M.previousSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.previousSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.previousSibling;else break;(d=Db(d))?M=d:M=(M=M.parentNode)?Db(M.previousElementSibling):null;return M};
wrA=function(M){if(!M)return null;for(var d=M.nextSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.nextSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.nextSibling;else break;return(d=g6r(d))?d:wrA(M.parentNode)};
prr=function(M){var d=_.gW(),N=d.JSC$9140_getStartNode();if(!kOp(N.parentNode))return null;d=d.JSC$9140_getStartOffset();if(N.nodeType===Node.TEXT_NODE){var R=_.jM(N,kD);if(R){if(M&&d===0||!M&&d===N.length)return R}else{if(M&&d===N.length)return!N||N.nodeName==="BR"||N.nextElementSibling&&_.WC(N.nextElementSibling,"display")==="block"?null:g6r(N.nextElementSibling);if(!M&&d===0)return N?Db(N.previousElementSibling):null}}if(N.nodeType===Node.ELEMENT_NODE)if(M){if(0<=d&&d<N.childNodes.length)return g6r(N.childNodes[d])}else if(0<
d&&d<=N.childNodes.length)return Db(N.childNodes[d-1]);return null};
mz6=function(M,d,N){if(!M)return null;if(M.nodeType===Node.TEXT_NODE)if(N){var R=WUj(M);if(R&&!/^\s+\S/.test(M.wholeText.substr(0,d)))return R}else if((R=wrA(M))&&!/\S\s+/.test(M.wholeText.substr(d,M.wholeText.length)))return R;return M.nodeType===Node.ELEMENT_NODE?N?WUj(M.childNodes[d]):wrA(M.childNodes[d]):mz6(M.parentNode,d,N)};
heN=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var d="";for(M=M.firstChild;M;M=M.nextSibling)d+=heN(M);return d;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}};
wW=function(M,d){return M.year===d.year&&M.month===d.month&&M.day===d.day};
pQ=function(M,d){return M.year!==d.year?M.year<d.year:M.month!==d.month?M.month<d.month:M.day<d.day};
Qii=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
q2N=function(M){var d=XnN;d=d===void 0?XnN:d;d(new Date(M.year,M.month,M.day))};
mJ=function(M){return Qii(new Date(Number(M.seconds)*1E3))};
I_S=function(M){return M.year!==void 0&&M.month!==void 0&&M.day!==void 0};
v6A=function(M){return M.start!==void 0&&M.end!==void 0};
Ovq=function(M){return v6A(M)?M.start:M};
jir=function(M){return v6A(M)?M.end:void 0};
Piv=function(M,d){for(var N=[],R=new Date(M.start.year,M.start.month);R.getFullYear()<M.end.year||R.getFullYear()===M.end.year&&R.getMonth()<=M.end.month;){var X=N,A=X.push,l=R.getFullYear(),k=R.getMonth(),T=M,W=d,w=void 0,p=[],m=Object.freeze({extraCssClass:"invisible"}),I=new Date(l,k),O=Qii(I);I=I.getDay();for(var y=Qii(new Date);O.month===k;){I!==siZ&&w||(w=Array.from({length:7}).fill(m),p.push(w));var c={date:{year:l,month:k,day:O.day},extraCssClass:"",debugClass:""};c.extraCssClass=W(c.date,
O,y,T).trim();w[(I-siZ+7)%7]=c;O=O.day===XrN(O.year,O.month)?O.month===11?{year:O.year+1,month:0,day:1}:{year:O.year,month:O.month+1,day:1}:{year:O.year,month:O.month,day:O.day+1};I=(I+1)%7}A.call(X,{weeks:p,monthLabel:h9.SHORTMONTHS[k]+" "+l,year:l,month:k,monthLabelExtraCssClass:p[0][2]===m?"shift-down-label":""});R.setMonth(R.getMonth()+1)}return N};
o6S=function(M,d){d=d.months.findIndex(function(N){return N.year===M.year&&N.month===M.month});
return d>=0?d:void 0};
KUN=function(M,d){a:{var N=N===void 0?[2,3]:N;N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=new Date;if((new rnS(R.value)).parse(d,X,{validate:!0})){X.setHours(0,0,0,0);d=X;break a}}d=null}if(!d)return{isValid:!1,value:void 0};d=Qii(d);N=M.end;return pQ(d,M.start)||pQ(N,d)?{isValid:!1,value:void 0}:{isValid:!0,value:d}};
ze2=function(M){var d=ynZ;d=d===void 0?JnA:d;var N=M.columnsToShow||[],R=cni(M.columnDimensions,M.columnsToShow,M.leftFloatingColumns,d);return N.map(function(X,A){var l=M.columns[X];if(l===void 0)throw Error("Oh");var k=R?R[A]:"";var T=M.getCustomTooltip?M.getCustomTooltip(X,l.headerTooltipParagraphs):l.headerTooltipParagraphs;var W=S26(M,X);return{type:X,index:A,style:k,classes:W,headerName:l.headerName||"",headerIcon:l.headerIcon,headerTooltipParagraphs:T||[],headerTooltipHelpContext:l.headerTooltipHelpContext,
sortOrders:l.sortOrders||[],selectionState:l.isSelectionCheckbox?M.selectionState:void 0}})};
S26=function(M,d){var N=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],R=M.columns[d];if(R===void 0)return"";var X=N.includes("DEFAULTS")&&R.cssClass?[R.cssClass]:[];if(N.includes("SORTING")){R.sortOrders&&R.sortOrders.length&&X.push("sortable");if(M.sorting&&M.sorting.columnType===d)a:switch(M.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var A="column-sorted";break a;default:A=""}else A="";A&&X.push(A)}N.includes("FLOATING")&&(d=M.columnsToShow.indexOf(d),M.leftFloatingColumns&&d<M.leftFloatingColumns&&
X.push("floating-column"),M.leftFloatingColumns&&d===M.leftFloatingColumns-1&&X.push("last-floating-column"));N.includes("RIGHT_ALIGN")&&R.rightAlignHeader&&X.push("right-align");return X.filter(function(l){return l}).join(" ")};
cni=function(M,d,N,R){N=N===void 0?0:N;R=R===void 0?JnA:R;if(M){var X=[],A=0;bvq(M,d,R).forEach(function(l,k){var T="min-width:"+l.minWidth+"px;padding-left:"+l.paddingLeft+"px;padding-right:"+l.paddingRight+"px;flex:"+l.flexGrow+" 0 "+l.minWidth+"px;";l.maxWidth!==Infinity&&(T=[T,"max-width:"+l.maxWidth+"px;"].join(""));A>0&&k<N&&(T=[T,"left:"+A+"px;"].join(""));X.push(T);A+=l.minWidth+l.paddingLeft+l.paddingRight});
return X}};
bvq=function(M,d,N){N=N===void 0?JnA:N;return d.map(function(R,X){R=M&&M[R]||{};var A=X===0?N.paddingLeftFirstColumn:N.padding;R.paddingLeft!==void 0&&(A=R.paddingLeft);X=X===d.length-1?N.paddingRightLastColumn:N.padding;R.paddingRight!==void 0&&(X=R.paddingRight);return{paddingLeft:A,paddingRight:X,minWidth:R.minWidth!==void 0?R.minWidth:N.minWidth,maxWidth:R.maxWidth!==void 0?R.maxWidth:N.maxWidth,flexGrow:R.flexGrow!==void 0?R.flexGrow:N.flexGrow}})};
eeN=function(M){var d=M.reduce(function(R,X){var A=X.columnId,l={};X.headerText&&(l.headerName=_.HD(X.headerText));X.rightAlignHeader&&(l.rightAlignHeader=X.rightAlignHeader);var k;if((k=X.headerIcon)==null?0:k.iconType)l.headerIcon=_.C6(X.headerIcon.iconType);R[A]=l;return R},{}),N=M.filter(function(R){return!R.hideColumn}).map(function(R){return R.columnId});
M=M.filter(function(R){return!!R.dimensions}).reduce(function(R,X){R[X.columnId]=X.dimensions;
return R},{});
return{columns:d,columnsToShow:N,columnDimensions:M}};
_.Hvv=function(M){return M?M.simpleText?M.simpleText:M.runs?M.runs.map(function(d){return d.text}).join(""):"":""};
thZ=function(M){var d=M.data;var N=M.onTap;var R=M.isSelected;var X=M.onFocusIn;if(!d)return{};M=n6i(d);R===void 0&&(R=d==null?void 0:d.isSelected);var A;return{text:ivv(d,M),startIcon:(A=d.icon)==null?void 0:A.iconType,state:R?0:2,type:0,onTap:f_2(d,N),accessibilityLabel:LUZ(d,M),onFocusIn:function(){return X==null?void 0:X()}}};
ivv=function(M,d){if(!d)return M.text?_.Hvv(M.text):void 0};
f_2=function(M,d){return function(N){d==null||d(N,M)}};
n6i=function(M){M=M.style&&M.style.styleType;return!GO6&&M==="STYLE_EXPLORE_LAUNCHER_CHIP"};
LUZ=function(M,d){if(d){var N,R,X;return(X=(N=M.accessibilityData)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:ivv(M,!1)}};
Qa=function(M){return{signalAction:{signal:M}}};
uAZ=function(){return _.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?a_q:_.Uz2};
Ci6=function(M,d){M=M===void 0?"SOFT_RELOAD_PAGE":M;d=d===void 0?49504:d;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.ue(_.le("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:d}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:M}}]}}}};
xzZ=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ue(_.le("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:uAZ()}};
Y2A=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ue(_.le("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:uAZ()}};
Zvi=function(M,d){var N=_.ue(_.le("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),R=_.ue(_.le("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),X={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ue(_.le("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};X.serviceEndpoint=M?M:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Qa("SOFT_RELOAD_PAGE")]}};return{title:N,bodyText:R,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:X},
style:{value:d!=null?d:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
M0v=function(M){M=M===void 0?{}:M;return{title:_.ue(M.localizedZeroStateTitleText===void 0?"":M.localizedZeroStateTitleText),bodyText:_.ue(M.localizedZeroStateMessage===void 0?"":M.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ue(M.localizedZeroStateButtonText===void 0?"":M.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[E6L]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.RoA=function(M,d,N,R,X,A,l,k){R=R===void 0?!1:R;X=X===void 0?!1:X;A=A===void 0?0:A;l=l===void 0?-Infinity:l;k=k===void 0?!1:k;var T=[],W=_.ue(_.le("SMART_DOWNLOADS",void 0,"Smart downloads"));l=_.ue(d6Z(A,l,M.length));A=void 0;R?A=M.length>0?N7A(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.Q("kevlar_manual_downloads_above"),W,l):k?{alertBannerViewModel:{heading:{content:N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText},body:{content:N.localizedPromptMessage===
void 0?"":N.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.le("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.le("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:_.Quq}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.ue(_.le("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"}}}:X&&(A={alertBannerViewModel:{heading:{content:N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText},body:{content:N.localizedOptInMessage===
void 0?"":N.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.le("TURN_ON",void 0,"Turn on"),accessibilityText:_.le("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}}}}}});N=_.ue(_.le("YOUR_DOWNLOADS",void 0,"Your downloads"));X=void 0;d.length>0?(X=void 0,_.Q("kevlar_display_downloads_numbers")&&(X=_.ue(_.$S("VIDEO_COUNT",d.length))),X=N7A(d,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,N,X)):R||M.length||(X={backgroundPromoRenderer:{bodyText:_.ue(_.le("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}}}});A&&!_.Q("kevlar_manual_downloads_above")&&T.push({richSectionRenderer:{content:A,loggingDirectives:{clientVeSpec:{uiType:139572}}}});X&&T.push({richSectionRenderer:{content:X,loggingDirectives:{clientVeSpec:{uiType:51721}}}});A&&_.Q("kevlar_manual_downloads_above")&&T.push({richSectionRenderer:{content:A,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(d.length>0||R&&M.length>0)&&T.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ue(_.le("DOWNLOADS_AVAILABILITY",
void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:T}};
_.Fb6=function(M){return XO6(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.APi=function(M){return XO6(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
XO6=function(M,d){var N=[];M=N7A(M,d,!0);N.push({richSectionRenderer:{content:M}});return{contents:N}};
N7A=function(M,d,N,R,X){N=N===void 0?!1:N;M={isExpanded:N,contents:qo(M),entitySelectorType:d};R&&(M.title=R);X&&(M.subtitle=X);N||(_.Q("kevlar_smart_downloads_show_more_button")?(M.showMoreButton={buttonRenderer:{accessibility:{label:_.le("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.ue(_.le("SHOW_MORE",void 0,"Show more"))}},M.showLessButton={buttonRenderer:{accessibility:{label:_.le("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.ue(_.le("SHOW_LESS",void 0,"Show less"))}}):(M.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.le("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},M.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.le("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},M.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.le("VIEW_ALL",void 0,"View all"),accessibilityText:_.le("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:aD("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:M}};
qo=function(M){var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N9N(N)){var R=d,X=R.push;var A=void 0;if(N==null?0:(A=N.videoEntity)==null?0:A.videoId){A=oz(_.iY().getState(),N.videoEntity.videoId);var l=_.iY().getState();var k=_.Nr(N.videoEntity.videoId,"mainVideoEntity");l=!!_.ph(l.entities)[k];l={videoId:N.videoEntity.videoId,title:Cb(N.videoEntity.title),shortBylineText:Cb(N.channelEntity.title),thumbnail:N.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:l&&_.Q("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:NIq(N.videoEntity.videoId,A,N.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.le("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};N.videoEntity.lengthSeconds&&(l.thumbnailOverlays=vOi(N.videoEntity.lengthSeconds,A));l.isWatched=A>0;_.Q("kevlar_modern_downloads_page")&&(l.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:N.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.le("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},l.badges=void 0);N=l}else N={};X.call(R,{richItemRenderer:{content:{videoRenderer:N},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(dsq(N)){R=d;X=R.push;var T=k=A=void 0,W=void 0,w=void 0,p=void 0,m=void 0,I=void 0,O=void 0,y=void 0,c=void 0,e=void 0;l=N.mainPlaylistEntity.playlistId;var t=N==null?void 0:(e=N.mainPlaylistEntity)==null?void 0:(c=e.thumbnailStyleData)==null?void 0:(y=c[0])==null?void 0:(O=y.value)==null?void 0:(I=O.collageThumbnail)==
null?void 0:I.coverThumbnail;if(l&&t){I=Rir(l);!_.Q("enable_offline_playlist_page")&&(N==null?0:(m=N.mainPlaylistEntity)==null?0:m.videos)&&(m=N==null?void 0:(p=N.mainPlaylistEntity)==null?void 0:(w=p.videos)==null?void 0:w[0],w=_.EN(m).entityId,w=JSON.parse(w).videoId,w!==void 0&&(p=oz(_.iY().getState(),w),I=_.UN(w,l,void 0,void 0,p)));w=[];if(N==null?0:(W=N.mainPlaylistEntity)==null?0:(T=W.videos)==null?0:T.length)w=[RHL(),Object.assign({},(k=NmZ(N==null?void 0:N.mainPlaylistEntity.videos.length))!=
null?k:{})];N={playlistId:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:t}},navigationEndpoint:I,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:w,title:Cb(N.mainPlaylistEntity.title),shortBylineText:Cb(N==null?void 0:(A=N.channelEntity)==null?void 0:A.title),badges:[{metadataBadgeRenderer:{label:_.le("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.Q("kevlar_modern_downloads_page")&&(N.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:V0r,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:l,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.le("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},N.badges=void 0)}else N=void 0;X.call(R,{richItemRenderer:{content:{playlistRenderer:N},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return d};
d6Z=function(M,d,N){M=M?lUZ(M):"";d!==void 0&&isFinite(d)?d===0?d=_.le("UPDATING",void 0,"Updating..."):(d=IYL(new Date(d),new Date),d=_.le("UPDATED_TIME",{relative_time:d},"Updated "+d)):d="";var R="";M&&d&&(R=" \u2022 ");if(N&&_.Q("kevlar_display_downloads_numbers")){N=_.$S("VIDEO_COUNT",N);if(M||d)R=" \u2022 ";return N+R+M+R+d}return M+R+d};
$6i=function(M){return Um2(M.entities).length};
_.B76=function(M,d){var N=gwr(M.responsiveSize),R;M=!((R=M.responsiveMap)==null||!R.some(function(X){return X.containerSize==="CONTAINER_SIZE_NARROW"&&X.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:d,sizing:N,enableFullBleedForSingleCol:!1,isCompactList:N==="COMPACT"&&M}};
kFS=function(M,d){return _.Rz(M.entities,"votingEntity",d)};
T76=function(M){if(M){var d;return((d=_.h().resolve(_.CF(_.Pz)))==null?0:d())?M.darkTheme:M.lightTheme}};
D62=function(M,d,N){return _.g(_.GT,null,PsZ(N,[[0,function(){return _.g("h2",{class:d},M)}],
[1,function(){return _.g("h3",{class:d},M)}],
[2,function(){return _.g("h4",{class:d},M)}]],function(){return _.g("h2",{class:d},M)}))};
guN=function(M){var d=["shelf-header-layout-wiz"];M.disableHorizontalPadding&&d.push("shelf-header-layout-wiz--disable-horizontal-padding");M.disableVerticalPadding&&d.push("shelf-header-layout-wiz--disable-vertical-padding");M.useResponsiveLayout&&(d.push("shelf-header-layout-wiz--responsive"),M.forceSmallLayout&&d.push("shelf-header-layout-wiz--narrow"));M.isOverlay&&d.push("shelf-header-layout-wiz--is-overlay");M.onClick&&d.push("shelf-header-layout-wiz--tappable");var N=["shelf-header-layout-wiz__title"];
M.forceSmallLayout&&N.push("shelf-header-layout-wiz__title--small-title");var R=["shelf-header-layout-wiz__leading-image"];M.circularImage&&R.push("shelf-header-layout-wiz__leading-image--circular-image");var X=_.dT(function(A){var l;(l=M.onClick)==null||l.call(M,A)});
return _.g("yt-shelf-header-layout",{class:d.join(" "),"on:click":X,tabindex:M.onClick?0:void 0},M.leadingIcon?_.g("div",{class:"shelf-header-layout-wiz__leading-icon"},_.g(_.Fc,{icon:M.leadingIcon})):M.leadingImage?_.g("div",{class:R.join(" ")},M.leadingImage()):_.g(_.GT,null),_.g("div",{class:"shelf-header-layout-wiz__label-container"},M.superlabel?_.g("div",{class:"shelf-header-layout-wiz__superlabel"},M.superlabel()):_.g(_.GT,null),_.g("div",{class:"shelf-header-layout-wiz__title-row"},D62(M.title(),
N.join(" "),M.tagLevel),_.ez(M.detail,function(){return _.g("div",{class:"shelf-header-layout-wiz__detail"},M.detail())})),M.sublabel?_.g("div",{class:"shelf-header-layout-wiz__sublabel"},M.sublabel()):_.g(_.GT,null)),M.trailingActions?_.g("div",{class:"shelf-header-layout-wiz__trailing-actions"},M.trailingActions()):_.g(_.GT,null))};
WbZ=function(M){var d=_.q(M==null?void 0:M.avatar,_.fX),N,R=(N=M==null?void 0:M.image)!=null?N:_.Uc(M==null?void 0:M.themedImage);return _.g(_.GT,null,_.ez(R,function(){return _.g(_.Jt,{data:R,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.ez(d,function(){return _.g(_.If,{data:d})}))};
m6S=function(M){var d=_.q(M.bottomBadge,wOj),N=d&&M.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.g(_.GT,null,_.ez(d,function(){return d&&_.g(pOp,{data:d,class:N})}),_.ez(M.sublabel,function(){return _.g(_.lG,{text:M.sublabel})}))};
ho6=function(M){var d=_.q(M.topBadge,wOj),N=d&&M.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.g(_.GT,null,_.ez(d,function(){return d&&_.g(pOp,{data:d,class:N})}),_.ez(M.superlabel,function(){return _.g(_.lG,{text:M.superlabel})}))};
qGr=function(M){var d=M.data;var N=M.disableHorizontalPadding;var R=M.disableVerticalPadding;var X=M.forceSmallLayout;var A=M.useResponsiveLayout;M=M.isOverlay;var l=d.sublabel||d.bottomBadge,k=d.superlabel||d.topBadge,T=_.zH(d.rendererContext);N={title:function(){return _.g(_.lG,{text:d.headline})},
sublabel:l&&function(){return m6S(d)},
superlabel:k&&function(){return ho6(d)},
leadingImage:d.leadingAccessory&&function(){return WbZ(d.leadingAccessory)},
trailingActions:d.trailingActions&&function(){return _.g(_.GT,null,QMr(d.trailingActions))},
disableHorizontalPadding:N,disableVerticalPadding:R,forceSmallLayout:X,useResponsiveLayout:A,isOverlay:M,onClick:T?function(W){var w=_.Sk(d.rendererContext);w&&_.Qu(w,{form:{element:W.target,event:W}})}:void 0};
R=(R=T76(d==null?void 0:d.backgroundColor))?"background-color: "+_.ml(R)+";":void 0;return _.g("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:R},_.g(guN,Object.assign({},N)))};
IUS=function(M,d){if(M.simpleText)return Object.assign({},M,{simpleText:jC(M.simpleText,d)});if(!M.runs)return M;for(var N=Object.assign({},M,{runs:[]}),R=0,X=_.V(M.runs),A=X.next();!A.done;A=X.next())if(A=A.value,A.text)if(R+A.text.length<=d)N.runs.push(A),R+=A.text.length;else return N.runs.push(Object.assign({},A,{text:jC(A.text,d-R)})),N;return M};
vuZ=function(M,d){return _.Rz(M.entities,"chipBarStateEntity",d)};
OT6=function(M,d){return _.Rz(M.entities,"chipEntity",d)};
sMi=function(M,d,N,R){return function(){var X=jMi.has(M.displayType)&&M.selected,A=X&&M.deselectCommand?M.deselectCommand:M.tapCommand;!A||X&&R||_.vz(A,{form:{element:d==null?void 0:d.value}});N==null||N()}};
Pw2=function(M){switch(M){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
oui=function(M,d){return{triggeringElement:M,onDwellTriggeredFn:function(){var N={triggeringElement:M,loadVideoPreviewEventData:d},R=document.querySelector(".video-preview");R&&R.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:N}))},
onDwellEndFn:function(){var N=document.querySelector(".video-preview");N&&N.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
rPi=function(M,d){var N=_.h().resolve(_.CF(YEq)),R=function(){var X=d();return N&&X?oui(M.value,X):null};
_.Wg(function(){var X=R();N&&X&&Promise.resolve().then(function(){N.registerElement(X)});
_.mF(function(){N&&X&&Promise.resolve().then(function(){N.unregisterElement(X)})})})};
yPq=function(M){var d=M.dataset.resizeObserverId;if(d)return d;d=""+KbS++;return M.dataset.resizeObserverId=d};
JPZ=function(M,d){var N=yPq(M);vC.has(N)||vC.set(N,new Set);vC.get(N).add(d);O$.has(N)&&d(Object.assign({},{target:M},O$.get(N)))};
cP6=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=yPq(d.target),R=Object.assign({},{target:d.target},O$.get(N));if(R!=null&&R.contentRect?R.contentRect.width!==d.contentRect.width||R.contentRect.height!==d.contentRect.height:1)for(O$.set(N,{borderBoxSize:d.borderBoxSize,contentBoxSize:d.contentBoxSize,contentRect:d.contentRect,devicePixelContentBoxSize:d.devicePixelContentBoxSize}),N=_.V(vC.get(N)||[]),R=N.next();!R.done;R=N.next())R=R.value,R(d)}};
zor=function(){return jB?jB:jB=new SGv(cP6)};
bTS=function(M,d){var N=yPq(M);vC.has(N)&&(vC.get(N).delete(d),vC.get(N).size===0&&(vC.delete(N),O$.delete(N),jB.unobserve(M),delete M.dataset.resizeObserverId));vC.size===0&&jB&&(jB.disconnect(),jB=void 0)};
HTj=function(M,d){var N=_.h().resolve(tQ);return eov.map(function(R){return N.observe(M,d,R)})};
nuv=function(M){var d=_.h().resolve(tQ);M.forEach(function(N){d.unobserveByKey(N)})};
_.LbS=function(M,d){var N=Object.assign({},iT2,d);d=_.V(ear());var R=d.next().value,X=d.next().value,A=function(l){var k=l.contentRect.height;if((l=l.contentRect.width)||k||N.canHaveZeroSize)R.width()===l&&R.height()===k||X(R,{height:k,width:l})};
_.IJ(function(){var l=M instanceof HTMLElement?M:M.value,k=fU6(A,N.throttleMs),T=[];N.useVisibilityObserver&&(T=HTj(l,function(W,w){requestAnimationFrame(function(){w==="visible"?(JPZ(l,k),zor().observe(l)):bTS(l,k)})}));
T.length||(JPZ(l,k),zor().observe(l));_.mF(function(){T.length&&(nuv(T),T.length=0);bTS(l,k)})});
return R};
GFN=function(M){var d=M.data;var N=M.callback;var R=M.enableSingleChipSelection;var X=M.disableChipsScrollAnimation;var A=_.e5(),l=jx(!1),k=jx(0);M={};M=_.V(d5(d.autoselectedChipIndex!=null?(M[d.autoselectedChipIndex]=!0,M):{}));var T=M.next().value,W=M.next().value,w=function(){var vj=A.value;return vj==null||vj.scrollLeft-1<=0},p=function(){var vj=A.value;
return vj==null?!1:vj.scrollLeft+1>=(vj==null?NaN:vj.scrollWidth)-(vj==null?NaN:vj.clientWidth)};
M=_.V(d5(w()));var m=M.next().value,I=M.next().value;M=_.V(d5(p()));var O=M.next().value,y=M.next().value;M=d.isHorizontallyScrollable;var c=function(vj){A.value!=null&&(_.rK("HTML_DIR")==="rtl"&&(vj=-vj),A.value.scrollBy({left:vj,behavior:X?"instant":"smooth"}))},e=function(){c(-320)},t=function(){c(320)},C=_.dT(function(vj){l.value=!0;
k.value=vj.clientX}),U=_.dT(function(vj){if(l.value){vj=vj.clientX;
var Pj=vj-k.value;k.value=vj;A.value.scrollBy({left:-Pj})}}),Fi=_.dT(function(){var vj=w(),Pj=p();
vj!==m&&I(vj);Pj!==O&&y(Pj)});
La("pointerup",function(){l.value&&(l.value=!1)});
var Y={},$i={};return _.g("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(d==null?void 0:d.title)&&_.g("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},d.title),_.g("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.ez(d.previousButton!=null,function(){var vj={};return _.g("div",{class:_.ZH("ytChipsShelfViewModelLeftArrowContainer",(vj.ytChipsShelfViewModelLeftArrowContainerIsHidden=m,vj))},t0A(d.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:e}}))}),
_.g("div",{el:A,
"on:pointerdown":C,"on:pointermove":U,"on:scroll":Fi,class:_.ZH("ytChipsShelfViewModelChipsScrollContainer",(Y.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!M,Y))},_.g("div",{class:_.ZH("ytChipsShelfViewModelChipsContainer",($i.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!M,$i.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!M&&!1,$i))},(d.contents||[]).map(function(vj,Pj){return _.g("div",{class:"ytChipsShelfViewModelChipWrapper"},t0A(vj,
{chipViewModel:{callback:function(sS,tL){if(R){var b2={};W((b2[Pj]=tL,b2))}else b2={},W(Object.assign({},T,(b2[Pj]=tL,b2)));N==null||N(sS,tL,Pj)},
disableDeselection:R,selected:!!T[Pj]}}))}))),_.ez(d.nextButton!=null,function(){var vj={};
return _.g("div",{class:_.ZH("ytChipsShelfViewModelRightArrowContainer",(vj.ytChipsShelfViewModelRightArrowContainerIsHidden=O,vj))},t0A(d.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:t}}))})))};
aUZ=function(){return GO6&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
U6N=function(M,d){if(!((d==null?0:d.entitySelectorType)&&(d==null?0:d.entityKey)))return{};switch(d.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return M=_.vI6(M,d.entityKey),M=M==null?void 0:M.value,d=!1,M==="CAPTIONS_UNAVAILABLE"&&(d=!0,M=""),Object.assign({},!!M&&{selectionText:{content:M}},{isSelected:!!M},!!M&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:d});default:return{}}};
Cwr=function(M,d,N,R,X){M=d?M.switchOffCommand:M.switchOnCommand;if(R&&X)u$Z(M,N,X);else{var A,l;(A=_.qx({elementsCommand:M}))==null||(l=A.onclick)==null||l.call(A,N)}};
u$Z=function(M,d,N){M=_.qx({elementsCommand:M,additionalCommandArgs:{commandController:{onSuccess:function(){N(!1)},
onServerError:function(){N(!1)}}}});
if(M==null?0:M.onclick)M.onclick(d),N(!0)};
YGi=function(M){if(M)return _.q(M,x6S)};
ZTr=function(M){M=M.selectElementClass;var d={};M=_.ZH("checkbox-shape-wiz__checkbox",M,(d["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!M,d));return _.g("div",{class:M,"aria-hidden":"true"},_.g(_.Fc,{icon:_.Q("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.g(_.Fc,{icon:_.Q("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
EuZ=function(M){var d=M.name;var N=M.onChange;var R=M.onClick;var X=M.checked===void 0?!1:M.checked;var A=M.labelRenderable;var l=M.hasLeadingLabel;var k=M.labelClass;var T=M.isCompact;var W=M.selectElementClass;var w=M.disableHorizontalPadding;M="checkbox"+_.s$(_.PC);var p=_.e5(),m=_.dT(function(y){R==null||R(y);return!1}),I=_.dT(function(y){p.value.checked=X;
N==null||N(y);return!1}),O={};
k=_.ZH("checkbox-shape-wiz",k,(O["checkbox-shape-wiz--compact"]=!!T,O["checkbox-shape-wiz--disable-horizontal-padding"]=!!w,O));return _.g("checkbox-shape",null,_.g("label",{class:k},_.g("input",{el:p,class:"checkbox-shape-wiz__input",id:M,checked:X,name:d,type:"checkbox","on:change":I,"on:click":m}),_.ez(!l,function(){return ZTr({isLeading:!0,selectElementClass:W})}),_.ez(A,function(){return _.g("div",{class:"checkbox-shape-wiz__label"},A==null?void 0:A())}),_.ez(l,function(){return ZTr({isLeading:!1,
selectElementClass:W})})))};
McN=function(M){var d=M.useCheckIcon===void 0?!1:M.useCheckIcon;var N=M.selectElementClass;M=d?"CHECK":"CIRCLE";var R="",X=_.Q("radio_shape_filled_icon_manual_setting_killswitch");X&&(R=d?"CHECK":"CIRCLE_FILLED");var A={};N=_.ZH("radio-shape-wiz__radio",N,(A["radio-shape-wiz__radio--check-icon"]=!!d,A["radio-shape-wiz__radio--radio-default-style"]=!N,A));return X?_.g("div",{class:N,"aria-hidden":"true"},_.g(_.Fc,{icon:M}),_.g(_.Fc,{icon:R,active:!d})):_.g("div",{class:N,"aria-hidden":"true"},_.g(_.Fc,
{icon:M}),_.g(_.Fc,{icon:M,active:!d}))};
d8L=function(M){function d(){var U;((U=_.h().resolve(_.CF(_.TH)))==null?0:U.isKeyBoardInUse())&&c.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function N(){c.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var R=M.name;var X=M.onChange;var A=M.onClick;var l=M.checked===void 0?!1:M.checked;var k=M.labelRenderable;var T=M.useCheckIcon;var W=M.hasLeadingLabel;var w=M.labelClass;var p=M.isCompact;var m=M.selectElementClass;var I=M.ariaLabel;var O=M.className;M=Ol(function(){return"radio"+_.s$(_.PC)});
var y=_.e5(),c=_.e5(),e=_.dT(function(U){y.value.checked=l;X==null||X(U);return!1}),t=_.dT(function(U){A==null||A(U);
return!1}),C=["radio-shape-wiz"];
O&&C.push(O);O={};w=_.ZH("radio-shape-wiz__label-container",w,(O["radio-shape-wiz--compact"]=!!p,O));mI(function(){document.activeElement===y.value&&d()});
_.IJ(function(){var U=y.value;U.addEventListener("focusin",d);U.addEventListener("focusout",N);return function(){U.removeEventListener("focusin",d);U.removeEventListener("focusout",N)}});
return _.g("radio-shape",{class:C.join(" ")},_.g("input",{el:y,class:"radio-shape-wiz__input",id:M,"prop:checked":l,name:R,type:"radio","on:change":e,"on:click":t,"aria-label":I}),_.g("label",{class:w,for:M,el:c},_.ez(!W,function(){return McN({checked:l,useCheckIcon:T,isLeading:!0,selectElementClass:m})}),_.ez(k,function(){return _.g("div",{class:"radio-shape-wiz__label",
"aria-hidden":I?"true":"false"},k==null?void 0:k())}),_.ez(W,function(){return McN({checked:l,
useCheckIcon:T,isLeading:!1,selectElementClass:m})})))};
NnL=function(M,d){return!!(d&&(M.leadingImage||M.leadingAccessory)||!d&&(M.trailingImage||M.trailingButton||M.trailingButtons||M.selectionText))};
F_r=function(M){var d=M.data;var N=M.isLeading;var R=M.hideSelectionTextChevron;if(NnL(d,N)){var X=_.ZH("yt-list-item-view-model-wiz__button-container");M={};var A=_.ZH("yt-list-item-view-model-wiz__image-container",(M["yt-list-item-view-model-wiz__leading"]=N,M["yt-list-item-view-model-wiz__trailing"]=!N,M)),l=N?d.leadingImage:d.trailingImage,k=_.ZH("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");M={};var T=_.ZH("yt-list-item-view-model-wiz__accessory",(M["yt-list-item-view-model-wiz__leading"]=
N,M["yt-list-item-view-model-wiz__trailing"]=!N,M)),W=!!d.selectionText,w=RRZ(d.listItemIconAfterSelectionText);return function(){var p;return _.g(_.GT,null,_.ez(l,function(){return _.g("div",{class:A,"aria-hidden":"true"},_.g(_.Jt,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0,className:k}))}),_.ez(N&&d.leadingAccessory,function(){return _.g("div",{class:A},Xdi(d.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:k}}))}),_.ez(!N&&d.trailingButton,function(){return _.g("div",{class:X},
Xdi(d.trailingButton,{buttonViewModel:{className:T}}))}),_.ez(!N&&((p=d.trailingButtons)==null?void 0:p.buttons),function(){var m;
return _.g("div",{class:X},Xdi((m=d.trailingButtons)==null?void 0:m.buttons,{buttonViewModel:{className:T},accountLinkButtonViewModel:{className:T},switchButtonViewModel:{className:T},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:T}}))}),_.ez(!N&&W,function(){return _.g(_.GT,null,_.g(_.lG,{text:d.selectionText,
className:_.ZH("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.ez(!R,function(){return _.g(_.Fc,{icon:w,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
RRZ=function(M){switch(M){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
ARZ=function(M){return M.title||M.subtitle?function(){return _.g("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.g("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.ez(M.title,function(){return _.g(_.lG,{text:M.title,className:"yt-list-item-view-model-wiz__title"})})),_.ez(M.subtitle,function(){return _.g(_.lG,{text:M.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.g(_.GT,null)}};
$82=function(M){function d(){var tL;((tL=_.h().resolve(_.CF(_.TH)))==null?0:tL.isKeyBoardInUse())&&Fi.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function N(){Fi.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var R=M.data;var X=M.isMenuItem;var A=M.isCompact;var l=M.onTap;var k=M.trailingAccessory;var T=M.hideSelectionTextChevron;var W=M.disabled;var w=M.inPopup;var p=M.disableHorizontalPadding;var m=M.isOverlay;M=rDj(function(tL){return U6N(tL,R)});
var I=_.Q("enable_web_shorts_captions_language_command")?Object.assign({},R,M):R;M=!(I.isSelected===void 0||!I.selectionStyle||I.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var O=(_.zH(I.rendererContext)||l)&&!M,y=_.zH(I.rendererContext)||M;W=!!I.isDisabled||!!W;var c={};m=_.ZH("yt-list-item-view-model-wiz",(c["yt-list-item-view-model-wiz--is-overlay"]=!!m,c));c={};var e=_.ZH("yt-list-item-view-model-wiz__label",(c["yt-list-item-view-model-wiz__container"]=!M,c["yt-list-item-view-model-wiz__container--disabled"]=
W,c["yt-list-item-view-model-wiz__container--has-subtitle"]=!!I.subtitle,c["yt-list-item-view-model-wiz__container--compact"]=!!A,c["yt-list-item-view-model-wiz__container--tappable"]=O,c["yt-list-item-view-model-wiz__container--in-popup"]=!!w,c));W={};W=_.ZH("yt-list-item-view-model-wiz__container",(W["yt-list-item-view-model-wiz__container--tappable"]=y,W["yt-list-item-view-model-wiz__container--compact"]=!!A,W["yt-list-item-view-model-wiz__container--in-popup"]=!!w,W["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!p,W));c=I.leadingImage||I.leadingAccessory;var t=_.ZH("yt-list-item-view-model-wiz__image-container",c?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),C=_.Q("apply_button_role_to_list_item");w=_.e5();var U=_.e5(),Fi=C?U:w,Y=function(){var tL,b2,Hj;return _.g(_.GT,null,(tL=F_r({data:I,isLeading:!0,hideSelectionTextChevron:!!T}))==null?void 0:tL(),(b2=ARZ(I))==null?void 0:b2(),k?_.g("div",{class:"yt-list-item-view-model-wiz__trailing"},k()):(Hj=F_r({data:I,isLeading:!1,
hideSelectionTextChevron:!!T}))==null?void 0:Hj())},$i=function(){return C?_.g("div",{class:e,
el:U,role:y||O?"button":void 0,tabindex:l||O?0:void 0,"on:keydown":sS,"on:click":Pj},Y()):_.g("div",{class:e,el:U},Y())},vj={labelRenderable:$i,
isCompact:A,checked:I.isSelected,hasLeadingLabel:!!c,labelClass:W,selectElementClass:t,disableHorizontalPadding:!!p};_.ba(w,I.rendererContext);var Pj=_.dT(function(tL){return void(l==null?void 0:l(tL))}),sS=_.Jo();
_.IJ(function(){O&&(Fi.value.addEventListener("focusin",d),Fi.value.addEventListener("focusout",N));return function(){Fi.value&&O&&(Fi.value.removeEventListener("focusin",d),Fi.value.removeEventListener("focusout",N))}});
A=_.dT(function(){return!1});
return _.g("yt-list-item-view-model",{el:w,class:m,role:X?"menuitem":"listitem",tabindex:C?void 0:l||O?0:void 0,"on:keydown":C?A:sS,"on:click":C?A:Pj},_.ez(M,function(){return PsZ(I.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.g(Vcv,Object.assign({},vj))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.g(lOZ,Object.assign({},vj))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.g(lOZ,Object.assign({},vj,{useCheckIcon:!0}))}]],function(){return $i()})},function(){return $i()}))};
gNZ=function(M,d,N){if(d)return[Bni];switch(M){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[of];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return N?[of]:[kl6,of];case "TRANSFER_STATE_PAUSED_BY_USER":return[Tnp,of];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[D8i,of];default:return[Bni]}};
W_N=function(M,d,N,R){return gNZ(M,d,R).map(function(X){var A=X.text,l=X.iconType,k=X.videoAction;X=X.playlistAction;A=A?{content:A}:void 0;l=l&&{sources:[{clientResource:{imageName:l}}]};var T=(0,_.wF.unsafeClone)(N);if(T){var W=_.q(T,_.NH),w=_.q(T,_.R0);W&&k?W.action=k:w&&X&&(w.action=X)}return{title:A,leadingImage:l,rendererContext:T&&{commandContext:{onTap:{innertubeCommand:T}}}}})};
wdv=function(M){M=_.Sk(M.rendererContext);var d;return(d=_.q(M,_.R0))==null?void 0:d.playlistId};
pdS=function(M){var d;return(d=M.listItems)==null?void 0:d.some(function(N){var R;return _.zH((R=_.q(N,_.B5))==null?void 0:R.rendererContext)})};
hRq=function(M){var d=M.data;var N=M.isCompact;var R=M.hideSelectionTextChevron;var X=M.inPopup;M=M.isOverlay;var A=pdS(d)&&X,l={};return _.g("yt-list-view-model",{class:_.ZH("yt-list-view-model-wiz",(l["yt-list-view-model-wiz--kaios-spat-nav"]=aUZ(),l)),role:A?"menu":"list"},m8Z(d.listItems,{listItemViewModel:{isMenuItem:A,isCompact:N,hideSelectionTextChevron:R,inPopup:X,isOverlay:M},downloadListItemViewModel:{isMenuItem:A,isCompact:N,inPopup:X}}))};
rW=function(M){var d=_.h().resolve(_.CF(_.Pz));return d!=null&&d()?M.darkThemeColorPalette:M.lightThemeColorPalette};
ya=function(M){return{primaryTextColor:KQ(M,0),secondaryTextColor:KQ(M,1),optionColor:KQ(M,2),backgroundColor:KQ(M,3),videoBackgroundColor:KQ(M,4)}};
KQ=function(M,d){if(M){switch(d){case 0:M=M.primaryTitleColor;break;case 1:M=M.secondaryTitleColor;break;case 2:M=M.surgeColor;break;case 3:M=M.section2Color;break;case 4:M=M.section3Color;break;default:return}if(M)return _.p3(M)}};
QvL=function(M){return M?_.ml(M):""};
qkZ=function(M){return(M==null?void 0:M.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
IOS=function(M,d){var N;return"linear-gradient(to bottom, "+((N=d==null?void 0:d.map(function(R){var X=M?R.darkThemeColor:R.lightThemeColor;return X?_.ml(X)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"}))==null?void 0:N.join(", "))+")"};
vNZ=function(M){var d=M.className;var N=M.data;var R=M.isOverlay;var X=M.maxLinesOverride;var A=M.useMediumText;M=_.e5();var l=N.description,k=N.alwaysShowTruncationText,T=N.truncationText,W=N.maxLines,w,p=!((w=_.q(N.rendererContext,Znp))==null||!w.onTap),m,I,O=(I=(m=_.q(N.rendererContext,_.H5))==null?void 0:m.label)!=null?I:"";w=_.V(d5(!1));var y=w.next().value,c=w.next().value;_.ba(M,N.rendererContext);w=_.dT(function(){N.expandOnTap&&c(!y);return!1});
m={};return _.g("yt-description-preview-view-model",{el:M,class:_.ZH("yt-description-preview-view-model-wiz",d,(m["yt-description-preview-view-model-wiz--clickable"]=p,m["yt-description-preview-view-model-wiz--is-overlay"]=R,m)),"on:click":w},_.ez(l,function(){var e={};return y?_.g("div",{class:_.ZH("yt-description-preview-view-model-wiz__description",(e["yt-description-preview-view-model-wiz__description--medium-text"]=A,e))},_.g(_.lG,{text:l})):_.g(Fo2,{text:l,alwaysShowTruncationText:k,truncationText:T,
maxLines:X!=null?X:W,isOverlay:R,accessibilityLabel:O,useMediumText:A})}))};
svi=function(M,d,N,R,X){var A=!M.metadata;var l=d?_.q(M.heroImage,OCZ):_.q(M.animatedImage||M.image,OCZ);if(!l)return{size:0};M=l.style;var k=l.layoutMode;l=y3Z(Kuq(l));if(d)d=jvZ(N,M,k,l,X);else a:if(A)d=N===1?{size:48}:{size:72};else switch(N){case 1:d={size:72};break a;case 2:d={size:120};break a;default:d=R<4?{size:120}:{size:160}}return d};
jvZ=function(M,d,N,R,X){if(!((R==null?0:R.height)&&(R==null?0:R.width)))return{size:0};var A=R.width;R=R.height;if(X)return d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&A>R?{size:312/owq}:d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(N!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||M!==1&&M!==2||d!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&d!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&d!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||R===A)switch(M){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||R>A)switch(M){case 1:case 3:return{size:240*Poi};default:return{size:360*Poi}}switch(M){case 1:case 2:return{size:1/owq*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.PtA=function(M){if(!("matchMedia"in window))return _.Sx(Error("Ph")),function(){return!1};
var d=window.matchMedia(M);M=_.V(_.d0(d.matches,void 0,"jLJc8e"));var N=M.next().value,R=M.next().value,X=function(A){R(A.matches)};
d.addEventListener?(d.addEventListener("change",X),_.mF(function(){d.removeEventListener("change",X)})):d.addListener&&(d.addListener(X),_.mF(function(){d.removeListener(X)}));
return N};
oNp=function(M){return M==="IMAGE_BANNER_STYLE_INSET"||M==="IMAGE_BANNER_STYLE_UNKNOWN"};
rRL=function(){var M=_.Q("web_enable_sink_page_header_view_model"),d=M?_.d0:d5;if(!("matchMedia"in window))return _.Sx(Error("Ph")),0;var N=Ol(function(){return window.matchMedia("(max-width: 527.9px)")}),R=Ol(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),X=Ol(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),A=Ol(function(){return window.matchMedia("(min-width: 1024px)")}),l=_.V(d(N.matches)),k=l.next().value,T=l.next().value;
l=_.V(d(R.matches));var W=l.next().value,w=l.next().value;l=_.V(d(X.matches));var p=l.next().value,m=l.next().value;d=_.V(d(A.matches));var I=d.next().value,O=d.next().value,y=Ol(function(){return function(C){T(C.matches)}}),c=Ol(function(){return function(C){w(C.matches)}}),e=Ol(function(){return function(C){m(C.matches)}}),t=Ol(function(){return function(C){O(C.matches)}});
_.IJ(function(){N.addEventListener?(N.addEventListener("change",y),R.addEventListener("change",c),X.addEventListener("change",e),A.addEventListener("change",t)):N.addListener&&(N.addListener(y),R.addListener(c),X.addListener(e),A.addListener(t));var C=function(){N.removeEventListener?(N.removeEventListener("change",y),R.removeEventListener("change",c),X.removeEventListener("change",e),A.removeEventListener("change",t)):N.removeListener&&(N.removeListener(y),R.removeListener(c),X.removeListener(e),
A.removeListener(t))};
if(M)_.mF(C);else return C});
return M?function(){return k()?1:W()?2:p()?3:I()?4:0}:k?1:W?2:p?3:I?4:0};
K_i=function(M){var d=0;M=_.V([M.title,M.metadata,M.actions,M.description,M.attribution]);for(var N=M.next();!N.done;N=M.next())N.value&&d++;return d};
JRv=function(M,d,N){var R=M.image,X=_.q(R,yRv),A=X==null?void 0:X.avatar,l=_.q(A,_.fX);if(R&&A&&l){switch(d){case 1:l.avatarImageSize="AVATAR_SIZE_XL";break;case 2:l.avatarImageSize="AVATAR_SIZE_XXL";break;default:N<4?l.avatarImageSize="AVATAR_SIZE_XXL":l.avatarImageSize="AVATAR_SIZE_XXXL"}_.Q("web_enable_sink_page_header_view_model")&&(_.gk(A,_.fX,Object.assign({},l)),X.avatar=Object.assign({},A),_.gk(R,yRv,Object.assign({},X)),M.image=Object.assign({},R))}};
cR6=function(M){return M===1||M===2?1:0};
SkZ=function(M,d){return M?_.g("div",{class:"page-header-view-model-wiz__scroll-container"},d()):d()};
bCp=function(M){var d=M.data;var N=M.noPadding;var R=M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow;var l=M.displayAsSidebar;var k=M.displayAsPanel;M=K_i(d);var T=!!d.heroImage,W=!!d.image||!!d.animatedImage,w=!!d.background,p=l||k?1:rRL(),m=p===1,I=p===2,O=m||I,y=p===4,c=svi(d,T,p,M,l),e={};N=_.ZH((e["page-header-view-model-wiz"]=!0,e["page-header-view-model-wiz--no-padding"]=!!N,e["page-header-view-model-wiz--small-top-padding"]=m&&!d.actions||I&&!(W||
T),e["page-header-view-model-wiz--small-bottom-padding"]=O&&!d.actions,e["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!A,e["page-header-view-model-wiz--display-as-sidebar"]=l,e["page-header-view-model-wiz--display-as-panel"]=k,e));A={};var t=_.ZH((A["page-header-view-model-wiz__page-header-headline"]=!0,A["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=c.allowFullWidth,A)),C=O&&!c.allowFullWidth;k=(A=m&&(T||W)&&M>0)&&k;I={};k=(I["page-header-view-model-wiz__page-header-title"]=
!0,I["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!A,I["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=A&&!k,I["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=k,I["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=w,I);A={};A=(A["page-header-view-model-wiz__page-header-headline-image"]=!0,A["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
T&&O,A);var U;I={};var Fi=(I["page-header-view-model-wiz__page-header-banner-container"]=R,I["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=R&&((U=_.q(d.banner,_.zRi))==null?void 0:U.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",I);U={};U=(U["page-header-view-model-wiz__page-header-content-metadata"]=!0,U["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=w,U);I={};I=(I["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!d.metadata||O,I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!O,I);e={};e=(e["page-header-view-model-wiz__page-header-attribution"]=!0,e["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=w,e);var Y={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:w,
maxLinesOverride:m?void 0:1,useMediumText:y},dynamicTextViewModel:{className:_.ZH(k)},contentPreviewImageViewModel:{className:_.ZH(A),imageSizeConfig:c},contentMetadataViewModel:{layout:m?1:0,className:_.ZH(U),isOverlay:w,useMediumText:y},flexibleActionsViewModel:{layout:cR6(p),className:_.ZH(I)},attributionViewModel:{className:_.ZH(e),useMediumText:y},decoratedAvatarViewModel:{className:_.ZH(A)},cinematicContainerViewModel:{topbarOffset:X},flexibleContainer:{isOverlay:w}};W&&JRv(d,p,M);return _.g("yt-page-header-view-model",
{class:N},_.ez(w,function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-background"},J9(d.background,Y))}),SkZ(!!l,function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-content"},_.ez(R&&(d==null?void 0:d.banner),function(){return _.g("div",{class:_.ZH(Fi)},J9(d==null?void 0:d.banner,Y))}),_.g("div",{class:t},_.ez(W,function(){return J9((d==null?void 0:d.animatedImage)||(d==null?void 0:d.image),Y)}),_.ez(T&&!C,function(){return J9(d==null?void 0:d.heroImage,
Y)}),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.ez(T&&C,function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},J9(d==null?void 0:d.heroImage,Y))}),_.ez(d==null?void 0:d.title,function(){return J9(d==null?void 0:d.title,Y)}),_.ez(d.metadata,function(){return J9(d.metadata,Y)}),_.ez(d.description&&!m,function(){return J9(d.description,Y)}),_.ez(d.attribution&&!O,function(){return J9(d.attribution,Y)}),_.ez(d.actions&&
!O,function(){return J9(d.actions,Y)}))),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.ez(d.description&&m,function(){return J9(d.description,Y)}),_.ez(d.attribution&&O,function(){return J9(d.attribution,Y)}),_.ez(d.actions&&O,function(){return J9(d.actions,Y)})),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.ez(d.bottomMetadataFlexibleContainer,function(){return J9(d.bottomMetadataFlexibleContainer,Y)})))}))};
HCi=function(M){var d,N=((d=_.h().resolve(_.CF(_.Pz)))==null?0:d())&&M.data.darkThemeImage?M.data.darkThemeImage:M.data.image;d=_.g("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.g("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},N?_.g(_.Jt,{data:N,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),eRj(M.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));N=_.g(_.lG,{text:M.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var R=M.data;if(R.bodyText){var X=[];R=_.V(R.bodyText);for(var A=R.next();!A.done;A=R.next())X.push(_.g(_.lG,{text:A.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else X=_.g(_.GT,null);return _.g("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},d,N,X,eRj(M.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.g(_.lG,{text:M.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.g(_.lG,{text:M.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
iCZ=function(M){M=(new nNi).parse(M);return(new Mw).render(M).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(d){var N=d.split(":").map(Number),R=0,X=0;if(N.length===3)N=_.V(N),R=N.next().value,X=N.next().value,N=N.next().value;else if(N.length===2)N=_.V(N),X=N.next().value,N=N.next().value;else if(N.length===1)N=_.V(N).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(R*3600+X*60+N)+'" role="button">'+d+"</span>"})};
fOi=function(M){M=_.V(M.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var d=M.next(),N={};!d.done;N={clickHandler$jscomp$4:void 0},d=M.next()){d=d.value;N.clickHandler$jscomp$4=function(X){X=Number(X.target.getAttribute("data-time"));if(isNaN(X))throw Error("Rh");var A=document.querySelector("video");A&&(A.currentTime=X)};
var R=function(X){return function(A){A.key!=="Enter"&&A.key!=="Space"||(0,X.clickHandler$jscomp$4)(A)}}(N);
d.setAttribute("tabindex","0");d.removeEventListener("click",N.clickHandler$jscomp$4);d.removeEventListener("keydown",R);d.addEventListener("click",N.clickHandler$jscomp$4);d.addEventListener("keydown",R)}};
L_p=function(){return _.g("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.g(cC,{percentWidth:100}),_.g(cC,{animationDelay:200}),_.g(cC,{animationDelay:400}),_.g(cC,{animationDelay:600}),_.g(cC,{animationDelay:800,percentWidth:60}),_.g("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.g(cC,{percentWidth:100}),_.g(cC,{animationDelay:200}),_.g(cC,{animationDelay:400}),_.g(cC,{animationDelay:600,percentWidth:50}))};
cC=function(M){return _.g("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(M.percentWidth===void 0?100:M.percentWidth)+"%"},_.g("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(M.animationDelay===void 0?0:M.animationDelay)+"ms"}))};
tcL=function(){var M=_.V(_.d0(function(){return""},void 0,"v2wS5e")),d=M.next().value;
return[function(){return d()()},
M.next().value]};
aOv=function(M){M=M===void 0?{}:M;return{title:_.ue(M.localizedOptInBannerTitleText===void 0?"":M.localizedOptInBannerTitleText),titleLength:19,subtitle:_.ue(M.localizedOptInMessage===void 0?"":M.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ue(_.le("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:_.ue(_.le("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:[GlZ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
U8j=function(M,d){M=M?lUZ(M):"";d!==void 0&&isFinite(d)?d===0?d=_.le("UPDATING",void 0,"Updating..."):(d=IYL(new Date(d),new Date),d=_.le("UPDATED_TIME",{relative_time:d},"Updated "+d)):d="";var N="";M&&d&&(N=" \u2022 ");return _.ue(M+N+d)};
x8q=function(M,d,N,R,X,A){d=d===void 0?0:d;var l=ubL[d],k=l.title,T=l.iconType,W=l.topButtonRenderer,w=l.sectionClientVE;l=l.videoClientVE;var p;if(d!==1||M.length){N=[];M=_.V(M);for(R=M.next();!R.done;R=M.next()){var m=R.value;if(N9N(m))N.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:m.videoEntity.videoId,title:Cb(m.videoEntity.title),shortBylineText:Cb(m.channelEntity.title),thumbnail:m.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:m.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.le("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:l}}}}}});else if(dsq(m)){R=N;var I=R.push;var O=void 0,y=void 0,c=void 0,e=void 0,t=void 0,C=void 0,U=void 0,Fi=void 0,Y=m.mainPlaylistEntity.playlistId,$i=m==null?void 0:(Fi=m.mainPlaylistEntity)==null?void 0:(U=Fi.thumbnailStyleData)==null?void 0:(C=U[0])==null?void 0:(t=C.value)==null?void 0:(e=t.collageThumbnail)==null?void 0:e.coverThumbnail;e=Rir(Y);if(!_.Q("enable_offline_playlist_page")&&
(m==null?0:(c=m.mainPlaylistEntity)==null?0:c.videos)){b:{c=m==null?void 0:(y=m.mainPlaylistEntity)==null?void 0:y.videos;y=_.iY().getState().entities;if(c!=null&&c.length&&y)for(c=_.V(c),t=c.next();!t.done;t=c.next())if(t=_.EN(t.value).entityId,(t=JSON.parse(t).videoId)&&GJp(y,t)==="TRANSFER_STATE_COMPLETE"){y=t;break b}y=""}y!==void 0&&(e=oz(_.iY().getState(),y),e=_.UN(y,Y,void 0,void 0,e))}y=Fsi(_.le("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Rir(Y));m=Y&&$i&&y?{playlistId:Y,navigationEndpoint:e,
viewPlaylistText:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:$i}},title:Cb(m.mainPlaylistEntity.title),shortBylineText:Cb(m==null?void 0:(O=m.channelEntity)==null?void 0:O.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Ctq,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.le("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:l}}}:
void 0;I.call(R,{gridPlaylistRenderer:m})}}l={gridRenderer:{items:N}};d===1&&(p=U8j(X,A))}else if(R){var vj=_.ue((I=N==null?void 0:N.localizedPromptMessage)!=null?I:"");l={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ue(_.le("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Quq}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ue(_.le("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};p=U8j(X,A)}else vj=_.ue(_.le("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
l={};return{contents:[{shelfRenderer:{title:k,titleAnnotation:p,icon:{iconType:T},subtitle:vj,content:l,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:W}]}}}}],loggingDirectives:{clientVeSpec:{uiType:w}}}};
YkA=function(M,d,N,R,X,A,l,k){N=N===void 0?{}:N;R=R===void 0?!1:R;X=X===void 0?!1:X;A=A===void 0?!1:A;l=l===void 0?0:l;k=k===void 0?-Infinity:k;if(!d.length&&!M.length&&!R)return X?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:M0v(N)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.ue(_.le("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];
var T=[];M.length&&T.push(x8q(M,0));R?T.push(x8q(d,1,N,A,l,k)):X&&T.push({contents:[{statementBannerRenderer:aOv(N)}]});(R&&d.length||M.length)&&T.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ue(_.le("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});return T.map(function(W){return{itemSectionRenderer:W}})};
SB=function(M,d){if(typeof M!=="object")return null;M=_.V(Object.entries(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(N===d)return N;if(R=SB(R,d))return N+"."+R}return null};
zf=function(M){var d=M.content;return(M=M.styleRuns)&&d?{runs:M.map(function(N){var R={text:d.slice(N.startIndex,N.startIndex+N.length)};N.fontColor&&(R.textColor=N.fontColor);return R})}:{simpleText:d}};
MgZ=function(M,d,N,R){var X=ZCS;R&&(M.quantity=R);if(!M.quantity||!M.maxQuantity)return{};R=M.minusButton;var A=M.plusButton,l,k,T,W;return{value:M.quantity,maxValue:M.maxQuantity,onChangeCallback:function(w){X(M,w)},
minusLabel:(l=_.q(R,EN2))==null?void 0:l.label,minimumReachedLabel:(k=_.q(R,EN2))==null?void 0:k.limitReachedLabel,plusLabel:(T=_.q(A,EN2))==null?void 0:T.label,maximumReachedLabel:(W=_.q(A,EN2))==null?void 0:W.limitReachedLabel,disabled:d,onRemoveCommand:N}};
ZCS=function(M,d){var N=M.quantityIncrementerEntityKey;if(N){var R={};R.quantity=d;_.yE(_.v5("quantityIncrementerEntity",N,R));M.onChangeCommand&&_.vz(M.onChangeCommand)}};
d4i=function(M){return _.Q("kevlar_comments_clone_data_killswitch")?M:_.wF.unsafeClone(M)};
Xpi=function(M,d){(M=NCZ(M))&&(d?RB6.push({command:M,sourceData:{},commandContext:void 0}):_.h().resolve(_.xV).resolveCommand(M))};
NCZ=function(M){return _.q(M,_.mX)};
FaZ=function(){var M=window.performance.timeOrigin+window.performance.now(),d=(new _.eB).setSeconds(M/1E9);return _.m1(d,2,_.hd(M%1E9),0)};
HC=function(M,d){var N=_.q(_.q(M,_.mX),Acj);N&&(d&&(N.serializedAdditionalMetadata=_.UT(d)),Xpi(M,!0))};
Vgp=function(M){switch(M){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
lz6=function(){return!!_.rK("ID_TOKEN")};
k8p=function(M){return M instanceof Error&&M.cause instanceof $4p&&M.cause.rpcErrorCode!==void 0?!BCv.includes(M.cause.rpcErrorCode):!0};
D4L=function(){return _.LF(TCZ,{authuser:""+(_.rK("SESSION_INDEX")||0)})};
nQ=function(M,d,N,R){N=N===void 0?"MINI_APP_SDK_API_UNSPECIFIED":N;R=R===void 0?"":R;var X=new _.WJ;N={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:R,sdkApi:N};M instanceof Error&&(X.message=M.message,X.name=M.name,M.cause instanceof $4p&&M.cause.rpcErrorCode!==void 0&&(N.rpcErrorCode=M.cause.rpcErrorCode));var A;(A=d.onError)==null||A.call(d,{loggingError:X,metadata:N})};
WaS=function(M,d,N,R){switch(M){case "MINI_APP_SOURCE_GAMESNACKS":return new iB(d,N,R);default:return new gxZ(d,N,R)}};
wpv=function(M){switch(M){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
ppA=function(M){switch(M){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
m4j=function(M){switch(M){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
hBA=function(){return Math.floor(Math.random()*4)+1};
QS2=function(M,d,N,R){M=_.V(Object.entries(M));for(var X=M.next(),A={};!X.done;A={message$jscomp$957:void 0},X=M.next()){var l=_.V(X.value);X=l.next().value;l=l.next().value;A.message$jscomp$957=l;d.push(setTimeout(function(k){return function(){R(!1);N(k.message$jscomp$957.text)}}(A),A.message$jscomp$957.delayMs));
Number(X)>0&&d.push(setTimeout(function(){R(!0)},A.message$jscomp$957.delayMs-400))}};
qmq=function(M,d){var N=N===void 0?$Ki:N;_.Q("mweb_fix_monitor_visibility_after_render")?M&&kj(function(){TXZ(M,d,N)}):kj(function(){TXZ(M,d,N)})};
jSj=function(M){Iz6||(Iz6=vx2(new _.Kh(1,void 0,void 0,OjL),0));var d=Iz6.format(Math.floor(M));d=_.r_==="be"||_.r_==="bg"||_.r_==="es"||_.r_==="et"||_.r_==="hu"||_.r_==="ka"||_.r_==="lv"||_.r_==="pl"||_.r_==="pt-PT"||_.r_==="sq"?d.replace(new RegExp("^(\\d)"+OjL.GROUP_SEP.replace(".","\\.")+"(\\d+("+OjL.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):d;return M>=1E3&&M<=9999&&d[1]==="."&&(_.r_==="sl"||_.r_==="it")?d.replace(".",""):d};
sSS=function(M,d){DH("ytd-button-renderer",{data:M,className:d?d.className:"",overrides:d==null?void 0:d.buttonOverrides},Jl)};
rci=function(M,d,N,R){if(M)return R=R||M.likeStatus,d?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="LIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:N},defaultText:R==="LIKE"?M.likeCountWithUnlikeText:M.likeCountText,toggledText:R==="LIKE"?M.likeCountText:M.likeCountWithLikeText,defaultNavigationEndpoint:Phq(M,"LIKE"),defaultServiceEndpoint:oxi(M,"LIKE"),toggledServiceEndpoint:oxi(M,"INDIFFERENT"),defaultTooltip:_.HD(M.likeCountTooltipText),toggledTooltip:_.HD(M.likeCountTooltipText),
targetId:M.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="DISLIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:N},defaultText:R==="DISLIKE"?M.dislikeCountWithUndislikeText:M.dislikeCountText,toggledText:R==="DISLIKE"?M.dislikeCountText:M.dislikeCountWithDislikeText,defaultNavigationEndpoint:Phq(M,"DISLIKE"),defaultServiceEndpoint:oxi(M,"DISLIKE"),toggledServiceEndpoint:oxi(M,"INDIFFERENT"),defaultTooltip:_.HD(M.dislikeCountTooltipText),
toggledTooltip:_.HD(M.dislikeCountTooltipText)}};
Phq=function(M,d){if(d==="LIKE")return M.likeCommand;if(d==="DISLIKE")return M.dislikeNavigationEndpoint};
oxi=function(M,d){var N;return(N=M.serviceEndpoints)==null?void 0:N.find(function(R){var X;return((X=_.q(R,_.fQ))==null?void 0:X.status)===d})};
Kai=function(M,d){d=d===void 0?{}:d;if(M){var N=!!d.activeState,R=d.iconSize,X=d.className,A=d["aria-hidden$"],l=d["aria-label$"],k=d.role;d=d.style$+";width: "+((d.width||R)+"px;height: ")+((d.height||R)+"px;color: ")+(d.color+";");M={icon:M};N!==void 0&&(M.active=N);R!==void 0&&(M.size=R);d!==void 0&&(M.style=d);X!==void 0&&(M.className=X);A!==void 0&&(M.ariaHidden=A);l!==void 0&&(M.ariaLabel=l);k!==void 0&&(M.role=k);DH("yt-icon",M,Jl)}};
_.ccj=function(M,d,N){return window.spf&&!_.Q("web_disable_spfjs_client")?yci(M,d,N):Jc6(M,d)};
yci=function(M,d,N){var R=null,X=(new _.Xy(function(A,l){var k={};if(d){k.method=d.method;var T=d.postParams||{};uKL(M,d)&&(T[_.rK("XSRF_FIELD_NAME")]=_.rK("XSRF_TOKEN"));k.postData=_.VO(T);d.type&&(k.type=d.type);T=d.headers}k.headers=ftj(M,T);_.Q("debug_forward_web_query_parameters")&&(M=_.atZ(M,window.location.search));k.experimental_headers=k.headers;k.onError=function(W){W.err&&W.xhr&&(W.err.params={url:W.xhr.responseURL,response:W.xhr.responseText.substr(0,64)});l(W.err)};
k.onPartDone=function(W){N&&N.call(null,W.part)};
k.onDone=function(W){var w=SmZ(W.response,"xsrf_token");aJ(window.location.href,M)&&w&&_.oJ("XSRF_TOKEN",w);if(w=SmZ(W.response,"service_worker_killswitch"))_.oJ("SERVICE_WORKER_KILLSWITCH",w),bf2();A(W.response)};
R=spf.request(M,k)})).then(zBZ);
X.thenCatch(function(A){var l=A instanceof _.JX,k=A&&A.hasOwnProperty("params")&&A.params.response?A.params.response:"";A instanceof Error&&(k?l?zpL(A):k===')]}\'\n{"reload":"now"}'?zpL(A):(bjZ(A,M,k),eBZ(A,k)?_.vh(A):_.qZ(A)):zpL(A));R&&R.abort()});
return X};
zBZ=function(M){if(M.type==="multipart"){var d=M.timing;M=M.parts.reduce(function(N,R){Object.assign(N,R);return N},{});
M.timing=M.timing||{};Object.assign(M.timing,d);M.type="reduced"}return M};
Jc6=function(M,d){d=d===void 0?{}:d;var N=null,R=new _.Xy(function(X,A){d.onFinish=function(l){if(l.readyState===XMLHttpRequest.DONE)if(l.status===200){if(l.responseType!=="json"){var k=l.response;k.substring(0,5)===")]}'\n"&&(k=k.substring(5));try{var T=JSON.parse(k)}catch(W){T=W}}else T=l.response;T instanceof Error?A(T):(k=SmZ(T,"xsrf_token"),aJ(window.location.href,M)&&k&&_.oJ("XSRF_TOKEN",k),l=l.responseURL,window.performance&&window.performance.getEntriesByName?(k=window.performance.getEntriesByName(l).pop())?
l={responseStart:(0,_.Gs)()-(k.responseEnd-k.responseStart)}:(Math.random()<.01&&(k=Error("ci"),k.params=l,_.vh(k)),l={responseStart:-1}):l={responseStart:0},T.timing=T.timing||{},Object.assign(T.timing,l),X(T))}else A(Error("bi`"+l.status))};
(N=_.Am(M,d))||A(Error("bi`"+N.status))});
R.thenCatch(function(X){X instanceof Error&&(bjZ(X,M),eBZ(X)&&(X.level="WARNING"))});
_.Q("cancel_pending_navs")&&R.thenCatch(function(){N.abort()});
return R};
SmZ=function(M,d){var N=M[d],R=M.parts;M.type==="multipart"&&R&&(N=(M=R.find(function(X){return d in X}))&&M[d]);
return N};
bjZ=function(M,d,N){var R=M.message||"";d={original:R,url:d};if(N)if(R=R.match(/position:?\s*(\d+)/)){R=R&&Number(R[1])?Number(R[1]):0;var X=Math.max(R-25,0);d.position=R;d.response=N.substring(X,R+25)}else d.response=N.substring(0,50);_.OD(M,d);try{M.message="JSON parse error"}catch(A){}};
eBZ=function(M,d){M=M.message||"";M=!!(M.indexOf("<")>=0||M.indexOf("end of ")>=0||M.indexOf("Unterminated string")>=0||M.indexOf("Unexpected EOF"));if(!M&&d)for(var N=d.length,R=!1,X=0;X<N;X++)if(R&&d[X]==="\\")X++;else if(d[X]==='"')R=!R;else if(d[X]==="<"&&!R){M=!0;break}return M};
HjL=function(){return document.documentElement.hasAttribute("dark")};
_.nxp=function(M,d){if(M!=="GFEEDBACK"&&M!=="GUIDED_HELP")_.yD(Error("di`"+M));else{var N=_.h().resolve(_.CF(_.em));if(N&&(N=N.getCurrentPage())&&N.getServiceTrackingParams&&(N=N.getServiceTrackingParams()))for(var R=0,X;X=N[R++];)if(X.service===M){if(M=X.params)for(N=0;R=M[N++];)d[R.key]=R.value;break}}};
_.ijN=function(M){var d=_.nO();d&&(d=d.getPlayer())&&(d.pauseVideo(),M.playback_id=d.getVideoData().cpn,M.eid=d.getVideoData().eventId,Object.assign(M,d.getFeedbackProductData()))};
fzN=function(){var M={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.rK("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(M.enableAnonymousFeedback=!0);_.rK("SESSION_INDEX")&&(M.authuser=String(_.rK("SESSION_INDEX")));_.Q("enable_pageid_for_feedback")&&_.rK("DELEGATED_SESSION_ID")&&(M.pageId=String(_.rK("DELEGATED_SESSION_ID")));return M};
_.LQ=function(M){_.Q("enable_ypc_spinners")&&_.ZI(M,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},M])};
_.t9=function(M){_.Q("enable_ypc_spinners")&&_.ZI(M,"yt-close-popup-action",["yt-loading-renderer"])};
La2=function(M){return new Promise(function(d,N){_.Qu({verifyCommand:{recaptchaToken:M.recaptchaResponse}},{commandController:{onSuccess:function(R,X){X||N("ChallengeService did not return a response.");var A;d({challengeCompleted:(A=X.verified)!=null?A:!1})},
onServerError:function(R,X){N(X)}}})})};
tgi=function(M,d,N,R){d({recaptchaResponse:R}).then(function(X){X.challengeCompleted?_.Ts()?(N(3),_.h().resolve(_.xV).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:M}})):N(2):N(4)},function(){N(4)})};
G8i=function(M,d,N){_.rB("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.rK("HL"),function(){var R;(R=window.grecaptcha)==null||R.ready(function(){var X=window.grecaptcha;X?(N(X.render(M,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:tgi.bind(null,M,La2,d)})),d(1)):d(4)})})};
azN=function(M,d){return function(){switch(d()){case 0:return M().captchaLoadingMessage;case 1:return M().challengeReason;case 3:return M().captchaSuccessfulMessage;case 2:return M().captchaCookieSetFailureMessage;case 4:return M().captchaFailedMessage;default:return M().challengeReason}}()};
_.Gf=function(){if(!U42){var M=document.querySelector("#player.skeleton");M&&(_.l_(M),U42=!0)}};
_.Chv=function(){return uhi=efL()};
Zji=function(){return _.B(function(M){return x4q!==void 0?M.return():_.D(M,YmN(),0)})};
YmN=function(){return _.B(function(M){if(M.nextAddress==1)return _.D(M,nH2(),2);uhi=M.yieldResult;x4q=_.IQ.addLowPriorityJob(YmN,5E3);_.Vy(M)})};
XML=function(M){var d=d===void 0?ExL:d;var N,R,X=(N=M.responseContext)==null?void 0:(R=N.mainAppWebResponseContext)==null?void 0:R.trackingParam;if(!X){d.increment("MISSING");var A,l,k,T,W,w;_.vh(new _.WJ("282054944_a",{ySk:!!((A=M.responseContext)==null?0:(l=A.mainAppWebResponseContext)==null?0:l.loggedOut),mnk:((k=M.responseContext)==null?void 0:k.mainAppWebResponseContext)===void 0,zaQ:M.responseContext===void 0,rPk:(T=M.playabilityStatus)==null?void 0:T.contextParams,hd2:(((W=M.streamingData)==
null?void 0:W.formats)||[]).length>0,yR2:(((w=M.streamingData)==null?void 0:w.adaptiveFormats)||[]).length>0,os:!!M.offlineState,cotn:M.cotn}));return 2}N="";try{N=Mni(X)}catch(I){return d.increment("C_ERROR"),_.qZ(I),2}try{var p=_.d72(N);var m=NgS(p)}catch(I){return d.increment("P_ERROR"),_.qZ(I),2}m=_.Uq(m,RYS,1,_.uC());X=[];m=_.V(m);for(p=m.next();!p.done;p=m.next())R=p.value,p=R.getPath(),N=(0,_.wF.getValueByKeys)(M,p.split(".")),N=String(N===void 0||N===null?"":N),R=R.getValue()||"",A=/[+\-\/_]/g,
N.replace(A,"")!==R.replace(A,"")&&(d.increment("MISMATCH"),_.Q("ab_mis_log_err")&&(N=new _.WJ("282054944_p",{gbX:p,g:String(N),e:String(R)}),_.qZ(N)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(p)||(p.match(/enforcementMessageViewModel/i)?X.push(3):X.push(2)));if(X.length>0)return Math.max.apply(Math,_.wu(X));d.increment("SUCCESS");return 1};
Vnp=function(M){var d=new af;if(M.interpreterJavascript){var N=_.OhZ(M.interpreterJavascript);N=J_(N).toString();var R=new FCp;_.VZ(R,6,N);_.ZG(d,1,R,eJ)}else M.interpreterUrl&&(N=_.vf(M.interpreterUrl),N=_.XC(N).toString(),R=new _.AgN,_.VZ(R,4,N),_.ZG(d,2,R,eJ));M.interpreterHash&&_.U$(d,3,M.interpreterHash,eJ);M.program&&_.U$(d,4,M.program,eJ);M.globalName&&_.U$(d,5,M.globalName,eJ);M.clientExperimentsStateBlob&&_.U$(d,7,M.clientExperimentsStateBlob,eJ);return d};
uB=function(M){var d={};M=_.V(M.split("&"));for(var N=M.next();!N.done;N=M.next())N=N.value.split("="),N.length===2&&(d[N[0]]=N[1]);return d};
laA=function(M){return Number(M.t)||7200};
r8Z=function(){if(_.Q("bg_st_hr"))return"havuokmhhs-0";var M,d=((M=performance)==null?void 0:M.timeOrigin)||0;return"havuokmhhs-"+Math.floor(d)};
$7p=function(){return new Promise(function(M){var d=window.top;d.ntpevasrs!==void 0?M(new Zb(d.ntpevasrs)):(d.ntpqfbel===void 0&&(d.ntpqfbel=[]),d.ntpqfbel.push(function(N){M(new Zb(N))}))})};
BgZ=function(M){var d=M.iKK.bind(M);_.fE("yt.aba.att",d);M=M.q7n.bind(M);_.fE("yt.aba.att2",M)};
TgL=function(M){switch(_.FO(M.input)){case _.fh(kzL):var d={};return d.encryptedVideoId=M.innerTubeRequest.externalVideoId,d}return{}};
gbr=function(M){switch(_.FO(M.input)){case _.fh(kzL):if(_.Q("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.fh(E$):if(_.Q("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&M.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.fh(D7p):var d,N;if(_.Q("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((N=_.q((d=M.config)==null?void 0:d.command,
uvZ))==null?0:N.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.wMA=function(M){var d;if(M.playlistVideoRenderer&&((d=M.playlistVideoRenderer)==null?0:d.engagementBar))return WCv(M.playlistVideoRenderer.engagementBar);if(_.q(M,Mb)){var N;if(M=(N=_.q(M,Mb))==null?void 0:N.engagementBar)return WCv(M)}return""};
WCv=function(M){if(!M)return"";M=_.q(M,_.pM2);if(M==null||!M.actions)return"";M=_.V(M.actions);for(M=M.next();!M.done;M=M.next()){M=_.q(M.value,_.m7N);var d=void 0;if((d=M)==null||!d.itemId)break;return M.itemId}return""};
_.hYj=function(M){var d;if(M.playlistVideoRenderer&&((d=M.playlistVideoRenderer)==null?0:d.videoId))return M.playlistVideoRenderer.videoId;if(_.q(M,Mb)){var N,R;if(M=(N=_.q(M,Mb))==null?void 0:(R=N.playlistItemData)==null?void 0:R.videoId)return M}return""};
_.Q$i=function(M){var d;if(M.playlistVideoRenderer&&((d=M.playlistVideoRenderer)==null?0:d.voteCount))return M.playlistVideoRenderer.voteCount;if(_.q(M,Mb)){var N,R;if(M=(N=_.q(M,Mb))==null?void 0:(R=N.playlistItemData)==null?void 0:R.voteCount)return M}return 0};
_.dz=function(M,d){return _.Rz(M.entities,"flowStateEntity",d)};
Iai=function(M,d,N,R){var X=void 0;M=_.V(M[d.iconName]||[]);for(var A=M.next();!A.done;A=M.next()){A=A.value;var l=d.iconSize;var k=d.iconStyle;l=!l||l===A[2];var T=qhA[A[0]];R&&R!==A[1]||!l||k&&k!==T?k=!1:X?(k=qhA[A[0]],k=!!d.iconStyle||k==="youtube_outline",l=X.version<=A[1],k=(!!d.iconSize||A[2]===24)&&k&&l):k=!0;k&&(X={name:d.iconName,style:qhA[A[0]],size:A[2],version:A[1],allowMirroring:!!A[3],url:N(d.iconName,A)})}return X};
vbL=function(M,d,N,R){return M+(""+qhA[N[0]]+((R===void 0?0:R)?"_experimental":"")+"/"+d+"/v"+N[1]+"/")+(N[2]+"px.svg")};
Nb=function(M){return _.Q("web_bookmark_playlist_save_icon")?"bookmark":M};
Oc6=function(M,d){return vbL("https://fonts.gstatic.com/s/i/",M,d)};
j$2=function(M,d){return vbL("https://fonts.gstatic.com/s/i/",M,d,!0)};
s$i=function(M,d){return vbL("https://www.gstatic.com/youtube/img/icons/web/",M,d)};
PT2=function(M){var d=M.enabled;var N=M.itemPlaybackModel;var R=M.thumbnailElRef;var X=M.containerElRef;var A=M.options;var l;_.Wg(function(){var k=X==null?void 0:X.value;var T,W=(T=R())==null?void 0:T.value;T=N();var w=A();if(d&&T&&k&&W&&(w==null?0:w.thumbnail)){var p,m;k={mediaRenderer:{data:T,hostElement:k},lockupElement:k,thumbnailElement:W,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.ht((p=T.inlinePlayerData)==null?void 0:p.onVisible),navigationEndpoint:_.ht((m=T.inlinePlayerData)==
null?void 0:m.onSelect),thumbnail:w.thumbnail,thumbnailOverlays:w.thumbnailOverlays||[],accessibilityText:w.accessibilityText||""},thumbnailSize:w.thumbnailSize,enableRounding:w.enableRounding}}}else k=void 0;if(p=k){var I;(I=l)==null||Mo(I);l=LX(p)}});
_.mF(function(){var k;(k=l)==null||Mo(k)})};
ob2=function(M){M=atob(M);for(var d=[],N=0;N<M.length;N++)d.push(M.charCodeAt(N));return new Blob([new Uint8Array(d)],{type:"image/png"})};
KCv=function(M,d,N,R){R=R===void 0?"INSERTION_POSITION_UNSPECIFIED":R;return M({targetId:d},function(X){var A,l=(A=X.contents)!=null?A:[];A=N!=null?N:[];var k=rgr(l);switch(R){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},X,{contents:[].concat(_.wu(l.slice(0,k)),_.wu(A),_.wu(l.slice(k+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},X,{contents:[].concat(_.wu(A),_.wu(l))});case "INSERTION_POSITION_LAST":return Object.assign({},X,{contents:[].concat(_.wu(l),_.wu(A))});
default:return X}})};
JgS=function(M,d,N,R,X){X=X===void 0?"RELATIVE_INSERTION_POSITION_AFTER":X;return M({targetId:d},function(A){var l,k=(l=A.contents)!=null?l:[];l=ygS(k,N);if(l<0)return A;l=X==="RELATIVE_INSERTION_POSITION_BEFORE"?l:l+1;return Object.assign({},A,{contents:[].concat(_.wu(k.slice(0,l)),_.wu(R),_.wu(k.slice(l)))})})};
rgr=function(M){var d=M.findIndex(function(N){return _.q(N,_.R1)});
return d>=0?d:M.length};
ygS=function(M,d){return M.map(function(N){return _.q(N,_.cgi)}).findIndex(function(N){return(N==null?void 0:N.targetId)===d})};
zYL=function(M,d,N){return M({targetId:d},function(R){var X,A=(X=R.contents)!=null?X:[];return Object.assign({},R,{contents:Shr(A,N)})})};
Shr=function(M,d){return M.filter(function(N){var R=d.includes;a:{N=_.V(Object.values(N));for(var X=N.next();!X.done;X=N.next())if((X=X.value)&&X.targetId){N=X.targetId;break a}N=""}return!R.call(d,N||"")})};
_.XU=function(M,d){return{engagementPanelSectionListRenderer:{panelIdentifier:M,identifier:d,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
bcA=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
eYp=function(M){var d=bcA(M);if(d==null?0:d.length)return d;M.loadModule("captions");return bcA(M)};
HcZ=function(M,d,N){if(M.getVideoData){var R,X=(R=eYp(M))==null?void 0:R.find(function(A){return A.languageCode===N});
R=_.Nr("/youtube/app/player_caption_language_entity_key","stringEntity",2);d.dispatch(_.la("stringEntity",R,{key:R,value:(X==null?void 0:X.displayName)||""}));X?M.setOption("captions","track",X):(M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{}))}};
nb2=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
icZ=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
faL=function(M){var d=icZ(M);if(d==null?0:d.length)return d;M.loadModule("captions");return icZ(M)};
LCS=function(M){var d=M.getOption("captions","track");if(d)return d;M.loadModule("captions");return M.getOption("captions","track")};
tnZ=function(M){var d=faL(M);if(d!=null&&d.length){var N=LCS(M);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.le("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(N==null?0:N.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.wu(d.map(function(R){return{listItemViewModel:{title:{content:R.displayName},
isSelected:R.languageCode===(N==null?void 0:N.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:R.languageCode}}]}}}}}}}})))}}}}}}}}};
uFi=function(M){return new Promise(function(d,N){if(M===void 0)_.qZ(Error("Ei"),"ERROR"),N(Error("Ei"));else{N=new _.Gzi;var R=_.aa2();N=N.init();var X=_.U7A(_.rK("YPC_MB_URL"),!0);Promise.all([N,X]).then(function(){var A=payments.business.integration.ClientTokenFactory.createClientToken(M,R);d(A)})}})};
Yhp=function(M,d,N,R,X,A,l){var k=_.KO();N=N.replace(/-/g,"+").replace(/_/g,"/");var T=_.kS().get("hl"),W=_.FU(_.yp),w=d==null?void 0:d.element;w&&_.LQ(w);CTS(d,!0);_.x7Z(W,N,k.resolve,function(){w&&_.t9(w)},function(p){w&&_.t9(w);
k.reject(p)},T,R?function(p){R&&_.rT(M,R,{backend_analytics:p})}:void 0,k.resolve,X,A,l);
return k.promise};
CTS=function(M,d){!(M=M==null?void 0:M.element)||M.tagName!=="YT-BUTTON-RENDERER"&&M.tagName!=="YTD-BUTTON-RENDERER"||(M.disabled=d)};
ZcZ=function(){var M=_.le("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.ue(M),actionButton:{buttonRenderer:Y2A()}}},popupType:"TOAST"}};
Ebi=function(){var M=_.le("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.ue(M),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
M_S=function(M){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:M}]}}};
Au=function(M,d,N,R){var X;return _.B(function(A){if(A.nextAddress==1)return _.Mv(A,2),_.D(A,M,4);if(A.nextAddress!=2)return(X=_.g_(d.getState().entities).length>0)?A.return({title:_.ue(_.le("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.ue(_.le("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:xzZ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
A.return(Zvi(N,R));_.Fg(A);return A.return(Zvi(N,R))})};
d3q=function(M,d){return d?d==="PPSV"||uz2(M,d):!1};
N8j=function(M){M.responseContext||(M.responseContext={});M.responseContext.maxAgeSeconds=0;return M};
l5=function(M){var d;return _.B(function(N){return N.nextAddress==1?_.D(N,RDq(M,"service:topbar:fallback"),2):(d=N.yieldResult)&&_.Vr(d)?N.return(N8j(_.Vr(d))):N.return()})};
Xbi=function(M){var d;return _.B(function(N){return N.nextAddress==1?_.D(N,RDq(M,"service:downloads_settings:fallback"),2):(d=N.yieldResult)&&_.Vr(d)?N.return(d):N.return()})};
RDq=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return M?_.D(R,M.get(d),2):R.return();N=R.yieldResult;return!N||!_.Vr(N)||!isNaN(Number(N.data.expireTimestampMs))&&N.isExpired()?R.return():R.return(N)})};
FrZ=function(M){var d=_.h().resolve($_).getState().entities;return M.playlistId?d3q(d,M.playlistId):!1};
AB6=function(M,d){var N;if(d==null?0:(N=d.requestTemplate)==null?0:N.panelId)M.panelId=d.requestTemplate.panelId;var R;if(d==null?0:(R=d.requestTemplate)==null?0:R.params)M.params=d.requestTemplate.params};
lTq=function(){if(V_i)return V_i();var M=!_.Q("idb_response_store_auth_killswitch"),d={};V_i=tm("yt-it-response-store",{objectStores:(d.ResponseStore={addedAtVersion:1},d),shared:!M,upgrade:function(N,R){R(1)&&(N=rc(N,"ResponseStore",{keyPath:["key","clientName"]}),KA(N,"byExpiration","expireTimestampMs"),KA(N,"byInterface","clientName"))},
version:1});return V_i()};
$32=function(M){return _.zs(lTq(),M)};
kIZ=function(M,d){var N;return _.B(function(R){return R.nextAddress==1?_.D(R,_.LE(),2):(N=R.yieldResult)?R.return(new B8p(M,d,N)):R.return()})};
T8i=function(M){var d=Object.keys(M)[0];if(d)return M.screenExit&&(d=d+";"+M.screenExit.screen),d};
D3v=function(M){var d=new Map;M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,N!=null&&(d.has(N.taskType)||d.set(N.taskType,[]),d.get(N.taskType).push(N));return d};
gR6=function(M){return!isNaN(M)&&M>0};
Wri=function(M){M=[].concat(_.wu(M)).sort(function(N,R){return N-R});
var d=Math.floor(M.length/2);return M.length%2?M[d]:(M[d-1]+M[d])/2};
m3S=function(M,d){_.fE("yt.logging.errors.log",_.qZ);mxq();wbA(jAA(),d);window.onerror=M;pbZ=hpA;window.addEventListener("unhandledrejection",function(N){if(N.reason instanceof Error){var R=N.reason;_.OD(R,{source:"unhandledrejection"});R.name==="AbortError"&&(R.level="WARNING")}hpA(N.reason);N.preventDefault()})};
_.hDv=function(M){return M.a11y.ephemeralAction||null};
_.QK2=function(M){var d,N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i,vj,Pj,sS,tL,b2,Hj,LZ,w3,XY,jJ,Ne,Vz,oI,$d,CJ,xd,Vq;return _.B(function(uL){if(uL.nextAddress==1)return _.D(uL,_.$$(M,{mode:"readonly",enableRetries:!0},function(fg){return BD(fg,"playbackData").then(function(M9){var OV=M9.map(function(fZ){return fZ.transfer}).filter(function(fZ){return!!fZ}),UV=M9.map(function(fZ){return fZ.offlineVideoPolicy}).filter(function(fZ){return!!fZ}),q$=M9.filter(function(fZ){return!!fZ.key}).map(function(fZ){return _.Nr(_.EN(fZ.key).entityId,
"downloadStatusEntity")});
OV=BD(fg,"transfer",OV);UV=BD(fg,"offlineVideoPolicy",UV);q$=BD(fg,"downloadStatusEntity",q$);var BV=OV.then(function(fZ){fZ=fZ.reduce(function(WV,V9){(V9==null?0:V9.offlineVideoStreams)&&WV.push.apply(WV,_.wu(V9.offlineVideoStreams));return WV},[]).filter(function(WV){return!!WV});
return BD(fg,"offlineVideoStreams",fZ)});
return r2.all([OV,UV,BV,q$]).then(function(fZ){var WV=_.V(fZ);fZ=WV.next().value;var V9=WV.next().value;var Qz=WV.next().value;WV=WV.next().value;return[M9,fZ,V9,Qz,WV]})})}),2);
if(uL.nextAddress!=3)return d=uL.yieldResult,_.D(uL,_.$$(M,{mode:"readonly",enableRetries:!0},function(fg){return BD(fg,"mainDownloadsListEntity").then(function(M9){var OV,UV;return(UV=(OV=M9[0])==null?void 0:OV.downloads)!=null?UV:[]})}),3);
N=uL.yieldResult;R=_.V(d);X=R.next().value;A=R.next().value;l=R.next().value;k=R.next().value;T=R.next().value;W=X;w=A;p=l;m=k;I=T;O={};y={};c={};e={};t={};C=[];U=_.V(w);for(Fi=U.next();!Fi.done;Fi=U.next())(Y=Fi.value)&&(O[Y.key]=Y);$i=_.V(p);for(vj=$i.next();!vj.done;vj=$i.next())(Pj=vj.value)&&(y[Pj.key]=Pj);sS=_.V(I);for(tL=sS.next();!tL.done;tL=sS.next())(b2=tL.value)&&(c[b2.key]=b2);Hj=_.V(m);for(LZ=Hj.next();!LZ.done;LZ=Hj.next())(w3=LZ.value)&&(e[w3.key]=w3);XY=_.V(N);for(jJ=XY.next();!jJ.done;jJ=
XY.next())Ne=jJ.value,Vz=void 0,t[(Vz=Ne.videoItem)!=null?Vz:""]=!0,Ne.videoItem&&($d=oI=void 0,CJ=($d=(oI=_.EN(Ne.videoItem))==null?void 0:oI.entityId)!=null?$d:"",C.push({externalVideoId:CJ}));xd=W.filter(function(fg){if(!fg||!fg.key||!fg.offlineVideoPolicy)return!1;fg=_.EN(fg.key).entityId;fg=_.Nr(fg,"downloadStatusEntity");var M9;return!(fg&&((M9=c[fg])==null?void 0:M9.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Vq=xd.map(function(fg){var M9=O[fg.transfer],OV=[];if(M9==null?0:M9.offlineVideoStreams)for(var UV=_.V(M9.offlineVideoStreams),q$=UV.next();!q$.done;q$=UV.next())(q$=e[q$.value])&&OV.push(q$);UV=y[fg.offlineVideoPolicy];q$=t;var BV=fg==null?void 0:fg.playerResponseTimestamp,fZ=_.EN(UV.key).entityId;fg=_.Nr(fZ,"mainVideoEntity");if(UV.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var WV="OFFLINE_VIDEO_STATE_DISABLED";UV.expirationTimestamp&&Number(UV.expirationTimestamp)<Date.now()/1E3&&(WV="OFFLINE_VIDEO_STATE_EXPIRED")}else if(UV.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")WV="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(M9==null?void 0:M9.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":WV="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":WV="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":WV="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":WV="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":WV="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":WV="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:WV="OFFLINE_VIDEO_STATE_UNKNOWN"}if(WV==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(M9==null?void 0:M9.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":WV="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":WV="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":WV=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}fZ={id:fZ,videoState:WV};if(M9==null?0:M9.cotn)fZ.cotn=M9.cotn;if(M9==null?0:M9.maximumDownloadQuality)fZ.selectedVideoQuality=M9==null?void 0:M9.maximumDownloadQuality;if(M9==null?0:M9.lastProgressTimeMs)fZ.lastProgressTimeMs=M9.lastProgressTimeMs;BV&&(fZ.playerResponseSavedTimeMs=String(Number(BV)*1E3));M9=String;BV=0;OV=_.V(OV);for(WV=OV.next();!WV.done;WV=OV.next())if(WV=WV.value,WV.streamsProgress){WV=_.V(WV.streamsProgress);for(var V9=WV.next();!V9.done;V9=
WV.next()){var Qz=void 0;BV+=Number((Qz=V9.value.numBytesDownloaded)!=null?Qz:0)}}fZ.downloadedBytes=M9(BV);fZ.selectedOfflineMode=q$[fg]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";UV.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(fZ.offlinePlaybackDisabledReason=UV.offlinePlaybackDisabledReason);return fZ});
return uL.return({offlineVideos:Vq,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:C}}})})};
qrS=function(){var M;return _.B(function(d){return d.nextAddress==1?_.D(d,_.AT(),2):(M=d.yieldResult)?d.return(_.QK2(M)):d.return({state:"PES Unavailable"})})};
OwZ=function(){var M,d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,_.AT(),2);if(X.nextAddress!=3)return(M=X.yieldResult)?_.D(X,ITZ(M),3):X.return({state:"PES Unavailable"});d=X.yieldResult;N={};R=d.reduce(function(A,l){A[l.key]=l;return A},N);
return X.return(vRS(R))})};
vRS=function(M){for(var d={},N=[],R=_.V(Object.keys(M)),X=R.next();!X.done;X=R.next()){var A=X.value;X=M[A];var l=void 0;if(((l=X)==null?void 0:l.entityType)==="mainVideoEntity"){delete M[A];var k=X.data;X={};if(k){var T=void 0;l=(T=k.videoId)!=null?T:"vid-"+A;A=M;X.video=k;delete X.video.formattedDescription;delete X.video.thumbnail;k.owner&&(T=A[k.owner],T==null?0:T.data)&&(delete A[T.key],X.video.owner=T.data,delete X.video.owner.avatar);if(k=k.downloadState)if(T=A[k],T==null?0:T.data)if(delete A[k],
k=T.data.playbackData)if(T=A[k],T!=null&&T.data){delete A[k];k=T.data;delete k.playerResponseJson;X.playbackData=k;if(k.transfer&&(T=A[k.transfer],T==null?0:T.data)){delete A[T.key];var W=T.data;X.transfer=W;T=[];W=_.V(W.offlineVideoStreams||[]);for(var w=W.next();!w.done;w=W.next())if(w=A[w.value])delete A[w.key],T.push(w.data);T&&(X.streams=T)}(k=k.offlineVideoPolicy)&&(k=A[k])&&k.data&&(delete A[k.key],X.offlineVideoPolicy=k.data)}d[l]=X}}else X&&X.entityType==="offlineOrchestrationActionWrapperEntity"&&
X.data&&(delete M[X.key],l=X.data,A=void 0,N.push({id:l.rootActionId,type:((A=l.actionProto)==null?void 0:A.actionType)||"",entity:X}))}d.wrapperEntities=N;Object.keys(M).length>0&&(d.unknownKeys=M);return d};
jKv=function(){var M,d,N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1)return M=!!(new _.Pf("")).expiringStorage_,R=!!((d=_.Np.crypto)==null?0:(N=d.subtle)==null?0:N.importKey),X=!!_.Np.BroadcastChannel,A=!!_.Np.navigator.locks,_.D(W,ufZ(),2);l=W.yieldResult;k=M&&R&&X&&A&&l;T={isSupported:k};if(k)return W.return(T);T.missingBrowserFeatures=[];l||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");M||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
R||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");X||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");A||T.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return W.return(T)})};
sKL=function(){var M;return!((M=Ba?Ba:null)==null||!M.window)};
_.oRZ=function(M){if(oN()&&_.BZi("Chromium")>=120){var d=_.P3v().mediaSession;try{d.setActionHandler("enterpictureinpicture",function(){M()})}catch(N){}}};
_.k_=function(){return!!window.documentPictureInPicture&&oN()};
rBZ=function(M){for(var d=[],N=_.V(document.styleSheets),R=N.next(),X={};!R.done;X={node$jscomp$724:void 0},R=N.next())X.node$jscomp$724=R.value.ownerNode,X.node$jscomp$724&&(X.node$jscomp$724 instanceof HTMLStyleElement||X.node$jscomp$724 instanceof HTMLLinkElement)&&d.push(new Promise(function(A){return function(l){var k=A.node$jscomp$724.cloneNode(!0);k.onload=function(){l()};
k.onerror=function(){_.vh(Error("gj"));l()};
M.document.head.appendChild(k)}}(X)));
return Promise.all(d)};
nRZ=function(M){var d=[_.a2(Kr6),_.a2(yBq),_.a2(JBZ)];cBp(window.document.documentElement,M.document.documentElement,[_.a2(SrA),_.a2(zDj),_.a2(bwN),_.a2(eD6),_.a2(Hw6)]);cBp(window.document.body,M.document.body,d)};
cBp=function(M,d,N){M=_.V(M.attributes);for(var R=M.next();!R.done;R=M.next())if(R=R.value)try{_.by(N,d,R.name,R.value)}catch(X){}};
fTZ=function(M,d){M=new _.TM(M.document.documentElement);M.start(iwA,d);return M};
Lrv=function(M){var d=M.document.documentElement;d.addEventListener("click",function(N){Fwr(d,N)});
d.addEventListener("touchstart",function(N){BMj(N)});
d.addEventListener("mousedown",function(N){BMj(N)})};
GIN=function(M,d,N,R){R=R===void 0?!1:R;d=new t_i(d||M,N||M);return{x:M.x+((R===void 0?0:R)?d.lengthX*-1:d.lengthX)*.2,y:M.y+((R===void 0?0:R)?d.lengthY*-1:d.lengthY)*.2}};
aTi=function(M){if(!M)return!1;var d=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",N,R,X,A=(X=(N=M.errorScreen)==null?void 0:N.playerLegacyDesktopYpcTrailerRenderer)!=null?X:(R=M.errorScreen)==null?void 0:R.ypcTrailerRenderer;return!!d||!!A};
_.U3Z=function(M,d){if(!M)return!1;var N,R=(N=M.errorScreen)==null?void 0:N.playerLegacyDesktopYpcOfferRenderer,X;d=!!(d==null?0:(X=d.playerOverlayRenderer)==null?0:X.gatedActionsOverlayRenderer);return!!aTi(M)||!!R||!!d};
u_Z=function(M){return M.includes("gclid")||M.includes("gad_source")};
YrZ=function(M){var d=[],N=0;return{push:function(R){d[N]=R;N=(N+1)%M},
iterate:function(){return function X(){var A,l,k,T;return _.C3Z(X,function(W){switch(W.nextAddress){case 1:_.Nv(W,2),A=d.length,l=0;case 4:if(!(l<A)){W.jumpTo(2);break}k=N+l;T=_.x36;return _.D(W,d[k%A],7);case 7:T(W.yieldResult);l++;W.jumpTo(4);break;case 2:_.du(W),_.Xg(W,0)}})}()}}};
ERA=function(){var M=_.ZR("web_max_tracing_events",0);_.Q("web_enable_tracing")&&M>0&&Zw6(M)};
Zw6=function(M){var d=YrZ(M);xLZ({sample:function(N,R){return N==="event"?!MNp.has(R==null?void 0:R.type):!1},
spanProcessors:[{onSpanStart:function(N){d.push(N)}}]});
KXj.subscribe("handleError",function(N){Object.assign(N.params,{breadcrumbs:JSON.stringify(Array.from(d.iterate()))})})};
dgS=function(M){return new Promise(function(d){window.setTimeout(d,M)})};
Na6=function(M){var d={bicf:function(A){M.fX2=A},
blc:function(){return M.getLatestChallengeResponse()},
bcr:function(A){M.kpd.push(A)}},N=window.top;
N.ntpevasrs=d;if(N.ntpqfbel!==void 0)for(var R=_.V(N.ntpqfbel),X=R.next();!X.done;X=R.next())X=X.value,X(d);N.ntpqfbel=void 0};
R8N=function(M){return _.B(function(d){if(d.nextAddress==1)return _.Mv(d,2),_.D(d,M.rpD(),4);if(d.nextAddress!=2)return _.cJ(d,0);_.Fg(d);_.Vy(d)})};
Xwr=function(M){var d,N;(d=M.ytcsi)==null||(N=d.tick)==null||N.call(d,"pot_ist")};
F5L=function(M){if(M instanceof Error){var d=_.cy("yt.logging.errors.log");d&&d(M,"WARNING")}};
AFj=function(M){try{var d=JSON.parse(M);if(d.bgChallenge)return d}catch(N){}};
lwj=function(){var M=window,d={networkStatusManagerPromise:_.h().resolve(new KyZ(_.S6)),initialChallengeSli:_.Q("wpo_att_sli")?new _.n9S("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};M=M===void 0?window:M;var N=M.ytAtR,R;d==null||(R=d.initialChallengeSli)==null||_.D7(R);if(N){if(N=AFj(N)){var X;d==null||(X=d.initialChallengeSli)==null||_.gz(X,"SUCCESS");VNj(N,d)}M.ytAtR=void 0}else M.ytAtRC=function(A){if(A=AFj(A)){var l;d==null||(l=d.initialChallengeSli)==null||_.gz(l,
"SUCCESS");VNj(A,d);M.ytAtRC=void 0}}};
kC2=function(){if($gN)return $gN;try{var M=_.Vf("IFRAME");_.s0(M,_.u6(Bap));M.sandbox.add("allow-same-origin");M.style.display="none";document.body.appendChild(M);return $gN=M}catch(d){M=new _.WJ("Failed to create sandbox iframe"),_.qZ(M)}};
Ta2=function(M){var d,N;return(N=M==null?void 0:(d=M.contentWindow)==null?void 0:d.fetch)!=null?N:window.fetch};
DgN=function(M){var d,N;return(N=M==null?void 0:(d=M.contentWindow)==null?void 0:d.JSON.parse)!=null?N:JSON.parse};
gzZ=function(M){var d,N;return(N=M==null?void 0:(d=M.contentWindow)==null?void 0:d.Request)!=null?N:window.Request};
pwN=function(){if(Lli()==="hidden")var M="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Lli()==="visible"&&(M="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",W5v=null);M&&wwA(M)};
wwA=function(M){if(M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(mgi===M)return;mgi=M}var d=9E4+Math.random()*2E3;if(M!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.aQ()>d)&&Lli()==="visible"){d=-1;W5v&&(d=Math.round((0,_.Gs)()-W5v));var N=String;var R=_.cy("_fact",window);R=R==null||R==-1?-1:Math.max(Date.now()-R,0);_.hQ("foregroundHeartbeat",{firstActivityMs:N(R),clientDocumentNonce:hc6,index:String(h8Z),lastEventDeltaMs:String(d),trigger:M});
_.fE("_fact",-1,window);h8Z++;W5v=(0,_.Gs)()}};
_.Q3v=function(){try{return!!self.sessionStorage}catch(M){return!1}};
qQq=function(){var M=navigator;return new Promise(function(d,N){var R;(R=M.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?M.webkitTemporaryStorage.queryUsageAndQuota(function(X,A){d({usage:X,quota:A})},function(X){N(X)}):N(Error("oj"))})};
Iw2=function(M,d){var N={errorSeverity:d.errorSeverity.toString(),wizFeatureFlags:Object.entries(d.featureFlags).join("\n")};pzi(d,N);d=d.errorSeverity;d===3?_.qZ(M,"ERROR",void 0,void 0,void 0,N):d===2&&_.qZ(M,"WARNING",void 0,void 0,void 0,N);_.Q("cow_if_errors_in_popup")&&d===3&&M.message.indexOf("<If>")!==-1&&window.alert(M.message)};
vz2=function(M,d,N){M.componentType!==Bg&&N instanceof HTMLElement&&d&&!_.Q("cow_logging_in_component_wrapper")&&VUA(N,d,!0)};
Opp=function(M,d,N){d=d===void 0?{}:d;var R,X=(R=_.q(M.commandMetadata,_.an))==null?void 0:R.url;R=d.form||{};!N||R.element||R.skipDefaultElement||(d.form=d.form||{},d.form.element=N);if(X&&X!=="/service_ajax")return{type:0,command:M,form:d.form};if(_.Q("kevlar_service_command_check")){if(_.oq(_.h().resolve(_.D3),M))return Object.assign({},{type:1,command:M},d)}else{var A;if((A=_.q(M.commandMetadata,_.an))==null?0:A.apiUrl)return Object.assign({},{type:1,command:M},d)}return{type:2,command:M,form:d.form}};
j3Z=function(M){if(M.form){var d=M.form,N=Object.assign({},d);d=d.element;N=(delete N.element,N);if(d)return[_.dU(d,[M.command,N,M.commandController])]}return[]};
s3Z=function(M){if(M.form){var d=M.form,N=Object.assign({},d);d=d.element;N=(delete N.element,N);d&&_.Ni(d,[M.command],d,N)}};
ozZ=function(M,d,N){var R=new P9r(M,d),X=new Wa(M,d,N);M={"/youtubei/v1/browse":new wz(M,d,N),"/youtubei/v1/player":R,"/youtubei/v1/navigation/resolve_url":new pt,"/youtubei/v1/next":X,"/youtubei/v1/guide":new mS(N),"/youtubei/v1/search":new hu(M,d,N),"/youtubei/v1/reel/reel_item_watch":new Qr(M,d,N),"/youtubei/v1/get_watch":new qb(R,X)};M["/youtubei/v1/account/account_menu"]=new I1;M["/youtubei/v1/notification/get_notification_menu"]=new va;return M};
jt=function(){var M=_.h().resolve(Oe);return Promise.resolve(rFZ(M,_.Np.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
K5r=function(M){return M&&(M=_.se(_.oAZ(M)))?(new URLSearchParams(M)).get("service"):null};
rz=function(M,d){_.Lq(_.Pa(),function(){_.v1("adl")});
_.h().resolve(yFj)(d);M=M.root;M.loadData&&M.loadData(d);(d==null?0:d.response)?_.gz(LkN(),"SUCCESS"):_.vh(new _.WJ("Lifecycle: No response in data",_.KF("IS_SHELL_LOAD"),d?d.page:"NO_PAGE",d?d.endpoint:"NO_ENDPOINT"));M.polymerController.$["page-manager"].lazyPrepareCriticalPages((d==null?void 0:d.page)||"",d.endpoint);var N,R;((R=_.q(d==null?void 0:(N=d.endpoint)==null?void 0:N.commandMetadata,_.an))==null?0:R.webPageType)&&_.iY().dispatch(_.o1(_.q(d.endpoint.commandMetadata,_.an).webPageType))};
JFj=function(){var M,d;return _.B(function(N){switch(N.nextAddress){case 1:M=window;if(!M.getDataPromise){N.jumpTo(2);break}_.Mv(N,3);return _.D(N,M.getDataPromise(),5);case 5:return N.return(N.yieldResult);case 3:return _.Fg(N),_.D(N,jt(),6);case 6:return N.return(N.yieldResult);case 2:if(M.getInitialData)return d=M.getInitialData(),M.getInitialData=void 0,N.return(d);throw Error("qj`"+_.Np.location.href);}})};
SQZ=function(){_.oJ("CSI_SERVICE_NAME","youtube");_.qi({loadType:"cold"});_.Q("kevlar_log_lcp")&&cFj(function(M){_.v1("lcp",M.value)})};
z8i=function(){var M=_.oW(document.location.href,"enable");M&&M.indexOf("scraper")>-1&&_.oJ("ADD_SCRAPER_ATTRIBUTES",!0)};
ipZ=function(M){var d=M.root;M=[bpZ,e8S,_.Kt];_.Q("web_feedback_endpoint_autolog_allowlist_killswitch")&&M.push(_.yr,HpL);nz6(function(N,R){return Opp(N,R,d)},function(N){if(!N.command)return[];
var R;((R=N.form)==null?0:R.element)?N.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},N.form,{endpoint:N.command})})):d.handleNavigate(N);return[]},M);
_.h().addProvider({provide:_.xV,useValue:_.YQ.instance})};
L5A=function(){var M={},d={},N;for(N in fwq){var R=_.V(_.d0(fwq[N],void 0,"UAX5pb"));M[N]=R.next().value;d[N]=R.next().value}return[M,function(X){for(var A in X){var l=void 0;(l=d[A])==null||l(X[A])}}]};
_.awA=function(M,d){var N=_.wF.getValueByKeys(M,"contents","twoColumnWatchNextResults","results","results","contents"),R=_.wF.getValueByKeys(M,"contents","twoColumnWatchNextResults","playlist","playlist")||null,X=null,A=null;if(R)X=_.wF.getValueByKeys(R,"titleText"),A=_.wF.unsafeClone(_.wF.getValueByKeys(R,"longBylineText")),N="",A&&(N=_.HD(A)),A=_.ep(N);else if(N){N=_.V(N);for(var l=N.next();!l.done;l=N.next())l=l.value,l.videoPrimaryInfoRenderer&&(X=_.wF.getValueByKeys.apply(_.wF,[l].concat(_.wu(tNq)))),
l.videoSecondaryInfoRenderer&&(A=_.wF.getValueByKeys.apply(_.wF,[l].concat(_.wu(GCi))))}else _.Sx(Error("vj"));var k;M.currentVideoEndpoint?k=M.currentVideoEndpoint:_.Sx(Error("wj"));var T;d&&(T=_.wF.getValueByKeys(d,"playabilityStatus","miniplayer","miniplayerRenderer"));M={miniplayerTitle:X,miniplayerSubtitle:A,watchEndpoint:k,playlistData:R};T&&(M.miniplayerRenderer=T);return M};
Ugi=function(M){if(M)return _.Wz(M)};
_.uJZ=function(){return{isFullscreen:function(){throw Error("xj");},
toggleFullscreen:function(){throw Error("yj");},
exitFullscreen:function(){throw Error("zj");},
isAutonavEnabled:function(){throw Error("Aj");},
setAutonavEnabled:function(){throw Error("Bj");},
isAutoplaySetExplicitly:function(){throw Error("Cj");}}};
C92=function(M){return M.videoDuration?M.numTaps>1&&M.tapDirection!==0?_.Ju(M.draggedTime/M.videoDuration,0,1):_.Ju((M.playedTime||0)/M.videoDuration,0,1):0};
xgj=function(M){return M.videoDuration?M.isDragging||M.numTaps>1&&M.tapDirection!==0?_.Ju(M.draggedTime/M.videoDuration,0,1):_.Ju((M.playedTime||0)/M.videoDuration,0,1):0};
ZpZ=function(M){var d,N,R;return _.q(M==null?void 0:(d=M.markersMap)==null?void 0:(N=d.find(function(X){return X.key==="HEATSEEKER"}))==null?void 0:(R=N.value)==null?void 0:R.heatmap,YQq)};
EzL=function(M){var d,N;return(N=(d=ZpZ(M))==null?void 0:d.heatMarkersDecorations)!=null?N:[]};
Mfp=function(M){if(_.Q("mweb_supported_chapters_killswitch"))return!0;var d;return!!(M==null?0:(d=M.markersMap)==null?0:d.find(function(N){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(N.key)}))};
_.dCN=function(M){var d=Object,N=d.assign,R;M={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(R=M==null?void 0:M.getPlayerState())!=null?R:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return N.call(d,{},{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},M,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
N6S=function(M){return function(d){var N=M(),R,X=(R=N.playerApi)==null?void 0:R.getPlayerState();d&&d!==N.playerState&&(d===1||d===2)&&N.setState({playerState:X})}};
Xtr=function(M){return function(d){var N=M(),R=N.playerApi;R&&(d==null?void 0:d.type)==="newdata"&&(RLZ&&(clearTimeout(RLZ),RLZ=void 0),_.Q("web_shorts_use_progress_state_for_gapless")?(d=R==null?void 0:R.getProgressState(d==null?void 0:d.playertype),d=d.seekableEnd-d.seekableStart):d=R==null?void 0:R.getDuration(d==null?void 0:d.playertype),N.setState({playedTime:0,videoDuration:d}))}};
FVr=function(M){return function(d){var N=M(),R=N.playerApi;if(R){var X=R.getPresentingPlayerType();_.Q("web_shorts_use_progress_state_for_gapless")?(R=R.getProgressState(X),R=R.seekableEnd-R.seekableStart):R=R.getDuration(X);N.setState({playedTime:d,videoDuration:R})}}};
l5r=function(M){var d=M.element;var N=M.veType;var R=M.storedVisualElement===void 0?null:M.storedVisualElement;var X=M.elementIndex===void 0?0:M.elementIndex;M=M.clientYouTubeData;var A=_.Ou();A!==AUi&&(VfL.clear(),AUi=A);if(d.visualElement&&VfL.has(d.visualElement))return null;if(R&&VfL.has(R))return d.visualElement=R,null;N=_.dk(_.Nx(),{veType:N,elementIndex:X,clientYouTubeData:M});if(!N)return null;d.visualElement=N;VfL.add(N);return N};
_.ca=function(M,d,N,R){N=N===void 0?null:N;R=R===void 0?$Ki:R;var X=X===void 0?null:X;kj(function(){if(d){N instanceof Function&&(N=N());var A=l5r({element:d,veType:M,storedVisualElement:N,clientYouTubeData:void 0});A&&(TXZ(d,X),R(A))}})};
B6i=function(M){_.ca(112394,M,function(){return $CL},function(d){$CL=d})};
DCi=function(M,d){if(!M)return[];var N,R,X;M=((N=M.markersMap)==null?void 0:(R=N.find(function(A){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(A.key)}))==null?void 0:(X=R.value)==null?void 0:X.chapters)||[];
!kEL(M)||(d==null?0:d.ignoreStub)||(M=[T6v()].concat(_.wu(M)));return M};
T6v=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
kEL=function(M){if(M.length===0)return!1;var d;return((d=_.q(M[0],St))==null?void 0:d.timeRangeStartMillis)!==0};
zM=function(M){return M?M.timeRangeStartMillis||0:0};
WVZ=function(M,d){if(M.isDragging&&d)return M=gXr(M,d),M===-1?T6v():DCi(d)[M]};
gXr=function(M,d){return M.isDragging&&d?DCi(d,{ignoreStub:!0}).findIndex(function(N,R,X){N=wt6(M);return pti(N,X,R).scrubberHovering}):-1};
wt6=function(M){return Object.assign({},M,{videoDuration:M.videoDuration*1E3,playedTime:M.playedTime*1E3,draggedTime:M.draggedTime*1E3})};
pti=function(M,d,N){var R=zM(_.q(d[N],St));d=zM(_.q(d[N+1],St))||M.videoDuration;N=M.isDragging;var X;if(X=M.isDragging)X=M.draggedTime,X=X!==null&&X>=R&&X<d;var A=M.playedTime;return A!==null&&A>=R&&A<d?{videoPosition:"active",isScrubbing:N,scrubberHovering:X}:M.playedTime<R?{videoPosition:"pending",isScrubbing:N,scrubberHovering:X}:{videoPosition:"seen",isScrubbing:N,scrubberHovering:X}};
mCp=function(M,d){return M.videoPosition==="seen"||(d===void 0?0:d)>0};
hLj=function(M,d,N){d=M/d.storyboardInterval;var R=DCi(N);if(!R.length)return-d*72;N=0;R=_.V(R);for(var X=R.next();!X.done;X=R.next())if(zM(_.q(X.value,St))/1E3<M)N++;else break;return-(d*72)-N*56};
Q7i=function(M){return M?M.width/M.columns:0};
qZZ=function(M){return M.isHovering?M.hoveredTime:M.draggedTime};
I5i=function(M,d){M=M.draggedTime*1E3;return M>=d.visibleTimeRangeStartMillis&&M<=d.visibleTimeRangeEndMillis};
_.vXq=function(M){if(M===void 0||Number.isNaN(M))return"--:--";var d=Math.abs(Math.floor(M)),N=Math.floor(d/86400),R=Math.floor(d%86400/3600),X=Math.floor(d%3600/60);d=Math.floor(d%60);var A="";N>0&&(A+=N+":",R<10&&(A+="0"));if(N>0||R>0)A+=R+":",X<10&&(A+="0");A+=X+":";d<10&&(A+="0");A+=d;return M>=0?A:"-"+A};
O_Z=function(M,d){return function(){var N=qZZ(M());var R=d();var X=M().playerApi;if(X&&X.getNumberOfStoryboardLevels()!==0){var A=X.getStoryboardFrameIndex(N,1);A!==-1?R=X.getStoryboardFrame(A,1):(N=X.getStoryboardFrameIndex(N,0),X=X.getStoryboardFrame(N,0),R&&X&&(X.height*=3,X.width*=3),R=X)}else R=null;if(!R)return null;d()&&(R.width=90*R.columns,R.height=160*R.rows);return R}};
_.b5=function(M){if(!M||M.getVideoData)return M};
j7q=function(){var M;return{playerApi:(M=_.ZM())!=null?M:void 0}};
_.KVq=function(M){function d(Y){Y!==0||p?Y>50&&(p||!I)?(m(!1),O(!0)):Y<=50&&(p||I)&&(m(!1),O(!1)):m(!0)}
function N(){var Y;return _.B(function($i){if($i.nextAddress==1)return _.D($i,_.YF(),2);(Y=$i.yieldResult)&&(Y.isMuted()?m(!0):m(!1));_.Vy($i)})}
var R=M.noSlider;var X=M.orientation;M=_.e5();var A=_.e5(),l=_.Hh(),k=_.V(d5(!1)),T=k.next().value,W=k.next().value,w=_.V(d5(!1));k=w.next().value;w=w.next().value;var p=k,m=w;w=_.V(d5(!0));k=w.next().value;w=w.next().value;var I=k,O=w;k=X==="vertical_down";_.IJ(function(){function Y(){W(!0)}
function $i(){W(!1)}
R?(N(),d(p?0:100)):l&&l.value&&(l.value.addEventListener("focus",Y),l.value.addEventListener("focusout",$i),s7Z(l.value).then(function(){d(Number(PSi(l.value)))}));
A&&A.value&&(A.value.addEventListener("focus",Y),A.value.addEventListener("focusout",$i));return function(){var vj;l==null||(vj=l.value)==null||vj.removeEventListener("focus",Y);var Pj;l==null||(Pj=l.value)==null||Pj.removeEventListener("focusout",$i);A.value.removeEventListener("focus",Y);A.value.removeEventListener("focusout",$i)}});
var y=_.dT(function(){if(l&&l.value){var Y=Number(PSi(l.value));oXi(Y);l.value.style.setProperty("--gradient-percent",Y+"%");d(Y)}return!1});
w={};w=(w.ytdDesktopShortsVolumeControlsHost=!0,w.ytdDesktopShortsVolumeControlsHostVertical=k,w.ytdDesktopShortsVolumeControlsHostExpanded=T,w);var c={},e=(c.ytdDesktopShortsVolumeControlsSliderContainer=!0,c.ytdDesktopShortsVolumeControlsSliderContainerExpanded=T,c.ytdDesktopShortsVolumeControlsSliderContainerVertical=k,c.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=X==="vertical_down",c.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=T&&k,c);X={};var t=(X.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,X.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=R?!1:T,X);T={};T=(T.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=k,T);X=_.dT(function(){W(!0)});
c=_.dT(function(){W(!1)});
var C=_.dT(function(){if(l&&l.value||R)rU2(l.value,p,R),m(!p);return!1}),U=_.Q("web_shorts_keyboard_enable_mute_shortcut")?p?_.le("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.le("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):p?_.le("UNMUTE_VOLUME",void 0,"Unmute"):_.le("MUTE_VOLUME",void 0,"Mute"),Fi={sources:[{clientResource:{imageName:p?"VOLUME_OFF_FILLED":I?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.g("desktop-shorts-volume-controls",{"on:pointerleave":c,class:_.ZH(w),el:M},_.ez(!k,function(){return _.g("div",{class:_.ZH(t)})}),_.g("div",{class:_.ZH(T)},_.g("button",{"aria-label":U,
title:U,el:A,"on:click":C,"on:pointerenter":X,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Fi?_.g(_.Jt,{data:Fi,alt:U,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.ez(!R,function(){return _.g("div",{class:_.ZH(e)},_.g("input",{"aria-label":_.le("VOLUME"),title:_.le("VOLUME"),el:l,"on:input":y,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
s7Z=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.YF(),2);d=R.yieldResult;N=50;d&&(N=d.getVolume(),d.isMuted()?yU6(M,0):yU6(M,N));_.Vy(R)})};
oXi=function(M){var d;_.B(function(N){if(N.nextAddress==1)return _.D(N,_.YF(),2);if(d=N.yieldResult)d.unMute(!0),d.setVolume(M,!0);_.Vy(N)})};
yU6=function(M,d){M&&(M.value=""+d,M.style.setProperty("--gradient-percent",d+"%"))};
PSi=function(M){var d;return(d=M==null?void 0:M.value)!=null?d:0};
rU2=function(M,d,N){var R;_.B(function(X){if(X.nextAddress==1)return _.D(X,_.YF(),2);R=X.yieldResult;d&&R?(R.unMute(!0),!N&&M&&yU6(M,R.getVolume())):R&&(R.mute(!0),!N&&M&&yU6(M,0));_.Vy(X)})};
JUZ=function(){var M;_.B(function(d){if(d.nextAddress==1)return _.D(d,_.YF(),2);M=d.yieldResult;if(!M)return d.return();M.isMuted()?M.unMute(!0):M.mute(!0);_.Vy(d)})};
cU6=function(M){var d=_.h().resolve(_.et).getPlayerElement();d&&M&&(M===1?d.pause():d.play())};
SZS=function(M){_.Eu(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
zLj=function(M){_.Eu(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
eLi=function(M){return _.hA(M.document.body,function(){return _.g(b_N,null)})};
H_r=function(){var M=window.performance.getEntriesByType("navigation");return M?M.map(function(d){return d.type}).includes("reload"):!1};
UCZ=function(){Ha(Ha(Ha(Ha(Ha(Ha(Ha(_.h().resolve(_.nt),_.nXN),_.i_6),_.f52),_.LVi),_.tfp),_.GEi),_.a5Z)};
upi=function(M,d){d=d===void 0?!1:d;var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return d||!_.Q("kevlar_shorts_seedless_retry_initial_load")||(N=window,R=!(!N.getDataPromise&&!N.getInitialData),R)?_.D(l,JFj(),2):(setTimeout(upi.bind(window,M,!0),1E3),l.return());if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,CSq(X),3);A=l.yieldResult;rz(M,A);_.Vy(l)})};
CSq=function(M){var d;if((d=M.response)==null||!d.replacementEndpoint)return _.RD(M);d=_.h().resolve(Oe);M=M.response;_.q(M.replacementEndpoint,_.$B)&&M.sequenceContinuation&&(_.q(M.replacementEndpoint,_.$B).sequenceParams=M.sequenceContinuation);return i5(d,M.replacementEndpoint,{},_.Np.location.href,"shorts",function(){},function(){return!1})};
xC2=function(M){var d=_.iY(),N,R=_.q((N=M.response)==null?void 0:N.frameworkUpdates,JI),X;N=_.q((X=M.playerResponse)==null?void 0:X.frameworkUpdates,JI);var A;M=_.q((A=M.reelWatchSequenceResponse)==null?void 0:A.frameworkUpdates,JI);R&&_.lY(R,d);N&&_.lY(N,d);M&&_.lY(M,d)};
YZv=function(M){var d;_.Q("enable_redirect_linking_for_desktop_web_client")&&((d=window.location.hash)==null?0:d.includes("redirect_state"))&&M.url&&(M.url=M.url.toString()+window.location.hash)};
MaS=function(M){var d=_.h(),N=d.resolve(Oe);d=d.resolve(_.Z_N);M.endpoint&&(N=EXi(N,M.endpoint),N.content&&M.response&&_.ft(d,M.response,N.content),N.player&&M.playerResponse&&_.ft(d,M.playerResponse,N.player),N.reelSequence&&M.reelWatchSequenceResponse&&_.ft(d,M.reelWatchSequenceResponse,N.reelSequence))};
Lt=function(M,d){xC2(d);var N;(d==null?0:d.url)&&((N=window.location.hash)==null?0:N.includes("redirect_state"))&&(YZv(d),(N=K5r(d.url))&&_.ZI(M.root,"yt-initialize-third-party",[N,d]));MaS(d);N=_.h();var R=N.resolve(d5S);d.playerResponse&&N.resolve(NoN).handleResponse(d.playerResponse);if(d.playerResponse){N=void 0;if(_.Q("ab_v_vid_sig")&&d.endpoint){var X,A=(X=_.q(d.endpoint,_.nL))!=null?X:_.q(d.endpoint,_.$B);A&&(N=A.videoId)}RIZ(R,d.playerResponse,N)}d.playerResponse&&kci(d.playerResponse)&&_.Q("web_enable_ab_rsp_cl")?
Zji().then(function(){X9r(R,d.playerResponse);rz(M,d)}):rz(M,d)};
A52=function(M){if(M=M.root.data){var d=_.h().resolve(FKN);M.endpoint&&(M.response&&d.handleResponse(M.response,void 0,document.querySelector("ytd-app")),M.playerResponse&&d.handleResponse(M.playerResponse),M.reelWatchSequenceResponse&&d.handleResponse(M.reelWatchSequenceResponse))}};
Va2=function(M){var d,N,R,X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:d=window;if(!d.getDataPromise){k.jumpTo(2);break}_.Mv(k,3);return _.D(k,d.getDataPromise(),5);case 5:N=k.yieldResult;Lt(M,N);_.cJ(k,4);break;case 3:return _.Fg(k),_.D(k,jt(),6);case 6:R=k.yieldResult,rz(M,R);case 4:return k.return();case 2:if(!_.Q("sw_nav_preload_pbj")){k.jumpTo(7);break}d.fetchInitialData=function(){var T;return _.B(function(W){if(W.nextAddress==1)return _.D(W,jt(),2);T=W.yieldResult;rz(M,T);_.Vy(W)})};
if(d.getInitialData){d.loadInitialData=function(T){Lt(M,T)};
X=d.getInitialData();d.getInitialData=void 0;Lt(M,X);k.jumpTo(8);break}d.fetchInitialData=void 0;return _.D(k,jt(),9);case 9:A=k.yieldResult,rz(M,A);case 8:return k.return();case 7:d.getInitialData?(l=d.getInitialData(),d.getInitialData=void 0,Lt(M,l)):d.loadInitialData=function(T){Lt(M,T)},_.Vy(k)}})};
lFq=function(M){var d=0;return function(){return d<M.length?{done:!1,value:M[d++]}:{done:!0}}};
$5Z=typeof Object.defineProperties=="function"?Object.defineProperty:function(M,d,N){if(M==Array.prototype||M==Object.prototype)return M;M[d]=N.value;return M};
BoZ=function(M){M=["object"==typeof globalThis&&globalThis,M,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;d<M.length;++d){var N=M[d];if(N&&N.Math==Math)return N}throw Error("a");};
_.Hm=BoZ(this);tu=function(M,d){if(d)a:{var N=_.Hm;M=M.split(".");for(var R=0;R<M.length-1;R++){var X=M[R];if(!(X in N))break a;N=N[X]}M=M[M.length-1];R=N[M];d=d(R);d!=R&&d!=null&&$5Z(N,M,{configurable:!0,writable:!0,value:d})}};
tu("Symbol",function(M){if(M)return M;var d=function(A,l){this.$jscomp$symbol$id_=A;$5Z(this,"description",{configurable:!0,writable:!0,value:l})};
d.prototype.toString=function(){return this.$jscomp$symbol$id_};
var N="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",R=0,X=function(A){if(this instanceof X)throw new TypeError("b");return new d(N+(A||"")+"_"+R++,A)};
return X});
tu("Symbol.iterator",function(M){if(M)return M;M=Symbol("c");for(var d="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),N=0;N<d.length;N++){var R=_.Hm[d[N]];typeof R==="function"&&typeof R.prototype[M]!="function"&&$5Z(R.prototype,M,{configurable:!0,writable:!0,value:function(){return kXj(lFq(this))}})}return M});
tu("Symbol.asyncIterator",function(M){return M?M:Symbol("d")});
var kXj=function(M){M={next:M};M[Symbol.iterator]=function(){return this};
return M},ToL=typeof Object.create=="function"?Object.create:function(M){var d=function(){};
d.prototype=M;return new d},D5r=function(){function M(){function N(){}
new N;Reflect.construct(N,[],function(){});
return new N instanceof N}
if(typeof Reflect!="undefined"&&Reflect.construct){if(M())return Reflect.construct;var d=Reflect.construct;return function(N,R,X){N=d(N,R);X&&Reflect.setPrototypeOf(N,X.prototype);return N}}return function(N,R,X){X===void 0&&(X=N);
X=ToL(X.prototype||Object.prototype);return Function.prototype.apply.call(N,X,R)||X}}(),gqj;
if(typeof Object.setPrototypeOf=="function")gqj=Object.setPrototypeOf;else{var WKS;a:{var w9q={a:!0},p92={};try{p92.__proto__=w9q;WKS=p92.a;break a}catch(M){}WKS=!1}gqj=WKS?function(M,d){M.__proto__=d;if(M.__proto__!==d)throw new TypeError("e`"+M);return M}:null}GM=gqj;
_.v=function(M,d){M.prototype=ToL(d.prototype);M.prototype.constructor=M;if(GM)GM(M,d);else for(var N in d)if(N!="prototype")if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(d,N);R&&Object.defineProperty(M,N,R)}else M[N]=d[N];M.superClass_=d.prototype};
_.V=function(M){var d=typeof Symbol!="undefined"&&Symbol.iterator&&M[Symbol.iterator];if(d)return d.call(M);if(typeof M.length=="number")return{next:lFq(M)};throw Error("f`"+String(M));};
z5=function(M){for(var d,N=[];!(d=M.next()).done;)N.push(d.value);return N};
_.wu=function(M){return M instanceof Array?M:z5(_.V(M))};
_.a1=function(M){return m5q(M,M)};
m5q=function(M,d){M.raw=d;Object.freeze&&(Object.freeze(M),Object.freeze(d));return M};
Ue=function(M,d){return Object.prototype.hasOwnProperty.call(M,d)};
hI2=typeof Object.assign=="function"?Object.assign:function(M,d){for(var N=1;N<arguments.length;N++){var R=arguments[N];if(R)for(var X in R)Ue(R,X)&&(M[X]=R[X])}return M};
tu("Object.assign",function(M){return M||hI2});
var QFS=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},q4Z=function(M){if(M.isRunning_)throw new TypeError("h");
M.isRunning_=!0};
QFS.prototype.JSC$6620_next_=function(M){this.yieldResult=M};
var IFS=function(M,d){M.abruptCompletion_={exception:d,isException:!0};M.nextAddress=M.catchAddress_||M.finallyAddress_};
QFS.prototype.return=function(M){this.abruptCompletion_={return:M};this.nextAddress=this.finallyAddress_};
_.D=function(M,d,N){M.nextAddress=N;return{value:d}};
QFS.prototype.jumpTo=function(M){this.nextAddress=M};
_.Vy=function(M){M.nextAddress=0};
_.Mv=function(M,d,N){M.catchAddress_=d;N!=void 0&&(M.finallyAddress_=N)};
_.Nv=function(M,d){M.catchAddress_=0;M.finallyAddress_=d||0};
_.cJ=function(M,d,N){M.nextAddress=d;M.catchAddress_=N||0};
_.Fg=function(M,d){M.catchAddress_=d||0;d=M.abruptCompletion_.exception;M.abruptCompletion_=null;return d};
_.du=function(M,d,N,R){R?M.finallyContexts_[R]=M.abruptCompletion_:M.finallyContexts_=[M.abruptCompletion_];M.catchAddress_=d||0;M.finallyAddress_=N||0};
_.Xg=function(M,d,N){N=M.finallyContexts_.splice(N||0)[0];(N=M.abruptCompletion_=M.abruptCompletion_||N)?N.isException?M.nextAddress=M.catchAddress_||M.finallyAddress_:N.jumpTo!=void 0&&M.finallyAddress_<N.jumpTo?(M.nextAddress=N.jumpTo,M.abruptCompletion_=null):M.nextAddress=M.finallyAddress_:M.nextAddress=d};
vqZ=function(M){this.JSC$6625_context_=new QFS;this.program_=M};
jFZ=function(M,d){q4Z(M.JSC$6625_context_);var N=M.JSC$6625_context_.yieldAllIterator_;if(N)return O1L(M,"return"in N?N["return"]:function(R){return{value:R,done:!0}},d,M.JSC$6625_context_.return);
M.JSC$6625_context_.return(d);return u5(M)};
O1L=function(M,d,N,R){try{var X=d.call(M.JSC$6625_context_.yieldAllIterator_,N);if(!(X instanceof Object))throw new TypeError("g`"+X);if(!X.done)return M.JSC$6625_context_.isRunning_=!1,X;var A=X.value}catch(l){return M.JSC$6625_context_.yieldAllIterator_=null,IFS(M.JSC$6625_context_,l),u5(M)}M.JSC$6625_context_.yieldAllIterator_=null;R.call(M.JSC$6625_context_,A);return u5(M)};
u5=function(M){for(;M.JSC$6625_context_.nextAddress;)try{var d=M.program_(M.JSC$6625_context_);if(d)return M.JSC$6625_context_.isRunning_=!1,{value:d.value,done:!1}}catch(N){M.JSC$6625_context_.yieldResult=void 0,IFS(M.JSC$6625_context_,N)}M.JSC$6625_context_.isRunning_=!1;if(M.JSC$6625_context_.abruptCompletion_){d=M.JSC$6625_context_.abruptCompletion_;M.JSC$6625_context_.abruptCompletion_=null;if(d.isException)throw d.exception;return{value:d.return,done:!0}}return{value:void 0,done:!0}};
sFZ=function(M){this.next=function(d){q4Z(M.JSC$6625_context_);M.JSC$6625_context_.yieldAllIterator_?d=O1L(M,M.JSC$6625_context_.yieldAllIterator_.next,d,M.JSC$6625_context_.JSC$6620_next_):(M.JSC$6625_context_.JSC$6620_next_(d),d=u5(M));return d};
this.throw=function(d){q4Z(M.JSC$6625_context_);M.JSC$6625_context_.yieldAllIterator_?d=O1L(M,M.JSC$6625_context_.yieldAllIterator_["throw"],d,M.JSC$6625_context_.JSC$6620_next_):(IFS(M.JSC$6625_context_,d),d=u5(M));return d};
this.return=function(d){return jFZ(M,d)};
this[Symbol.iterator]=function(){return this}};
_.C3Z=function(M,d){d=new sFZ(new vqZ(d));GM&&M.prototype&&GM(d,M.prototype);return d};
PPv=function(M){function d(R){return M.next(R)}
function N(R){return M.throw(R)}
return new Promise(function(R,X){function A(l){l.done?R(l.value):Promise.resolve(l.value).then(d,N).then(A,X)}
A(M.next())})};
_.B=function(M){return PPv(new sFZ(new vqZ(M)))};
Ghp=function(M){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return M};
this.next=function(d){return Promise.resolve(M.next(d))};
this["throw"]=function(d){return new Promise(function(N,R){var X=M["throw"];X!==void 0?N(X.call(M,d)):(N=M["return"],N!==void 0&&N.call(M),R(new TypeError("i")))})};
M["return"]!==void 0&&(this["return"]=function(d){return Promise.resolve(M["return"](d))})};
_.wH=function(){for(var M=Number(this),d=[],N=M;N<arguments.length;N++)d[N-M]=arguments[N];return d};
_.x36=function(M){return M};
tu("globalThis",function(M){return M||_.Hm});
tu("Reflect",function(M){return M?M:{}});
tu("Reflect.construct",function(){return D5r});
tu("Reflect.setPrototypeOf",function(M){return M?M:GM?function(d,N){try{return GM(d,N),!0}catch(R){return!1}}:null});
tu("Promise",function(M){function d(){this.batch_=null}
function N(l){return l instanceof X?l:new X(function(k){k(l)})}
if(M&&(typeof _.Hm.PromiseRejectionEvent!=="undefined"||!_.Hm.Promise||_.Hm.Promise.toString().indexOf("[native code]")===-1))return M;d.prototype.asyncExecute=function(l){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(l)};
var R=_.Hm.setTimeout;d.prototype.asyncExecuteFunction=function(l){R(l,0)};
d.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var l=this.batch_;this.batch_=[];for(var k=0;k<l.length;++k){var T=l[k];l[k]=null;try{T()}catch(W){this.asyncThrow_(W)}}}this.batch_=null};
d.prototype.asyncThrow_=function(l){this.asyncExecuteFunction(function(){throw l;})};
var X=function(l){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{l(k.resolve,k.reject)}catch(T){k.reject(T)}};
X.prototype.createResolveAndReject_=function(){function l(W){return function(w){T||(T=!0,W.call(k,w))}}
var k=this,T=!1;return{resolve:l(this.resolveTo_),reject:l(this.JSC$6641_reject_)}};
X.prototype.resolveTo_=function(l){if(l===this)this.JSC$6641_reject_(new TypeError("j"));else if(l instanceof X)this.settleSameAsPromise_(l);else{a:switch(typeof l){case "object":var k=l!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(l):this.fulfill_(l)}};
X.prototype.resolveToNonPromiseObj_=function(l){var k=void 0;try{k=l.then}catch(T){this.JSC$6641_reject_(T);return}typeof k=="function"?this.settleSameAsThenable_(k,l):this.fulfill_(l)};
X.prototype.JSC$6641_reject_=function(l){this.settle_(2,l)};
X.prototype.fulfill_=function(l){this.settle_(1,l)};
X.prototype.settle_=function(l,k){if(this.state_!=0)throw Error("k`"+l+"`"+k+"`"+this.state_);this.state_=l;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
X.prototype.scheduleUnhandledRejectionCheck_=function(){var l=this;R(function(){if(l.notifyUnhandledRejection_()){var k=_.Hm.console;typeof k!=="undefined"&&k.error(l.result_)}},1)};
X.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var l=_.Hm.CustomEvent,k=_.Hm.Event,T=_.Hm.dispatchEvent;if(typeof T==="undefined")return!0;typeof l==="function"?l=new l("unhandledrejection",{cancelable:!0}):typeof k==="function"?l=new k("unhandledrejection",{cancelable:!0}):(l=_.Hm.document.createEvent("CustomEvent"),l.initCustomEvent("unhandledrejection",!1,!0,l));l.promise=this;l.reason=this.result_;return T(l)};
X.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var l=0;l<this.onSettledCallbacks_.length;++l)A.asyncExecute(this.onSettledCallbacks_[l]);this.onSettledCallbacks_=null}};
var A=new d;X.prototype.settleSameAsPromise_=function(l){var k=this.createResolveAndReject_();l.callWhenSettled_(k.resolve,k.reject)};
X.prototype.settleSameAsThenable_=function(l,k){var T=this.createResolveAndReject_();try{l.call(k,T.resolve,T.reject)}catch(W){T.reject(W)}};
X.prototype.then=function(l,k){function T(m,I){return typeof m=="function"?function(O){try{W(m(O))}catch(y){w(y)}}:I}
var W,w,p=new X(function(m,I){W=m;w=I});
this.callWhenSettled_(T(l,W),T(k,w));return p};
X.prototype.catch=function(l){return this.then(void 0,l)};
X.prototype.callWhenSettled_=function(l,k){function T(){switch(W.state_){case 1:l(W.result_);break;case 2:k(W.result_);break;default:throw Error("l`"+W.state_);}}
var W=this;this.onSettledCallbacks_==null?A.asyncExecute(T):this.onSettledCallbacks_.push(T);this.isRejectionHandled_=!0};
X.resolve=N;X.reject=function(l){return new X(function(k,T){T(l)})};
X.race=function(l){return new X(function(k,T){for(var W=_.V(l),w=W.next();!w.done;w=W.next())N(w.value).callWhenSettled_(k,T)})};
X.all=function(l){var k=_.V(l),T=k.next();return T.done?N([]):new X(function(W,w){function p(O){return function(y){m[O]=y;I--;I==0&&W(m)}}
var m=[],I=0;do m.push(void 0),I++,N(T.value).callWhenSettled_(p(m.length-1),w),T=k.next();while(!T.done)})};
return X});
var Ct=function(M,d,N){if(M==null)throw new TypeError("m`"+N);if(d instanceof RegExp)throw new TypeError("n`"+N);return M+""};
tu("String.prototype.startsWith",function(M){return M?M:function(d,N){var R=Ct(this,d,"startsWith"),X=R.length,A=d.length;N=Math.max(0,Math.min(N|0,R.length));for(var l=0;l<A&&N<X;)if(R[N++]!=d[l++])return!1;return l>=A}});
tu("Object.setPrototypeOf",function(M){return M||GM});
tu("Symbol.dispose",function(M){return M?M:Symbol("o")});
tu("SuppressedError",function(M){function d(N,R,X){if(!(this instanceof d))return new d(N,R,X);X=Error(X);"stack"in X&&(this.stack=X.stack);this.message=X.message;this.error=N;this.suppressed=R}
if(M)return M;_.v(d,Error);d.prototype.name="SuppressedError";return d});
var oqv=function(M,d,N){M instanceof String&&(M=String(M));for(var R=M.length,X=0;X<R;X++){var A=M[X];if(d.call(N,A,X,M))return{i:X,v:A}}return{i:-1,v:void 0}};
tu("Array.prototype.find",function(M){return M?M:function(d,N){return oqv(this,d,N).v}});
tu("WeakMap",function(M){function d(){}
function N(T){var W=typeof T;return W==="object"&&T!==null||W==="function"}
function R(T){if(!Ue(T,A)){var W=new d;$5Z(T,A,{value:W})}}
function X(T){var W=Object[T];W&&(Object[T]=function(w){if(w instanceof d)return w;Object.isExtensible(w)&&R(w);return W(w)})}
if(function(){if(!M||!Object.seal)return!1;try{var T=Object.seal({}),W=Object.seal({}),w=new M([[T,2],[W,3]]);if(w.get(T)!=2||w.get(W)!=3)return!1;w.delete(T);w.set(W,4);return!w.has(T)&&w.get(W)==4}catch(p){return!1}}())return M;
var A="$jscomp_hidden_"+Math.random();X("freeze");X("preventExtensions");X("seal");var l=0,k=function(T){this.JSC$6648_id_=(l+=Math.random()+1).toString();if(T){T=_.V(T);for(var W;!(W=T.next()).done;)W=W.value,this.set(W[0],W[1])}};
k.prototype.set=function(T,W){if(!N(T))throw Error("p");R(T);if(!Ue(T,A))throw Error("q`"+T);T[A][this.JSC$6648_id_]=W;return this};
k.prototype.get=function(T){return N(T)&&Ue(T,A)?T[A][this.JSC$6648_id_]:void 0};
k.prototype.has=function(T){return N(T)&&Ue(T,A)&&Ue(T[A],this.JSC$6648_id_)};
k.prototype.delete=function(T){return N(T)&&Ue(T,A)&&Ue(T[A],this.JSC$6648_id_)?delete T[A][this.JSC$6648_id_]:!1};
return k});
tu("Map",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),T=new M(_.V([[k,"s"]]));if(T.get(k)!="s"||T.size!=1||T.get({x:4})||T.set({x:4},"t")!=T||T.size!=2)return!1;var W=T.entries(),w=W.next();if(w.done||w.value[0]!=k||w.value[1]!="s")return!1;w=W.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!W.next().done?!1:!0}catch(p){return!1}}())return M;
var d=new WeakMap,N=function(k){this[0]={};this[1]=A();this.size=0;if(k){k=_.V(k);for(var T;!(T=k.next()).done;)T=T.value,this.set(T[0],T[1])}};
N.prototype.set=function(k,T){k=k===0?0:k;var W=R(this,k);W.list||(W.list=this[0][W.id]=[]);W.entry?W.entry.value=T:(W.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:T},W.list.push(W.entry),this[1].previous.next=W.entry,this[1].previous=W.entry,this.size++);return this};
N.prototype.delete=function(k){k=R(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};
N.prototype.clear=function(){this[0]={};this[1]=this[1].previous=A();this.size=0};
N.prototype.has=function(k){return!!R(this,k).entry};
N.prototype.get=function(k){return(k=R(this,k).entry)&&k.value};
N.prototype.entries=function(){return X(this,function(k){return[k.key,k.value]})};
N.prototype.keys=function(){return X(this,function(k){return k.key})};
N.prototype.values=function(){return X(this,function(k){return k.value})};
N.prototype.forEach=function(k,T){for(var W=this.entries(),w;!(w=W.next()).done;)w=w.value,k.call(T,w[1],w[0],this)};
N.prototype[Symbol.iterator]=N.prototype.entries;var R=function(k,T){var W=T&&typeof T;W=="object"||W=="function"?d.has(T)?W=d.get(T):(W=""+ ++l,d.set(T,W)):W="p_"+T;var w=k[0][W];if(w&&Ue(k[0],W))for(k=0;k<w.length;k++){var p=w[k];if(T!==T&&p.key!==p.key||T===p.key)return{id:W,list:w,index:k,entry:p}}return{id:W,list:w,index:-1,entry:void 0}},X=function(k,T){var W=k[1];
return kXj(function(){if(W){for(;W.head!=k[1];)W=W.previous;for(;W.next!=W.head;)return W=W.next,{done:!1,value:T(W)};W=null}return{done:!0,value:void 0}})},A=function(){var k={};
return k.previous=k.next=k.head=k},l=0;
return N});
tu("Set",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var N=Object.seal({x:4}),R=new M(_.V([N]));if(!R.has(N)||R.size!=1||R.add(N)!=R||R.size!=1||R.add({x:4})!=R||R.size!=2)return!1;var X=R.entries(),A=X.next();if(A.done||A.value[0]!=N||A.value[1]!=N)return!1;A=X.next();return A.done||A.value[0]==N||A.value[0].x!=4||A.value[1]!=A.value[0]?!1:X.next().done}catch(l){return!1}}())return M;
var d=function(N){this.JSC$6662_map_=new Map;if(N){N=_.V(N);for(var R;!(R=N.next()).done;)this.add(R.value)}this.size=this.JSC$6662_map_.size};
d.prototype.add=function(N){N=N===0?0:N;this.JSC$6662_map_.set(N,N);this.size=this.JSC$6662_map_.size;return this};
d.prototype.delete=function(N){N=this.JSC$6662_map_.delete(N);this.size=this.JSC$6662_map_.size;return N};
d.prototype.clear=function(){this.JSC$6662_map_.clear();this.size=0};
d.prototype.has=function(N){return this.JSC$6662_map_.has(N)};
d.prototype.entries=function(){return this.JSC$6662_map_.entries()};
d.prototype.values=function(){return this.JSC$6662_map_.values()};
d.prototype.keys=d.prototype.values;d.prototype[Symbol.iterator]=d.prototype.values;d.prototype.forEach=function(N,R){var X=this;this.JSC$6662_map_.forEach(function(A){return N.call(R,A,A,X)})};
return d});
tu("Math.log2",function(M){return M?M:function(d){return Math.log(d)/Math.LN2}});
tu("Object.values",function(M){return M?M:function(d){var N=[],R;for(R in d)Ue(d,R)&&N.push(d[R]);return N}});
tu("Object.is",function(M){return M?M:function(d,N){return d===N?d!==0||1/d===1/N:d!==d&&N!==N}});
tu("Array.prototype.includes",function(M){return M?M:function(d,N){var R=this;R instanceof String&&(R=String(R));var X=R.length;N=N||0;for(N<0&&(N=Math.max(N+X,0));N<X;N++){var A=R[N];if(A===d||Object.is(A,d))return!0}return!1}});
tu("String.prototype.includes",function(M){return M?M:function(d,N){return Ct(this,d,"includes").indexOf(d,N||0)!==-1}});
tu("Array.from",function(M){return M?M:function(d,N,R){N=N!=null?N:function(k){return k};
var X=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&d[Symbol.iterator];if(typeof A=="function"){d=A.call(d);for(var l=0;!(A=d.next()).done;)X.push(N.call(R,A.value,l++))}else for(A=d.length,l=0;l<A;l++)X.push(N.call(R,d[l],l));return X}});
tu("Object.entries",function(M){return M?M:function(d){var N=[],R;for(R in d)Ue(d,R)&&N.push([R,d[R]]);return N}});
tu("Number.isFinite",function(M){return M?M:function(d){return typeof d!=="number"?!1:!isNaN(d)&&d!==Infinity&&d!==-Infinity}});
tu("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
tu("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
tu("Number.isInteger",function(M){return M?M:function(d){return Number.isFinite(d)?d===Math.floor(d):!1}});
tu("Number.isSafeInteger",function(M){return M?M:function(d){return Number.isInteger(d)&&Math.abs(d)<=Number.MAX_SAFE_INTEGER}});
tu("String.prototype.endsWith",function(M){return M?M:function(d,N){var R=Ct(this,d,"endsWith");N===void 0&&(N=R.length);N=Math.max(0,Math.min(N|0,R.length));for(var X=d.length;X>0&&N>0;)if(R[--N]!=d[--X])return!1;return X<=0}});
var r52=function(M,d){M instanceof String&&(M+="");var N=0,R=!1,X={next:function(){if(!R&&N<M.length){var A=N++;return{value:d(A,M[A]),done:!1}}R=!0;return{done:!0,value:void 0}}};
X[Symbol.iterator]=function(){return X};
return X};
tu("Array.prototype.entries",function(M){return M?M:function(){return r52(this,function(d,N){return[d,N]})}});
tu("Math.imul",function(M){return M?M:function(d,N){d=Number(d);N=Number(N);var R=d&65535,X=N&65535;return R*X+((d>>>16&65535)*X+R*(N>>>16&65535)<<16>>>0)|0}});
tu("Math.trunc",function(M){return M?M:function(d){d=Number(d);if(isNaN(d)||d===Infinity||d===-Infinity||d===0)return d;var N=Math.floor(Math.abs(d));return d<0?-N:N}});
tu("Number.isNaN",function(M){return M?M:function(d){return typeof d==="number"&&isNaN(d)}});
tu("Array.prototype.keys",function(M){return M?M:function(){return r52(this,function(d){return d})}});
tu("Array.prototype.values",function(M){return M?M:function(){return r52(this,function(d,N){return N})}});
tu("Array.prototype.fill",function(M){return M?M:function(d,N,R){var X=this.length||0;N<0&&(N=Math.max(0,X+N));if(R==null||R>X)R=X;R=Number(R);R<0&&(R=Math.max(0,X+R));for(N=Number(N||0);N<R;N++)this[N]=d;return this}});
var x_=function(M){return M?M:Array.prototype.fill};
tu("Int8Array.prototype.fill",x_);tu("Uint8Array.prototype.fill",x_);tu("Uint8ClampedArray.prototype.fill",x_);tu("Int16Array.prototype.fill",x_);tu("Uint16Array.prototype.fill",x_);tu("Int32Array.prototype.fill",x_);tu("Uint32Array.prototype.fill",x_);tu("Float32Array.prototype.fill",x_);tu("Float64Array.prototype.fill",x_);
tu("Object.fromEntries",function(M){return M?M:function(d){var N={};if(!(Symbol.iterator in d))throw new TypeError("r`"+d);d=d[Symbol.iterator].call(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;if(Object(R)!==R)throw new TypeError("s");N[R[0]]=R[1]}return N}});
tu("String.prototype.replaceAll",function(M){return M?M:function(d,N){if(d instanceof RegExp&&!d.global)throw new TypeError("t");return d instanceof RegExp?this.replace(d,N):this.replace(new RegExp(String(d).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),N)}});
tu("Object.getOwnPropertySymbols",function(M){return M?M:function(){return[]}});
tu("String.prototype.repeat",function(M){return M?M:function(d){var N=Ct(this,null,"repeat");if(d<0||d>1342177279)throw new RangeError("u");d|=0;for(var R="";d;)if(d&1&&(R+=N),d>>>=1)N+=N;return R}});
tu("Array.prototype.findIndex",function(M){return M?M:function(d,N){return oqv(this,d,N).i}});
tu("Array.prototype.flatMap",function(M){return M?M:function(d,N){var R=[];Array.prototype.forEach.call(this,function(X,A){X=d.call(N,X,A,this);Array.isArray(X)?R.push.apply(R,X):R.push(X)});
return R}});
tu("String.prototype.codePointAt",function(M){return M?M:function(d){var N=Ct(this,null,"codePointAt"),R=N.length;d=Number(d)||0;if(d>=0&&d<R){d|=0;var X=N.charCodeAt(d);if(X<55296||X>56319||d+1===R)return X;d=N.charCodeAt(d+1);return d<56320||d>57343?X:(X-55296)*1024+d+9216}}});
tu("String.fromCodePoint",function(M){return M?M:function(d){for(var N="",R=0;R<arguments.length;R++){var X=Number(arguments[R]);if(X<0||X>1114111||X!==Math.floor(X))throw new RangeError("v`"+X);X<=65535?N+=String.fromCharCode(X):(X-=65536,N+=String.fromCharCode(X>>>10&1023|55296),N+=String.fromCharCode(X&1023|56320))}return N}});
tu("String.prototype.padStart",function(M){return M?M:function(d,N){var R=Ct(this,null,"padStart");d-=R.length;N=N!==void 0?String(N):" ";return(d>0&&N?N.repeat(Math.ceil(d/N.length)).substring(0,d):"")+R}});
tu("Promise.prototype.finally",function(M){return M?M:function(d){return this.then(function(N){return Promise.resolve(d()).then(function(){return N})},function(N){return Promise.resolve(d()).then(function(){throw N;
})})}});
tu("Object.hasOwn",function(M){return M?M:function(d,N){return Object.prototype.hasOwnProperty.call(d,N)}});
var KKZ=function(M){M=Math.trunc(M)||0;M<0&&(M+=this.length);if(!(M<0||M>=this.length))return this[M]};
tu("Array.prototype.at",function(M){return M?M:KKZ});
var Y_=function(M){return M?M:KKZ};
tu("Int8Array.prototype.at",Y_);tu("Uint8Array.prototype.at",Y_);tu("Uint8ClampedArray.prototype.at",Y_);tu("Int16Array.prototype.at",Y_);tu("Uint16Array.prototype.at",Y_);tu("Int32Array.prototype.at",Y_);tu("Uint32Array.prototype.at",Y_);tu("Float32Array.prototype.at",Y_);tu("Float64Array.prototype.at",Y_);tu("String.prototype.at",function(M){return M?M:KKZ});
tu("Math.sign",function(M){return M?M:function(d){d=Number(d);return d===0||isNaN(d)?d:d>0?1:-1}});
tu("Array.prototype.flat",function(M){return M?M:function(d){d=d===void 0?1:d;var N=[];Array.prototype.forEach.call(this,function(R){Array.isArray(R)&&d>0?(R=Array.prototype.flat.call(R,d-1),N.push.apply(N,R)):N.push(R)});
return N}});
tu("String.raw",function(M){return M?M:function(d,N){if(d==null)throw new TypeError("w");for(var R=d.raw,X=R.length,A="",l=0;l<X;++l)A+=R[l],l+1<X&&l+1<arguments.length&&(A+=String(arguments[l+1]));return A}});
tu("Reflect.ownKeys",function(M){return M?M:function(d){var N=[],R=Object.getOwnPropertyNames(d);d=Object.getOwnPropertySymbols(d);for(var X=0;X<R.length;X++)(R[X].substring(0,14)=="jscomp_symbol_"?d:N).push(R[X]);return N.concat(d)}});
tu("Object.getOwnPropertyDescriptors",function(M){return M?M:function(d){for(var N={},R=Reflect.ownKeys(d),X=0;X<R.length;X++)N[R[X]]=Object.getOwnPropertyDescriptor(d,R[X]);return N}});
tu("WeakSet",function(M){if(function(){if(!M||!Object.seal)return!1;try{var N=Object.seal({}),R=Object.seal({}),X=new M([N]);if(!X.has(N)||X.has(R))return!1;X.delete(N);X.add(R);return!X.has(N)&&X.has(R)}catch(A){return!1}}())return M;
var d=function(N){this.JSC$6668_map_=new WeakMap;if(N){N=_.V(N);for(var R;!(R=N.next()).done;)this.add(R.value)}};
d.prototype.add=function(N){this.JSC$6668_map_.set(N,!0);return this};
d.prototype.has=function(N){return this.JSC$6668_map_.has(N)};
d.prototype.delete=function(N){return this.JSC$6668_map_.delete(N)};
return d});
tu("Promise.allSettled",function(M){function d(R){return{status:"fulfilled",value:R}}
function N(R){return{status:"rejected",reason:R}}
return M?M:function(R){var X=this;R=Array.from(R,function(A){return X.resolve(A).then(d,N)});
return X.all(R)}});
tu("Number.parseInt",function(M){return M||parseInt});
_._DumpException=window._DumpException||function(M){throw M;};
window._DumpException=_._DumpException;var y5Z,Z7,Ee,Mn,J56,c5j,S4N,zIp,fJ,b16;y5Z=y5Z||{};_.Np=this||self;_.fE=function(M,d,N){M=M.split(".");N=N||_.Np;for(var R;M.length&&(R=M.shift());)M.length||d===void 0?N[R]&&N[R]!==Object.prototype[R]?N=N[R]:N=N[R]={}:N[R]=d};
Z7=function(M){var d=_.cy("WIZ_global_data.oxN3nb");M=d&&d[M];return M!=null?M:!1};
Ee=_.Np._F_toggles||[];Mn=function(){};
Mn.get=function(){return null};
_.cy=function(M,d){M=M.split(".");d=d||_.Np;for(var N=0;N<M.length;N++)if(d=d[M[N]],d==null)return null;return d};
_.dP=function(M){M.instance_=void 0;M.getInstance=function(){return M.instance_?M.instance_:M.instance_=new M}};
_.$e=function(M){var d=typeof M;return d!="object"?d:M?Array.isArray(M)?"array":d:"null"};
_.CZ=function(M){var d=_.$e(M);return d=="array"||d=="object"&&typeof M.length=="number"};
_.Me=function(M){var d=typeof M;return d=="object"&&M!=null||d=="function"};
_.d3=function(M){return Object.prototype.hasOwnProperty.call(M,J56)&&M[J56]||(M[J56]=++c5j)};
J56="closure_uid_"+(Math.random()*1E9>>>0);c5j=0;S4N=function(M,d,N){return M.call.apply(M.bind,arguments)};
zIp=function(M,d,N){if(!M)throw Error();if(arguments.length>2){var R=Array.prototype.slice.call(arguments,2);return function(){var X=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(X,R);return M.apply(d,X)}}return function(){return M.apply(d,arguments)}};
_.gx=function(M,d,N){_.gx=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?S4N:zIp;return _.gx.apply(null,arguments)};
_.B1=function(M,d){var N=Array.prototype.slice.call(arguments,1);return function(){var R=N.slice();R.push.apply(R,arguments);return M.apply(this,R)}};
_.Nn=function(){return Date.now()};
fJ=function(M){return M};
_.RX=function(M,d){function N(){}
N.prototype=d.prototype;M.superClass_=d.prototype;M.prototype=new N;M.prototype.constructor=M;M.base=function(R,X,A){for(var l=Array(arguments.length-2),k=2;k<arguments.length;k++)l[k-2]=arguments[k];return d.prototype[X].apply(R,l)}};
b16=function(M){return M};var jlZ,reA;_.G=function(M,d,N,R){var X=arguments.length,A=X<3?d:R===null?R=Object.getOwnPropertyDescriptor(d,N):R,l;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")A=Reflect.decorate(M,d,N,R);else for(var k=M.length-1;k>=0;k--)if(l=M[k])A=(X<3?l(A):X>3?l(d,N,A):l(d,N))||A;return X>3&&A&&Object.defineProperty(d,N,A),A};
_.a=function(M,d){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(M,d)};
jlZ=function(M,d){if(d!==null&&d!==void 0){if(typeof d!=="object"&&typeof d!=="function")throw new TypeError("x");if(N===void 0){if(!Symbol.dispose)throw new TypeError("z");var N=d[Symbol.dispose]}if(typeof N!=="function")throw new TypeError("A");M.stack.push({value:d,dispose:N,async:!1})}return d};
reA=function(M){function d(A){M.error=M.hasError?new SuppressedError(A,M.error,"An error was suppressed during disposal."):A;M.hasError=!0}
function N(){for(;R=M.stack.pop();)try{if(!R.async&&X===1)return X=0,M.stack.push(R),Promise.resolve().then(N);if(R.dispose){var A=R.dispose.call(R.value);if(R.async)return X|=2,Promise.resolve(A).then(N,function(l){d(l);return N()})}else X|=1}catch(l){d(l)}if(X===1)return M.hasError?Promise.reject(M.error):Promise.resolve();
if(M.hasError)throw M.error;}
var R,X=0;N()};_.RX(_.Mp,Error);_.Mp.prototype.name="CustomError";var eIZ;var H1N=void 0,nqZ,i1L=typeof TextDecoder!=="undefined",RZi,NZL=typeof String.prototype.isWellFormed==="function",dpq=typeof TextEncoder!=="undefined";var fFp;_.T5=function(M){for(var d=[],N=0,R=0;R<M.length;R++){var X=M.charCodeAt(R);X<128?d[N++]=X:(X<2048?d[N++]=X>>6|192:((X&64512)==55296&&R+1<M.length&&(M.charCodeAt(R+1)&64512)==56320?(X=65536+((X&1023)<<10)+(M.charCodeAt(++R)&1023),d[N++]=X>>18|240,d[N++]=X>>12&63|128):d[N++]=X>>12|224,d[N++]=X>>6&63|128),d[N++]=X&63|128)}return d};
fFp=function(M){for(var d=[],N=0,R=0;N<M.length;){var X=M[N++];if(X<128)d[R++]=String.fromCharCode(X);else if(X>191&&X<224){var A=M[N++];d[R++]=String.fromCharCode((X&31)<<6|A&63)}else if(X>239&&X<365){A=M[N++];var l=M[N++],k=M[N++];X=((X&7)<<18|(A&63)<<12|(l&63)<<6|k&63)-65536;d[R++]=String.fromCharCode(55296+(X>>10));d[R++]=String.fromCharCode(56320+(X&1023))}else A=M[N++],l=M[N++],d[R++]=String.fromCharCode((X&15)<<12|(A&63)<<6|l&63)}return d.join("")};var LKr,taN,GXr,aF6,U5j,usA,CPS;_.Xq=String.prototype.trim?function(M){return M.trim()}:function(M){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(M)[1]};
LKr=/&/g;taN=/</g;GXr=/>/g;aF6=/"/g;U5j=/'/g;usA=/\x00/g;CPS=/[\x00&<>"']/;var Fq=!!(Ee[0]>>15&1),x5Z=!!(Ee[0]>>16&1),Y4N=!!(Ee[0]&2),Z1q=!!(Ee[0]&4),Eqi=!!(Ee[0]&32),MZv=!!(Ee[0]&512);var Wj=Fq?x5Z:Z7(610401301),du2=Fq?Y4N:Z7(513659523),NSZ=Fq?Z1q:Z7(568333945),bPA=Fq?Eqi:Z7(1331761403),R36=Fq?MZv:Z7(103340015);var wZ,Xo6=_.Np.navigator;wZ=Xo6?Xo6.userAgentData||null:null;var b7;_.er=function(M,d){return Array.prototype.indexOf.call(M,d,void 0)};
_.Hy=function(M,d,N){Array.prototype.forEach.call(M,d,N)};
_.Ai=function(M,d,N){return Array.prototype.filter.call(M,d,N)};
_.mi=function(M,d,N){return Array.prototype.map.call(M,d,N)};
b7=function(M,d,N){return Array.prototype.some.call(M,d,N)};
_.lhZ=function(M,d,N){return Array.prototype.every.call(M,d,N)};var Vx=function(M){Vx[" "](M);return M},I8;
Vx[" "]=function(){};
I8=function(M,d){try{return Vx(M[d]),!0}catch(N){}return!1};
_.jJj=function(M,d,N,R){R=R?R(d):d;return Object.prototype.hasOwnProperty.call(M,R)?M[R]:M[R]=N(d)};var Fhp,nE,AZj,VZL,$ui,BSv,$2L,kkS,TSS,Dui,GO6,Whj,woZ,qRZ;_.P3v=function(){return _.Np.navigator||null};
Fhp=IN();_.lb=FAS();nE=Qq("Edge");AZj=nE||_.lb;_.$h=Qq("Gecko")&&!(_.Dv(_.gZ(),"WebKit")&&!Qq("Edge"))&&!(Qq("Trident")||Qq("MSIE"))&&!Qq("Edge");_.B_=_.Dv(_.gZ(),"WebKit")&&!Qq("Edge");VZL=_.B_&&Qq("Mobile");_.lri=_.Dp6();$ui=_.giZ();BSv=(KZ()?wZ.platform==="Linux":Qq("Linux"))||_.WA6();$2L=_.k6S();kkS=TZq();TSS=Qq("iPad");Dui=Qq("iPod");_.gGZ=_.yq();GO6=_.Dv(_.gZ(),"KaiOS");Whj=function(){var M=_.Np.document;return M?M.documentMode:void 0};
a:{var pop="",muN=function(){var M=_.gZ();if(_.$h)return/rv:([^\);]+)(\)|;)/.exec(M);if(nE)return/Edge\/([\d\.]+)/.exec(M);if(_.lb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(M);if(_.B_)return/WebKit\/(\S+)/.exec(M);if(Fhp)return/(?:Version)[ \/]?(\S+)/.exec(M)}();
muN&&(pop=muN?muN[1]:"");if(_.lb){var h3q=Whj();if(h3q!=null&&h3q>parseFloat(pop)){woZ=String(h3q);break a}}woZ=pop}_.QoZ=woZ;if(_.Np.document&&_.lb){var Ir6=Whj();qRZ=Ir6?Ir6:parseInt(_.QoZ,10)||void 0}else qRZ=void 0;_.vGr=qRZ;var OLZ,jnZ,OMq;_.kh=OS();OLZ=TZq()||Qq("iPod");jnZ=Qq("iPad");OMq=_.VrA();_.T7=oN();_.PXS=_.rZ()&&!_.yq();var joL,Dk,uCA,pAZ,PzA,so6;joL={};Dk=null;uCA=_.$h||_.B_||typeof _.Np.btoa=="function";_.UT=function(M,d){d===void 0&&(d=0);so6();d=joL[d];for(var N=Array(Math.floor(M.length/3)),R=d[64]||"",X=0,A=0;X<M.length-2;X+=3){var l=M[X],k=M[X+1],T=M[X+2],W=d[l>>2];l=d[(l&3)<<4|k>>4];k=d[(k&15)<<2|T>>6];T=d[T&63];N[A++]=W+l+k+T}W=0;T=R;switch(M.length-X){case 2:W=M[X+1],T=d[(W&15)<<2]||R;case 1:M=M[X],N[A]=d[M>>2]+d[(M&3)<<4|W>>4]+T+R}return N.join("")};
pAZ=function(M){var d="";PzA(M,function(N){d+=String.fromCharCode(N)});
return d};
_.d72=function(M){var d=[];PzA(M,function(N){d.push(N)});
return d};
_.lL=function(M){var d=M.length,N=d*3/4;N%3?N=Math.floor(N):_.T6("=.",M[d-1])&&(N=_.T6("=.",M[d-2])?N-2:N-1);var R=new Uint8Array(N),X=0;PzA(M,function(A){R[X++]=A});
return X!==N?R.subarray(0,X):R};
PzA=function(M,d){function N(T){for(;R<M.length;){var W=M.charAt(R++),w=Dk[W];if(w!=null)return w;if(!_.ki(W))throw Error("E`"+W);}return T}
so6();for(var R=0;;){var X=N(-1),A=N(0),l=N(64),k=N(64);if(k===64&&X===-1)break;d(X<<2|A>>4);l!=64&&(d(A<<4&240|l>>2),k!=64&&d(l<<6&192|k))}};
so6=function(){if(!Dk){Dk={};for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],N=0;N<5;N++){var R=M.concat(d[N].split(""));joL[N]=R;for(var X=0;X<R.length;X++){var A=R[X];Dk[A]===void 0&&(Dk[A]=X)}}}};var zZq=typeof Uint8Array!=="undefined",sNj=!_.lb&&typeof btoa==="function",P2Z=/[-_.]/g,OZq={"-":"+",_:"/",".":"="},cV={};var JC,rZi;JC=function(M,d){if(d!==cV)throw Error("G");this.JSC$6699_value_=M;if(M!=null&&M.length===0)throw Error("F");};
_.SJ=function(){return oGS||(oGS=new JC(null,cV))};
rZi=function(M){return new Uint8Array(jv(M)||0)};
JC.prototype.isEmpty=function(){return this.JSC$6699_value_==null};
JC.prototype.sizeBytes=function(){var M=jv(this);return M?M.length:0};
var jv=function(M){if(cV!==cV)throw Error("G");var d=M.JSC$6699_value_;d=d==null||zZq&&d!=null&&d instanceof Uint8Array?d:typeof d==="string"?oi2(d):null;return d==null?d:M.JSC$6699_value_=d},oGS;var KAp=void 0;var qe=typeof Symbol==="function"&&typeof Symbol()==="symbol",Khi=hC("jas",void 0,!0),nJ=hC(void 0,"0di"),q9=hC(void 0,"1oa"),LJ=hC(void 0,Symbol()),PLZ=hC(void 0,"0ub"),fm2=hC(void 0,"0ubs"),z4S=hC(void 0,"0ubsb"),Ueq=hC(void 0,"0actk"),br=hC("m_m","messagePrototypeMarker",!0),ndZ=hC(void 0,"vps"),rCA=hC();var JLS,yLv,$Z,yZi;JLS={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};yLv=Object.defineProperties;_.II=qe?Khi:"internalArrayState";yZi=[];sV(yZi,7);$Z=Object.freeze(yZi);var HP={},Kg={},JZZ=function(M,d,N){this.iterable=M;this.mapper=d;this.thisArg=N};
JZZ.prototype.next=function(){var M=this.iterable.next();M.done||(M.value=this.mapper.call(this.thisArg,M.value));return M};
JZZ.prototype[Symbol.iterator]=function(){return this};
var cZA=Object.freeze({}),eJ={};_.SRZ=iL(function(M){return M!==null&&M!==void 0});var iZ2=iL(function(M){return typeof M==="number"}),niZ=iL(function(M){return typeof M==="string"}),fvL=iL(function(M){return typeof M==="boolean"}),z3Z=iL(function(M){return M!=null&&typeof M==="object"&&typeof M.then==="function"}),ETq=iL(function(M){return typeof M==="function"}),FD6=iL(function(M){return!!M&&(typeof M==="object"||typeof M==="function")});var Lg=typeof _.Np.BigInt==="function"&&typeof _.Np.BigInt(0)==="bigint";var Jd=iL(function(M){return Lg?M>=bMZ&&M<=e3Z:M[0]==="-"?LAj(M,HMZ):LAj(M,nGA)}),HMZ=Number.MIN_SAFE_INTEGER.toString(),bMZ=Lg?BigInt(Number.MIN_SAFE_INTEGER):void 0,nGA=Number.MAX_SAFE_INTEGER.toString(),e3Z=Lg?BigInt(Number.MAX_SAFE_INTEGER):void 0;var iM2=typeof Uint8Array.prototype.slice==="function",aI=0,Cg=0,tj;var ji,oC,BP,rq,xpS;ji=typeof BigInt==="function"?BigInt.asIntN:void 0;_.KJ=typeof BigInt==="function"?BigInt.asUintN:void 0;oC=Number.isSafeInteger;BP=Number.isFinite;rq=Math.trunc;xpS=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var igZ={};var jIq={},frN=function(){try{var M=function(){return D5r(Map,[],this.constructor)};
_.v(M,Map);Vx(new M);return!1}catch(d){return!0}}(),gP=function(){this.JSC$6727_map_=new Map};
_.F=gP.prototype;_.F.get=function(M){return this.JSC$6727_map_.get(M)};
_.F.set=function(M,d){this.JSC$6727_map_.set(M,d);this.size=this.JSC$6727_map_.size;return this};
_.F.delete=function(M){M=this.JSC$6727_map_.delete(M);this.size=this.JSC$6727_map_.size;return M};
_.F.clear=function(){this.JSC$6727_map_.clear();this.size=this.JSC$6727_map_.size};
_.F.has=function(M){return this.JSC$6727_map_.has(M)};
_.F.entries=function(){return this.JSC$6727_map_.entries()};
_.F.keys=function(){return this.JSC$6727_map_.keys()};
_.F.values=function(){return this.JSC$6727_map_.values()};
_.F.forEach=function(M,d){return this.JSC$6727_map_.forEach(M,d)};
gP.prototype[Symbol.iterator]=function(){return this.entries()};
var ur=function(){if(frN)return Object.setPrototypeOf(gP.prototype,Map.prototype),Object.defineProperties(gP.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),gP;var M=function(){return D5r(Map,[],this.constructor)};
_.v(M,Map);return M}(),ir=function(M,d,N,R){N=N===void 0?QIA:N;
R=R===void 0?QIA:R;var X=ur.call(this)||this;X.arrayState=M[_.II]|0;X.valueCtor=d;X.keyToApi=N;X.valueToApi=X.valueCtor?Imp:R;for(var A=0;A<M.length;A++){var l=M[A],k=N(l[0],!1,!0),T=l[1];d?T===void 0&&(T=null):T=R(l[1],!1,!0,void 0,void 0,X.arrayState);ur.prototype.set.call(X,k,T)}return X};
_.v(ir,ur);var LhZ=function(M){if(M.arrayState&2)throw Error("K");};
_.F=ir.prototype;_.F.clear=function(){LhZ(this);ur.prototype.clear.call(this)};
_.F.delete=function(M){LhZ(this);return ur.prototype.delete.call(this,this.keyToApi(M,!0,!1))};
_.F.entries=function(){if(this.valueCtor){var M=ur.prototype.keys.call(this);M=new JZZ(M,vd6,this)}else M=ur.prototype.entries.call(this);return M};
_.F.values=function(){if(this.valueCtor){var M=ur.prototype.keys.call(this);M=new JZZ(M,ir.prototype.get,this)}else M=ur.prototype.values.call(this);return M};
_.F.forEach=function(M,d){this.valueCtor?ur.prototype.forEach.call(this,function(N,R,X){M.call(d,X.get(R),R,X)}):ur.prototype.forEach.call(this,M,d)};
_.F.set=function(M,d){LhZ(this);M=this.keyToApi(M,!0,!1);return M==null?this:d==null?(ur.prototype.delete.call(this,M),this):ur.prototype.set.call(this,M,this.valueToApi(d,!0,!0,this.valueCtor,!1,this.arrayState))};
_.F.has=function(M){return ur.prototype.has.call(this,this.keyToApi(M,!1,!1))};
_.F.get=function(M){M=this.keyToApi(M,!1,!1);var d=ur.prototype.get.call(this,M);if(d!==void 0){var N=this.valueCtor;return N?(N=this.valueToApi(d,!1,!0,N,this.callToMutableOnAccess,this.arrayState),N!==d&&ur.prototype.set.call(this,M,N),N):d}};
ir.prototype[Symbol.iterator]=function(){return this.entries()};
ir.prototype.toJSON=void 0;var Ogi;var SVv=function(){},Gb=function(M,d){for(var N in M)!isNaN(N)&&d(M,+N,M[N])},zdr=function(M){var d=new SVv;
Gb(M,function(N,R,X){d[R]=N$(X)});
d.reviveUnknownFields=M.reviveUnknownFields;return d},Kt2={reviveIntoImmutable:!0};var cCA;var LtS,tJA;var tZZ,gs,Fy,Bh,Gkp,IX,lv,ar2,Uui,s1,uRZ,oX,yx,Ji;tZZ=_.Go(0);_.W_={};_.wP=function(M,d,N,R,X){d=gs(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d,N,X);if(d!==null||R&&M.noLegacyNull!==Kg)return d};
gs=function(M,d,N,R){if(d===-1)return null;var X=d+(N?0:-1),A=M.length-1;if(!(A<1+(N?0:-1))){if(X>=A){var l=M[A];if(l!=null&&typeof l==="object"&&l.constructor===Object){N=l[d];var k=!0}else if(X===A)N=l;else return}else N=M[X];if(R&&N!=null){R=R(N);if(R==null)return R;if(!Object.is(R,N))return k?l[d]=R:M[X]=R,R}return N}};
_.xY=function(M,d,N,R){Aj(M);var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;lO(X,X[_.II]|0,d,N,R);return M};
_.p5=function(M,d,N){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return IG(M,M[_.II]|0,d,N)!==void 0};
_.mv=function(M,d,N,R){var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return IG(X,X[_.II]|0,d,Bh(M,R,N))!==void 0};
_.uC=function(M){return M===cZA?2:4};
_.hi=function(M,d){M=_.wP(M,d,void 0,void 0,Mip);return M==null?_.SJ():M};
Fy=function(M,d,N,R){Aj(M);var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.II]|0;if(R==null){var l=NqN(X);if(R4p(l,X,A,N)===d)l.set(N,0);else return M}else A=XPL(X,A,N,d);lO(X,A,d,R);return M};
_.Qx=function(M,d,N,R){var X=M[_.II]|0,A=HV(X);X=XPL(M,X,N,d,A);lO(M,X,d,R,A)};
Bh=function(M,d,N){return _.qn(M,d)===N?N:-1};
_.qn=function(M,d){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return R4p(NqN(M),M,void 0,d,void 0)};
Gkp=function(M,d,N){var R=M[_.II]|0,X=HV(R),A=gs(M,N,X);if(A!=null&&A[br]===HP){if(!yz(A))return XS(A),A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var l=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(A)&&(l=A);if(l){var k=l[_.II]|0;k&2&&(l=ET(l,k))}l=ZD(l,d,!0);l!==A&&lO(M,R,N,l,X);return l};
_.uk=function(M,d,N,R){var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.II]|0;d=IG(X,A,d,N,R);if(d==null)return d;A=X[_.II]|0;if(!yz(M,A)){var l=qVj(d);l!==d&&(XS(M)&&(X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=X[_.II]|0),d=l,A=lO(X,A,N,d,R),Vt(X,A))}return d};
_.Uq=function(M,d,N,R){var X=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FG2(M,X,X[_.II]|0,d,N,R,!1,!0)};
_.ZG=function(M,d,N,R){N=Adr(N);_.xY(M,d,N,R);N&&!yz(N)&&Vt(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
_.EA=function(M,d,N,R){R=Adr(R);Fy(M,d,N,R);R&&!yz(R)&&Vt(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
IX=function(M,d,N){Aj(M);var R=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=R[_.II]|0;if(N==null)return lO(R,X,d),M;for(var A=N===$Z?7:N[_.II]|0,l=A,k=Th(A),T=k||Object.isFrozen(N),W=!0,w=!0,p=0;p<N.length;p++){var m=N[p];k||(m=yz(m),W&&(W=!m),w&&(w=m))}k||(A=W?13:5,A=w?A&-4097:A|4096);T&&A===l||(N=N$(N),l=0,A=Bx(A,X));A!==l&&sV(N,A);X=lO(R,X,d,N);2&A||!(4096&A||16&A)||Vt(R,X);return M};
lv=function(M,d,N,R){lD2(M,d,N,R);return M};
ar2=function(M,d,N){lD2(M,d,v_,void 0,N,1,!0);return M};
_.O1=function(M,d,N){M=_.wP(M,d,void 0,N);d=typeof M;M=M==null?M:d==="bigint"?_.Go((0,_.KJ)(64,M)):_.ke(M)?d==="string"?_.koZ(M):_.$er(M):void 0;return M};
_.jS=function(M,d){var N=N===void 0?!1:N;var R;return(R=_.C2v(_.wP(M,d)))!=null?R:N};
_.Cy=function(M,d,N){N=N===void 0?0:N;var R;return(R=_.Q9(_.wP(M,d)))!=null?R:N};
Uui=function(M,d){var N=N===void 0?0:N;M=_.vP(_.wP(M,d));return M!=null?M:N};
s1=function(M,d,N){N=N===void 0?tZZ:N;var R;return(R=_.gdZ(_.wP(M,d)))!=null?R:N};
uRZ=function(M){var d=d===void 0?tZZ:d;var N;return(N=_.O1(M,23))!=null?N:d};
oX=function(M,d){var N=N===void 0?0:N;var R;return(R=_.wP(M,d,void 0,void 0,_.lr))!=null?R:N};
_.rP=function(M,d,N,R){N=N===void 0?"":N;var X;return(X=_.zb(_.wP(M,d,R)))!=null?X:N};
_.K5=function(M,d){var N=N===void 0?0:N;var R;return(R=_.WP(_.wP(M,d)))!=null?R:N};
yx=function(M,d){var N=N===void 0?"0":N;M=De6(_.wP(M,d),!0);return M!=null?M:N};
Ji=function(M,d,N){return _.rP(M,Bh(M,N,d))};
_.c_=function(M,d,N,R){return _.uk(M,d,Bh(M,R,N),void 0)};
_.A8=function(M,d){return _.zb(_.wP(M,d,void 0,_.W_))};
_.Eq=function(M,d,N){return _.xY(M,d,uiq(N))};
_.hX=function(M,d,N){return _.m1(M,d,uiq(N),!1)};
_.SS=function(M,d,N){return _.xY(M,d,_.hd(N))};
_.Ti=function(M,d,N){return _.xY(M,d,PP(N))};
_.VZ=function(M,d,N){return _.xY(M,d,Si(N))};
_.U$=function(M,d,N,R){return _.m1(M,d,Si(N),"",R)};
_.CE=function(M,d,N){return _.xY(M,d,N==null?N:_.Tb(N))};
_.z7=function(M,d,N){return _.m1(M,d,N==null?N:_.Tb(N),0)};var OA=function(M,d,N){this.buffer=M;if(N&&!d)throw Error();this.JSC$6739_isImmutable=d};var Czj=function(M,d,N,R){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6742_start_=0;this.init(M,d,N,R)},bb,YRS,ZMq,Mbr,PrL;
_.F=Czj.prototype;_.F.init=function(M,d,N,R){var X=R===void 0?{}:R;R=X.aliasBytesFields===void 0?!1:X.aliasBytesFields;X=X.treatNewDataAsImmutable===void 0?!1:X.treatNewDataAsImmutable;this.aliasBytesFields=R;this.treatNewDataAsImmutable=X;M&&(M=$$i(M,this.treatNewDataAsImmutable),this.bytes_=M.buffer,this.bytesAreImmutable_=M.JSC$6739_isImmutable,this.JSC$6742_start_=d||0,this.end_=N!==void 0?this.JSC$6742_start_+N:this.bytes_.length,this.cursor_=this.JSC$6742_start_)};
_.F.free=function(){this.clear();xup.length<100&&xup.push(this)};
_.F.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6742_start_=0;this.aliasBytesFields=!1};
_.F.reset=function(){this.cursor_=this.JSC$6742_start_};
_.F.atEnd=function(){return this.cursor_==this.end_};
_.eS=function(M,d){var N=0,R=0,X=0,A=M.bytes_,l=M.cursor_;do{var k=A[l++];N|=(k&127)<<X;X+=7}while(X<32&&k&128);X>32&&(R|=(k&127)>>4);for(X=3;X<32&&k&128;X+=7)k=A[l++],R|=(k&127)<<X;bb(M,l);if(k<128)return d(N>>>0,R>>>0);throw Error("X");};
bb=function(M,d){M.cursor_=d;if(d>M.end_)throw Error("Y`"+d+"`"+M.end_);};
_.H_=function(M){var d=M.bytes_,N=M.cursor_,R=d[N++],X=R&127;if(R&128&&(R=d[N++],X|=(R&127)<<7,R&128&&(R=d[N++],X|=(R&127)<<14,R&128&&(R=d[N++],X|=(R&127)<<21,R&128&&(R=d[N++],X|=R<<28,R&128&&d[N++]&128&&d[N++]&128&&d[N++]&128&&d[N++]&128&&d[N++]&128)))))throw Error("X");bb(M,N);return X};
_.n5=function(M){var d=M.bytes_,N=M.cursor_,R=d[N],X=d[N+1],A=d[N+2];d=d[N+3];bb(M,M.cursor_+4);return(R<<0|X<<8|A<<16|d<<24)>>>0};
YRS=function(M){var d=_.n5(M);M=_.n5(M);return avj(d,M)};
ZMq=function(M){var d=_.n5(M),N=_.n5(M);M=(N>>31)*2+1;var R=N>>>20&2047;d=4294967296*(N&1048575)+d;return R==2047?d?NaN:M*Infinity:R==0?M*4.9E-324*d:M*Math.pow(2,R-1075)*(d+4503599627370496)};
_.EGN=function(M){for(var d=0,N=M.cursor_,R=N+10,X=M.bytes_;N<R;){var A=X[N++];d|=A;if((A&128)===0)return bb(M,N),!!(d&127)}throw Error("X");};
Mbr=function(M,d){if(d<0)throw Error("Z`"+d);var N=M.cursor_,R=N+d;if(R>M.end_)throw Error("Y`"+(M.end_-N)+"`"+d);M.cursor_=R;return N};
PrL=function(M,d){if(d==0)return _.SJ();var N=Mbr(M,d);M.aliasBytesFields&&M.bytesAreImmutable_?N=M.bytes_.subarray(N,N+d):(M=M.bytes_,d=N+d,N=N===d?new Uint8Array(0):iM2?M.slice(N,d):new Uint8Array(M.subarray(N,d)));return N.length==0?_.SJ():new JC(N,cV)};
Czj.prototype.getDataView=function(){var M=this.dataView_;M||(M=this.bytes_,M=this.dataView_=new DataView(M.buffer,M.byteOffset,M.byteLength));return M};
var xup=[];var NOi=function(M,d,N,R){if(xup.length){var X=xup.pop();X.init(M,d,N,R);M=X}else M=new Czj(M,d,N,R);this.decoder_=M;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;dRq(this,R)},dRq=function(M,d){d=d===void 0?{}:d;
M.discardUnknownFields=d.discardUnknownFields===void 0?!1:d.discardUnknownFields},KGZ=function(M,d,N,R){if(Rs2.length){var X=Rs2.pop();
dRq(X,R);X.decoder_.init(M,d,N,R);return X}return new NOi(M,d,N,R)},jCi,zh,X$i,Rs2;
NOi.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Rs2.length<100&&Rs2.push(this)};
NOi.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
jCi=function(M){if(M.decoder_.atEnd())return!1;M.fieldCursor_=M.decoder_.cursor_;var d=_.H_(M.decoder_)>>>0,N=d>>>3;d&=7;if(!(d>=0&&d<=5))throw Error("T`"+d+"`"+M.fieldCursor_);if(N<1)throw Error("U`"+N+"`"+M.fieldCursor_);M.nextField_=N;M.nextWireType_=d;return!0};
zh=function(M){switch(M.nextWireType_){case 0:M.nextWireType_!=0?zh(M):_.EGN(M.decoder_);break;case 1:M=M.decoder_;bb(M,M.cursor_+8);break;case 2:if(M.nextWireType_!=2)zh(M);else{var d=_.H_(M.decoder_)>>>0;M=M.decoder_;bb(M,M.cursor_+d)}break;case 5:M=M.decoder_;bb(M,M.cursor_+4);break;case 3:d=M.nextField_;do{if(!jCi(M))throw Error("V");if(M.nextWireType_==4){if(M.nextField_!=d)throw Error("W");break}zh(M)}while(1);break;default:throw Error("T`"+M.nextWireType_+"`"+M.fieldCursor_);}};
X$i=function(M,d,N){var R=M.decoder_.end_,X=_.H_(M.decoder_)>>>0,A=M.decoder_.cursor_+X,l=A-R;l<=0&&(M.decoder_.end_=A,N(d,M,void 0,void 0,void 0),l=A-M.decoder_.cursor_);if(l)throw Error("S`"+X+"`"+(X-l));M.decoder_.cursor_=A;M.decoder_.end_=R};
_.FHS=function(M){var d=_.H_(M.decoder_)>>>0;M=M.decoder_;var N=Mbr(M,d);M=M.bytes_;if(i1L){var R=M,X;(X=nqZ)||(X=nqZ=new TextDecoder("utf-8",{fatal:!0}));d=N+d;R=N===0&&d===R.length?R:R.subarray(N,d);try{var A=X.decode(R)}catch(W){if(H1N===void 0){try{X.decode(new Uint8Array([128]))}catch(w){}try{X.decode(new Uint8Array([97])),H1N=!0}catch(w){H1N=!1}}!H1N&&(nqZ=void 0);throw W;}}else{A=N;d=A+d;N=[];for(var l=null,k,T;A<d;)k=M[A++],k<128?N.push(k):k<224?A>=d?dZ():(T=M[A++],k<194||(T&192)!==128?(A--,
dZ()):N.push((k&31)<<6|T&63)):k<240?A>=d-1?dZ():(T=M[A++],(T&192)!==128||k===224&&T<160||k===237&&T>=160||((X=M[A++])&192)!==128?(A--,dZ()):N.push((k&15)<<12|(T&63)<<6|X&63)):k<=244?A>=d-2?dZ():(T=M[A++],(T&192)!==128||(k<<28)+(T-144)>>30!==0||((X=M[A++])&192)!==128||((R=M[A++])&192)!==128?(A--,dZ()):(k=(k&7)<<18|(T&63)<<12|(X&63)<<6|R&63,k-=65536,N.push((k>>10&1023)+55296,(k&1023)+56320))):dZ(),N.length>=8192&&(l=Mrp(l,N),N.length=0);A=Mrp(l,N)}return A};
_.A72=function(M){var d=_.H_(M.decoder_)>>>0;return PrL(M.decoder_,d)};
_.Vbi=function(M,d,N){var R=_.H_(M.decoder_)>>>0;for(R=M.decoder_.cursor_+R;M.decoder_.cursor_<R;)N.push(d(M.decoder_))};
Rs2=[];_.Jj=function(M,d,N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,d,N)};
_.Jj.prototype.toJSON=function(){return xe(this)};
_.Jj.prototype.serialize=function(M){return JSON.stringify(xe(this,M))};
var R62=function(M,d){if(d==null||d=="")return new M;d=JSON.parse(d);if(!Array.isArray(d))throw Error("$");return new M(SSi(d))};
_.Jj.prototype.getExtension=function(M){odj(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M.fieldIndex);yCi(this,M.fieldIndex);return M.ctor?M.isRepeated?M.getExtensionFn(this,M.ctor,M.fieldIndex,_.uC(),M.JSC$6752_hasMessageId):M.getExtensionFn(this,M.ctor,M.fieldIndex,M.JSC$6752_hasMessageId):M.isRepeated?M.getExtensionFn(this,M.fieldIndex,_.uC(),M.JSC$6752_hasMessageId):M.getExtensionFn(this,M.fieldIndex,M.defaultValue,M.JSC$6752_hasMessageId)};
_.Jj.prototype.clone=function(){var M=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=M[_.II]|0;return RG(this,M,d)?N9(this,M,!0):new this.constructor(ET(M,d,!1))};
_.Jj.prototype[br]=HP;_.Jj.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var lE6=function(M,d){this.JSC$6754_lo=M>>>0;this.JSC$6754_hi=d>>>0},BOZ=function(M){if(!M)return $RL||($RL=new lE6(0,0));
if(!/^\d+$/.test(M))return null;dq(M);return new lE6(aI,Cg)},$RL,fDS=function(M,d){this.JSC$6756_lo=M>>>0;
this.JSC$6756_hi=d>>>0},neA=function(M){if(!M)return kVi||(kVi=new fDS(0,0));
if(!/^-?\d+$/.test(M))return null;dq(M);return new fDS(aI,Cg)},kVi;var TOS=function(){this.JSC$6758_buffer_=[]},iJN,DRj;
TOS.prototype.length=function(){return this.JSC$6758_buffer_.length};
TOS.prototype.end=function(){var M=this.JSC$6758_buffer_;this.JSC$6758_buffer_=[];return M};
iJN=function(M,d,N){for(;N>0||d>127;)M.JSC$6758_buffer_.push(d&127|128),d=(d>>>7|N<<25)>>>0,N>>>=7;M.JSC$6758_buffer_.push(d)};
DRj=function(M,d){for(;d>127;)M.JSC$6758_buffer_.push(d&127|128),d>>>=7;M.JSC$6758_buffer_.push(d)};
_.LGv=function(M,d){if(d>=0)DRj(M,d);else{for(var N=0;N<9;N++)M.JSC$6758_buffer_.push(d&127|128),d>>=7;M.JSC$6758_buffer_.push(1)}};
_.aG=function(M,d){M.JSC$6758_buffer_.push(d>>>0&255);M.JSC$6758_buffer_.push(d>>>8&255);M.JSC$6758_buffer_.push(d>>>16&255);M.JSC$6758_buffer_.push(d>>>24&255)};var gpS,nK,GbL,uY2;gpS=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new TOS};
nK=function(M,d){d.length!==0&&(M.blocks_.push(d),M.totalLength_+=d.length)};
_.D$Z=function(M,d){_.LK(M,d,2);d=M.encoder_.end();nK(M,d);d.push(M.totalLength_);return d};
_.gei=function(M,d){var N=d.pop();for(N=M.totalLength_+M.encoder_.length()-N;N>127;)d.push(N&127|128),N>>>=7,M.totalLength_++;d.push(N);M.totalLength_++};
_.LK=function(M,d,N){DRj(M.encoder_,d*8+N)};
GbL=function(M,d,N){if(N!=null){switch(typeof N){case "string":BOZ(N)}_.LK(M,d,1);switch(typeof N){case "number":M=M.encoder_;trN(N);_.aG(M,aI);_.aG(M,Cg);break;case "bigint":N=BigInt.asUintN(64,N);N=new lE6(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)));M=M.encoder_;d=N.JSC$6754_hi;_.aG(M,N.JSC$6754_lo);_.aG(M,d);break;default:N=BOZ(N),M=M.encoder_,d=N.JSC$6754_hi,_.aG(M,N.JSC$6754_lo),_.aG(M,d)}}};
uY2=function(M,d,N){_.LK(M,d,2);DRj(M.encoder_,N.length);nK(M,M.encoder_.end());nK(M,N)};var BqZ,p$r,hsS;BqZ=_.sA();_.WHA=_.sA();_.w$6=_.sA();p$r=_.sA();_.ib=_.sA();_.mRZ=_.sA();hsS=_.sA();_.QPA=_.sA();_.qi2=_.sA();var oG=function(M,d,N){this.$$binaryReaderFn=M;this.$$binaryWriterFn=d;M=fJ(BqZ);this.$$isMsg=!!M&&N===M||!1},m$A=kbZ(function(M,d,N,R,X){if(M.nextWireType_!==2)return!1;
X$i(M,Gkp(d,R,N),X);return!0},WGL),h4q=kbZ(function(M,d,N,R,X){if(M.nextWireType_!==2)return!1;
X$i(M,Gkp(d,R,N),X);return!0},WGL),ev=Symbol(),Sv=Symbol(),OJi=Symbol(),Jd6=Symbol(),oeZ=Symbol(),wPv,pPq;var MvA,IEZ,vpq,OsL,jPN,sPi,Pfi,opr,r7i,KHA,y7L,c7Z,Sii,bsZ,esq;MvA=function(M,d){var N=new gpS;cd2(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N,KK(ev,bO,Hx,d));nK(N,N.encoder_.end());M=new Uint8Array(N.totalLength_);d=N.blocks_;for(var R=d.length,X=0,A=0;A<R;A++){var l=d[A];M.set(l,X);X+=l.length}N.blocks_=[M];return M};
IEZ=_.iO(function(M,d,N){if(M.nextWireType_!==1)return!1;_.fK(d,N,ZMq(M.decoder_));return!0},HJj,hsS);
vpq=_.iO(function(M,d,N,R){if(M.nextWireType_!==1)return!1;_.Qx(d,N,R,ZMq(M.decoder_));return!0},HJj,hsS);
OsL=_.iO(function(M,d,N,R){if(M.nextWireType_!==5)return!1;var X=_.n5(M.decoder_);M=(X>>31)*2+1;var A=X>>>23&255;X&=8388607;_.Qx(d,N,R,A==255?X?NaN:M*Infinity:A==0?M*1.401298464324817E-45*X:M*Math.pow(2,A-150)*(X+8388608));return!0},function(M,d,N){d=_.lr(d);
d!=null&&(_.LK(M,N,5),M=M.encoder_,N=tj||(tj=new DataView(new ArrayBuffer(8))),N.setFloat32(0,+d,!0),Cg=0,aI=N.getUint32(0,!0),_.aG(M,aI))},_.sA());
_.f5=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;_.fK(d,N,_.eS(M.decoder_,EV));return!0},_.UA,_.ib);
jPN=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.eS(M.decoder_,EV);_.fK(d,N,M===0?void 0:M);return!0},_.UA,_.ib);
sPi=_.iO(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.Qx(d,N,R,_.eS(M.decoder_,EV));return!0},_.UA,_.ib);
_.L5=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;_.fK(d,N,_.H_(M.decoder_));return!0},tiA,p$r);
Pfi=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.H_(M.decoder_);_.fK(d,N,M===0?void 0:M);return!0},tiA,p$r);
opr=_.iO(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.Qx(d,N,R,_.H_(M.decoder_));return!0},tiA,p$r);
r7i=_.iO(function(M,d,N){if(M.nextWireType_!==1)return!1;_.fK(d,N,YRS(M.decoder_));return!0},_.aDr,_.mRZ);
KHA=_.e4S(function(M,d,N){if(M.nextWireType_!==1&&M.nextWireType_!==2)return!1;d=_.hj(d,d[_.II]|0,N);M.nextWireType_==2?_.Vbi(M,YRS,d):d.push(YRS(M.decoder_));return!0},function(M,d,N){d=_.bJq(wVj,d,!1);
if(d!=null)for(var R=0;R<d.length;R++)GbL(M,N,d[R])},_.mRZ);
_.ti=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;_.fK(d,N,_.EGN(M.decoder_));return!0},_.U$r,_.WHA);
y7L=_.iO(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.Qx(d,N,R,_.EGN(M.decoder_));return!0},_.U$r,_.WHA);
_.G7=_.iO(function(M,d,N){if(M.nextWireType_!==2)return!1;_.fK(d,N,_.FHS(M));return!0},_.x$j,_.w$6);
_.J7p=_.iO(function(M,d,N,R){if(M.nextWireType_!==2)return!1;_.Qx(d,N,R,_.FHS(M));return!0},_.x$j,_.w$6);
c7Z=_.e4S(function(M,d,N){if(M.nextWireType_!==2)return!1;M=_.FHS(M);_.hj(d,d[_.II]|0,N).push(M);return!0},function(M,d,N){d=_.bJq(_.zb,d,!0);
if(d!=null)for(var R=0;R<d.length;R++){var X=M,A=N,l=d[R];l!=null&&uY2(X,A,Xj2(l))}},_.w$6);
Sii=void 0;Sii=Sii===void 0?BqZ:Sii;_.U1=new oG(function(M,d,N,R,X){if(M.nextWireType_!==2)return!1;R=ZD(void 0,R,!0);_.hj(d,d[_.II]|0,N).push(R);X$i(M,R,X);return!0},function(M,d,N,R,X){if(Array.isArray(d))for(var A=0;A<d.length;A++)YTr(M,d[A],N,R,X)},Sii);
_.ub=kbZ(function(M,d,N,R,X,A){if(M.nextWireType_!==2)return!1;var l=d[_.II]|0;XPL(d,l,A,N,HV(l));d=Gkp(d,R,N);X$i(M,d,X);return!0},YTr);
_.zsv=_.iO(function(M,d,N){if(M.nextWireType_!==2)return!1;_.fK(d,N,_.A72(M));return!0},_.ZJp,_.QPA);
bsZ=_.iO(function(M,d,N,R){if(M.nextWireType_!==2)return!1;_.Qx(d,N,R,_.A72(M));return!0},_.ZJp,_.QPA);
esq=_.iO(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.Qx(d,N,R,_.H_(M.decoder_)>>>0);return!0},function(M,d,N){d=_.vP(d);
d!=null&&d!=null&&(_.LK(M,N,0),DRj(M.encoder_,d))},_.sA());
_.C5=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;_.fK(d,N,_.H_(M.decoder_));return!0},_.EeL,_.qi2);var isj=function(){var M=Hsi,d=npi;this.fieldIndex=175237375;this.ctor=d;this.isRepeated=0;this.getExtensionFn=_.uk;this.defaultValue=void 0;this.JSC$6752_hasMessageId=M.messageId!=null?eJ:void 0};
isj.prototype.register=function(){Vx(this)};var fEA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(fEA,_.Jj);var LHZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(LHZ,_.Jj);var AjZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(AjZ,_.Jj);var tbj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(tbj,_.Jj);var GVp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(GVp,_.Jj);var aES=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(aES,_.Jj);var URj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(URj,_.Jj);URj.prototype.getData=function(){return _.hi(this,2)};var umZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(umZ,_.Jj);var Cfv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Cfv,_.Jj);Cfv.prototype.getStyle=function(){return _.uk(this,fEA,1)};var YZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(YZ,_.Jj);YZ.prototype.getPayloadCase=function(){return _.qn(this,MO)};
YZ.prototype.getStyle=function(){return _.c_(this,Cfv,6,MO)};
var xRA=function(){var M=new YZ,d=new GVp;return _.EA(M,7,MO,d)},Yiq=function(){var M=new YZ,d=new aES;
return _.EA(M,8,MO,d)},MO=[1,
2,3,4,5,6,7,8];var ZsZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(ZsZ,_.Jj);var EpZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(EpZ,_.Jj);var Mre=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Mre,_.Jj);var dpz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(dpz,_.Jj);var NZC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(NZC,_.Jj);var RZL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(RZL,_.Jj);var XjL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(XjL,_.Jj);var FAV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(FAV,_.Jj);FAV.prototype.getData=function(){return _.hi(this,2)};var ALI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(ALI,_.Jj);var F1S=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(F1S,_.Jj);F1S.prototype.getPayloadCase=function(){return _.qn(this,xh)};
var xh=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Yh=function(M,d){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.code=d===void 0?2:d};
_.v(Yh,Error);var Vrt=Promise;var lvV=function(M){this.channelPromise=M};
lvV.prototype.send=function(M,d,N){this.channelPromise.then(function(R){R.send(M,d,N)})};var $pL=function(M,d){this.data=M;this.channel=d};
$pL.prototype.reply=function(M,d,N){this.channel.send(M,d,N)};var BZL=function(M){this.JSC$6830_port_=M};
BZL.prototype.send=function(M,d,N){N=N===void 0?[]:N;var R=new MessageChannel;k6V(R.port1,d);this.JSC$6830_port_.postMessage(M,[R.port2].concat(N))};
var TZz=function(M,d){k6V(M,d);return new BZL(M)},k6V=function(M,d){d&&(M.onmessage=function(N){d(new $pL(N.data,TZz(N.ports[0])))})};var Dpo=function(M){this.verifier_=M},gig=function(M){var d=Object.create(null);
(typeof M==="string"?[M]:M).forEach(function(N){if(N==="null")throw Error("ba");d[N]=!0});
return function(N){return d[N]===!0}};_.WAo=function(){if(!_.Np.addEventListener||!Object.defineProperty)return!1;var M=!1,d=Object.defineProperty({},"passive",{get:function(){M=!0}});
try{var N=function(){};
_.Np.addEventListener("test",N,d);_.Np.removeEventListener("test",N,d)}catch(R){}return M}();var wjd;_.Zk=function(M){var d=M.destination;var N=M.iframe;var R=M.origin;var X=M.channelName===void 0?"ZNWN1d":M.channelName;var A=M.onMessage===void 0?void 0:M.onMessage;M=M.onEstablished===void 0?void 0:M.onEstablished;return wjd({destination:d,getSource:function(){return N.contentWindow},
originVerifier:R instanceof Dpo?R:typeof R==="function"?new Dpo(R):new Dpo(gig(R)),channelName:X,onMessage:A,onEstablished:M})};
wjd=function(M){var d=M.destination;var N=M.getSource;var R=M.originVerifier;var X=M.token===void 0?void 0:M.token;var A=M.channelName;var l=M.onMessage===void 0?void 0:M.onMessage;var k=M.onEstablished===void 0?void 0:M.onEstablished;return new lvV(new Vrt(function(T,W){var w=function(p){p.source&&p.source===N()&&R.verifier_(p.origin)&&(p.data.n||p.data)===A&&(d.removeEventListener("message",w,!1),X&&p.data.t!==X?W(Error("ca`"+A+"`"+X+"`"+p.data.t)):(T(TZz(p.ports[0],l)),k&&k(p)))};
d.addEventListener("message",w,!1)}))};var pjV=function(M){try{M()}catch(d){RN(d)}};var hZ3=function(M){var d=this;var N=M.getMessageType;var R=M.onUnregisteredMessage===void 0?function(){}:M.onUnregisteredMessage;
var X=M.onBeforeRegisteredMessage===void 0?function(){}:M.onBeforeRegisteredMessage;
M=M.onAfterRegisteredMessage===void 0?function(){}:M.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=N;this.onUnregisteredMessage_=R;this.onBeforeRegisteredMessage_=X;this.onAfterRegisteredMessage_=M;this.onMessage=function(A){return mpz(d,A)}};
hZ3.prototype.register=function(M,d){this.registry_.set(M,d);return this};
var mpz=function(M,d){var N=M.getMessageType_(d.data),R=M.registry_.get(N);R?(pjV(function(){return M.onBeforeRegisteredMessage_(d,N)}),pjV(function(){return R(d)}),pjV(function(){return M.onAfterRegisteredMessage_(d,N)})):pjV(function(){return M.onUnregisteredMessage_(d,N)})};var QNI=function(M){this.JSC$6847_channel_=M},IvL,vi3;
QNI.prototype.send=function(M,d,N){this.JSC$6847_channel_.send(xe(M),d,N)};
_.qSV=function(M,d){return function(N){var R=new M(N.data);return d(new $pL(R,N.channel))}};
IvL=function(M){return function(d){return M(new $pL(d.data,new QNI(d.channel)))}};
vi3=function(M,d){return IvL(_.qSV(M,d))};var OZz=function(M,d,N,R){this.registry=M;this.delegate=d;this.receiveMessageConstructor=N;this.createInitMessage=R;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},XxZ=function(M){var d=new hZ3({getMessageType:M.getPayloadCase});
return new OZz(d,new QNI(_.Zk({iframe:M.child,destination:window,origin:M.origin,channelName:M.channelName,onMessage:vi3(M.receiveMessageConstructor,d.onMessage)})),M.receiveMessageConstructor,M.createInitMessage)},jNz=function(M,d){M.createInitMessage=d};
OZz.prototype.send=function(M){if(!this.initialised)throw new Yh("Attempted to send a message before initialisation.");this.delegate.send(M)};
var sNV=function(M,d){return _.B(function(N){if(!M.initialised)throw new Yh("Attempted to send a message before initialisation.");return N.return(new Promise(function(R){M.delegate.send(d,vi3(M.receiveMessageConstructor,R))}))})};
OZz.prototype.init=function(){var M=this;return _.B(function(d){if(M.initialised)throw new Yh("Attempted to initialise twice. The SDK can only be initialised once.");if(M.createInitMessage!==void 0){var N=M.delegate,R=N.send,X=M.createInitMessage;var A=new LHZ;var l=[].concat(_.wu(M.features));A=_.ws(A,1,l,_.Tb);R.call(N,X.call(M,A))}M.initialised=!0;_.Vy(d)})};
var E1=function(M,d){if(M.initialised)throw new Yh('Attempted to set up API "'+d+'" after initialisation. All APIs must be set up before initialising the SDK.');M.features.add(d);return M.registry};
_.Hm.Object.defineProperties(OZz.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var P2g=function(M){this.channel=M;this.registered=!1};
P2g.prototype.update=function(M){if(this.channel.isInitialised){if(!this.registered)throw new Yh("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var d=new YZ;var N=new tbj;N=_.Eq(N,1,M);d=_.EA(d,2,MO,N);this.channel.send(d)}else this.register();this.JSC$6861_audioEnabled=M};
P2g.prototype.register=function(){E1(this.channel,1);this.registered=!0};
P2g.prototype.isAudioEnabled=function(){return this.JSC$6861_audioEnabled};var oiL=function(M){this.channel=M};
_.F=oiL.prototype;_.F.onFirstFrameReady=function(M){E1(this.channel,2).register(11,function(d){d=_.c_(d.data,ZsZ,11,xh);if(!d)throw new Yh("Unexpectedly nonexistent GameFirstFrameReadyEvent");M(_.rP(d,1))})};
_.F.onReady=function(M){E1(this.channel,2).register(4,function(d){d=_.c_(d.data,Mre,4,xh);if(!d)throw new Yh("Unexpectedly nonexistent GameReadyEvent");M(_.rP(d,1))})};
_.F.onLevelComplete=function(M){E1(this.channel,2).register(5,function(d){d=_.c_(d.data,dpz,5,xh);if(!d)throw new Yh("Unexpectedly nonexistent LevelCompleteEvent");M(_.rP(d,1),_.Cy(d,2))})};
_.F.onGameOver=function(M){E1(this.channel,2).register(6,function(d){d=_.c_(d.data,EpZ,6,xh);if(!d)throw new Yh("Unexpectedly nonexistent GameOverEvent");M(_.rP(d,1))})};
_.F.pause=function(){var M=this;if(!this.channel.isInitialised)return E1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Yh("Using unregistered Game Feature: pause.");var d=xRA();return new Promise(function(N){return _.B(function(R){if(R.nextAddress==1)return _.D(R,sNV(M.channel,d),2);N();_.Vy(R)})})};
_.F.resume=function(){var M=this;if(!this.channel.isInitialised)return E1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Yh("Using unregistered Game Feature: resume.");var d=Yiq();return new Promise(function(N){return _.B(function(R){if(R.nextAddress==1)return _.D(R,sNV(M.channel,d),2);N();_.Vy(R)})})};var rLV=function(M){this.channel=M};
rLV.prototype.onReady=function(M){E1(this.channel,5).register(8,function(d){if(!_.c_(d.data,NZC,8,xh))throw new Yh("Unexpectedly nonexistent PageReadyEvent");M()})};var KAe=function(M){this.channel=M};
KAe.prototype.onChange=function(M){E1(this.channel,3).register(7,function(d){d=_.c_(d.data,RZL,7,xh);if(!d)throw new Yh("Unexpectedly nonexistent ScoreEvent");M(_.rP(d,1),_.Cy(d,2))})};var yLm={load:function(){throw new Yh("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Yh("Storage used, but storage.onSave() listener not set!");}},JLV=function(M){this.channel=M;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},cLe=function(M){E1(M.channel,4).register(2,yLm.load).register(3,yLm.save);
M.initialSetupDone=!0};
JLV.prototype.onLoad=function(M){this.initialSetupDone||cLe(this);this.loadRegistered||(this.loadRegistered=!0,E1(this.channel,4).register(2,function(d){var N,R,X;return _.B(function(A){if(A.nextAddress==1){N=_.c_(d.data,XjL,2,xh);if(!N)throw new Yh("Unexpectedly nonexistent StorageLoad");R=_.rP(N,1);return _.D(A,M(R),2)}X=A.yieldResult;var l=d.reply,k=new YZ;var T=new URj;T=_.VZ(T,1,R);T=_.xY(T,2,_.zo(X,!1));k=_.EA(k,3,MO,T);l.call(d,k);_.Vy(A)})}))};
JLV.prototype.onSave=function(M){this.initialSetupDone||cLe(this);this.saveRegistered||(this.saveRegistered=!0,E1(this.channel,4).register(3,function(d){var N,R,X;return _.B(function(A){if(A.nextAddress==1){N=_.c_(d.data,FAV,3,xh);if(!N)throw new Yh("Unexpectedly nonexistent StorageSave");R=_.rP(N,1);X=rZi(N.getData());return _.D(A,M(R,X),2)}var l=d.reply,k=new YZ;var T=new umZ;T=_.VZ(T,1,R);k=_.EA(k,4,MO,T);l.call(d,k);_.Vy(A)})}))};var SSL=function(M){this.channel=M};
SSL.prototype.update=function(M){if(!this.channel.features.has(6))throw new Yh("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var d=new YZ,N=new Cfv;M=_.ZG(N,1,M);d=_.EA(d,6,MO,M);this.channel.send(d)};
SSL.prototype.register=function(){E1(this.channel,6)};var zZz=function(M){this.channel=M;this.userActivityLoggingIntervalMs=0};
zZz.prototype.onUserActivity=function(M,d){this.userActivityLoggingIntervalMs=d;E1(this.channel,7).register(9,function(N){if(!_.c_(N.data,ALI,9,xh))throw new Yh("Unexpectedly nonexistent ClickEvent");M()})};var bZV=function(M){var d=this;this.channel=M;this.init=this.channel.init.bind(this.channel);this.page=new rLV(this.channel);this.game=new oiL(this.channel);this.audio=new P2g(this.channel);this.score=new KAe(this.channel);this.storage=new JLV(this.channel);this.style=new SSL(this.channel);this.userActivity=new zZz(this.channel);jNz(this.channel,function(N){var R=new AjZ;N=_.ZG(R,1,N);N=_.SS(N,3,d.userActivity.userActivityLoggingIntervalMs);R=d.audio.isAudioEnabled();R!==void 0&&_.Eq(N,2,R);R=new YZ;
return _.EA(R,5,MO,N)})};var eZg=function(){this.timedFunctionContext=0};
eZg.prototype.timeExecution=function(M,d){var N=this;return function(){var R=_.wH.apply(0,arguments);N.timedFunctionContext=M;return d.apply(null,_.wu(R))}};var HZL=function(){var M={};this.priorityTasks=(M[3]=[],M[2]=[],M[1]=[],M);this.isFlushing=!1},My=function(M,d,N){var R=nig(M,N);
M.priorityTasks[N].push(d);R&&M.priorityTasks[N].length===1&&M.flush()},nig=function(M,d){return Object.keys(M.priorityTasks).map(function(N){return Number(N)}).filter(function(N){return!isNaN(N)&&N>d}).every(function(N){return M.priorityTasks[N].length===0})};
HZL.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(M){return M.length>0});)iZL(this,3),iZL(this,2),iZL(this,1)}catch(M){throw Object.values(this.priorityTasks).forEach(function(d){return void d.splice(0,d.length)}),M;
}finally{this.isFlushing=!1}}};
var iZL=function(M,d){for(;nig(M,d)&&M.priorityTasks[d].length>0;)M.priorityTasks[d][0](),M.priorityTasks[d].shift()};
_.Hm.Object.defineProperties(HZL.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(M){return M.length>0})}}});var TsZ={};var fvC=globalThis.trustedTypes,lGS=fvC,BsZ;var NO=function(M){this.privateDoNotAccessOrElseWrappedResourceUrl=M};
NO.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var LAV=_.a1([""]),trI=m5q(["\x00"],["\\0"]),G6d=m5q(["\n"],["\\n"]),avV=m5q(["\x00"],["\\u0000"]);FC(function(M){return M(LAV)})||FC(function(M){return M(trI)})||FC(function(M){return M(G6d)})||FC(function(M){return M(avV)});var DW;_.A_=function(M,d){this.privateDoNotAccessOrElseWrappedUrl=d};
_.A_.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.UpV=VL("about:blank");DW=VL("about:invalid#zClosurez");var D9S=function(M){this.isValid=M},uiz=new D9S(function(M){return/^[^:]*([/?#]|$)/.test(M)}),C2m=BQ("data"),xpV=BQ("http"),YSo=BQ("https"),ZZ3=BQ("ftp"),EiV=BQ("mailto"),MJe=BQ("intent"),deL=BQ("vnd.youtube"),gZZ=[C2m,
xpV,YSo,EiV,ZZ3,uiz],W1L=dH(function(){return typeof URL==="function"}),N3I=["data:",
"http:","https:","mailto:","ftp:"],pxp=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var vQ=function(M){this.privateDoNotAccessOrElseWrappedHtml=M};
vQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var IRv=dH(function(){return new vQ(fvC?fvC.emptyHTML:"")});var Rdo={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"},PQ=function(M,d){var N=Error.call(this,M+" cannot be used with intent "+Rdo[d]);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.type=M;this.intent=d;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.v(PQ,Error);_.KS=function(M){this.privateDoNotAccessOrElseWrappedScript=M};
_.KS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var qAZ=function(M){this.privateDoNotAccessOrElseWrappedAttributePrefix=M};
qAZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var IGS="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Oq2=function(M){var d=_.cy("window.location.href");M==null&&(M='Unknown Error of type "null/undefined"');if(typeof M==="string")return{message:M,name:"Unknown error",lineNumber:"Not available",fileName:d,stack:"Not available"};var N=!1;try{var R=M.lineNumber||M.line||"Not available"}catch(l){R="Not available",N=!0}try{var X=M.fileName||M.filename||M.sourceURL||_.Np.$googDebugFname||d}catch(l){X="Not available",N=!0}d=XVm(M);if(!(!N&&M.lineNumber&&M.fileName&&M.stack&&M.message&&M.name)){N=M.message;
if(N==null){if(M.constructor&&M.constructor instanceof Function){if(M.constructor.name)N=M.constructor.name;else if(N=M.constructor,MI[N])N=MI[N];else{N=String(N);if(!MI[N]){var A=/function\s+([^\(]+)/m.exec(N);MI[N]=A?A[1]:"[Anonymous]"}N=MI[N]}N='Unknown Error of type "'+N+'"'}else N="Unknown Error of unknown type";typeof M.toString==="function"&&Object.prototype.toString!==M.toString&&(N+=": "+M.toString())}return{message:N,name:M.name||"UnknownError",lineNumber:R,fileName:X,stack:d||"Not available"}}return{message:M.message,
name:M.name,lineNumber:M.lineNumber,fileName:M.fileName,stack:d}},XVm=function(M,d){d||(d={});
d[FtL(M)]=!0;var N=M.stack||"",R=M.cause;R&&!d[FtL(R)]&&(N+="\nCaused by: ",R.stack&&R.stack.indexOf(R.toString())==0||(N+=typeof R==="string"?R:R.message+"\n"),N+=XVm(R,d));M=M.errors;if(Array.isArray(M)){R=1;var X;for(X=0;X<M.length&&!(R>4);X++)d[FtL(M[X])]||(N+="\nInner error "+R++ +": ",M[X].stack&&M[X].stack.indexOf(M[X].toString())==0||(N+=typeof M[X]==="string"?M[X]:M[X].message+"\n"),N+=XVm(M[X],d));X<M.length&&(N+="\n... "+(M.length-X)+" more inner errors")}return N},FtL=function(M){var d=
"";
typeof M.toString==="function"&&(d=""+M);return d+M.stack},MI={};var ACJ,us,CO,lmJ,$eJ,VJe,rx,KL,ko3;ACJ=function(M,d){for(var N=M.split("%s"),R="",X=Array.prototype.slice.call(arguments,1);X.length&&N.length>1;)R+=N.shift()+X.shift();return R+N.join("%s")};
_.ex=function(M){return encodeURIComponent(String(M))};
us=function(M){return decodeURIComponent(M.replace(/\+/g," "))};
CO=function(M){CPS.test(M)&&(M.indexOf("&")!=-1&&(M=M.replace(LKr,"&amp;")),M.indexOf("<")!=-1&&(M=M.replace(taN,"&lt;")),M.indexOf(">")!=-1&&(M=M.replace(GXr,"&gt;")),M.indexOf('"')!=-1&&(M=M.replace(aF6,"&quot;")),M.indexOf("'")!=-1&&(M=M.replace(U5j,"&#39;")),M.indexOf("\x00")!=-1&&(M=M.replace(usA,"&#0;")));return M};
lmJ=function(M){var d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var N=_.Np.document.createElement("div");return M.replace(VJe,function(R,X){var A=d[R];if(A)return A;X.charAt(0)=="#"&&(X=Number("0"+X.slice(1)),isNaN(X)||(A=String.fromCharCode(X)));A||(_.zP(N,O0(R+" ")),A=N.firstChild.nodeValue.slice(0,-1));return d[R]=A})};
$eJ=function(M){return M.replace(/&([^;]+);/g,function(d,N){switch(N){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return N.charAt(0)!="#"||(N=Number("0"+N.slice(1)),isNaN(N))?d:String.fromCharCode(N)}})};
VJe=/&([^;\s<&]+);?/g;_.CbZ=function(M){return String(M).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.B3L=String.prototype.repeat?function(M,d){return M.repeat(d)}:function(M,d){return Array(d+1).join(M)};
_.dl=function(M,d){if(!Number.isFinite(M))return String(M);M=String(M);var N=M.indexOf(".");N===-1&&(N=M.length);var R=M[0]==="-"?"-":"";R&&(M=M.substring(1));return R+(0,_.B3L)("0",Math.max(0,d-N))+M};
rx=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Nn()).toString(36)};
KL=function(M){for(var d=0,N=0;N<M.length;++N)d=31*d+M.charCodeAt(N)>>>0;return d};
_.Ff=function(M){return String(M).replace(/\-([a-z])/g,function(d,N){return N.toUpperCase()})};
_.Xf=function(M){return String(M).replace(/([A-Z])/g,"-$1").toLowerCase()};
ko3=function(M){return M.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(d,N,R){return N+R.toUpperCase()})};var T3L=function(){this.names=new Map};
T3L.prototype.getName=function(M){var d=this.names.get(M);if(d)return d;var N;d=(N=M.description)!=null?N:rx();this.names.set(M,d);return d};var Deo=function(M){var d=Error.call(this,M?M.length+" errors occurred during unsubscription:\n"+M.map(function(N,R){return R+1+") "+N.toString()}).join("\n  "):"");
this.message=d.message;"stack"in d&&(this.stack=d.stack);this.errors=M;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.v(Deo,Error);var t_=function(M){this.initialTeardown=M;this.closed=!1;this._teardowns=this._parentage=null};
_.F=t_.prototype;
_.F.unsubscribe=function(){if(!this.closed){this.closed=!0;var M=this._parentage;if(Array.isArray(M))for(var d=_.V(M),N=d.next();!N.done;N=d.next())N.value.remove(this);else M==null||M.remove(this);d=this.initialTeardown;if(LS(d))try{d()}catch(A){var R=A instanceof Deo?A.errors:[A]}var X=this._teardowns;if(X)for(this._teardowns=null,d=_.V(X),N=d.next();!N.done;N=d.next()){N=N.value;try{LS(N)?N():N.unsubscribe()}catch(A){N=void 0,R=(N=R)!=null?N:[],A instanceof Deo?R=[].concat(_.wu(R),_.wu(A.errors)):
R.push(A)}}if(R)throw new Deo(R);}};
_.F.add=function(M){if(M&&M!==this)if(this.closed)LS(M)?M():M.unsubscribe();else{if(M instanceof t_){if(M.closed||M._hasParent(this))return;M._addParent(this)}var d;(this._teardowns=(d=this._teardowns)!=null?d:[]).push(M)}};
_.F._hasParent=function(M){var d=this._parentage;return d===M||Array.isArray(d)&&d.includes(M)};
_.F._addParent=function(M){var d=this._parentage;this._parentage=Array.isArray(d)?(d.push(M),d):d?[d,M]:M};
_.F._removeParent=function(M){var d=this._parentage;d===M?this._parentage=null:Array.isArray(d)&&fS(d,M)};
_.F.remove=function(M){var d=this._teardowns;d&&fS(d,M);M instanceof t_&&M._removeParent(this)};
var gdg=new t_;gdg.closed=!0;t_.JSC$6957_EMPTY=gdg;var sGL=function(){setTimeout.apply(null,_.wu(_.wH.apply(0,arguments)))};var NI=function(M){t_.call(this);this.JSC$6962_isStopped=!1;this.destination=M instanceof NI?M:new Rx(!M||LS(M)?{next:M!=null?M:void 0}:M);jGj(M)&&M.add(this)};
_.v(NI,t_);NI.JSC$6957_EMPTY=t_.JSC$6957_EMPTY;NI.create=function(M,d,N){return new XW(M,d,N)};
_.F=NI.prototype;_.F.next=function(M){this.JSC$6962_isStopped||this._next(M)};
_.F.error=function(M){this.JSC$6962_isStopped||(this.JSC$6962_isStopped=!0,this._error(M))};
_.F.complete=function(){this.JSC$6962_isStopped||(this.JSC$6962_isStopped=!0,this._complete())};
_.F.unsubscribe=function(){this.closed||(this.JSC$6962_isStopped=!0,t_.prototype.unsubscribe.call(this))};
_.F._next=function(M){this.destination.next(M)};
_.F._error=function(M){this.destination.error(M);this.unsubscribe()};
_.F._complete=function(){this.destination.complete();this.unsubscribe()};
var Rx=function(M){this.partialObserver=M};
Rx.prototype.next=function(M){var d=this.partialObserver;if(d.next)try{d.next(M)}catch(N){aO(N)}};
Rx.prototype.error=function(M){var d=this.partialObserver;if(d.error)try{d.error(M)}catch(N){aO(N)}else aO(M)};
Rx.prototype.complete=function(){var M=this.partialObserver;if(M.complete)try{M.complete()}catch(d){aO(d)}};
var XW=function(M,d,N){NI.call(this);var R;LS(M)||!M?R={next:M!=null?M:void 0,error:d!=null?d:void 0,complete:N!=null?N:void 0}:R=M;this.destination=new Rx(R)};
_.v(XW,NI);XW.JSC$6957_EMPTY=NI.JSC$6957_EMPTY;XW.create=NI.create;var Y8=typeof Symbol==="function"&&Symbol.observable||"@@observable";var CS=function(M){M&&(this._subscribe=M)};
_.F=CS.prototype;_.F.lift=function(M){var d=new CS;d.source=this;d.operator=M;return d};
_.F.subscribe=function(M,d,N){M=M&&M instanceof NI||M&&LS(M.next)&&LS(M.error)&&LS(M.complete)&&jGj(M)?M:new XW(M,d,N);d=this.operator;N=this.source;M.add(d?d.call(M,N):N?this._subscribe(M):this._trySubscribe(M));return M};
_.F._trySubscribe=function(M){try{return this._subscribe(M)}catch(d){M.error(d)}};
_.F.forEach=function(M,d){var N=this;d=oZi(d);return new d(function(R,X){var A=N.subscribe(function(l){try{M(l)}catch(k){X(k),A==null||A.unsubscribe()}},X,R)})};
_.F._subscribe=function(M){var d;return(d=this.source)==null?void 0:d.subscribe(M)};
CS.prototype[Y8]=function(){return this};
CS.prototype.pipe=function(){var M=_.wH.apply(0,arguments);return M.length?POZ(M)(this):this};
CS.create=function(M){return new CS(M)};var Wt3=function(){var M=Error.call(this,"object unsubscribed");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.v(Wt3,Error);var Yt=function(){this.observers=[];this.hasError=this.JSC$6978_isStopped=this.closed=!1;this.thrownError=null};
_.v(Yt,CS);_.F=Yt.prototype;_.F.lift=function(M){var d=new FW(this,this);d.operator=M;return d};
_.F._throwIfClosed=function(){if(this.closed)throw new Wt3;};
_.F.next=function(M){this._throwIfClosed();if(!this.JSC$6978_isStopped){var d=this.observers.slice();d=_.V(d);for(var N=d.next();!N.done;N=d.next())N.value.next(M)}};
_.F.error=function(M){this._throwIfClosed();if(!this.JSC$6978_isStopped){this.hasError=this.JSC$6978_isStopped=!0;this.thrownError=M;for(var d=this.observers;d.length;)d.shift().error(M)}};
_.F.complete=function(){this._throwIfClosed();if(!this.JSC$6978_isStopped){this.JSC$6978_isStopped=!0;for(var M=this.observers;M.length;)M.shift().complete()}};
_.F.unsubscribe=function(){this.JSC$6978_isStopped=this.closed=!0;this.observers=null};
_.F._trySubscribe=function(M){this._throwIfClosed();return CS.prototype._trySubscribe.call(this,M)};
_.F._subscribe=function(M){this._throwIfClosed();this._checkFinalizedStatuses(M);return this._innerSubscribe(M)};
_.F._innerSubscribe=function(M){var d=this,N=this.JSC$6978_isStopped,R=this.observers;return this.hasError||N?t_.JSC$6957_EMPTY:(R.push(M),new t_(function(){return fS(d.observers,M)}))};
_.F._checkFinalizedStatuses=function(M){var d=this.thrownError,N=this.JSC$6978_isStopped;this.hasError?M.error(d):N&&M.complete()};
Yt.create=function(M,d){return new FW(M,d)};
var FW=function(M,d){Yt.call(this);this.destination=M;this.source=d};
_.v(FW,Yt);FW.create=Yt.create;FW.prototype.next=function(M){var d,N;(d=this.destination)==null||(N=d.next)==null||N.call(d,M)};
FW.prototype.error=function(M){var d,N;(d=this.destination)==null||(N=d.error)==null||N.call(d,M)};
FW.prototype.complete=function(){var M,d;(M=this.destination)==null||(d=M.complete)==null||d.call(M)};
FW.prototype._subscribe=function(M){var d,N;return(N=(d=this.source)==null?void 0:d.subscribe(M))!=null?N:t_.JSC$6957_EMPTY};var rF=function(M){Yt.call(this);this._value=M};
_.v(rF,Yt);rF.create=Yt.create;rF.prototype._subscribe=function(M){var d=Yt.prototype._subscribe.call(this,M);!d.closed&&M.next(this._value);return d};
rF.prototype.getValue=function(){var M=this.thrownError,d=this._value;if(this.hasError)throw M;this._throwIfClosed();return d};
rF.prototype.next=function(M){Yt.prototype.next.call(this,this._value=M)};
_.Hm.Object.defineProperties(rF.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var I2=new CS(function(M){return M.complete()});var x8=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var bKj=function(M){return M&&typeof M.length==="number"&&typeof M!=="function"};var wVV={now:function(){return(wVV.delegate||Date).now()},
delegate:void 0};var el=function(M,d,N){M=M===void 0?Infinity:M;d=d===void 0?Infinity:d;N=N===void 0?wVV:N;Yt.call(this);this.JSC$7000_bufferSize=M;this.windowTime=d;this.timestampProvider=N;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=d===Infinity;this.JSC$7000_bufferSize=Math.max(1,M);this.windowTime=Math.max(1,d)};
_.v(el,Yt);el.create=Yt.create;el.prototype.next=function(M){var d=this.buffer,N=this.infiniteTimeWindow,R=this.timestampProvider,X=this.windowTime;this.JSC$6978_isStopped||(d.push(M),!N&&d.push(R.now()+X));pVd(this);Yt.prototype.next.call(this,M)};
el.prototype._subscribe=function(M){this._throwIfClosed();pVd(this);for(var d=this._innerSubscribe(M),N=this.infiniteTimeWindow,R=this.buffer.slice(),X=0;X<R.length&&!M.closed;X+=N?1:2)M.next(R[X]);this._checkFinalizedStatuses(M);return d};
var pVd=function(M){var d=M.JSC$7000_bufferSize,N=M.timestampProvider,R=M.buffer;M=M.infiniteTimeWindow;var X=(M?1:2)*d;d<Infinity&&X<R.length&&R.splice(0,R.length-X);if(!M){d=N.now();N=0;for(M=1;M<R.length&&R[M]<=d;M+=2)N=M;N&&R.splice(0,N+1)}};var hdm=function(M,d){d=d===void 0?meJ:d;this.schedulerActionCtor=M;this.now=d};
hdm.prototype.schedule=function(M,d,N){d=d===void 0?0:d;return(new this.schedulerActionCtor(this,M)).schedule(N,d)};
var meJ=wVV.now;var PyN=function(){var M=Error.call(this,"no elements in sequence");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.v(PyN,Error);var Dq=function(M,d,N,R,X){NI.call(this,M);this.onUnsubscribe=X;d&&(this._next=function(A){try{d(A)}catch(l){this.destination.error(l)}});
N&&(this._error=function(A){try{N(A)}catch(l){this.destination.error(l)}this.unsubscribe()});
R&&(this._complete=function(){try{R()}catch(A){this.destination.error(A)}this.unsubscribe()})};
_.v(Dq,NI);Dq.JSC$6957_EMPTY=NI.JSC$6957_EMPTY;Dq.create=NI.create;Dq.prototype.unsubscribe=function(){var M;this.closed||(M=this.onUnsubscribe)!=null&&M.call(this);NI.prototype.unsubscribe.call(this)};var zB=function(M,d){this.source=M;this.subjectFactory=d;this._subject=null;this._refCount=0;this._connection=null};
_.v(zB,CS);zB.create=CS.create;zB.prototype._subscribe=function(M){return QIt(this).subscribe(M)};
var QIt=function(M){var d=M._subject;if(!d||d.JSC$6978_isStopped)M._subject=M.subjectFactory();return M._subject};
zB.prototype._teardown=function(){this._refCount=0;var M=this._connection;this._subject=this._connection=null;M==null||M.unsubscribe()};
zB.prototype.connect=function(){var M=this,d=this._connection;if(!d){d=this._connection=new t_;var N=QIt(this);d.add(this.source.subscribe(new Dq(N,void 0,function(R){M._teardown();N.error(R)},function(){M._teardown();
N.complete()},function(){return M._teardown()})));
d.closed&&(this._connection=null,d=t_.JSC$6957_EMPTY)}return d};var COq=Array.isArray;var YAv=Array.isArray,qVV=Object,ZKj=qVV.getPrototypeOf,EZq=qVV.prototype,Mdq=qVV.keys;var mn=function(M,d,N){NI.call(this,M);this._next=d;this.shouldComplete=N};
_.v(mn,NI);mn.JSC$6957_EMPTY=NI.JSC$6957_EMPTY;mn.create=NI.create;mn.prototype._complete=function(){this.shouldComplete()?NI.prototype._complete.call(this):this.unsubscribe()};var lWZ=["addListener","removeListener"],VdZ=["addEventListener","removeEventListener"],BHi=["on","off"];var AM=function(){t_.call(this)};
_.v(AM,t_);AM.JSC$6957_EMPTY=t_.JSC$6957_EMPTY;AM.prototype.schedule=function(){return this};var Ime=function(M,d){return setInterval.apply(null,[M,d].concat(_.wu(_.wH.apply(2,arguments))))};var VR=function(M,d){t_.call(this);this.scheduler=M;this.work=d;this.pending=!1};
_.v(VR,AM);VR.JSC$6957_EMPTY=AM.JSC$6957_EMPTY;VR.prototype.schedule=function(M,d){d=d===void 0?0:d;if(this.closed)return this;this.state=M;M=this.id;var N=this.scheduler;M!=null&&(this.id=vdo(this,M,d));this.pending=!0;this.delay=d;this.id=this.id||this.requestAsyncId(N,this.id,d);return this};
VR.prototype.requestAsyncId=function(M,d,N){N=N===void 0?0:N;return Ime(M.flush.bind(M,this),N)};
var vdo=function(M,d,N){N=N===void 0?0:N;if(N!=null&&M.delay===N&&M.pending===!1)return d;clearInterval(d)};
VR.prototype.execute=function(M,d){if(this.closed)return Error("la");this.pending=!1;if(M=this._execute(M,d))return M;this.pending===!1&&this.id!=null&&(this.id=vdo(this,this.id,null))};
VR.prototype._execute=function(M){var d=!1;try{this.work(M)}catch(R){d=!0;var N=!!R&&R||Error(R)}if(d)return this.unsubscribe(),N};
VR.prototype.unsubscribe=function(){if(!this.closed){var M=this.id,d=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;fS(d,this);M!=null&&(this.id=vdo(this,M,null));this.delay=null;AM.prototype.unsubscribe.call(this)}};var Ogd=function(M,d){d=d===void 0?meJ:d;hdm.call(this,M,d);this.actions=[];this.active=!1;this.scheduled=void 0};
_.v(Ogd,hdm);Ogd.prototype.flush=function(M){var d=this.actions;if(this.active)d.push(M);else{var N;this.active=!0;do if(N=M.execute(M.state,M.delay))break;while(M=d.shift());this.active=!1;if(N){for(;M=d.shift();)M.unsubscribe();throw N;}}};var Du=new CS(GP);var kPZ=Array.isArray;var lU=function(M,d){VR.call(this,M,d);this.scheduler=M;this.work=d};
_.v(lU,VR);lU.JSC$6957_EMPTY=VR.JSC$6957_EMPTY;lU.prototype.schedule=function(M,d){d=d===void 0?0:d;if(d>0)return VR.prototype.schedule.call(this,M,d);this.delay=d;this.state=M;this.scheduler.flush(this);return this};
lU.prototype.execute=function(M,d){return d>0||this.closed?VR.prototype.execute.call(this,M,d):this._execute(M,d)};
lU.prototype.requestAsyncId=function(M,d,N){N=N===void 0?0:N;return N!=null&&N>0||N==null&&this.delay>0?VR.prototype.requestAsyncId.call(this,M,d,N):M.flush(this)};var jIz=function(){Ogd.apply(this,arguments)};
_.v(jIz,Ogd);var U9A=new jIz(lU);var sId=function(){this.performanceMonitor=new eZg;this.queue=new HZL;this.internalSymbol=Symbol();this.debugNames=new T3L};
sId.prototype.getOnBackgrounded=function(){return Du};
_.Hm.Object.defineProperties(sId.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var $s=function(M,d){d=Error.call(this,d?M+": "+d:String(M));this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=M;this.__proto__=$s.prototype;this.name=String(M)};
_.v($s,Error);var gF=function(M){$s.call(this,1E3,'sfr:"'+M+'"');this.measurementStrategyFailureReason=M;this.__proto__=gF.prototype};
_.v(gF,$s);var WT=function(){$s.call(this,1003);this.__proto__=WT.prototype};
_.v(WT,$s);var B6=function(){$s.call(this,1009);this.__proto__=B6.prototype};
_.v(B6,$s);var PL3=function(){$s.call(this,1011);this.__proto__=PL3.prototype};
_.v(PL3,$s);var odV=function(){$s.call(this,1007);this.__proto__=WT.prototype};
_.v(odV,$s);var lC=function(M){$s.call(this,1004,String(M));this.inputObservableIndex=M;this.__proto__=lC.prototype};
_.v(lC,$s);var HIA=function(M){$s.call(this,1010,M);this.__proto__=$4.prototype};
_.v(HIA,$s);var $4=function(M){$s.call(this,1005,M);this.__proto__=$4.prototype};
_.v($4,$s);var rCt=function(M){var d=_.wH.apply(1,arguments),N=this;this.orderedFactories=[];this.orderedFactories.push(M);d.forEach(function(R){N.orderedFactories.push(R)})};
rCt.prototype.isSupported=function(M){return this.orderedFactories.some(function(d){return d.isSupported(M)})};
rCt.prototype.makeBeacon=function(M,d){for(var N=0;N<this.orderedFactories.length;N++)if(this.orderedFactories[N].isSupported(d))return this.orderedFactories[N].makeBeacon(M,d);throw new B6;};var v42=Symbol("ma"),KtL=Symbol("na"),s_=function(M,d){this.value=M;this.timeline=d},jl=function(M,d){if(d.timeline!==M.timeline)throw new odV;
return M.value-d.value};
_.F=s_.prototype;_.F.equals=function(M){return jl(this,M)===0};
_.F.maximum=function(M){if(M.timeline!==this.timeline)throw new odV;return this.value>=M.value?this:M};
_.F.round=function(){return new s_(Math.round(this.value),this.timeline)};
_.F.add=function(M){return new s_(this.value+M,this.timeline)};
_.F.toString=function(){return String(this.value)};var ks=function(M,d){this.context=M;this.JSC$7084_pinger=d};
ks.prototype.isSupported=function(M){return this.JSC$7084_pinger.isSupported(M)};
ks.prototype.makeBeacon=function(M,d){if(!this.isSupported(d))throw new B6;return new Te(this.context,this.JSC$7084_pinger,d!=null?d:void 0,M)};
var Te=function(M,d,N,R){var X=this;this.JSC$7090_pinger=d;this.properties=N;this.url=R;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var A;this.method=(A=N==null?void 0:N.beaconMethod)!=null?A:"GET";this.backgroundedSubscription=M.getOnBackgrounded().subscribe(function(){X.sendNow()})};
Te.prototype.deactivate=function(){this.internalIsPending=!1};
Te.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7090_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var M,d;this.JSC$7090_pinger.pingWithHeadersAndBody((M=this.properties)!=null?M:{},this.customHeaders,(d=this.body)!=null?d:"",this.url)}else this.JSC$7090_pinger.ping(this.url);this.internalIsPending=!1}catch(N){}else this.internalIsPending=!1};
Te.prototype.setHeader=function(M){this.customHeaders.set(M,void 0)};
_.Hm.Object.defineProperties(Te.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var JCL=function(){for(var M=_.V(_.wH.apply(0,arguments)),d=M.next();!d.done;d=M.next())if(d=d.value,d.available()){this.timeProvider=d;return}this.timeProvider=new yCL};
_.F=JCL.prototype;_.F.available=function(){return this.timeProvider.available()};
_.F.now=function(){return this.timeProvider.now()};
_.F.setTimeout=function(M,d){return this.timeProvider.setTimeout(M,d)};
_.F.clearTimeout=function(M){this.timeProvider.clearTimeout(M)};
_.F.interval=function(M,d){var N=this.intervalObservable(M).subscribe(d);return function(){return void N.unsubscribe()}};
_.F.intervalObservable=function(M){return this.timeProvider.intervalObservable(M)};
_.Hm.Object.defineProperties(JCL.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var yCL=function(){this.timeline=Symbol()};
_.F=yCL.prototype;_.F.available=function(){return!1};
_.F.now=function(){return new s_(0,this.timeline)};
_.F.setTimeout=function(){return 0};
_.F.clearTimeout=function(){};
_.F.interval=function(){return function(){}};
_.F.intervalObservable=function(){return Du};var D0=function(M,d){this.intrinsicFunctionNamespace=M;this.performanceMonitor=d};
_.F=D0.prototype;_.F.setTimeout=function(M,d){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,M),d)};
_.F.clearTimeout=function(M){this.intrinsicFunctionNamespace.clearTimeout(M)};
_.F.interval=function(M,d){var N=this.intervalObservable(M).subscribe(d);return function(){return void N.unsubscribe()}};
_.F.intervalObservable=function(M){var d=this;return new CS(function(N){var R=0,X=d.intrinsicFunctionNamespace.setInterval(function(){N.next(R++)},M);
return function(){d.intrinsicFunctionNamespace.clearInterval(X)}})};
_.F.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var cCt=function(M,d){D0.call(this,M,d);this.timeline=KtL};
_.v(cCt,D0);cCt.prototype.now=function(){return new s_(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
cCt.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&D0.prototype.available.call(this)};var SVm=function(M,d){D0.call(this,M,d);this.timeline=v42};
_.v(SVm,D0);SVm.prototype.now=function(){return new s_(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
SVm.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&D0.prototype.available.call(this)};var bge=function(M){this.context=M;if(zdJ===void 0)a:{var d,N,R=(d=M.global)==null?void 0:(N=d.document)==null?void 0:N.createElement("meta");if(R)try{R.httpEquiv="origin-trial";R.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";M.global.document.head.append(R);zdJ=R;break a}catch(X){}zdJ=void 0}},
zdJ;
bge.prototype.isSupported=function(M){return q06(this.context)!==void 0&&!(M==null||!M.endOfSession)&&!gl(this.context)&&!(M==null?0:M.attributionEnabled)&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
bge.prototype.makeBeacon=function(M,d){if(!this.isSupported(d))throw new B6;return new W6(this.context,M,d)};
var W6=function(M,d,N){this.context=M;this.properties=N;this.JSC$7117_urlWithoutToken=d;var R;this.beaconMethod=(R=N==null?void 0:N.beaconMethod)!=null?R:"GET";M=q06(this.context);if(M===void 0)throw Error();this.fetchLater=M;edt(this,HgV(this))},edt=function(M,d){M.beaconResult&&M.beaconResult.activated||(M.beaconAbort=new AbortController,M.beaconResult=M.fetchLater(d,{method:M.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:M.beaconAbort.signal,activateAfter:96E4}))},HgV=function(M){M=M.JSC$7117_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"flapi=1"};
W6.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
W6.prototype.sendNow=function(){};
W6.prototype.setHeader=function(){};
_.Hm.Object.defineProperties(W6.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7117_urlWithoutToken},
set:function(M){this.JSC$7117_urlWithoutToken=M;M=HgV(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);edt(this,M)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var ndd=function(M){this.context=M};
ndd.prototype.isSupported=function(){return!gl(this.context)&&!!this.context.global.fetch};
ndd.prototype.ping=function(){var M=this;return vY.apply(null,_.wu(_.wH.apply(0,arguments).map(function(d){return E0(M.context.global.fetch(d,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(WY(function(N){return N.status===200}))}))).pipe(o82(function(d){return d}),KLj())};
ndd.prototype.pingWithHeadersAndBody=function(M,d,N){for(var R=_.wH.apply(3,arguments),X=this,A=new Headers,l=_.V(d.entries()),k=l.next();!k.done;k=l.next()){var T=_.V(k.value);k=T.next().value;T=T.next().value;A.set(k,T)}var W,w=(W=M.keepAlive)!=null?W:!1;vY.apply(null,_.wu(R.map(function(p){return E0(X.context.global.fetch(p,Object.assign({},{method:String(M.beaconMethod),cache:"no-cache"},w?{keepalive:!0}:{},{mode:"no-cors",headers:A,body:N}))).pipe(WY(function(m){return m.status===200}))}))).pipe(o82(function(p){return p}),
KLj())};var igg,fU6;_.wl=function(){};
_.z6=function(M){return M};
igg=function(M){var d=d||0;return function(){return M.apply(this,Array.prototype.slice.call(arguments,0,d))}};
_.pe=function(M){var d=!1,N;return function(){d||(N=M(),d=!0);return N}};
_.m2=function(M,d){var N=0;return function(R){_.Np.clearTimeout(N);var X=arguments;N=_.Np.setTimeout(function(){M.apply(void 0,X)},d)}};
fU6=function(M,d){var N=0,R=!1,X=[],A=function(){N=0;R&&(R=!1,l())},l=function(){N=_.Np.setTimeout(A,d);
var k=X;X=[];M.apply(void 0,k)};
return function(k){X=arguments;N?R=!0:l()}};var LtV=function(){return Wj&&wZ?wZ.mobile:!fmL()&&(Qq("iPod")||Qq("iPhone")||Qq("Android")||Qq("IEMobile"))},fmL=function(){return Wj&&wZ?!wZ.mobile&&(Qq("iPad")||Qq("Android")||Qq("Silk")):Qq("iPad")||Qq("Android")&&!Qq("Mobile")||Qq("Silk")};var tJt;_.wF={};tJt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.wF.add=function(M,d,N){if(M!==null&&d in M)throw Error("pa`"+d);M[d]=N};
_.wF.clear=function(M){for(var d in M)delete M[d]};
_.wF.clone=function(M){var d={},N;for(N in M)d[N]=M[N];return d};
_.wF.contains=function(M,d){return c_j(M,d)};
_.wF.containsKey=function(M,d){return M!==null&&d in M};
_.wF.containsValue=c_j;_.wF.create=bSA;_.wF.createImmutableView=function(M){var d=M;Object.isFrozen&&!Object.isFrozen(M)&&(d=Object.create(M),Object.freeze(d));return d};
_.wF.createSet=eqv;_.wF.equals=function(M,d){for(var N in M)if(!(N in d)||M[N]!==d[N])return!1;for(var R in d)if(!(R in M))return!1;return!0};
_.wF.every=function(M,d,N){for(var R in M)if(!d.call(N,M[R],R,M))return!1;return!0};
_.wF.extend=function(M,d){for(var N,R,X=1;X<arguments.length;X++){R=arguments[X];for(N in R)M[N]=R[N];for(var A=0;A<tJt.length;A++)N=tJt[A],Object.prototype.hasOwnProperty.call(R,N)&&(M[N]=R[N])}};
_.wF.filter=function(M,d,N){var R={},X;for(X in M)d.call(N,M[X],X,M)&&(R[X]=M[X]);return R};
_.wF.findKey=S0S;_.wF.findValue=function(M,d,N){return(d=S0S(M,d,N))&&M[d]};
_.wF.forEach=function(M,d,N){for(var R in M)d.call(N,M[R],R,M)};
_.wF.get=function(M,d,N){return M!==null&&d in M?M[d]:N};
_.wF.getAllPropertyNames=function(M,d,N){if(!M)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return J_i(M);for(var R={};M&&(M!==Object.prototype||d)&&(M!==Function.prototype||N);){for(var X=Object.getOwnPropertyNames(M),A=0;A<X.length;A++)R[X[A]]=!0;M=Object.getPrototypeOf(M)}return J_i(R)};
_.wF.getAnyKey=function(M){for(var d in M)return d};
_.wF.getAnyValue=function(M){for(var d in M)return M[d]};
_.wF.getCount=function(M){var d=0,N;for(N in M)d++;return d};
_.wF.getKeys=J_i;_.wF.getSuperClass=function(M){return(M=Object.getPrototypeOf(M.prototype))&&M.constructor};
_.wF.getValueByKeys=function(M,d){var N=_.CZ(d),R=N?d:arguments;for(N=N?0:1;N<R.length;N++){if(M==null)return;M=M[R[N]]}return M};
_.wF.getValues=function(M){var d=[],N=0,R;for(R in M)d[N++]=M[R];return d};
_.wF.isEmpty=function(M){for(var d in M)return!1;return!0};
_.wF.isImmutableView=function(M){return!!Object.isFrozen&&Object.isFrozen(M)};
_.wF.map=function(M,d,N){var R={},X;for(X in M)R[X]=d.call(N,M[X],X,M);return R};
_.wF.remove=function(M,d){var N;(N=d in M)&&delete M[d];return N};
_.wF.set=function(M,d,N){M[d]=N};
_.wF.setIfUndefined=function(M,d,N){return d in M?M[d]:M[d]=N};
_.wF.setWithReturnValueIfNotSet=function(M,d,N){if(d in M)return M[d];N=N();return M[d]=N};
_.wF.some=function(M,d,N){for(var R in M)if(d.call(N,M[R],R,M))return!0;return!1};
_.wF.transpose=function(M){var d={},N;for(N in M)d[M[N]]=N;return d};
_.wF.unsafeClone=zqS;var hM=function(M,d,N,R,X){this.allowedElements=M;this.elementPolicies=d;this.allowedGlobalAttributes=N;this.globalAttributePolicies=R;this.globallyAllowedAttributePrefixes=X},God=function(M,d,N){N=M.elementPolicies.get(N);
return(N==null?0:N.has(d))?N.get(d):M.allowedGlobalAttributes.has(d)?{policyAction:1}:(N=M.globalAttributePolicies.get(d))?N:M.globallyAllowedAttributePrefixes&&[].concat(_.wu(M.globallyAllowedAttributePrefixes)).some(function(R){return d.indexOf(R)===0})?{policyAction:1}:{policyAction:0}};var am3="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(" "),
Uez=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],uLd="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 crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden 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 valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
CLe=[["dir",{policyAction:3,conditions:dH(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:dH(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:dH(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:dH(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],xe3=new hM(new Set(am3),new Map(Uez),new Set(uLd),new Map(CLe)),YVt=new hM(new Set(am3.concat(["BUTTON",
"INPUT"])),new Map(Uez),new Set(dH(function(){return uLd.concat(["class","id","name"])})),new Map(dH(function(){return CLe.concat([["style",
{policyAction:1}]])})));var Zgd,EdC,d$t;Zgd=function(M,d,N,R){this.JSC$7177_sanitizerTable=M;this.styleElementSanitizer=d;this.styleAttributeSanitizer=N;this.JSC$7177_resourceUrlPolicy=R;this.changes=[]};
_.Mie=function(M,d){var N=document.implementation.createHTMLDocument("");M=EdC(M,d,N);N=N.body;N.appendChild(M);N=(new XMLSerializer).serializeToString(N);N=N.slice(N.indexOf(">")+1,N.lastIndexOf("</"));return O0(N)};
EdC=function(M,d,N){d=n8i(d,N);d=document.createTreeWalker(d,5,function(k){if(k.nodeType===3)k=1;else if(fWZ(k))if(k=iSL(k),k===null)k=2;else{var T=M.JSC$7177_sanitizerTable;k=k!=="FORM"&&(T.allowedElements.has(k)||T.elementPolicies.has(k))?1:2}else k=2;return k});
for(var R=d.nextNode(),X=N.createDocumentFragment(),A=X;R!==null;){var l=void 0;if(R.nodeType===3)M.styleElementSanitizer&&A.nodeName==="STYLE"?(R=M.styleElementSanitizer(R.data),l=M.createTextNode(R)):l=M.createTextNode(R.data);else if(fWZ(R))l=d$t(M,R,N);else throw Error("da");A.appendChild(l);if(R=d.firstChild())A=l;else for(;!(R=d.nextSibling())&&(R=d.parentNode());)A=A.parentNode}return X};
Zgd.prototype.createTextNode=function(M){return document.createTextNode(M)};
d$t=function(M,d,N){var R,X=iSL(d);N=N.createElement(X);d=d.attributes;for(var A=_.V(d),l=A.next();!l.done;l=A.next()){var k=l.value;l=k.name;k=k.value;var T=God(M.JSC$7177_sanitizerTable,l,X);a:{if(R=T.conditions){R=_.V(R);for(var W=R.next();!W.done;W=R.next()){var w=_.V(W.value);W=w.next().value;w=w.next().value;var p=void 0;if((W=(p=d.getNamedItem(W))==null?void 0:p.value)&&!w.has(W)){R=!1;break a}}}R=!0}if(R)switch(T.policyAction){case 1:U_(N,l,k);break;case 2:T=_.wxj(k);k=T!==void 0&&N3I.indexOf(T.toLowerCase())!==
-1?k:"about:invalid#zClosurez";U_(N,l,k);break;case 3:U_(N,l,k.toLowerCase());break;case 4:M.styleAttributeSanitizer?(k=M.styleAttributeSanitizer(k),U_(N,l,k)):U_(N,l,k);break;case 5:M.JSC$7177_resourceUrlPolicy?(T={type:2,attributeName:l,elementName:X},k=HSN(k),(k=M.JSC$7177_resourceUrlPolicy(k,T))&&U_(N,l,k.toString())):U_(N,l,k);break;case 6:if(M.JSC$7177_resourceUrlPolicy){T={type:2,attributeName:l,elementName:X};R=[];k=_.V(k.split(","));for(W=k.next();!W.done;W=k.next())w=_.V(W.value.trim().split(/\s+/,
2)),W=w.next().value,w=w.next().value,R.push({url:W,descriptor:w});k={parts:[]};R=_.V(R);for(W=R.next();!W.done;W=R.next())W=W.value,w=HSN(W.url),(w=M.JSC$7177_resourceUrlPolicy(w,T))&&k.parts.push({url:w.toString(),descriptor:W.descriptor});U_(N,l,LLi(k))}else U_(N,l,k)}}return N};
_.NqI=dH(function(){return new Zgd(xe3)});
_.R4e=dH(function(){return new Zgd(YVt)});var XPC=function(){this.calledBuild=!1;this.JSC$7189_sanitizerTable=xe3},FGL=function(){XPC.apply(this,arguments)};
_.v(FGL,XPC);FGL.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new Zgd(this.JSC$7189_sanitizerTable,void 0,void 0,this.JSC$7189_resourceUrlPolicy)};var AdJ=/[^#]*/;var ny=function(M){try{return!!M&&M.location.href!=null&&I8(M,"foo")}catch(d){return!1}},lDL=function(M){var d=Vio;
if(d)for(var N in d)Object.prototype.hasOwnProperty.call(d,N)&&M(d[N],N,d)},$$d=function(){var M=[];
lDL(function(d){M.push(d)});
return M},Vio={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"},Bq3=_.pe(function(){return $$d()}),TqV=function(){var M=kbg("IFRAME"),
d={};
_.Hy(Bq3(),function(N){M.sandbox&&M.sandbox.supports&&M.sandbox.supports(N)&&(d[N]=!0)});
return d},kbg=function(M,d){d=d===void 0?document:d;
return d.createElement(String(M).toLowerCase())};var QR;_.Ju=function(M,d,N){return Math.min(Math.max(M,d),N)};
QR=function(M,d,N){return M+N*(d-M)};_.hw=function(M,d){this.x=M!==void 0?M:0;this.y=d!==void 0?d:0};
_.F=_.hw.prototype;_.F.clone=function(){return new _.hw(this.x,this.y)};
_.F.equals=function(M){return M instanceof _.hw&&(this==M?!0:this&&M?this.x==M.x&&this.y==M.y:!1)};
_.F.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.F.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.F.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.F.translate=function(M,d){M instanceof _.hw?(this.x+=M.x,this.y+=M.y):(this.x+=Number(M),typeof d==="number"&&(this.y+=d));return this};
_.F.scale=function(M,d){this.x*=M;this.y*=typeof d==="number"?d:M;return this};_.R8=function(M,d){this.width=M;this.height=d};
_.F=_.R8.prototype;_.F.clone=function(){return new _.R8(this.width,this.height)};
_.F.area=function(){return this.width*this.height};
_.F.aspectRatio=function(){return this.width/this.height};
_.F.isEmpty=function(){return!this.area()};
_.F.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.F.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.F.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.F.scale=function(M,d){this.width*=M;this.height*=typeof d==="number"?d:M;return this};var j5=function(M,d){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=M===PIN&&d||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=D$3};
j5.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var geL=function(M){return M instanceof j5&&M.constructor===j5&&M.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===D$3?M.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},D$3={},PIN={};
new j5(PIN,"");var Aw,$a,Ix,WGC,m$t,pPz,QZ,QCe,IDL,qTt,s8,vee,KGg,rd3,oeg,ydo,Jdo,cdL,ST3,a3S,z4V,e4V,HJV,bJz,qI;Aw=function(M){return M?new qI(_.qy(M)):eIZ||(eIZ=new qI)};
_.fO=function(M,d){return typeof d==="string"?M.getElementById(d):d};
$a=function(M,d){return(d||document).getElementsByTagName(String(M))};
_.wPm=function(M){return WGC("yt-formatted-string","paper-input-input",M)};
Ix=function(M,d,N,R){M=R||M;return(d=d&&d!="*"?String(d).toUpperCase():"")||N?M.querySelectorAll(d+(N?"."+N:"")):M.getElementsByTagName("*")};
WGC=function(M,d,N){var R=document,X=M&&M!="*"?String(M).toUpperCase():"";return X||d?(N||R).querySelector(X+(d?"."+d:"")):Ix(R,M,d,N)[0]||null};
m$t=function(M,d){_.wF.forEach(d,function(N,R){R=="style"?M.style.cssText=N:R=="class"?M.className=N:R=="for"?M.htmlFor=N:pPz.hasOwnProperty(R)?M.setAttribute(pPz[R],N):_.AL(R,"aria-")||_.AL(R,"data-")?M.setAttribute(R,N):M[R]=N})};
pPz={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"};_.Xt=function(M){M=(M||window).document;M=M.compatMode=="CSS1Compat"?M.documentElement:M.body;return new _.R8(M.clientWidth,M.clientHeight)};
_.h4z=function(M){var d=_.v6(M);M=M.defaultView;return new _.hw(M.pageXOffset||d.scrollLeft,M.pageYOffset||d.scrollTop)};
_.v6=function(M){return M.scrollingElement?M.scrollingElement:_.B_||M.compatMode!="CSS1Compat"?M.body||M.documentElement:M.documentElement};
QZ=function(M){return M?M.defaultView:window};
_.O8=function(M,d,N){return QCe(document,arguments)};
QCe=function(M,d){var N=d[1],R=qTt(M,String(d[0]));N&&(typeof N==="string"?R.className=N:Array.isArray(N)?R.className=N.join(" "):m$t(R,N));d.length>2&&IDL(M,R,d,2);return R};
IDL=function(M,d,N,R){function X(k){k&&d.appendChild(typeof k==="string"?M.createTextNode(k):k)}
for(;R<N.length;R++){var A=N[R];if(!_.CZ(A)||_.Me(A)&&A.nodeType>0)X(A);else{a:{if(A&&typeof A.length=="number"){if(_.Me(A)){var l=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){l=typeof A.item=="function";break a}}l=!1}_.Hy(l?_.US(A):A,X)}}};
_.Vf=function(M){return qTt(document,M)};
qTt=function(M,d){d=String(d);M.contentType==="application/xhtml+xml"&&(d=d.toLowerCase());return M.createElement(d)};
_.jI=function(){return document.createTextNode("\n")};
s8=function(M){if(M.nodeType!=1)return!1;switch(M.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
vee=function(M,d){IDL(_.qy(M),M,arguments,1)};
_.P6=function(M){for(var d;d=M.firstChild;)M.removeChild(d)};
_.ox=function(M,d){d.parentNode&&d.parentNode.insertBefore(M,d)};
_.rl=function(M,d){d.parentNode&&d.parentNode.insertBefore(M,d.nextSibling)};
_.l_=function(M){return M&&M.parentNode?M.parentNode.removeChild(M):null};
_.OJd=function(M,d){var N=d.parentNode;N&&N.replaceChild(M,d)};
_.jCL=function(M){var d,N=M.parentNode;if(N&&N.nodeType!=11)if(M.removeNode)M.removeNode(!1);else{for(;d=M.firstChild;)N.insertBefore(d,M);_.l_(M)}};
_.Ke=function(M){return M.children!=void 0?M.children:Array.prototype.filter.call(M.childNodes,function(d){return d.nodeType==1})};
_.PrC=function(M){return M.nextElementSibling!==void 0?M.nextElementSibling:_.sCL(M.nextSibling,!0)};
_.sCL=function(M,d){for(;M&&M.nodeType!=1;)M=d?M.nextSibling:M.previousSibling;return M};
_.nA=function(M){return _.Me(M)&&M.nodeType==1};
_.PU=function(M,d){if(!M||!d)return!1;if(M.contains&&d.nodeType==1)return M==d||M.contains(d);if(typeof M.compareDocumentPosition!="undefined")return M==d||!!(M.compareDocumentPosition(d)&16);for(;d&&M!=d;)d=d.parentNode;return d==M};
KGg=function(M,d){if(M==d)return 0;if(M.compareDocumentPosition)return M.compareDocumentPosition(d)&2?1:-1;if("sourceIndex"in M||M.parentNode&&"sourceIndex"in M.parentNode){var N=M.nodeType==1,R=d.nodeType==1;if(N&&R)return M.sourceIndex-d.sourceIndex;var X=M.parentNode,A=d.parentNode;return X==A?oeg(M,d):!N&&_.PU(X,d)?-1*rd3(M,d):!R&&_.PU(A,M)?rd3(d,M):(N?M.sourceIndex:X.sourceIndex)-(R?d.sourceIndex:A.sourceIndex)}R=_.qy(M);N=R.createRange();N.selectNode(M);N.collapse(!0);M=R.createRange();M.selectNode(d);
M.collapse(!0);return N.compareBoundaryPoints(_.Np.Range.START_TO_END,M)};
rd3=function(M,d){var N=M.parentNode;if(N==d)return-1;for(;d.parentNode!=N;)d=d.parentNode;return oeg(d,M)};
oeg=function(M,d){for(;d=d.previousSibling;)if(d==M)return-1;return 1};
ydo=function(M){var d,N=arguments.length;if(!N)return null;if(N==1)return arguments[0];var R=[],X=Infinity;for(d=0;d<N;d++){for(var A=[],l=arguments[d];l;)A.unshift(l),l=l.parentNode;R.push(A);X=Math.min(X,A.length)}A=null;for(d=0;d<X;d++){l=R[0][d];for(var k=1;k<N;k++)if(l!=R[k][d])return A;A=l}return A};
_.qy=function(M){return M.nodeType==9?M:M.ownerDocument||M.document};
Jdo=function(M){return M.contentDocument||M.contentWindow.document};
_.yR=function(M,d){if("textContent"in M)M.textContent=d;else if(M.nodeType==3)M.data=String(d);else if(M.firstChild&&M.firstChild.nodeType==3){for(;M.lastChild!=M.firstChild;)M.removeChild(M.lastChild);M.firstChild.data=String(d)}else _.P6(M),M.appendChild(_.qy(M).createTextNode(String(d)))};
cdL={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};ST3={IMG:" ",BR:"\n"};a3S=function(M){var d;M.tagName=="A"&&M.hasAttribute("href")||M.tagName=="INPUT"||M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="BUTTON"?d=!M.disabled&&(!M.hasAttribute("tabindex")||z4V(M)):d=M.hasAttribute("tabindex")&&z4V(M);return d};
z4V=function(M){M=M.tabIndex;return typeof M==="number"&&M>=0&&M<32768};
e4V=function(M){var d=[];bJz(M,d,!0);M=d.join("");M=M.replace(/ \xAD /g," ").replace(/\xAD/g,"");M=M.replace(/\u200B/g,"");M=M.replace(/ +/g," ");M!=" "&&(M=M.replace(/^\s*/,""));return M};
HJV=function(M){var d=[];bJz(M,d,!1);return d.join("")};
bJz=function(M,d,N){if(!(M.nodeName in cdL))if(M.nodeType==3)N?d.push(String(M.nodeValue).replace(/(\r\n|\r|\n)/g,"")):d.push(M.nodeValue);else if(M.nodeName in ST3)d.push(ST3[M.nodeName]);else for(M=M.firstChild;M;)bJz(M,d,N),M=M.nextSibling};
_.net=function(M,d,N){if(!d&&!N)return null;var R=d?String(d).toUpperCase():null;return _.jM(M,function(X){return(!R||X.nodeName==R)&&(!N||typeof X.className==="string"&&_.i2(X.className.split(/\s+/),N))},!0)};
_.jM=function(M,d,N){M&&!N&&(M=M.parentNode);for(N=0;M;){if(d(M))return M;M=M.parentNode;N++}return null};
qI=function(M){this.JSC$7214_document_=M||_.Np.document||document};
_.F=qI.prototype;_.F.getElement=function(M){return _.fO(this.JSC$7214_document_,M)};
_.F.$=qI.prototype.getElement;_.F.getElementsByTagName=function(M,d){return(d||this.JSC$7214_document_).getElementsByTagName(String(M))};
_.F.getElementsByTagNameAndClass=function(M,d,N){return Ix(this.JSC$7214_document_,M,d,N)};
_.F.$$=qI.prototype.getElementsByTagNameAndClass;_.F.setProperties=m$t;_.F.JSC$7216_createDom=function(M,d,N){return QCe(this.JSC$7214_document_,arguments)};
_.F.createElement=function(M){return qTt(this.JSC$7214_document_,M)};
_.F.createTextNode=function(M){return this.JSC$7214_document_.createTextNode(String(M))};
_.F.getWindow=function(){return this.JSC$7214_document_.defaultView};
var Ft=function(M){return _.h4z(M.JSC$7214_document_)};
_.F=qI.prototype;_.F.appendChild=function(M,d){M.appendChild(d)};
_.F.append=vee;_.F.canHaveChildren=s8;_.F.removeNode=_.l_;_.F.getChildren=_.Ke;_.F.contains=_.PU;_.F=xt.prototype;_.F.getWidth=function(){return this.right-this.left};
_.F.getHeight=function(){return this.bottom-this.top};
_.F.clone=function(){return new xt(this.top,this.right,this.bottom,this.left)};
_.F.contains=function(M){return this&&M?M instanceof xt?M.left>=this.left&&M.right<=this.right&&M.top>=this.top&&M.bottom<=this.bottom:M.x>=this.left&&M.x<=this.right&&M.y>=this.top&&M.y<=this.bottom:!1};
_.F.expand=function(M,d,N,R){_.Me(M)?(this.top-=M.top,this.right+=M.right,this.bottom+=M.bottom,this.left-=M.left):(this.top-=M,this.right+=Number(d),this.bottom+=Number(N),this.left-=Number(R));return this};
_.F.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};
_.F.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};
_.F.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};
_.F.translate=function(M,d){M instanceof _.hw?(this.left+=M.x,this.right+=M.x,this.top+=M.y,this.bottom+=M.y):(this.left+=M,this.right+=M,typeof d==="number"&&(this.top+=d,this.bottom+=d));return this};
_.F.scale=function(M,d){d=typeof d==="number"?d:M;this.left*=M;this.right*=M;this.top*=d;this.bottom*=d;return this};var JM=function(M,d,N,R){this.left=M;this.top=d;this.width=N;this.height=R};
_.F=JM.prototype;_.F.clone=function(){return new JM(this.left,this.top,this.width,this.height)};
_.F.boundingRect=function(M){var d=Math.max(this.left+this.width,M.left+M.width),N=Math.max(this.top+this.height,M.top+M.height);this.left=Math.min(this.left,M.left);this.top=Math.min(this.top,M.top);this.width=d-this.left;this.height=N-this.top};
_.F.contains=function(M){return M instanceof _.hw?M.x>=this.left&&M.x<=this.left+this.width&&M.y>=this.top&&M.y<=this.top+this.height:this.left<=M.left&&this.left+this.width>=M.left+M.width&&this.top<=M.top&&this.top+this.height>=M.top+M.height};
_.F.distance=function(M){var d=M.x<this.left?this.left-M.x:Math.max(M.x-(this.left+this.width),0);M=M.y<this.top?this.top-M.y:Math.max(M.y-(this.top+this.height),0);return Math.sqrt(d*d+M*M)};
_.F.getSize=function(){return new _.R8(this.width,this.height)};
_.F.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};
_.F.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};
_.F.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};
_.F.translate=function(M,d){M instanceof _.hw?(this.left+=M.x,this.top+=M.y):(this.left+=M,typeof d==="number"&&(this.top+=d));return this};
_.F.scale=function(M,d){d=typeof d==="number"?d:M;this.left*=M;this.width*=M;this.top*=d;this.height*=d;return this};var fDV,ze,TFZ,SI,aDJ,GbC,U$J,it2,uYL,x$V;_.c6=function(M,d,N){if(typeof d==="string")(d=_.iJI(M,d))&&(M.style[d]=N);else for(var R in d){N=M;var X=d[R],A=_.iJI(N,R);A&&(N.style[A]=X)}};
fDV={};_.iJI=function(M,d){var N=fDV[d];if(!N){var R=_.Ff(d);N=R;M.style[R]===void 0&&(R=(_.B_?"Webkit":_.$h?"Moz":null)+ko3(R),M.style[R]!==void 0&&(N=R));fDV[d]=N}return N};
_.WC=function(M,d){var N=_.qy(M);return N.defaultView&&N.defaultView.getComputedStyle&&(M=N.defaultView.getComputedStyle(M,null))?M[d]||M.getPropertyValue(d)||"":""};
_.ss=function(M,d){return _.WC(M,d)||(M.currentStyle?M.currentStyle[d]:null)||M.style&&M.style[d]};
_.LGm=function(M){return _.ss(M,"position")};
ze=function(M,d,N){if(d instanceof _.hw){var R=d.x;d=d.y}else R=d,d=N;M.style.left=SI(R,!1);M.style.top=SI(d,!1)};
TFZ=function(M){try{return M.getBoundingClientRect()}catch(d){return{left:0,top:0,right:0,bottom:0}}};
_.vT=function(M){var d=_.qy(M),N=new _.hw(0,0);if(M==(d?_.qy(d):document).documentElement)return N;M=TFZ(M);d=Ft(Aw(d));N.x=M.left+d.x;N.y=M.top+d.y;return N};
_.tit=function(M,d,N){if(d instanceof _.R8)N=d.height,d=d.width;else if(N==void 0)throw Error("sa");M.style.width=SI(d,!0);M.style.height=SI(N,!0)};
SI=function(M,d){typeof M=="number"&&(M=(d?Math.round(M):M)+"px");return M};
aDJ=function(M){return GbC(M)};
GbC=function(M){var d=U$J;if(_.ss(M,"display")!="none")return d(M);var N=M.style,R=N.display,X=N.visibility,A=N.position;N.visibility="hidden";N.position="absolute";N.display="inline";M=d(M);N.display=R;N.position=A;N.visibility=X;return M};
U$J=function(M){var d=M.offsetWidth,N=M.offsetHeight,R=_.B_&&!d&&!N;return(d===void 0||R)&&M.getBoundingClientRect?(M=TFZ(M),new _.R8(M.right-M.left,M.bottom-M.top)):new _.R8(d,N)};
it2=function(M){var d=_.vT(M);M=GbC(M);return new JM(d.x,d.y,M.width,M.height)};
uYL=function(M,d){M=M.style;"opacity"in M?M.opacity=d:"MozOpacity"in M?M.MozOpacity=d:"filter"in M&&(M.filter=d===""?"":"alpha(opacity="+Number(d)*100+")")};
_.cU=function(M,d){M.style.display=d?"":"none"};
_.Cro=function(M){return"rtl"==_.ss(M,"direction")};
x$V=function(M){var d=_.WC(M,"marginLeft"),N=_.WC(M,"marginRight"),R=_.WC(M,"marginTop");M=_.WC(M,"marginBottom");return new xt(parseFloat(R),parseFloat(N),parseFloat(M),parseFloat(d))};
_.YTJ=function(M){var d=_.WC(M,"borderLeftWidth"),N=_.WC(M,"borderRightWidth"),R=_.WC(M,"borderTopWidth");M=_.WC(M,"borderBottomWidth");return new xt(parseFloat(R),parseFloat(N),parseFloat(M),parseFloat(d))};var bU=function(M){this.context=M};
bU.prototype.isSupported=function(M){return(M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="POST"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive)?!1:!gl(this.context)};
bU.prototype.ping=function(){var M=this;return BY(_.wH.apply(0,arguments).map(function(d){try{var N=M.context.global,R=!1;R=R===void 0?!1:R;N.google_image_requests||(N.google_image_requests=[]);var X=kbg("IMG",N.document);R&&(X.attributionSrc="");X.src=d;N.google_image_requests.push(X);return!0}catch(A){return!1}}).every(function(d){return d}))};
bU.prototype.pingWithHeadersAndBody=function(M,d,N){this.ping.apply(this,_.wu(_.wH.apply(3,arguments)))};var ZJe=function(M){this.context=M};
ZJe.prototype.isSupported=function(M){return EeC&&!gl(this.context)&&GPZ(this.context)!==void 0&&!(M==null?0:M.attributionEnabled)&&(M==null?void 0:M.beaconMethod)!=="POST"&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
ZJe.prototype.makeBeacon=function(M,d){if(!this.isSupported(d))throw new B6;return new eI(this.context,M)};
var EeC=!1,eI=function(M,d){this.context=M;this.JSC$7235_urlWithoutToken=d;M=GPZ(this.context);if(M===void 0)throw Error();this.wrappedBeacon=new M(Mvt(this),{})},Mvt=function(M){M=M.JSC$7235_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"pbapi=1"};
eI.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
eI.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
eI.prototype.setHeader=function(){};
_.Hm.Object.defineProperties(eI.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7235_urlWithoutToken},
set:function(M){this.JSC$7235_urlWithoutToken=M;this.wrappedBeacon.setURL(Mvt(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(M){if(M!=="GET")throw new B6;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var d9g=function(M){this.context=M};
d9g.prototype.isSupported=function(M){if((M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="GET"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive))return!1;var d;return!gl(this.context)&&((d=this.context.global.navigator)==null?void 0:d.sendBeacon)!==void 0};
d9g.prototype.ping=function(){var M=this;return BY(_.wH.apply(0,arguments).map(function(d){var N;return(N=M.context.global.navigator)==null?void 0:N.sendBeacon(d)}).every(function(d){return d}))};
d9g.prototype.pingWithHeadersAndBody=function(M,d,N){this.ping.apply(this,_.wu(_.wH.apply(3,arguments)))};var dF=function(M){this.value=M},bC=function(M,d){return BY(M.value).pipe(E_(d))},fy=new dF(!1),QWZ=new dF(!0);var sq=function(M){this.value=M;this.releasedSubject=new Yt};
sq.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Hm.Object.defineProperties(sq.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7248_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var XYi=["FRAME","IMG","IFRAME"],ZS6=/^[01](px)?$/,RnL=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},NuN=function(){var M=new RnL;
M.crossDomainLoadedDefault=!0;M.pendingImagesBlockLoad=!0;return M};var Nso=function(M,d){var N=kBi(M);if(N)if(N.onCreativeLoad)N.onCreativeLoad(d);else{var R=d?[d]:[],X=function(A){for(var l=0;l<R.length;++l)try{R[l](1,A)}catch(k){}R={push:function(k){k(1,A)}}};
N.onCreativeLoad=function(A){R.push(A)};
N.setAttribute("data-creative-load-listener","");N.addEventListener("creativeLoad",function(A){X(A.detail)});
_.Np.addEventListener("message",function(A){Buq(N,X,A)})}};var H6=function(M,d){var N=this;this.global=M;this.parentContext=d;this.JSC$7259_onVisibilityChange=this.document?vY(BY(!0),qv(this.document,"visibilitychange")).pipe(PY(this.parentContext.performanceMonitor,748),WY(function(){return N.getVisibilityState()}),cY()):BY("visible");
this.document?qv(this.document,"DOMContentLoaded").pipe(PY(this.parentContext.performanceMonitor,739),JS(1)):BY(xOL("DOMContentLoaded"))},hyL=function(M){return M.document!==null&&M.document.visibilityState!==void 0};
H6.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
H6.prototype.querySelector=function(M){return this.document?this.document.querySelector(M):null};
H6.prototype.querySelectorAll=function(M){return this.document?_.US(this.document.querySelectorAll(M)):[]};
H6.prototype.elementFromPoint=function(M,d){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;M=this.document.elementFromPoint(M,d);return M===null?null:new sq(M)};
var lLi=function(M,d,N){N=N===void 0?!1:N;if(d.ref===void 0||!M.document)return BY(d).pipe(PY(M.parentContext.performanceMonitor,749));var R=new el(1),X=function(){R.next(d)};
N||Nso(d.ref,X);Fnj(d.ref,X);return R.pipe(PY(M.parentContext.performanceMonitor,749),JS(1))};
_.Hm.Object.defineProperties(H6.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return I8(this.global,"document")?this.global.document||null:null}}});var Tuv=_.a1(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),DvL=_.a1(["./reach_worklet.js"]),gtq=_.a1(["./reach_worklet.js"]),R6L=_.a1(["./reach_worklet.html"]),Xxg=_.a1(["./reach_worklet.js"]),F1V=_.a1(["./reach_worklet.js"]);_.u6(R6L);_.u6(Xxg);_.u6(F1V);var Ky={left:0,top:0,width:0,height:0};var Ajd,Vvg,lGV,$9z,aJ,kht,Tsg,D9V,wxV,pxe,m9L;Ajd=function(M,d,N,R,X,A,l){var k="";M&&(k+=M+":");N&&(k+="//",d&&(k+=d+"@"),k+=N,R&&(k+=":"+R));X&&(k+=X);A&&(k+="?"+A);l&&(k+="#"+l);return k};
Vvg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.tA=function(M){return M.match(Vvg)};
_.se=function(M,d){return M?d?decodeURI(M):decodeURIComponent(M):M};
lGV=function(M){M=_.tA(M)[1]||null;!M&&_.Np.self&&_.Np.self.location&&(M=_.Np.self.location.protocol.slice(0,-1));return M?M.toLowerCase():""};
_.GN=function(M){return _.se(_.tA(M)[3]||null,!0)};
_.FO=function(M){return _.se(_.tA(M)[5]||null,!0)};
_.oAZ=function(M){var d=M.indexOf("#");return d<0?null:M.slice(d+1)};
$9z=function(M){M=_.tA(M);return Ajd(M[1],M[2],M[3],M[4])};
_.Bsg=function(M){M=_.tA(M);return Ajd(M[1],null,M[3],M[4])};
_.SE=function(M){M=_.tA(M);return Ajd(null,null,null,null,M[5],M[6],M[7])};
_.LL=function(M){var d=M.indexOf("#");return d<0?M:M.slice(0,d)};
aJ=function(M,d){M=_.tA(M);d=_.tA(d);return M[3]==d[3]&&M[1]==d[1]&&M[4]==d[4]};
kht=function(M,d){if(M){M=M.split("&");for(var N=0;N<M.length;N++){var R=M[N].indexOf("="),X=null;if(R>=0){var A=M[N].substring(0,R);X=M[N].substring(R+1)}else A=M[N];d(A,X?us(X):"")}}};
Tsg=function(M){var d=M.indexOf("#");d<0&&(d=M.length);var N=M.indexOf("?");if(N<0||N>d){N=d;var R=""}else R=M.substring(N+1,d);return[M.slice(0,N),R,M.slice(d)]};
D9V=function(M,d){return d?M?M+"&"+d:d:M};
_.gZ3=function(M,d){if(!d)return M;M=Tsg(M);M[1]=D9V(M[1],d);return M[0]+(M[1]?"?"+M[1]:"")+M[2]};
_.W1C=function(M,d,N){if(Array.isArray(d))for(var R=0;R<d.length;R++)_.W1C(M,String(d[R]),N);else d!=null&&N.push(M+(d===""?"":"="+_.ex(d)))};
_.VO=function(M){var d=[],N;for(N in M)_.W1C(N,M[N],d);return d.join("&")};
_.LF=function(M,d){d=_.VO(d);return _.gZ3(M,d)};
_.ne=function(M,d,N){N=N!=null?"="+_.ex(N):"";return _.gZ3(M,d+N)};
wxV=function(M,d,N,R){for(var X=N.length;(d=M.indexOf(N,d))>=0&&d<R;){var A=M.charCodeAt(d-1);if(A==38||A==63)if(A=M.charCodeAt(d+X),!A||A==61||A==38||A==35)return d;d+=X+1}return-1};
pxe=/#|$/;_.oW=function(M,d){var N=M.search(pxe),R=wxV(M,0,d,N);if(R<0)return null;var X=M.indexOf("&",R);if(X<0||X>N)X=N;R+=d.length+1;return us(M.slice(R,X!==-1?X:0))};
m9L=/[?&]($|#)/;_.GD=function(M,d){for(var N=M.search(pxe),R=0,X,A=[];(X=wxV(M,R,d,N))>=0;)A.push(M.substring(R,X)),R=Math.min(M.indexOf("&",X)+1||N,N);A.push(M.slice(R));return A.join("").replace(m9L,"$1")};
_.oR=function(M,d,N){return _.ne(_.GD(M,d),d,N)};
_.h6L=function(M){var d=Tsg(window.location.href),N=d[1],R=[];N&&N.split("&").forEach(function(X){var A=X.indexOf("=");A=A>=0?X.slice(0,A):X;M.hasOwnProperty(A)||R.push(X)});
d[1]=D9V(R.join("&"),_.VO(M));return d[0]+(d[1]?"?"+d[1]:"")+d[2]};var S_j=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(S_j,_.Jj);S_j.prototype.getVersion=function(){return _.rP(this,2)};var cSi=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(cSi,_.Jj);var P6A=function(M,d){return _.VZ(M,2,d)},JSZ=function(M,d){return _.VZ(M,3,d)};
cSi.prototype.getModel=function(){return _.rP(this,4)};
var rSi=function(M,d){return _.VZ(M,4,d)},s2S=function(M,d){return _.VZ(M,5,d)},ySi=function(M,d){return _.VZ(M,9,d)},j2j=function(M,d){return IX(M,10,d)},OIq=function(M,d){return _.Eq(M,11,d)},otZ=function(M,d){return _.VZ(M,1,d)},KnZ=function(M,d){return _.Eq(M,7,d)};var Iqq="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var iC=function(M,d,N,R){M=M===void 0?window:M;d=d===void 0?null:d;N=N===void 0?new eZg:N;R=R===void 0?WnS():R;sId.call(this);var X=this;this.global=M;this.debugChannel=d;this.performanceMonitor=N;this.onPageHide=Qy(function(){return qv(X.global,"pagehide")}).pipe(PY(this.performanceMonitor,941));
this.onLoad=Qy(function(){return qv(X.global,"load")}).pipe(PY(this.performanceMonitor,738),JS(1));
this.onResize=Qy(function(){return qv(X.global,"resize")}).pipe(PY(this.performanceMonitor,741));
this.onMessage=Qy(function(){return qv(X.global,"message")}).pipe(PY(this.performanceMonitor,740));
this.document=new H6(this.global,this);this.timeProvider=new JCL(new SVm(this.intrinsicFunctionNamespace,this.performanceMonitor),new cCt(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new rCt(new bge(this),new ZJe(this),new ks(this,new ndd(this)),new ks(this,new d9g(this)),new ks(this,new bU(this)))};
_.v(iC,sId);var gl=function(M){var d=M.global;return!!M.global.HTMLFencedFrameElement&&!!d.fence&&typeof d.fence.reportEvent==="function"};
_.F=iC.prototype;_.F.reportFencedFrameEvent=function(M){gl(this)&&this.global.fence.reportEvent(M)};
_.F.getOnBackgrounded=function(){return this.onPageHide.pipe(PY(this.performanceMonitor,942),E_(this.queue),WY(function(){}))};
_.F.postMessage=function(M,d,N){N=N===void 0?[]:N;this.global.postMessage(M,d,N)};
_.F.getWidth=function(){return ny(this.global)?this.global.width:0};
_.F.getHeight=function(){return ny(this.global)?this.global.height:0};
_.F.isMobile=function(){return fmL()||LtV()};
var PT=function(M,d){try{var N=hnr(d,M.global,M.isMobile());return{left:N.left,top:N.top,width:N.getWidth(),height:N.getHeight()}}catch(R){return Ky}};
iC.prototype.validate=function(){var M=this.beaconFactory.isSupported()||gl(this);return this.global&&this.timeProvider.available()&&M};
var UOL=function(M){return(M=bIr(M.global))?E0(M):null};
_.Hm.Object.defineProperties(iC.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(M){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!ny(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}}});_.QGV=!_.lb&&!_.rZ();var qsr=function(M){return M};var vai=function(M){return M.pipe(O_(function(d){var N=d.endOfSessionReason;var R;return((R=d.viewable)==null?void 0:R.extrapolateToNow().value)||N!=void 0}),JS(1),ru())};var Lnp=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},tlv=function(M){var d=M.sequenceNumber.toString(10).padStart(2,"0");
d=""+M.startTime+d;M.sequenceNumber<99&&M.sequenceNumber++;return d};var mQA=uy(tS(function(M){return M.endOfSessionReason===void 0}),WY(function(M){return Object.assign({},M,{timestamps:BT(M)})}),O_(function(M){var d=M.viewable;
M=M.timestamps;var N;return(N=d==null?void 0:d.extrapolateUsingTimestampMap(M).value)!=null?N:!1}),WY(function(M){var d=M.beaconFactory;
var N=M.timestampedExposureHistory;var R=M.timeOnScreen;var X=M.binaryContext;M=M.timestamps;if(d===void 0||N===void 0||R===void 0||X===void 0)return!1;if(R.extrapolateUsingTimestampMap(M).value.every(function(A){return A>=0}))return!0;
N=N.map(function(A){return A.timestamp+":"+A.value}).join(",");
R=Tt({bin:X,tos:R},M);d.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+R+("&eh="+N)).sendNow();return!0}),tS(function(M){return!M}),ru());var aqi=function(M){return{id:M.pingId,mcvt:M.maxConsecutiveViewTime,p:M.creativePosition,asp:M.adSpeedPosition,tm:M.totalMeasurementTime,tu:M.totalUnviewedTime,mtos:M.maxTimeOnScreen,tos:M.timeOnScreen,v:M.binaryVersion,bin:M.binaryContext,avms:M.measurementStrategy,bs:M.browserSize,mc:M.maximumExposure,"if":M.crossDomainIframeState,vu:M.delayedImpressionJsState,app:M.inApp,mse:M.mraidError,mtop:M.mraidSituation,itpl:M.injectedTemplateId,adk:M.adKey,exk:M.awbidKey,rs:M.requestSource,la:M.isLargeAd,
cr:M.isContentRecommendationAd,uach:M.userAgentClientHints,vs:M.viewState,r:M.reasonCode,pay:M.hasCpmavUrl,co:M.clientPingOrderCounter,rst:M.adRenderStartTime,rpt:M.adRenderPeriodTime,isd:M.initialScrollDepth,lsd:M.loadedScrollDepth,context:M.errorContext,msg:M.errorMessage,stack:M.errorStack,name:M.errorName,ec:M.hasElementChanged,sfr:M.strategyFailureReasons,met:M.creativeSearchResult,wmsd:M.webMeasurementStartDiagnostic,pv:M.pageVisible,epv:M.eosPageVisible,pbe:M.inStatefulBeaconExperiment,fle:M.inFetchLaterBeaconExperiment,
vae:M.inViewableAttributionExperiment,spb:M.supportsPendingBeacon,sfl:M.supportsFetchLater,ffslot:M.isFencedFrameSlotTurtlex,reach:M.sharedStorageReachMode,io2:M.v2VisibilityBitVector,rxdbg:M.rxDebugger,omida:M.omidAppId,omidp:M.omidPartner,omidpv:M.omidPartnerVersion,omidor:M.omidOcclusionReasons,omidv:M.omidVersion,omids:M.omidSessionType,omidam:M.omidAccessMode,omidct:M.omidCreativeType,omidia:M.omidInApp,omiddc:M.omidDeviceCategory,omidlat:M.omidLastActivity,omiddit:M.omidDeviceIdleTime,qid:M.errorEscapedQueryId}};var ILp=function(M){var d=[];return M.pipe(WY(function(N){var R=N.beaconFactory,X=N.fetchBeaconFactory,A=N.timeOnScreen,l=N.timeOnScreenUrlPrefixes,k=N.payloadMapper,T=N.timeOnScreenPingId,W=N.timeOnScreenReason,w=N.urlSerializer,p=N.viewable,m=N.hasImpressionFired,I=N.inStatefulBeaconExperiment,O=N.supportsPendingBeacon,y=N.supportsFetchLater,c=N.turtlexReportEventData;if(!N.geometryMeasurable||!m||N.maxTimeOnScreen===void 0||A===void 0||l===void 0||k===void 0||T===void 0||w===void 0||R===void 0)return!1;
if(N.isTurtlex){if(W===void 0)return!1;l=N.reportFencedFrameEvent;if(!l)return!1;l({eventType:"active-view-time-on-screen",eventData:c!=null?c:"",destination:["buyer"]});return!0}if(!(I||y||W))return!1;c=BT(N);var e;p=(e=p==null?void 0:p.extrapolateUsingTimestampMap(c).value)!=null?e:!1;e=w(Object.assign({},N,{pingId:T,viewState:p?4:3,reasonCode:W!=null?W:"u",payloadMapper:k,urlPrefixes:l}),c);if(I){for(;d.length>l.length;)N=void 0,(N=d.shift())==null||N.deactivate();e.forEach(function(C,U){U>=d.length?
d.push(R.makeBeacon(C)):d[U].url=C});
return O&&X&&W!==void 0?(e.forEach(function(C){X.makeBeacon(C).sendNow()}),!0):W!==void 0}if(O&&X&&W!==void 0)return e.forEach(function(C){X.makeBeacon(C).sendNow()}),!0;
if(y&&X){for(;d.length>l.length;)O=void 0,(O=d.shift())==null||O.deactivate();var t=w(Object.assign({},N,{pingId:T,viewState:p?4:3,reasonCode:W!=null?W:"u",payloadMapper:k,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),c)[0];e.forEach(function(C,U){U>=d.length?d.push(R.makeBeacon(t,{endOfSession:!0})):d[U].url=t});
return W!==void 0?(e.forEach(function(C){X.makeBeacon(C).sendNow()}),!0):W!==void 0}return W!==void 0?(e.forEach(function(C){R.makeBeacon(C).sendNow()}),!0):!1}),tS(function(N){return!N}),ru())};var Okr=uy(O_(function(M){return M.immediateUrlPrefixes!==void 0&&M.payloadMapper!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),O_(function(M){return MMZ(M)!==null}),ZIj(function(M){return M.activeViewUnmeasurableEvent},function(M){return M.emit}),WY(function(M){if(M.isTurtlex){var d=M.reportFencedFrameEvent;
if(d){var N;d({eventType:"active-view-unmeasurable",eventData:(N=M.turtlexReportEventData)!=null?N:"",destination:["buyer"]})}}else{N=void 0;var R=MMZ(M);if(R==="x"){var X,A=(X=M.geometricMeasurementErrors)!=null?X:M.contextValidationErrors;A&&(d=A.stack,N=A.message)}M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:2,reasonCode:R,errorMessage:N,errorStack:d}),BT(M)).forEach(function(l){M.beaconFactory.makeBeacon(l).sendNow()})}}),
JS(1),ru());var dyp=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var pUq=uy(O_(function(M){return M.payloadMapper!==void 0&&M.immediateUrlPrefixes!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),WY(function(M){return Object.assign({},M,{timestamps:BT(M)})}),O_(function(M){var d=M.viewable;
var N=M.hasImpressionFired;M=M.timestamps;var R;return!!N&&((R=d==null?void 0:d.extrapolateUsingTimestampMap(M).value)!=null?R:!1)}),ZIj(function(M){return M.activeViewViewableEvent},function(M){return M.emit}),WY(function(M){var d=M.beaconFactory,N=M.turtlexReportEventData;
if(M.isTurtlex){var R=M.reportFencedFrameEvent;if(!R)return!1;R({eventType:"active-view-viewable",eventData:N!=null?N:"",destination:["buyer"]});return!0}N=M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:4,reasonCode:"v"}),M.timestamps);(R=M.cpmavUrls)&&R.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(R,M).forEach(function(X){d.makeBeacon(X).sendNow()});
(R=M.viewableRelayUrls)&&R.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(R,M).forEach(function(X){d.makeBeacon(X).sendNow()});
N.forEach(function(X){d.makeBeacon(X,{attributionEnabled:M.isViewableAttributionEnabled}).sendNow()});
return!0}),tS(function(M){return!M}),ru());var Lir=WY(function(M){return[M.value.topWindowViewportExternalGeometry.width,M.value.topWindowViewportExternalGeometry.height]});var o8=function(M,d){this.callback=M;this.options=d;this.intersectionObserverV2=this.intersectionObserverV1=null},j8i=function(M,d){d?M.intersectionObserverV2||(d=Object.assign({},M.options,{delay:100,
trackVisibility:!0}),M.intersectionObserverV2=new IntersectionObserver(M.callback,d)):M.intersectionObserverV1||(M.intersectionObserverV1=new IntersectionObserver(M.callback,M.options))},qAg=function(M,d){M=d?M.intersectionObserverV2:M.intersectionObserverV1;
if(!M)throw new PL3;return M};
o8.prototype.observe=function(M,d){qAg(this,M).observe(d)};
o8.prototype.unobserve=function(M,d){qAg(this,M).unobserve(d)};
o8.prototype.disconnect=function(M){qAg(this,M).disconnect()};
o8.prototype.takeRecords=function(M){return qAg(this,M).takeRecords()};var Oq={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Ky,topWindowViewportExternalGeometry:Ky,measurementRequests:new Yt,elementGeometrySourceName:"ns",elementGeometry:Ky,intersectionGeometry:Ky,viewportLocalAppOffset:{x:0,y:0}};var IGV=function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.elementGeometry.width*M.elementGeometry.height)},ywA=yZ(uy(WY(function(M){var d;
return(d=M.exposureOverride)!=null?d:IGV(M)}),WY(function(M){return isFinite(M)?M:0}))),Hyr=yZ(uy(WY(function(M){var d;
return(d=M.exposureOverride)!=null?d:IGV(M)}),WY(function(M){return isFinite(M)?M:-1})));var iU=function(M,d){this.a=M;this.b=d;if(M.clock.timeline!==d.clock.timeline)throw Error();};
iU.prototype.equivalentTo=function(M){return M instanceof iU?this.a.equivalentTo(M.a)&&this.b.equivalentTo(M.b):!1};
iU.prototype.extrapolateToTime=function(M){var d=this.a.extrapolateToTime(M).value,N=this.b.extrapolateToTime(M).value;return{timestamp:M,value:[d,N]}};
_.Hm.Object.defineProperties(iU.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var M=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),d=this.a.lastMeasurement.timestamp.equals(M)?this.a.lastMeasurement.value:this.a.extrapolateToTime(M).value,N=this.b.lastMeasurement.timestamp.equals(M)?this.b.lastMeasurement.value:this.b.extrapolateToTime(M).value;return{timestamp:M,value:[d,N]}}}});var fe=function(M,d){this.input=M;this.mapFunction=d;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
fe.prototype.equivalentTo=function(M){return M instanceof fe?this.input.equivalentTo(M.input)&&this.mapFunction===M.mapFunction:!1};
fe.prototype.extrapolateToTime=function(M){M=this.input.extrapolateToTime(M);return{timestamp:M.timestamp,value:this.mapFunction(M.value)}};
_.Hm.Object.defineProperties(fe.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Le=function(){};
Le.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Le.prototype.extrapolateUsingTimestampMap=function(M){var d=this.clock.timeline,N,R=(N=M.get(d))!=null?N:this.clock.now();M.set(d,R);return this.extrapolateToTime(R)};
Le.prototype.map=function(M){return new vZd(this,M)};
Le.prototype.joinWith=function(M){return new OKg(this,M)};
var OKg=function(){iU.apply(this,arguments);this.map=Le.prototype.map;this.joinWith=Le.prototype.joinWith;this.extrapolateToNow=Le.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Le.prototype.extrapolateUsingTimestampMap};
_.v(OKg,iU);var vZd=function(){fe.apply(this,arguments);this.map=Le.prototype.map;this.joinWith=Le.prototype.joinWith;this.extrapolateToNow=Le.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Le.prototype.extrapolateUsingTimestampMap};
_.v(vZd,fe);var SM=function(M,d){this.lastMeasurement=d;this.extrapolateToNow=Le.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Le.prototype.extrapolateUsingTimestampMap;this.map=Le.prototype.map;this.joinWith=Le.prototype.joinWith;this.clock=M};
SM.prototype.equivalentTo=function(M){return M.active};
SM.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Hm.Object.defineProperties(SM.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var fui=WY(function(M){if(M.value.viewportGeometrySourceName==="omid"){if(M.value.elementGeometrySourceName==="nio")return"omio";if(M.value.elementGeometrySourceName==="geo")return"omgeo"}return M.value.elementGeometrySourceName==="geo"||M.value.elementGeometrySourceName==="nio"?M.value.viewportGeometrySourceName:M.value.elementGeometrySourceName});var o4A=uy(O_(function(M){return!isNaN(M)}),i6(function(M,d){return isNaN(M)?d:Math.min(M,d)},NaN),cY());var Jwp=yZ(uy(WY(function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.exposedViewportLocalGeometry.width*M.exposedViewportLocalGeometry.height)}),WY(function(M){return isFinite(M)?Math.min(1,M):0})));var iyp=uy(yZ(WY(function(M){M=M.exposureOverride?M.elementGeometry.width*M.elementGeometry.height*M.exposureOverride/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height):M.intersectionGeometry.width*M.intersectionGeometry.height/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height);return isFinite(M)?M:0})));var Gtp=function(M,d){var N=this;this.timeProvider=M;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=d.pipe(cY()).subscribe(function(R){HT(N);N.measurementRequestObserver=R})},Uy6=function(M,d){HT(M);
M.lastMeasurementRequest=M.timeProvider.setTimeout(function(){var N;return void((N=M.measurementRequestObserver)==null?void 0:N.next())},d)},HT=function(M){M.lastMeasurementRequest!==null&&M.timeProvider.clearTimeout(M.lastMeasurementRequest);
M.lastMeasurementRequest=null};
Gtp.prototype.dispose=function(){HT(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var jGV=function(){};var gai=function(M,d){this.context=M;this.strategies=d};
_.v(gai,jGV);gai.prototype.buildGeometrySource=function(M,d){var N=this.strategies.map(function(A){return A.buildGeometrySource(M,d)}),R=ZyA(N.map(function(A){return A.geometrySource})),X=R.capturedErrors.pipe(sGC());
return{geometrySource:R.chain.pipe(E_(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:X,strategyErrors:R.capturedErrors}].concat(_.wu(N.map(function(A){return A.additionalOutputs}))))}};
var sGC=function(){return i6(function(M,d){d instanceof gF?M.push(d.measurementStrategyFailureReason):M.push(-1);return M},[])};var wUZ=function(M,d){this.context=M;this.poller=d};
_.v(wUZ,jGV);wUZ.prototype.buildGeometrySource=function(M,d){var N=E46(dQj(this.context,this.poller),g4q(this.context,d.requestSource));return{geometrySource:Yqq(M.measurableCreative.pipe(N),d.inApp),additionalOutputs:{}}};var Wxi=function(M,d,N){N=N===void 0?Q82(M,d):N;this.context=M;this.intersectionObserverStrategy=N};
_.v(Wxi,jGV);Wxi.prototype.buildGeometrySource=function(M,d){var N=this.intersectionObserverStrategy(d.useV2);return{geometrySource:Yqq(M.measurableCreative.pipe(N,qqj(this.context)),d.inApp),additionalOutputs:{}}};var POg=function(M,d,N){var R=R===void 0?Symbol():R;this.element=M;this.immediateUrls=d;this.timeOnScreenUrls=N;this.symbol=R};var eM=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),A8r=Object.freeze([1,.75,eM.exposureThreshold,eM.largeAdExposureThreshold,0]);var GyZ=function(M){var d=d===void 0?36E5:d;var N=N===void 0?!0:N;this.creatives=new Yt;this.elementsToUnregister=new Yt;this.elementMap=new Map;var R=new iC(window,null);R.beaconFactory=new ks(R,new bU(R));DQZ(R,this.creatives,this.elementsToUnregister,M,d,N).subscribe()},UjS=function(M,d,N,R){if(!M.elementMap.has(d)){var X=new sq(d);
M.elementMap.set(d,X);M.creatives.next(new POg(X,N,R))}},aZ2=function(M,d){M.elementsToUnregister.next(d);
var N=M.elementMap.get(d);N!==void 0&&(N.release(),M.elementMap.delete(d))};var qOp=jWA("adurl"),Qjj=jWA("ae"),hri=jWA("dsh"),mX6=function(M){var d=M.url;M=M.uaDataValues;this.JSC$7364_url_=d;this.uaDataValues_=M;this.suid_=(new Date).getTime()-17040672E5},I3Z=function(M){M=M.uaDataValues_;
if(!M)return"";var d=Ly("uap",M.platform)+Ly("uapv",M.platformVersion)+Ly("uafv",M.uaFullVersion)+Ly("uaa",M.architecture)+Ly("uam",M.model)+Ly("uab",M.bitness);M.fullVersionList&&(d+="&uafvl="+encodeURIComponent(M.fullVersionList.map(function(N){return encodeURIComponent(N.brand)+";"+encodeURIComponent(N.version)}).join("|")));
M.wow64!=null&&(d+="&uaw="+Number(M.wow64));return d.slice(1)};var tM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(tM,_.Jj);tM.prototype.getId=function(){return _.rP(this,1)};
tM.prototype.setId=function(M){return _.U$(this,1,M)};var Ge=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Ge,_.Jj);Ge.prototype.getSeconds=function(){return s1(this,1)};
Ge.prototype.setSeconds=function(M){return _.m1(this,1,PP(M),"0")};_.eB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(_.eB,_.Jj);_.eB.prototype.getSeconds=function(){return s1(this,1)};
_.eB.prototype.setSeconds=function(M){return _.m1(this,1,PP(M),"0")};
_.oZL=function(M){var d=Number(yx(M,1));M=_.Cy(M,2);return new Date(d*1E3+M/1E6)};var ax=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(ax,_.Jj);ax.prototype.getUrl=function(){return _.rP(this,1)};
ax.prototype.setUrl=function(M){return _.U$(this,1,M)};
ax.prototype.getHeight=function(){return _.Cy(this,2)};
ax.prototype.getWidth=function(){return _.Cy(this,3)};var U8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(U8,_.Jj);U8.prototype.getAspectRatio=function(){return oX(this,1)};
U8.prototype.setAspectRatio=function(M){return _.m1(this,1,_.Ad(M),0)};
U8.prototype.getDuration=function(){return _.uk(this,Ge,2)};var rjz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(rjz,_.Jj);var K1J=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(K1J,_.Jj);var yjz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(yjz,_.Jj);var Jjd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Jjd,_.Jj);var cjL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(cjL,_.Jj);var SAm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(SAm,_.Jj);var z6V=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(z6V,_.Jj);var bKV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(bKV,_.Jj);var e6e=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(e6e,_.Jj);var uU=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(uU,_.Jj);var Ce=[2,4,5,6,7];var HKC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(HKC,_.Jj);var v_=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(v_,_.Jj);_.F=v_.prototype;_.F.getId=function(){return _.uk(this,tM,1)};
_.F.setId=function(M){return _.ZG(this,1,M)};
_.F.getName=function(){return _.rP(this,2)};
_.F.setDescription=function(M){return _.U$(this,3,M)};
_.F.getUrl=function(){return _.rP(this,8)};
_.F.setUrl=function(M){return _.U$(this,8,M)};
var xs=function(M){return _.Uq(M,ax,10,_.uC())};
v_.prototype.getOwner=function(M){var d=_.kZ(this,40,_.zb,3,!0);bL(d,M);return d[M]};
v_.prototype.getVersion=function(){return s1(this,45)};
var Ys=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Ys,_.Jj);_.nZL=[0,jPN,Pfi];_.iKJ=[0,jPN,Pfi];var fGt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(fGt,_.Jj);var Z0=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Z0,_.Jj);Z0.prototype.getStatus=function(){return _.K5(this,1)};
Z0.prototype.removeItem=function(M){return ar2(this,2,M)};var L1o=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(L1o,_.Jj);L1o.prototype.getName=function(){return _.rP(this,8)};var E8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(E8,_.Jj);E8.prototype.getCommand=function(){return _.K5(this,1)};
E8.prototype.getSource=function(){return _.uk(this,L1o,2)};
E8.prototype.setVisible=function(M){return _.hX(this,5,M)};
E8.prototype.removeItem=function(M){return ar2(this,7,M)};var tvC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(tvC,_.Jj);tvC.prototype.getCommand=function(){return _.K5(this,1)};
tvC.prototype.removeItem=function(M){return ar2(this,4,M)};
var Ghe=_.xZ(tvC);var Mc=function(M,d,N){N=N===void 0?Error():N;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=M;d+=":";N instanceof Error?(this.message=d+N.message,this.stack=N.stack||""):(this.message=d+String(N),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(Mc,Error);_.DL=function(){this.JSC$7422_disposed_=this.JSC$7422_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.DL.prototype.JSC$7422_disposed_=!1;_.DL.prototype.isDisposed=function(){return this.JSC$7422_disposed_};
_.DL.prototype.dispose=function(){this.JSC$7422_disposed_||(this.JSC$7422_disposed_=!0,this.disposeInternal())};
_.DL.prototype[Symbol.dispose]=function(){this.dispose()};
_.RW=function(M,d){M.addOnDisposeCallback(_.B1(_.tw,d))};
_.DL.prototype.addOnDisposeCallback=function(M,d){this.JSC$7422_disposed_?d!==void 0?M.call(d):M():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),d&&(M=M.bind(d)),this.onDisposeCallbacks_.push(M))};
_.DL.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var dy=function(M){_.DL.call(this);this.wpc=M};
_.v(dy,_.DL);dy.prototype.rpD=function(){return this.wpc.f()};
dy.prototype.uvD=function(M){return this.wpc.c(M)};
dy.prototype.vX=function(M){return this.wpc.m(y8S(M))};
dy.prototype.vR=function(M){return this.wpc.mws(y8S(M))};
var a8=function(M){_.DL.call(this);var d=this;this.ri=M;this.jC6="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.dN4=void 0;this.lgG=this.ri.p;this.jYX=this.dRS.bind(this);this.addOnDisposeCallback(function(){return void aGm(d)})};
_.v(a8,_.DL);var U9t=function(M){var d;return _.B(function(N){if(N.nextAddress==1){if(!M.ri.wpc)throw new Mc(30,"NWA");return M.eYD?N.return(M.eYD):_.D(N,M.ri.wpc(),2)}d=N.yieldResult;M.eYD=new dy(d);return N.return(M.eYD)})};
a8.prototype.snapshot=function(M){return this.ri.s(Object.assign({},M.oN&&{c:M.oN},M.vWn&&{s:M.vWn},M.q3M!==void 0&&{p:M.q3M}))};
a8.prototype.dRS=function(M){this.ri.e(M)};
a8.prototype.kNS=function(M,d){return this.ri.c(M,d,!1)};
var aGm=function(M){M.dN4!==void 0&&(M.jC6.forEach(function(d){var N;(N=M.dN4)==null||N.removeEventListener(d,M.jYX)}),M.dN4=void 0)};
a8.prototype.hCw=function(){return this.ri.l()};var uSg,Nc=function(){_.DL.apply(this,arguments);this.nt2=1;this[uSg]=this.dispose};
_.v(Nc,_.DL);Nc.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.nt2++;return this};
Nc.prototype.dispose=function(){--this.nt2||_.DL.prototype.dispose.call(this)};
uSg=Symbol.dispose;var M96=function(M){this.vIn=M;M.addNewEventMetric("/client_streamz/bg/frs",_.Zu("mk"))};
M96.prototype.record=function(M,d){this.vIn.record("/client_streamz/bg/frs",M,d)};
var Xgi=function(M){this.tJz=M;M.addNewEventMetric("/client_streamz/bg/wrl",_.Zu("mn"),Y4("ac"),Y4("sc"),_.Zu("rk"),_.Zu("mk"))};
Xgi.prototype.record=function(M,d,N,R,X,A){this.tJz.record("/client_streamz/bg/wrl",M,d,N,R,X,A)};
var N0A=function(M){this.gIx=M;M.addNewCounter("/client_streamz/bg/ec",_.Zu("en"),_.Zu("mk"))};
N0A.prototype.increment=function(M,d){this.gIx.JSC$7671_incrementCounter("/client_streamz/bg/ec",M,d)};
var RM6=function(M){this.s0i=M;M.addNewEventMetric("/client_streamz/bg/el",_.Zu("en"),_.Zu("mk"))};
RM6.prototype.record=function(M,d,N){this.s0i.record("/client_streamz/bg/el",M,d,N)};
var dFq=function(M){this.ami=M;M.addNewCounter("/client_streamz/bg/cec",Y4("ec"),_.Zu("mk"))};
dFq.prototype.increment=function(M,d){this.ami.JSC$7671_incrementCounter("/client_streamz/bg/cec",M,d)};
var FFp=function(M){this.oI6=M;M.addNewCounter("/client_streamz/bg/po/csc",Y4("cs"),_.Zu("mk"))};
FFp.prototype.increment=function(M,d){this.oI6.JSC$7671_incrementCounter("/client_streamz/bg/po/csc",M,d)};
var Alj=function(M){this.wB6=M;M.addNewCounter("/client_streamz/bg/po/ctav",_.Zu("av"),_.Zu("mk"))};
Alj.prototype.increment=function(M,d){this.wB6.JSC$7671_incrementCounter("/client_streamz/bg/po/ctav",M,d)};
var V9L=function(M){this.pB6=M;M.addNewCounter("/client_streamz/bg/po/cwsc",_.Zu("su"),_.Zu("mk"))};
V9L.prototype.increment=function(M,d){this.pB6.JSC$7671_incrementCounter("/client_streamz/bg/po/cwsc",M,d)};var WFA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(WFA,_.Jj);var gTN=function(M,d){return _.ws(M,3,d,YS6)};var COz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(COz,_.Jj);var x9z=[1,2,3];var YAm=[0,x9z,_.J7p,opr,y7L];var ZKV=[0,_.U1,[0,IEZ,_.f5]];var EZz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(EZz,_.Jj);var Mdz=[1,2,3];var dOz=[0,Mdz,sPi,vpq,_.ub,ZKV];var NHI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(NHI,_.Jj);var Rqd=[0,_.U1,YAm,dOz];var XQL=[0,[1,2,3],_.ub,[0,_.G7,-1,_.ti],_.ub,[0,_.G7,-1,_.L5,_.ti],_.ub,[0,_.G7]];var FLJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(FLJ,_.Jj);FLJ.prototype.JSC$7491_serializeBinary=d9Z([0,_.G7,XQL,c7Z,_.U1,Rqd,r7i,KHA]);var A_3=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(A_3,_.Jj);var $OV=function(M){var d=new FLJ;d=_.VZ(d,1,M.JSC$7607_metricName);var N=Vdg(M);d=_.ws(d,3,N,_.cP);N=[];for(var R=[],X=_.V(M.cellMap.keys()),A=X.next();!A.done;A=X.next())R.push(A.value.split(","));for(X=0;X<R.length;X++){A=R[X];for(var l=M.cellType,k=M.getCells(A)||[],T=[],W=0;W<k.length;W++){var w=k[W],p=w&&w.cellValue;w=new EZz;switch(l){case 3:p=Number(p);Number.isFinite(p)&&Fy(w,1,Mdz,PP(p));break;case 2:Fy(w,2,Mdz,_.Ad(Number(p)))}T.push(w)}l=T;for(k=0;k<l.length;k++){T=l[k];W=new NHI;T=_.ZG(W,
2,T);W=[];w=lWg(M);for(p=0;p<w.length;p++){var m=w[p],I=A[p],O=new COz;switch(m){case 3:Fy(O,1,x9z,Si(String(I)));break;case 2:m=Number(I);Number.isFinite(m)&&Fy(O,2,x9z,_.hd(m));break;case 1:Fy(O,3,x9z,uiq(I==="true"))}W.push(O)}IX(T,1,W);N.push(T)}}IX(d,4,N);return d};var BHL=function(M){if(!M)return"";if(/^about:(?:blank|srcdoc)$/.test(M))return window.origin||"";M.indexOf("blob:")===0&&(M=M.substring(5));M=M.split("#")[0].split("?")[0];M=M.toLowerCase();M.indexOf("//")==0&&(M=window.location.protocol+M);/^[\w\-]*:\/\//.test(M)||(M=window.location.href);var d=M.substring(M.indexOf("://")+3),N=d.indexOf("/");N!=-1&&(d=d.substring(0,N));N=M.substring(0,M.indexOf("://"));if(!N)throw Error("ua`"+M);if(N!=="http"&&N!=="https"&&N!=="chrome-extension"&&N!=="moz-extension"&&
N!=="file"&&N!=="android-app"&&N!=="chrome-search"&&N!=="chrome-untrusted"&&N!=="chrome"&&N!=="app"&&N!=="devtools")throw Error("va`"+N);M="";var R=d.indexOf(":");if(R!=-1){var X=d.substring(R+1);d=d.substring(0,R);if(N==="http"&&X!=="80"||N==="https"&&X!=="443")M=":"+X}return N+"://"+d+M};var THm=function(M,d,N){var R=String(_.Np.location.href);return R&&M&&d?[d,kP3(BHL(R),M,N||null)].join(" "):null},kP3=function(M,d,N){var R=[],X=[];
if((Array.isArray(N)?2:1)==1)return X=[d,M],_.Hy(R,function(k){X.push(k)}),DOe(X.join(" "));
var A=[],l=[];_.Hy(N,function(k){l.push(k.key);A.push(k.value)});
N=Math.floor((new Date).getTime()/1E3);X=A.length==0?[N,d,M]:[A.join(":"),N,d,M];_.Hy(R,function(k){X.push(k)});
M=DOe(X.join(" "));M=[N,M];l.length==0||M.push(l.join(""));return M.join("_")},DOe=function(M){var d=naq();
d.update(M);return d.digestString().toLowerCase()};var Re=function(M){this.JSC$7502_document_=M||{cookie:""}},g8J;
_.F=Re.prototype;_.F.isEnabled=function(){if(!_.Np.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};
_.F.set=function(M,d,N){var R=!1;if(typeof N==="object"){var X=N.sameSite;R=N.secure||!1;var A=N.domain||void 0;var l=N.path||void 0;var k=N.maxAge}if(/[;=\s]/.test(M))throw Error("wa`"+M);if(/[;\r\n]/.test(d))throw Error("xa`"+d);k===void 0&&(k=-1);N=A?";domain="+A:"";l=l?";path="+l:"";R=R?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.JSC$7502_document_.cookie=M+"="+d+N+l+k+R+(X!=null?";samesite="+X:"")};
_.F.get=function(M,d){for(var N=M+"=",R=(this.JSC$7502_document_.cookie||"").split(";"),X=0,A;X<R.length;X++){A=_.Xq(R[X]);if(A.lastIndexOf(N,0)==0)return A.slice(N.length);if(A==M)return""}return d};
_.F.remove=function(M,d,N){var R=this.containsKey(M);this.set(M,"",{maxAge:0,path:d,domain:N});return R};
_.F.getKeys=function(){return g8J(this).keys};
_.F.getValues=function(){return g8J(this).values};
_.F.isEmpty=function(){return!this.JSC$7502_document_.cookie};
_.F.getCount=function(){return this.JSC$7502_document_.cookie?(this.JSC$7502_document_.cookie||"").split(";").length:0};
_.F.containsKey=function(M){return this.get(M)!==void 0};
_.F.containsValue=function(M){for(var d=g8J(this).values,N=0;N<d.length;N++)if(d[N]==M)return!0;return!1};
_.F.clear=function(){for(var M=g8J(this).keys,d=M.length-1;d>=0;d--)this.remove(M[d])};
g8J=function(M){M=(M.JSC$7502_document_.cookie||"").split(";");for(var d=[],N=[],R,X,A=0;A<M.length;A++)X=_.Xq(M[A]),R=X.indexOf("="),R==-1?(d.push(""),N.push(X)):(d.push(X.substring(0,R)),N.push(X.substring(R+1)));return{keys:d,values:N}};
_.BJ=new Re(typeof document=="undefined"?null:document);var WL3=_.Np.window,lVS=function(){var M=_.Np.__SAPISID||_.Np.__APISID||_.Np.__3PSAPISID||_.Np.__1PSAPISID||_.Np.__OVERRIDE_SID;if(M)return!0;typeof document!=="undefined"&&(M=new Re(document),M=M.get("SAPISID")||M.get("APISID")||M.get("__Secure-3PAPISID")||M.get("__Secure-1PAPISID"));return!!M},wQ3=function(M,d,N,R){(M=_.Np[M])||typeof document==="undefined"||(M=(new Re(document)).get(d));
return M?THm(M,N,R):null},uwZ=function(M){var d=BHL(String(WL3.location.href)),N=[];
if(lVS()){d=d.indexOf("https:")==0||d.indexOf("chrome-extension:")==0||d.indexOf("chrome-untrusted://new-tab-page")==0||d.indexOf("moz-extension:")==0;var R=d?_.Np.__SAPISID:_.Np.__APISID;R||typeof document==="undefined"||(R=new Re(document),R=R.get(d?"SAPISID":"APISID")||R.get("__Secure-3PAPISID"));(R=R?THm(R,d?"SAPISIDHASH":"APISIDHASH",M):null)&&N.push(R);d&&((d=wQ3("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",M))&&N.push(d),(M=wQ3("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",M))&&N.push(M))}return N.length==
0?null:N.join(" ")};var pQz=function(){this.minSize=1024};
pQz.prototype.compress=function(M){var d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return d=new CompressionStream("gzip"),N=(new Response(d.readable)).arrayBuffer(),R=d.writable.getWriter(),_.D(A,R.write((new TextEncoder).encode(M)),2);case 2:return _.D(A,R.close(),3);case 3:return X=Uint8Array,_.D(A,N,4);case 4:return A.return(new X(A.yieldResult))}})};
pQz.prototype.isSupported=function(M){return M<this.minSize?!1:typeof CompressionStream!=="undefined"};var mOg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(mOg,_.Jj);var X7=function(M,d){this.intervalMs=M;this.callback=d;this.enabled=!1;this.nowFn=function(){return _.Nn()};
this.lastTimeMs=this.nowFn()};
X7.prototype.setInterval=function(M){this.intervalMs=M;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
X7.prototype.start=function(){var M=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){M.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
X7.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
X7.prototype.tick=function(){var M=this;if(this.enabled){var d=Math.max(this.nowFn()-this.lastTimeMs,0);d<this.intervalMs*.8?this.timer=setTimeout(function(){M.tick()},this.intervalMs-d):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var hqL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(hqL,_.Jj);var QOL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(QOL,_.Jj);var q0o=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(q0o,_.Jj);q0o.prototype.getTransmissionType=function(){return _.K5(this,1)};var tzZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(tzZ,_.Jj);tzZ.prototype.getVersion=function(){return _.rP(this,2)};var F7=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(F7,_.Jj);var Lxp=function(M){IX(G5i,1,M)};
F7.prototype.getModel=function(){return _.rP(this,6)};
var IWm=_.xZ(F7);var v8V=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(v8V,_.Jj);var ikj=["platform","platformVersion","architecture","model","uaFullVersion"],G5i=new F7,fLZ=null;var OSV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(OSV,_.Jj);var jOC=function(M){return _.CE(M,1,1)};var sOd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,4)};
_.v(sOd,_.Jj);_.AY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,36)};
_.v(_.AY,_.Jj);_.AY.prototype.getExperimentIds=function(){return _.uk(this,mOg,16)};var PyI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,19)};
_.v(PyI,_.Jj);PyI.prototype.setLogSource=function(M){return _.CE(this,2,M)};
PyI.prototype.setScheduler=function(M){return _.CE(this,10,M)};var r_z=function(M,d){this.isServiceWorkerScope=d=d===void 0?!1:d;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new PyI;Number.isInteger(M)&&this.logRequest.setLogSource(M);d||(this.locale=document.documentElement.getAttribute("lang"));o8L(this,new OSV)};
r_z.prototype.setLogSource=function(M){this.logRequest.setLogSource(M);return this};
var o8L=function(M,d){_.ZG(M.logRequest,1,d);_.K5(d,1)||jOC(d);M.isServiceWorkerScope||(d=VK(M),_.rP(d,5)||_.VZ(d,5,M.locale));M.uach&&(d=VK(M),_.uk(d,F7,9)||_.ZG(d,9,M.uach))},KLV=function(M,d){M.transmissionType=d},y_3=function(M){var d=d===void 0?ikj:d;
var N=M.isServiceWorkerScope?void 0:QZ();N?aLA(N,d).then(function(R){M.uach=IWm(R!=null?R:"[]");R=VK(M);_.ZG(R,9,M.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},VK=function(M){M=_.uk(M.logRequest,OSV,1);
var d=_.uk(M,v8V,11);d||(d=new v8V,_.ZG(M,11,d));return d};
r_z.prototype.build=function(M,d,N,R,X,A){d=d===void 0?0:d;N=N===void 0?0:N;R=R===void 0?null:R;X=X===void 0?0:X;A=A===void 0?0:A;if(!this.isServiceWorkerScope){var l=VK(this);var k=new q0o;k=_.CE(k,1,this.transmissionType);k=_.Eq(k,2,this.isFinal);N=_.SS(k,3,N>0?N:void 0);N=_.SS(N,4,X>0?X:void 0);N=_.SS(N,5,A>0?A:void 0);X=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=X[_.II]|0;N=yz(N,A)?N:RG(N,X,A)?N9(N,X):new N.constructor(ET(X,A,!0));_.ZG(l,10,N)}l=this.logRequest.clone();N=Date.now().toString();
l=_.xY(l,4,PP(N));M=M.slice();M=IX(l,3,M);R&&(l=new hqL,R=_.SS(l,13,R),l=new QOL,R=_.ZG(l,2,R),l=new sOd,R=_.ZG(l,1,R),R=_.CE(R,2,9),_.ZG(M,18,R));d&&_.Ti(M,14,d);return M};MQ.prototype.currBackoffCount_=0;MQ.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
MQ.prototype.getValue=function(){return this.currValue_};
var J_d=function(M){M.currBaseValue_=Math.min(M.maxValue_,M.currBaseValue_*M.backoffFactor_);M.currValue_=Math.min(M.maxValue_,M.currBaseValue_+(M.randomFactor_?Math.round(M.randomFactor_*(Math.random()-.5)*2*M.currBaseValue_):0));M.currBackoffCount_++};var Hsi=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,8)};
_.v(Hsi,_.Jj);var c_V=_.xZ(Hsi);var npi=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(npi,_.Jj);var lm;lm=new isj;var $9=function(M){_.DL.call(this);var d=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7580_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$7580_sendBeaconApiEnabled=!1;this.logSource=M.logSource;this.getAuthHeaderValue=
M.getAuthHeaderValue||function(){};
this.logRequestBuilder=new r_z(M.logSource,M.isServiceWorkerScope);this.network=M.network||null;this.productID=M.productID||null;this.clearcutUrl=M.urlOverride||null;this.sessionIndex=M.sessionIndex||null;this.disableAutomaticFlush=M.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!M.disableWithCredentials;this.isServiceWorkerScope=M.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!QZ()&&!!QZ().navigator&&QZ().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(S0V())).searchParams&&!!(new URL(S0V())).searchParams.set;var N=jOC(new OSV);o8L(this.logRequestBuilder,N);this.flushBackoff=new MQ(1E4,3E5,.1);M=zqV(this,M.backgroundJobDeferrer);this.JSC$7580_flushTimer=new X7(this.flushBackoff.getValue(),M);this.backupTimer=new X7(6E5,M);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){bSt(d);
var R;(R=d.metalogService)==null||R.flush()}}),document.addEventListener("pagehide",function(){bSt(d);
var R;(R=d.metalogService)==null||R.flush()}))};
_.v($9,_.DL);var zqV=function(M,d){return M.isBrowserSupported?d?function(){d().then(function(){M.flush()})}:function(){M.flush()}:function(){}};
$9.prototype.disposeInternal=function(){bSt(this);this.JSC$7580_flushTimer.stop();this.backupTimer.stop();_.DL.prototype.disposeInternal.call(this)};
var eqm=function(M){M.clearcutUrl||(M.clearcutUrl=S0V());try{return(new URL(M.clearcutUrl)).toString()}catch(d){return(new URL(M.clearcutUrl,QZ().location.origin)).toString()}};
$9.prototype.dispatch=function(M){if(M instanceof _.AY)this.log(M);else try{var d=new _.AY,N=M.serialize();var R=_.VZ(d,8,N);this.log(R)}catch(X){BX(this,4,1)}};
var BX=function(M,d,N){M.metalogService&&M.metalogService.increment(d,N)};
$9.prototype.log=function(M){BX(this,2,1);if(this.isBrowserSupported){M=M.clone();var d=this.sequencePosition++;M=_.Ti(M,21,d);this.componentId&&_.VZ(M,26,this.componentId);d=M;if(De6(_.wP(d,1))==null){var N=Date.now();N=Number.isFinite(N)?N.toString():"0";_.xY(d,1,PP(N))}_.T3i(_.wP(d,15))!=null||_.Ti(d,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(N=this.experimentIds.clone(),_.ZG(d,16,N));BX(this,1,1);d=this.pendingEvents.length-1E3+1;d>0&&(this.pendingEvents.splice(0,d),this.numLogsDroppedSinceLastFlush+=
d,BX(this,3,d));this.pendingEvents.push(M);this.disableAutomaticFlush||this.JSC$7580_flushTimer.enabled||this.JSC$7580_flushTimer.start()}};
$9.prototype.flush=function(M,d){var N=this;if(this.pendingEvents.length===0)M&&M();else if(this.JSC$7580_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,HSI(this);else{var R=Date.now();if(this.noFlushUntilMs>R&&this.startWaitingMs<R)d&&d("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?KLV(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var X=this.pendingEvents.length,
A=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),l=this.getAuthHeaderValue();if(l&&this.lastFailedAuth===l)d&&d("stale-auth-token");else{this.pendingEvents=[];this.JSC$7580_flushTimer.enabled&&this.JSC$7580_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;R=A.serialize();var k;this.JSC$7580_compressor&&this.JSC$7580_compressor.isSupported(R.length)&&
(k=this.JSC$7580_compressor.compress(R));var T=n8d(this,R,l),W=function(m){N.flushBackoff.reset();N.JSC$7580_flushTimer.setInterval(N.flushBackoff.getValue());if(m){var I=null;try{var O=JSON.stringify(JSON.parse(m.replace(")]}'\n","")));I=c_V(O)}catch(y){}I&&(m=Number(s1(I,1,_.Go("-1"))),m>0&&(N.startWaitingMs=Date.now(),N.noFlushUntilMs=N.startWaitingMs+m),odj(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,lm.fieldIndex),yCi(I,lm.fieldIndex),I=lm.ctor?lm.getExtensionFn(I,lm.ctor,lm.fieldIndex,
lm.JSC$6752_hasMessageId):lm.getExtensionFn(I,lm.fieldIndex,null,lm.JSC$6752_hasMessageId),I=I===null?void 0:I)&&(I=_.Cy(I,1,-1),I!==-1&&(N.flushBackoff=new MQ(I<1?1:I,3E5,.1),N.JSC$7580_flushTimer.setInterval(N.flushBackoff.getValue())))}M&&M();N.numRetriesSinceLastSuccessfulFlush=0},w=function(m,I){var O=_.Uq(A,_.AY,3,_.uC());
var y=Number(s1(A,14));J_d(N.flushBackoff);N.JSC$7580_flushTimer.setInterval(N.flushBackoff.getValue());m===401&&l&&(N.lastFailedAuth=l);y&&(N.numLogsDroppedSinceLastFlush+=y);I===void 0&&(I=N.isRetryable(m));I&&(N.pendingEvents=O.concat(N.pendingEvents),N.disableAutomaticFlush||N.JSC$7580_flushTimer.enabled||N.JSC$7580_flushTimer.start());BX(N,7,1);d&&d("net-send-failed",m);++N.numRetriesSinceLastSuccessfulFlush},p=function(){N.network&&N.network.send(T,W,w)};
k?k.then(function(m){BX(N,5,X);T.requestHeaders["Content-Encoding"]="gzip";T.requestHeaders["Content-Type"]="application/binary";T.body=m;T.bodyType=2;p()},function(){BX(N,6,X);
p()}):p()}}}};
var n8d=function(M,d,N){N=N===void 0?null:N;var R=R===void 0?M.withCredentials:R;var X={},A=new URL(eqm(M));N&&(X.Authorization=N);M.sessionIndex&&(X["X-Goog-AuthUser"]=M.sessionIndex,A.searchParams.set("authuser",M.sessionIndex));M.pageId&&(Object.defineProperty(X,"X-Goog-PageId",{value:M.pageId}),A.searchParams.set("pageId",M.pageId));return{url:A.toString(),body:d,bodyType:1,requestHeaders:X,requestType:"POST",withCredentials:R,timeoutMillis:M.timeoutMillis}},bSt=function(M){M.logRequestBuilder.isFinal=
!0;
M.flush();M.logRequestBuilder.isFinal=!1},HSI=function(M){iSC(M,function(d,N){d=new URL(d);
d.searchParams.set("format","json");var R=!1;try{R=QZ().navigator.sendBeacon(d.toString(),N.serialize())}catch(X){}R||(M.isSendBeaconSupported=!1);return R})},iSC=function(M,d){if(M.pendingEvents.length!==0){var N=new URL(eqm(M));
N.searchParams.delete("format");var R=M.getAuthHeaderValue();R&&N.searchParams.set("auth",R);N.searchParams.set("authuser",M.sessionIndex||"0");for(R=0;R<10&&M.pendingEvents.length;++R){var X=M.pendingEvents.slice(0,32),A=M.logRequestBuilder.build(X,M.numLogsDroppedSinceLastFlush,M.numRetriesSinceLastSuccessfulFlush,M.productID,M.persistedLogRecoveredCount,M.persistedLogExpiredCount);if(!d(N.toString(),A)){++M.numRetriesSinceLastSuccessfulFlush;break}M.numLogsDroppedSinceLastFlush=0;M.numRetriesSinceLastSuccessfulFlush=
0;M.persistedLogRecoveredCount=0;M.persistedLogExpiredCount=0;M.pendingEvents=M.pendingEvents.slice(X.length)}M.JSC$7580_flushTimer.enabled&&M.JSC$7580_flushTimer.stop()}};
$9.prototype.isRetryable=function(M){return 500<=M&&M<600||M===401||M===0};
var S0V=function(){return"https://play.google.com/log?format=json&hasfast=true"};var fWd=function(){this.abortSupported=typeof AbortController!=="undefined"};
fWd.prototype.send=function(M,d,N){var R=this,X,A,l,k,T,W,w,p,m,I;return _.B(function(O){switch(O.nextAddress){case 1:return A=(X=R.abortSupported?new AbortController:void 0)?setTimeout(function(){X.abort()},M.timeoutMillis):void 0,_.Mv(O,2,3),l=Object.assign({},{method:M.requestType,
headers:Object.assign({},M.requestHeaders)},M.body&&{body:M.body},M.withCredentials&&{credentials:"include"},{signal:M.timeoutMillis&&X?X.signal:null}),_.D(O,fetch(M.url,l),5);case 5:k=O.yieldResult;if(k.status!==200){(T=N)==null||T(k.status);O.jumpTo(3);break}if((W=d)==null){O.jumpTo(7);break}return _.D(O,k.text(),8);case 8:W(O.yieldResult);case 7:case 3:_.du(O);clearTimeout(A);_.Xg(O,0);break;case 2:w=_.Fg(O);switch((p=w)==null?void 0:p.name){case "AbortError":(m=N)==null||m(408);break;default:(I=
N)==null||I(400)}O.jumpTo(3)}})};
fWd.prototype.getTransmissionType=function(){return 4};_.NQ=function(M,d){d=d===void 0?"0":d;_.DL.call(this);this.logSource=M;this.sessionIndex=d;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7598_clearExperimentIds=this.productID=null;this.JSC$7598_sendBeaconApiEnabled=!1;this.pageId=null};
_.v(_.NQ,_.DL);var kT6=function(M,d){M.buildLabel=d;return M},B0q=function(M,d){M.network=d;
return M},DF2=function(M,d){M.JSC$7598_clearExperimentIds=d},$Fi=function(M){M.JSC$7598_sendBeaconApiEnabled=!0;
return M};
_.NQ.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.NQ.prototype.build=function(){this.network||(this.network=new fWd);var M=new $9({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:uwZ,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.RW(this,M);if(this.buildLabel){var d=this.buildLabel,N=VK(M.logRequestBuilder);
_.VZ(N,7,d)}M.JSC$7580_compressor=new pQz;this.componentId&&(M.componentId=this.componentId);this.productID&&(M.productID=this.productID);this.pageId&&(M.pageId=this.pageId);this.JSC$7598_clearExperimentIds&&((N=this.JSC$7598_clearExperimentIds)?(M.experimentIds||(M.experimentIds=new mOg),d=M.experimentIds,N=N.serialize(),_.VZ(d,4,N)):M.experimentIds&&_.xY(M.experimentIds,4));this.JSC$7598_sendBeaconApiEnabled&&(M.JSC$7580_sendBeaconApiEnabled=M.isSendBeaconSupported);y_3(M.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(M);return M};var wgZ=function(M,d,N,R,X,A,l){M=M===void 0?-1:M;d=d===void 0?"":d;N=N===void 0?"":N;R=R===void 0?!1:R;X=X===void 0?"":X;_.DL.call(this);this.logSource=M;this.componentId=d;A?d=A:(M=new _.NQ(M,"0"),M.componentId=d,_.RW(this,M),N!==""&&(M.destinationUrl=N),R&&(M.serviceWorkerScopeEnabled=!0),X&&kT6(M,X),l&&B0q(M,l),d=M.build());this.JSC$7602_transport=d};
_.v(wgZ,_.DL);wgZ.prototype.flush=function(M){M=M||[];if(M.length){for(var d=new A_3,N=[],R=0;R<M.length;R++){var X=M[R],A=$OV(X);N.push(A);X.clear()}IX(d,1,N);this.JSC$7602_transport.dispatch(d);this.JSC$7602_transport.flush()}};var LLd=function(M){this.cellValue=M};var k9=function(M,d,N){this.JSC$7607_metricName=M;this.cellType=d;this.fields=N||[];this.cellMap=new Map},lWg=function(M){return M.fields.map(function(d){return d.fieldType})},Vdg=function(M){return M.fields.map(function(d){return d.fieldName})};
_.F=k9.prototype;_.F.addCell=function(M){var d=_.wH.apply(1,arguments),N=this.getCells(d);N?N.push(new LLd(M)):this.JSC$7607_setCell(M,d)};
_.F.JSC$7607_setCell=function(M){var d=this.JSC$7607_getKey(_.wH.apply(1,arguments));this.cellMap.set(d,[new LLd(M)])};
_.F.getCells=function(){var M=this.JSC$7607_getKey(_.wH.apply(0,arguments));return this.cellMap.has(M)?this.cellMap.get(M):void 0};
_.F.getCell=function(){var M=this.getCells(_.wH.apply(0,arguments));return M&&M.length?M[0]:void 0};
_.F.clear=function(){this.cellMap.clear()};
_.F.JSC$7607_getKey=function(){var M=_.wH.apply(0,arguments);return M?M.join(","):"key"};var tdz=function(M,d){k9.call(this,M,3,d)};
_.v(tdz,k9);tdz.prototype.JSC$7610_incrementCounterBy=function(M){var d=_.wH.apply(1,arguments),N=0,R=this.getCell(d);R&&(N=R.cellValue);this.JSC$7607_setCell(N+M,d)};var GPd=function(M,d){k9.call(this,M,2,d)};
_.v(GPd,k9);GPd.prototype.record=function(M){this.addCell(M,_.wH.apply(1,arguments))};_.TU=function(M){this.id=M};
_.TU.prototype.toString=function(){return this.id};_.Dj=function(M,d){this.type=M instanceof _.TU?String(M):M;this.currentTarget=this.target=d;this.defaultPrevented=this.propagationStopped_=!1};
_.Dj.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Dj.prototype.preventDefault=function(){this.defaultPrevented=!0};_.gy=function(M,d){_.Dj.call(this,M?M.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;M&&this.init(M,d)};
_.RX(_.gy,_.Dj);
_.gy.prototype.init=function(M,d){var N=this.type=M.type,R=M.changedTouches&&M.changedTouches.length?M.changedTouches[0]:null;this.target=M.target||M.srcElement;this.currentTarget=d;d=M.relatedTarget;d||(N=="mouseover"?d=M.fromElement:N=="mouseout"&&(d=M.toElement));this.relatedTarget=d;R?(this.clientX=R.clientX!==void 0?R.clientX:R.pageX,this.clientY=R.clientY!==void 0?R.clientY:R.pageY,this.screenX=R.screenX||0,this.screenY=R.screenY||0):(this.offsetX=_.B_||M.offsetX!==void 0?M.offsetX:M.layerX,
this.offsetY=_.B_||M.offsetY!==void 0?M.offsetY:M.layerY,this.clientX=M.clientX!==void 0?M.clientX:M.pageX,this.clientY=M.clientY!==void 0?M.clientY:M.pageY,this.screenX=M.screenX||0,this.screenY=M.screenY||0);this.button=M.button;this.keyCode=M.keyCode||0;this.key=M.key||"";this.charCode=M.charCode||(N=="keypress"?M.keyCode:0);this.ctrlKey=M.ctrlKey;this.altKey=M.altKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pointerId=M.pointerId||0;this.pointerType=M.pointerType;this.state=M.state;
this.timeStamp=M.timeStamp;this.event_=M;M.defaultPrevented&&_.gy.superClass_.preventDefault.call(this)};
_.gy.prototype.stopPropagation=function(){_.gy.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.gy.prototype.preventDefault=function(){_.gy.superClass_.preventDefault.call(this);var M=this.event_;M.preventDefault?M.preventDefault():M.returnValue=!1};var aW3="closure_listenable_"+(Math.random()*1E6|0),WX=function(M){return!(!M||!M[aW3])};var UOC=0;var uCt=function(M,d,N,R,X){this.listener=M;this.proxy=null;this.src=d;this.type=N;this.capture=!!R;this.handler=X;this.key=++UOC;this.removed=this.callOnce=!1},CyV=function(M){M.removed=!0;
M.listener=null;M.proxy=null;M.src=null;M.handler=null};dx.prototype.add=function(M,d,N,R,X){var A=M.toString();M=this.listeners[A];M||(M=this.listeners[A]=[],this.typeCount_++);var l=xOC(M,d,R,X);l>-1?(d=M[l],N||(d.callOnce=!1)):(d=new uCt(d,this.src,A,!!R,X),d.callOnce=N,M.push(d));return d};
dx.prototype.remove=function(M,d,N,R){M=M.toString();if(!(M in this.listeners))return!1;var X=this.listeners[M];d=xOC(X,d,N,R);return d>-1?(CyV(X[d]),_.G6(X,d),X.length==0&&(delete this.listeners[M],this.typeCount_--),!0):!1};
var Y0J=function(M,d){var N=d.type;if(!(N in M.listeners))return!1;var R=_.aN(M.listeners[N],d);R&&(CyV(d),M.listeners[N].length==0&&(delete M.listeners[N],M.typeCount_--));return R};
dx.prototype.removeAll=function(M){M=M&&M.toString();var d=0,N;for(N in this.listeners)if(!M||N==M){for(var R=this.listeners[N],X=0;X<R.length;X++)++d,CyV(R[X]);delete this.listeners[N];this.typeCount_--}return d};
dx.prototype.getListener=function(M,d,N,R){M=this.listeners[M.toString()];var X=-1;M&&(X=xOC(M,d,N,R));return X>-1?M[X]:null};
dx.prototype.hasListener=function(M,d){var N=M!==void 0,R=N?M.toString():"",X=d!==void 0;return _.wF.some(this.listeners,function(A){for(var l=0;l<A.length;++l)if(!(N&&A[l].type!=R||X&&A[l].capture!=d))return!0;return!1})};
var xOC=function(M,d,N,R){for(var X=0;X<M.length;++X){var A=M[X];if(!A.removed&&A.listener==d&&A.capture==!!N&&A.handler==R)return X}return-1};var ZSo,E8o,MlL,NuI,RnC,XQ,FQ,ASL,XYL,FnV,wy,VlJ,dve;ZSo="closure_lm_"+(Math.random()*1E6|0);E8o={};MlL=0;_.lI=function(M,d,N,R,X){if(R&&R.once)return XQ(M,d,N,R,X);if(Array.isArray(d)){for(var A=0;A<d.length;A++)_.lI(M,d[A],N,R,X);return null}N=dve(N);return WX(M)?M.listen(d,N,_.Me(R)?!!R.capture:!!R,X):NuI(M,d,N,!1,R,X)};
NuI=function(M,d,N,R,X,A){if(!d)throw Error("za");var l=_.Me(X)?!!X.capture:!!X,k=wy(M);k||(M[ZSo]=k=new dx(M));N=k.add(d,N,R,l,A);if(N.proxy)return N;R=RnC();N.proxy=R;R.src=M;R.listener=N;if(M.addEventListener)_.WAo||(X=l),X===void 0&&(X=!1),M.addEventListener(d.toString(),R,X);else if(M.attachEvent)M.attachEvent(XYL(d.toString()),R);else if(M.addListener&&M.removeListener)M.addListener(R);else throw Error("Aa");MlL++;return N};
RnC=function(){var M=FnV,d=function(N){return M.call(d.src,d.listener,N)};
return d};
XQ=function(M,d,N,R,X){if(Array.isArray(d)){for(var A=0;A<d.length;A++)XQ(M,d[A],N,R,X);return null}N=dve(N);return WX(M)?M.listenOnce(d,N,_.Me(R)?!!R.capture:!!R,X):NuI(M,d,N,!0,R,X)};
_.p2=function(M,d,N,R,X){if(Array.isArray(d))for(var A=0;A<d.length;A++)_.p2(M,d[A],N,R,X);else R=_.Me(R)?!!R.capture:!!R,N=dve(N),WX(M)?M.unlisten(d,N,R,X):M&&(M=wy(M))&&(d=M.getListener(d,N,R,X))&&FQ(d)};
FQ=function(M){if(typeof M==="number"||!M||M.removed)return!1;var d=M.src;if(WX(d))return Y0J(d.eventTargetListeners_,M);var N=M.type,R=M.proxy;d.removeEventListener?d.removeEventListener(N,R,M.capture):d.detachEvent?d.detachEvent(XYL(N),R):d.addListener&&d.removeListener&&d.removeListener(R);MlL--;(N=wy(d))?(Y0J(N,M),N.typeCount_==0&&(N.src=null,d[ZSo]=null)):CyV(M);return!0};
ASL=function(M,d,N,R,X){N=dve(N);R=!!R;return WX(M)?M.getListener(d,N,R,X):M?(M=wy(M))?M.getListener(d,N,R,X):null:null};
XYL=function(M){return M in E8o?E8o[M]:E8o[M]="on"+M};
FnV=function(M,d){if(M.removed)M=!0;else{d=new _.gy(d,this);var N=M.listener,R=M.handler||M.src;M.callOnce&&FQ(M);M=N.call(R,d)}return M};
wy=function(M){M=M[ZSo];return M instanceof dx?M:null};
VlJ="__closure_events_fn_"+(Math.random()*1E9>>>0);dve=function(M){if(typeof M==="function")return M;M[VlJ]||(M[VlJ]=function(d){return M.handleEvent(d)});
return M[VlJ]};_.mk=function(){_.DL.call(this);this.eventTargetListeners_=new dx(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.RX(_.mk,_.DL);_.mk.prototype[aW3]=!0;_.F=_.mk.prototype;_.F.setParentEventTarget=function(M){this.parentEventTarget_=M};
_.F.addEventListener=function(M,d,N,R){_.lI(this,M,d,N,R)};
_.F.removeEventListener=function(M,d,N,R){_.p2(this,M,d,N,R)};
_.F.dispatchEvent=function(M){var d,N=this.parentEventTarget_;if(N)for(d=[];N;N=N.parentEventTarget_)d.push(N);N=this.actualEventTarget_;var R=M.type||M;if(typeof M==="string")M=new _.Dj(M,N);else if(M instanceof _.Dj)M.target=M.target||N;else{var X=M;M=new _.Dj(R,N);_.wF.extend(M,X)}X=!0;var A;if(d)for(A=d.length-1;!M.propagationStopped_&&A>=0;A--){var l=M.currentTarget=d[A];X=lqg(l,R,!0,M)&&X}M.propagationStopped_||(l=M.currentTarget=N,X=lqg(l,R,!0,M)&&X,M.propagationStopped_||(X=lqg(l,R,!1,M)&&
X));if(d)for(A=0;!M.propagationStopped_&&A<d.length;A++)l=M.currentTarget=d[A],X=lqg(l,R,!1,M)&&X;return X};
_.F.disposeInternal=function(){_.mk.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.F.listen=function(M,d,N,R){return this.eventTargetListeners_.add(String(M),d,!1,N,R)};
_.F.listenOnce=function(M,d,N,R){return this.eventTargetListeners_.add(String(M),d,!0,N,R)};
_.F.unlisten=function(M,d,N,R){return this.eventTargetListeners_.remove(String(M),d,N,R)};
_.F.removeAllListeners=function(M){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(M):0};
var lqg=function(M,d,N,R){d=M.eventTargetListeners_.listeners[String(d)];if(!d)return!0;d=d.concat();for(var X=!0,A=0;A<d.length;++A){var l=d[A];if(l&&!l.removed&&l.capture==N){var k=l.listener,T=l.handler||l.src;l.callOnce&&Y0J(M.eventTargetListeners_,l);X=k.call(T,R)!==!1&&X}}return X&&!R.defaultPrevented};
_.mk.prototype.getListener=function(M,d,N,R){return this.eventTargetListeners_.getListener(String(M),d,N,R)};
_.mk.prototype.hasListener=function(M,d){return this.eventTargetListeners_.hasListener(M!==void 0?String(M):void 0,d)};var hY=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(M){return M&&AsyncContext.Snapshot.wrap(M)}:function(M){return M};var $vm=function(M,d){this.create_=M;this.reset_=d;this.occupants_=0;this.JSC$7642_head_=null};
$vm.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var M=this.JSC$7642_head_;this.JSC$7642_head_=M.next;M.next=null}else M=this.create_();return M};
$vm.prototype.put=function(M){this.reset_(M);this.occupants_<100&&(this.occupants_++,M.next=this.JSC$7642_head_,this.JSC$7642_head_=M)};var Buz=function(){this.workTail_=this.workHead_=null};
Buz.prototype.add=function(M,d){var N=uxN.get();N.set(M,d);this.workTail_?this.workTail_.next=N:this.workHead_=N;this.workTail_=N};
Buz.prototype.remove=function(){var M=null;this.workHead_&&(M=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),M.next=null);return M};
var uxN=new $vm(function(){return new kBL},function(M){return M.reset()}),kBL=function(){this.next=this.scope=this.fn=null};
kBL.prototype.set=function(M,d){this.fn=M;this.scope=d;this.next=null};
kBL.prototype.reset=function(){this.next=this.scope=this.fn=null};var Tum,C_v,UQp,DvC;C_v=!1;UQp=new Buz;_.QK=function(M,d){Tum||DvC();C_v||(Tum(),C_v=!0);UQp.add(M,d)};
DvC=function(){var M=Promise.resolve(void 0);Tum=function(){M.then(xQS)}};var gtz=function(M){M.prototype.$goog_Thenable=!0},WnV=function(M){if(!M)return!1;
try{return!!M.$goog_Thenable}catch(d){return!1}};var wYV,pYV,mvz,Q2C,q_d,Iqz,s2V,rSL,cSd,ySL,pbZ;_.Xy=function(M,d){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(M!=_.wl)try{var N=this;M.call(d,function(R){N.resolve_(2,R)},function(R){N.resolve_(3,R)})}catch(R){this.resolve_(3,R)}};
wYV=function(){this.next=this.context=this.JSC$7653_onRejected=this.JSC$7653_onFulfilled=this.child=null;this.always=!1};
wYV.prototype.reset=function(){this.context=this.JSC$7653_onRejected=this.JSC$7653_onFulfilled=this.child=null;this.always=!1};
pYV=new $vm(function(){return new wYV},function(M){M.reset()});
mvz=function(M,d,N){var R=pYV.get();R.JSC$7653_onFulfilled=M;R.JSC$7653_onRejected=d;R.context=N;return R};
_.RD=function(M){if(M instanceof _.Xy)return M;var d=new _.Xy(_.wl);d.resolve_(2,M);return d};
_.cl=function(M){return new _.Xy(function(d,N){N(M)})};
Q2C=function(M,d,N){hnJ(M,d,N,null)||_.QK(_.B1(d,M))};
_.qc=function(M){return new _.Xy(function(d,N){var R=M.length,X=[];if(R)for(var A=function(W,w){R--;X[W]=w;R==0&&d(X)},l=function(W){N(W)},k,T=0;T<M.length;T++)k=M[T],Q2C(k,_.B1(A,T),l);
else d(X)})};
q_d=function(M){return new _.Xy(function(d){var N=M.length,R=[];if(N)for(var X=function(k,T,W){N--;R[k]=T?{fulfilled:!0,value:W}:{fulfilled:!1,reason:W};N==0&&d(R)},A,l=0;l<M.length;l++)A=M[l],Q2C(A,_.B1(X,l,!0),_.B1(X,l,!1));
else d(R)})};
Iqz=function(M){return new _.Xy(function(d,N){var R=M.length,X=[];if(R)for(var A=function(W){d(W)},l=function(W,w){R--;
X[W]=w;R==0&&N(X)},k,T=0;T<M.length;T++)k=M[T],Q2C(k,A,_.B1(l,T));
else d(void 0)})};
_.KO=function(){var M,d,N=new _.Xy(function(R,X){M=R;d=X});
return new vtI(N,M,d)};
_.Xy.prototype.then=function(M,d,N){return OIz(this,hY(typeof M==="function"?M:null),hY(typeof d==="function"?d:null),N)};
gtz(_.Xy);s2V=function(M,d,N,R){j2V(M,mvz(d||_.wl,N||null,R))};
_.Ie=function(M,d){d=hY(d);d=mvz(d,d);d.always=!0;j2V(M,d);return M};
_.Xy.prototype.finally=function(M){var d=this;M=hY(M);return new Promise(function(N,R){s2V(d,function(X){M();N(X)},function(X){M();
R(X)})})};
_.Xy.prototype.thenCatch=function(M,d){return OIz(this,null,hY(M),d)};
_.Xy.prototype.catch=_.Xy.prototype.thenCatch;_.Xy.prototype.cancel=function(M){if(this.state_==0){var d=new _.JX(M);_.QK(function(){P6t(this,d)},this)}};
var P6t=function(M,d){if(M.state_==0)if(M.parent_){var N=M.parent_;if(N.callbackEntries_){for(var R=0,X=null,A=null,l=N.callbackEntries_;l&&(l.always||(R++,l.child==M&&(X=l),!(X&&R>1)));l=l.next)X||(A=l);X&&(N.state_==0&&R==1?P6t(N,d):(A?(R=A,R.next==N.callbackEntriesTail_&&(N.callbackEntriesTail_=R),R.next=R.next.next):otg(N),rSL(N,X,3,d)))}M.parent_=null}else M.resolve_(3,d)},j2V=function(M,d){M.callbackEntries_||M.state_!=2&&M.state_!=3||Kng(M);
M.callbackEntriesTail_?M.callbackEntriesTail_.next=d:M.callbackEntries_=d;M.callbackEntriesTail_=d},OIz=function(M,d,N,R){var X=mvz(null,null,null);
X.child=new _.Xy(function(A,l){X.JSC$7653_onFulfilled=d?function(k){try{var T=d.call(R,k);A(T)}catch(W){l(W)}}:A;
X.JSC$7653_onRejected=N?function(k){try{var T=N.call(R,k);T===void 0&&k instanceof _.JX?l(k):A(T)}catch(W){l(W)}}:l});
X.child.parent_=M;j2V(M,X);return X.child};
_.Xy.prototype.unblockAndFulfill_=function(M){this.state_=0;this.resolve_(2,M)};
_.Xy.prototype.unblockAndReject_=function(M){this.state_=0;this.resolve_(3,M)};
_.Xy.prototype.resolve_=function(M,d){this.state_==0&&(this===d&&(M=3,d=new TypeError("Ba")),this.state_=1,hnJ(d,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=d,this.state_=M,this.parent_=null,Kng(this),M!=3||d instanceof _.JX||ySL(this,d)))};
var hnJ=function(M,d,N,R){if(M instanceof _.Xy)return s2V(M,d,N,R),!0;if(WnV(M))return M.then(d,N,R),!0;if(_.Me(M))try{var X=M.then;if(typeof X==="function")return JS3(M,X,d,N,R),!0}catch(A){return N.call(R,A),!0}return!1},JS3=function(M,d,N,R,X){var A=!1,l=function(T){A||(A=!0,N.call(X,T))},k=function(T){A||(A=!0,R.call(X,T))};
try{d.call(M,l,k)}catch(T){k(T)}},Kng=function(M){M.executing_||(M.executing_=!0,_.QK(M.executeCallbacks_,M))},otg=function(M){var d=null;
M.callbackEntries_&&(d=M.callbackEntries_,M.callbackEntries_=d.next,d.next=null);M.callbackEntries_||(M.callbackEntriesTail_=null);return d};
_.Xy.prototype.executeCallbacks_=function(){for(var M;M=otg(this);)rSL(this,M,this.state_,this.result_);this.executing_=!1};
rSL=function(M,d,N,R){if(N==3&&d.JSC$7653_onRejected&&!d.always)for(;M&&M.hadUnhandledRejection_;M=M.parent_)M.hadUnhandledRejection_=!1;if(d.child)d.child.parent_=null,cSd(d,N,R);else try{d.always?d.JSC$7653_onFulfilled.call(d.context):cSd(d,N,R)}catch(X){pbZ.call(null,X)}pYV.put(d)};
cSd=function(M,d,N){d==2?M.JSC$7653_onFulfilled.call(M.context,N):M.JSC$7653_onRejected&&M.JSC$7653_onRejected.call(M.context,N)};
ySL=function(M,d){M.hadUnhandledRejection_=!0;_.QK(function(){M.hadUnhandledRejection_&&pbZ.call(null,d)})};
pbZ=RN;_.JX=function(M){_.Mp.call(this,M)};
_.RX(_.JX,_.Mp);_.JX.prototype.name="cancel";var vtI=function(M,d,N){this.promise=M;this.resolve=d;this.reject=N};var vX;_.Ga=function(M,d){_.mk.call(this);this.JSC$7665_interval_=M||1;this.timerObject_=d||_.Np;this.boundTick_=(0,_.gx)(this.tick_,this);this.last_=_.Nn()};
_.RX(_.Ga,_.mk);_.F=_.Ga.prototype;_.F.enabled=!1;_.F.JSC$7667_timer_=null;_.F.setInterval=function(M){this.JSC$7665_interval_=M;this.JSC$7667_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7667_timer_&&this.stop()};
_.F.tick_=function(){if(this.enabled){var M=_.Nn()-this.last_;M>0&&M<this.JSC$7665_interval_*.8?this.JSC$7667_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7665_interval_-M):(this.JSC$7667_timer_&&(this.timerObject_.clearTimeout(this.JSC$7667_timer_),this.JSC$7667_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.F.start=function(){this.enabled=!0;this.JSC$7667_timer_||(this.JSC$7667_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7665_interval_),this.last_=_.Nn())};
_.F.stop=function(){this.enabled=!1;this.JSC$7667_timer_&&(this.timerObject_.clearTimeout(this.JSC$7667_timer_),this.JSC$7667_timer_=null)};
_.F.disposeInternal=function(){_.Ga.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
vX=function(M,d,N){if(typeof M==="function")N&&(M=(0,_.gx)(M,N));else if(M&&typeof M.handleEvent=="function")M=(0,_.gx)(M.handleEvent,M);else throw Error("Ca");return Number(d)>2147483647?-1:_.Np.setTimeout(M,d||0)};
_.S_V=function(M){var d=null;return(new _.Xy(function(N,R){d=vX(function(){N(void 0)},M);
d==-1&&R(Error("Da"))})).thenCatch(function(N){_.Np.clearTimeout(d);
throw N;})};var Xx=function(M){_.DL.call(this);this.streamzLogger=M;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7671_flushTimer=new _.Ga(this.flushInterval);this.JSC$7671_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.RW(this,this.JSC$7671_flushTimer)};
_.v(Xx,_.DL);Xx.prototype.sendIsolatedPayload=function(M){this.shouldSendIsolatedPayload=M;this.invocationLimit=1};
var zng=function(M){M.JSC$7671_flushTimer.enabled||M.JSC$7671_flushTimer.start();M.invocationCount++;M.invocationCount>=M.invocationLimit&&M.snapshotAndFlush()};
Xx.prototype.snapshotAndFlush=function(){var M=this.metricMap.values();M=[].concat(_.wu(M)).filter(function(d){return d.cellMap.size});
M.length&&this.streamzLogger.flush(M,this.shouldSendIsolatedPayload);bIJ(M);this.invocationCount=0;this.JSC$7671_flushTimer.enabled&&this.JSC$7671_flushTimer.stop()};
Xx.prototype.addNewCounter=function(M){var d=_.wH.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new tdz(M,d))};
Xx.prototype.addNewEventMetric=function(M){var d=_.wH.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new GPd(M,d))};
var enC=function(M,d){return M.disabledMetrics.has(d)?void 0:M.metricMap.get(d)};
Xx.prototype.JSC$7671_incrementCounter=function(M){this.JSC$7671_incrementCounterBy(M,1,_.wH.apply(1,arguments))};
Xx.prototype.JSC$7671_incrementCounterBy=function(M,d){var N=_.wH.apply(2,arguments),R=enC(this,M);R&&R instanceof tdz&&(R.JSC$7610_incrementCounterBy(d,N),zng(this))};
Xx.prototype.record=function(M,d){var N=_.wH.apply(2,arguments),R=enC(this,M);R&&R instanceof GPd&&(R.record(d,N),zng(this))};
var bIJ=function(M){for(var d=0;d<M.length;d++)M[d].clear()};_.OF=function(M,d,N){N=N===void 0?{}:N;d=Error.call(this,d);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=M;this.metadata=N;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.OF,Error);_.OF.prototype.toString=function(){var M="RpcError("+(Zk6(this.code)||String(this.code))+")";this.message&&(M+=": "+this.message);return M};_.HIt=_.Np.JSON.parse;_.js=_.Np.JSON.stringify;_.mY=_.Np.JSON.parse;_.ntd=function(M){switch(M){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var iIg=function(M){switch(M){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var fqV,Lne=function(){};
_.RX(Lne,_.EaZ);Lne.prototype.createInstance=function(){return new XMLHttpRequest};
fqV=new Lne;_.sF=function(M){_.mk.call(this);this.headers=new Map;this.JSC$7680_xmlHttpFactory_=M||null;this.JSC$7680_active_=!1;this.JSC$7680_xhr_=null;this.JSC$7680_lastUri_="";this.JSC$7680_lastErrorCode_=0;this.JSC$7680_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7680_timeoutId_=null;this.responseType_="";this.JSC$7680_withCredentials_=!1};
_.RX(_.sF,_.mk);var tlm=/^https?$/i,GBo=["POST","PUT"],aqd=[],lji=function(M,d,N,R,X,A,l){var k=new _.sF;aqd.push(k);d&&k.listen("complete",d);k.listenOnce("ready",k.cleanupSend_);A&&(k.timeoutInterval_=Math.max(0,A));l&&(k.JSC$7680_withCredentials_=l);k.send(M,N,R,X)};
_.sF.prototype.cleanupSend_=function(){this.dispose();_.aN(aqd,this)};
_.sF.prototype.send=function(M,d,N,R){if(this.JSC$7680_xhr_)throw Error("Ea`"+this.JSC$7680_lastUri_+"`"+M);d=d?d.toUpperCase():"GET";this.JSC$7680_lastUri_=M;this.JSC$7680_lastError_="";this.JSC$7680_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7680_active_=!0;this.JSC$7680_xhr_=this.createXhr();this.JSC$7680_xhr_.onreadystatechange=hY((0,_.gx)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7680_xhr_.open(d,String(M),!0),this.inOpen_=!1}catch(l){Uvd(this,l);return}M=N||"";N=new Map(this.headers);
if(R)if(Object.getPrototypeOf(R)===Object.prototype)for(var X in R)N.set(X,R[X]);else if(typeof R.keys==="function"&&typeof R.get==="function"){X=_.V(R.keys());for(var A=X.next();!A.done;A=X.next())A=A.value,N.set(A,R.get(A))}else throw Error("Fa`"+String(R));R=Array.from(N.keys()).find(function(l){return"content-type"==l.toLowerCase()});
X=_.Np.FormData&&M instanceof _.Np.FormData;!_.i2(GBo,d)||R||X||N.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");d=_.V(N);for(R=d.next();!R.done;R=d.next())N=_.V(R.value),R=N.next().value,N=N.next().value,this.JSC$7680_xhr_.setRequestHeader(R,N);this.responseType_&&(this.JSC$7680_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7680_xhr_&&this.JSC$7680_xhr_.withCredentials!==this.JSC$7680_withCredentials_&&(this.JSC$7680_xhr_.withCredentials=this.JSC$7680_withCredentials_);
try{this.JSC$7680_timeoutId_&&(clearTimeout(this.JSC$7680_timeoutId_),this.JSC$7680_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7680_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7680_xhr_.send(M),this.inSend_=!1}catch(l){Uvd(this,l)}};
_.sF.prototype.createXhr=function(){return this.JSC$7680_xmlHttpFactory_?this.JSC$7680_xmlHttpFactory_.createInstance():fqV.createInstance()};
_.sF.prototype.timeout_=function(){typeof y5Z!="undefined"&&this.JSC$7680_xhr_&&(this.JSC$7680_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7680_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Uvd=function(M,d){M.JSC$7680_active_=!1;M.JSC$7680_xhr_&&(M.inAbort_=!0,M.JSC$7680_xhr_.abort(),M.inAbort_=!1);M.JSC$7680_lastError_=d;M.JSC$7680_lastErrorCode_=5;ugd(M);C6J(M)},ugd=function(M){M.errorDispatched_||(M.errorDispatched_=!0,M.dispatchEvent("complete"),M.dispatchEvent("error"))};
_.sF.prototype.abort=function(M){this.JSC$7680_xhr_&&this.JSC$7680_active_&&(this.JSC$7680_active_=!1,this.inAbort_=!0,this.JSC$7680_xhr_.abort(),this.inAbort_=!1,this.JSC$7680_lastErrorCode_=M||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),C6J(this))};
_.sF.prototype.disposeInternal=function(){this.JSC$7680_xhr_&&(this.JSC$7680_active_&&(this.JSC$7680_active_=!1,this.inAbort_=!0,this.JSC$7680_xhr_.abort(),this.inAbort_=!1),C6J(this,!0));_.sF.superClass_.disposeInternal.call(this)};
_.sF.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)xvJ(this);else this.onReadyStateChangeEntryPoint_()};
_.sF.prototype.onReadyStateChangeEntryPoint_=function(){xvJ(this)};
var xvJ=function(M){if(M.JSC$7680_active_&&typeof y5Z!="undefined")if(M.inSend_&&_.PX(M)==4)setTimeout(M.onReadyStateChange_.bind(M),0);else if(M.dispatchEvent("readystatechange"),M.isComplete()){M.JSC$7680_active_=!1;try{if(M.isSuccess())M.dispatchEvent("complete"),M.dispatchEvent("success");else{M.JSC$7680_lastErrorCode_=6;try{var d=_.PX(M)>2?M.JSC$7680_xhr_.statusText:""}catch(N){d=""}M.JSC$7680_lastError_=d+" ["+M.getStatus()+"]";ugd(M)}}finally{C6J(M)}}},C6J=function(M,d){if(M.JSC$7680_xhr_){M.JSC$7680_timeoutId_&&
(clearTimeout(M.JSC$7680_timeoutId_),M.JSC$7680_timeoutId_=null);
var N=M.JSC$7680_xhr_;M.JSC$7680_xhr_=null;d||M.dispatchEvent("ready");try{N.onreadystatechange=null}catch(R){}}};
_.sF.prototype.isActive=function(){return!!this.JSC$7680_xhr_};
_.sF.prototype.isComplete=function(){return _.PX(this)==4};
_.sF.prototype.isSuccess=function(){var M=this.getStatus(),d;if(!(d=iIg(M))){if(M=M===0)M=lGV(String(this.JSC$7680_lastUri_)),M=!tlm.test(M);d=M}return d};
_.PX=function(M){return M.JSC$7680_xhr_?M.JSC$7680_xhr_.readyState:0};
_.F=_.sF.prototype;_.F.getStatus=function(){try{return _.PX(this)>2?this.JSC$7680_xhr_.status:-1}catch(M){return-1}};
_.F.getResponseText=function(){try{return this.JSC$7680_xhr_?this.JSC$7680_xhr_.responseText:""}catch(M){return""}};
_.F.getResponse=function(){try{if(!this.JSC$7680_xhr_)return null;if("response"in this.JSC$7680_xhr_)return this.JSC$7680_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7680_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7680_xhr_)return this.JSC$7680_xhr_.mozResponseArrayBuffer}return null}catch(M){return null}};
_.F.getAllResponseHeaders=function(){return this.JSC$7680_xhr_&&_.PX(this)>=2?this.JSC$7680_xhr_.getAllResponseHeaders()||"":""};
_.F.getLastError=function(){return typeof this.JSC$7680_lastError_==="string"?this.JSC$7680_lastError_:String(this.JSC$7680_lastError_)};var T0r=function(){};
T0r.prototype.send=function(M,d,N){d=d===void 0?function(){}:d;
N=N===void 0?function(){}:N;
lji(M.url,function(R){R=R.target;R.isSuccess()?d(R.getResponseText()):N(R.getStatus())},M.requestType,M.body,M.requestHeaders,M.timeoutMillis,M.withCredentials)};
T0r.prototype.getTransmissionType=function(){return 1};var Y_3=function(M,d){this.logger=M;this.event=d;this.startTime=Fx()};
Y_3.prototype.done=function(){this.logger.zL(this.event,Fx()-this.startTime)};
var oe=function(){Nc.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.v(oe,Nc);var ry=function(M,d,N){var R=Fx();d=d();M.zL(N,Fx()-R);return d},mFZ=function(){oe.apply(this,arguments)};
_.v(mFZ,oe);_.F=mFZ.prototype;_.F.ztw=function(){};
_.F.cZ=function(){};
_.F.zL=function(){};
_.F.logError=function(){};
_.F.kV=function(){};
_.F.d8U=function(){};
_.F.iHU=function(){};
_.F.rZa=function(){};
_.F.fFD=function(){};
var ZIV=function(M){oe.call(this);var d=this;this.logger=M;this.TEST_ONLY={f4N:function(){return d.logger},
getExperimentIds:function(){return d.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void d.logger.dispose()})};
_.v(ZIV,oe);_.F=ZIV.prototype;_.F.update=function(M){this.logger.dispose();this.logger=M};
_.F.cZ=function(M){this.logger.cZ(M)};
_.F.zL=function(M,d){this.logger.zL(M,d)};
_.F.logError=function(M){this.logger.logError(M)};
_.F.kV=function(){this.logger.kV()};
_.F.d8U=function(M){this.logger.d8U(M)};
_.F.iHU=function(M){this.logger.iHU(M)};
_.F.rZa=function(M){this.logger.rZa(M)};
_.F.fFD=function(M){this.logger.fFD(M)};
_.F.ztw=function(M){this.logger.ztw(M)};
var Etz=function(M,d){_.DL.call(this);var N=this;this.callback=M;this.lxI=d;this.j9o=-d;this.addOnDisposeCallback(function(){return void clearTimeout(N.timer)})};
_.v(Etz,_.DL);var MM3=function(M){if(M.timer===void 0){var d=Math.max(0,M.j9o+M.lxI-Fx());M.timer=setTimeout(function(){try{M.callback()}finally{M.j9o=Fx(),M.timer=void 0}},d)}},dye=function(M,d){oe.call(this);
this.metrics=M;this.dN=d};
_.v(dye,oe);_.F=dye.prototype;_.F.ztw=function(M){this.metrics.nNq.record(M,this.dN)};
_.F.cZ=function(M){this.metrics.eventCount.increment(M,this.dN)};
_.F.zL=function(M,d){this.metrics.b7i.record(d,M,this.dN)};
_.F.logError=function(M){this.metrics.errorCount.increment(M,this.dN)};
_.F.d8U=function(M){this.metrics.zrF.increment(M,this.dN)};
_.F.iHU=function(M){this.metrics.sYA.increment(M,this.dN)};
_.F.rZa=function(M){this.metrics.uBO.increment(M,this.dN)};
var buq=function(M,d){d=d===void 0?[]:d;var N={dN:M.dN||"_",bQD:M.bQD||[],bHU:M.bHU|0,destinationUrl:M.destinationUrl,znD:M.znD||function(){},
tAm:M.tAm||function(A,l){return pgN(A,l,N.znD,N.destinationUrl)}},R=N.tAm("49",N.bQD.concat(d));
dye.call(this,lKZ(R),N.dN);var X=this;this.TEST_ONLY={getExperimentIds:function(){return X.options.bQD.concat(X.rbd).sort(function(A,l){return A-l})}};
this.options=N;this.service=R;this.dPs=!M.tAm;this.flushDebouncer=new Etz(function(){return void X.service.snapshotAndFlush()},N.bHU);
this.addOnDisposeCallback(function(){X.flushDebouncer.dispose();X.dPs&&X.service.dispose()});
(this.rbd=d.slice()).sort(_.XL)};
_.v(buq,dye);buq.prototype.fFD=function(M){var d=this;M=M.slice();M.sort(_.XL);_.AC(M,this.rbd)||(this.flushDebouncer.dispose(),this.dPs&&this.service.dispose(),this.service=this.options.tAm("49",this.options.bQD.concat(M)),this.flushDebouncer=new Etz(function(){return void d.service.snapshotAndFlush()},this.options.bHU),this.metrics=lKZ(this.service),this.rbd=M)};
buq.prototype.kV=function(){MM3(this.flushDebouncer)};var FCp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(FCp,_.Jj);_.AgN=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(_.AgN,_.Jj);var af=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,0,af.messageId)};
_.v(af,_.Jj);var NFJ=_.Ns6(af);af.messageId="bfkj";var zyv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(zyv,_.Jj);var ROm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(ROm,_.Jj);var XTd=_.xZ(ROm);_.MX=function(){var M=this;this.promise=new Promise(function(d,N){M.resolve=d;M.reject=N})};_.K2=function(M){_.DL.call(this);var d=this;this.o4g=Math.floor(Math.random()*200);this.iQo=new ROm;if("challenge"in M&&NFJ(M.challenge)){var N=_.rP(M.challenge,4,void 0,eJ);var R=_.rP(M.challenge,5,void 0,eJ);_.rP(M.challenge,7,void 0,eJ)&&(this.iQo=XTd(_.rP(M.challenge,7,void 0,eJ)))}else N=M.program,R=M.globalName;this.addOnDisposeCallback(function(){var O,y,c;return _.B(function(e){if(e.nextAddress==1)return _.D(e,d.y9D,2);O=e.yieldResult;y=O.zVB;(c=y)==null||c();_.Vy(e)})});
this.logger=eMZ(M.zi||{},this.iQo,M.zgN);_.RW(this,this.logger);var X=new _.MX;this.y9D=X.promise;this.logger.cZ("t");var A=this.logger.share(),l=new Y_3(A,"t"),k=function(O,y,c,e){if(!d.logger.isDisposed()){var t="k";y?t="h":c&&(t="u");t!=="k"?e!==0&&(d.logger.cZ(t),d.logger.zL(t,O)):d.o4g<=0?(d.logger.cZ(t),d.logger.zL(t,O),d.o4g=Math.floor(Math.random()*200)):d.o4g--}},T=function(O,y,c,e){Promise.resolve().then(function(){l.done();
A.kV();A.dispose();X.resolve({pg1:O,zVB:y,b4Y:c,dsI:e})})};
if(!_.Np[R])throw this.logger.logError(25),Error("Ga");if(!_.Np[R].a)throw this.logger.logError(26),Error("Ha");try{var W=_.Np[R].a;R=[];for(var w=[],p=bkL(this.iQo),m=0;m<p.length;m++)R.push(p[m]),w.push(1);var I=eyq(this.iQo);for(p=0;p<I.length;p++)R.push(I[p]),w.push(2);this.d32=_.V(W(N,T,!0,M.ncI,k,[R,w],_.rP(this.iQo,5))).next().value;this.lgG=X.promise.then(function(){})}catch(O){throw this.logger.logError(28),O;
}};
_.v(_.K2,_.DL);_.K2.prototype.snapshot=function(M){if(this.isDisposed())throw Error("Ia");this.logger.cZ("n");var d=this.logger.share();return this.y9D.then(function(N){var R=N.pg1;return new Promise(function(X){var A=new Y_3(d,"n");R(function(l){A.done();d.ztw(l.length);d.kV();d.dispose();X(l)},[M.oN,
M.vWn,M.vmb,M.q3M])})})};
_.Fiz=function(M,d){if(M.isDisposed())throw Error("Ia");M.logger.cZ("n");var N=ry(M.logger,function(){return M.d32([d.oN,d.vWn,d.vmb,d.q3M])},"n");
M.logger.ztw(N.length);M.logger.kV();return N};
_.K2.prototype.dRS=function(M){this.y9D.then(function(d){var N;(N=d.b4Y)==null||N(M)})};
_.K2.prototype.kNS=function(M,d){return this.y9D.then(function(N){var R;return(R=N.dsI)==null?void 0:R(M,d,!1)})};
_.K2.prototype.hCw=function(){return this.logger.share()};var AwJ=function(){this.roS={};this.s62=null},VML=function(){AwJ.instance||(AwJ.instance=new AwJ);
return AwJ.instance},$yt=function(M,d){return lum(M,_.uk(d,FCp,1,eJ),_.uk(d,_.AgN,2,eJ),_.rP(d,3,void 0,eJ))},lum=function(M,d,N,R){if(!d&&!N)return Promise.resolve();
if(!R)return fKp(d,N);var X;(X=M.roS)[R]||(X[R]=new Promise(function(A,l){fKp(d,N).then(function(){M.s62=R;A()},function(k){delete M.roS[R];
l(k)})}));
return M.roS[R]};var BFg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(BFg,_.Jj);var ktJ=function(M,d){return _.U$(M,1,d)},TF3=function(M,d){return _.U$(M,2,d)};var yK=function(M){_.DL.call(this);var d=this;this.options=M;this.j8o=new _.MX;this.lgG=this.j8o.promise;this.m4x=new _.MX;this.txu=1;this.xKn=new _.MX;this.jNS=[];this.pDS=M.pDS||function(){};
this.logger=new ZIV(eMZ(M.zi||{}));DyC(this,M.wR,M.aFn,M.nr6,M.gHh,Object.assign({},g4z,M.c3a||{}));this.addOnDisposeCallback(function(){return void WiV(d)})};
_.v(yK,_.DL);yK.prototype.snapshot=function(M){var d=this;return _.B(function(N){switch(N.nextAddress){case 1:if(d.isDisposed())throw Error("Ia");if(d.dG||d.gNS){N.jumpTo(2);break}return _.D(N,d.m4x.promise,2);case 2:if(!d.dG){N.jumpTo(4);break}return _.D(N,d.dG.snapshot(M),5);case 5:return N.return(N.yieldResult);case 4:throw d.gNS;}})};
var wTL=function(M){var d;return _.B(function(N){if(M.isDisposed())throw Error("Ia");(d=M.hK)!=null&&(d.endTimeMs=0,d.resolver(1));return _.D(N,M.xKn.promise,0)})},WiV=function(M){M.gNS=Error("Ka");
M.m4x.resolve();HkN(M.j8o.promise);M.j8o.reject(Error("Ka"));M.logger.dispose();Promise.all(M.jNS).then(function(){var N;return _.B(function(R){(N=M.dG)==null||N.dispose();M.dG=void 0;_.Vy(R)})});
M.jNS=[];var d;(d=M.hK)!=null&&(d.endTimeMs=0,d.resolver(1));HkN(M.xKn.promise);M.xKn.reject(Error("Ka"))};
yK.prototype.dRS=function(M){var d,N;(d=this.dG)==null||(N=d.dRS)==null||N.call(d,M)};
yK.prototype.kNS=function(M,d){var N,R,X;return(X=(N=this.dG)==null?void 0:(R=N.kNS)==null?void 0:R.call(N,M,d))!=null?X:Promise.resolve()};
var pTL=function(M,d){var N=M.pDS;M.pDS=function(){N();d()}},myd=function(M,d){M.isDisposed()||(M.dG=d,M.logger.update(d.hCw()),M.m4x.resolve(),M.j8o.resolve(void 0),M.pDS())};
yK.prototype.handleError=function(M){if(!this.isDisposed()){this.gNS=M;this.m4x.resolve();var d,N;(N=(d=this.options).jKX)==null||N.call(d,M)}};
var hOg=function(M,d){d&&(Promise.all(M.jNS).then(function(){return void d.dispose()}),M.jNS=[])},JY=function(M,d){M.txu=d;
var N,R;(R=(N=M.options).w86)==null||R.call(N,d)},Q8L=function(M){M.isDisposed()||(M.xKn.resolve(),M.xKn=new _.MX)},DyC=function(M,d,N,R,X,A){R=R===void 0?VML():R;
X=X===void 0?Promise.resolve(void 0):X;var l,k,T,W,w,p,m,I,O,y,c,e;_.B(function(t){switch(t.nextAddress){case 1:return _.D(t,0,3);case 3:k=null;if(!l){t.jumpTo(6);break}JY(M,7);_.Mv(t,7);return _.D(t,BU(l.snapshot({}),A.kZI,function(){return Promise.resolve("E:CTO")}),9);
case 9:k=t.yieldResult;_.cJ(t,6);break;case 7:_.Fg(t),k="E:UCE";case 6:T=void 0,W=l?A.h9x:A.kQl,w=new MQ(W,A.lbz,A.cf1,A.yZ6),p=1;case 10:if(!(p<=A.maxAttempts)){t.jumpTo(12);break}if(p===1){t.jumpTo(13);break}JY(M,0);M.hK=new qqV(w.getValue(),A.tXA,A.qcA);return _.D(t,M.hK.promise,14);case 14:m=t.yieldResult,M.hK=void 0,m===1?(p=1,w.reset()):J_d(w);case 13:_.Mv(t,15);I=void 0;if(N){I=N;t.jumpTo(17);break}JY(M,5);O=R.s62;return _.D(t,BU(IuI(d,O,k),A.lY6,function(){return Promise.reject(Error("La"))}),
18);
case 18:I=t.yieldResult;case 17:return JY(M,3),_.D(t,BU($yt(R,I),A.qPi,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return JY(M,8),_.D(t,X,20);case 20:return y=new _.K2({challenge:I,zi:M.options.zi,ncI:M.options.ncI}),_.D(t,BU(y.lgG,A.mBP,function(){return Promise.reject(Error("Na"))}),21);
case 21:T=y;t.jumpTo(12);break;case 15:c=_.Fg(t),M.handleError(c),Q8L(M);case 11:p++;t.jumpTo(10);break;case 12:if(M.isDisposed()){t.jumpTo(5);break}T&&(N=void 0,hOg(M,l),l=T,myd(M,T),Q8L(M));JY(M,2);M.hK=new qqV(A.eNg,A.tXA,A.qcA);return _.D(t,M.hK.promise,22);case 22:M.hK=void 0;if(M.isDisposed()){t.jumpTo(5);break}t.jumpTo(3);break;case 5:(e=l)==null||e.dispose(),_.Vy(t)}})};
yK.prototype.hCw=function(){return this.logger.share()};
var g4z={eNg:432E5,tXA:3E5,qcA:10,kZI:1E4,lY6:3E4,qPi:3E4,mBP:6E4,kQl:1E3,h9x:6E4,lbz:6E5,cf1:.25,yZ6:2,maxAttempts:10},qqV=function(M,d,N){var R=this;this.endTimeMs=Date.now()+M;this.promise=new Promise(function(A){R.resolver=A});
var X=function(){var A=R.endTimeMs-Date.now();A<=N?R.resolver(0):setTimeout(X,Math.min(A,d))};
X()};var v4L,GTA=(v4L=Math.imul)!=null?v4L:function(M,d){return M*d|0},ka=[196,
200,224,18],cX=function(M,d,N){N=N===void 0?[]:N;this.maxItems=M;this.iS=d===void 0?0:d;this.jC=N},OyV=function(M){var d=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!d)return new cX(M);var N=d.split(",");if(N.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cX(M);d=N.slice(1);d.length===1&&d[0]===""&&(d=[]);N=Number(N[0]);return isNaN(N)||N<0||N>d.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new cX(M)):new cX(M,N,d)};
cX.prototype.serialize=function(){return String(this.iS)+","+this.jC.join()};
cX.prototype.insert=function(M,d){var N=void 0;if(this.jC[this.iS]!==M){var R=this.jC.indexOf(M);R!==-1?(this.jC.splice(R,1),R<this.iS&&this.iS--,this.jC.splice(this.iS,0,M)):(N=this.jC[this.iS],this.jC[this.iS]=M)}this.iS=(this.iS+1)%this.maxItems;M=LFp("iU5q-!O9@$",this.serialize());N&&M&&d(N);return M};
var j8d=function(M,d){this.logger=d;try{var N=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){N=!1}N&&(this.index=OyV(M))},s83=function(M,d,N,R,X){var A=M.index?ry(M.logger,function(){return Cdq(M.index,UFi(d),N,R,X)},"W"):"u";
M.logger.rZa(A)},PCd=function(M,d,N){var R=_.V(M.index?ry(M.logger,function(){return xF2(UFi(d),N)},"R"):["u"]),X=R.next().value;
R=R.next().value;M.logger.iHU(X);return R};var o4t={toString:function(M){var d=[],N=0;M-=-2147483648;d[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(M%52);for(M=Math.floor(M/52);M>0;)d[N++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(M%62),M=Math.floor(M/62);return d.join("")}};var ywt=function(M){M=rwI(M);for(var d=2654435769,N=2654435769,R=314159265,X=M.length,A=X,l=0,k=function(){d-=N;d-=R;d^=R>>>13;N-=R;N-=d;N^=d<<8;R-=d;R-=N;R^=N>>>13;d-=N;d-=R;d^=R>>>12;N-=R;N-=d;N^=d<<16;R-=d;R-=N;R^=N>>>5;d-=N;d-=R;d^=R>>>3;N-=R;N-=d;N^=d<<10;R-=d;R-=N;R^=N>>>15};A>=12;A-=12,l+=12)d+=Kiz(M,l),N+=Kiz(M,l+4),R+=Kiz(M,l+8),k();
R+=X;switch(A){case 11:R+=M[l+10]<<24;case 10:R+=M[l+9]<<16;case 9:R+=M[l+8]<<8;case 8:N+=M[l+7]<<24;case 7:N+=M[l+6]<<16;case 6:N+=M[l+5]<<8;case 5:N+=M[l+4];case 4:d+=M[l+3]<<24;case 3:d+=M[l+2]<<16;case 2:d+=M[l+1]<<8;case 1:d+=M[l]}k();return o4t.toString(R)},rwI=function(M){for(var d=[],N=0;N<M.length;N++)d.push(M.charCodeAt(N));
return d},Kiz=function(M,d){return M[d]+(M[d+1]<<8)+(M[d+2]<<16)+(M[d+3]<<24)};var Jwe,Ss=function(M){_.DL.call(this);this.logger=M;this.mTo=new _.MX;this[Jwe]=this.dispose};
_.v(Ss,_.DL);var cwV=function(M,d){var N=setTimeout(function(){M.mTo.resolve()},d);
M.addOnDisposeCallback(function(){return void clearTimeout(N)})};
Ss.prototype.vR=function(M,d){var N=this.vX(M);d==null||d(N);return ry(this.logger,function(){return _.UT(N,2)},this.qbm)};
var Sqd=function(M,d,N,R){return ry(M.logger,function(){return N?M.vR(d,R):M.vX(d,R)},M.g0)};
Jwe=Symbol.dispose;var zOV=function(M,d,N,R){Ss.call(this,M);this.je6=d;this.bbN=N;this.g0="m";this.qbm="x";this.ibA=0;cwV(this,R)};
_.v(zOV,Ss);zOV.prototype.vX=function(M,d){var N=this;this.logger.cZ(this.g0);++this.ibA>=this.bbN&&this.mTo.resolve();var R=M();M=ry(this.logger,function(){return N.je6(R)},"C");
if(M===void 0)throw new Mc(17,"YNJ:Undefined");if(!(M instanceof Uint8Array))throw new Mc(18,"ODM:Invalid");d==null||d(M);return M};
var byV=function(M,d,N){Ss.call(this,M);this.yfY=d;this.g0="f";this.qbm="z";cwV(this,N)};
_.v(byV,Ss);byV.prototype.vX=function(){return this.yfY};
var eO3=function(M,d,N){Ss.call(this,M);this.tM6=d;this.g0="w";this.qbm="z";cwV(this,N)};
_.v(eO3,Ss);eO3.prototype.vX=function(){var M=this;return ry(this.logger,function(){return _.lL(M.tM6)},"d")};
eO3.prototype.vR=function(){return this.tM6};
var HyJ=function(M,d){Ss.call(this,M);this.error=d;this.g0="e";this.qbm="y"};
_.v(HyJ,Ss);var n4g=function(M,d){var N=(d(M.error.message)+":"+d(M.error.stack)).substring(0,2048);d=N.length+1;N=YoN(N);var R=new Uint8Array(4+N.length);R.set([42,d&127|128,d>>7,M.error.code]);R.set(N,4);return R};
HyJ.prototype.vX=function(){if(this.iRM)return this.iRM;this.iRM=n4g(this,function(M){return"_"+ywt(M)});
return n4g(this,function(M){return M})};
var iye=function(M,d,N){Ss.call(this,M);this.eMi=d;this.clientState=N;this.g0="S";this.qbm="q"};
_.v(iye,Ss);iye.prototype.vX=function(){var M=Math.floor(Date.now()/1E3),d=[Math.random()*255,Math.random()*255],N=d.concat([this.eMi&255,this.clientState],[M>>24&255,M>>16&255,M>>8&255,M&255]);M=new Uint8Array(2+N.length);M[0]=34;M[1]=N.length;M.set(N,2);N=M.subarray(2);for(var R=d=d.length;R<N.length;++R)N[R]^=N[R%d];this.logger.d8U(this.clientState);return M};var fud={ftN:3E4,eVj:2E4},zU=function(M){_.DL.call(this);var d=this;this.rmq=new _.MX;this.tQU=0;this.pZ=void 0;this.state=2;this.ri=M.ri;this.wR=M.wR;this.c3a=Object.assign({},fud,M.c3a||{});this.logger=M.ri.hCw();var N;this.onError=(N=M.onError)!=null?N:function(){};
this.vQo=M.vQo||!1;if(LiJ(M)){var R=this.ri;this.fE5=function(){return wTL(R).catch(function(l){l=d.reportError(new Mc(d.hy?20:32,"TRG:Disposed",l));d.pZ=l;var k;(k=d.hy)==null||k.dispose();d.hy=void 0;d.rmq.reject(l)})};
pTL(R,function(){return void tML(d)});
R.txu===2&&tML(this)}else this.fE5=M.tmV,tML(this);var X=this.logger.share();X.cZ("o");var A=new Y_3(X,"o");this.rmq.promise.then(function(){A.done();X.kV();X.dispose()},function(){return void X.dispose()});
this.addOnDisposeCallback(function(){d.hy?(d.hy.dispose(),d.hy=void 0):d.pZ?d.logger.kV():(d.pZ=d.reportError(new Mc(32,"TNP:Disposed")),d.logger.kV(),d.rmq.reject(d.pZ))});
_.RW(this,this.logger)};
_.v(zU,_.DL);zU.prototype.rpD=function(){return this.rmq.promise};
var Gte=function(M,d){if(!(d instanceof Mc))if(d instanceof _.OF){var N=Error(d.toString());N.stack=d.stack;d=new Mc(11,"EBH:Error",N)}else d=new Mc(12,"BSO:Unknown",d);return M.reportError(d)},tML=function(M){var d,N,R,X,A,l,k,T,W,w,p,m,I,O,y;
return _.B(function(c){switch(c.nextAddress){case 1:d=void 0;M.tQU++;N=new _.MX;M.ri instanceof yK&&M.ri.jNS.push(N.promise);if(!M.vQo){c.jumpTo(2);break}R=new _.MX;setTimeout(function(){return void R.resolve()});
return _.D(c,R.promise,2);case 2:return X=M.logger.share(),_.Mv(c,4,5),M.state=5,A={},l=[],_.D(c,BU(M.ri.snapshot({oN:A,vmb:l}),M.c3a.eVj,function(){return Promise.reject(new Mc(15,"MDA:Timeout"))}),7);
case 7:k=c.yieldResult;if(M.isDisposed())throw new Mc(M.hy?20:32,"MDA:Disposed");T=l[0];M.state=6;return _.D(c,BU(auJ(M.wR,k),M.c3a.ftN,function(){return Promise.reject(new Mc(10,"BWB:Timeout"))}),8);
case 8:W=c.yieldResult;if(M.isDisposed())throw new Mc(M.hy?20:32,"BWB:Disposed");M.state=7;d=ry(X,function(){var t=Uyo(M,W,N,T);t.mTo.promise.then(function(){return void M.fE5()});
return t},"i");
case 5:_.du(c);X.dispose();_.Xg(c,6);break;case 4:w=_.Fg(c);(p=d)==null||p.dispose();if(!M.pZ){m=Gte(M,w);N.resolve();var e;if(e=M.ri instanceof yK&&M.tQU<2)a:if(w instanceof Mc)e=w.code!==32&&w.code!==20&&w.code!==10;else{if(w instanceof _.OF)switch(w.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return I=(1+Math.random()*.25)*(M.hy?6E4:1E3),O=setTimeout(function(){return void M.fE5()},I),M.addOnDisposeCallback(function(){return void clearTimeout(O)}),c.return();
M.pZ=m}X.logError(M.hy?13:14);M.rmq.reject(M.pZ);return c.return();case 6:M.state=8,M.tQU=0,(y=M.hy)==null||y.dispose(),M.hy=d,M.rmq.resolve(),_.Vy(c)}})},Uyo=function(M,d,N,R){var X=Uui(d,2)*1E3;
if(X<=0)throw new Mc(31,"TTM:Invalid");if(_.rP(d,4))return new eO3(M.logger,_.rP(d,4),X);if(!Uui(d,3))return new byV(M.logger,rZi(_.hi(d,1)),X);if(!R)throw new Mc(4,"PMD:Undefined");R=R(rZi(_.hi(d,1)));if(!(R instanceof Function))throw new Mc(16,"APF:Failed");M.dEx=Math.floor((Date.now()+X)/1E3);M=new zOV(M.logger,R,Uui(d,3),X);M.addOnDisposeCallback(function(){return void N.resolve()});
return M};
zU.prototype.vX=function(M){return utd(this,Object.assign({},M),!1)};
zU.prototype.vR=function(M){return utd(this,Object.assign({},M),!0)};
zU.prototype.uvD=function(M){if(M>150)return!1;try{return this.cache=new j8d(M,this.logger),!0}catch(d){return this.reportError(new Mc(22,"GBJ:init",d)),!1}};
zU.prototype.reportError=function(M){this.logger.logError(M.code);this.onError(M);return M};
var CCd=function(M,d){d=d instanceof Mc?d:new Mc(5,"TVD:error",d);return M.reportError(d)},utd=function(M,d,N){try{if(M.isDisposed())throw new Mc(21,"BNT:disposed");
if(!M.hy&&M.pZ)throw M.pZ;var R,X;return(X=(R=xyI(M,d,N))!=null?R:Yqz(M,d,N))!=null?X:Zyt(M,d,N)}catch(A){if(!d.qo2)throw CCd(M,A);return E4o(M,N,A)}},xyI=function(M,d,N){var R;
return(R=M.hy)==null?void 0:Sqd(R,function(){return MzC(M,d)},N,function(X){var A;
if(M.hy instanceof zOV&&((A=d.uh)==null?0:A.rO6))try{var l;(l=M.cache)==null||s83(l,MzC(M,d),X,d.uh.cYD,M.dEx-120)}catch(k){M.reportError(new Mc(24,"ELX:write",k))}})},Yqz=function(M,d,N){var R;
if((R=d.uh)!=null&&R.lb5)try{var X,A=(X=M.cache)==null?void 0:PCd(X,MzC(M,d),d.uh.cYD);return A?N?ry(M.logger,function(){return _.UT(A,2)},"a"):A:void 0}catch(l){M.reportError(new Mc(23,"RXO:read",l))}},Zyt=function(M,d,N){var R={stack:[],
error:void 0,hasError:!1};try{if(!d.evg)throw new Mc(29,"SDF:notready");return Sqd(jlZ(R,new iye(M.logger,0,M.state)),function(){return MzC(M,d)},N)}catch(X){R.error=X,R.hasError=!0}finally{reA(R)}},E4o=function(M,d,N){var R={stack:[],
error:void 0,hasError:!1};try{var X=CCd(M,N);return Sqd(jlZ(R,new HyJ(M.logger,X)),function(){return[]},d)}catch(A){R.error=A,R.hasError=!0}finally{reA(R)}},MzC=function(M,d){return d.pJG?d.pJG:d.oN?ry(M.logger,function(){return d.pJG=YoN(d.oN)},"c"):[]},LiJ=function(M){return iL(function(d){if(!FD6(d))return!1;
for(var N=_.V(Object.entries(M)),R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;if(!(R in d)){if(X.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!X(d[R]))return!1}return!0})}({ri:function(M){return iL(function(d){return d instanceof M})}(yK)},"");var dQV=function(){var M=_.x$();this.JSC$7795_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",x4("cookie_enabled"),x4("cookie_3p_enabled"),_.Zu("browser"))};
dQV.prototype.increment=function(M,d,N){this.JSC$7795_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",M,d,N)};
var v0v=function(){var M=_.x$();this.JSC$7819_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Y4("tick"),x4("from_st_cookie"))};
v0v.prototype.increment=function(M,d){this.JSC$7819_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",M,d)};
var NxL=function(){var M=_.x$();this.JSC$7825_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Zu("status"))};
NxL.prototype.increment=function(M){this.JSC$7825_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",M)};
var RyC=function(){var M=_.x$();this.JSC$7828_streamzService=M;M.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Zu("stage"),x4("is_using_ytd_player"),x4("has_expandable_tiles"))};
RyC.prototype.increment=function(M,d,N){this.JSC$7828_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",M,d,N)};
var XUt=function(){var M=_.x$();this.JSC$7831_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/response_signature",_.Zu("check_status"))};
XUt.prototype.increment=function(M){this.JSC$7831_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/response_signature",M)};
var Fxm=function(){var M=_.x$();this.JSC$7834_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Zu("sig"),Y4("de"))};
Fxm.prototype.increment=function(M,d){this.JSC$7834_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/e_sig_log",M,d)};
var A8J=function(){var M=_.x$();this.JSC$7837_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Zu("sig"),Y4("de"))};
A8J.prototype.increment=function(M,d){this.JSC$7837_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/e_sig_en",M,d)};
_.Vzt=function(){var M=_.x$();this.JSC$7840_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Zu("action"))};
_.Vzt.prototype.increment=function(M){this.JSC$7840_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web/enforcement_intent",M)};var MqZ=function(){var M=_.x$();this.JSC$7843_streamzService=M;M.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.Zu("tagname"))};
MqZ.prototype.increment=function(M){this.JSC$7843_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",M)};var bm=window;var lLL=(new Date).getTime();var $QL=function(M){this.servicePromise_=M;M.then((0,_.gx)(function(){},this),function(){},this)},BxJ=function(M,d,N){M.servicePromise_.then(function(R){var X=R[d];
if(!X)throw Error("Oa`"+d);return X.apply(R,N)})},DQd=function(M,d,N){for(var R=Array(arguments.length-2),X=2;X<arguments.length;X++)R[X-2]=arguments[X];
X=k5V(M,d).then(function(A){return A.apply(null,R)},function(A){A=Error("Pa`"+d+"`"+M,{cause:A});
delete Txg[d];return _.cl(A)});
return new $QL(X)},Txg={},k5V=function(M,d){var N=Txg[d];
if(N)return N;N=(N=_.cy(d))?_.RD(N):(new _.Xy(function(R,X){var A=(new qI(document)).createElement("SCRIPT");A.async=!0;_.Sd(A,_.RO(geL(M)));A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||R()};
A.onerror=function(l){X(Error("Qa`"+d+"`"+M,{cause:l}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(A)})).then(function(){var R=_.cy(d);
if(!R)throw Error("Ra`"+d+"`"+M);return R});
return Txg[d]=N};var gad={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},wUd=function(){var M=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ZuZ(function(){return _.B(function(d){if(d.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?d.return(Promise.resolve()):_.D(d,WxL(M),2);M.rsaForList.length>
0&&document.addEventListener("click",M.requestAccessForHelpPanel);_.Vy(d)})});
this.requestAccessForHelpPanel=function(){if(!(M.rsaForPromises.length>0)){for(var d=_.V(M.rsaForList),N=d.next();!N.done;N=d.next()){N=N.value;try{M.rsaForPromises.push(document.requestStorageAccessFor(N))}catch(R){}}Promise.all(M.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){M.reset()})}}};
wUd.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var WxL=function(M){var d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:d=_.V(Object.values(gad)),N=d.next();case 2:if(N.done){A.jumpTo(0);break}R=N.value;_.Mv(A,5);return _.D(A,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:R}),7);case 7:X=A.yieldResult;X.state!=="granted"&&M.rsaForList.push(R);_.cJ(A,3);break;case 5:_.Fg(A);A.jumpTo(0);break;case 3:N=d.next(),A.jumpTo(2)}})};(new wUd).initialize();var pUz=function(M){this.JSC$7857_loader_=M};
pUz.prototype.startHelp=function(M){BxJ(this.JSC$7857_loader_,"startHelp",arguments)};
pUz.prototype.JSC$7859_loadChatSupport=function(M){BxJ(this.JSC$7857_loader_,"loadChatSupport",arguments)};
var hyC=function(M,d){d=d||{};M=DQd(mQt,"help.service.Lazy.create",M,{apiKey:d.apiKey||d.apiKey,asxUiUri:d.asxUiUri||d.asxUiUri,environment:d.environment||d.environment,flow:d.flow||d.flow,frdProductData:d.frdProductData||d.frdProductData,frdProductDataSerializedJspb:d.frdProductDataSerializedJspb||d.frdProductDataSerializedJspb,helpCenterPath:d.helpCenterPath||d.helpCenterPath,locale:d.locale||d.locale||"en-US".replace(/-/g,"_"),nonce:d.nonce||d.nonce,productData:d.productData||d.productData,receiverUri:d.receiverUri||
d.receiverUri,renderApiUri:d.renderApiUri||d.renderApiUri,theme:d.theme||d.theme,window:d.window||d.window});return new pUz(M)},mQt=new j5(PIN,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var QWd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(QWd,_.Jj);var qsJ=_.xZ(QWd);new Uint8Array([]);_.ILe=new function(M,d,N,R){this.configType=M;this.flagName=N;this.defaultValue=R;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 OkJ=function(){this.retriever=_.h().resolve(vad)};MxA(Node);MxA(Element);var jWt=MxA(HTMLElement);MxA(SVGElement);var sWo,P_C,n2,oag;sWo=function(M){return typeof M.className=="string"?M.className:M.getAttribute&&M.getAttribute("class")||""};
P_C=function(M){return M.classList?M.classList:sWo(M).match(/\S+/g)||[]};
_.es=function(M,d){typeof M.className=="string"?M.className=d:M.setAttribute&&M.setAttribute("class",d)};
_.HX=function(M,d){return M.classList?M.classList.contains(d):_.i2(P_C(M),d)};
_.cz=function(M,d){if(M.classList)M.classList.add(d);else if(!_.HX(M,d)){var N=sWo(M);_.es(M,N+(N.length>0?" "+d:d))}};
n2=function(M,d){if(M.classList)Array.prototype.forEach.call(d,function(X){_.cz(M,X)});
else{var N={};Array.prototype.forEach.call(P_C(M),function(X){N[X]=!0});
Array.prototype.forEach.call(d,function(X){N[X]=!0});
d="";for(var R in N)d+=d.length>0?" "+R:R;_.es(M,d)}};
_.yu=function(M,d){M.classList?M.classList.remove(d):_.HX(M,d)&&_.es(M,Array.prototype.filter.call(P_C(M),function(N){return N!=d}).join(" "))};
oag=function(M,d){M.classList?Array.prototype.forEach.call(d,function(N){_.yu(M,N)}):_.es(M,Array.prototype.filter.call(P_C(M),function(N){return!_.i2(d,N)}).join(" "))};var r8g=function(M){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=M.document},J8z=function(M,d){KxJ(M);
var N=document.createElement("div"),R;(R=d.parentNode)==null||R.insertBefore(N,d);N.tabIndex=0;N.id="fc-focus-trap-pre-div";N=document.createElement("div");var X;(X=d.parentNode)==null||X.insertBefore(N,d.nextSibling);N.tabIndex=0;N.id="fc-focus-trap-post-div";var A=y8V(M,d),l=y8V(M,d,!0);A&&l&&(M.focusChangeHandler=function(){var k=M.document.activeElement;if(k)if(_.PU(d,k))M.previouslyFocusedElement=k;else if(k===M.document.activeElement)switch(M.previouslyFocusedElement){case A:l.focus();M.previouslyFocusedElement=
l;break;default:A.focus(),M.previouslyFocusedElement=A}},M.document.addEventListener("focus",M.focusChangeHandler,!0),M.document.addEventListener("focusin",M.focusChangeHandler))},KxJ=function(M){M.focusChangeHandler&&(document.removeEventListener("focus",M.focusChangeHandler,!0),document.removeEventListener("focusin",M.focusChangeHandler),M.focusChangeHandler=null);
var d;(d=document.getElementById("fc-focus-trap-pre-div"))==null||d.remove();var N;(N=document.getElementById("fc-focus-trap-post-div"))==null||N.remove()},c8t=function(M,d,N,R,X){N=N===void 0?!0:N;
var A;X=(A=X===void 0?null:X)!=null?A:y8V(M,d,R===void 0?!1:R);X!==null&&(X.focus(),N&&J8z(M,d))};
r8g.prototype.disableButton=function(M,d){d=d===void 0?null:d;M.disabled=!0;d&&_.cz(M,d)};
var y8V=function(M,d,N){N=N===void 0?!1:N;if(a3S(d)&&!N)return d;var R=N?[].slice.call(d.children,0).reverse():d.children;R=_.V(R);for(var X=R.next();!X.done;X=R.next())if(X=X.value,jWt(X)&&(X=y8V(M,X,N)))return X;return a3S(d)&&N?d:null};var SsV=function(M){this.originalBodyOverflow="";this.JSC$7885_domHelper=Aw(M)};_.RX(_.WU,_.DL);_.F=_.WU.prototype;_.F.JSC$7888_id_=0;_.F.disposeInternal=function(){_.WU.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7886_listener_;delete this.handler_};
_.F.start=function(M){this.stop();this.JSC$7888_id_=vX(this.callback_,M!==void 0?M:this.JSC$7886_interval_)};
_.F.stop=function(){this.isActive()&&_.Np.clearTimeout(this.JSC$7888_id_);this.JSC$7888_id_=0};
_.F.fire=function(){this.stop();this.JSC$7888_doAction_()};
_.F.isActive=function(){return this.JSC$7888_id_!=0};
_.F.JSC$7888_doAction_=function(){this.JSC$7888_id_=0;this.JSC$7886_listener_&&this.JSC$7886_listener_.call(this.handler_)};_.a_=function(M){_.DL.call(this);this.handler_=M;this.JSC$7889_keys_={}};
_.RX(_.a_,_.DL);var zym=[];_.a_.prototype.listen=function(M,d,N,R){Array.isArray(d)||(d&&(zym[0]=d.toString()),d=zym);for(var X=0;X<d.length;X++){var A=_.lI(M,d[X],N||this.handleEvent,R||!1,this.handler_||this);if(!A)break;this.JSC$7889_keys_[A.key]=A}return this};
_.a_.prototype.listenOnce=function(M,d,N,R){return bkC(this,M,d,N,R)};
var bkC=function(M,d,N,R,X,A){if(Array.isArray(N))for(var l=0;l<N.length;l++)bkC(M,d,N[l],R,X,A);else{d=XQ(d,N,R||M.handleEvent,X,A||M.handler_||M);if(!d)return M;M.JSC$7889_keys_[d.key]=d}return M};
_.a_.prototype.unlisten=function(M,d,N,R,X){if(Array.isArray(d))for(var A=0;A<d.length;A++)this.unlisten(M,d[A],N,R,X);else if(M=ASL(M,d,N||this.handleEvent,_.Me(R)?!!R.capture:!!R,X||this.handler_||this))FQ(M),delete this.JSC$7889_keys_[M.key];return this};
_.a_.prototype.removeAll=function(){_.wF.forEach(this.JSC$7889_keys_,function(M,d){this.JSC$7889_keys_.hasOwnProperty(d)&&FQ(M)},this);
this.JSC$7889_keys_={}};
_.a_.prototype.disposeInternal=function(){_.a_.superClass_.disposeInternal.call(this);this.removeAll()};
_.a_.prototype.handleEvent=function(){throw Error("Sa");};var im=function(){_.DL.call(this);this.services_={}};
_.RX(im,_.DL);_.F=im.prototype;_.F.logger=null;_.F.connect=function(M){M&&M()};
_.F.isConnected=function(){return!0};
_.F.registerService=function(M,d,N){this.services_[M]={callback:d,objectPayload:!!N}};
_.F.getService=function(M,d){var N=this.services_[M];return N?N:this.defaultService_?{callback:_.B1(this.defaultService_,M),objectPayload:_.Me(d)}:null};
var eyz=function(M,d){if(d&&typeof M==="string")try{return JSON.parse(M)}catch(N){return null}else if(!d&&typeof M!=="string")return(0,_.js)(M);return M};
im.prototype.disposeInternal=function(){im.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 f2=function(M,d){this.sequence_=[];this.onCancelFunction_=M;this.defaultScope_=d||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};
f2.prototype.cancel=function(M){if(this.fired_)this.result_ instanceof f2&&this.result_.cancel();else{if(this.parent_){var d=this.parent_;delete this.parent_;M?d.cancel(M):(d.branches_--,d.branches_<=0&&d.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new L2(this))}};
f2.prototype.continue_=function(M,d){this.blocked_=!1;HkI(this,M,d)};
var HkI=function(M,d,N){M.fired_=!0;M.result_=N;M.hadError_=!d;naz(M)},fLd=function(M){if(M.fired_){if(!M.silentlyCanceled_)throw new ikV(M);
M.silentlyCanceled_=!1}};
f2.prototype.callback=function(M){fLd(this);HkI(this,!0,M)};
f2.prototype.errback=function(M){fLd(this);HkI(this,!1,M)};
var Lxe=function(M,d,N){tY(M,d,null,N)};
f2.prototype.finally=function(M){var d=this;return new Promise(function(N,R){tY(d,function(X){M();N(X)},function(X){M();
R(X)})})};
var tY=function(M,d,N,R){var X=M.fired_;X||(d===N?d=N=hY(d):(d=hY(d),N=hY(N)));M.sequence_.push([d,N,R]);X&&naz(M)};
f2.prototype.then=function(M,d,N){var R,X,A=new _.Xy(function(l,k){X=l;R=k});
tY(this,X,function(l){l instanceof L2?A.cancel():R(l);return tzg},this);
return A.then(M,d,N)};
gtz(f2);var G5L=function(M,d){d instanceof f2?Lxe(M,(0,_.gx)(d.branch,d)):Lxe(M,function(){return d})};
f2.prototype.branch=function(M){var d=new f2;tY(this,d.callback,d.errback,d);M&&(d.parent_=this,this.branches_++);return d};
f2.prototype.isError=function(M){return M instanceof Error};
var aLt=function(M){return b7(M.sequence_,function(d){return typeof d[1]==="function"})},tzg={},naz=function(M){if(M.unhandledErrorId_&&M.fired_&&aLt(M)){var d=M.unhandledErrorId_,N=UQe[d];
N&&(_.Np.clearTimeout(N.JSC$7906_id_),delete UQe[d]);M.unhandledErrorId_=0}M.parent_&&(M.parent_.branches_--,delete M.parent_);d=M.result_;for(var R=N=!1;M.sequence_.length&&!M.blocked_;){var X=M.sequence_.shift(),A=X[0],l=X[1];X=X[2];if(A=M.hadError_?l:A)try{var k=A.call(X||M.defaultScope_,d);k===tzg&&(k=void 0);k!==void 0&&(M.hadError_=M.hadError_&&(k==d||M.isError(k)),M.result_=d=k);if(WnV(d)||typeof _.Np.Promise==="function"&&d instanceof _.Np.Promise)R=!0,M.blocked_=!0}catch(T){d=T,M.hadError_=
!0,aLt(M)||(N=!0)}}M.result_=d;R&&(k=(0,_.gx)(M.continue_,M,!0),R=(0,_.gx)(M.continue_,M,!1),d instanceof f2?(tY(d,k,R),d.blocking_=!0):d.then(k,R));N&&(d=new uxI(d),UQe[d.JSC$7906_id_]=d,M.unhandledErrorId_=d.JSC$7906_id_)},ikV=function(){_.Mp.call(this)};
_.RX(ikV,_.Mp);ikV.prototype.message="Deferred has already fired";ikV.prototype.name="AlreadyCalledError";var L2=function(){_.Mp.call(this)};
_.RX(L2,_.Mp);L2.prototype.message="Deferred was canceled";L2.prototype.name="CanceledError";var uxI=function(M){this.JSC$7906_id_=_.Np.setTimeout((0,_.gx)(this.throwError,this),0);this.JSC$7906_error_=M};
uxI.prototype.throwError=function(){delete UQe[this.JSC$7906_id_];throw this.JSC$7906_error_;};
var UQe={};var C_m={1:"NativeMessagingTransport"},xQV=["pu","lru","pru","lpu","ppu"],Zko=function(){for(var M=10,d=Ysd,N=d.length,R="";M-- >0;)R+=d.charAt(Math.floor(Math.random()*N));return R},Ysd="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var GU=function(M){_.DL.call(this);this.JSC$7909_domHelper_=M||Aw()};
_.RX(GU,_.DL);GU.prototype.transportType=0;GU.prototype.getWindow=function(){return this.JSC$7909_domHelper_.getWindow()};
GU.prototype.getName=function(){return C_m[String(this.transportType)]||""};var ae=function(M,d,N,R,X){GU.call(this,N);this.JSC$7912_channel_=M;this.protocolVersion_=X||2;this.peerHostname_=d||"*";this.JSC$7912_eventHandler_=new _.a_(this);this.maybeAttemptToConnectTimer_=new _.Ga(100,this.getWindow());this.oneSidedHandshake_=!!R;this.setupAckReceived_=new f2;this.setupAckSent_=new f2;this.JSC$7912_connected_=new f2;this.endpointId_=Zko();this.peerEndpointId_=null;this.oneSidedHandshake_?Eag(this.JSC$7912_channel_)==1?G5L(this.JSC$7912_connected_,this.setupAckReceived_):
G5L(this.JSC$7912_connected_,this.setupAckSent_):(G5L(this.JSC$7912_connected_,this.setupAckReceived_),this.protocolVersion_==2&&G5L(this.JSC$7912_connected_,this.setupAckSent_));Lxe(this.JSC$7912_connected_,this.notifyConnected_,this);this.JSC$7912_connected_.callback(!0);this.JSC$7912_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.RX(ae,GU);ae.prototype.peerProtocolVersion_=null;ae.prototype.initialized_=!1;ae.prototype.transportType=1;var M9o={};ae.prototype.sendTimerId_=0;
var RMo=function(M){var d=M.event_.data;if(typeof d!=="string")return!1;var N=d.indexOf("|"),R=d.indexOf(":");if(N==-1||R==-1)return!1;var X=d.substring(0,N);N=d.substring(N+1,R);d=d.substring(R+1);if(R=UF[X])return R.xpcDeliver(N,d,M.event_.origin),!0;R=dFz(d)[0];for(var A in UF){var l=UF[A];if(Eag(l)==1&&!l.isConnected()&&N=="tp"&&(R=="SETUP"||R=="SETUP_NTPV2")&&N0t(l,M.event_.origin))return delete UF[l.name],l.name=X,UF[X]=l,l.xpcDeliver(N,d),!0}return!1},XgL=function(M){M.protocolVersion_!=2||
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||M.send("tp","SETUP_NTPV2,"+M.endpointId_);
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||M.send("tp","SETUP")},FFe=function(M,d){if(M.protocolVersion_!=2||M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||d!=2){if(M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||d!=1)return;
M.send("tp","SETUP_ACK")}else M.send("tp","SETUP_ACK_NTPV2");M.setupAckSent_.fired_||M.setupAckSent_.callback(!0)},AlV=function(M,d){d>M.peerProtocolVersion_&&(M.peerProtocolVersion_=d);
M.peerProtocolVersion_==1&&(M.setupAckSent_.fired_||M.oneSidedHandshake_||M.setupAckSent_.callback(!0),M.peerEndpointId_=null)};
_.F=ae.prototype;_.F.connect=function(){var M=this.getWindow(),d=_.d3(M),N=M9o[d];typeof N!=="number"&&(N=0);N==0&&_.lI(M.postMessage?M:M.document,"message",RMo,!1,ae);M9o[d]=N+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.F.maybeAttemptToConnect_=function(){var M=Eag(this.JSC$7912_channel_)==0;this.oneSidedHandshake_&&M||this.JSC$7912_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),XgL(this))};
_.F.send=function(M,d){var N=this.JSC$7912_channel_.peerWindowObject_;N&&(this.send=function(R,X){var A=this,l=this.JSC$7912_channel_.name;this.sendTimerId_=vX(function(){A.sendTimerId_=0;try{var k=N.postMessage?N:N.document;k.postMessage&&k.postMessage(l+"|"+R+":"+X,A.peerHostname_)}catch(T){}},0)},this.send(M,d))};
_.F.notifyConnected_=function(){var M=this.JSC$7912_channel_,d=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;M.isConnected()||M.connectionDelay_&&M.connectionDelay_.isActive()||(M.state_=2,_.tw(M.connectionDelay_),d!==void 0?(M.connectionDelay_=new _.WU(M.connectCb_,d),M.connectionDelay_.start()):(M.connectionDelay_=null,M.connectCb_()))};
_.F.disposeInternal=function(){if(this.initialized_){var M=this.getWindow(),d=_.d3(M),N=M9o[d];M9o[d]=N-1;N==1&&_.p2(M.postMessage?M:M.document,"message",RMo,!1,ae)}this.sendTimerId_&&(_.Np.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.tw(this.JSC$7912_eventHandler_);delete this.JSC$7912_eventHandler_;_.tw(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7912_connected_.cancel();delete this.JSC$7912_connected_;delete this.send;ae.superClass_.disposeInternal.call(this)};
var dFz=function(M){M=M.split(",");M[1]=M[1]||null;return M};_.um=function(M){if(M.getValues&&typeof M.getValues=="function")return M.getValues();if(typeof Map!=="undefined"&&M instanceof Map||typeof Set!=="undefined"&&M instanceof Set)return Array.from(M.values());if(typeof M==="string")return M.split("");if(_.CZ(M)){for(var d=[],N=M.length,R=0;R<N;R++)d.push(M[R]);return d}return _.wF.getValues(M)};
_.V9C=function(M){if(M.getKeys&&typeof M.getKeys=="function")return M.getKeys();if(!M.getValues||typeof M.getValues!="function"){if(typeof Map!=="undefined"&&M instanceof Map)return Array.from(M.keys());if(!(typeof Set!=="undefined"&&M instanceof Set)){if(_.CZ(M)||typeof M==="string"){var d=[];M=M.length;for(var N=0;N<M;N++)d.push(N);return d}return _.wF.getKeys(M)}}};
_.lK3=function(M,d,N){if(M.forEach&&typeof M.forEach=="function")M.forEach(d,N);else if(_.CZ(M)||typeof M==="string")Array.prototype.forEach.call(M,d,N);else for(var R=_.V9C(M),X=_.um(M),A=X.length,l=0;l<A;l++)d.call(N,X[l],R&&R[l],M)};var JN2,dG,Rt,WFt,$Fd,kTo,B0z,gTI,T0J;
_.iX=function(M,d){this.JSC$7917_domain_=this.userInfo_=this.scheme_="";this.JSC$7917_port_=null;this.fragment_=this.JSC$7917_path_="";this.JSC$7917_ignoreCase_=!1;var N;M instanceof _.iX?(this.JSC$7917_ignoreCase_=d!==void 0?d:M.JSC$7917_ignoreCase_,_.C2(this,M.scheme_),this.userInfo_=M.userInfo_,_.x9(this,M.JSC$7917_domain_),_.Y9(this,M.JSC$7917_port_),_.Zj(this,M.getPath()),_.EF(this,M.JSC$7917_queryData_.clone()),_.M2(this,M.fragment_)):M&&(N=_.tA(String(M)))?(this.JSC$7917_ignoreCase_=!!d,_.C2(this,
N[1]||"",!0),this.userInfo_=dG(N[2]||""),_.x9(this,N[3]||"",!0),_.Y9(this,N[4]),_.Zj(this,N[5]||"",!0),_.EF(this,N[6]||"",!0),_.M2(this,N[7]||"",!0)):(this.JSC$7917_ignoreCase_=!!d,this.JSC$7917_queryData_=new _.N2(null,this.JSC$7917_ignoreCase_))};
_.iX.prototype.toString=function(){var M=[],d=this.scheme_;d&&M.push(Rt(d,$Fd,!0),":");var N=this.JSC$7917_domain_;if(N||d=="file")M.push("//"),(d=this.userInfo_)&&M.push(Rt(d,$Fd,!0),"@"),M.push(_.ex(N).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),N=this.JSC$7917_port_,N!=null&&M.push(":",String(N));if(N=this.getPath())this.JSC$7917_domain_&&N.charAt(0)!="/"&&M.push("/"),M.push(Rt(N,N.charAt(0)=="/"?B0z:kTo,!0));(N=this.JSC$7917_queryData_.toString())&&M.push("?",N);(N=this.fragment_)&&M.push("#",Rt(N,
T0J));return M.join("")};
_.iX.prototype.resolve=function(M){var d=this.clone(),N=!!M.scheme_;N?_.C2(d,M.scheme_):N=!!M.userInfo_;N?d.userInfo_=M.userInfo_:N=!!M.JSC$7917_domain_;N?_.x9(d,M.JSC$7917_domain_):N=M.JSC$7917_port_!=null;var R=M.getPath();if(N)_.Y9(d,M.JSC$7917_port_);else if(N=!!M.JSC$7917_path_){if(R.charAt(0)!="/")if(this.JSC$7917_domain_&&!this.JSC$7917_path_)R="/"+R;else{var X=d.getPath().lastIndexOf("/");X!=-1&&(R=d.getPath().slice(0,X+1)+R)}X=R;if(X==".."||X==".")R="";else if(_.T6(X,"./")||_.T6(X,"/.")){R=
_.AL(X,"/");X=X.split("/");for(var A=[],l=0;l<X.length;){var k=X[l++];k=="."?R&&l==X.length&&A.push(""):k==".."?((A.length>1||A.length==1&&A[0]!="")&&A.pop(),R&&l==X.length&&A.push("")):(A.push(k),R=!0)}R=A.join("/")}else R=X}N?_.Zj(d,R):N=M.JSC$7917_queryData_.toString()!=="";N?_.EF(d,M.JSC$7917_queryData_.clone()):N=!!M.fragment_;N&&_.M2(d,M.fragment_);return d};
_.iX.prototype.clone=function(){return new _.iX(this)};
_.C2=function(M,d,N){M.scheme_=N?dG(d,!0):d;M.scheme_&&(M.scheme_=M.scheme_.replace(/:$/,""));return M};
_.x9=function(M,d,N){M.JSC$7917_domain_=N?dG(d,!0):d;return M};
_.Y9=function(M,d){if(d){d=Number(d);if(isNaN(d)||d<0)throw Error("Ta`"+d);M.JSC$7917_port_=d}else M.JSC$7917_port_=null;return M};
_.iX.prototype.getPath=function(){return this.JSC$7917_path_};
_.Zj=function(M,d,N){M.JSC$7917_path_=N?dG(d,!0):d;return M};
_.EF=function(M,d,N){d instanceof _.N2?(M.JSC$7917_queryData_=d,DFL(M.JSC$7917_queryData_,M.JSC$7917_ignoreCase_)):(N||(d=Rt(d,gTI)),M.JSC$7917_queryData_=new _.N2(d,M.JSC$7917_ignoreCase_));return M};
_.J8=function(M,d,N){M.JSC$7917_queryData_.set(d,N);return M};
_.yf=function(M,d){return M.JSC$7917_queryData_.get(d)};
_.M2=function(M,d,N){M.fragment_=N?dG(d):d;return M};
_.XX=function(M){_.J8(M,"zx",rx());return M};
_.Kk=function(M,d){return M instanceof _.iX?M.clone():new _.iX(M,d)};
JN2=function(M,d){M instanceof _.iX||(M=_.Kk(M));d instanceof _.iX||(d=_.Kk(d));return M.resolve(d)};
dG=function(M,d){return M?d?decodeURI(M.replace(/%25/g,"%2525")):decodeURIComponent(M):""};
Rt=function(M,d,N){return typeof M==="string"?(M=encodeURI(M).replace(d,WFt),N&&(M=M.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M):null};
WFt=function(M){M=M.charCodeAt(0);return"%"+(M>>4&15).toString(16)+(M&15).toString(16)};
$Fd=/[#\/\?@]/g;kTo=/[#\?:]/g;B0z=/[#\?]/g;gTI=/[#\?@]/g;T0J=/#/g;_.N2=function(M,d){this.count_=this.keyMap_=null;this.encodedQuery_=M||null;this.JSC$7918_ignoreCase_=!!d};
_.FX=function(M){M.keyMap_||(M.keyMap_=new Map,M.count_=0,M.encodedQuery_&&kht(M.encodedQuery_,function(d,N){M.add(us(d),N)}))};
_.F=_.N2.prototype;_.F.getCount=function(){_.FX(this);return this.count_};
_.F.add=function(M,d){_.FX(this);this.encodedQuery_=null;M=AW(this,M);var N=this.keyMap_.get(M);N||this.keyMap_.set(M,N=[]);N.push(d);this.count_+=1;return this};
_.F.remove=function(M){_.FX(this);M=AW(this,M);return this.keyMap_.has(M)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(M).length,this.keyMap_.delete(M)):!1};
_.F.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.F.isEmpty=function(){_.FX(this);return this.count_==0};
_.F.containsKey=function(M){_.FX(this);M=AW(this,M);return this.keyMap_.has(M)};
_.F.containsValue=function(M){var d=this.getValues();return _.i2(d,M)};
_.F.forEach=function(M,d){_.FX(this);this.keyMap_.forEach(function(N,R){N.forEach(function(X){M.call(d,X,R,this)},this)},this)};
_.F.getKeys=function(){_.FX(this);for(var M=Array.from(this.keyMap_.values()),d=Array.from(this.keyMap_.keys()),N=[],R=0;R<d.length;R++)for(var X=M[R],A=0;A<X.length;A++)N.push(d[R]);return N};
_.F.getValues=function(M){_.FX(this);var d=[];if(typeof M==="string")this.containsKey(M)&&(d=d.concat(this.keyMap_.get(AW(this,M))));else{M=Array.from(this.keyMap_.values());for(var N=0;N<M.length;N++)d=d.concat(M[N])}return d};
_.F.set=function(M,d){_.FX(this);this.encodedQuery_=null;M=AW(this,M);this.containsKey(M)&&(this.count_-=this.keyMap_.get(M).length);this.keyMap_.set(M,[d]);this.count_+=1;return this};
_.F.get=function(M,d){if(!M)return d;M=this.getValues(M);return M.length>0?String(M[0]):d};
_.wgd=function(M,d,N){M.remove(d);N.length>0&&(M.encodedQuery_=null,M.keyMap_.set(AW(M,d),_.US(N)),M.count_+=N.length)};
_.N2.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var M=[],d=Array.from(this.keyMap_.keys()),N=0;N<d.length;N++){var R=d[N],X=_.ex(R);R=this.getValues(R);for(var A=0;A<R.length;A++){var l=X;R[A]!==""&&(l+="="+_.ex(R[A]));M.push(l)}}return this.encodedQuery_=M.join("&")};
_.N2.prototype.clone=function(){var M=new _.N2;M.encodedQuery_=this.encodedQuery_;this.keyMap_&&(M.keyMap_=new Map(this.keyMap_),M.count_=this.count_);return M};
var AW=function(M,d){d=String(d);M.JSC$7918_ignoreCase_&&(d=d.toLowerCase());return d},DFL=function(M,d){d&&!M.JSC$7918_ignoreCase_&&(_.FX(M),M.encodedQuery_=null,M.keyMap_.forEach(function(N,R){var X=R.toLowerCase();
R!=X&&(this.remove(R),_.wgd(this,X,N))},M));
M.JSC$7918_ignoreCase_=d};
_.N2.prototype.extend=function(M){for(var d=0;d<arguments.length;d++)_.lK3(arguments[d],function(N,R){this.add(R,N)},this)};var VC=function(M,d){im.call(this);for(var N=0,R;R=xQV[N];N++)if(R in M&&!/^https?:\/\//.test(M[R]))throw Error("Va`"+M[R]+"`"+R);this.cfg_=M;this.name=this.cfg_.cn||Zko();this.JSC$7913_domHelper_=d||Aw();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.a_(this);M.lpu=M.lpu||$9z(this.JSC$7913_domHelper_.getWindow().location.href)+"/robots.txt";M.ppu=M.ppu||$9z(M.pu||"")+"/robots.txt";UF[this.name]=this;ASL(window,"unload",pgI)||XQ(window,"unload",pgI)};
_.RX(VC,im);var mF3=RegExp("^%*tp$"),hMe=RegExp("^%+tp$");_.F=VC.prototype;_.F.connectionDelay_=null;_.F.peerWindowDeferred_=null;_.F.transport_=null;_.F.state_=1;_.F.isConnected=function(){return this.state_==2};
_.F.peerWindowObject_=null;_.F.iframeElement_=null;_.F.connect=function(M){this.connectCb_=M||_.wl;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Lxe(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.F.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7913_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var M=this.iframeElement_.contentWindow;M||(M=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=M}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7913_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new ae(this,this.cfg_.ph,this.JSC$7913_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.F.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.tw(this.transport_);this.connectCb_=this.transport_=null;_.tw(this.connectionDelay_);this.connectionDelay_=null};
_.F.send=function(M,d){if(this.isConnected()){try{var N=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(X){N=!1}if(N){_.Me(d)&&(d=(0,_.js)(d));N=this.transport_;var R=N.send;mF3.test(M)&&(M="%"+M);M=M.replace(/[%:|]/g,encodeURIComponent);R.call(N,M,d)}else this.close()}};
_.F.xpcDeliver=function(M,d,N){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.gx)(this.xpcDeliver,this,M,d,N));else if(N0t(this,N)&&!this.isDisposed()&&this.state_!=3)if(M&&M!="tp")this.isConnected()&&(M=M.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),M=hMe.test(M)?M.substring(1):M,M=this.getService(M,d))&&(d=eyz(d,M.objectPayload),d!=null&&M.callback(d));else switch(M=this.transport_,N=dFz(d),d=N[1],N[0]){case "SETUP_ACK":AlV(M,1);M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":M.protocolVersion_==2&&(AlV(M,2),M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0));break;case "SETUP":AlV(M,1);FFe(M,1);break;case "SETUP_NTPV2":M.protocolVersion_==2&&(N=M.peerProtocolVersion_,AlV(M,2),FFe(M,2),N!=1&&M.peerEndpointId_==null||M.peerEndpointId_==d||XgL(M),M.peerEndpointId_=d)}};
var Eag=function(M){var d=M.cfg_.role;return typeof d==="number"?d:window.parent==M.peerWindowObject_?1:0},N0t=function(M,d){var N=M.cfg_.ph;
return _.ki(d==null?"":String(d))||_.ki(N==null?"":String(N))||d==M.cfg_.ph};
VC.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete UF[this.name];_.tw(this.peerLoadHandler_);delete this.peerLoadHandler_;VC.superClass_.disposeInternal.call(this)};
var pgI=function(){for(var M in UF)_.tw(UF[M])},UF={};var qod=function(M,d){this.JSC$7927_win=M;this.allowAdsHttpEndpoint=d;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7927_domHelper=Aw(M);this.scrollManager=new SsV(M);this.accessibilityManager=new r8g(M);Q43(this)},Q43=function(M){var d=function(){M.allowAdsPopup&&M.allowAdsPopup.style.setProperty("display","none","important");
M.wallElement.style.setProperty("display","","important");KxJ(M.accessibilityManager);c8t(M.accessibilityManager,M.wallElement.querySelector(".fc-dialog-container"),!1,!1,M.wallElement.querySelector(".fc-button-whitelist"));var X=M.scrollManager;X.JSC$7885_domHelper.JSC$7214_document_.body.style.overflow=X.originalBodyOverflow};
M.allowAdsPopup=M.JSC$7927_domHelper.JSC$7216_createDom("DIV",{"class":"fc-whitelist-root"});M.allowAdsPopup.style.setProperty("display","none","important");M.JSC$7927_domHelper.appendChild(M.JSC$7927_domHelper.JSC$7214_document_.body,M.allowAdsPopup);var N=M.JSC$7927_domHelper.JSC$7216_createDom("DIV",{"class":"fc-dialog-overlay"});M.JSC$7927_domHelper.appendChild(M.allowAdsPopup,N);var R=M.JSC$7927_domHelper.JSC$7216_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:d});M.JSC$7927_domHelper.appendChild(M.allowAdsPopup,
R);N=M.JSC$7927_domHelper.JSC$7216_createDom("IFRAME");N.className="fc-whitelist-dialog";N.frameBorder="0";N.id="fc-whitelist-iframe";N.tabIndex="0";_.s0(N,M.allowAdsHttpEndpoint);M.JSC$7927_domHelper.appendChild(R,N);R={};R.pu=_.XC(M.allowAdsHttpEndpoint).toString();R.tp=1;R.cn="fc-whitelist-channel";R.ifrid=N.id;R.osh=!0;M.allowAdsCrossPageChannel=new VC(R);M.allowAdsCrossPageChannel.registerService("close",d);M.allowAdsCrossPageChannel.registerService("refresh",function(){M.JSC$7927_win.location.reload()});
M.allowAdsCrossPageChannel.registerService("resize",function(X){if(X){var A=M.allowAdsPopup.querySelector(".fc-whitelist-dialog");X.width&&A.style.setProperty("width",X.width,"important");X.height&&A.style.setProperty("height",X.height,"important")}},!0);
M.allowAdsCrossPageChannel.connect()};
qod.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7927_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var lJ=window,$5=document,IKd=lJ.location,vTV=function(){},Ou3=/\[native code\]/,Bv=function(M,d,N){return M[d]=M[d]||N},j4V=function(M){M=M.sort();
for(var d=[],N=void 0,R=0;R<M.length;R++){var X=M[R];X!=N&&d.push(X);N=X}return d},k5=function(){var M;
if((M=Object.create)&&Ou3.test(M))M=M(null);else{M={};for(var d in M)M[d]=void 0}return M},T_=Bv(lJ,"gapi",{});var DV={};DV=Bv(lJ,"___jsl",k5());Bv(DV,"I",0);Bv(DV,"hel",10);var s4g=function(){var M=IKd.href;if(DV.dpo)var d=DV.h;else{d=DV.h;var N=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),R=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(M=M&&(N.exec(M)||R.exec(M)))try{d=decodeURIComponent(M[2])}catch(X){}}return d},PdV=function(M){var d=Bv(DV,"PQ",[]);
DV.PQ=[];var N=d.length;if(N===0)M();else for(var R=0,X=function(){++R===N&&M()},A=0;A<N;A++)d[A](X)},oTz=function(M){return Bv(Bv(DV,"H",k5()),M,k5())};var gG=function(M){this.JSC$7929_obj_=M};
gG.prototype.value=function(){return this.JSC$7929_obj_};
gG.prototype.getWidth=function(){return this.JSC$7929_obj_.width};
gG.prototype.getHeight=function(){return this.JSC$7929_obj_.height};
gG.prototype.getStyle=function(){return this.JSC$7929_obj_.style};var rld=function(M){this.JSC$7932_obj_=M||{}};
_.F=rld.prototype;_.F.value=function(){return this.JSC$7932_obj_};
_.F.setUrl=function(M){this.JSC$7932_obj_.url=M;return this};
_.F.getUrl=function(){return this.JSC$7932_obj_.url};
_.F.getStyle=function(){return this.JSC$7932_obj_.style};
_.F.setId=function(M){this.JSC$7932_obj_.id=M;return this};
_.F.getId=function(){return this.JSC$7932_obj_.id};
_.F.getContext=function(){return this.JSC$7932_obj_.context};
var KF3=function(M){M.JSC$7932_obj_.attributes=M.JSC$7932_obj_.attributes||{};return new gG(M.JSC$7932_obj_.attributes)};var ylC=function(){rld.apply(this,arguments)};
_.v(ylC,rld);var JlI=Bv(DV,"perf",k5());Bv(JlI,"g",k5());var clz=Bv(JlI,"i",k5());Bv(JlI,"r",[]);k5();k5();var zMd=function(M,d,N){d&&d.length>0&&(d=Sot(d),N&&N.length>0&&(d+="___"+Sot(N)),d.length>28&&(d=d.substr(0,28)+(d.length-28)),N=d,d=Bv(clz,"_p",k5()),Bv(d,N,k5())[M]=(new Date).getTime(),d=JlI.r,typeof d==="function"?d(M,"_p",N):d.push([M,"_p",N]))},Sot=function(M){return M.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var buz=k5(),eM3=[],Wv=function(M){throw Error("Ya`"+M);};
eM3.push(["jsl",function(M){for(var d in M)if(Object.prototype.hasOwnProperty.call(M,d)){var N=M[d];typeof N=="object"?DV[d]=Bv(DV,d,[]).concat(N):Bv(DV,d,N)}if(d=M.u)M=Bv(DV,"us",[]),M.push(d),(d=/^https:(.*)$/.exec(d))&&M.push("http:"+d[1])}]);
var Huo=/^(\/[a-zA-Z0-9_\-]+)+$/,nTV=[/\/amp\//,/\/amp$/,/^\/amp$/],iuo=/^[a-zA-Z0-9\-_\.,!]+$/,fKe=/^gapi\.loaded_[0-9]+$/,LFe=/^[a-zA-Z0-9,._-]+$/,UFL=function(M,d,N,R,X){var A=M.split(";"),l=A.shift(),k=buz[l],T=null;k?T=k(A,d,N,R):Wv("no hint processor for: "+l);T||Wv("failed to generate load url");d=T;N=d.match(t9L);(R=d.match(GTt))&&R.length===1&&aKJ.test(d)&&N&&N.length===1||Wv("failed sanity: "+M);try{M="?";if(X&&X.length>0){RI(X);var W=X.join(",");T=T+"?le="+W;M="&"}if(DV.rol){var w=DV.ol;
w&&w.length&&(T=""+T+M+"ol="+w.length)}}catch(p){}return T},xFL=function(M,d,N,R){M=uIL(M);
fKe.test(N)||Wv("invalid_callback");d=Cdz(d);R=R&&R.length?Cdz(R):null;var X=function(A){return encodeURIComponent(A).replace(/%2C/g,",")};
return[encodeURIComponent(M.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",X(M.version),"/m=",X(d),R?"/exm="+X(R):"","/rt=j/sv=1/d=1/ed=1",M.activeMods?"/am="+X(M.activeMods):"",M.resourceSig?"/rs="+X(M.resourceSig):"",M.zcms?"/t="+X(M.zcms):"","/cb=",X(N)].join("")},uIL=function(M){M.charAt(0)!=="/"&&Wv("relative path");
for(var d=M.substring(1).split("/"),N=[];d.length;){M=d.shift();if(!M.length||M.indexOf(".")==0)Wv("empty/relative directory");else if(M.indexOf("=")>0){d.unshift(M);break}N.push(M)}M={};for(var R=0,X=d.length;R<X;++R){var A=d[R].split("="),l=decodeURIComponent(A[0]),k=decodeURIComponent(A[1]);A.length==2&&l&&k&&(M[l]=M[l]||k)}d="/"+N.join("/");Huo.test(d)||Wv("invalid_prefix");N=0;for(R=nTV.length;N<R;++N)nTV[N].test(d)&&Wv("invalid_prefix");N=YoI(M,"k",!0);R=YoI(M,"am");X=YoI(M,"rs");M=YoI(M,"t");
return{pathPrefix:d,version:N,activeMods:R,resourceSig:X,zcms:M}},Cdz=function(M){for(var d=[],N=0,R=M.length;N<R;++N){var X=M[N].replace(/\./g,"_").replace(/-/g,"_");
LFe.test(X)&&d.push(X)}return d.join(",")},YoI=function(M,d,N){M=M[d];
!M&&N&&Wv("missing: "+d);if(M){if(iuo.test(M))return M;Wv("invalid: "+d)}return null},aKJ=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,GTt=/\/cb=/g,t9L=/\/\//g;
buz.m=function(M,d,N,R){(M=M[0])||Wv("missing_hint");return"https://apis.google.com"+xFL(M,d,N,R)};
var Zug=decodeURI("%73cript"),ETz=/^[-+_0-9\/A-Za-z]+={0,2}$/,Mxt=function(M,d){for(var N=[],R=0;R<M.length;++R){var X=M[R],A;if(A=X){a:{for(A=0;A<d.length;A++)if(d[A]===X)break a;A=-1}A=A<0}A&&N.push(X)}return N},dVt=function(){var M=DV.nonce;
return M!==void 0?M&&M===String(M)&&M.match(ETz)?M:DV.nonce=null:$5.querySelector?(M=$5.querySelector("script[nonce]"))?(M=M.nonce||M.getAttribute("nonce")||"",M&&M===String(M)&&M.match(ETz)?DV.nonce=M:DV.nonce=null):null:null},XyJ=function(M){if($5.readyState!="loading")NKL(M);
else{var d=dVt(),N="";d!==null&&(N=' nonce="'+d+'"');M="<"+Zug+' src="'+encodeURI(M)+'"'+N+"></"+Zug+">";$5.write(R$I?R$I.createHTML(M):M)}},NKL=function(M){var d=$5.createElement(Zug);
d.setAttribute("src",R$I?R$I.createScriptURL(M):M);M=dVt();M!==null&&d.setAttribute("nonce",M);d.async="true";(M=$5.getElementsByTagName(Zug)[0])?M.parentNode.insertBefore(d,M):($5.head||$5.body||$5.documentElement).appendChild(d)},AAt=function(M,d,N){FIm(function(){var R=d===s4g()?Bv(T_,"_",k5()):k5();
R=Bv(oTz(d),"_",R);M(R)},N)},jtp=function(M,d){var N=d||{};
typeof d=="function"&&(N={},N.callback=d);var R=(d=N)&&d._c;if(R)for(var X=0;X<eM3.length;X++){var A=eM3[X][0],l=eM3[X][1];l&&Object.prototype.hasOwnProperty.call(R,A)&&l(R[A],M,d)}d=[];M?d=M.split(":"):N.features&&(d=N.features);if(!(M=N.h)&&(M=s4g(),!M))throw Error("Za");Vxo(d||[],N,M)},Vxo=function(M,d,N){M=j4V(M)||[];
var R=d.callback,X=d.config,A=d.timeout,l=d.ontimeout,k=d.onerror,T=void 0;typeof k=="function"&&(T=k);var W=null,w=!1;if(A&&!l||!A&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";k=Bv(oTz(N),"r",[]).sort();var p=Bv(oTz(N),"L",[]).sort(),m=DV.le||[],I=[].concat(k),O=function(C,U){if(w)return 0;lJ.clearTimeout(W);p.push.apply(p,y);var Fi=((T_||{}).config||{}).update;Fi?Fi(X):X&&Bv(DV,"cu",[]).push(X);if(U){zMd("me0",C,I);try{AAt(U,N,T)}finally{zMd("me1",C,I)}}return 1};
A>0&&(W=lJ.setTimeout(function(){w=!0;l()},A));
var y=Mxt(M,p);if(y.length){y=Mxt(M,k);var c=Bv(DV,"CP",[]),e=c.length;c[e]=function(C){if(!C)return 0;zMd("ml1",y,I);var U=function(Y){c[e]=null;O(y,C)&&PdV(function(){R&&R();Y()})},Fi=function(){var Y=c[e+1];
Y&&Y()};
e>0&&c[e-1]?c[e]=function(){U(Fi)}:U(Fi)};
if(y.length){var t="loaded_"+DV.I++;T_[t]=function(C){c[e](C);T_[t]=null};
M=UFL(N,y,"gapi."+t,k,m);k.push.apply(k,y);zMd("ml0",y,I);d.sync||lJ.___gapisync?XyJ(M):NKL(M)}else c[e](vTV)}else O(y)&&R&&R()},lRI;
var $Vd=null,BKI=_.Np.trustedTypes;if(BKI&&BKI.createPolicy){try{$Vd=BKI.createPolicy("goog#gapi",{createHTML:b16,createScript:b16,createScriptURL:b16})}catch(M){_.Np.console&&_.Np.console.error(M.message)}lRI=$Vd}else lRI=$Vd;var R$I=lRI,FIm=function(M,d){if(DV.hee&&DV.hel>0)try{return M()}catch(N){d&&d(N),DV.hel--,jtp("debug_error",function(){try{window.___jsl.hefn(N)}catch(R){throw N;}})}else try{return M()}catch(N){throw d&&d(N),N;
}},kNz=T_.load;
kNz&&Bv(DV,"ol",[]).push(kNz);T_.load=function(M,d){return FIm(function(){return jtp(M,d)})};var FIv;var TKV=function(M,d){this.serviceId_=M;this.moduleId_=d||null};
TKV.prototype.toString=function(){return this.serviceId_};
TKV.prototype.getModuleId=function(){return this.moduleId_};var Fyi=new TKV("MpJwZc","MpJwZc");var VFA=new _.TU("a"),Aai=function(M,d,N){_.Dj.call(this,M,d);this.node=d;this.kind=N};
_.v(Aai,_.Dj);var DVe=function(){this.JSC$7945_keys_={};this.urlPrefix_="";this.JSC$7945_queryData_={}};
DVe.prototype.toString=function(){var M=this.urlPrefix_+gVL(this),d=_.VO(this.JSC$7945_queryData_),N="";d!=""&&(N="?"+d);return M+N};
var WId=function(M){M=pU(M,"md");return!!M&&M!=="0"},gVL=function(M){var d=[],N=(0,_.gx)(function(R){this.JSC$7945_keys_[R]!==void 0&&d.push(R+"="+this.JSC$7945_keys_[R])},M);
WId(M)?(N("md"),N("k"),N("ck"),N("am"),N("rs"),N("gssmodulesetproto"),N("slk"),N("dti")):(N("sdch"),N("k"),N("ck"),N("am"),N("rt"),"d"in M.JSC$7945_keys_||m8(M,"d","0"),N("d"),N("exm"),N("excm"),(M.JSC$7945_keys_.excm||M.JSC$7945_keys_.exm)&&d.push("ed=1"),N("im"),N("dg"),N("sm"),pU(M,"br")!="1"&&pU(M,"br")!="0"||N("br"),N("br-d"),pU(M,"rb")=="1"&&N("rb"),pU(M,"zs")!=="0"&&N("zs"),wyL(M)!==""&&N("wt"),N("gssmodulesetproto"),N("ujg"),N("sp"),N("rs"),N("cb"),N("ee"),N("slk"),N("dti"),N("m"));return d.join("/")},
pU=function(M,d){return M.JSC$7945_keys_[d]?M.JSC$7945_keys_[d]:null},m8=function(M,d,N){N?M.JSC$7945_keys_[d]=N:delete M.JSC$7945_keys_[d]},pyg=function(M,d){M.urlPrefix_=d},mVt=function(M,d){d&&d.length>0?(d.sort(),m8(M,"exm",d.join(","))):m8(M,"exm",null)},h$t=function(M,d){d&&d.length>0?(d.sort(),m8(M,"excm",d.join(","))):m8(M,"excm",null)},QJV=function(M){return(M=pU(M,"m"))?M.split(","):[]},wyL=function(M){switch(pU(M,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},qlL=function(M,d){var N=Object.keys(d).filter(function(R){return!!Object.keys(d[R]).length}).map(function(R){var X=Object.keys(d[R]);
X.length>1&&X.sort();return R+":"+X.join(",")});
N.sort();m8(M,"ee",N.join(";"))},xVL=function(M){var d=pU(M,"ee");
if(!d)return{};M={};d=_.V(d.split(";"));for(var N=d.next();!N.done;N=d.next()){var R=_.V(N.value.split(":"));N=R.next().value;R=R.next().value;M[N]={};R=_.V(R.split(","));for(var X=R.next();!X.done;X=R.next())M[N][X.value]=!0}return M},IRm=function(M){delete M.JSC$7945_keys_.m;
delete M.JSC$7945_keys_.exm;delete M.JSC$7945_keys_.ed};
DVe.prototype.clone=function(){if(R36){var M=new DVe;M.JSC$7945_keys_=Object.assign({},this.JSC$7945_keys_);M.urlPrefix_=this.urlPrefix_;M.JSC$7945_queryData_=Object.assign({},this.JSC$7945_queryData_);return M}return t8(this.toString())};
var t8=function(M,d){d=d===void 0?!0:d;var N=vVd(M),R=new DVe,X=_.tA(N)[5];_.wF.forEach(OFI,function(l){var k=X.match("/"+l+"=([^/]+)");k&&m8(R,l,k[1])});
var A="";A=M.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";pyg(R,M.substr(0,M.indexOf(A)+A.length));if(!d)return R;(M=_.tA(N)[6]||null)&&kht(M,function(l,k){R.JSC$7945_queryData_[l]=k});
return R},UVN=function(M){M=_.FO(vVd(M));
return M===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(M)?/\/k=/.test(M):!1},vVd=function(M){return M.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?M.substr(65):M},OFI={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",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},jJV=RegExp("^loaded_(g|h)?[_\\d]+$");_.hW=function(M){this.JSC$7957_id_=M;this.opts={}};
_.hW.prototype.JSC$7959_setLabel=function(M){this.label_=M||void 0;return this};
_.hW.prototype.addUploadMetadata=function(M,d){var N=this.opts.data||{};N[M]=d;this.opts.data=N;return this};
var sJL=function(M){var d=_.wF.filter(M.opts,function(N){return N!==null});
d=_.wF.isEmpty(d)?null:d;M=[M.JSC$7957_id_,M.label_,d];d=pjj(M);return M=M.slice(0,d+1)};
_.hW.prototype.toString=function(){var M=sJL(this);return"("+_.mi(M,function(d){return JSON.stringify(d)}).join(",")+")"};
_.hW.prototype.getId=function(){return this.JSC$7957_id_};
_.hW.prototype.getOptions=function(){return _.wF.clone(this.opts)};var QC=function(){_.hW.call(this,"image-search")};
_.v(QC,_.hW);QC.prototype.setSize=function(M){this.opts.imgsz=M;return this};
QC.prototype.JSC$7959_setLabel=function(M){_.hW.prototype.JSC$7959_setLabel.call(this,M);return this};
QC.prototype.addUploadMetadata=function(M,d){_.hW.prototype.addUploadMetadata.call(this,M,d);return this};var q2=function(){_.hW.call(this,"maps")};
_.v(q2,_.hW);q2.prototype.setZoom=function(M){this.opts.zoom=M;return this};
q2.prototype.JSC$7959_setLabel=function(M){_.hW.prototype.JSC$7959_setLabel.call(this,M);return this};
q2.prototype.addUploadMetadata=function(M,d){_.hW.prototype.addUploadMetadata.call(this,M,d);return this};_.It=function(){_.hW.call(this,"photos")};
_.v(_.It,_.hW);_.It.prototype.JSC$7959_setLabel=function(M){_.hW.prototype.JSC$7959_setLabel.call(this,M);return this};
_.It.prototype.addUploadMetadata=function(M,d){_.hW.prototype.addUploadMetadata.call(this,M,d);return this};var vv=function(){_.hW.call(this,"url")};
_.v(vv,_.hW);var Psd=function(){var M=new vv;M.opts.type="video";M.opts.site="youtube.com";return M};
vv.prototype.JSC$7959_setLabel=function(M){_.hW.prototype.JSC$7959_setLabel.call(this,M);return this};
vv.prototype.addUploadMetadata=function(M,d){_.hW.prototype.addUploadMetadata.call(this,M,d);return this};var OK=function(){_.hW.call(this,"video-search")};
_.v(OK,_.hW);var oVd=function(){var M=new OK;M.opts.site="youtube.com";return M};
OK.prototype.JSC$7959_setLabel=function(M){_.hW.prototype.JSC$7959_setLabel.call(this,M);return this};
OK.prototype.addUploadMetadata=function(M,d){_.hW.prototype.addUploadMetadata.call(this,M,d);return this};var rAo=function(){_.hW.call(this,"web")};
_.v(rAo,_.hW);rAo.prototype.JSC$7959_setLabel=function(M){_.hW.prototype.JSC$7959_setLabel.call(this,M);return this};
rAo.prototype.addUploadMetadata=function(M,d){_.hW.prototype.addUploadMetadata.call(this,M,d);return this};var j8=function(){this.items_=[];this.opts={}},KIm=function(M){switch(M){case "image-search":return new QC;
case "maps":return new q2;case "photos":return new _.It;case "url":return new vv;case "video-search":return new OK;case "web":return new rAo}return new _.hW(M)};
j8.prototype.addView=function(M){this.items_.push(typeof M==="string"?KIm(M):M);return this};
var yAm=function(M){return"("+_.mi(M.items_,function(d){return d.toString()}).join(",")+")"};
j8.prototype.toString=function(){return yAm(this)};
j8.prototype.getViews=function(M,d){d=d===void 0?[]:d;for(var N=this.items_,R=0;R<N.length;R++){var X=N[R];X instanceof j8?X.getViews(M,d):X.getId()==M&&d.push(X)}return d};
j8.prototype.getOptions=function(){return _.wF.clone(this.opts)};var Os=function(M){this.basePickerUrl_=M||"https://docs.google.com/picker";this.nav_=new j8};
Os.prototype.nav_=null;Os.prototype.addView=function(M){this.nav_.addView(M);return this};
Os.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Os.prototype.getViews=function(M){return this.nav_.getViews(M)};
_.JAV=function(M,d){M.callback_=d;return M};var cAJ=new Map;cAJ.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");cAJ.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");cAJ.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Sld=new Set;Sld.add("application/vnd.google-apps.kix");Sld.add("application/vnd.google-apps.ritz");Sld.add("application/vnd.google-apps.punch");var UVI=function(M,d,N){var R=N&&_.rP(N,1);N=z$t(N);var X=M[0].getId();switch(_.K5(X,2)){case 13:return bFz(M,d,R,N);case 3:return e$L(M,d,R,N);case 10:return HFV(M,d,R,N);case 27:return HFV(M,d,R,N);case 12:return nV3(M,d);case 2:return iFJ(M,d,R,N);case 5:return fRd(M,d,R,N);case 9:return LII(M,d,R,N);case 6:return txz(M,d,R,N);case 25:return GNL(M,d,R,N);case 1:return _.p5(M[0],rjz,26)?aRt(M,d,R,N):HFV(M,d,R,N);default:return{}}},txz=function(M,d,N,R){M=M.map(function(X){return{id:X.getId().getId(),
serviceId:"youtube",name:X.getName(),description:_.rP(X,3),type:sK(X),lastEditedUtc:_.oZL(_.uk(X,_.eB,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:X.getUrl(),embedUrl:_.rP(X,13),thumbnails:Pv(xs(X))}});
return{action:d,docs:M,viewToken:R,view:N||"youtube",v2Translated:!0}},iFJ=function(M,d,N,R){var X=M.map(function(A){var l=A.getId().getId(),k=_.rP(A,7),T=A.getName(),W=sK(A),w=_.oZL(_.uk(A,_.eB,12)).getTime(),p=A.getUrl(),m=Number(uRZ(A)),I=_.rP(A,3),O=_.rP(A,11),y=Pv(xs(A));
var c=_.uk(A,Ys,21);c=_.jS(c,1);var e=_.uk(A,Ys,21);e=_.rP(e,10);var t=_.rP(A,13);var C=_.uk(A,Ys,21);C=_.jS(C,9);var U=_.uk(A,Ys,21);U=_.rP(U,11);l={id:l,serviceId:"docs",mimeType:k,name:T,type:W,lastEditedUtc:w,url:p,sizeBytes:m,description:I,iconUrl:O,thumbnails:y,isShared:c,downloadUrl:e,embedUrl:t,copyable:C,resourceKey:U};k=_.uk(A,Ys,21);_.jS(k,12)&&(l.uploadState="success",l.isNew=!0);k=_.uk(A,Ys,21);_.p5(k,U8,3)&&(A=_.uk(A,Ys,21),A=_.uk(A,U8,3),_.p5(A,Ge,2)&&(k=IW(A.getDuration().getSeconds()),
T=A.getDuration(),T=_.Cy(T,2),l.duration=k+T/1E9),l.aspectRatio=A.getAspectRatio());return l});
return{action:d,docs:X,viewToken:R,view:N||"all",extraUserInputs:uoV(M),v2Translated:!0}},fRd=function(M,d,N,R){M=M.map(function(X){var A=_.uk(X,HKC,15);
A=_.uk(A,ax,1);lv(X,10,ax,A);return{id:X.getId().getId(),serviceId:"web",mimeType:_.rP(X,7),name:X.getName(),type:sK(X),url:X.getUrl(),description:_.rP(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Pv(xs(X))}});
return{action:d,docs:M,viewToken:R,view:N||"image-search",v2Translated:!0}},LII=function(M,d,N,R){M=M.map(function(X){return{serviceId:"url",
name:xs(X)[0].getUrl().split("/").pop(),type:sK(X),mimeType:_.rP(X,7),url:X.getUrl(),description:_.rP(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Pv(xs(X))}});
return{action:d,docs:M,viewToken:R,view:N||"url",v2Translated:!0}},aRt=function(M,d,N,R){M=M.map(function(X){return{id:X.getId().getId(),
serviceId:"picasa",name:X.getName(),type:sK(X),description:_.rP(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Pv(xs(X))}});
return{action:d,docs:M,viewToken:R,view:N||"webcam",v2Translated:!0}},HFV=function(M,d,N,R){return{action:d,
docs:M.map(CsI),viewToken:R,view:xVC(N||"upload",M),extraUserInputs:uoV(M),v2Translated:!0}},xVC=function(M,d){return d.some(function(N){var R;
return((R=_.uk(N,uU,30))==null?void 0:_.K5(R,3))===9})?M+"/gmailphotos":M},e$L=function(M,d,N,R){var X=M.map(function(A){var l={id:A.getId().getId(),
serviceId:"picasa",mimeType:_.rP(A,7),name:A.getName(),type:sK(A),lastEditedUtc:_.oZL(_.uk(A,_.eB,12)).getTime(),url:A.getUrl(),sizeBytes:Number(uRZ(A)),description:_.rP(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Pv(xs(A)),mediaKey:A.getId().getId(),parentId:_.rP(A,4)},k,T=(k=_.uk(A,Jjd,18))==null?void 0:_.uk(k,yjz,3);T&&(l.latitude=oX(T,1),l.longitude=oX(T,2));var W;A=(W=_.uk(A,Jjd,18))==null?void 0:s1(W,6);W=A!=null?IW(A):void 0;W&&(l.version=
W);return l});
return{action:d,docs:X,viewToken:R,view:N||"photos",extraUserInputs:uoV(M),v2Translated:!0}},bFz=function(M,d,N,R){M=M.map(function(X){return{id:X.getId().getId(),
serviceId:"et",name:xs(X)[0].getUrl().split("/").pop(),description:_.rP(X,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Pv(xs(X),"etjpg")}});
return{action:d,docs:M,viewToken:R,view:N||"et",v2Translated:!0}},GNL=function(M,d,N,R){M=M.map(function(X){var A=X.getId().getId(),l=R["2"];
return{id:A,serviceId:l.type!=="gmail_themes"&&l.parent==="6226252643674576769"?"picasa":"static_themes",name:X.getName(),mimeType:_.rP(X,7),type:sK(X),description:_.rP(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:X.getUrl(),embedUrl:X.getUrl(),thumbnails:Pv(xs(X))}});
return{action:d,docs:M,viewToken:R,view:N||"photos",v2Translated:!0}},nV3=function(M,d){M=M.map(function(N){var R=_.uk(N,K1J,27);
R=_.kZ(R,1,_.zb,_.uC())[0];return{id:N.getId().getId(),serviceId:"contacts",mimeType:_.rP(N,7),name:N.getName(),description:_.rP(N,3),url:"mailto:"+R,thumbnail:[{url:_.rP(N,11)}],email:R}});
return{action:d,docs:M,view:"contacts",v2Translated:!0}},z$t=function(M){if(!M)return{};
var d=_.rP(M,3);d=d&&JSON.parse(d)||{};return{0:_.rP(M,1),1:_.rP(M,2),2:d}},Pv=function(M,d){d=d===void 0?"":d;
if(!M.length)return null;d=="etjpg"&&(M=M.filter(function(N){return N.getUrl().includes("w1200-h300")}));
return M.map(function(N){return{url:N.getUrl(),height:N.getHeight(),width:N.getWidth(),type:d}})},uoV=function(M){return{isAttachment:M.some(function(d){return _.jS(d,31)})}},CsI=function(M){var d,N={id:(d=M.getId())==null?void 0:d.getId(),
serviceId:YlV(M),mimeType:_.rP(M,7),name:M.getName(),type:sK(M),sizeBytes:Number(uRZ(M)),description:_.rP(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Pv(xs(M)),isNew:!0};if(d=_.uk(M,uU,30)){N.dataUrl=_.rP(d,1)||null;a:{var R=_.uk(M,uU,30);switch(_.K5(R,3)){case 9:R=_.c_(R,bKV,2,Ce);R={remoteRefs:R&&_.rP(R,1)};break a;case 10:case 15:R=_.c_(R,z6V,4,Ce);var X=xs(M);R={photo_id:R&&_.rP(R,1),media_key:M.getId().getId(),media_type:_.K5(M,6)===1?1:2,image_url:X&&
X[0].getUrl(),width:X&&String(X[0].getWidth()),height:X&&String(X[0].getHeight())};break a}R=null}N.uploadMetadata=R;N.uploadId=_.rP(d,9)||null;N.uploadState=ZFg(d)||null}(R=d&&_.c_(d,z6V,4,Ce))&&(N.id=_.rP(R,1));(R=d&&_.c_(d,e6e,5,Ce))&&(N.contentId=_.rP(R,1));(R=d&&_.c_(d,cjL,7,Ce))&&(N.contentId=_.rP(R,1));(R=d&&_.c_(d,SAm,6,Ce))&&(N.contentId=_.rP(R,1));(d==null?void 0:_.K5(d,3))===1&&(N.mediaKey=M.getId().getId());return N},YlV=function(M){var d;
switch(((d=_.uk(M,uU,30))==null?void 0:_.K5(d,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},sK=function(M){switch(_.K5(M,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.rP(M,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},ZFg=function(M){switch(M==null?void 0:_.K5(M,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var N2t,EVo,MwL,dBL;_.ot=function(M,d){var N=d||{};d=N.document||document;var R=_.XC(M).toString(),X=(new qI(d)).createElement("SCRIPT"),A={script_:X,timeout_:void 0},l=new f2(EVo,A),k=null,T=N.timeout!=null?N.timeout:5E3;T>0&&(k=window.setTimeout(function(){MwL(X,!0);l.errback(new dBL(1,"Timeout reached for loading script "+R))},T),A.timeout_=k);
X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||(MwL(X,N.cleanupWhenDone||!1,k),l.callback(null))};
X.onerror=function(){MwL(X,!0,k);l.errback(new dBL(0,"Error while loading script "+R))};
A=N.attributes||{};_.wF.extend(A,{type:"text/javascript",charset:"UTF-8"});m$t(X,A);_.Sd(X,M);N2t(d).appendChild(X);return l};
N2t=function(M){var d=$a("HEAD",M);return d&&d.length!==0?d[0]:M.documentElement};
EVo=function(){if(this&&this.script_){var M=this.script_;M&&M.tagName=="SCRIPT"&&MwL(M,!0,this.timeout_)}};
MwL=function(M,d,N){N!=null&&_.Np.clearTimeout(N);M.onload=function(){};
M.onerror=function(){};
M.onreadystatechange=function(){};
d&&window.setTimeout(function(){_.l_(M)},0)};
dBL=function(M,d){var N="Jsloader error (code #"+M+")";d&&(N+=": "+d);_.Mp.call(this,N);this.code=M};
_.RX(dBL,_.Mp);var Rat=_.a1(["https://apis.google.com/js/api.js"]),XJC=_.u6(Rat),lsg=function(M,d){var N=!1,R=FDo(M,d).then(function(A){N=!0;return A}),X=_.S_V(5E3).then(function(){return N?FDo(M,d):Amg(d).then(function(A){return Vwd(A,M)})});
return Iqz([R,X])},FDo=function(M,d){return $BC(d).then(function(N){return Vwd(N,M)})},Vwd=function(M,d){var N=_.AL(d,"gapi.")?d.slice(5):d;
return M[N]?_.RD(M[N]):new _.Xy(function(R,X){var A=vX(function(){X(Error("bb"))},3E4);
M.load(d,{callback:function(){_.Np.clearTimeout(A);R(M[N])},
onerror:function(l){_.Np.clearTimeout(A);X(l)}})})},$BC=function(M){return M.gapi&&M.gapi.load?_.RD(M.gapi):Amg(M)},Amg=function(M){return _.ot(XJC,{document:M.document}).then(function(){return M.gapi})},B2z=function(){};
B2z.prototype.load=function(M,d){d=d===void 0?window:d;var N=Date.now();return lsg(M,d).then(function(R){var X=Date.now();return{library:R,loadStartMs:N,loadEndMs:X}},function(R){throw R instanceof Error?R:Error(String(R));
})};var mVA=function(){_.DL.call(this);this.gapiLoader_=new B2z;this.origin_=null;this.gapiPickerIframeResolver_=_.KO();this.gapiIframesResolver_=_.KO();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.v(mVA,_.DL);var kse=function(M,d){var N=_.cy("gapi.iframes",d);return N?(M=Date.now(),_.RD({library:N,loadStartMs:M,loadEndMs:M})):M.gapiLoader_.load("gapi.iframes",d)},T23=function(M,d,N,R,X,A){var l=!1;
l=l===void 0?!1:l;kse(M,QZ(d.ownerDocument)).then(function(k){var T=k.library;M.gapiIframesResolver_.resolve(T);k=M.gapiPickerIframeResolver_;var W=k.resolve,w=l;w=w===void 0?!1:w;var p={};p["host-message-handler"]=N;M.hostMessageHandlerInternal_=p;var m=_.Kk(R);m=_.Kk(m);m=_.Y9(_.x9(_.C2(new _.iX,m.scheme_),m.JSC$7917_domain_),m.JSC$7917_port_).toString();M.origin_=m;m=(new ylC).setUrl(R);m.JSC$7932_obj_.where=d;m.JSC$7932_obj_.allowPost=w;m.JSC$7932_obj_.messageHandlers=p;w=_.cy("makeWhiteListIframesFilter",
T)([M.origin_]);m.JSC$7932_obj_.messageHandlersFilter=w;X!=null&&m.setId(X);A!=null&&(m.JSC$7932_obj_.rpctoken=A);w=KF3(m);w.JSC$7929_obj_.style={display:"block","min-width":"100%",width:"1px"};w.JSC$7929_obj_.height="100%";KF3(m).value().allow="camera 'src' "+M.origin_;T=T.getContext().openChild(m.value());W.call(k,T)},function(k){M.gapiIframesResolver_.reject(k);
M.gapiPickerIframeResolver_.reject(k)});
return M.gapiPickerIframeResolver_.promise},DBe=function(M,d){return _.qc([M.gapiIframesResolver_.promise,
M.gapiPickerIframeResolver_.promise]).then(function(N){var R=_.V(N);N=R.next().value;return(R=R.next().value)?R.send("picker-message-handler",d,void 0,_.cy("makeWhiteListIframesFilter",N)([M.origin_])):_.cl(Error("cb"))})};
mVA.prototype.disposeInternal=function(){gYV(this);_.DL.prototype.disposeInternal.call(this)};
var gYV=function(M){M.gapiPickerIframeResolver_.promise.then(function(d){d&&(d.unregister("host-message-handler"),delete M.hostMessageHandlerInternal_["host-message-handler"])})};var WDI=function(){this.JSC$8019_nextId=0};var pJo=function(M,d){switch(M.action){case "select-contacts":M=wJL(M.contacts);break;case "visibility":M=M.visible;var N=new E8;M=_.z7(N,1,7).setVisible(M);N={};N["iframe-command"]=M.serialize();M=N;break;default:M=null}return M?DBe(d,M):_.RD()},wJL=function(M){if(!M||M.length==0)return null;
var d=new E8;_.z7(d,1,11);var N=new WDI;M.forEach(function(R){if(R.email){var X=new v_;X=_.U$(X,2,R.name?R.name:R.email);var A=new K1J;R=_.Vi6(A,1,_.cP,R.email,_.zb);R=_.ZG(X,27,R);X=R.setId;A=(new tM).setId(":"+(N.JSC$8019_nextId++).toString(36));A=_.z7(A,2,12);R=X.call(R,A)}else R=null;R&&lv(d,7,v_,R)});
M={};M["iframe-command"]=d.serialize();return M};_.mBo=function(){if($ui){var M=/Windows NT ([0-9.]+)/;return(M=M.exec(_.gZ()))?M[1]:"0"}return _.lri?(M=/1[0|1][_.][0-9_.]+/,(M=M.exec(_.gZ()))?M[0].replace(/_/g,"."):"10"):$2L?(M=/Android\s+([^\);]+)(\)|;)/,(M=M.exec(_.gZ()))?M[1]:""):kkS||TSS||Dui?(M=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(M=M.exec(_.gZ()))?M[1].replace(/_/g,"."):""):""}();var rG;rG=function(M){return(M=M.exec(_.gZ()))?M[1]:""};
_.haV=function(){if(_.kh)return rG(/Firefox\/([0-9.]+)/);if(_.lb||nE||Fhp)return _.QoZ;if(_.T7){if(_.yq()||_.Dp6()){var M=rG(/CriOS\/([0-9.]+)/);if(M)return M}return rG(/Chrome\/([0-9.]+)/)}if(_.PXS&&!_.yq())return rG(/Version\/([0-9.]+)/);if(OLZ||jnZ){if(M=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.gZ()))return M[1]+"."+M[2]}else if(OMq)return(M=rG(/Android\s+([0-9.]+)/))?M:rG(/Version\/([0-9.]+)/);return""}();var Qco=function(){};
_.dP(Qco);Qco.prototype.nextId_=0;_.s$=function(M){return":"+(M.nextId_++).toString(36)};var KU=function(M){_.mk.call(this);this.JSC$8027_dom_=M||Aw();this.JSC$8027_id_=null;this.inDocument_=!1;this.JSC$8027_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.RX(KU,_.mk);KU.prototype.idGenerator_=Qco.getInstance();KU.prototype.getId=function(){return this.JSC$8027_id_||(this.JSC$8027_id_=_.s$(this.idGenerator_))};
KU.prototype.setId=function(M){this.parent_&&this.parent_.childIndex_&&(_.wF.remove(this.parent_.childIndex_,this.JSC$8027_id_),_.wF.add(this.parent_.childIndex_,M,this));this.JSC$8027_id_=M};
KU.prototype.getElement=function(){return this.JSC$8027_element_};
var yC=function(M){M.googUiComponentHandler_||(M.googUiComponentHandler_=new _.a_(M));return M.googUiComponentHandler_},qdI=function(M,d){if(M==d)throw Error("db");
var N;if(N=d&&M.parent_&&M.JSC$8027_id_){N=M.parent_;var R=M.JSC$8027_id_;N=N.childIndex_&&R?_.wF.get(N.childIndex_,R)||null:null}if(N&&M.parent_!=d)throw Error("db");M.parent_=d;KU.superClass_.setParentEventTarget.call(M,d)};
KU.prototype.setParentEventTarget=function(M){if(this.parent_&&this.parent_!=M)throw Error("eb");KU.superClass_.setParentEventTarget.call(this,M)};
KU.prototype.JSC$8029_createDom=function(){this.JSC$8027_element_=this.JSC$8027_dom_.createElement("DIV")};
KU.prototype.render=function(M){Is3(this,M)};
var Is3=function(M,d,N){if(M.inDocument_)throw Error("fb");M.JSC$8027_element_||M.JSC$8029_createDom();d?d.insertBefore(M.JSC$8027_element_,N||null):M.JSC$8027_dom_.JSC$7214_document_.body.appendChild(M.JSC$8027_element_);M.parent_&&!M.parent_.inDocument_||M.enterDocument()};
_.F=KU.prototype;_.F.decorate=function(M){if(this.inDocument_)throw Error("fb");if(M&&this.canDecorate(M)){this.wasDecorated_=!0;var d=_.qy(M);this.JSC$8027_dom_&&this.JSC$8027_dom_.JSC$7214_document_==d||(this.JSC$8027_dom_=Aw(M));this.decorateInternal(M);this.enterDocument()}else throw Error("gb");};
_.F.canDecorate=function(){return!0};
_.F.decorateInternal=function(M){this.JSC$8027_element_=M};
_.F.enterDocument=function(){this.inDocument_=!0;vYz(this,function(M){!M.inDocument_&&M.getElement()&&M.enterDocument()})};
_.F.exitDocument=function(){vYz(this,function(M){M.inDocument_&&M.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.F.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);vYz(this,function(M){M.dispose()});
!this.wasDecorated_&&this.JSC$8027_element_&&_.l_(this.JSC$8027_element_);this.parent_=this.model_=this.JSC$8027_element_=this.childIndex_=this.children_=null;KU.superClass_.disposeInternal.call(this)};
_.F.getModel=function(){return this.model_};
_.F.addChild=function(M,d){var N=this.children_?this.children_.length:0;if(M.inDocument_&&(d||!this.inDocument_))throw Error("fb");if(N<0||N>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);M.parent_==this?(_.wF.set(this.childIndex_,M.getId(),M),_.aN(this.children_,M)):_.wF.add(this.childIndex_,M.getId(),M);qdI(M,this);_.QNN(this.children_,N,0,M);M.inDocument_&&this.inDocument_&&M.parent_==this?(d=this.getContentElement(),
(d.childNodes[N]||null)!=M.getElement()&&(M.getElement().parentElement==d&&d.removeChild(M.getElement()),N=d.childNodes[N]||null,d.insertBefore(M.getElement(),N))):d?(this.JSC$8027_element_||this.JSC$8029_createDom(),N=this.children_?this.children_[N+1]||null:null,Is3(M,this.getContentElement(),N?N.JSC$8027_element_:null)):this.inDocument_&&!M.inDocument_&&M.JSC$8027_element_&&M.JSC$8027_element_.parentNode&&M.JSC$8027_element_.parentNode.nodeType==1&&M.enterDocument()};
_.F.getContentElement=function(){return this.JSC$8027_element_};
var vYz=function(M,d){M.children_&&M.children_.forEach(d,void 0)};
KU.prototype.removeChild=function(M,d){if(M){var N=typeof M==="string"?M:M.getId();M=this.childIndex_&&N?_.wF.get(this.childIndex_,N)||null:null;N&&M&&(_.wF.remove(this.childIndex_,N),_.aN(this.children_,M),d&&(M.exitDocument(),M.JSC$8027_element_&&_.l_(M.JSC$8027_element_)),qdI(M,null))}if(!M)throw Error("ib");return M};_.RX($VZ,lRN);_.RX(BKN,lRN);var OE3;var jcC=function(M,d){d?M.setAttribute("role",d):M.removeAttribute("role")},JW=function(M,d,N){Array.isArray(N)&&(N=N.join(" "));
var R="aria-"+d;N===""||N==void 0?(OE3||(N={},OE3=(N.atomic=!1,N.autocomplete="none",N.dropeffect="none",N.haspopup=!1,N.live="off",N.multiline=!1,N.multiselectable=!1,N.orientation="vertical",N.readonly=!1,N.relevant="additions text",N.required=!1,N.sort="none",N.busy=!1,N.disabled=!1,N.hidden=!1,N.invalid="false",N)),N=OE3,d in N?M.setAttribute(R,N[d]):M.removeAttribute(R)):M.setAttribute(R,N)};var scz;_.cv=function(M,d,N){_.mk.call(this);this.target=M;this.handle=d||M;this.limits=N||new JM(NaN,NaN,NaN,NaN);this.JSC$8032_document_=_.qy(M);this.JSC$8032_eventHandler_=new _.a_(this);_.RW(this,this.JSC$8032_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;_.lI(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=scz};
_.RX(_.cv,_.mk);scz=_.Np.document&&_.Np.document.documentElement&&!!_.Np.document.documentElement.setCapture&&!!_.Np.document.releaseCapture;_.PkI=function(M,d){M.hysteresisDistanceSquared_=Math.pow(d,2)};
_.F=_.cv.prototype;_.F.setEnabled=function(M){this.enabled_=M};
_.F.disposeInternal=function(){_.cv.superClass_.disposeInternal.call(this);_.p2(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8032_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8032_document_.releaseCapture();this.handle=this.target=null};
_.F.startDrag=function(M){var d=M.type=="mousedown";if(!this.enabled_||this.dragging_||d&&(M.event_.button!=0||_.lri&&M.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new S8("start",this,M.clientX,M.clientY,M)))this.dragging_=!0,d&&M.preventDefault();else return;else d&&M.preventDefault();d=this.JSC$8032_document_;var N=d.documentElement,R=!this.useSetCapture_;this.JSC$8032_eventHandler_.listen(d,["touchmove","mousemove"],this.handleMove_,
{capture:R,passive:!1});this.JSC$8032_eventHandler_.listen(d,["touchend","mouseup"],this.endDrag,R);this.useSetCapture_?(N.setCapture(!1),this.JSC$8032_eventHandler_.listen(N,"losecapture",this.endDrag)):this.JSC$8032_eventHandler_.listen(QZ(d),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8032_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,R);this.clientX=this.startX=M.clientX;this.clientY=this.startY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Ft(Aw(this.JSC$8032_document_))}};
_.F.endDrag=function(M,d){this.JSC$8032_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8032_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new S8("end",this,M.clientX,M.clientY,M,oYd(this,this.deltaX),rmd(this,this.deltaY),d||M.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.F.handleMove_=function(M){if(this.enabled_){var d=M.clientX-this.clientX,N=M.clientY-this.clientY;this.clientX=M.clientX;this.clientY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;if(!this.dragging_){var R=this.startX-this.clientX,X=this.startY-this.clientY;if(R*R+X*X>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new S8("start",this,M.clientX,M.clientY,M)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(M);return}}N=KDm(this,d,N);d=N.x;N=N.y;this.dragging_&&this.dispatchEvent(new S8("beforedrag",
this,M.clientX,M.clientY,M,d,N))&&(yme(this,M,d,N),M.preventDefault())}};
var KDm=function(M,d,N){var R=Ft(Aw(M.JSC$8032_document_));d+=R.x-M.pageScroll.x;N+=R.y-M.pageScroll.y;M.pageScroll=R;M.deltaX+=d;M.deltaY+=N;return new _.hw(oYd(M,M.deltaX),rmd(M,M.deltaY))};
_.cv.prototype.onScroll_=function(M){var d=KDm(this,0,0);M.clientX=this.clientX;M.clientY=this.clientY;yme(this,M,d.x,d.y)};
var yme=function(M,d,N,R){M.target.style.left=N+"px";M.target.style.top=R+"px";M.dispatchEvent(new S8("drag",M,d.clientX,d.clientY,d,N,R))},oYd=function(M,d){var N=M.limits;
M=isNaN(N.left)?null:N.left;N=isNaN(N.width)?0:N.width;return Math.min(M!=null?M+N:Infinity,Math.max(M!=null?M:-Infinity,d))},rmd=function(M,d){var N=M.limits;
M=isNaN(N.top)?null:N.top;N=isNaN(N.height)?0:N.height;return Math.min(M!=null?M+N:Infinity,Math.max(M!=null?M:-Infinity,d))};
_.cv.prototype.isDragging=function(){return this.dragging_};
var S8=function(M,d,N,R,X,A,l){_.Dj.call(this,M);this.clientX=N;this.clientY=R;this.browserEvent=X;this.left=A!==void 0?A:d.deltaX;this.top=l!==void 0?l:d.deltaY};
_.RX(S8,_.Dj);var z_=function(M){this.JSC$8039_map_=new Map;var d=arguments.length;if(d>1){if(d%2)throw Error("oa");for(var N=0;N<d;N+=2)this.set(arguments[N],arguments[N+1])}else M&&this.addAll(M)};
_.F=z_.prototype;_.F.getCount=function(){return this.JSC$8039_map_.size};
_.F.getValues=function(){return Array.from(this.JSC$8039_map_.values())};
_.F.getKeys=function(){return Array.from(this.JSC$8039_map_.keys())};
_.F.containsKey=function(M){return this.JSC$8039_map_.has(M)};
_.F.containsValue=function(M){return this.getValues().some(function(d){return d==M})};
_.F.equals=function(M,d){var N=this;d=d===void 0?function(R,X){return R===X}:d;
return this===M?!0:this.JSC$8039_map_.size!=M.getCount()?!1:this.getKeys().every(function(R){return d(N.JSC$8039_map_.get(R),M.get(R))})};
_.F.isEmpty=function(){return this.JSC$8039_map_.size==0};
_.F.clear=function(){this.JSC$8039_map_.clear()};
_.F.remove=function(M){return this.JSC$8039_map_.delete(M)};
_.F.get=function(M,d){return this.JSC$8039_map_.has(M)?this.JSC$8039_map_.get(M):d};
_.F.set=function(M,d){this.JSC$8039_map_.set(M,d);return this};
_.F.addAll=function(M){if(M instanceof z_){M=_.V(M.JSC$8039_map_);for(var d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;this.JSC$8039_map_.set(d,N)}}else if(M)for(M=_.V(Object.entries(M)),d=M.next();!d.done;d=M.next())N=_.V(d.value),d=N.next().value,N=N.next().value,this.JSC$8039_map_.set(d,N)};
_.F.forEach=function(M,d){var N=this;d=d===void 0?this:d;this.JSC$8039_map_.forEach(function(R,X){return M.call(d,R,X,N)})};
_.F.clone=function(){return new z_(this)};(function(){for(var M=["ms","moz","webkit","o"],d,N=0;d=M[N]&&!_.Np.requestAnimationFrame;++N)_.Np.requestAnimationFrame=_.Np[d+"RequestAnimationFrame"],_.Np.cancelAnimationFrame=_.Np[d+"CancelAnimationFrame"]||_.Np[d+"CancelRequestAnimationFrame"];if(!_.Np.requestAnimationFrame){var R=0;_.Np.requestAnimationFrame=function(X){var A=(new Date).getTime(),l=Math.max(0,16-(A-R));R=A+l;return _.Np.setTimeout(function(){X(A+l)},l)};
_.Np.cancelAnimationFrame||(_.Np.cancelAnimationFrame=function(X){clearTimeout(X)})}})();
var JmL=[[],[]],cmo=0,Sd3=!1,zaC=0,eaJ=function(M,d){var N=zaC++,R={measureTask:{id:N,fn:M.measure,context:d},mutateTask:{id:N,fn:M.mutate,context:d},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(R.args||(R.args=[]),R.args.length=0,R.args.push.apply(R.args,arguments),R.args.push(R.state)):R.args&&R.args.length!=0?(R.args[0]=R.state,R.args.length=1):R.args=[R.state];R.isScheduled||(R.isScheduled=!0,JmL[cmo].push(R));Sd3||(Sd3=!0,window.requestAnimationFrame(bEm))}},bEm=
function(){Sd3=!1;
var M=JmL[cmo],d=M.length;cmo=(cmo+1)%2;for(var N,R=0;R<d;++R){N=M[R];var X=N.measureTask;N.isScheduled=!1;X.fn&&X.fn.apply(X.context,N.args)}for(R=0;R<d;++R)N=M[R],X=N.mutateTask,N.isScheduled=!1,X.fn&&X.fn.apply(X.context,N.args),N.state={};M.length=0};var HEz=_.a1(["about:blank"]),nYI=_.a1(["javascript:undefined"]),iEI=_.u6(HEz);_.XC(iEI);var fsV=_.u6(nYI);_.XC(fsV);var bJ=function(M){_.mk.call(this);this.JSC$8045_element_=M;this.listenKeyIn_=_.lI(this.JSC$8045_element_,"focus",this,!0);this.listenKeyOut_=_.lI(this.JSC$8045_element_,"blur",this,!0)};
_.RX(bJ,_.mk);bJ.prototype.handleEvent=function(M){var d=new _.gy(M.event_);d.type=M.type=="focusin"||M.type=="focus"?"focusin":"focusout";this.dispatchEvent(d)};
bJ.prototype.disposeInternal=function(){bJ.superClass_.disposeInternal.call(this);FQ(this.listenKeyIn_);FQ(this.listenKeyOut_);delete this.JSC$8045_element_};var LDV=function(M,d){this.JSC$8048_element_=M;this.JSC$8048_dom_=d};var e8=function(M,d){KU.call(this,d);this.useIframeMask_=!!M;this.lastFocus_=null;this.resizeBackgroundTask_=eaJ({mutate:this.resizeBackground_},this);eaJ({mutate:this.updateModalAndBackground_},this)};
_.RX(e8,KU);_.F=e8.prototype;_.F.focusHandler_=null;_.F.visible_=!1;_.F.bgEl_=null;_.F.bgIframeEl_=null;_.F.tabCatcherElement_=null;_.F.backwardTabWrapInProgress_=!1;_.F.getCssClass=function(){return"goog-modalpopup"};
_.F.getBackgroundElement=function(){return this.bgEl_};
_.F.JSC$8029_createDom=function(){e8.superClass_.JSC$8029_createDom.call(this);var M=this.getElement(),d=_.Xq(this.getCssClass()).split(" ");n2(M,d);M.tabIndex=0;_.cU(M,!1);twd(this);GsJ(this)};
var twd=function(M){if(M.useIframeMask_&&!M.bgIframeEl_){var d=M.JSC$8027_dom_.JSC$7216_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.s0(d,iEI);M.bgIframeEl_=d;M.bgIframeEl_.className=M.getCssClass()+"-bg";_.cU(M.bgIframeEl_,!1);uYL(M.bgIframeEl_,0)}M.bgEl_||(M.bgEl_=M.JSC$8027_dom_.JSC$7216_createDom("DIV",M.getCssClass()+"-bg"),_.cU(M.bgEl_,!1))},GsJ=function(M){M.tabCatcherElement_||(M.tabCatcherElement_=M.JSC$8027_dom_.createElement("SPAN"),_.cU(M.tabCatcherElement_,
!1),M.tabCatcherElement_.tabIndex=0,M.tabCatcherElement_.style.position="absolute")};
_.F=e8.prototype;_.F.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.F.canDecorate=function(M){return!!M&&M.tagName=="DIV"};
_.F.decorateInternal=function(M){e8.superClass_.decorateInternal.call(this,M);M=_.Xq(this.getCssClass()).split(" ");n2(this.getElement(),M);twd(this);GsJ(this);this.getElement().tabIndex=0;_.cU(this.getElement(),!1)};
_.F.enterDocument=function(){this.bgIframeEl_&&_.ox(this.bgIframeEl_,this.getElement());_.ox(this.bgEl_,this.getElement());e8.superClass_.enterDocument.call(this);_.rl(this.tabCatcherElement_,this.getElement());this.focusHandler_=new bJ(this.JSC$8027_dom_.JSC$7214_document_);yC(this).listen(this.focusHandler_,"focusin",this.onFocus);asV(this,!1)};
_.F.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.tw(this.focusHandler_);e8.superClass_.exitDocument.call(this);_.l_(this.bgIframeEl_);_.l_(this.bgEl_);_.l_(this.tabCatcherElement_)};
_.F.setVisible=function(M){if(M!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&asV(this,M),M){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8027_dom_.JSC$7214_document_.activeElement}catch(X){}this.updateModalAndBackground_();yC(this).listen(this.JSC$8027_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8027_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);UBo(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)XQ(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){yC(this).unlisten(this.JSC$8027_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8027_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)XQ(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var d=this.JSC$8027_dom_,N=d.JSC$7214_document_.body,R=d.JSC$7214_document_.activeElement||N;if(!this.lastFocus_||this.lastFocus_==N){this.lastFocus_=null;break a}(R==N||d.contains(this.getElement(),R))&&this.lastFocus_.focus()}catch(X){}this.lastFocus_=
null}}};
var asV=function(M,d){M.modalAriaVisibilityHelper_||(M.modalAriaVisibilityHelper_=new LDV(M.JSC$8027_element_,M.JSC$8027_dom_));M=M.modalAriaVisibilityHelper_;if(d){M.hiddenElements_||(M.hiddenElements_=[]);d=M.JSC$8048_dom_.getChildren(M.JSC$8048_dom_.JSC$7214_document_.body);for(var N=0;N<d.length;N++){var R=d[N],X;if(X=R!=M.JSC$8048_element_)X=R.getAttribute("aria-hidden"),X=!(X==null||X==void 0?0:String(X));X&&(JW(R,"hidden",!0),M.hiddenElements_.push(R))}}else if(M.hiddenElements_){for(d=0;d<
M.hiddenElements_.length;d++)M.hiddenElements_[d].removeAttribute("aria-hidden");M.hiddenElements_=null}};
e8.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var UBo=function(M,d){M.bgIframeEl_&&_.cU(M.bgIframeEl_,d);M.bgEl_&&_.cU(M.bgEl_,d);_.cU(M.getElement(),d);_.cU(M.tabCatcherElement_,d)};
_.F=e8.prototype;_.F.onShow=function(){this.dispatchEvent("show")};
_.F.onHide=function(){UBo(this,!1);this.dispatchEvent("hide")};
_.F.isVisible=function(){return this.visible_};
_.F.focus=function(){this.focusElement_()};
_.F.resizeBackground_=function(){this.bgIframeEl_&&_.cU(this.bgIframeEl_,!1);this.bgEl_&&_.cU(this.bgEl_,!1);var M=this.JSC$8027_dom_.JSC$7214_document_;var d=_.Xt(QZ(this.JSC$8027_dom_.JSC$7214_document_)||window);var N=Math.max(d.width,Math.max(M.body.scrollWidth,M.documentElement.scrollWidth));M=Math.max(d.height,Math.max(M.body.scrollHeight,M.documentElement.scrollHeight));this.bgIframeEl_&&(_.cU(this.bgIframeEl_,!0),_.tit(this.bgIframeEl_,N,M));this.bgEl_&&(_.cU(this.bgEl_,!0),_.tit(this.bgEl_,
N,M))};
_.F.reposition=function(){var M;if(_.LGm(this.getElement())=="fixed")var d=M=0;else d=Ft(this.JSC$8027_dom_),M=d.x,d=d.y;var N=aDJ(this.getElement());var R=_.Xt(QZ(this.JSC$8027_dom_.JSC$7214_document_)||window);M=Math.max(M+R.width/2-N.width/2,0);d=Math.max(d+R.height/2-N.height/2,0);ze(this.getElement(),M,d);ze(this.tabCatcherElement_,M,d)};
_.F.onFocus=function(M){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():M.target==this.tabCatcherElement_&&vX(this.focusElement_,0,this)};
_.F.focusElement_=function(){try{this.getElement().focus()}catch(M){}};
_.F.disposeInternal=function(){_.tw(this.popupShowTransition_);this.popupShowTransition_=null;_.tw(this.popupHideTransition_);this.popupHideTransition_=null;_.tw(this.bgShowTransition_);this.bgShowTransition_=null;_.tw(this.bgHideTransition_);this.bgHideTransition_=null;e8.superClass_.disposeInternal.call(this)};var vU=function(M,d,N){e8.call(this,d,N);this.JSC$8058_class_=M||"modal-dialog";this.buttons_=(new Hv).addButton(uOd,!0).addButton(CkL,!1,!0)};
_.RX(vU,e8);_.F=vU.prototype;_.F.escapeToCancel_=!0;_.F.hasTitleCloseButton_=!0;_.F.modal_=!0;_.F.draggable_=!0;_.F.backgroundElementOpacity_=.5;_.F.title_="";_.F.JSC$8060_dragger_=null;_.F.JSC$8060_disposeOnHide_=!1;_.F.titleEl_=null;_.F.titleTextEl_=null;_.F.titleTextId_=null;_.F.titleCloseEl_=null;_.F.contentEl_=null;_.F.buttonEl_=null;_.F.getCssClass=function(){return this.JSC$8058_class_};
_.F.setTitle=function(M){this.title_=M;this.titleTextEl_&&_.yR(this.titleTextEl_,M)};
_.F.getTitle=function(){return this.title_};
_.F.getContent=function(){return""};
_.F.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var xBL=function(M){M.getElement()||M.render();return M.getElement()};
vU.prototype.getBackgroundElement=function(){this.getElement()||this.render();return vU.superClass_.getBackgroundElement.call(this)};
var YdV=function(M,d){M.backgroundElementOpacity_=d;M.getElement()&&(d=M.getBackgroundElement())&&uYL(d,M.backgroundElementOpacity_)};
vU.prototype.setDraggable=function(M){this.draggable_=M;ZEm(this,M&&this.inDocument_)};
vU.prototype.JSC$8060_handleDrag=function(){};
var ZEm=function(M,d){var N=_.Xq(M.JSC$8058_class_+"-title-draggable").split(" ");M.getElement()&&(d?n2(M.titleEl_,N):oag(M.titleEl_,N));d&&!M.JSC$8060_dragger_?(d=new _.cv(M.getElement(),M.titleEl_),M.JSC$8060_dragger_=d,n2(M.titleEl_,N),_.lI(M.JSC$8060_dragger_,"start",M.setDraggerLimits_,!1,M),_.lI(M.JSC$8060_dragger_,"drag",M.JSC$8060_handleDrag,!1,M)):!d&&M.JSC$8060_dragger_&&(M.JSC$8060_dragger_.dispose(),M.JSC$8060_dragger_=null)};
_.F=vU.prototype;
_.F.JSC$8029_createDom=function(){vU.superClass_.JSC$8029_createDom.call(this);var M=this.getElement(),d=this.JSC$8027_dom_;this.titleTextId_=this.getId();var N=this.getId()+".contentEl";this.titleEl_=d.JSC$7216_createDom("DIV",this.JSC$8058_class_+"-title",this.titleTextEl_=d.JSC$7216_createDom("SPAN",{className:this.JSC$8058_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=d.JSC$7216_createDom("SPAN",this.JSC$8058_class_+"-title-close"));vee(M,this.titleEl_,this.contentEl_=
d.JSC$7216_createDom("DIV",{className:this.JSC$8058_class_+"-content",id:N}),this.buttonEl_=d.JSC$7216_createDom("DIV",this.JSC$8058_class_+"-buttons"));jcC(this.titleTextEl_,"heading");jcC(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;JW(this.titleCloseEl_,"label","Close");jcC(M,"dialog");JW(M,"labelledby",this.titleTextId_||"");_.cU(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(M=this.buttons_,M.JSC$8061_element_=this.buttonEl_,M.render());_.cU(this.buttonEl_,!!this.buttons_);
YdV(this,this.backgroundElementOpacity_)};
_.F.decorateInternal=function(M){vU.superClass_.decorateInternal.call(this,M);M=this.getElement();var d=this.JSC$8058_class_+"-content";this.contentEl_=Ix(document,null,d,M)[0];this.contentEl_||(this.contentEl_=this.JSC$8027_dom_.JSC$7216_createDom("DIV",d),M.appendChild(this.contentEl_));d=this.JSC$8058_class_+"-title";var N=this.JSC$8058_class_+"-title-text",R=this.JSC$8058_class_+"-title-close";(this.titleEl_=Ix(document,null,d,M)[0])?(this.titleTextEl_=Ix(document,null,N,this.titleEl_)[0],this.titleCloseEl_=
Ix(document,null,R,this.titleEl_)[0]):(this.titleEl_=this.JSC$8027_dom_.JSC$7216_createDom("DIV",d),M.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=e4V(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.O8("SPAN",{className:N,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;JW(M,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8027_dom_.JSC$7216_createDom("SPAN",
R),this.titleEl_.appendChild(this.titleCloseEl_));_.cU(this.titleCloseEl_,this.hasTitleCloseButton_);d=this.JSC$8058_class_+"-buttons";(this.buttonEl_=Ix(document,null,d,M)[0])?(this.buttons_=new Hv(this.JSC$8027_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8027_dom_.JSC$7216_createDom("DIV",d),M.appendChild(this.buttonEl_),this.buttons_&&(M=this.buttons_,M.JSC$8061_element_=this.buttonEl_,M.render()),_.cU(this.buttonEl_,!!this.buttons_));YdV(this,this.backgroundElementOpacity_)};
_.F.enterDocument=function(){vU.superClass_.enterDocument.call(this);yC(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);yC(this).listen(this.buttonEl_,"click",this.onButtonClick_);ZEm(this,this.draggable_);yC(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var M=this.getElement();jcC(M,"dialog");this.titleTextEl_.id!==""&&JW(M,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){M=this.JSC$8027_dom_;
var d=this.getBackgroundElement();M.removeNode(this.bgIframeEl_);M.removeNode(d)}this.isVisible()&&asV(this,!1)}};
_.F.exitDocument=function(){this.isVisible()&&this.setVisible(!1);ZEm(this,!1);vU.superClass_.exitDocument.call(this)};
_.F.setVisible=function(M){M!=this.isVisible()&&(this.inDocument_||this.render(),vU.superClass_.setVisible.call(this,M))};
_.F.onShow=function(){vU.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.F.onHide=function(){vU.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8060_disposeOnHide_&&this.dispose()};
_.F.setDraggerLimits_=function(){var M=this.JSC$8027_dom_.JSC$7214_document_,d=_.Xt(QZ(M)||window),N=Math.max(M.body.scrollWidth,d.width);M=Math.max(M.body.scrollHeight,d.height);var R=aDJ(this.getElement());_.LGm(this.getElement())=="fixed"?this.JSC$8060_dragger_.limits=new JM(0,0,Math.max(0,d.width-R.width),Math.max(0,d.height-R.height)):this.JSC$8060_dragger_.limits=new JM(0,0,N-R.width,M-R.height)};
_.F.onTitleCloseClick_=function(){EYm(this)};
var EYm=function(M){if(M.hasTitleCloseButton_){var d=M.buttons_,N=d&&d.cancelButton_;N?(d=d.get(N),M.dispatchEvent(new nU(N,d))&&M.setVisible(!1)):M.setVisible(!1)}},M6J=function(M){M.hasTitleCloseButton_=!1;
M.titleCloseEl_&&_.cU(M.titleCloseEl_,M.hasTitleCloseButton_)};
vU.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;vU.superClass_.disposeInternal.call(this)};
vU.prototype.onButtonClick_=function(M){a:{for(M=M.target;M!=null&&M!=this.buttonEl_;){if(M.tagName=="BUTTON")break a;M=M.parentNode}M=null}if(M&&!M.disabled){M=M.name;var d=this.buttons_.get(M);this.dispatchEvent(new nU(M,d))&&this.setVisible(!1)}};
vU.prototype.onKey_=function(M){var d=!1,N=!1,R=this.buttons_,X=M.target;if(M.type=="keydown")if(this.escapeToCancel_&&M.keyCode==27){var A=R&&R.cancelButton_;X=X.tagName=="SELECT"&&!X.disabled;A&&!X?(N=!0,d=R.get(A),d=this.dispatchEvent(new nU(A,d))):X||(d=!0)}else{if(M.keyCode==9&&M.shiftKey&&X==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(w){}vX(this.resetBackwardTabWrap_,0,this)}}else if(M.keyCode==13){if(X.tagName=="BUTTON"&&!X.disabled)A=X.name;
else if(X==this.titleCloseEl_)EYm(this);else if(R){var l=R.defaultButton_,k;if(k=l)a:{k=$a("BUTTON",R.JSC$8061_element_);for(var T,W=0;T=k[W];W++)if(T.name==l||T.id==l){k=T;break a}k=null}X=(X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="A")&&!X.disabled;!k||k.disabled||X||(A=l)}A&&R&&(N=!0,d=this.dispatchEvent(new nU(A,String(R.get(A)))))}else X!=this.titleCloseEl_||M.keyCode!=32&&M.key!=" "||EYm(this);if(d||N)M.stopPropagation(),M.preventDefault();d&&this.setVisible(!1)};
var nU=function(M,d){this.type="dialogselect";this.key=M;this.caption=d};
_.RX(nU,_.Dj);var Hv=function(M){z_.call(this);M||Aw();this.cancelButton_=this.JSC$8061_element_=this.defaultButton_=null};
_.RX(Hv,z_);_.F=Hv.prototype;_.F.clear=function(){z_.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.F.set=function(M,d,N,R){z_.prototype.set.call(this,M,d);N&&(this.defaultButton_=M);R&&(this.cancelButton_=M);return this};
_.F.addButton=function(M,d,N){return this.set(M.key,M.caption,d,N)};
_.F.render=function(){if(this.JSC$8061_element_){_.zP(this.JSC$8061_element_,IRv);var M=Aw(this.JSC$8061_element_);this.forEach(function(d,N){d=M.JSC$7216_createDom("BUTTON",{name:N},d);N==this.defaultButton_&&(d.className="goog-buttonset-default");this.JSC$8061_element_.appendChild(d)},this)}};
_.F.decorate=function(M){if(M&&M.nodeType==1){this.JSC$8061_element_=M;M=$a("BUTTON",this.JSC$8061_element_);for(var d,N,R,X=0;d=M[X];X++)if(N=d.name||d.id,R=e4V(d)||d.value,N){var A=X==0;this.set(N,R,A,d.name=="cancel");A&&_.cz(d,"goog-buttonset-default")}}};
_.F.getElement=function(){return this.JSC$8061_element_};
var uOd={key:"ok",caption:"OK"},CkL={key:"cancel",caption:"Cancel"},dU3={key:"yes",caption:"Yes"},Ncd={key:"no",caption:"No"},R1V={key:"save",caption:"Save"},Xft={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Hv).addButton(uOd,!0,!0),(new Hv).addButton(uOd,!0).addButton(CkL,!1,!0),(new Hv).addButton(dU3,!0).addButton(Ncd,!1,!0),(new Hv).addButton(dU3).addButton(Ncd,!0).addButton(CkL,!1,!0),(new Hv).addButton(Xft).addButton(R1V).addButton(CkL,!0,!0));_.RX(kNq,vU);_.RX(TKS,Os);var F0d=_.a1(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Akd=_.a1(["//apis.google.com/js/rpc.js"]),qli=_.u6(F0d),QJS=_.u6(Akd),gVi=null;var jz=function(M,d){_.mk.call(this);this.JSC$8070_element_=M;M=_.nA(this.JSC$8070_element_)?this.JSC$8070_element_:this.JSC$8070_element_?this.JSC$8070_element_.body:null;this.isRtl_=!!M&&_.Cro(M);this.listenKey_=_.lI(this.JSC$8070_element_,_.$h?"DOMMouseScroll":"mousewheel",this,d)};
_.RX(jz,_.mk);jz.prototype.handleEvent=function(M){var d=0,N=0,R=M.event_;R.type=="mousewheel"?(M=V63(-R.wheelDelta),R.wheelDeltaX!==void 0?(d=V63(-R.wheelDeltaX),N=V63(-R.wheelDeltaY)):N=M):(M=R.detail,M>100?M=3:M<-100&&(M=-3),R.axis!==void 0&&R.axis===R.HORIZONTAL_AXIS?d=M:N=M);typeof this.maxDeltaX_==="number"&&(d=_.Ju(d,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(N=_.Ju(N,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(d=-d);d=new lxz(M,R,d,N);this.dispatchEvent(d)};
var V63=function(M){return _.B_&&(_.lri||BSv)&&M%40!=0?M:M/40};
jz.prototype.disposeInternal=function(){jz.superClass_.disposeInternal.call(this);FQ(this.listenKey_);this.listenKey_=null};
var lxz=function(M,d,N,R){_.gy.call(this,d);this.type="mousewheel";this.detail=M;this.deltaX=N;this.deltaY=R};
_.RX(lxz,_.gy);_.FU=function(M){var d="instance_";if(M.instance_&&M.hasOwnProperty(d))return M.instance_;d=new M;return M.instance_=d};var h$A;var $Ud=_.a1(["https://about:blank"]),Bcm=_.a1(['javascript:""']),k2V=_.a1(["about:blank"]);_.RX(Sz,kNq);_.F=Sz.prototype;_.F.JSC$8078_url_="";_.F.JSC$8078_iframe_=null;_.F.iframeLoaded_=!1;_.F.loadedFired_=!1;_.F.callback_=function(){};
_.F.enterDocument=function(){Sz.superClass_.enterDocument.call(this);pyZ(this.getBackgroundElement(),yC(this))};
_.F.render=function(M){var d=this;Sz.superClass_.render.call(this,M);this.useGapi_?kse(this.iframeManager_,window).then(function(){return TcC(d)}).then(null,function(){d.callback_({action:"error"})}):DUC(this)};
var TcC=function(M){var d=M.JSC$8027_dom_.JSC$7216_createDom("div",["picker-dialog-content","picker-frame"]);_.cU(d,!1);M.getContentElement().appendChild(d);return T23(M.iframeManager_,d,function(N){var R=Ghe(N["iframe-command"]);switch(R.getCommand()){case 1:N=M.callback_;R=_.uk(R,Z0,2);var X="";switch(R.getStatus()){case 2:X="cancel";break;case 1:X="picked";break;case 3:X="error"}var A=_.Uq(R,v_,2,_.uC(cZA));R=A.length===0?{action:X}:UVI(A,X,_.uk(R,fGt,7));N.call(M,R);M.setVisible(!1);break;case 4:M6J(M);
M.callback_({action:"loaded"});break;case 7:case 8:N=M.callback_;a:{X=R.getCommand();A=_.uk(R,Z0,2);switch(X){case 7:X="uploadScheduled";break;case 8:X="uploadStateChange";break;default:R={};break a}R=_.Uq(A,v_,2,_.uC(cZA));if(R.length===0)R={action:X};else{var l=_.uk(A,fGt,7);A=l&&_.rP(l,1);l=z$t(l);R=HFV(R,X,A,l)}}N.call(M,R)}},M.JSC$8078_url_,M.targetId_,M.rpcToken_).then(function(N){M.JSC$8078_iframe_=N.getIframeEl();
gWg(M);_.cU(M.JSC$8078_iframe_.parentElement,!0);_.cz(M.getElement(),"picker-dialog");W0m(M);return N})},DUC=function(M){M.JSC$8078_iframe_=M.JSC$8027_dom_.JSC$7216_createDom("IFRAME",{id:M.targetId_,
name:M.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.s0(M.JSC$8078_iframe_,wfd(M));_.cz(M.getElement(),"picker-dialog");M.getContentElement().appendChild(M.JSC$8078_iframe_);yC(M).listen(M.JSC$8078_iframe_,"load",function(){return void gWg(M)});
M.JSC$8078_iframe_.src=M.JSC$8078_url_;W0m(M)},mUV=function(M){pfI(M,(0,_.gx)(function(d){d.setAuthToken(this.targetId_,this.rpcToken_)},M))},W0m=function(M){var d=_.yf(_.Kk(M.JSC$8078_url_),"title");
d&&M.setTitle(d)},wfd=function(M){return _.BZi("Internet Explorer")>=7&&_.AL(M.JSC$8078_url_,"https")?_.u6($Ud):_.lb?_.u6(Bcm):_.u6(k2V)},gWg=function(M){mUV(M);
M.iframeLoaded_=!0;M.JSC$8078_iframe_.tabIndex=0;M.isVisible()&&M.focus()};
Sz.prototype.handleKeydown_=function(M){M.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),M.stopPropagation(),M.preventDefault())};
var pfI=function(M,d){var N=M.JSC$8076_gadgetsDomHelper_;WIZ(function(){d(N.getWindow().gadgets.rpc)},N)};
Sz.prototype.setUrl=function(M){M=_.J8(new _.iX(M),"rpcService",this.targetId_);_.J8(M,"rpctoken",this.rpcToken_);_.M2(M,"rpctoken="+this.rpcToken_);_.C2(M,"https");this.JSC$8078_url_=M.toString();this.JSC$8078_iframe_&&(this.JSC$8078_iframe_.src=this.JSC$8078_url_)};
var h1L=function(M,d){M.callback_=d;pfI(M,(0,_.gx)(function(N){N.register(this.targetId_,(0,_.gx)(this.handlePickerAction_,this))},M))};
Sz.prototype.handlePickerAction_=function(M){var d=M.action;d=="loaded"&&(this.loadedFired_=!0,QQC(this,new BKN(this.isVisible())),qIV(this),M6J(this),yC(this).unlisten(this.JSC$8027_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8078_iframe_.tabIndex=0);d!="picked"&&d!="cancel"||this.setVisible(!1);this.callback_(M)};
var qIV=function(M){M.JSC$8078_appId_&&QQC(M,new $VZ(M.JSC$8078_appId_,window.location.protocol+"//"+window.location.host))};
Sz.prototype.setRelayUrl=function(M){pfI(this,(0,_.gx)(function(d){d.setRelayUrl(this.targetId_,M)},this))};
var QQC=function(M,d){M.useGapi_&&pJo(d,M.iframeManager_).then(null,function(){M.callback_({action:"error"})});
pfI(M,(0,_.gx)(function(N){N.call(this.targetId_,"picker",null,d)},M))};
Sz.prototype.resizePicker_=function(){var M=QZ(this.JSC$8027_dom_.JSC$7214_document_)||window;if(_.yf(_.Kk(this.JSC$8078_url_),"ignoreLimits")=="true")M=new _.R8(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.yf(_.Kk(this.JSC$8078_url_),"shadeDialog")=="true"){var d=xBL(this);d=x$V(d);var N=_.Xt(M);M=N.width-80;N=N.height-40;d&&(M-=d.left?d.left:0,M-=d.right?d.right:0,N-=d.top?d.top:0,N-=d.bottom?d.bottom:0);M=new _.R8(M>0?M:0,N>0?N:0)}else(d=this.preferredDialogWidth_)?(d=Math.max(320,
Math.min(1051,d)),(N=this.preferredDialogHeight_)||(N=_.Xt(M).height*.85),N=Math.max(480,Math.min(650,N))):(d=_.Xt(M),N=d.width*.618,N=N<d.height?Math.round(Math.max(480,Math.min(650,N*.85))):Math.round(Math.max(480,Math.min(650,d.height*.85))),d=Math.round(N/.618)),M=_.Xt(M),d=Math.min(d,Math.max(M.width,320)),N=Math.min(N,Math.max(M.height,480)),M=new _.R8(d,N);_.tit(this.getContentElement(),M);this.reposition()};
Sz.prototype.reposition=function(){if(_.yf(_.Kk(this.JSC$8078_url_),"shadeDialog")=="true"){var M=aDJ(this.getElement()),d=_.Xt(this.JSC$8027_dom_.getWindow());M=Math.floor(d.width/2-M.width/2);d=xBL(this);if(d=x$V(d)){var N=d.left?d.left:0;N+=d.right?d.right:0;M=Math.floor(M-N/2)}M=M>0?M:0;d=Ft(this.JSC$8027_dom_).y;ze(this.getElement(),M,d)}else Sz.superClass_.reposition.call(this)};
Sz.prototype.setVisible=function(M){if(M!=this.isVisible()&&this.autoSizeDialog_){var d=this.JSC$8027_dom_.getWindow();M?(this.resizePicker_(),yC(this).listen(d,"resize",this.resizePicker_),this.iframeLoaded_||yC(this).listen(d,"keydown",this.handleKeydown_)):(yC(this).unlisten(d,"resize",this.resizePicker_),this.iframeLoaded_||yC(this).unlisten(d,"keydown",this.handleKeydown_))}Sz.superClass_.setVisible.call(this,M);QQC(this,new BKN(M))};
Sz.prototype.focus=function(){Sz.superClass_.focus.call(this);if(this.JSC$8078_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8078_iframe_.focus()}catch(M){}};var kB=function(M,d){d=d===void 0?Sz:d;Os.call(this,M);this.pickerConstructor=d;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(M=window.location.origin)||(M=window.location.protocol+"//"+window.location.host);M&&this.urlParamMap_.set("origin",M);this.postProcessors_=[]};
_.v(kB,TKS);kB.prototype.JSC$8083_disposeOnHide_=!1;
kB.prototype.build=function(){this.JSC$7984_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7984_appId_);this.getRelayUrl()||this.setRelayUrl(_.Zj(_.M2(_.EF(_.Kk(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var M=new this.pickerConstructor(Ixd(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);M.JSC$8060_disposeOnHide_=this.JSC$8083_disposeOnHide_;
M.JSC$8078_appId_=this.JSC$7984_appId_;M.loadedFired_&&qIV(M);h1L(M,this.callback_);return M};
var vWm=function(M){M.urlParamMap_.set("multiselectEnabled","true");return M};
kB.prototype.getHeight=function(){return this.dialogHeight_};
kB.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
kB.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
kB.prototype.getWidth=function(){return this.dialogWidth_};
var OAz=function(M){M.JSC$8083_disposeOnHide_=void 0;return M};
kB.prototype.setRelayUrl=function(M){this.urlParamMap_.set("parent",M);return this};
var jQo=function(M,d){M.urlParamMap_.set("selectButtonLabel",d);return M};
kB.prototype.setSize=function(M,d){this.dialogWidth_=M;this.dialogHeight_=d;return this};
kB.prototype.setTitle=function(M){this.urlParamMap_.set("title",M);return this};
var Ixd=function(M){M.postProcessors_.length&&M.urlParamMap_.set("pp",JSON.stringify(M.postProcessors_));M.urlParamMap_.set("nav",yAm(M.nav_));var d=new _.iX(M.getBaseUrl());M.urlParamMap_.forEach(function(N,R){_.J8(d,R,N)});
return d};var oWd=function(M,d){M.name!==void 0?(this.name=M.name,this.code=sQd[M.name]):(this.code=M=M.code,this.name=P7V(M));_.Mp.call(this,ACJ("%s %s",this.name,d))};
_.RX(oWd,_.Mp);var P7V=function(M){var d=_.wF.findKey(sQd,function(N){return M==N});
if(d===void 0)throw Error("lb`"+M);return d},iJ={},sQd=(iJ.AbortError=3,iJ.EncodingError=5,iJ.InvalidModificationError=9,iJ.InvalidStateError=7,iJ.NotFoundError=1,iJ.NotReadableError=4,iJ.NoModificationAllowedError=6,iJ.PathExistsError=12,iJ.QuotaExceededError=10,iJ.SecurityError=2,iJ.SyntaxError=8,iJ.TypeMismatchError=11,iJ);var rkz=function(M,d){_.Dj.call(this,M.type,d);this.event_=M};
_.RX(rkz,_.Dj);var K03=function(M,d,N){N===void 0&&(N=M.size);return M.slice?M.slice(d,N):null};var OFN=new WeakMap,vVi=function(M,d){M=[M];for(var N=d.length-1;N>=0;--N)M.push(typeof d[N],d[N]);return M.join("\v")};_.sJi(function(){if(!_.Np.Blob)return!1;var M=new Uint8Array(100);try{var d=new Blob([M])}catch(N){return!1}return d.size!=100?!1:!0});
var yk3=_.sJi(function(){if(!_.Np.Blob)return!1;var M=new Uint8Array(100);try{var d=new Blob([M])}catch(N){return!1}return K03(d,0,1)===null?!1:!0});_.Np.U3bHHf!=null||(_.Np.U3bHHf=0);_.Np.U3bHHf++;var oVi={};var HU=void 0;var KIv=Symbol("tb");var LIN=i_("WizInjectionContext_Dispatcher");var e$2=i_("WizInjectionContext_RootElement");var nVZ=i_("WizInjectionContext_AppContext"),HFj=i_("WizInjectionContext_ModelRootElement"),iFr=i_("WizInjectionContext_RendererData"),fRi=i_("WizInjectionContext_InjectingConstructor"),bFq=i_("WizInjectionContext_AsyncDeps"),txq={};var CsN=!1;var JkI=Symbol("xb"),LDj=Symbol("yb"),UB6=Symbol("zb"),Gsr=Symbol("Ab"),M6r=iL(function(M){return FD6(M)&&JkI in M});var EV6={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:du2,enableLazyTsx:NSZ,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var G5=Object.assign({},{attributes:{},handleError:function(M){throw M;}},EV6);var AmZ=Symbol("Bb"),fU={},RaA=(fU[AmZ]=!0,fU.debugName="[component]",fU.getComponentStack=function(){for(var M=[],d=this;d;)VwZ(d)&&M.push(d.debugName),d=d.parent;return M},fU.registerSignal=function(){},fU.registerEffect=function(){},fU);var u_=null,xa=!1,DBp=1,Es=Symbol("Cb"),FI={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var LU=Symbol("Db"),tW=Symbol("Eb"),ZL=Symbol("Fb"),qdN=Object.assign({},FI,{value:LU,dirty:!0,error:null,equal:lsZ,kind:"computed",producerMustRecompute:function(M){return M.value===LU||M.value===tW},
producerRecomputeValue:function(M){if(M.value===tW)throw Error("da");var d=M.value;M.value=tW;var N=mB6(M),R=!1;try{var X=M.computation();Ck(null);R=d!==LU&&d!==ZL&&X!==ZL&&M.equal(d,X)}catch(A){X=ZL,M.error=A}finally{haS(M,N)}R?M.value=d:(M.value=X,M.version++)}});var scq=function(){throw Error();};var oYZ=null,vYq=Object.assign({},FI,{equal:lsZ,value:void 0,kind:"signal"});Object.assign({},FI,{value:LU,dirty:!0,error:null,equal:lsZ,kind:"linkedSignal",producerMustRecompute:function(M){return M.value===LU||M.value===tW},
producerRecomputeValue:function(M){if(M.value===tW)throw Error("da");var d=M.value;M.value=tW;var N=mB6(M);try{var R=M.source();var X=M.computation(R,d===LU||d===ZL?void 0:{source:M.sourceValue,value:d});M.sourceValue=R}catch(A){X=ZL,M.error=A}finally{haS(M,N)}d!==LU&&X!==ZL&&M.equal(d,X)?M.value=d:(M.value=X,M.version++)}});Object.assign({},FI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(M){M.schedule!==null&&M.schedule(M.ref)},
hasRun:!1,cleanupFn:function(){}});var KDv=Symbol("Gb"),NF=Symbol("Hb");var R4=Array.isArray;var nYN;var ckz={},fsS=HEq(Object.assign({},{consumerAllowSignalWrites:!0},ckz)),AA=HEq(Object.assign({},{consumerAllowSignalWrites:!0},ckz));var ld=0,G_=function(){this.queue=new Set};
G_.prototype.remove=function(M){this.queue.delete(M)};
G_.prototype.clear=function(){this.queue.clear()};
var SIV=function(){G_.apply(this,arguments)};
_.v(SIV,G_);SIV.prototype.schedule=function(M){this.queue.add(M)};
SIV.prototype.flush=function(){if(this.queue.size)for(var M=_.V(this.queue),d=M.next();!d.done;d=M.next()){d=d.value;this.queue.delete(d);try{d.run()}catch(N){z1g(N)}}};
var bAI=new SIV,at=function(){G_.apply(this,arguments)};
_.v(at,G_);var e1I=function(){at.apply(this,arguments)};
_.v(e1I,at);e1I.prototype.schedule=function(M){M.hasRun?this.queue.add(M):M.run()};
e1I.prototype.flush=function(){if(this.queue.size){var M=this.queue;this.queue=new Set;dUZ(M)}};
var twZ=new e1I,HAg=function(){at.apply(this,arguments)};
_.v(HAg,at);HAg.prototype.schedule=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return M.hasRun?N.jumpTo(2):_.D(N,Promise.resolve(),3);if(N.nextAddress!=2)return M.run(),N.return();d.queue.add(M);_.Vy(N)})};
HAg.prototype.flush=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){if(!M.queue.size)return N.return();d=M.queue;M.queue=new Set;return _.D(N,Promise.resolve(),2)}dUZ(d);_.Vy(N)})};
var uOi=new HAg,nWd=function(){at.apply(this,arguments)};
_.v(nWd,at);nWd.prototype.schedule=function(M){this.queue.add(M)};
nWd.prototype.flush=function(){if(this.queue.size){var M=this.queue;this.queue=new Set;dUZ(M)}};
var asj=new nWd,ZEv=[twZ,bAI,asj,uOi],iAV=[twZ,asj,uOi],xBi=[];oYZ=function(){EYv();for(var M=_.V(xBi),d=M.next();!d.done;d=M.next())d=d.value,d()};
var z1g=RN;var Bg=Symbol("Mb");var $T=null,F0Z,AkZ=null,V6Z;var UK={},fxL=Object.assign({},FI,(UK[JkI]=!0,UK.effectType=LDj,UK.isResettableContext=!0,UK.producerNode=void 0,UK.hasRun=!1,UK.effectFn=null,UK.consumerIsAlwaysLive=!0,UK.consumerAllowSignalWrites=!0,UK.consumerMarkedDirty=Ck2,UK.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(xa)throw Error("Nb");this.dirty=!1;if(!this.hasRun||gYj(this)){this.hasRun=!0;z$A(this);var M=nk(this),d=mB6(this);dBi("effectRun",this.debugName);try{g0(this.effectFn,{stack:this.componentStack})}finally{N2A("effectRun",
this.debugName),haS(this,d),nk(M)}}}},UK.componentStack=void 0,UK.debugName="[effect]",UK[Symbol.dispose]=function(){$BL(this);
if(Ya(this))for(var M=0;M<this.producerNode.length;M++)B2q(this.producerNode[M],this.producerIndexOfThis[M]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);M=_.V(iAV);for(var d=M.next();!d.done;d=M.next())d.value.remove(this);SlZ(this)},UK));var $UZ=Object.assign({},fxL,{effectType:UB6});var Bcv=Object.assign({},fxL,{effectType:LDj});var k2S=Symbol("Ob");var UU6=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var tl=Symbol("Pb");var Xo=function(){},By=function(M){this.props=M;
this.__unmounted=!1};
By.prototype.didPatch=function(){};
By.prototype.didMount=function(){};
By.prototype.didUnmount=function(){};
By.prototype.didUpdate=function(){};var gWZ={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,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,
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,valign:1,value:1,width:1,wrap:1},DUL={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}]}},i5i={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},pfN=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],wfi={"*":{async:1,dir:0,loading:2,target:3}};var L0C=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,uJ={},h12=(uJ[1]=null,uJ[2]=function(M,d){return d instanceof vQ?jd(d):DW.toString()},uJ[3]=function(M,d){return ly(d)?_.$8(d):L0C.test(String(d))?String(d):DW.toString()},uJ[4]=function(M,d){return d instanceof NO?_.XC(d):DW.toString()},uJ[5]=function(M,d){return String(d)},uJ[7]=null,uJ[8]=null,uJ[10]=null,uJ);var $Nq=Symbol("Sb");var lUZ=function(M){var d=t6I,N=M,R="",X="",A=1;M<0&&(M=-M);if(M===Infinity)M=(Infinity*Math.sign(N)).toString();else{for(var l=0;l<G2m.length;l++){var k=G2m[l];A=d[k];if(M>=A||A<=1&&M>.1*A){R=k;break}}R?(R+="B",X=" "):A=1;M=Math.round(N/A*10)/10+X+R}return M},G2m="Y Z E P T G M K  m u n".split(" "),t6I={"":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};_.axz=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 Eo={};RegExp.prototype.hasOwnProperty("sticky");var xUq=function(M){M=String(M);for(var d=function(R,X,A){for(var l=Math.min(X.length-A,R.length),k=0;k<l;k++){var T=X[A+k];if(R[k]!==("A"<=T&&T<="Z"?T.toLowerCase():T))return!1}return!0},N=0;(N=M.indexOf("<",N))!=-1;){if(d("\x3c/script",M,N)||d("\x3c!--",M,N))return"zSoyz";
N+=1}return M};var Oo={default:"__default"};var sQZ=Object.prototype.hasOwnProperty;Ixi.prototype=Object.create(null);var fa=rkq();var zT=null;var iAS=function(M){this.created=[];this.deleted=[];this.node=M};var fxi=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var M=this,d=M;M;)d=M,M=M.parentNode;return d};var ykZ=function(M,d){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=M;this.key=d;this.text=void 0};var o4=null,r0=null,so=null,yJ=null,bAN=[],z1Z=ckq,cg=[],S9=[],lMr=function(M){return L0L(function(d,N,R){so=r0=d;r0=null;N(R);SIj(null);r0=so;so=so.parentNode;return d},M)}(),VmZ=function(M){return L0L(function(d,N,R){var X={nextSibling:d};
r0=X;N(R);so&&SIj(d.nextSibling);return X===r0?null:r0},M)}();var bd=[],G2v=0;var e9=new Ixi;var Tr=new Ixi;var UUo=rkq(),C7Z=UUo[Oo.default],YIv=UUo.style,uVZ=["focusin","focusout"];var JQv=function(){},qDA=function(){},e9Z=function(){},SDA=function(){};var Lu=Symbol("Zb");var XhA,R9Z=NLZ;var dK=Symbol("$b");var W7r={};var baA=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(" ")),
z9i=new Set(["a","font","script","style","title"]);var VD={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ls=null,$V=function(M,d){By.call(this,M);var N=this;this.functionComponent=d;this.hooks=[];this.hookCounter=0;this.disposeEffects=hl(function(R){N.effectContext=R;_.mF(function(){jRj(N,N.el)})},G5.alwaysTrackContexts||!!HU)};
_.v($V,By);$V.prototype.render=function(M){var d=ls;ls=this;this.hookCounter=0;var N=Ck(AA),R=nk(this.effectContext);try{return dBi("render",this.componentName),this.functionComponent(M)}finally{N2A("render",this.componentName),nk(R),Ck(N),ls=d}};
_.Hm.Object.defineProperties($V.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.functionComponent.debugName)!=null?M:this.functionComponent.name)!=null?d:"[component]"}}});var Ha2=Symbol("nc"),K7p=function(M,d,N){this.kind=M;this.props=d;this.children=N};
_.v(K7p,Xo);K7p.prototype.render=function(){return rQr(this.kind,this.props,this.children)};
K7p.prototype.getChildren=function(){return this.children};var iaZ=[];scq=function(M){throw Error("sb`"+M.debugName);};
(function(){var M=zT;zT=function(d){M==null||M(d);fSv(d)}})();var uV3=void 0,C7d={},xUz=new WeakMap,L7L={getComponent:function(M){if(M.hasAttribute("ng-version"))return C7d;if(!M.__wizComponent)return null;M=M.__wizComponent;xUz.set(M.propsAndState,M);return M.propsAndState},
getDirectiveMetadata:function(M){if(M===C7d)return{framework:"wiz",name:"<Root>",props:{}};M=xUz.get(M);if(!M)throw Error("oc");return{framework:"wiz",name:M.name,props:Object.fromEntries(Object.keys(M.props).map(function(d){return[d,d]}))}},
"\u0275setProfiler":function(M){var d;(d=uV3)==null||d();uV3=YdS(function(){M(2)})},
isSignal:function(M){return typeof M==="function"&&M[Es]!==void 0}};var GiZ={nonNullableCondIsNull:function(){return Error("sc")}};_.g.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.g.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.g.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var YDj=function(){this.map=new Map};
YDj.prototype.push=function(M,d){var N=this.map;N.has(M)&&(this.multi||(this.multi=new Map),this.multi.set(d,N.get(M)));N.set(M,d)};
YDj.prototype.pop=function(M){var d=this.map,N=d.get(M),R;N!==void 0&&((R=this.multi)==null?0:R.has(N))?(d.set(M,this.multi.get(N)),this.multi.delete(N)):d.delete(M);return N};var NDA={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(M){return Error("uc`"+M)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(M,d){return Error("yc`"+M+"`"+d)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(M){return Error("zc`"+M)},
USE_ELEMENT_NOT_ASSIGNED:function(M){return Error("Ac`"+String(M))}};XhA=yQv;var $EZ=Symbol("Bc");vvL({beforeRender:function(M){var d=nk(M.effectContext);try{var N;((N=M.__syncEffects)==null?0:N.length)&&kaL(M.__syncEffects)}finally{nk(d)}},
didPatch:function(M){var d=nk(M.effectContext);try{var N;((N=M.__syncEffects)==null?0:N.length)&&kaL(M.__syncEffects)}finally{nk(d)}},
didUnmount:function(M){var d;((d=M.hooks)==null?0:d.length)&&M.hooks.forEach(BDq)}});var YIm,ZAL,EWV;YIm=_.Np.window;_.Py=(YIm==null?void 0:(ZAL=YIm.yt)==null?void 0:ZAL.config_)||(YIm==null?void 0:(EWV=YIm.ytcfg)==null?void 0:EWV.data_)||{};_.fE("yt.config_",_.Py);var M5e={},Wyq=[];_.WJ=function(M){var d=_.wH.apply(1,arguments);var N=Error.call(this,M);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.args=[].concat(_.wu(d));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.WJ,Error);var OUi=function(M,d,N){this.actionName=M;this.optionalAction=d===void 0?!1:d;this.args=N===void 0?null:N;this.returnValue=[]};_.x=function(M){this.name=M};_.Ka=new _.x("signalAction");var s_i=/^[\w.]*$/,Q_v={q:!0,search_query:!0},hh6=String(mES);var CU;CU=Symbol("Cc");_.x5=function(M){this.name=M};
_.x5.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var PMq=function(M){this.key=M},KyZ=function(M){this.deferredKey=M},rar=function(){var M=this;
this.providers=new Map;this.JSC$8303_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(M.providers)}}};
rar.prototype.addProvider=function(M){this.providers.set(M.provide,M);var d=this.JSC$8303_deferred.get(M.provide);if(d)try{d.resolver(this.resolve(M.provide))}catch(N){d.rejector(N)}};
rar.prototype.resolve=function(M){return M instanceof KyZ?dZm(this,M):M instanceof PMq?NLg(this,M.key,[],!0):NLg(this,M,[])};
var dZm=function(M,d){d=d.deferredKey;if(M.JSC$8303_deferred.has(d))return M.JSC$8303_deferred.get(d).promise;var N={};N.promise=new Promise(function(R,X){N.resolver=R;N.rejector=X});
M.JSC$8303_deferred.set(d,N);return N.promise},NLg=function(M,d,N,R){R=R===void 0?!1:R;
if(N.indexOf(d)>-1)throw Error("Dc`"+d);if(M.cachedValues.has(d))return M.cachedValues.get(d);if(!M.providers.has(d)){if(R)return;throw Error("Ec`"+d);}R=M.providers.get(d);N.push(d);if(R.useValue!==void 0)var X=R.useValue;else if(R.useFactory)X=R[CU]?R9g(M,R[CU],N):[],X=R.useFactory.apply(R,_.wu(X));else if(R.useClass){X=R.useClass;var A=X[CU]?R9g(M,X[CU],N):[];X=new (Function.prototype.bind.apply(X,[null].concat(_.wu(A))))}else throw Error("Fc`"+d);N.pop();R.skipCache||M.cachedValues.set(d,X);return X},
R9g=function(M,d,N){return d?d.map(function(R){return R instanceof PMq?NLg(M,R.key,N,!0):NLg(M,R,N)}):[]};var oCi;var yc=new _.x5("ENDPOINT_HANDLER_TOKEN");_.JQ=new _.x("urlEndpoint");var Xht=function(){this.data=[];this.cachedPackedInt52=-1};
Xht.prototype.set=function(M,d){d=d===void 0?!0:d;0<=M&&M<52&&Number.isInteger(M)&&this.data[M]!==d&&(this.data[M]=d,this.cachedPackedInt52=-1)};
Xht.prototype.get=function(M){return!!this.data[M]};
var F7e=function(M){M.cachedPackedInt52===-1&&(M.cachedPackedInt52=M.data.reduce(function(d,N,R){return d+(N?Math.pow(2,R):0)},0));
return M.cachedPackedInt52};var Gar=function(M){var d=AQC;M=M===void 0?_.cy("yt.ads.biscotti.lastId_")||"":M;var N=Object,R=N.assign,X={};X.dt=lLL;X.flash="0";a:{try{var A=d.JSC$8309_win_.top.location.href}catch(vj){A=2;break a}A=A?A===d.doc_.location.href?0:1:2}X=(X.frm=A,X);try{X.u_tz=-(new Date).getTimezoneOffset();var l=l===void 0?bm:l;try{var k=l.history.length}catch(vj){k=0}X.u_his=k;var T;X.u_h=(T=bm.screen)==null?void 0:T.height;var W;X.u_w=(W=bm.screen)==null?void 0:W.width;var w;X.u_ah=(w=bm.screen)==null?void 0:w.availHeight;
var p;X.u_aw=(p=bm.screen)==null?void 0:p.availWidth;var m;X.u_cd=(m=bm.screen)==null?void 0:m.colorDepth}catch(vj){}k=d.JSC$8309_win_;try{var I=k.screenX;var O=k.screenY}catch(vj){}try{var y=k.outerWidth;var c=k.outerHeight}catch(vj){}try{var e=k.innerWidth;var t=k.innerHeight}catch(vj){}try{var C=k.screenLeft;var U=k.screenTop}catch(vj){}try{e=k.innerWidth,t=k.innerHeight}catch(vj){}try{var Fi=k.screen.availWidth;var Y=k.screen.availTop}catch(vj){}I=[C,U,I,O,Fi,Y,y,c,e,t];O=mvq(!1,d.JSC$8309_win_.top);
y={};var $i=$i===void 0?_.Np:$i;c=new Xht;"SVGElement"in $i&&"createElementNS"in $i.document&&c.set(0);e=TqV();e["allow-top-navigation-by-user-activation"]&&c.set(1);e["allow-popups-to-escape-sandbox"]&&c.set(2);$i.crypto&&$i.crypto.subtle&&c.set(3);"TextDecoder"in $i&&"TextEncoder"in $i&&c.set(4);$i=F7e(c);d=(y.bc=$i,y.bih=O.height,y.biw=O.width,y.brdim=I.join(),y.vis=Nx2(d.doc_),y.wgl=!!bm.WebGLRenderingContext,y);N=R.call(N,X,d);N.ca_type="image";M&&(N.bid=M);return N},AQC=new function(){var M=
window.document;
this.JSC$8309_win_=window;this.doc_=M};
_.fE("yt.ads_.signals_.getAdSignalsString",function(M){return qXA(Gar(M))});_.Nn();navigator.userAgent.indexOf(" (CrKey ");var zhL="XMLHttpRequest"in _.Np?function(){return new XMLHttpRequest}:null;var V5L="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),lSC=[].concat(_.wu(V5L),["client_dev_set_cookie"]);var tF2={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"},HH6="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(_.wu(V5L)),MES=!1,iHL=_.atZ,YXZ=LyL;var sAv=[{messageFn:function(M){return"Cannot read property '"+M.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(M){return"Cannot call '"+M.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(M){return M.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var $Zd={messageWeights:[],callbackWeights:[{callback:XlS,weight:500}]};var BLV=function(){this.callbackWeights=[];this.messageWeights=[]},kiV,jAA=function(){if(!kiV){var M=kiV=new BLV;
M.messageWeights.length=0;M.callbackWeights.length=0;wbA(M,$Zd)}return kiV},wbA=function(M,d){d.messageWeights&&M.messageWeights.push.apply(M.messageWeights,d.messageWeights);
d.callbackWeights&&M.callbackWeights.push.apply(M.callbackWeights,d.callbackWeights)};_.RX(_.lk,_.DL);_.lk.prototype.subscribe=function(M,d,N){var R=this.topics_[M];R||(R=this.topics_[M]=[]);var X=this.JSC$8333_key_;this.subscriptions_[X]=M;this.subscriptions_[X+1]=d;this.subscriptions_[X+2]=N;this.JSC$8333_key_=X+3;R.push(X);return X};
var TLV=function(M){var d=KXj,N=!1,R=d.subscribe("handleError",function(X){N||(N=!0,this.unsubscribeByKey(R),M.apply(void 0,arguments))},d)};
_.lk.prototype.unsubscribe=function(M,d,N){if(M=this.topics_[M]){var R=this.subscriptions_;if(M=M.find(function(X){return R[X+1]==d&&R[X+2]==N}))return this.unsubscribeByKey(M)}return!1};
_.lk.prototype.unsubscribeByKey=function(M){var d=this.subscriptions_[M];if(d){var N=this.topics_[d];this.publishDepth_!=0?(this.pendingKeys_.push(M),this.subscriptions_[M+1]=function(){}):(N&&_.aN(N,M),delete this.subscriptions_[M],delete this.subscriptions_[M+1],delete this.subscriptions_[M+2])}return!!d};
_.lk.prototype.publish=function(M,d){var N=this.topics_[M];if(N){var R=Array(arguments.length-1),X=arguments.length,A;for(A=1;A<X;A++)R[A-1]=arguments[A];if(this.async_)for(A=0;A<N.length;A++)X=N[A],DZI(this.subscriptions_[X+1],this.subscriptions_[X+2],R);else{this.publishDepth_++;try{for(A=0,X=N.length;A<X&&!this.isDisposed();A++){var l=N[A];this.subscriptions_[l+1].apply(this.subscriptions_[l+2],R)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;N=this.pendingKeys_.pop();)this.unsubscribeByKey(N)}}return A!=
0}return!1};
var DZI=function(M,d,N){_.QK(function(){M.apply(d,N)})};
_.lk.prototype.clear=function(M){if(M){var d=this.topics_[M];d&&(d.forEach(this.unsubscribeByKey,this),delete this.topics_[M])}else this.subscriptions_.length=0,this.topics_={}};
_.lk.prototype.getCount=function(M){if(M){var d=this.topics_[M];return d?d.length:0}M=0;for(d in this.topics_)M+=this.getCount(d);return M};
_.lk.prototype.disposeInternal=function(){_.lk.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var KXj=new _.lk;var YY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(YY,_.Jj);YY.prototype.getColdHashData=function(){return _.rP(this,3)};
YY.prototype.getHotHashData=function(){return _.rP(this,5)};
YY.prototype.setHotHashData=function(M){return _.VZ(this,5,M)};var hJZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(hJZ,_.Jj);var xSr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(xSr,_.Jj);_.F=xSr.prototype;_.F.getDeviceId=function(){return _.rP(this,6)};
_.F.getExperimentIds=function(M){var d=_.kZ(this,9,_.Q9,3,!0);bL(d,M);return d[M]};
_.F.getPlayerType=function(){return _.K5(this,36)};
_.F.setHomeGroupInfo=function(M){return _.ZG(this,81,M)};
_.F.clearLocationPlayabilityToken=function(){return _.xY(this,89)};var Vc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Vc,_.Jj);Vc.prototype.setKey=function(M){return _.VZ(this,1,M)};
Vc.prototype.getValue=function(){return Ji(this,2,Z6q)};
var Z6q=[2,3,4,5,6];var gvV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(gvV,_.Jj);gvV.prototype.setTrackingParams=function(M){return _.xY(this,1,_.zo(M,!1))};var YHp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(YHp,_.Jj);var IyS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(IyS,_.Jj);IyS.prototype.getExperimentIds=function(M){var d=_.kZ(this,5,_.vP,3,!0);bL(d,M);return d[M]};var kv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(kv,_.Jj);kv.prototype.getToken=function(){return _.A8(this,2)};
kv.prototype.setToken=function(M){return _.VZ(this,2,M)};var $v=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v($v,_.Jj);$v.prototype.setSafetyMode=function(M){return _.CE(this,5,M)};var AQ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(AQ,_.Jj);AQ.prototype.setClient=function(M){return _.ZG(this,1,M)};var qNj={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 QDA;_.sO=function(){var M=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Np.addEventListener("beforeinstallprompt",function(d){d.preventDefault();M.deferredInstallPrompt=d});
_.Np.addEventListener("appinstalled",function(){M.appInstalledEventFired=!0},{once:!0})};
QDA=function(){if(!_.Np.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Np.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Np.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Np.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Np.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(M){return"WEB_DISPLAY_MODE_UNKNOWN"}};var jDi=function(){this.syncHeaders=!0},sDL=function(M){var d={},N=[];
"USER_SESSION_ID"in _.Py&&N.push({key:"u",value:_.rK("USER_SESSION_ID")});if(N=uwZ(N))d.Authorization=N,N=M=M==null?void 0:M.sessionIndex,N===void 0&&(N=Number(_.rK("SESSION_INDEX",0)),N=isNaN(N)?0:N),_.Q("voice_search_auth_header_removal")||(d["X-Goog-AuthUser"]=N.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Py||(d["X-Origin"]=window.location.origin),M===void 0&&"DELEGATED_SESSION_ID"in _.Py&&(d["X-Goog-PageId"]=_.rK("DELEGATED_SESSION_ID"));return d};var W7J={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Y5=_.cy("ytglobal.prefsUserPrefsPrefs_")||{},whJ;_.fE("ytglobal.prefsUserPrefsPrefs_",Y5);_.ZV=function(){this.cookieName=_.rK("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.rK("ALT_PREF_COOKIE_DOMAIN","youtube.com");var M=_.BJ.get(this.cookieName,void 0);M&&this.parse(M)};
_.kS=function(){whJ||(whJ=new _.ZV);return whJ};
_.ZV.prototype.get=function(M,d){phg(M);mZo(M);M=Y5[M]!==void 0?Y5[M].toString():null;return M!=null?M:d?d:""};
_.ZV.prototype.set=function(M,d){phg(M);mZo(M);if(d==null)throw Error("Ic");Y5[M]=d.toString()};
_.ZV.prototype.getFlag=function(M){return!!((h9d("f"+(Math.floor(M/31)+1))||0)&1<<M%31)};
_.TR=function(M,d,N){M="f"+(Math.floor(d/31)+1);d=1<<d%31;var R=h9d(M)||0;R=N?R|d:R&~d;R===0?delete Y5[M]:(N=R.toString(16),Y5[M]=N.toString())};
_.ZV.prototype.remove=function(M){phg(M);mZo(M);delete Y5[M]};
_.ZV.prototype.save=function(){var M=!0;_.Q("web_secure_pref_cookie_killswitch")&&(M=!1);_.kY(this.cookieName,this.dump(),63072E3,this.cookieDomain,M)};
_.ZV.prototype.clear=function(){_.wF.clear(Y5)};
_.ZV.prototype.dump=function(){var M=[],d;for(d in Y5)Y5.hasOwnProperty(d)&&M.push(d+"="+encodeURIComponent(String(Y5[d])));return M.join("&")};
var mZo=function(M){if(/^f([1-9][0-9]*)$/.test(M))throw Error("Jc`"+M);},phg=function(M){if(!/^\w+$/.test(M))throw Error("Kc`"+M);
},h9d=function(M){M=Y5[M]!==void 0?Y5[M].toString():null;
return M!=null&&/^[A-Fa-f0-9]+$/.test(M)?parseInt(M,16):null};
_.ZV.prototype.parse=function(M){M=decodeURIComponent(M).split("&");for(var d=0;d<M.length;d++){var N=M[d].split("="),R=N[0];(N=N[1])&&(Y5[R]=N.toString())}};var Dwr={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"},vSZ={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},Obv={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},WYi={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var fq;_.EK=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.gL=function(M,d,N){return M.addJob(d,0,N)};
_.EK.prototype.addLowPriorityJob=function(M,d){return this.addJob(M,1,d)};
_.kM=function(M,d,N){return M.addJob(d,2,N)};
_.m$=function(M,d,N){return M.addJob(d,3,N)};
_.Lq=function(M,d,N){return M.addJob(d,4,N)};
fq=function(M){var d=_.cy("yt.scheduler.instance.addImmediateJob");d?d(M):M()};
_.EK.prototype.debounce=function(M,d,N){var R=this,X=0,A=function(){X&&R.cancelJob(X);X=R.addJob(M,d,N);R.cancelDebouncedJobMap.set(A,X)};
return A};
_.EK.prototype.cancelThrottle=function(M){(M=this.cancelThrottledJobMap.get(M))&&M()};var ML=function(){_.EK.apply(this,arguments)};
_.v(ML,_.EK);_.Pa=function(){ML.instance||(ML.instance=new ML);return ML.instance};
ML.prototype.addJob=function(M,d,N){N!==void 0&&Number.isNaN(Number(N))&&(N=void 0);var R=_.cy("yt.scheduler.instance.addJob");return R?R(M,d,N):N===void 0?(M(),NaN):_.NB(M,N||0)};
ML.prototype.cancelJob=function(M){if(M===void 0||!Number.isNaN(Number(M))){var d=_.cy("yt.scheduler.instance.cancelJob");d?d(M):_.XO(M)}};
ML.prototype.start=function(){var M=_.cy("yt.scheduler.instance.start");M&&M()};
ML.prototype.pause=function(){var M=_.cy("yt.scheduler.instance.pause");M&&M()};
_.IQ=_.Pa();_.w2.prototype.set=function(M,d){d===void 0?this.mechanism.remove(M):this.mechanism.set(M,(0,_.js)(d))};
_.w2.prototype.get=function(M){try{var d=this.mechanism.get(M)}catch(N){return}if(d!==null)try{return JSON.parse(d)}catch(N){throw"Storage: Invalid value was encountered";}};
_.w2.prototype.remove=function(M){this.mechanism.remove(M)};var dY=function(M){this.mechanism=M};
_.RX(dY,_.w2);var QRd=function(M){this.data=M},qDt=function(M){return M===void 0||M instanceof QRd?M:new QRd(M)};
dY.prototype.set=function(M,d){dY.superClass_.set.call(this,M,qDt(d))};
dY.prototype.getWrapper=function(M){M=dY.superClass_.get.call(this,M);if(M===void 0||M instanceof Object)return M;throw"Storage: Invalid value was encountered";};
dY.prototype.get=function(M){if(M=this.getWrapper(M)){if(M=M.data,M===void 0)throw"Storage: Invalid value was encountered";}else M=void 0;return M};_.RX(pE,dY);_.ISd=function(M){var d=M.creation;M=M.expiration;return!!M&&M<_.Nn()||!!d&&d>_.Nn()};
pE.prototype.set=function(M,d,N){if(d=qDt(d)){if(N){if(N<_.Nn()){pE.prototype.remove.call(this,M);return}d.expiration=N}d.creation=_.Nn()}pE.superClass_.set.call(this,M,d)};
pE.prototype.getWrapper=function(M,d){var N=pE.superClass_.getWrapper.call(this,M);if(N)if(!d&&_.ISd(N))pE.prototype.remove.call(this,M);else return N};var NL=function(){};
NL.prototype.next=function(){return RU};
var RU={done:!0,value:void 0},XN=function(M){return{value:M,done:!1}};
NL.prototype.__iterator__=function(){return this};
_.vvC=function(M){if(M instanceof NL)return M;if(typeof M.__iterator__=="function")return M.__iterator__(!1);if(_.CZ(M)){var d=0,N=new NL;N.next=function(){for(;;){if(d>=M.length)return RU;if(d in M)return XN(M[d++]);d++}};
return N}throw Error("Lc");};var Oag=function(M){if(M instanceof FN||M instanceof A4||M instanceof Vw)return M;if(typeof M.next=="function")return new FN(function(){return M});
if(typeof M[Symbol.iterator]=="function")return new FN(function(){return M[Symbol.iterator]()});
if(typeof M.__iterator__=="function")return new FN(function(){return M.__iterator__()});
throw Error("Mc");},FN=function(M){this.func_=M};
FN.prototype.__iterator__=function(){return new A4(this.func_())};
FN.prototype[Symbol.iterator]=function(){return new Vw(this.func_())};
FN.prototype.toEs6=function(){return new Vw(this.func_())};
var A4=function(M){this.JSC$8417_iter_=M};
_.v(A4,NL);A4.prototype.next=function(){return this.JSC$8417_iter_.next()};
A4.prototype[Symbol.iterator]=function(){return new Vw(this.JSC$8417_iter_)};
A4.prototype.toEs6=function(){return new Vw(this.JSC$8417_iter_)};
var Vw=function(M){FN.call(this,function(){return M});
this.JSC$8420_iter_=M};
_.v(Vw,FN);Vw.prototype.next=function(){return this.JSC$8420_iter_.next()};var jRV=function(){};var lV=function(){};
_.RX(lV,jRV);lV.prototype.getCount=function(){for(var M=0,d=_.V(this),N=d.next();!N.done;N=d.next())M++;return M};
lV.prototype[Symbol.iterator]=function(){return Oag(this.__iterator__(!0)).toEs6()};
lV.prototype.clear=function(){var M=Array.from(this);M=_.V(M);for(var d=M.next();!d.done;d=M.next())this.remove(d.value)};_.RX(mD,lV);_.F=mD.prototype;_.F.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var M=this.storage_;if(M)try{M.setItem("__sak","1");M.removeItem("__sak");var d=!0}catch(N){d=N instanceof DOMException&&(N.name==="QuotaExceededError"||N.code===22||N.code===1014||N.name==="NS_ERROR_DOM_QUOTA_REACHED")&&M&&M.length!==0}else d=!1;this.cachedIsStorageAvailable_=d}return this.cachedIsStorageAvailable_};
_.F.set=function(M,d){$k(this);try{this.storage_.setItem(M,d)}catch(N){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.F.get=function(M){$k(this);M=this.storage_.getItem(M);if(typeof M!=="string"&&M!==null)throw"Storage mechanism: Invalid value was encountered";return M};
_.F.remove=function(M){$k(this);this.storage_.removeItem(M)};
_.F.getCount=function(){$k(this);return this.storage_.length};
_.F.__iterator__=function(M){$k(this);var d=0,N=this.storage_,R=new NL;R.next=function(){if(d>=N.length)return RU;var X=N.key(d++);if(M)return XN(X);X=N.getItem(X);if(typeof X!=="string")throw"Storage mechanism: Invalid value was encountered";return XN(X)};
return R};
_.F.clear=function(){$k(this);this.storage_.clear()};
_.F.key=function(M){$k(this);return this.storage_.key(M)};
var $k=function(M){if(M.storage_==null)throw Error("Nc");M.isAvailable()||RN(Error("Nc"))};_.RX(plp,mD);_.RX(mwZ,mD);_.RX(hm,lV);hm.prototype.set=function(M,d){this.mechanism_.set(this.JSC$8435_prefix_+M,d)};
hm.prototype.get=function(M){return this.mechanism_.get(this.JSC$8435_prefix_+M)};
hm.prototype.remove=function(M){this.mechanism_.remove(this.JSC$8435_prefix_+M)};
hm.prototype.__iterator__=function(M){var d=this.mechanism_[Symbol.iterator](),N=this,R=new NL;R.next=function(){var X=d.next();if(X.done)return X;for(X=X.value;X.slice(0,N.JSC$8435_prefix_.length)!=N.JSC$8435_prefix_;){X=d.next();if(X.done)return X;X=X.value}return XN(M?X.slice(N.JSC$8435_prefix_.length):N.mechanism_.get(X))};
return R};_.Pf=function(M){this.expiringStorage_=(M=_.hgA(M))?new pE(M):null;this.JSC$8439_domain_=document.domain||window.location.hostname};
_.Pf.prototype.set=function(M,d,N,R){N=N||31104E3;this.remove(M);if(this.expiringStorage_)try{this.expiringStorage_.set(M,d,Date.now()+N*1E3);return}catch(A){}var X="";if(R)try{X=escape((0,_.js)(d))}catch(A){return}else X=escape(d);_.kY(M,X,N,this.JSC$8439_domain_)};
_.Pf.prototype.get=function(M,d){var N=void 0,R=!this.expiringStorage_;if(!R)try{N=this.expiringStorage_.get(M)}catch(X){R=!0}if(R&&(N=_.BJ.get(M,void 0))&&(N=unescape(N),d))try{N=JSON.parse(N)}catch(X){this.remove(M),N=void 0}return N};
_.Pf.prototype.remove=function(M){this.expiringStorage_&&this.expiringStorage_.remove(M);_.BBZ(M,"/",this.JSC$8439_domain_)};
_.Pf.prototype.getCreationTime=function(M){return this.expiringStorage_&&(M=(this.expiringStorage_.getWrapper(M)||{}).creation,typeof M==="number")?M:null};var quq=function(){var M;return function(){M||(M=new _.Pf("ytidb"));return M}}();var vPq;_.qB=[];vPq=!1;var tE2=OLZ||jnZ;var B3={},sRJ=(B3.AUTH_INVALID="No user identifier specified.",B3.EXPLICIT_ABORT="Transaction was explicitly aborted.",B3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",B3.MISSING_INDEX="Index not created.",B3.MISSING_OBJECT_STORES="Object stores not created.",B3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",B3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",B3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",B3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",B3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",B3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",B3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",B3),kk={},Pvd=(kk.AUTH_INVALID="ERROR",kk.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",kk.EXPLICIT_ABORT="IGNORED",
kk.IDB_NOT_SUPPORTED="ERROR",kk.MISSING_INDEX="WARNING",kk.MISSING_OBJECT_STORES="ERROR",kk.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",kk.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",kk.QUOTA_EXCEEDED="WARNING",kk.QUOTA_MAYBE_EXCEEDED="WARNING",kk.UNKNOWN_ABORT="WARNING",kk.INCOMPATIBLE_DB_VERSION="WARNING",kk),TY={},ovg=(TY.AUTH_INVALID=!1,TY.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,TY.EXPLICIT_ABORT=!1,TY.IDB_NOT_SUPPORTED=!1,TY.MISSING_INDEX=!1,TY.MISSING_OBJECT_STORES=!1,TY.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,TY.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,TY.QUOTA_EXCEEDED=!1,TY.QUOTA_MAYBE_EXCEEDED=!0,TY.UNKNOWN_ABORT=!0,TY.INCOMPATIBLE_DB_VERSION=!1,TY),PJ=function(M,d,N,R,X){d=d===void 0?{}:d;N=N===void 0?sRJ[M]:N;R=R===void 0?Pvd[M]:R;X=X===void 0?ovg[M]:X;_.WJ.call(this,N,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:M},d));this.type=M;this.message=N;this.level=R;this.retryable=X;Object.setPrototypeOf(this,PJ.prototype)};
_.v(PJ,_.WJ);var rQJ=function(M,d){PJ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:d,foundObjectStores:M},sRJ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,rQJ.prototype)};
_.v(rQJ,PJ);var oPq=function(M,d){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.index=M;this.objectStore=d;Object.setPrototypeOf(this,oPq.prototype)};
_.v(oPq,Error);var rXN=["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 KE=function(M){this.executor=M},r2=function(M){var d=this;
this.state={status:"PENDING"};this.JSC$8467_onFulfilled=[];this.JSC$8467_onRejected=[];M=M.executor;var N=function(X){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:X};X=_.V(d.JSC$8467_onFulfilled);for(var A=X.next();!A.done;A=X.next())A=A.value,A()}},R=function(X){if(d.state.status==="PENDING"){d.state={status:"REJECTED",
reason:X};X=_.V(d.JSC$8467_onRejected);for(var A=X.next();!A.done;A=X.next())A=A.value,A()}};
try{M(N,R)}catch(X){R(X)}};
r2.all=function(M){return new r2(new KE(function(d,N){var R=[],X=M.length;X===0&&d(R);for(var A={i$jscomp$504:0};A.i$jscomp$504<M.length;A={i$jscomp$504:A.i$jscomp$504},++A.i$jscomp$504)r2.resolve(M[A.i$jscomp$504]).then(function(l){return function(k){R[l.i$jscomp$504]=k;X--;X===0&&d(R)}}(A)).catch(function(l){N(l)})}))};
r2.resolve=function(M){return new r2(new KE(function(d,N){M instanceof r2?M.then(d,N):d(M)}))};
r2.reject=function(M){return new r2(new KE(function(d,N){N(M)}))};
r2.prototype.then=function(M,d){var N=this,R=M!=null?M:JXA,X=d!=null?d:yXZ;return new r2(new KE(function(A,l){N.state.status==="PENDING"?(N.JSC$8467_onFulfilled.push(function(){K7e(N,N,R,A,l)}),N.JSC$8467_onRejected.push(function(){yQm(N,N,X,A,l)})):N.state.status==="FULFILLED"?K7e(N,N,R,A,l):N.state.status==="REJECTED"&&yQm(N,N,X,A,l)}))};
r2.prototype.catch=function(M){return this.then(void 0,M)};
var K7e=function(M,d,N,R,X){try{if(M.state.status!=="FULFILLED")throw Error("Qc");var A=N(M.state.value);A instanceof r2?JQm(M,d,A,R,X):R(A)}catch(l){X(l)}},yQm=function(M,d,N,R,X){try{if(M.state.status!=="REJECTED")throw Error("Rc");
var A=N(M.state.reason);A instanceof r2?JQm(M,d,A,R,X):R(A)}catch(l){X(l)}},JQm=function(M,d,N,R,X){d===N?X(new TypeError("Sc")):N.then(function(A){A instanceof r2?JQm(M,d,A,R,X):R(A)},function(A){X(A)})};var DB;DB=window;_.Gs=DB.ytcsi&&DB.ytcsi.now?DB.ytcsi.now:DB.performance&&DB.performance.timing&&DB.performance.now&&DB.performance.timing.navigationStart?function(){return DB.performance.timing.navigationStart+DB.performance.now()}:function(){return(new Date).getTime()};var Jm=function(M,d){this.JSC$8479_wrapped=M;this.options=d;this.transactionCount=0;this.startedMs=Math.round((0,_.Gs)());this.hasUnknownAbortedTransaction=!1},z9L,bat,wY,nvd;
Jm.prototype.add=function(M,d,N){return _.bk(this,[M],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore(M).add(d,N)})};
Jm.prototype.clear=function(M){return _.bk(this,[M],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(M).clear()})};
Jm.prototype.close=function(){this.JSC$8479_wrapped.close();var M;((M=this.options)==null?0:M.closed)&&this.options.closed()};
Jm.prototype.count=function(M,d){return _.bk(this,[M],{mode:"readonly",enableRetries:!0},function(N){return N.objectStore(M).count(d)})};
var rc=function(M,d,N){M=M.JSC$8479_wrapped.createObjectStore(d,N);return new gY(M)};
Jm.prototype.delete=function(M,d){return _.bk(this,[M],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(M).delete(d)})};
var cQL=function(M,d){return _.bk(M,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore("ResponseStore").index("byInterface").delete(d)})};
Jm.prototype.get=function(M,d){return _.bk(this,[M],{mode:"readonly",enableRetries:!0},function(N){return N.objectStore(M).get(d)})};
Jm.prototype.getAll=function(M,d,N){return _.bk(this,[M],{mode:"readonly",enableRetries:!0},function(R){return R.objectStore(M).getAll(d,N)})};
Jm.prototype.put=function(M,d,N){return _.bk(this,[M],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore(M).put(d,N)})};
Jm.prototype.objectStoreNames=function(){return Array.from(this.JSC$8479_wrapped.objectStoreNames)};
_.bk=function(M,d,N,R){var X,A,l,k,T,W,w,p,m,I,O,y;return _.B(function(c){switch(c.nextAddress){case 1:var e={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof N==="string"?e.mode=N:Object.assign(e,N);X=e;M.transactionCount++;A=X.enableRetries?3:1;l=0;case 2:if(k){c.jumpTo(4);break}l++;T=Math.round((0,_.Gs)());_.Mv(c,5);W=M.JSC$8479_wrapped.transaction(d,X.mode);e=new bLA(W);e=SDt(e,R);return _.D(c,e,7);case 7:return w=c.yieldResult,p=Math.round((0,_.Gs)()),z9L(M,T,p,l,void 0,
d.join(),X),c.return(w);case 5:m=_.Fg(c);I=Math.round((0,_.Gs)());O=KY2(m,M.JSC$8479_wrapped.name,d.join(),M.JSC$8479_wrapped.version);if((y=O instanceof PJ&&!O.retryable)||l>=A)z9L(M,T,I,l,O,d.join(),X),k=O;c.jumpTo(2);break;case 4:return c.return(Promise.reject(k))}})};
z9L=function(M,d,N,R,X,A,l){d=N-d;X?(X instanceof PJ&&(X.type==="QUOTA_EXCEEDED"||X.type==="QUOTA_MAYBE_EXCEEDED")&&vJ("QUOTA_EXCEEDED",{dbName:jw(M.JSC$8479_wrapped.name),objectStoreNames:A,transactionCount:M.transactionCount,transactionMode:l.mode}),X instanceof PJ&&X.type==="UNKNOWN_ABORT"&&(N-=M.startedMs,N<0&&N>=2147483648&&(N=0),vJ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:d,transactionCount:M.transactionCount,dbDuration:N}),M.hasUnknownAbortedTransaction=!0),
bat(M,!1,R,A,d,l.tag),_.Ic(X)):bat(M,!0,R,A,d,l.tag)};
bat=function(M,d,N,R,X,A){vJ("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:M.hasUnknownAbortedTransaction,duration:X,isSuccessful:d,tryCount:N,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})};
Jm.prototype.getVersion=function(){return this.JSC$8479_wrapped.version};
Jm.prototype.getName=function(){return this.JSC$8479_wrapped.name};
var gY=function(M){this.JSC$8494_wrapped=M};
gY.prototype.add=function(M,d){return yO(this.JSC$8494_wrapped.add(M,d))};
gY.prototype.autoIncrement=function(){return this.JSC$8494_wrapped.autoIncrement};
gY.prototype.clear=function(){return yO(this.JSC$8494_wrapped.clear()).then(function(){})};
var KA=function(M,d,N){M.JSC$8494_wrapped.createIndex(d,N,{unique:!1})};
gY.prototype.count=function(M){return yO(this.JSC$8494_wrapped.count(M))};
var e9g=function(M,d){return HJ(M,{query:d},function(N){return N.delete().then(function(){return N.continue()})}).then(function(){})};
gY.prototype.delete=function(M){return M instanceof IDBKeyRange?e9g(this,M):yO(this.JSC$8494_wrapped.delete(M))};
gY.prototype.get=function(M){return yO(this.JSC$8494_wrapped.get(M))};
gY.prototype.getAll=function(M,d){return"getAll"in IDBObjectStore.prototype?yO(this.JSC$8494_wrapped.getAll(M,d)):HaL(this,M,d)};
var HaL=function(M,d,N){var R=[];return HJ(M,{query:d},function(X){if(!(N!==void 0&&R.length>=N))return R.push(X.getValue()),X.continue()}).then(function(){return R})};
gY.prototype.index=function(M){try{return new W3(this.JSC$8494_wrapped.index(M))}catch(d){if(d instanceof Error&&d.name==="NotFoundError")throw new oPq(M,this.JSC$8494_wrapped.name);throw d;}};
gY.prototype.getName=function(){return this.JSC$8494_wrapped.name};
gY.prototype.keyPath=function(){return this.JSC$8494_wrapped.keyPath};
gY.prototype.put=function(M,d){return yO(this.JSC$8494_wrapped.put(M,d))};
var HJ=function(M,d,N){M=M.JSC$8494_wrapped.openCursor(d.query,d.direction);return nvd(M).then(function(R){return zgi(R,N)})},bLA=function(M){var d=this;
this.JSC$8502_wrapped=M;this.objectStoreCache=new Map;this.JSC$8502_aborted=!1;this.done=new Promise(function(N,R){d.JSC$8502_wrapped.addEventListener("complete",function(){N()});
d.JSC$8502_wrapped.addEventListener("error",function(X){X.currentTarget===X.target&&R(d.JSC$8502_wrapped.error)});
d.JSC$8502_wrapped.addEventListener("abort",function(){var X=d.JSC$8502_wrapped.error;if(X)R(X);else if(!d.JSC$8502_aborted){X=PJ;for(var A=d.JSC$8502_wrapped.objectStoreNames,l=[],k=0;k<A.length;k++){var T=A.item(k);if(T===null)throw Error("Tc");l.push(T)}X=new X("UNKNOWN_ABORT",{objectStoreNames:l.join(),dbName:d.JSC$8502_wrapped.db.name,mode:d.JSC$8502_wrapped.mode});R(X)}})})},SDt=function(M,d){var N=new Promise(function(R,X){try{d(M).then(function(A){R(A)}).catch(X)}catch(A){X(A),M.abort()}});
return Promise.all([N,M.done]).then(function(R){return _.V(R).next().value})};
bLA.prototype.abort=function(){this.JSC$8502_wrapped.abort();this.JSC$8502_aborted=!0;throw new PJ("EXPLICIT_ABORT");};
bLA.prototype.objectStore=function(M){M=this.JSC$8502_wrapped.objectStore(M);var d=this.objectStoreCache.get(M);d||(d=new gY(M),this.objectStoreCache.set(M,d));return d};
var W3=function(M){this.JSC$8504_wrapped=M};
W3.prototype.count=function(M){return yO(this.JSC$8504_wrapped.count(M))};
W3.prototype.delete=function(M){return _.ac(this,{query:M},function(d){return d.delete().then(function(){return d.continue()})})};
W3.prototype.get=function(M){return yO(this.JSC$8504_wrapped.get(M))};
W3.prototype.getAll=function(M,d){return"getAll"in IDBIndex.prototype?yO(this.JSC$8504_wrapped.getAll(M,d)):ia3(this,M,d)};
var ia3=function(M,d,N){var R=[];return _.ac(M,{query:d},function(X){if(!(N!==void 0&&R.length>=N))return R.push(X.getValue()),X.continue()}).then(function(){return R})};
W3.prototype.keyPath=function(){return this.JSC$8504_wrapped.keyPath};
W3.prototype.unique=function(){return this.JSC$8504_wrapped.unique};
_.ac=function(M,d,N){M=M.JSC$8504_wrapped.openCursor(d.query===void 0?null:d.query,d.direction===void 0?"next":d.direction);return nvd(M).then(function(R){return zgi(R,N)})};
wY=function(M,d){this.request=M;this.cursor=d};
nvd=function(M){return yO(M).then(function(d){return d?new wY(M,d):null})};
wY.prototype.continue=function(M){this.cursor.continue(M);return nvd(this.request)};
wY.prototype.delete=function(){return yO(this.cursor.delete()).then(function(){})};
wY.prototype.getValue=function(){return this.cursor.value};
wY.prototype.update=function(M){return yO(this.cursor.update(M))};var px=function(M,d){this.name=M;this.options=d;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},fSm;
px.prototype.openDb=function(M,d,N){N=N===void 0?{}:N;return HLS(M,d,N)};
px.prototype.delete=function(M){M=M===void 0?{}:M;return _.Sw(this.name,M)};
fSm=function(M,d){return new PJ("INCOMPATIBLE_DB_VERSION",{dbName:M.name,oldVersion:M.options.version,newVersion:d})};
_.zs=function(M,d){if(!d)throw oc("openWithToken",jw(M.name));return M.open()};
px.prototype.open=function(){var M=this;if(!this.isCompatible)throw fSm(this);if(this.connectionPromise)return this.connectionPromise;var d,N=function(){M.connectionPromise===d&&(M.connectionPromise=void 0)},R={blocking:function(A){A.close()},
closed:N,terminated:N,upgrade:this.options.upgrade},X=function(){var A,l,k,T,W,w,p,m,I,O;return _.B(function(y){switch(y.nextAddress){case 1:return l=(A=Error().stack)!=null?A:"",_.Mv(y,2),_.D(y,M.openDb(M.name,M.options.version,R),4);case 4:for(var c=k=y.yieldResult,e=M.options,t=[],C=_.V(Object.keys(e.objectStores)),U=C.next();!U.done;U=C.next()){U=U.value;var Fi=e.objectStores[U],Y=Fi.removedAtVersion===void 0?Number.MAX_VALUE:Fi.removedAtVersion;!(c.JSC$8479_wrapped.version>=Fi.addedAtVersion)||
c.JSC$8479_wrapped.version>=Y||c.JSC$8479_wrapped.objectStoreNames.contains(U)||t.push(U)}T=t;if(T.length===0){y.jumpTo(5);break}W=Object.keys(M.options.objectStores);w=k.objectStoreNames();if(M.timesReopenedToFixMissingObjectStore<_.ZR("ytidb_reopen_db_retries",0))return M.timesReopenedToFixMissingObjectStore++,k.close(),_.Ic(new PJ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:W,foundObjectStores:w})),y.return(X());if(!(M.timesDeletedToFixMissingObjectStore<_.ZR("ytidb_remake_db_retries",
1))){y.jumpTo(6);break}M.timesDeletedToFixMissingObjectStore++;return _.D(y,M.delete(),7);case 7:return _.Ic(new PJ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:W,foundObjectStores:w})),y.return(X());case 6:throw new rQJ(w,W);case 5:return y.return(k);case 2:p=_.Fg(y);if(p instanceof DOMException?p.name!=="VersionError":"DOMError"in self&&p instanceof DOMError?p.name!=="VersionError":!(p instanceof Object&&"message"in p)||p.message!=="An attempt was made to open a database using a lower version than the existing version."){y.jumpTo(8);
break}return _.D(y,M.openDb(M.name,void 0,Object.assign({},R,{upgrade:void 0})),9);case 9:m=y.yieldResult;I=m.getVersion();if(M.options.version!==void 0&&I>M.options.version+1)throw m.close(),M.isCompatible=!1,fSm(M,I);return y.return(m);case 8:throw N(),p instanceof Error&&!_.Q("ytidb_async_stack_killswitch")&&(p.stack=p.stack+"\n"+l.substring(l.indexOf("\n")+1)),KY2(p,M.name,"",(O=M.options.version)!=null?O:-1);}})};
return this.connectionPromise=d=X()};var nPr=new px("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(M,d){d(1)&&rc(M,"databases",{keyPath:"actualName"})}});var Uw6,GD6=new function(){}(new function(){});new _.MX;var L7C=function(M,d){px.call(this,M,d);this.options=d;Od(M)};
_.v(L7C,px);var RJN=function(M,d){var N;return function(){N||(N=new L7C(M,d));return N}};
L7C.prototype.openDb=function(M,d,N){N=N===void 0?{}:N;return(this.options.shared?ZLZ:Yui)(M,d,Object.assign({},N))};
L7C.prototype.delete=function(M){M=M===void 0?{}:M;return(this.options.shared?NUr:EPN)(this.name,M)};var t5e={},X1p=tm("ytGcfConfig",{objectStores:(t5e.coldConfigStore={addedAtVersion:1},t5e.hotConfigStore={addedAtVersion:1},t5e),shared:!1,upgrade:function(M,d){d(1)&&(KA(rc(M,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),KA(rc(M,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Gid=function(){_.DL.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var M=_.cy("yt.gcf.config.hotUpdateCallbacks");M?(this.localHotConfigJobQueue=[].concat(_.wu(M)),this.sharedHotConfigJobQueue=M):(this.sharedHotConfigJobQueue=[],_.fE("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.v(Gid,_.DL);Gid.prototype.disposeInternal=function(){for(var M=_.V(this.localHotConfigJobQueue),d=M.next();!d.done;d=M.next()){var N=this.sharedHotConfigJobQueue;d=N.indexOf(d.value);d>=0&&N.splice(d,1)}this.localHotConfigJobQueue.length=0;_.DL.prototype.disposeInternal.call(this)};var Wh=function(){var M=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Gid;this.TEST_ONLY={initializeConfigDb:function(){M.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return M.coldGlobalConfigGroup},
setHotConfigGroup:function(d){aSd(M,d)},
setHotHashData:function(d){M.setHotHashData(d)},
setColdConfigGroup:function(d){UZI(M,d)},
getColdHashData:function(){return M.coldHashData},
getHotHashData:function(){return M.hotHashData},
getHotConfigGroup:function(){return M.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return uye()},
getExportedHotConfigGroup:function(){return mE()},
getExportedColdHashData:function(){return _.cy("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.cy("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){CvL(M)},
resetInstance:function(){M.setHotHashData(void 0);xZz(M);delete Wh.instance},
setDebounceTimer:function(d){M.debounceTimer=d},
getDebounceTimer:function(){return M.debounceTimer}}},YDV=function(){if(!Wh.instance){var M=new Wh;
Wh.instance=M}return Wh.instance},MFL=function(M){var d;
_.B(function(N){if(N.nextAddress==1)return _.Q("start_client_gcf")||_.Q("delete_gcf_config_db")?_.Q("start_client_gcf")?_.D(N,_.LE(),3):N.jumpTo(2):N.return();N.nextAddress!=2&&((d=N.yieldResult)&&_.g2()&&!_.Q("delete_gcf_config_db")?(M.isConfigDbInitialized=!0,CvL(M)):(Za3(M),EvI(M)));return _.Q("delete_gcf_config_db")?_.D(N,BUZ(),0):N.jumpTo(0)})},gjv=function(){var M;
return(M=mE())!=null?M:_.rK("RAW_HOT_CONFIG_GROUP")},dEd=function(M){var d,N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:if(M.hotGlobalConfigGroup)return k.return(mE());if(!M.isConfigDbInitialized)return d=oc("getHotConfig IDB not initialized"),_.Sx(d),k.return(Promise.reject(d));N=ik();R=_.rK("TIME_CREATED_MS");if(!N){X=oc("getHotConfig token error");_.Sx(X);k.jumpTo(2);break}return _.D(k,$i2(N),3);case 3:if((A=k.yieldResult)&&A.timestamp>R)return aSd(M,A.config),M.setHotHashData(A.hashData),k.return(mE());case 2:EvI(M);if(!(N&&M.hotGlobalConfigGroup&&M.hotHashData)){k.jumpTo(4);
break}return _.D(k,A$p(M.hotGlobalConfigGroup,M.hotHashData,N,R),4);case 4:return M.hotGlobalConfigGroup?k.return(mE()):(l=new _.WJ("Config not available in ytConfig"),_.Sx(l),k.return(Promise.reject(l)))}})},Rhd=function(M){var d,N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:if(M.coldGlobalConfigGroup)return k.return(uye());if(!M.isConfigDbInitialized)return d=oc("getColdConfig IDB not initialized"),_.Sx(d),k.return(Promise.reject(d));N=ik();R=_.rK("TIME_CREATED_MS");if(!N){X=oc("getColdConfig");_.Sx(X);k.jumpTo(2);break}return _.D(k,lyi(N),3);case 3:if((A=k.yieldResult)&&A.timestamp>R)return UZI(M,A.config),NDt(M,A.configData),xZz(M,A.hashData),k.return(uye());case 2:Za3(M);if(!(N&&M.coldGlobalConfigGroup&&M.coldHashData&&
M.configData)){k.jumpTo(4);break}return _.D(k,VDZ(M.coldGlobalConfigGroup,M.coldHashData,M.configData,N,R),4);case 4:return M.coldGlobalConfigGroup?k.return(uye()):(l=new _.WJ("Config not available in ytConfig"),_.Sx(l),k.return(Promise.reject(l)))}})},CvL=function(M){if(!M.hotGlobalConfigGroup||!M.coldGlobalConfigGroup){if(!ik()){var d=oc("scheduleGetConfigs");
_.Sx(d)}M.initJob||(M.initJob=_.IQ.addLowPriorityJob(function(){return _.B(function(N){switch(N.nextAddress){case 1:return _.Mv(N,2),_.D(N,dEd(M),4);case 4:_.cJ(N,3);break;case 2:_.Fg(N);case 3:return _.Mv(N,5),_.D(N,Rhd(M),7);case 7:_.cJ(N,6);break;case 5:_.Fg(N);case 6:M.initJob&&(M.initJob=0),_.Vy(N)}})},100))}},$xi=function(M,d,N){var R,X,A;
return _.B(function(l){switch(l.nextAddress){case 1:if(!_.Q("start_client_gcf")){l.jumpTo(0);break}N&&aSd(M,N);M.setHotHashData(d);R=ik();if(!R){l.jumpTo(3);break}if(N){l.jumpTo(4);break}return _.D(l,$i2(R),5);case 5:X=l.yieldResult,N=(A=X)==null?void 0:A.config;case 4:return _.D(l,A$p(N,d,R),3);case 3:if(N)for(var k=N,T=_.V(M.configUpdateService.sharedHotConfigJobQueue),W=T.next();!W.done;W=T.next())W=W.value,W(k);_.Vy(l)}})},BkS=function(M,d,N){var R,X,A,l;
return _.B(function(k){if(k.nextAddress==1){if(!_.Q("start_client_gcf"))return k.jumpTo(0);xZz(M,d);return(R=ik())?N?k.jumpTo(4):_.D(k,lyi(R),5):k.jumpTo(0)}k.nextAddress!=4&&(X=k.yieldResult,N=(A=X)==null?void 0:A.config);if(!N)return k.jumpTo(0);l=N.configData;return _.D(k,VDZ(N,d,l,R),0)})},oSi=function(){var M=YDV(),d=(0,_.Gs)()-M.debounceTimer;
if(!(M.debounceTimer!==0&&d<_.ZR("send_config_hash_timer"))){d=_.cy("yt.gcf.config.coldConfigData");var N=_.cy("yt.gcf.config.hotHashData"),R=_.cy("yt.gcf.config.coldHashData");d&&N&&R&&(M.debounceTimer=(0,_.Gs)());return{coldConfigData:d,hotHashData:N,coldHashData:R}}},Za3=function(M){UZI(M,_.rK("RAW_COLD_CONFIG_GROUP"));
xZz(M,_.rK("SERIALIZED_COLD_HASH_DATA"));var d;NDt(M,(d=M.coldGlobalConfigGroup)==null?void 0:d.configData)},EvI=function(M){aSd(M,_.rK("RAW_HOT_CONFIG_GROUP"));
M.setHotHashData(_.rK("SERIALIZED_HOT_HASH_DATA"))},aSd=function(M,d){M.hotGlobalConfigGroup=d;
_.fE("yt.gcf.config.hotConfigGroup",M.hotGlobalConfigGroup||null)},UZI=function(M,d){M.coldGlobalConfigGroup=d;
_.fE("yt.gcf.config.coldConfigGroup",M.coldGlobalConfigGroup||null)};
Wh.prototype.setHotHashData=function(M){this.hotHashData=M;_.fE("yt.gcf.config.hotHashData",this.hotHashData||null)};
var xZz=function(M,d){M.coldHashData=d;_.fE("yt.gcf.config.coldHashData",M.coldHashData||null)},NDt=function(M,d){M.configData=d;
_.fE("yt.gcf.config.coldConfigData",M.configData||null)},mE=function(){return _.cy("yt.gcf.config.hotConfigGroup")},uye=function(){return _.cy("yt.gcf.config.coldConfigGroup")};var NU={},Xmg=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";NU.assign=function(M){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var N=d.shift();if(N){if(typeof N!=="object")throw new TypeError("Wc`"+N);for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(M[R]=N[R])}}return M};
NU.shrinkBuf=function(M,d){if(M.length===d)return M;if(M.subarray)return M.subarray(0,d);M.length=d;return M};
var FyL={arraySet:function(M,d,N,R,X){if(d.subarray&&M.subarray)M.set(d.subarray(N,N+R),X);else for(var A=0;A<R;A++)M[X+A]=d[N+A]},
flattenChunks:function(M){var d,N;var R=N=0;for(d=M.length;R<d;R++)N+=M[R].length;var X=new Uint8Array(N);R=N=0;for(d=M.length;R<d;R++){var A=M[R];X.set(A,N);N+=A.length}return X}},Aad={arraySet:function(M,d,N,R,X){for(var A=0;A<R;A++)M[X+A]=d[N+A]},
flattenChunks:function(M){return[].concat.apply([],M)}};
NU.setTyped=function(){Xmg?(NU.Buf8=Uint8Array,NU.Buf16=Uint16Array,NU.Buf32=Int32Array,NU.assign(NU,FyL)):(NU.Buf8=Array,NU.Buf16=Array,NU.Buf32=Array,NU.assign(NU,Aad))};
NU.setTyped();var VFt=!0;try{new Uint8Array(1)}catch(M){VFt=!1}
var $rZ=function(M){var d,N,R=M.length,X=0;for(d=0;d<R;d++){var A=M.charCodeAt(d);if((A&64512)===55296&&d+1<R){var l=M.charCodeAt(d+1);(l&64512)===56320&&(A=65536+(A-55296<<10)+(l-56320),d++)}X+=A<128?1:A<2048?2:A<65536?3:4}var k=new NU.Buf8(X);for(d=N=0;N<X;d++)A=M.charCodeAt(d),(A&64512)===55296&&d+1<R&&(l=M.charCodeAt(d+1),(l&64512)===56320&&(A=65536+(A-55296<<10)+(l-56320),d++)),A<128?k[N++]=A:(A<2048?k[N++]=192|A>>>6:(A<65536?k[N++]=224|A>>>12:(k[N++]=240|A>>>18,k[N++]=128|A>>>12&63),k[N++]=
128|A>>>6&63),k[N++]=128|A&63);return k};var xiZ={};xiZ=function(M,d,N,R){var X=M&65535|0;M=M>>>16&65535|0;for(var A;N!==0;){A=N>2E3?2E3:N;N-=A;do X=X+d[R++]|0,M=M+X|0;while(--A);X%=65521;M%=65521}return X|M<<16|0};for(var pA={},h4,lto=[],$Eg=0;$Eg<256;$Eg++){h4=$Eg;for(var BDz=0;BDz<8;BDz++)h4=h4&1?3988292384^h4>>>1:h4>>>1;lto[$Eg]=h4}pA=function(M,d,N,R){N=R+N;for(M^=-1;R<N;R++)M=M>>>8^lto[(M^d[R])&255];return M^-1};var Ak={};Ak={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 HbA=[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],ibr=[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],l4q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],uPZ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bf=Array(576);Zs(Bf);var kW=Array(60);Zs(kW);var XV=Array(512);Zs(XV);var RQ=Array(256);Zs(RQ);var nSZ=Array(29);Zs(nSZ);var fyr=Array(30);Zs(fyr);var FZv,ATj,VpN,XDp=!1;var qU;
qU=[new QN(0,0,0,0,function(M,d){var N=65535;for(N>M.pending_buf_size-5&&(N=M.pending_buf_size-5);;){if(M.lookahead<=1){m0(M);if(M.lookahead===0&&d===0)return 1;if(M.lookahead===0)break}M.strstart+=M.lookahead;M.lookahead=0;var R=M.block_start+N;if(M.strstart===0||M.strstart>=R)if(M.lookahead=M.strstart-R,M.strstart=R,Dx(M,!1),M.strm.avail_out===0)return 1;if(M.strstart-M.block_start>=M.w_size-262&&(Dx(M,!1),M.strm.avail_out===0))return 1}M.insert=0;if(d===4)return Dx(M,!0),M.strm.avail_out===0?3:
4;M.strstart>M.block_start&&Dx(M,!1);return 1}),
new QN(4,4,8,4,YNj),new QN(4,5,16,8,YNj),new QN(4,6,32,32,YNj),new QN(4,4,16,16,hk),new QN(8,16,32,32,hk),new QN(8,16,128,128,hk),new QN(8,32,128,256,hk),new QN(32,128,258,1024,hk),new QN(32,258,258,4096,hk)];var R5q={};R5q=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 B_N=Object.prototype.toString;
N_i.prototype.push=function(M,d){var N=this.strm,R=this.options.chunkSize;if(this.ended)return!1;var X=d===~~d?d:d===!0?4:0;typeof M==="string"?N.input=$rZ(M):B_N.call(M)==="[object ArrayBuffer]"?N.input=new Uint8Array(M):N.input=M;N.next_in=0;N.avail_in=N.input.length;do{N.avail_out===0&&(N.output=new NU.Buf8(R),N.next_out=0,N.avail_out=R);M=drZ(N,X);if(M!==1&&M!==0)return kaC(this,M),this.ended=!0,!1;if(N.avail_out===0||N.avail_in===0&&(X===4||X===2))if(this.options.to==="string"){var A=NU.shrinkBuf(N.output,
N.next_out);d=A;A=A.length;if(A<65537&&(d.subarray&&VFt||!d.subarray))d=String.fromCharCode.apply(null,NU.shrinkBuf(d,A));else{for(var l="",k=0;k<A;k++)l+=String.fromCharCode(d[k]);d=l}this.chunks.push(d)}else d=NU.shrinkBuf(N.output,N.next_out),this.chunks.push(d)}while((N.avail_in>0||N.avail_out===0)&&M!==1);if(X===4)return(N=this.strm)&&N.state?(R=N.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?M=VN(N,-2):(N.state=null,M=R===113?VN(N,-3):0)):M=-2,kaC(this,M),this.ended=
!0,M===0;X===2&&(kaC(this,0),N.avail_out=0);return!0};
var kaC=function(M,d){d===0&&(M.result=M.options.to==="string"?M.chunks.join(""):NU.flattenChunks(M.chunks));M.chunks=[];M.err=d;M.msg=M.strm.msg};var TDm=typeof TextEncoder!=="undefined"?new TextEncoder:null,n$Z=TDm?function(M){return TDm.encode(M)}:function(M){M=_.T5(M);
for(var d=new Uint8Array(M.length),N=0;N<d.length;N++)d[N]=M[N];return d};var hVN={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},qMZ={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Qw=function(M,d){this.version=M;this.args=d};
Qw.prototype.serialize=function(){return{version:this.version,args:this.args}};var WZZ=function(M,d){this.topic=M;this.dataClass=d};
WZZ.prototype.toString=function(){return this.topic};var DEL=_.cy("ytPubsub2Pubsub2Instance")||new _.lk;_.lk.prototype.subscribe=_.lk.prototype.subscribe;_.lk.prototype.unsubscribeByKey=_.lk.prototype.unsubscribeByKey;_.lk.prototype.publish=_.lk.prototype.publish;_.lk.prototype.clear=_.lk.prototype.clear;_.fE("ytPubsub2Pubsub2Instance",DEL);var g$A=_.cy("ytPubsub2Pubsub2SubscribedKeys")||{};_.fE("ytPubsub2Pubsub2SubscribedKeys",g$A);var pDq=_.cy("ytPubsub2Pubsub2TopicToKeys")||{};_.fE("ytPubsub2Pubsub2TopicToKeys",pDq);
var wDp=_.cy("ytPubsub2Pubsub2IsAsync")||{};_.fE("ytPubsub2Pubsub2IsAsync",wDp);_.fE("ytPubsub2Pubsub2SkipSubKey",null);var PYr=void 0,jzj=void 0;var z5i=_.ZR("max_body_size_to_compress",5E5),bhv=_.ZR("min_body_size_to_compress",500),OI=!0,LZ6=0,j6=0,f4i=_.ZR("compression_performance_threshold_lr",250),tp6=_.ZR("slow_compressions_before_abandon_count",4),KZS=!1,yTi=new Map,HhS=1,e5N=!0;_.RX(sI,UrS);sI.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 gCC=function(M,d,N){N||(N=0);var R=M.W_;if(typeof d==="string")for(var X=0;X<16;X++)R[X]=d.charCodeAt(N)<<24|d.charCodeAt(N+1)<<16|d.charCodeAt(N+2)<<8|d.charCodeAt(N+3),N+=4;else for(X=0;X<16;X++)R[X]=d[N]<<24|d[N+1]<<16|d[N+2]<<8|d[N+3],N+=4;for(d=16;d<80;d++)N=R[d-3]^R[d-8]^R[d-14]^R[d-16],R[d]=(N<<1|N>>>31)&4294967295;d=M.chain_[0];N=M.chain_[1];X=M.chain_[2];for(var A=M.chain_[3],l=M.chain_[4],k,T,W=0;W<80;W++)W<40?W<20?(k=A^N&(X^A),T=1518500249):(k=N^X^A,T=1859775393):W<60?(k=N&X|A&(N|X),
T=2400959708):(k=N^X^A,T=3395469782),k=(d<<5|d>>>27)+k+l+T+R[W]&4294967295,l=A,A=X,X=(N<<30|N>>>2)&4294967295,N=d,d=k;M.chain_[0]=M.chain_[0]+d&4294967295;M.chain_[1]=M.chain_[1]+N&4294967295;M.chain_[2]=M.chain_[2]+X&4294967295;M.chain_[3]=M.chain_[3]+A&4294967295;M.chain_[4]=M.chain_[4]+l&4294967295};
sI.prototype.update=function(M,d){if(M!=null){d===void 0&&(d=M.length);for(var N=d-this.blockSize,R=0,X=this.buf_,A=this.inbuf_;R<d;){if(A==0)for(;R<=N;)gCC(this,M,R),R+=this.blockSize;if(typeof M==="string")for(;R<d;){if(X[A]=M.charCodeAt(R),++A,++R,A==this.blockSize){gCC(this,X);A=0;break}}else for(;R<d;)if(X[A]=M[R],++A,++R,A==this.blockSize){gCC(this,X);A=0;break}}this.inbuf_=A;this.total_+=d}};
sI.prototype.digest=function(){var M=[],d=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var N=this.blockSize-1;N>=56;N--)this.buf_[N]=d&255,d/=256;gCC(this,this.buf_);for(N=d=0;N<5;N++)for(var R=24;R>=0;R-=8)M[d]=this.chain_[N]>>R&255,++d;return M};var xrZ;var IU=function(M){var d=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(w){d.databaseToken=w},
triggerThrottle:function(){d.throttledSend()},
cancelThrottle:function(){d.cancelThrottledSend()},
immediateSend:function(w){return _.B(function(p){return _.D(p,d.immediateSend(w),0)})},
requestWithinAgeLimit:function(w,p){return d.requestWithinAgeLimit(w,p)},
retryQueuedRequests:function(){d.retryQueuedRequests()}};
var N;this.throttleTimeout=(N=M.throttleTimeout)!=null?N:100;var R;this.retryMaxAttempts=(R=M.retryMaxAttempts)!=null?R:1;var X;this.requestAgeLimitMs=(X=M.requestAgeLimitMs)!=null?X:2592E6;var A;this.queuedRequestAgeLimitMs=(A=M.queuedRequestAgeLimitMs)!=null?A:12E4;var l;this.retryDelayMs=(l=M.retryDelayMs)!=null?l:5E3;var k;this.databaseToken=(k=M.databaseToken)!=null?k:void 0;this.enableCleaning=!!M.enableCleaning;var T;this.cleaningRate=(T=M.cleaningRate)!=null?T:.1;var W;this.potentialEsfErrorLimit=
(W=M.potentialEsfErrorLimit)!=null?W:10;M.handleError&&(this.handleError=M.handleError);M.handleWarning&&(this.handleWarning=M.handleWarning);M.disableYtIdbTransactions&&(this.disableYtIdbTransactions=M.disableYtIdbTransactions);M.bypassDbTokenDependency&&(this.bypassDbTokenDependency=M.bypassDbTokenDependency);this.getBooleanFlag=M.getBooleanFlag;this.jobManager=M.jobManager;this.logsStore=M.logsStore;this.networkManager=M.networkManager;this.sendFn=M.sendFn;this.onlineEvent=M.onlineEvent;this.offlineEvent=
M.offlineEvent;qL(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Wyz(this)},Wyz=function(M){qL(M)&&!M.disableYtIdbTransactions&&(M.initialized=!0,M.enableCleaning&&Math.random()<=M.cleaningRate&&M.logsStore.cleanLogsStore(M.databaseToken),M.retryQueuedRequests(),M.networkManager.isNetworkAvailable()&&M.throttledSend(),M.networkManager.listen(M.onlineEvent,M.throttledSend.bind(M)),M.networkManager.listen(M.offlineEvent,M.cancelThrottledSend.bind(M)))};
_.F=IU.prototype;_.F.writeThenSend=function(M,d){var N=this;d=d===void 0?{}:d;if(qL(this)&&this.initialized){var R={url:M,options:d,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(R,this.databaseToken).then(function(X){R.id=X;N.networkManager.isNetworkAvailable()&&N.immediateSend(R)}).catch(function(X){N.immediateSend(R);
wm3(N,X)})}else this.sendFn(M,d)};
_.F.sendThenWrite=function(M,d,N){var R=this;d=d===void 0?{}:d;if(qL(this)&&this.initialized){var X={url:M,options:d,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(X.skipRetry=N);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!X.skipRetry){if(!X.skipRetry){var A=d.onError?d.onError:function(){};
d.onError=function(l,k){return _.B(function(T){if(T.nextAddress==1)return _.D(T,R.logsStore.set(X,R.databaseToken).catch(function(W){wm3(R,W)}),2);
A(l,k);_.Vy(T)})}}this.sendFn(M,d,X.skipRetry)}else this.logsStore.set(X,this.databaseToken).catch(function(l){R.sendFn(M,d,X.skipRetry);
wm3(R,l)})}else this.sendFn(M,d,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&N)};
_.F.sendAndWrite=function(M,d){var N=this;d=d===void 0?{}:d;if(qL(this)&&this.initialized){var R={url:M,options:d,timestamp:this.now(),status:"NEW",sendCount:0},X=!1,A=d.onSuccess?d.onSuccess:function(){};
R.options.onSuccess=function(l,k){R.id!==void 0?N.logsStore.deleteRequest(R.id,N.databaseToken):X=!0;N.networkManager.networkStatusHint&&N.getBooleanFlag&&N.getBooleanFlag("vss_network_hint")&&N.networkManager.networkStatusHint(!0);A(l,k)};
this.sendFn(R.url,R.options,void 0,!0);this.logsStore.set(R,this.databaseToken).then(function(l){R.id=l;X&&N.logsStore.deleteRequest(R.id,N.databaseToken)}).catch(function(l){wm3(N,l)})}else this.sendFn(M,d,void 0,!0)};
_.F.throttledSend=function(){var M=this;if(!qL(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.logsStore.getMostRecentByStatus("NEW",M.databaseToken),2);if(N.nextAddress!=3)return d=N.yieldResult,d?_.D(N,M.immediateSend(d),3):(M.cancelThrottledSend(),N.return());M.intervalJob&&(M.intervalJob=0,M.throttledSend());_.Vy(N)})},this.throttleTimeout))};
_.F.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.F.immediateSend=function(M){var d=this,N;return _.B(function(R){switch(R.nextAddress){case 1:if(!qL(d))throw Error("$c");if(M.id===void 0){R.jumpTo(2);break}return _.D(R,d.logsStore.markAsQueued(M.id,d.databaseToken),3);case 3:(N=R.yieldResult)||d.handleWarning(Error("ad"));case 2:if(d.requestWithinAgeLimit(M,d.requestAgeLimitMs)){R.jumpTo(4);break}d.handleWarning(Error("bd"));if(M.id===void 0){R.jumpTo(5);break}return _.D(R,d.logsStore.deleteRequest(M.id,d.databaseToken),5);case 5:return R.return();
case 4:M.skipRetry||(M=pmL(d,M));if(!M){R.jumpTo(0);break}if(!M.skipRetry||M.id===void 0){R.jumpTo(8);break}return _.D(R,d.logsStore.deleteRequest(M.id,d.databaseToken),8);case 8:d.sendFn(M.url,M.options,!!M.skipRetry),_.Vy(R)}})};
var pmL=function(M,d){if(!qL(M))throw Error("cd");var N=d.options.onError?d.options.onError:function(){};
d.options.onError=function(X,A){var l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:l=dXZ(A);(k=NfL(A))&&M.getBooleanFlag&&M.getBooleanFlag("web_enable_error_204")&&M.handleError(Error("dd"),d.url,A);if(!(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&l||M.getBooleanFlag&&!M.getBooleanFlag("nwl_consider_error_code")&&M.potentialEsfErrorCounter<=M.potentialEsfErrorLimit)){w.jumpTo(2);break}if(!M.networkManager.sendNetworkCheckRequest){w.jumpTo(3);break}return _.D(w,M.networkManager.sendNetworkCheckRequest(),
3);case 3:if(M.networkManager.isNetworkAvailable()){w.jumpTo(2);break}N(X,A);if(!M.getBooleanFlag||!M.getBooleanFlag("nwl_consider_error_code")||((T=d)==null?void 0:T.id)===void 0){w.jumpTo(6);break}return _.D(w,M.logsStore.resetRequest(d.id,M.databaseToken,!1),6);case 6:return w.return();case 2:if(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&!l&&M.potentialEsfErrorCounter>M.potentialEsfErrorLimit)return w.return();M.potentialEsfErrorCounter++;if(((W=d)==null?void 0:W.id)===void 0){w.jumpTo(8);
break}return d.sendCount<M.retryMaxAttempts?_.D(w,M.logsStore.resetRequest(d.id,M.databaseToken,!0,k?!1:void 0),12):_.D(w,M.logsStore.deleteRequest(d.id,M.databaseToken),8);case 12:M.jobManager.addLowPriorityJob(function(){M.networkManager.isNetworkAvailable()&&M.throttledSend()},M.retryDelayMs);
case 8:N(X,A),_.Vy(w)}})};
var R=d.options.onSuccess?d.options.onSuccess:function(){};
d.options.onSuccess=function(X,A){var l;return _.B(function(k){if(k.nextAddress==1)return((l=d)==null?void 0:l.id)===void 0?k.jumpTo(2):_.D(k,M.logsStore.deleteRequest(d.id,M.databaseToken),2);M.networkManager.networkStatusHint&&M.getBooleanFlag&&M.getBooleanFlag("vss_network_hint")&&M.networkManager.networkStatusHint(!0);R(X,A);_.Vy(k)})};
return d};
IU.prototype.requestWithinAgeLimit=function(M,d){M=M.timestamp;return this.now()-M>=d?!1:!0};
IU.prototype.retryQueuedRequests=function(){var M=this;if(!qL(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(d){d&&!M.requestWithinAgeLimit(d,M.queuedRequestAgeLimitMs)?M.jobManager.addLowPriorityJob(function(){return _.B(function(N){if(N.nextAddress==1)return d.id===void 0?N.jumpTo(2):_.D(N,M.logsStore.resetRequest(d.id,M.databaseToken),2);M.retryQueuedRequests();_.Vy(N)})}):M.networkManager.isNetworkAvailable()&&M.throttledSend()})};
var wm3=function(M,d){M.writeError&&!M.networkManager.isNetworkAvailable()?M.writeError(d):M.handleError(d)},qL=function(M){return!!M.databaseToken||M.bypassDbTokenDependency};var RrL;var DxA={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519};var mEV={},DXi=tm("ServiceWorkerLogsDatabase",{objectStores:(mEV.SWHealthLog={addedAtVersion:1},mEV),shared:!0,upgrade:function(M,d){d(1)&&KA(rc(M,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var O3Z={},vBi=0;var oBZ;var v3=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},z2=function(){if(!v3.instance){var M=_.cy("yt.networkRequestMonitor.instance")||new v3;
_.fE("yt.networkRequestMonitor.instance",M);v3.instance=M}return v3.instance};
v3.prototype.requestComplete=function(M,d){d&&(this.anyRequestHasSucceeded=!0);M=this.removeParams(M);this.requestMap.get(M)||this.requestMap.set(M,d)};
v3.prototype.isEndpointCFR=function(M){M=this.removeParams(M);return(M=this.requestMap.get(M))?!1:M===!1&&this.anyRequestHasSucceeded?!0:null};
v3.prototype.removeParams=function(M){return M.split("?")[0]};
v3.prototype.removeParams=v3.prototype.removeParams;v3.prototype.isEndpointCFR=v3.prototype.isEndpointCFR;v3.prototype.requestComplete=v3.prototype.requestComplete;v3.getInstance=z2;var OM=function(M){_.mk.call(this);var d=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=M!=null?M:{addLowPriorityJob:function(X,A){return setTimeout(X,A)},
cancelJob:function(X){clearTimeout(X)}};
var N,R;this.isOnline=(R=(N=window.navigator)==null?void 0:N.onLine)!=null?R:!0;this.onNavigatorChange=function(){return _.B(function(X){return _.D(X,hho(d),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Q_m(this)};
_.v(OM,_.mk);OM.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete OM.instance};
OM.prototype.isNetworkAvailable=function(){return this.isOnline};
var Q_m=function(M){M.pollingJob=M.jobManager.addLowPriorityJob(function(){var d;return _.B(function(N){if(N.nextAddress==1)return M.isOnline?((d=window.navigator)==null?0:d.onLine)?N.jumpTo(3):_.D(N,hho(M),3):_.D(N,hho(M),3);Q_m(M);_.Vy(N)})},3E4)},hho=function(M,d){return M.networkRequestPromise?M.networkRequestPromise:M.networkRequestPromise=new Promise(function(N){var R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:return R=window.AbortController?new window.AbortController:void 0,A=(X=R)==null?void 0:X.signal,l=!1,_.Mv(k,2,3),R&&(M.abortTimeoutKey=M.jobManager.addLowPriorityJob(function(){R.abort()},d||2E4)),_.D(k,fetch("/generate_204",{method:"HEAD",
signal:A}),5);case 5:l=!0;case 3:_.du(k);M.networkRequestPromise=void 0;M.abortTimeoutKey&&(M.jobManager.cancelJob(M.abortTimeoutKey),M.abortTimeoutKey=0);l!==M.isOnline&&(M.isOnline=l,M.isOnline?M.dispatchEvent("networkstatus-online"):M.dispatchEvent("networkstatus-offline"));N(l);_.Xg(k,0);break;case 2:_.Fg(k),l=!1,k.jumpTo(3)}})})};var jX=function(){_.mk.call(this);var M=this;this.shouldFlushErrors=!1;OM.instance||(OM.instance=new OM(_.IQ));this.sharedNetworkStatusManager=OM.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(M.shouldFlushErrors&&_.Q("offline_error_handling")){var d=r22().get("errors",!0);if(d){for(var N in d)if(d[N]){var R=new _.WJ(N,"sent via offline_errors");R.name=d[N].name;R.stack=d[N].stack;R.level=d[N].level;_.yD(R)}r22().set("errors",{},2592E3,!0)}}})};
_.v(jX,_.mk);var qXt=function(){if(!jX.instance){var M=_.cy("yt.networkStatusManager.instance")||new jX;_.fE("yt.networkStatusManager.instance",M);jX.instance=M}return jX.instance};
_.F=jX.prototype;_.F.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.F.networkStatusHint=function(M){this.sharedNetworkStatusManager.isOnline=M};
_.F.getWindowStatus=function(){var M=window.navigator.onLine;return M===void 0?!0:M};
_.F.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.F.listen=function(M,d){return this.sharedNetworkStatusManager.listen(M,d)};
_.F.sendNetworkCheckRequest=function(M){M=hho(this.sharedNetworkStatusManager,M);M.then(function(d){_.Q("use_cfr_monitor")&&z2().requestComplete("generate_204",d)});
return M};
jX.prototype.sendNetworkCheckRequest=jX.prototype.sendNetworkCheckRequest;jX.prototype.listen=jX.prototype.listen;jX.prototype.enableErrorFlushing=jX.prototype.enableErrorFlushing;jX.prototype.getWindowStatus=jX.prototype.getWindowStatus;jX.prototype.networkStatusHint=jX.prototype.networkStatusHint;jX.prototype.isNetworkAvailable=jX.prototype.isNetworkAvailable;jX.getInstance=qXt;_.S6=function(M){M=M===void 0?{}:M;_.mk.call(this);var d=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=qXt();var N=_.cy("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);N&&(M.rateLimit?(this.rateLimit=M.rateLimit,N("networkstatus-online",function(){Ite(d,"publicytnetworkstatus-online")}),N("networkstatus-offline",function(){Ite(d,"publicytnetworkstatus-offline")})):(N("networkstatus-online",function(){d.dispatchEvent("publicytnetworkstatus-online")}),N("networkstatus-offline",
function(){d.dispatchEvent("publicytnetworkstatus-offline")})))};
_.v(_.S6,_.mk);_.S6.prototype.isNetworkAvailable=function(){var M=_.cy("yt.networkStatusManager.instance.isNetworkAvailable");return M?M.bind(this.nsmInstance)():!0};
_.S6.prototype.networkStatusHint=function(M){var d=_.cy("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);d&&d(M)};
_.S6.prototype.sendNetworkCheckRequest=function(M){var d=this,N;return _.B(function(R){N=_.cy("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.nsmInstance);return _.Q("skip_network_check_if_cfr")&&z2().isEndpointCFR("generate_204")?R.return(new Promise(function(X){var A;d.networkStatusHint(((A=window.navigator)==null?void 0:A.onLine)||!0);X(d.isNetworkAvailable())})):N?R.return(N(M)):R.return(!0)})};
var Ite=function(M,d){M.rateLimit?M.lastJobTime?(_.IQ.cancelJob(M.schedulerJob),M.schedulerJob=_.IQ.addLowPriorityJob(function(){M.lastPublicSignalSent!==d&&(M.dispatchEvent(d),M.lastPublicSignalSent=d,M.lastJobTime=(0,_.Gs)())},M.rateLimit-((0,_.Gs)()-M.lastJobTime))):(M.dispatchEvent(d),M.lastPublicSignalSent=d,M.lastJobTime=(0,_.Gs)()):M.dispatchEvent(d)};var SOi,sM=function(){IU.call(this,{logsStore:{cleanLogsStore:ku2,deleteRequest:Bfi,getMostRecentByStatus:V22,markAsQueued:l3i,resetRequest:$Xv,set:A2Z},networkManager:_.zri(),handleError:function(M,d,N){var R,X=N==null?void 0:(R=N.error)==null?void 0:R.code;if(X===400||X===415){var A;M=new _.WJ(M.message,d,N==null?void 0:(A=N.error)==null?void 0:A.code);_.Sx(M,void 0,void 0,void 0,!0)}else _.yD(M)},
handleWarning:_.Sx,sendFn:J2S,now:_.Gs,writeError:KlL,jobManager:_.Pa(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.ZR("potential_esf_error_limit",10),getBooleanFlag:_.Q,disableYtIdbTransactions:!(_.g2()&&_.b3Z())});this.initializationPromise=new _.MX;_.Q("networkless_immediately_drop_all_requests")&&TfN();NUr("LogsDatabaseV2")};
_.v(sM,IU);_.OHV=function(){var M=_.cy("yt.networklessRequestController.instance");M||(M=new sM,_.fE("yt.networklessRequestController.instance",M),_.Q("networkless_logging")&&_.LE().then(function(d){M.databaseToken=d;Wyz(M);M.initializationPromise.resolve();M.enableCleaning&&Math.random()<=M.cleaningRate&&M.databaseToken&&WlZ(M.databaseToken);_.Q("networkless_immediately_drop_sw_health_store")&&vCt(M)}));
return M};
sM.prototype.writeThenSend=function(M,d){d||(d={});d=c2r(M,d);_.g2()||(this.initialized=!1);IU.prototype.writeThenSend.call(this,M,d)};
sM.prototype.sendThenWrite=function(M,d,N){d||(d={});d=c2r(M,d);_.g2()||(this.initialized=!1);IU.prototype.sendThenWrite.call(this,M,d,N)};
sM.prototype.sendAndWrite=function(M,d){d||(d={});d=c2r(M,d);_.g2()||(this.initialized=!1);IU.prototype.sendAndWrite.call(this,M,d)};
sM.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var vCt=function(M){var d;_.B(function(N){if(!M.databaseToken)throw d=oc("clearSWHealthLogsDb"),d;return N.return(wNi(M.databaseToken).catch(function(R){M.handleError(R)}))})};_.H3N=!1;_.erv=_.Np.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.H3N};_.fE("ytNetworklessLoggingInitializationOptions",_.erv);var m7=function(M){var d=this;this.config_=null;M?this.config_=M:kRA()&&(this.config_=_.Ud());_.gL(_.IQ,function(){M2A(d)},5E3)};
m7.prototype.isReady=function(){!this.config_&&kRA()&&(this.config_=_.Ud());return!!this.config_};
var E$Z=function(M,d,N,R){!_.rK("VISITOR_DATA")&&d!=="visitor_id"&&Math.random()<.01&&_.Sx(new _.WJ("Missing VISITOR_DATA when sending innertube request.",d,N,R));if(!M.isReady()){var X=new _.WJ("innertube xhrclient not ready",d,N,R);_.yD(X);throw X;}var A={headers:R.headers||{},method:"POST",postParams:N,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()},
onFetchTimeout:R.onTimeout,onSuccess:function(p,m){if(R.onSuccess)R.onSuccess(m)},
onFetchSuccess:function(p){if(R.onSuccess)R.onSuccess(p)},
onError:function(p,m){if(R.onError)R.onError(m)},
onFetchError:function(p){if(R.onError)R.onError(p)},
timeout:R.timeout,withCredentials:!0,compress:R.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");var l="";(X=M.config_.innertubeHostOverride)&&(l=X);var k=M.config_.innertubeUseThirdPartyAuth||!1,T=_.PeZ(k,l,R);Object.assign(A.headers,T);A.headers.Authorization&&!l&&k&&(A.headers["x-origin"]=window.location.origin);var W=_.fF(l+("/youtubei/"+M.config_.innertubeApiVersion+"/"+d),{alt:"json"}),w=function(p){p=p===void 0?!1:p;var m;if(R.retry&&l!="www.youtube-nocookie.com"&&
(p||_.Q("skip_ls_gel_retry")||A.headers["Content-Type"]!=="application/json"||(m=YWN(d,N,T,k)),m)){var I=A.onSuccess,O=A.onFetchSuccess;A.onSuccess=function(e,t){ZhZ(m);I(e,t)};
N.onFetchSuccess=function(e,t){ZhZ(m);O(e,t)}}try{if(p&&R.retry&&!R.networklessOptions.bypassNetworkless)A.method="POST",R.networklessOptions.writeThenSend?_.OHV().writeThenSend(W,A):_.OHV().sendAndWrite(W,A);
else if(R.compress){var y=!R.networklessOptions.writeThenSend;if(A.postBody){var c=A.postBody;typeof c!=="string"&&(c=JSON.stringify(A.postBody));ihN(W,c,A,_.Am,y)}else ihN(W,JSON.stringify(A.postParams),A,UES,y)}else _.Q("web_all_payloads_via_jspb")?_.Am(W,A):UES(W,A)}catch(e){if(e.name==="InvalidAccessError")m&&(ZhZ(m),m=0),_.Sx(Error("fd"));else throw e;}m&&_.gL(_.IQ,function(){M2A(M)},5E3)};
_.nBN()?ufZ().then(function(p){w(p)}):w(!1)};var CJL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(CJL,_.Jj);var j_J=0,f3S=_.B_?"webkit":_.$h?"moz":_.lb?"ms":Fhp?"o":"";_.fE("ytDomDomGetNextId",_.cy("ytDomDomGetNextId")||function(){return++j_J});var s_d={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},fA=function(M){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(M=
M||window.event){this.event=M;for(var d in M)d in s_d||(this[d]=M[d]);this.scale=M.scale;this.rotation=M.rotation;var N=M.target||M.srcElement;N&&N.nodeType==3&&(N=N.parentNode);this.target=N;var R=M.relatedTarget;if(R)try{R=R.nodeName?R:null}catch(X){R=null}else this.type=="mouseover"?R=M.fromElement:this.type=="mouseout"&&(R=M.toElement);this.relatedTarget=R;this.clientX=M.clientX!=void 0?M.clientX:M.pageX;this.clientY=M.clientY!=void 0?M.clientY:M.pageY;this.keyCode=M.keyCode?M.keyCode:M.which;
this.charCode=M.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pageX_=M.pageX;this.pageY_=M.pageY}}catch(X){}},PMz=function(M){if(document.body&&document.documentElement){var d=document.body.scrollTop+document.documentElement.scrollTop;
M.pageX_=M.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);M.pageY_=M.clientY+d}};
fA.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
fA.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
fA.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var i7=_.Np.ytEventsEventsListeners||{};_.fE("ytEventsEventsListeners",i7);var u86=_.Np.ytEventsEventsCounter||{count:0};_.fE("ytEventsEventsCounter",u86);var CxZ=_.pe(function(){var M=!1;try{var d=Object.defineProperty({},"capture",{get:function(){M=!0}});
window.addEventListener("test",null,d)}catch(N){}return M});_.RX(tk,_.DL);tk.prototype.onMouseMove_=function(M){M.pageX_===void 0&&PMz(M);var d=M.pageX_;M.pageY_===void 0&&PMz(M);this.position_=new _.hw(d,M.pageY_)};
tk.prototype.checkPosition_=function(){if(this.position_){var M=(0,_.Gs)();if(this.previousTime_!=0){var d=this.previousPosition_,N=this.position_,R=d.x-N.x;d=d.y-N.y;R=Math.sqrt(R*R+d*d)/(M-this.previousTime_);this.cycles_[this.index_]=Math.abs((R-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(N=d=0;N<4;N++)d+=this.cycles_[N]||0;d>=3&&this.callback_();this.previousVelocity_=R}this.previousTime_=M;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
tk.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.xXN(this.mouseListenerKey_)};var MGA={};var lHi=new _.x("rawColdConfigGroup");var VCi=new _.x("rawHotConfigGroup");var oCd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(oCd,_.Jj);var uX6=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(uX6,_.Jj);var DS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M,500)};
_.v(DS,_.Jj);DS.prototype.getPayloadCase=function(){return _.qn(this,raJ)};
DS.prototype.getContext=function(){return _.uk(this,uX6,33)};
var raJ=[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];var dxp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(dxp,_.Jj);var K3r=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(K3r,_.Jj);K3r.prototype.setVideoId=function(M){return Fy(this,1,yy2,Si(M))};
K3r.prototype.getPlaylistId=function(){return _.A8(this,Bh(this,yy2,2))};
var yy2=[1,2];var CuS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(CuS,_.Jj);CuS.prototype.getContext=function(){return _.uk(this,AQ,1)};
CuS.prototype.getTier=function(){return _.K5(this,7)};var Ky3,xW,YW;Ky3=_.Np.ytPubsubPubsubInstance||new _.lk;xW=_.Np.ytPubsubPubsubSubscribedKeys||{};YW=_.Np.ytPubsubPubsubTopicToKeys||{};_.dSZ=_.Np.ytPubsubPubsubIsSynchronous||{};_.lk.prototype.subscribe=_.lk.prototype.subscribe;_.lk.prototype.unsubscribeByKey=_.lk.prototype.unsubscribeByKey;_.lk.prototype.publish=_.lk.prototype.publish;_.lk.prototype.clear=_.lk.prototype.clear;_.fE("ytPubsubPubsubInstance",Ky3);_.fE("ytPubsubPubsubTopicToKeys",YW);_.fE("ytPubsubPubsubIsSynchronous",_.dSZ);
_.fE("ytPubsubPubsubSubscribedKeys",xW);var EI=window;var P3=_.Q("web_enable_lifecycle_monitoring")&&Ayj()!==0,yaz=_.Q("web_enable_lifecycle_monitoring");var cag=function(M){var d=this;var N=N===void 0?0:N;var R=R===void 0?_.Pa():R;this.JSC$8701_defaultPriority=N;this.scheduler=R;this.completedResolver=new _.MX;this.scheduledPayloads=M;for(M={i$jscomp$528:0};M.i$jscomp$528<this.scheduledPayloads.length;M={payload$jscomp$18:void 0,i$jscomp$528:M.i$jscomp$528},M.i$jscomp$528++)M.payload$jscomp$18=this.scheduledPayloads[M.i$jscomp$528],N=function(X){return function(){X.payload$jscomp$18.job();d.scheduledPayloads[X.i$jscomp$528].processed=!0;d.scheduledPayloads.every(function(A){return A.processed===
!0})&&d.completedResolver.resolve()}}(M),R=this.scheduler.addJob(N,JaC(this,M.payload$jscomp$18)),this.scheduledPayloads[M.i$jscomp$528]=Object.assign({},M.payload$jscomp$18,{job:N,
jobId:R})};
cag.prototype.flushJobs=function(){var M=this,d=Array.from(this.scheduledPayloads.keys()).sort(function(R,X){return JaC(M,M.scheduledPayloads[X])-JaC(M,M.scheduledPayloads[R])});
d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=this.scheduledPayloads[N.value],N.jobId===void 0||N.processed||(this.scheduler.cancelJob(N.jobId),this.scheduler.addJob(N.job,10))};
cag.prototype.cancel=function(){for(var M=_.V(this.scheduledPayloads),d=M.next();!d.done;d=M.next())d=d.value,d.jobId===void 0||d.processed||this.scheduler.cancelJob(d.jobId),d.processed=!0;this.completedResolver.resolve()};
var JaC=function(M,d){var N;return(N=d.priority)!=null?N:M.JSC$8701_defaultPriority};var oU=function(M){this.state=M;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};P3&&VGi(this.state)};
oU.prototype.install=function(M){this.plugins.push(M);return this};
oU.prototype.uninstall=function(){var M=this;_.wH.apply(0,arguments).forEach(function(d){d=M.plugins.indexOf(d);d>-1&&M.plugins.splice(d,1)})};
oU.prototype.transition=function(M,d){var N=this;P3&&lcZ(this.state);var R=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(l){return l===N.state&&A.to===M}):A.from===N.state&&A.to===M});
if(R){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);SXV(this,M,d);this.state=M;P3&&VGi(this.state);R=R.action.bind(this);var X=this.plugins.filter(function(A){return A[M]}).map(function(A){return A[M]});
R(zhC(this,X),d)}else throw Error("gd`"+this.state+"`"+M);};
var zhC=function(M,d){var N=d.filter(function(X){return bHC(M,X)===10}),R=d.filter(function(X){return bHC(M,X)!==10});
return M.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var X=_.wH.apply(0,arguments);return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.runImmediateJobsAsync.apply(M,[N].concat(_.wu(X))),2);M.setJobSetWithScheduledJobs.apply(M,[R].concat(_.wu(X)));_.Vy(A)})}:function(){var X=_.wH.apply(0,arguments);
M.runImmediateJobsSync.apply(M,[N].concat(_.wu(X)));M.setJobSetWithScheduledJobs.apply(M,[R].concat(_.wu(X)))}};
oU.prototype.runImmediateJobsSync=function(M){var d=_.wH.apply(1,arguments);_.Pa();for(var N=_.V(M),R=N.next(),X={};!R.done;X={lifecycle$jscomp$2:void 0},R=N.next())X.lifecycle$jscomp$2=R.value,fq(function(A){return function(){ehe(A.lifecycle$jscomp$2.name);B4r(function(){return A.lifecycle$jscomp$2.callback.apply(A.lifecycle$jscomp$2,_.wu(d))});
rY(A.lifecycle$jscomp$2.name)}}(X))};
oU.prototype.runImmediateJobsAsync=function(M){var d=_.wH.apply(1,arguments),N,R,X,A;return _.B(function(l){l.nextAddress==1&&(_.Pa(),N=_.V(M),R=N.next(),X={});if(l.nextAddress!=3){if(R.done)return l.jumpTo(0);X.lifecycle$jscomp$3=R.value;X.asyncJobCompletion=void 0;A=function(k){return function(){ehe(k.lifecycle$jscomp$3.name);var T=B4r(function(){return k.lifecycle$jscomp$3.callback.apply(k.lifecycle$jscomp$3,_.wu(d))});
z3Z(T)?k.asyncJobCompletion=_.Q("web_lifecycle_error_handling_killswitch")?T.then(function(){rY(k.lifecycle$jscomp$3.name)}):T.then(function(){rY(k.lifecycle$jscomp$3.name)},function(W){$SN(W);
rY(k.lifecycle$jscomp$3.name)}):rY(k.lifecycle$jscomp$3.name)}}(X);
fq(A);return X.asyncJobCompletion?_.D(l,X.asyncJobCompletion,3):l.jumpTo(3)}X={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};R=N.next();return l.jumpTo(2)})};
oU.prototype.setJobSetWithScheduledJobs=function(M){var d=_.wH.apply(1,arguments),N=this,R=M.map(function(X){return{job:function(){ehe(X.name);B4r(function(){return X.callback.apply(X,_.wu(d))});
rY(X.name)},
priority:bHC(N,X)}});
R.length&&(this.jobSet=new cag(R))};
var bHC=function(M,d){var N,R;return(R=(N=M.overridePriority)!=null?N:d.priority)!=null?R:0},ehe=function(M){P3&&M&&VGi(M)},rY=function(M){P3&&M&&lcZ(M)},SXV=function(M,d,N){yaz&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+M.constructor.name+"] '"+M.state+"' to '"+d+"'"),console.log("with message: ",N),console.groupEnd())};
_.Hm.Object.defineProperties(oU.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var HHo=function(M){oU.call(this,M===void 0?"none":M);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},nCV;
_.v(HHo,oU);HHo.prototype.runApplicationNavigationBegin=function(M,d){var N=this;this.navigationTimer=_.gL(_.IQ,function(){N.currentState==="application_navigating"&&N.transition("none")},5E3);
M(d==null?void 0:d.event)};
HHo.prototype.runApplicationNavigationEnd=function(M,d){this.navigationTimer&&(_.IQ.cancelJob(this.navigationTimer),this.navigationTimer=null);M(d==null?void 0:d.event)};
_.AtZ=function(){nCV||(nCV=new HHo);return nCV};var FXi=[];_.fE("yt.logging.transport.getScrapedGelPayloads",function(){return FXi});var MZ=function(){var M=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return M.totalEntries}}};
MZ.prototype.storePayload=function(M,d){M=k3Z(M);this.store[M]?this.store[M].push(d):(this.memoizedKeySequences={},this.store[M]=[d]);this.totalEntries++;_.Q("more_accurate_gel_parser")&&(d=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(d));return M};
MZ.prototype.smartExtractMatchingEntries=function(M){if(!M.keys.length)return[];for(var d=iHC(this,M.keys.splice(0,1)[0]),N=[],R=0;R<d.length;R++)this.store[d[R]]&&M.sizeLimit&&(this.store[d[R]].length<=M.sizeLimit?(N.push.apply(N,_.wu(this.store[d[R]])),delete this.store[d[R]]):N.push.apply(N,_.wu(this.store[d[R]].splice(0,M.sizeLimit))));this.totalEntries-=N.length;(M==null?0:M.sizeLimit)&&N.length<(M==null?void 0:M.sizeLimit)&&(M.sizeLimit-=N.length,N.push.apply(N,_.wu(this.smartExtractMatchingEntries(M))));
return N};
MZ.prototype.extractMatchingEntries=function(M){M=iHC(this,M);for(var d=[],N=0;N<M.length;N++)this.store[M[N]]&&(d.push.apply(d,_.wu(this.store[M[N]])),delete this.store[M[N]]);this.totalEntries-=d.length;return d};
MZ.prototype.getSequenceCount=function(M){M=iHC(this,M);for(var d=0,N=0;N<M.length;N++){var R=void 0;d+=((R=this.store[M[N]])==null?void 0:R.length)||0}return d};
var iHC=function(M,d){var N=k3Z(d);if(M.memoizedKeySequences[N])return M.memoizedKeySequences[N];var R=Object.keys(M.store)||[];if(R.length<=1&&k3Z(d)===R[0])return R;for(var X=[],A=0;A<R.length;A++){var l=R[A].split("/");if(ftV(d.auth,l[0])){var k=d.isJspb;ftV(k===void 0?"undefined":k?"true":"false",l[1])&&ftV(d.cttAuthInfo,l[2])&&(k=d.tier,k=k===void 0?"undefined":JSON.stringify(k),ftV(k,l[3])&&X.push(R[A]))}}return M.memoizedKeySequences[N]=X},ftV=function(M,d){return M===void 0||M==="undefined"?
!0:M===d};
MZ.prototype.getSequenceCount=MZ.prototype.getSequenceCount;MZ.prototype.extractMatchingEntries=MZ.prototype.extractMatchingEntries;MZ.prototype.smartExtractMatchingEntries=MZ.prototype.smartExtractMatchingEntries;MZ.prototype.storePayload=MZ.prototype.storePayload;var i6i,H6Z,fcZ,RR,LyC,TkS,krj,e76,b6j,jTA,nQS,Rpr,cyj;i6i=_.ZR("initial_gel_batch_timeout",2E3);H6Z=_.ZR("gel_queue_timeout_max_ms",6E4);fcZ=_.ZR("gel_min_batch_size",5);RR=void 0;LyC=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
TkS=new LyC;krj=new LyC;e76=new LyC;b6j=new LyC;nQS=!0;Rpr=1;_.NkA=new Map;cyj=_.Np.ytLoggingTransportTokensToCttTargetIds_||{};_.fE("ytLoggingTransportTokensToCttTargetIds_",cyj);var Jyp=_.Np.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.fE("ytLoggingTransportTokensToJspbCttTargetIds_",Jyp);var NZ={};var wL=_.Np.ytLoggingGelSequenceIdObj_||{};_.fE("ytLoggingGelSequenceIdObj_",wL);var wzZ=[];var ojS=new Set,qzi=0,Jtq=0,yti=0,vjS=[],IHL=[],ctj=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Uxq=function(){};
Uxq.prototype.getUrl=function(M,d){d=d===void 0?!1:d;return M.hasOwnProperty("shareEndpoint")?null:_.epj(M,null,d)};
var Vu6=function(M,d,N){M={endpoint:d,actions:[]};N=(N.path?N.path[0]:N.target).icon||"";d=N.indexOf(":");d>0&&(N=N.substr(d+1));N&&M.actions.push(N);return M};var tCi=/Command$/,LXZ=/Endpoint$/,njv=new Map;var tFL,GaJ;tFL=1;_.ch=function(){this.actionRoutingMap=new Map};
_.ch.prototype.triggerAction=function(M){var d=new OUi(M,!1,_.wH.apply(1,arguments));this.handleAction(d);return d.returnValue};
_.ch.prototype.triggerOptionalAction=function(M){var d=new OUi(M,!0,_.wH.apply(1,arguments));this.handleAction(d);return d.returnValue};
_.Kx=function(M,d,N){d.forEach(function(R){var X=fH6(R);X&&M.triggerOptionalAction(X,R,N,void 0)})};
_.ch.prototype.handleAction=function(M){var d=this.actionRoutingMap.get(M.actionName);d&&GaJ(M,d);M.optionalAction||M.returnValue.length!==0||(M=new _.WJ("Unhandled action",M.actionName),_.Sx(M))};
GaJ=function(M,d){d.forEach(function(N){var R=null;N?R=N.apply(null,M.args):(N=Error("hd"),N.params=M.actionName,_.yD(N));M.returnValue.push(R)})};
_.S5=function(M,d,N){N||(N=tFL++);for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){X=X.value;var A=M.actionRoutingMap.get(X);A||(A=new Map,M.actionRoutingMap.set(X,A));M.registerActionHandler(N,X,d[X],A)}return N};
_.ch.prototype.registerActionHandler=function(M,d,N,R){R.set(M,_.JA(N))};
_.zi=function(M,d,N){d=_.V(Object.keys(d));for(var R=d.next();!R.done;R=d.next())(R=M.actionRoutingMap.get(R.value))&&R.delete(N)};
_.dP(_.ch);var xxq=function(M,d){var N=_.ch.getInstance();_.IJ(function(){var R={},X=_.S5(N,(R[M]=d,R));_.mF(function(){var A={};_.zi(N,(A[M]="",A),X)})})};var MmN=function(M,d){_.IJ(function(){var N=M.value;N?(N.addEventListener("yt-service-request-sent",d,void 0),_.mF(function(){N?N.removeEventListener("yt-service-request-sent",d,void 0):dNi(M)})):dNi(M)})};XhA=yQv;var gFv=new Set(["For","If","Match","Watch"]),atg={},UEV=(atg[Oo.default]=function(){return ZAi},atg.style=function(){return ZAi},atg),uKC;
for(uKC in UEV)G5.attributes[uKC]=UEV[uKC](G5.attributes[uKC]);var tQ=new _.x5("VISIBILITY_OBSERVER");var OOZ={retrieve:function(M){return this.id.\u0275prov.token===M.\u0275prov.token?this.contextValue:this?yAv(this,this.id):KIv}};var CML=function(M,d,N){if(M!==na)return!1;M=lMr(document.createElement("div"),function(){var R=a4(!1);try{N[0]()}finally{a4(R)}});
M=Array.from(M.childNodes);M.length===1&&(M=M[0]);return M};var xEV=function(M){M=M.clone();IRm(M);m8(M,"dg",null);m8(M,"d","0");mVt(M,null);h$t(M,null);m8(M,"ichc","0");return M},YXd=!0,ZHo=function(M,d,N){var R=N===void 0?{}:N;
N=R.cssRowKey===void 0?void 0:R.cssRowKey;var X=R.combinedSignature===void 0?void 0:R.combinedSignature;var A=R.extraEdges===void 0?void 0:R.extraEdges;R=R.callback===void 0?void 0:R.callback;m8(M,"m",d.join(","));A&&qlL(M,A);N&&(m8(M,"ck",N),X?m8(M,"rs",X):YXd&&(YXd=!1));if(R){if(R!=null&&!jJV.test(R))throw Error("ab`"+R);m8(M,"cb",R)}M=M.toString();_.AL(M,"/")&&(M=$9z(document.location.href)+M);return _.RO(M)};var MEV=function(M){return ECL(M).then(function(d){return JSON.parse(d.responseText)})},ECL=function(M){var d={},N=d.xmlHttpFactory?d.xmlHttpFactory.createInstance():fqV.createInstance();
return(new _.Xy(function(R,X){var A;try{N.open("GET",M,!0)}catch(T){X(new yw("Error opening XHR: "+T.message,M,N))}N.onreadystatechange=function(){if(N.readyState==4){_.Np.clearTimeout(A);var T;!(T=iIg(N.status))&&(T=N.status===0)&&(T=lGV(M),T=!(T=="http"||T=="https"||T==""));T?R(N):X(new dwg(N.status,M,N))}};
N.onerror=function(){X(new yw("Network error",M,N))};
if(d.headers)for(var l in d.headers){var k=d.headers[l];k!=null&&N.setRequestHeader(l,k)}d.withCredentials&&(N.withCredentials=d.withCredentials);d.responseType&&(N.responseType=d.responseType);d.mimeType&&N.overrideMimeType(d.mimeType);d.timeoutMs>0&&(A=_.Np.setTimeout(function(){N.onreadystatechange=function(){};
N.abort();X(new NBL(M,N))},d.timeoutMs));
try{N.send(null)}catch(T){N.onreadystatechange=function(){},_.Np.clearTimeout(A),X(new yw("Error sending XHR: "+T.message,M,N))}})).thenCatch(function(R){R instanceof _.JX&&N.abort();
throw R;})},yw=function(M,d,N){_.Mp.call(this,M+", url="+d);
this.url=d;this.xhr=N};
_.RX(yw,_.Mp);yw.prototype.name="XhrError";var dwg=function(M,d,N){yw.call(this,"Request Failed, status="+M,d,N);this.status=M};
_.RX(dwg,yw);dwg.prototype.name="XhrHttpError";var NBL=function(M,d){yw.call(this,"Request timed out",M,d)};
_.RX(NBL,yw);NBL.prototype.name="XhrTimeoutError";Mn=Mn||{};var J4=function(){_.DL.call(this)};
_.RX(J4,_.DL);J4.prototype.initialize=function(){};var RgJ=function(M,d){this.fn_=M;this.handler_=d};
RgJ.prototype.execute=function(M){this.fn_&&(this.fn_.call(this.handler_||null,M),this.fn_=this.handler_=null)};
RgJ.prototype.abort=function(){this.handler_=this.fn_=null};var c3=function(M,d){_.DL.call(this);this.deps_=M;this.JSC$8828_id_=d;this.onloadCallbacks_=[];this.JSC$8828_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.RX(c3,_.DL);c3.prototype.moduleConstructor_=J4;c3.prototype.module_=null;c3.prototype.getId=function(){return this.JSC$8828_id_};
c3.prototype.registerCallback=function(M,d){return XlV(this.onloadCallbacks_,M,d)};
var FYI=function(M,d){XlV(M.JSC$8828_onErrorCallbacks_,d)},XlV=function(M,d,N){d=new RgJ(d,N);
M.push(d);return d};
c3.prototype.isLoaded=function(){return!!this.module_};
c3.prototype.onLoad=function(M){var d=new this.moduleConstructor_;d.initialize(M());this.module_=d;d=(d=!!AXL(this.earlyOnloadCallbacks_,M()))||!!AXL(this.onloadCallbacks_,M());d||(this.JSC$8828_onErrorCallbacks_.length=0);return d};
c3.prototype.onError=function(M){(M=AXL(this.JSC$8828_onErrorCallbacks_,M))&&RN(Error("nd`"+M));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var AXL=function(M,d){for(var N=[],R=0;R<M.length;R++)try{M[R].execute(d)}catch(X){RN(X),N.push(X)}M.length=0;return N.length?N:null};
c3.prototype.disposeInternal=function(){c3.superClass_.disposeInternal.call(this);_.tw(this.module_)};var VEd,DwJ,kDe,TBL,$wz,BBg,mw3,wld,ple;
_.zY=function(M,d,N,R,X){R=R===void 0?!1:R;X=X===void 0?!1:X;var A=A===void 0?!0:A;this.scsReferenceUrl_=t8(_.XC(M).toString(),A);this.cssRowKey_=d;this.combinedSignature_=N;this.useNegativeLoading_=R;this.requestedModuleMap_={};this.JSC$8831_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(M=pU(this.scsReferenceUrl_,"excm"))?M.split(","):[];this.shouldScanForCss_=X;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;YlS();this.logger=null;_.SX(this,QJV(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
VEd=function(M,d){if(d.href||d.getAttribute("data-href"))if(d=d.href||d.getAttribute("data-href"),UVN(d)&&!t8(d).urlPrefix_.endsWith("_/js/")){d=QJV(t8(d));d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,M.loadedCssModuleList_.includes(N)||M.loadedCssModuleList_.push(N)}};
_.zY.prototype.JSC$8833_loadModules=function(M,d,N){var R=N===void 0?{}:N;N=R.extraEdges;var X=R.onError;var A=R.onSuccess;R=R.forceReload;this.JSC$8831_moduleInfoMap_=d;if(!M)throw Error("od");if(this.shouldScanForCss_){d=_.V(document.getElementsByTagName("style"));for(var l=d.next();!l.done;l=d.next())VEd(this,l.value);d=_.V(document.getElementsByTagName("link"));for(l=d.next();!l.done;l=d.next())VEd(this,l.value)}lIo(this,$wz(this,M),N,X,A,R)};
var lIo=function(M,d,N,R,X,A){R=R===void 0?function(){}:R;
X=X===void 0?function(){}:X;
A=A===void 0?!1:A;BBg(M,d,function(l,k,T){T=T===void 0?k:T;M.enableFallbackFetch&&A?M.loadWithFetch(l,k,R,X,T):M.load(l,k,R,X,T,N)},N)||R(-1)};
_.zY.prototype.loadWithFetch=function(){_.B(function(){throw Error("pd");})};
_.zY.prototype.maybeSetAdditionalFields=function(){};
DwJ=function(M,d,N){if(M.useNegativeLoading_){var R=M.scsReferenceUrl_;M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,extraEdges:N,requestedModuleIds:kDe(M),requestedCssModuleIds:TBL(M)};var X=M===void 0?{}:M;M=X.requestedModuleIds===void 0?[]:X.requestedModuleIds;N=X.requestedCssModuleIds===void 0?[]:X.requestedCssModuleIds;var A=X.cssRowKey===void 0?void 0:X.cssRowKey;var l=X.combinedSignature===void 0?void 0:X.combinedSignature;var k=X.extraEdges===void 0?void 0:X.extraEdges;
X=X.callback===void 0?void 0:X.callback;R=xEV(R);m8(R,"d","1");mVt(R,M);h$t(R,N);d=ZHo(R,d,{cssRowKey:A,combinedSignature:l,extraEdges:k,callback:X})}else R=M.scsReferenceUrl_,M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,requestedModuleIds:kDe(M),requestedCssModuleIds:TBL(M)},k=M===void 0?{}:M,M=k.requestedCssModuleIds===void 0?[]:k.requestedCssModuleIds,N=k.cssRowKey===void 0?void 0:k.cssRowKey,A=k.combinedSignature===void 0?void 0:k.combinedSignature,l=k.extraEdges===void 0?
void 0:k.extraEdges,k=k.callback===void 0?void 0:k.callback,R=xEV(R),h$t(R,M),d=ZHo(R,d,{cssRowKey:N,combinedSignature:A,extraEdges:l,callback:k});return d};
_.SX=function(M,d){for(var N=!1,R=[],X=0;X<d.length;++X){var A=d[X];M.requestedModuleMap_[A]||(M.requestedModuleMap_[A]=!0,M.requestedModuleList_.push(A),N=!0,R.push(A))}N&&(M.requestedModuleListSorted_=!1)};
_.bV=function(M,d){for(var N=[],R=0;R<d.length;++R){var X=d[R];M.requestedModuleMap_[X]&&(delete M.requestedModuleMap_[X],_.aN(M.requestedModuleList_,X),N.push(X))}};
_.zY.prototype.load=function(M,d,N,R,X){X=X===void 0?d:X;_.XC(M);var A=this.useCors_,l=this.corsMode_,k=this.fetchPriority,T=_.Vf("SCRIPT");_.Sd(T,M);A&&(T.crossOrigin=l);T.async=!1;k&&T.setAttribute("fetchpriority",k);_.SX(this,d);_.gPL(this,M,T,d,N,R,X)};
_.gPL=function(M,d,N,R,X,A,l){l=l===void 0?R:l;M.lastScript_=N;M.insertPos.insertBefore(N,M.insertPos.firstChild);_.WYL(N,R,function(){N.parentElement.removeChild(N);M.lastScript_==N&&(M.lastScript_=null);var k=new Set;R.map(function(W){return k.add(W)});
for(var T in M.JSC$8831_moduleInfoMap_)M.JSC$8831_moduleInfoMap_[T].isLoaded()&&k.add(T);Array.from(k);A()},function(k){N.parentElement.removeChild(N);
M.lastScript_==N&&(M.lastScript_=null);_.bV(M,k);M.pendingModuleGraphUpdate_?M.pendingModuleGraphUpdate_.then(function(){X(-1,d)}):X(-1,d)},l)};
_.WYL=function(M,d,N,R,X){X=X===void 0?d:X;var A=d.length,l=function(){A=0;M.onload=null;M.onerror=null;k=function(){}},k=function(){l();
var W=X.filter(function(w){return!h8().getModuleInfo(w).isLoaded()});
W.length!==0?R(W,"Response was successful but was missing module(s) "+W+"."):N()},T=function(){A--;
A==0&&k()};
d.forEach(function(W){W=h8().getModuleInfo(W);W.isLoaded()?T():(XlV(W.earlyOnloadCallbacks_,T),FYI(W,T))});
M.onload=function(){return k()};
M.onerror=function(){l();R(d)}};
kDe=function(M){M.requestedModuleListSorted_||(M.requestedModuleListSorted_=!0,M.requestedModuleList_.sort());return M.requestedModuleList_};
TBL=function(M){M=M.loadedCssModuleList_;M.sort();return M};
$wz=function(M,d){return d.filter(function(N){return!M.requestedModuleMap_[N]})};
BBg=function(M,d,N,R){if(M.pendingModuleGraphUpdate_)return M.pendingModuleGraphUpdate_.then(function(){BBg(M,d,N,R)}),!0;
if(!M.useNegativeLoading_){var X=[],A=Object.assign({},M.requestedModuleMap_);wld(M,d,function(w){X.push(w.getId())},R,function(w){return!w.isLoaded()},A);
d=X}for(A=0;A<d.length;){for(var l=d.length-A,k=A==0?d:d.slice(A,d.length),T=DwJ(M,k,R),W=_.XC(T).toString();W.length>M.urlMaxLength;)if(l>1)l-=Math.ceil((W.length-M.urlMaxLength)/6),l=Math.max(l,1),k=d.slice(A,A+l),T=DwJ(M,k,R),W=_.XC(T).toString();else return M.useNegativeLoading_?(M.useNegativeLoading_=!1,M.pendingModuleGraphUpdate_=ple(M).then(function(w){mw3(M,w,R)}),BBg(M,d.slice(A),N,R)):!1;
A+=l;M.useNegativeLoading_?N(T,k):N(T,k,A===d.length?d:[])}return!0};
mw3=function(M,d,N){h8().setAllModuleInfoString((d||{}).moduleGraph);wld(M,kDe(M),function(R){_.SX(M,[R.getId()])},N);
M.pendingModuleGraphUpdate_=null};
wld=function(M,d,N,R,X,A){A=A===void 0?{}:A;var l=h8();d=_.V(d);for(var k=d.next();!k.done;k=d.next()){k=k.value;var T=l.getModuleInfo(k);if(!(A[k]||X&&!X(T))){A[k]=!0;var W=T.deps_||[];if(R){var w=[];R[k]&&(w=Object.keys(R[k]));W=W.concat(w)}wld(M,W,N,R,X,A);N(T)}}};
ple=function(M){M=M.scsReferenceUrl_.clone();IRm(M);m8(M,"dg",null);m8(M,"md","1");return MEV(M.toString())};var PG2=new Uint8Array(123);var hgt=[];var QnL=function(){this.JSC$7939_loader_=null};
_.F=QnL.prototype;_.F.setBatchModeEnabled=function(){};
_.F.setAllModuleInfoString=function(){};
_.F.addExtraEdge=function(){throw Error("qd");};
_.F.removeExtraEdge=function(){throw Error("rd");};
_.F.getModuleContext=function(){return null};
_.F.isActive=function(){return!1};
_.F.isUserActive=function(){return!1};
_.F.registerCallback=function(){};var eX=function(M,d,N,R){this.type=M;this.status=d;this.requestedModuleIds=N;this.url=R};
eX.prototype.toString=function(){return quz(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var quz=function(M){switch(M.type){case eX.JSC$8843_Type.UNAUTHORIZED:return"Unauthorized";case eX.JSC$8843_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case eX.JSC$8843_Type.TIMEOUT:return"Timed out";case eX.JSC$8843_Type.OLD_CODE_GONE:return"Out of date module id";case eX.JSC$8843_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+M.type}};
Mn.ModuleLoadFailure=eX;Mn.ModuleLoadFailure.JSC$8843_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var H3=function(){this.moduleIds_=this.JSC$7939_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8846_extraEdges_={};this.JSC$8846_callbackMap_={};this.JSC$8846_currentlyLoadingModule_=this.baseModuleInfo_=new c3([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new f2;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.RX(H3,QnL);var IIo=function(M,d){_.Mp.call(this,"Error loading "+M+": "+d)};
_.RX(IIo,_.Mp);H3.prototype.setBatchModeEnabled=function(M){this.batchModeEnabled_=M};
H3.prototype.setAllModuleInfoString=function(M,d){if(!(this instanceof H3))this.setAllModuleInfoString(M,d);else if(typeof M==="string"){if(M.startsWith("d$")){M=M.substring(2);for(var N=[],R=0,X=M.indexOf("/"),A=0,l=!1,k=0;;){var T=l?M.substring(A):M.substring(A,X);if(T.length===0)R++,A="sy"+R.toString(36),T=[];else{var W=T.indexOf(":");if(W<0)A=T,T=[];else if(W===T.length-1)A=T.substring(0,W),T=Array(N[k-1]);else{A=T.substring(0,W);T=T.substring(W+1).split(",");W=k;for(var w=0;w<T.length;w++)W-=
T[w].length===0?1:Number(T[w]),T[w]=N[W]}W=0;if(A.length===0)W=1;else if(A.charAt(0)==="+"||A.charAt(0)==="-")W=Number(A);W!==0&&(R+=W,A="sy"+R.toString(36))}N.push(A);vPz(this,A,T);if(l)break;A=X+1;X=M.indexOf("/",A);X===-1&&(l=!0);k++}this.moduleIds_=N}else if(M.startsWith("p$"))OLg(this,M);else{M=M.split("/");N=[];for(R=0;R<M.length;R++){k=M[R].split(":");X=k[0];l=[];if(k[1])for(l=k[1].split(","),k=0;k<l.length;k++)l[k]=N[parseInt(l[k],36)];N.push(X);vPz(this,X,l)}this.moduleIds_=N}d&&d.length?
(_.xi(this.loadingModuleIds_,d),this.lastInitialModuleId_=_.cj(d)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8846_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8846_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.gx)(this.getModuleContext,this))&&jn3(this,new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.INIT_ERROR)),nx(this))}};
var OLg=function(M,d){var N=d.substring(2);for(d=0;d<64;d++)PG2["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(d)]=d;var R={buf:N,pos:0};UD(R);var X=UD(R),A=UD(R)+1;d=Array(X);var l=Array(X),k=Array(X);A=Array(A);var T=0,W=0,w=R.pos,p=R.buf.indexOf("|",R.pos);R.pos=p+1;for(p=0;p<X;p++){var m=UD(R),I=m&2,O=m&1;m>>>=2;O?(T+=m>>>1^-(m&1),m="sy"+T.toString(36)):(O=w,w+=m,m=N.substring(O,w));d[p]=m;I&&(A[W++]=m)}A[W]="";R.pos++;W=X&-2;N=X&1;for(T=0;T<W;T+=2)w=oFj(R),k[T]=
w&7,k[T+1]=w>>>3&7;N&&(N=oFj(R),k[W]=N&7);R.pos++;for(W=0;W<X;W++)k[W]===7&&(k[W]=UD(R));R.pos++;for(N=W=0;N<X;N++){T=k[N];w=T===0?hgt:Array(T);l[N]=w;p=W;for(I=0;I<T;I++)p-=UD(R),w[I]=A[p];A[W]===d[N]&&W++}for(R=0;R<d.length;R++)vPz(M,d[R],l[R]);M.moduleIds_=d};
_.F=H3.prototype;_.F.getModuleInfo=function(M){return this.moduleInfoMap[M]};
_.F.addExtraEdge=function(M,d){var N=this.getModuleInfo(M);N&&N.isLoaded()?this.load(d):(this.JSC$8846_extraEdges_[M]||(this.JSC$8846_extraEdges_[M]={}),this.JSC$8846_extraEdges_[M][d]=!0)};
_.F.removeExtraEdge=function(M,d){if(this.JSC$8846_extraEdges_[M]){delete this.JSC$8846_extraEdges_[M][d];for(var N in this.JSC$8846_extraEdges_[M])return;delete this.JSC$8846_extraEdges_[M]}};
_.F.isActive=function(){return this.loadingModuleIds_.length>0};
_.F.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var nx=function(M){var d=M.lastActive_,N=M.isActive();N!=d&&(M.executeCallbacks_(N?"active":"idle"),M.lastActive_=N);d=M.isUserActive();d!=M.userLastActive_&&(M.executeCallbacks_(d?"userActive":"userIdle"),M.userLastActive_=d)},vPz=function(M,d,N){M.moduleInfoMap[d]?(M=M.moduleInfoMap[d].deps_,M!=N&&M.splice.apply(M,[0,
M.length].concat(_.wu(N)))):M.moduleInfoMap[d]=new c3(N,d)},PXV=function(M,d,N){var R=[];
RI(d,R);d=[];for(var X={},A=0;A<R.length;A++){var l=R[A],k=M.getModuleInfo(l);if(!k)throw Error("sd`"+l);var T=new f2;X[l]=T;k.isLoaded()?T.callback(null):(snI(M,l,k,!!N,T),M.isModuleLoading(l)||d.push(l))}d.length>0&&(M.loadingModuleIds_.length===0?M.loadModules_(d):(M.requestedModuleIdsQueue_.push(d),nx(M)));return X},snI=function(M,d,N,R,X){N.registerCallback(X.callback,X);
FYI(N,function(A){X.errback(new IIo(d,A))});
M.isModuleLoading(d)?R&&(oPz(M,d),nx(M)):R&&oPz(M,d)};
H3.prototype.loadModules_=function(M,d,N){var R=this;d||(this.consecutiveFailures_=0);var X=rXI(this,M);this.loadingModuleIds_=X;this.requestedLoadingModuleIds_=this.batchModeEnabled_?M:_.US(X);nx(this);if(X.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,X);if(Object.keys(this.JSC$8846_extraEdges_).length>0&&!this.JSC$7939_loader_.supportsExtraEdges)throw Error("td");M=(0,_.gx)(this.JSC$7939_loader_.JSC$8833_loadModules,this.JSC$7939_loader_,_.US(X),this.moduleInfoMap,{extraEdges:this.JSC$8846_extraEdges_,
forceReload:!!N,onError:function(A,l){var k=R.requestedLoadingModuleIds_;A=A!=null?A:void 0;R.consecutiveFailures_++;var T=_.US(X);R.requestedLoadingModuleIds_=k;X.forEach(_.B1(_.aN,R.requestedModuleIds_),R);A==401?(jn3(R,new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.UNAUTHORIZED,A)),R.requestedModuleIdsQueue_.length=0):A==410?(KYL(R,new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.OLD_CODE_GONE,A)),yXd(R)):R.consecutiveFailures_>=3?(KYL(R,new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.CONSECUTIVE_FAILURES,
A,T,l)),yXd(R)):R.loadModules_(R.requestedLoadingModuleIds_,!0,A==8001||!1)},
onTimeout:(0,_.gx)(this.handleLoadTimeout_,this)});(d=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Np.setTimeout(M,d):M()}};
var rXI=function(M,d){d=d.filter(function(X){return M.moduleInfoMap[X].isLoaded()?(_.Np.setTimeout(function(){return Error("ud`"+X)},0),!1):!0});
for(var N=[],R=0;R<d.length;R++)N=N.concat(JXt(M,d[R]));RI(N);return!M.batchModeEnabled_&&N.length>1?(d=N.shift(),M.requestedModuleIdsQueue_=N.map(function(X){return[X]}).concat(M.requestedModuleIdsQueue_),[d]):N},JXt=function(M,d){var N=_.wF.createSet(M.requestedModuleIds_),R=[];
N[d]||R.push(d);d=[d];for(var X=0;X<d.length;X++)for(var A=M.getModuleInfo(d[X]).deps_,l=A.length-1;l>=0;l--){var k=A[l];M.getModuleInfo(k).isLoaded()||N[k]||(R.push(k),d.push(k))}R.reverse();RI(R);return R};
H3.prototype.JSC$8841_setLoaded=function(){if(this.JSC$8846_currentlyLoadingModule_){var M=this.JSC$8846_currentlyLoadingModule_.getId(),d=[];if(this.JSC$8846_extraEdges_[M]){for(var N=_.V(Object.keys(this.JSC$8846_extraEdges_[M])),R=N.next();!R.done;R=N.next()){R=R.value;var X=this.getModuleInfo(R);X&&!X.isLoaded()&&(this.removeExtraEdge(M,R),d.push(R))}this.loadMultiple(d)}this.isDisposed()||(this.moduleInfoMap[M].onLoad((0,_.gx)(this.getModuleContext,this))&&jn3(this,new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.INIT_ERROR)),
_.aN(this.userInitiatedLoadingModuleIds_,M),_.aN(this.loadingModuleIds_,M),this.loadingModuleIds_.length===0&&yXd(this),this.lastInitialModuleId_&&M==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),nx(this),this.JSC$8846_currentlyLoadingModule_=null)}};
H3.prototype.isModuleLoading=function(M){if(_.i2(this.loadingModuleIds_,M))return!0;for(var d=0;d<this.requestedModuleIdsQueue_.length;d++)if(_.i2(this.requestedModuleIdsQueue_[d],M))return!0;return!1};
H3.prototype.load=function(M,d){return PXV(this,[M],d)[M]};
H3.prototype.loadMultiple=function(M){return PXV(this,M)};
var oPz=function(M,d){_.i2(M.userInitiatedLoadingModuleIds_,d)||M.userInitiatedLoadingModuleIds_.push(d)};
H3.prototype.beforeLoadModuleCode=function(M){var d=this;this.JSC$8846_currentlyLoadingModule_&&this.JSC$8846_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8841_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[M]&&cXI(this,this.moduleInfoMap[M].deps_||[],function(N){N.module_=new J4;_.aN(d.loadingModuleIds_,N.getId())},function(N){return!N.isLoaded()});
this.JSC$8846_currentlyLoadingModule_=this.getModuleInfo(M)};
H3.prototype.handleLoadTimeout_=function(){KYL(this,new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.TIMEOUT));yXd(this)};
var KYL=function(M,d){M.requestedLoadingModuleIds_.length>1?M.requestedModuleIdsQueue_=M.requestedLoadingModuleIds_.map(function(N){return[N]}).concat(M.requestedModuleIdsQueue_):jn3(M,d)},jn3=function(M,d){var N=M.requestedLoadingModuleIds_;
M.loadingModuleIds_.length=0;for(var R=[],X=0;X<M.requestedModuleIdsQueue_.length;X++){var A=M.requestedModuleIdsQueue_[X].filter(function(T){var W=JXt(this,T);return b7(N,function(w){return _.i2(W,w)})},M);
_.xi(R,A)}for(X=0;X<N.length;X++)_.mpq(R,N[X]);for(X=0;X<R.length;X++){for(A=0;A<M.requestedModuleIdsQueue_.length;A++)_.aN(M.requestedModuleIdsQueue_[A],R[X]);_.aN(M.userInitiatedLoadingModuleIds_,R[X])}if(X=M.JSC$8846_callbackMap_.error)for(A=0;A<X.length;A++)for(var l=X[A],k=0;k<R.length;k++)l("error",R[k],d);for(R=0;R<N.length;R++)if(M.moduleInfoMap[N[R]])M.moduleInfoMap[N[R]].onError(d);M.requestedLoadingModuleIds_.length=0;nx(M)},yXd=function(M){for(;M.requestedModuleIdsQueue_.length;){var d=
M.requestedModuleIdsQueue_.shift().filter(function(N){return!this.getModuleInfo(N).isLoaded()},M);
if(d.length>0){M.loadModules_(d);return}}nx(M)};
H3.prototype.registerCallback=function(M,d){Array.isArray(M)||(M=[M]);for(var N=0;N<M.length;N++){var R=M[N],X=d,A=this.JSC$8846_callbackMap_;A[R]||(A[R]=[]);A[R].push(X)}};
H3.prototype.executeCallbacks_=function(M){for(var d=this.JSC$8846_callbackMap_[M],N=0;d&&N<d.length;N++)d[N](M)};
var cXI=function(M,d,N,R,X){R=R===void 0?function(){return!0}:R;
X=X===void 0?{}:X;d=_.V(d);for(var A=d.next();!A.done;A=d.next()){A=A.value;var l=M.getModuleInfo(A);!X[A]&&R(l)&&(X[A]=!0,cXI(M,l.deps_||[],N,R,X),N(l))}};
H3.prototype.dispose=function(){_.Gt(_.wF.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8846_callbackMap_={};this.isDisposed_=!0};
H3.prototype.isDisposed=function(){return this.isDisposed_};
_.mx=function(){return new H3};var SuL=[5E3,2E4],zgd=function(){this.JSC$7939_loader_=null;this.JSC$8854_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8854_queue_=[];this.JSC$8854_extraEdges_=Object.create(null);this.JSC$8854_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.v(zgd,QnL);_.F=zgd.prototype;_.F.setAllModuleInfoString=function(){this.JSC$8854_currentlyLoadingModule_&&this.JSC$8854_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8841_setLoaded()};
_.F.getModuleInfo=function(M){var d=this.JSC$8854_moduleInfoMap_[M];d||(d=new c3([],M),this.JSC$8854_moduleInfoMap_[M]=d);return d};
_.F.addExtraEdge=function(M,d){this.getModuleInfo(M).isLoaded()?this.load(d):(this.JSC$8854_extraEdges_[M]||(this.JSC$8854_extraEdges_[M]={}),this.JSC$8854_extraEdges_[M][d]=!0)};
_.F.removeExtraEdge=function(M,d){if(this.JSC$8854_extraEdges_[M]){delete this.JSC$8854_extraEdges_[M][d];for(var N in this.JSC$8854_extraEdges_[M])return;delete this.JSC$8854_extraEdges_[M]}};
_.F.isModuleLoading=function(M){return!!this.loadingModules_[M]};
_.F.load=function(M){bLt(this,[M]);return egm(this,M)};
_.F.loadMultiple=function(M){var d=this,N=Object.create(null),R=[];M.forEach(function(X){N[X]||(N[X]=egm(d,X),R.push(X))});
bLt(this,R);return N};
_.F.beforeLoadModuleCode=function(M){var d;((d=this.JSC$8854_currentlyLoadingModule_)==null?void 0:d.getId())==="synthetic_module_overhead"&&this.JSC$8841_setLoaded();var N,R;HLV(this,(R=(N=this.JSC$8854_moduleInfoMap_[M])==null?void 0:N.deps_)!=null?R:[],function(X){X.module_=new J4},function(X){return!X.isLoaded()});
this.JSC$8854_currentlyLoadingModule_=this.getModuleInfo(M)};
_.F.JSC$8841_setLoaded=function(){if(this.JSC$8854_currentlyLoadingModule_){var M=this.JSC$8854_currentlyLoadingModule_.getId(),d=[];if(this.JSC$8854_extraEdges_[M]){for(var N=_.V(Object.keys(this.JSC$8854_extraEdges_[M])),R=N.next();!R.done;R=N.next())R=R.value,this.getModuleInfo(R).isLoaded()||(this.removeExtraEdge(M,R),d.push(R));this.loadMultiple(d)}this.JSC$8854_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8854_currentlyLoadingModule_=null;(!this.isModuleLoading(M)&&/^sy[0-9a-z]{0,4}$/.test(M)||M==="synthetic_module_overhead")&&delete this.JSC$8854_moduleInfoMap_[M];this.unsetModulesAsLoading(M)}};
_.F.setModulesAsLoading=function(){var M=this;_.wH.apply(0,arguments).forEach(function(d){M.loadingModules_[d]=!0})};
_.F.unsetModulesAsLoading=function(){var M=this;_.wH.apply(0,arguments).forEach(function(d){delete M.loadingModules_[d]})};
var egm=function(M,d){return new _.Xy(function(N,R){var X=M.getModuleInfo(d);X.isLoaded()?N(null):(X.registerCallback(function(){N(null)}),FYI(X,function(A){var l="Error loading "+d+": "+A;
A instanceof Mn.ModuleLoadFailure&&A.url&&(l=l+", requested url: "+A.url.toString());R(Error(l))}))})},bLt=function(M,d){d=d.filter(function(N){return!M.isModuleLoading(N)&&!M.getModuleInfo(N).isLoaded()});
d.length>0&&(M.setModulesAsLoading.apply(M,_.wu(d)),M.JSC$8854_queue_.push(d),nPJ(M))},nPJ=function(M){for(var d={};M.activeLoads_<Infinity&&M.JSC$8854_queue_.length>0;d={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})d.ids$jscomp$36=M.JSC$8854_queue_.shift().filter(function(N){return!M.getModuleInfo(N).isLoaded()}),d.ids$jscomp$36.length>0&&(M.activeLoads_++,d.finishLoad=function(N){return function(){M.activeLoads_--;
nPJ(M);N.finishLoad=function(){}}}(d),_.qc(d.ids$jscomp$36.map(function(N){return egm(M,N)})).then(function(N){return function(){(0,N.finishLoad)()}}(d)),d.attempt$jscomp$6=0,d.load$jscomp$1=function(N){return function(){if(Object.keys(M.JSC$8854_extraEdges_).length>0&&!M.JSC$7939_loader_.supportsExtraEdges)throw Error("td");
M.JSC$7939_loader_.JSC$8833_loadModules(N.ids$jscomp$36,M.JSC$8854_moduleInfoMap_,{extraEdges:M.JSC$8854_extraEdges_,onError:function(R,X){var A=SuL[N.attempt$jscomp$6++];A!==void 0?setTimeout(function(){(0,N.load$jscomp$1)()},A):(M.unsetModulesAsLoading.apply(M,_.wu(N.ids$jscomp$36)),(0,N.finishLoad)(),N.ids$jscomp$36.forEach(function(l){l=M.getModuleInfo(l);
if(!l.isLoaded())l.onError(new Mn.ModuleLoadFailure(Mn.ModuleLoadFailure.JSC$8843_Type.CONSECUTIVE_FAILURES,R,N.ids$jscomp$36,X))}))}})}}(d),(0,d.load$jscomp$1)())},HLV=function(M,d,N,R,X){R=R===void 0?function(){return!0}:R;
X=X===void 0?{}:X;d=_.V(d);for(var A=d.next();!A.done;A=d.next()){A=A.value;var l=M.getModuleInfo(A);!X[A]&&R(l)&&(X[A]=!0,HLV(M,l.deps_||[],N,R,X),N(l))}};var iLL=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Kdi=Symbol("wd");window.JSCompiler_renameProperty=function(M){return M};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var fIg=!iLL||HTMLElement.es5Shimmed||_.Np.Reflect===void 0||_.Np.customElements===void 0||_.Np.customElements.polyfillWrapFlushCallback||!1,LYd,kg6=function(){var M=HTMLElement;if(fIg)return M;if(LYd!==void 0)return LYd;var d=_.Np.Reflect,N=function(){return d.construct(M,[],this.constructor)};
N.prototype=M.prototype;N.prototype.constructor=N;N.es5Shimmed=!0;Object.setPrototypeOf(N,M);return LYd=N},tEL=!1;fIg||tEL||(tEL=!0,_.Np.HTMLElement=kg6());/*

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 zu2=/(url\()([^)]*)(\))/g,cIq=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,SLq,uv;var jF=!window.ShadyDOM||!window.ShadyDOM.inUse,GDo=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),aIV=!window.customElements.polyfillWrapFlushCallback,Uwo;if(Uwo=jF&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var ufd=new CSSStyleSheet;ufd.replaceSync("");var CXL=document.createElement("div");CXL.attachShadow({mode:"open"});CXL.shadowRoot.adoptedStyleSheets=[ufd];Uwo=CXL.shadowRoot.adoptedStyleSheets[0]===ufd}catch(M){Uwo=!1}
var xwd=Uwo,YuL=window.Polymer&&window.Polymer.rootPath||eui(document.baseURI||window.location.href),lM=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,UHZ=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,rD=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ZL3=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,OX=window.Polymer&&window.Polymer.legacyOptimizations||!1,o_=window.Polymer&&window.Polymer.legacyWarnings||!1,EPI=window.Polymer&&window.Polymer.syncInitialRender||
!1,Bm=window.Polymer&&window.Polymer.legacyUndefined||!1,MDz=window.Polymer&&window.Polymer.orderedComputed||!1,iV=window.Polymer&&window.Polymer.removeNestedTemplates||!1,fx=window.Polymer&&window.Polymer.fastDomIf||!1,Lx=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,diJ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,NUJ=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var t4={},RJI={},Ta=function(){return HTMLElement.apply(this,arguments)||this};
_.v(Ta,HTMLElement);Ta.import=function(M,d){return M?(M=t4[M]||RJI[M.toLowerCase()])&&d?M.querySelector(d):M:null};
Ta.prototype.attributeChangedCallback=function(M,d,N){d!==N&&this.register()};
Ta.prototype.register=function(M){if(M=M||this.id){if(rD&&(t4[M]||RJI[M.toLowerCase()])!==void 0)throw t4[M]=RJI[M.toLowerCase()]=null,Error("xd`"+M);this.id=M;t4[M]=RJI[M.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Hm.Object.defineProperties(Ta.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var M=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;M=_.Ca(this.getAttribute("assetpath")||"",M.baseURI);this.__assetpath=eui(M)}return this.__assetpath}}});
_.Hm.Object.defineProperties(Ta,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Ta["import"]=Ta.import;Ta.prototype.modules=t4;customElements.define("dom-module",Ta);var X1e=0,nFA=0,xv=[],FNL=0,HOZ=!1,A$e=document.createTextNode(""),VDd,I_;(new window.MutationObserver(iOv)).observe(A$e,{characterData:!0});_.GY={after:function(M){return{run:function(d){return window.setTimeout(d,M)},
cancel:function(d){window.clearTimeout(d)}}},
run:function(M,d){return window.setTimeout(M,d)},
cancel:function(M){window.clearTimeout(M)}};
_.Bz={run:function(M){return window.requestAnimationFrame(M)},
cancel:function(M){window.cancelAnimationFrame(M)}};
VDd={run:function(M){return window.requestIdleCallback?window.requestIdleCallback(M):window.setTimeout(M,16)},
cancel:function(M){window.cancelIdleCallback?window.cancelIdleCallback(M):window.clearTimeout(M)}};
I_={run:function(M){HOZ||(HOZ=!0,A$e.textContent=FNL++);xv.push(M);return X1e++},
cancel:function(M){var d=M-nFA;if(d>=0){if(!xv[d])throw Error("yd`"+M);xv[d]=null}}};var lyd=0,aU=function(M){var d=M.__mixinApplications;d||(d=new WeakMap,M.__mixinApplications=d);var N=lyd++;return function(R){var X=R.__mixinSet;if(X&&X[N])return R;var A=d,l=A.get(R);l||(l=M(R),A.set(R,l),R=Object.create(l.__mixinSet||X||null),R[N]=!0,l.__mixinSet=R);return l}};_.VG=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(M){return ShadyDOM.patch(M)}:function(M){return M};var $iL=aU(function(M){var d=function(){var N=M.call(this)||this;N.__dataEnabled=!1;N.__dataReady=!1;N.__dataInvalid=!1;N.__data={};N.__dataPending=null;N.__dataOld=null;N.__dataInstanceProps=null;N.__dataCounter=0;N.__serializing=!1;N._initializeProperties();return N};
_.v(d,M);d.createProperties=function(N){var R=this.prototype,X;for(X in N)X in R||R._createPropertyAccessor(X)};
d.attributeNameForProperty=function(N){return N.toLowerCase()};
d.typeForProperty=function(){};
d.prototype._createPropertyAccessor=function(N,R){this._addPropertyToAttributeMap(N);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[N]||(this.__dataHasAccessor[N]=!0,this._definePropertyAccessor(N,R))};
d.prototype._addPropertyToAttributeMap=function(N){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var R=this.__dataAttributes[N];R||(R=this.constructor.attributeNameForProperty(N),this.__dataAttributes[R]=N);return R};
d.prototype._definePropertyAccessor=function(N,R){Object.defineProperty(this,N,{get:function(){return this.__data[N]},
set:R?function(){}:function(X){this._setPendingProperty(N,X,!0)&&this._invalidateProperties()}})};
d.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
d.prototype._initializeProperties=function(){for(var N in this.__dataHasAccessor)this.hasOwnProperty(N)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[N]=this[N],delete this[N])};
d.prototype._initializeInstanceProperties=function(N){Object.assign(this,N)};
d.prototype._setProperty=function(N,R){this._setPendingProperty(N,R)&&this._invalidateProperties()};
d.prototype._getProperty=function(N){return this.__data[N]};
d.prototype._setPendingProperty=function(N,R){var X=this.__data[N],A=this._shouldPropertyChange(N,R,X);A&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||N in this.__dataOld||(this.__dataOld[N]=X),this.__data[N]=R,this.__dataPending[N]=R);return A};
d.prototype._isPropertyPending=function(N){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(N))};
d.prototype._invalidateProperties=function(){var N=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,I_.run(function(){N.__dataInvalid&&(N.__dataInvalid=!1,N._flushProperties())}))};
d.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
d.prototype._flushProperties=function(){this.__dataCounter++;var N=this.__data,R=this.__dataPending,X=this.__dataOld;this._shouldPropertiesChange(N,R,X)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(N,R,X));this.__dataCounter--};
d.prototype._shouldPropertiesChange=function(N,R){return!!R};
d.prototype._propertiesChanged=function(){};
d.prototype._shouldPropertyChange=function(N,R,X){return X!==R&&(X===X||R===R)};
d.prototype.attributeChangedCallback=function(N,R,X,A){R!==X&&this._attributeToProperty(N,X);M.prototype.attributeChangedCallback&&M.prototype.attributeChangedCallback.call(this,N,R,X,A)};
d.prototype._attributeToProperty=function(N,R,X){if(!this.__serializing){var A=this.__dataAttributes;N=A&&A[N]||N;this[N]=this._deserializeValue(R,X||this.constructor.typeForProperty(N))}};
d.prototype._propertyToAttribute=function(N,R,X){this.__serializing=!0;X=arguments.length<3?this[N]:X;this._valueToNodeAttribute(this,X,R||this.constructor.attributeNameForProperty(N));this.__serializing=!1};
d.prototype._valueToNodeAttribute=function(N,R,X){R=this._serializeValue(R);if(X==="class"||X==="name"||X==="slot")N=(0,_.VG)(N);R===void 0?N.removeAttribute(X):N.setAttribute(X,R===""&&window.trustedTypes?window.trustedTypes.emptyScript:R)};
d.prototype._serializeValue=function(N){switch(typeof N){case "boolean":return N?"":void 0;default:return N!=null?N.toString():void 0}};
d.prototype._deserializeValue=function(N,R){switch(R){case Boolean:return N!==null;case Number:return Number(N);default:return N}};
return d});var BU3=0,fMv=[];var kRt=aU(function(M){function d(A){A=Object.getPrototypeOf(A);return A.prototype instanceof X?A:null}
function N(A){if(!A.hasOwnProperty("__ownProperties")){var l=null;if(A.hasOwnProperty("properties")){var k=A.properties;if(k){l={};for(var T in k){var W=k[T];l[T]=typeof W==="function"?{type:W}:W}}}A.__ownProperties=l}return A.__ownProperties}
var R=$iL(M),X=function(){return R.apply(this,arguments)||this};
_.v(X,R);X.finalize=function(){if(!this.hasOwnProperty("__finalized")){var A=d(this);A&&A.finalize();this.__finalized=!0;this._finalizeClass()}};
X._finalizeClass=function(){var A=N(this);A&&this.createProperties(A)};
X.typeForProperty=function(A){return(A=this._properties[A])&&A.type};
X.prototype._initializeProperties=function(){BU3++;this.constructor.finalize();R.prototype._initializeProperties.call(this)};
X.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this._enableProperties()};
X.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this)};
_.Hm.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var A=this;if(!this.hasOwnProperty("__observedAttributes")){Ld2(this.prototype);var l=this._properties;this.__observedAttributes=l?Object.keys(l).map(function(k){return A.prototype._addPropertyToAttributeMap(k)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var A=d(this);this.__properties=Object.assign({},A&&A._properties,N(this))}return this.__properties}}});
return X});var tmZ={},GxZ=/-[a-z]/g,aMr=/([A-Z])/g;for(var TUJ={},DiL=HTMLElement.prototype;DiL;){for(var gSV=Object.getOwnPropertyNames(DiL),WNJ=0;WNJ<gSV.length;WNJ++)TUJ[gSV[WNJ]]=!0;DiL=Object.getPrototypeOf(DiL)}var w1t=window.trustedTypes?function(M){return trustedTypes.isHTML(M)||trustedTypes.isScript(M)||trustedTypes.isScriptURL(M)}:function(){return!1},p1e=aU(function(M){var d=$iL(M);
M=function(){return d.apply(this,arguments)||this};
_.v(M,d);M.createPropertiesForAttributes=function(){for(var N=this.observedAttributes,R=0;R<N.length;R++)this.prototype._createPropertyAccessor(Yv(N[R]))};
M.attributeNameForProperty=function(N){return ZS(N)};
M.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);d.prototype._initializeProperties.call(this)};
M.prototype._initializeProtoProperties=function(N){for(var R in N)this._setProperty(R,N[R])};
M.prototype._ensureAttribute=function(N,R){this.hasAttribute(N)||this._valueToNodeAttribute(this,R,N)};
M.prototype._serializeValue=function(N){switch(typeof N){case "object":if(N instanceof Date)return N.toString();if(N){if(w1t(N))return N;try{return JSON.stringify(N)}catch(R){return""}}default:return d.prototype._serializeValue.call(this,N)}};
M.prototype._deserializeValue=function(N,R){switch(R){case Object:try{var X=JSON.parse(N)}catch(A){X=N}break;case Array:try{X=JSON.parse(N)}catch(A){X=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+N)}break;case Date:X=isNaN(N)?String(N):Number(N);X=new Date(X);break;default:X=d.prototype._deserializeValue.call(this,N,R)}return X};
M.prototype._definePropertyAccessor=function(N,R){if(!TUJ[N]){var X=this[N];X!==void 0&&(this.__data?this._setPendingProperty(N,X):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[N]=X))}d.prototype._definePropertyAccessor.call(this,N,R)};
M.prototype._hasAccessor=function(N){return this.__dataHasAccessor&&this.__dataHasAccessor[N]};
M.prototype._isPropertyPending=function(N){return!!(this.__dataPending&&N in this.__dataPending)};
return M});var mim={"dom-if":!0,"dom-repeat":!0},hJg=!1,QDt=!1,qNV=function(){var M=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(d){return d}});
return function(d,N,R){N=N.getAttribute(R);M&&R.startsWith("on-")?d.setAttribute(R,M.createScript(N,R)):d.setAttribute(R,N)}}(),IyV=aU(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d._parseTemplate=function(N,R){if(!N._templateInfo){var X=N._templateInfo={};X.nodeInfoList=[];X.nestedTemplate=!!R;X.stripWhiteSpace=R&&R.stripWhiteSpace||N.hasAttribute&&N.hasAttribute("strip-whitespace");this._parseTemplateContent(N,X,{parent:null})}return N._templateInfo};
d._parseTemplateContent=function(N,R,X){return this._parseTemplateNode(N.content,R,X)};
d._parseTemplateNode=function(N,R,X){var A=!1;N.localName!="template"||N.hasAttribute("preserve-content")?N.localName==="slot"&&(R.hasInsertionPoint=!0):A=this._parseTemplateNestedTemplate(N,R,X)||A;if(!hJg){hJg=!0;var l=document.createElement("textarea");l.placeholder="a";QDt=l.placeholder===l.textContent}QDt&&N.localName==="textarea"&&N.placeholder&&N.placeholder===N.textContent&&(N.textContent=null);N.firstChild&&this._parseTemplateChildNodes(N,R,X);N.hasAttributes&&N.hasAttributes()&&(A=this._parseTemplateNodeAttributes(N,
R,X)||A);return A||X.noted};
d._parseTemplateChildNodes=function(N,R,X){if(N.localName!=="script"&&N.localName!=="style")for(var A=N.firstChild,l=0,k;A;A=k){if(A.localName=="template"){var T=A.getAttribute("is");if(T&&mim[T])for(k=A,k.removeAttribute("is"),A=k.ownerDocument.createElement(T),k.parentNode.replaceChild(A,k),A.appendChild(k);k.attributes.length;)T=k.attributes[0].name,qNV(A,k,T),k.removeAttribute(T)}k=A.nextSibling;if(A.nodeType===Node.TEXT_NODE){for(T=k;T&&T.nodeType===Node.TEXT_NODE;)A.textContent+=T.textContent,
k=T.nextSibling,N.removeChild(T),T=k;if(R.stripWhiteSpace&&!A.textContent.trim()){N.removeChild(A);continue}}T={parentIndex:l,parentInfo:X};this._parseTemplateNode(A,R,T)&&(T.infoIndex=R.nodeInfoList.push(T)-1);A.parentNode&&l++}};
d._parseTemplateNestedTemplate=function(N,R,X){R=this._parseTemplate(N,R);(R.content=N.content.ownerDocument.createDocumentFragment()).appendChild(N.content);X.templateInfo=R;return!0};
d._parseTemplateNodeAttributes=function(N,R,X){for(var A=!1,l=Array.from(N.attributes),k=l.length-1,T;T=l[k];k--)A=this._parseTemplateNodeAttribute(N,R,X,T.name,T.value)||A;return A};
d._parseTemplateNodeAttribute=function(N,R,X,A,l){return A.slice(0,3)==="on-"?(N.removeAttribute(A),X.events=X.events||[],X.events.push({name:A.slice(3),value:l}),!0):A==="id"?(X.id=l,!0):!1};
d._contentForTemplate=function(N){var R=N._templateInfo;return R&&R.content||N.content};
d.prototype._stampTemplate=function(N,R){N&&!N.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(N);R=R||this.constructor._parseTemplate(N);var X=R.nodeInfoList;N=document.importNode(R.content||N.content,!0);N.__noInsertionPoint=!R.hasInsertionPoint;var A=N.nodeList=Array(X.length);N.$={};for(var l=0,k=X.length,T=void 0;l<k&&(T=X[l]);l++){var W=A[l]=UNi(N,T);T.id&&(N.$[T.id]=W);var w=W,p=T,m=R;p.templateInfo&&(w._templateInfo=p.templateInfo,w._parentTemplateInfo=
m);if(T.events&&T.events.length)for(w=0,p=T.events,m=void 0;w<p.length&&(m=p[w]);w++)this._addMethodEventListenerToNode(W,m.name,m.value,this)}return N};
d.prototype._addMethodEventListenerToNode=function(N,R,X,A){X=ucN(A||N,X);this._addEventListenerToNode(N,R,X);return X};
d.prototype._addEventListenerToNode=function(N,R,X){N.addEventListener(R,X)};
d.prototype._removeEventListenerFromNode=function(N,R,X){N.removeEventListener(R,X)};
return d});var FK=0,$C=[],vSg={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Obm=/[A-Z]/,jDd=function(M,d,N,R,X){var A=X?ME(M):M;if(d=d[A])for(A=0;A<d.length;A++){var l=d[A];if(l.info.lastRun!==FK&&(!X||MkZ(M,l.trigger))){l.info.lastRun=FK;l=l.info;for(var k=N,T=R,W=0,w=k.length-1,p=-1;W<=w;){var m=W+w>>1,I=T.get(k[m].methodInfo)-T.get(l.methodInfo);if(I<0)W=m+1;else if(I>0)w=m-1;else{p=m;break}}p<
0&&(p=w+1);k.splice(p,0,l)}}},W$q=[],sDC=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"),uV=aU(function(M){var d=IyV(p1e(M));
M=function(){var N=d.call(this)||this;N.__isPropertyEffectsClient=!0;return N};
_.v(M,d);M.prototype._initializeProperties=function(){d.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
M.prototype._registerHost=function(){if(UM.length){var N=UM[UM.length-1];N._enqueueClient(this);this.__dataHost=N}};
M.prototype._initializeProtoProperties=function(N){this.__data=Object.create(N);this.__dataPending=Object.create(N);this.__dataOld={}};
M.prototype._initializeInstanceProperties=function(N){var R=this.__readOnly,X;for(X in N)R&&R[X]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[X]=this.__dataPending[X]=N[X])};
M.prototype._addPropertyEffect=function(N,R,X){this._createPropertyAccessor(N,R=="__readOnly");var A=EF6(this,R,!0)[N];A||(A=this[R][N]=[]);A.push(X)};
M.prototype._removePropertyEffect=function(N,R,X){N=EF6(this,R,!0)[N];X=N.indexOf(X);X>=0&&N.splice(X,1)};
M.prototype._hasPropertyEffect=function(N,R){R=this[R];return!(!R||!R[N])};
M.prototype._hasReadOnlyEffect=function(N){return this._hasPropertyEffect(N,"__readOnly")};
M.prototype._hasNotifyEffect=function(N){return this._hasPropertyEffect(N,"__notifyEffects")};
M.prototype._hasReflectEffect=function(N){return this._hasPropertyEffect(N,"__reflectEffects")};
M.prototype._hasComputedEffect=function(N){return this._hasPropertyEffect(N,"__computeEffects")};
M.prototype._setPendingPropertyOrPath=function(N,R,X,A){if(A||ME(Array.isArray(N)?N[0]:N)!==N){if(!A&&(A=XK(this,N),N=ZOv(this,N,R),!N||!d.prototype._shouldPropertyChange.call(this,N,R,A)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(N,R,X)){if(X=this.__dataLinkedPaths)for(var l in X)A=X[l],dD(l,N)?(A=NE(l,A,N),this._setPendingPropertyOrPath(A,R,!0,!0)):dD(A,N)&&(A=NE(A,l,N),this._setPendingPropertyOrPath(A,R,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[N])return this._setPendingProperty(N,
R,X);this[N]=R}return!1};
M.prototype._setUnmanagedPropertyToNode=function(N,R,X){if(X!==N[R]||typeof X=="object")R==="className"&&(N=(0,_.VG)(N)),N[R]=X};
M.prototype._setPendingProperty=function(N,R,X){var A=this.__dataHasPaths&&ED(N);if(this._shouldPropertyChange(N,R,(A?this.__dataTemp:this.__data)[N])){this.__dataPending||(this.__dataPending={},this.__dataOld={});N in this.__dataOld||(this.__dataOld[N]=this.__data[N]);A?this.__dataTemp[N]=R:this.__data[N]=R;this.__dataPending[N]=R;if(A||this.__notifyEffects&&this.__notifyEffects[N])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[N]=X;return!0}return!1};
M.prototype._setProperty=function(N,R){this._setPendingProperty(N,R,!0)&&this._invalidateProperties()};
M.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
M.prototype._enqueueClient=function(N){this.__dataPendingClients=this.__dataPendingClients||[];N!==this&&this.__dataPendingClients.push(N)};
M.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
M.prototype.__enableOrFlushClients=function(){var N=this.__dataPendingClients;if(N){this.__dataPendingClients=null;for(var R=0;R<N.length;R++){var X=N[R];X.__dataEnabled?X.__dataPending&&X._flushProperties():X._enableProperties()}}};
M.prototype._readyClients=function(){this.__enableOrFlushClients()};
M.prototype.setProperties=function(N,R){for(var X in N)!R&&this.__readOnly&&this.__readOnly[X]||this._setPendingPropertyOrPath(X,N[X],!0);this._invalidateProperties()};
M.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
M.prototype._propertiesChanged=function(N,R,X){N=this.__dataHasPaths;this.__dataHasPaths=!1;var A;if(A=this.__computeEffects)if(MDz){FK++;var l=AoZ(this),k=[],T;for(T in R)jDd(T,A,k,l,N);for(;T=k.shift();)l$r(this,"",R,X,T)&&jDd(T.methodInfo,A,k,l,N);Object.assign(X,this.__dataOld);Object.assign(R,this.__dataPending);this.__dataPending=null}else for(l=R;Aa(this,A,l,X,N);)Object.assign(X,this.__dataOld),Object.assign(R,this.__dataPending),l=this.__dataPending,this.__dataPending=null;A=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(R,X,N);this._flushClients();Aa(this,this.__reflectEffects,R,X,N);Aa(this,this.__observeEffects,R,X,N);if(A){l=this.__notifyEffects;k=FK++;for(var W in A)if(A[W]){if(T=l){var w=l;T=k;var p=W,m=R,I=X,O=N,y=!1,c=O?ME(p):p;if(w=w[c]){c=0;for(var e=w.length,t=void 0;c<e&&(t=w[c]);c++)t.info&&t.info.lastRun===T||O&&!MkZ(p,t.trigger)||(t.info&&(t.info.lastRun=T),t.fn(this,p,m,I,t.info,O,void 0),y=!0)}T=y}if(T)var C=!0;else{if(T=N)T=W,p=R,m=ME(T),m!==
T?(m=ZS(m)+"-changed",N5N(this,m,p[T],T),T=!0):T=!1;T&&(C=!0)}}var U;C&&(U=this.__dataHost)&&U._invalidateProperties&&U._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
M.prototype._propagatePropertyChanges=function(N,R,X){this.__propagateEffects&&Aa(this,this.__propagateEffects,N,R,X);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,N,R,X)};
M.prototype._runEffectsForTemplate=function(N,R,X,A){var l=this,k=function(T,W){Aa(l,N.propertyEffects,T,X,W,N.nodeList);for(var w=N.firstChild;w;w=w.nextSibling)l._runEffectsForTemplate(w,T,X,W)};
N.runEffects?N.runEffects(k,R,A):k(R,A)};
M.prototype.linkPaths=function(N,R){N=R_(N);R=R_(R);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[N]=R};
M.prototype.unlinkPaths=function(N){N=R_(N);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[N]};
M.prototype.notifySplices=function(N,R){var X={path:""};N=XK(this,N,X);Q0A(this,N,X.path,R)};
M.prototype.get=function(N,R){return XK(R||this,N)};
M.prototype.set=function(N,R,X){X?ZOv(X,N,R):this.__readOnly&&this.__readOnly[N]||this._setPendingPropertyOrPath(N,R,!0)&&this._invalidateProperties()};
M.prototype.push=function(N){var R=_.wH.apply(1,arguments),X={path:""},A=XK(this,N,X),l=A.length,k=A.push.apply(A,_.wu(R));R.length&&kC(this,A,X.path,l,R.length,[]);return k};
M.prototype.pop=function(N){var R={path:""};N=XK(this,N,R);var X=!!N.length,A=N.pop();X&&kC(this,N,R.path,N.length,0,[A]);return A};
M.prototype.splice=function(N,R,X){var A=_.wH.apply(3,arguments),l={path:""},k=XK(this,N,l);R<0?R=k.length-Math.floor(-R):R&&(R=Math.floor(R));var T=arguments.length===2?k.splice(R):k.splice.apply(k,[R,X].concat(_.wu(A)));(A.length||T.length)&&kC(this,k,l.path,R,A.length,T);return T};
M.prototype.shift=function(N){var R={path:""};N=XK(this,N,R);var X=!!N.length,A=N.shift();X&&kC(this,N,R.path,0,0,[A]);return A};
M.prototype.unshift=function(N){var R=_.wH.apply(1,arguments),X={path:""},A=XK(this,N,X),l=A.unshift.apply(A,_.wu(R));R.length&&kC(this,A,X.path,0,R.length,[]);return l};
M.prototype.notifyPath=function(N,R){if(arguments.length==1){var X={path:""};R=XK(this,N,X);X=X.path}else X=Array.isArray(N)?R_(N):N;this._setPendingPropertyOrPath(X,R,!0,!0)&&this._invalidateProperties()};
M.prototype._createReadOnlyProperty=function(N,R){this._addPropertyEffect(N,"__readOnly");R&&(this["_set"+(N[0].toUpperCase()+N.substring(1))]=function(X){this._setProperty(N,X)})};
M.prototype._createPropertyObserver=function(N,R,X){var A={property:N,method:R,dynamicFn:!!X};this._addPropertyEffect(N,"__observeEffects",{fn:dHq,info:A,trigger:{name:N}});X&&this._addPropertyEffect(R,"__observeEffects",{fn:dHq,info:A,trigger:{name:R}})};
M.prototype._createMethodObserver=function(N,R){var X=p5S(N);if(!X)throw Error("zd`"+N);DHZ(this,X,"__observeEffects",VkS,null,R)};
M.prototype._createNotifyingProperty=function(N){this._addPropertyEffect(N,"__notifyEffects",{fn:Rti,info:{eventName:ZS(N)+"-changed",property:N}})};
M.prototype._createReflectedProperty=function(N){var R=this.constructor.attributeNameForProperty(N);R[0]==="-"?console.warn("Property "+N+" cannot be reflected to attribute "+R+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(N,"__reflectEffects",{fn:X5i,info:{attrName:R}})};
M.prototype._createComputedProperty=function(N,R,X){var A=p5S(R);if(!A)throw Error("Ad`"+R);R=DHZ(this,A,"__computeEffects",l$r,N,X);EF6(this,"__computeInfo")[N]=R};
M.prototype._marshalArgs=function(N,R,X){for(var A=this.__data,l=[],k=0,T=N.length;k<T;k++){var W=N[k],w=W.name,p=W.structured,m=W.wildcard,I=W.value;W.literal||(m?(W=dD(w,R),p=mHv(A,X,W?R:w),I={path:W?R:w,value:p,base:W?XK(A,w):p}):I=p?mHv(A,X,w):A[w]);if(Bm&&!this._overrideLegacyUndefined&&I===void 0&&N.length>1)return $C;l[k]=I}return l};
M.addPropertyEffect=function(N,R,X){this.prototype._addPropertyEffect(N,R,X)};
M.createPropertyObserver=function(N,R,X){this.prototype._createPropertyObserver(N,R,X)};
M.createMethodObserver=function(N,R){this.prototype._createMethodObserver(N,R)};
M.createNotifyingProperty=function(N){this.prototype._createNotifyingProperty(N)};
M.createReadOnlyProperty=function(N,R){this.prototype._createReadOnlyProperty(N,R)};
M.createReflectedProperty=function(N){this.prototype._createReflectedProperty(N)};
M.createComputedProperty=function(N,R,X){this.prototype._createComputedProperty(N,R,X)};
M.bindTemplate=function(N){return this.prototype._bindTemplate(N)};
M.prototype._bindTemplate=function(N,R){var X=this.constructor._parseTemplate(N),A=this.__preBoundTemplateInfo==X;if(!A)for(var l in X.propertyEffects)this._createPropertyAccessor(l);R?(X=Object.create(X),X.wasPreBound=A,this.__templateInfo?(N=N._parentTemplateInfo||this.__templateInfo,R=N.lastChild,X.parent=N,N.lastChild=X,(X.previousSibling=R)?R.nextSibling=X:N.firstChild=X):this.__templateInfo=X):this.__preBoundTemplateInfo=X;return X};
M._addTemplatePropertyEffect=function(N,R,X){(N.hostProps=N.hostProps||{})[R]=!0;N=N.propertyEffects=N.propertyEffects||{};(N[R]=N[R]||[]).push(X)};
M.prototype._stampTemplate=function(N,R){R=R||this._bindTemplate(N,!0);UM.push(this);N=d.prototype._stampTemplate.call(this,N,R);UM.pop();R.nodeList=N.nodeList;if(!R.wasPreBound)for(var X=R.childNodes=[],A=N.firstChild;A;A=A.nextSibling)X.push(A);N.templateInfo=R;X=R.nodeList;A=R.nodeInfoList;if(A.length)for(var l=0;l<A.length;l++){var k=X[l],T=A[l].bindings;if(T)for(var W=0;W<T.length;W++){var w=T[W],p=k,m=w;if(m.isCompound){for(var I=p.__dataCompoundStorage||(p.__dataCompoundStorage={}),O=m.parts,
y=Array(O.length),c=0;c<O.length;c++)y[c]=O[c].literal;O=m.target;I[O]=y;m.literal&&m.kind=="property"&&(O==="className"&&(p=(0,_.VG)(p)),p[O]=m.literal)}T5q(k,this,w)}k.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(R,this.__data,null,!1),this._flushClients());return N};
M.prototype._removeBoundDom=function(N){N=N.templateInfo;var R=N.previousSibling,X=N.nextSibling,A=N.parent;R?R.nextSibling=X:A&&(A.firstChild=X);X?X.previousSibling=R:A&&(A.lastChild=R);N.nextSibling=N.previousSibling=null;N=N.childNodes;for(R=0;R<N.length;R++)X=N[R],(0,_.VG)((0,_.VG)(X).parentNode).removeChild(X)};
M._parseTemplateNode=function(N,R,X){var A=d._parseTemplateNode.call(this,N,R,X);if(N.nodeType===Node.TEXT_NODE){var l=this._parseBindings(N.textContent,R);l&&(N.textContent=gM2(l)||" ",kHZ(this,R,X,"text","textContent",l),A=!0)}return A};
M._parseTemplateNodeAttribute=function(N,R,X,A,l){var k=this._parseBindings(l,R);if(k){l=A;var T="property";Obm.test(A)?T="attribute":A[A.length-1]=="$"&&(A=A.slice(0,-1),T="attribute");var W=gM2(k);W&&T=="attribute"&&(A=="class"&&N.hasAttribute("class")&&(W+=" "+N.getAttribute(A)),N.setAttribute(A,W));T=="attribute"&&l=="disable-upgrade$"&&N.setAttribute(A,"");N.localName==="input"&&l==="value"&&N.setAttribute(l,"");N.removeAttribute(l);T==="property"&&(A=Yv(A));kHZ(this,R,X,T,A,k,W);return!0}return d._parseTemplateNodeAttribute.call(this,
N,R,X,A,l)};
M._parseTemplateNestedTemplate=function(N,R,X){var A=d._parseTemplateNestedTemplate.call(this,N,R,X),l=N.parentNode,k=X.templateInfo,T=l.localName==="dom-if",W=l.localName==="dom-repeat";iV&&(T||W)&&(l.removeChild(N),X=X.parentInfo,X.templateInfo=k,X.noted=!0,A=!1);N=k.hostProps;if(fx&&T)N&&(R.hostProps=Object.assign(R.hostProps||{},N),iV||(X.parentInfo.noted=!0));else for(var w in N)kHZ(this,R,X,"property","_host_"+w,[{mode:"{",source:w,dependencies:[w],hostProp:!0}]);return A};
M._parseBindings=function(N,R){for(var X=[],A=0,l;(l=sDC.exec(N))!==null;){l.index>A&&X.push({literal:N.slice(A,l.index)});A=l[1][0];var k=!!l[2];l=l[3].trim();var T=!1,W="",w=-1;A=="{"&&(w=l.indexOf("::"))>0&&(W=l.substring(w+2),l=l.substring(0,w),T=!0);w=p5S(l);var p=[];if(w){var m=w,I=m.args;m=m.methodName;for(var O=0;O<I.length;O++){var y=I[O];y.literal||p.push(y)}if((I=R.dynamicFns)&&I[m]||w.static)p.push(m),w.dynamicFn=!0}else p.push(l);X.push({source:l,mode:A,negate:k,customEvent:T,signature:w,
dependencies:p,event:W});A=sDC.lastIndex}A&&A<N.length&&(N=N.substring(A))&&X.push({literal:N});return X.length?X:null};
M._evaluateBinding=function(N,R,X,A,l,k){N=R.signature?VkS(N,X,A,l,R.signature):X!=R.source?XK(N,R.source):k&&ED(X)?XK(N,X):N.__data[X];R.negate&&(N=!N);return N};
_.Hm.Object.defineProperties(M.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return vSg}}});
return M}),UM=[];var Ped=window.ShadyCSS&&window.ShadyCSS.cssBuild,Cx=aU(function(M){function d(R,X,A,l){if(!Ped){for(var k=X.content.querySelectorAll("style"),T=OXi(X),W=j02(A),w=X.content.firstElementChild,p=0;p<W.length;p++){var m=W[p];m.textContent=R._processStyleText(m.textContent,l);X.content.insertBefore(m,w)}for(w=W=0;w<T.length;w++)p=T[w],m=k[W],m!==p?(p=p.cloneNode(!0),m.parentNode.insertBefore(p,m)):W++,p.textContent=R._processStyleText(p.textContent,l)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(X,
A);if(NUJ&&Ped&&xwd&&(X=X.content.querySelectorAll("style"))){var I="";Array.from(X).forEach(function(O){I+=O.textContent;O.parentNode.removeChild(O)});
R._styleSheet=new CSSStyleSheet;R._styleSheet.replaceSync(I)}}
var N=kRt(uV(M));M=function(){return N.call(this)||this};
_.v(M,N);M._finalizeClass=function(){N._finalizeClass.call(this);var R;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(R=this.__ownObservers)&&this.createObservers(R,this._properties);this._prepareTemplate()};
M._prepareTemplate=function(){var R=this.template;R&&(typeof R==="string"?(console.error("template getter must return HTMLTemplateElement"),R=null):OX||(R=R.cloneNode(!0)));this.prototype._template=R};
M.createProperties=function(R){for(var X in R){var A=this.prototype,l=X,k=R[X],T=R;k.computed&&(k.readOnly=!0);k.computed&&(A._hasReadOnlyEffect(l)?console.warn("Cannot redefine computed property '"+l+"'."):A._createComputedProperty(l,k.computed,T));k.readOnly&&!A._hasReadOnlyEffect(l)?A._createReadOnlyProperty(l,!k.computed):k.readOnly===!1&&A._hasReadOnlyEffect(l)&&console.warn("Cannot make readOnly property '"+l+"' non-readOnly.");k.reflectToAttribute&&!A._hasReflectEffect(l)?A._createReflectedProperty(l):
k.reflectToAttribute===!1&&A._hasReflectEffect(l)&&console.warn("Cannot make reflected property '"+l+"' non-reflected.");k.notify&&!A._hasNotifyEffect(l)?A._createNotifyingProperty(l):k.notify===!1&&A._hasNotifyEffect(l)&&console.warn("Cannot make notify property '"+l+"' non-notify.");k.observer&&A._createPropertyObserver(l,k.observer,T[k.observer]);A._addPropertyToAttributeMap(l)}};
M.createObservers=function(R,X){for(var A=this.prototype,l=0;l<R.length;l++)A._createMethodObserver(R[l],X)};
M.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);N.prototype._initializeProperties.call(this);this.rootPath=YuL;this.importPath=this.constructor.importPath;var R=this.constructor;if(!R.hasOwnProperty("__propertyDefaults")){R.__propertyDefaults=null;var X=R._properties,A;for(A in X){var l=X[A];"value"in l&&(R.__propertyDefaults=R.__propertyDefaults||{},R.__propertyDefaults[A]=l)}}if(R=R.__propertyDefaults)for(var k in R)X=R[k],
this._canApplyPropertyDefault(k)&&(X=typeof X.value=="function"?X.value.call(this):X.value,this._hasAccessor(k)?this._setPendingProperty(k,X,!0):this[k]=X)};
M.prototype._canApplyPropertyDefault=function(R){return!this.hasOwnProperty(R)};
M._processStyleText=function(R,X){return bON(R,X)};
M._finalizeTemplate=function(R){var X=this.prototype._template;if(X&&!X.__polymerFinalized){X.__polymerFinalized=!0;var A=this.importPath;A=A?_.Ca(A):"";d(this,X,R,A);this.prototype._bindTemplate(X)}};
M.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);N.prototype.connectedCallback.call(this)};
M.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);N.prototype.ready.call(this)};
M.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));N.prototype._readyClients.call(this)};
M.prototype._attachDom=function(R){var X=(0,_.VG)(this);if(X.attachShadow)return R?(X.shadowRoot||(X.attachShadow({mode:"open",shadyUpgradeFragment:R}),X.shadowRoot.appendChild(R),this.constructor._styleSheet&&(X.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),EPI&&window.ShadyDOM&&window.ShadyDOM.flushInitial(X.shadowRoot),X.shadowRoot):null;throw Error("Cd");};
M.prototype.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,R)};
M.prototype.resolveUrl=function(R,X){!X&&this.importPath&&(X=_.Ca(this.importPath));return _.Ca(R,X)};
M._parseTemplateContent=function(R,X,A){X.dynamicFns=X.dynamicFns||this._properties;return N._parseTemplateContent.call(this,R,X,A)};
M._addTemplatePropertyEffect=function(R,X,A){!o_||X in this._properties||A.info.part.signature&&A.info.part.signature.static||A.info.part.hostProp||R.nestedTemplate||console.warn("Property '"+X+"' used in template but not declared in 'properties'; attribute will not be observed.");return N._addTemplatePropertyEffect.call(this,R,X,A)};
_.Hm.Object.defineProperties(M,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var R=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof R==="function"&&(R=R());if(R===void 0){if(R=this.hasOwnProperty("is")){R=this.is;var X=null;if(R&&(!rD||ZL3)&&(X=Ta.import(R,"template"),rD&&!X))throw Error("Bd`"+R);R=X}R=R||Object.getPrototypeOf(this.prototype).constructor.template}this._template=R}return this._template},
set:function(R){this._template=R}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var R=this.importMeta;R?this._importPath=eui(R.url):this._importPath=(R=Ta.import(this.is))&&R.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return M});var oSL=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(M){return M}}),Jov=function(M,d){r$L(M,d);
this.value=d.reduce(function(N,R,X){return N+coj(R)+M[X+1]},M[0]).toString()},r$L;
Jov.prototype.toString=function(){return this.value};
_.KNg=function(M){var d=_.wH.apply(1,arguments);r$L(M,d);var N=document.createElement("template");d=d.reduce(function(R,X,A){if(X instanceof HTMLTemplateElement)X=X.innerHTML;else if(X instanceof Jov)X=coj(X);else throw Error("Ed`"+X);return R+X+M[A+1]},M[0]);
oSL&&(d=oSL.createHTML(d));N.innerHTML=d;return N};
r$L=function(M,d){if(!Array.isArray(M)||!Array.isArray(M.raw)||d.length!==M.length-1)throw new TypeError("Fd");};var xk=Cx(HTMLElement);var y$z=aU(function(M){var d=Cx(M);M=function(){var N=d.call(this)||this;N.__lastItems=null;N.__lastMulti=null;N.__selectedMap=null;return N};
_.v(M,d);M.prototype.__updateSelection=function(N,R){var X=R.path;X=="items"?(R=R.base||[],X=this.__lastItems,N!==this.__lastMulti&&this.clearSelection(),X&&(X=yoZ(R,X),this.__applySplices(X)),this.__lastItems=R,this.__lastMulti=N):R.path=="items.splices"?this.__applySplices(R.value.indexSplices):(N=X.slice(6),R=parseInt(N,10),N.indexOf(".")<0&&N==R&&this.__deselectChangedIdx(R))};
M.prototype.__applySplices=function(N){for(var R=this,X=this.__selectedMap,A={},l=0;l<N.length;A={s$jscomp$108:void 0},l++){A.s$jscomp$108=N[l];X.forEach(function(w){return function(p,m){p<w.s$jscomp$108.index||(p>=w.s$jscomp$108.index+w.s$jscomp$108.removed.length?X.set(m,p+w.s$jscomp$108.addedCount-w.s$jscomp$108.removed.length):X.set(m,-1))}}(A));
for(var k=0;k<A.s$jscomp$108.addedCount;k++){var T=A.s$jscomp$108.index+k;X.has(this.items[T])&&X.set(this.items[T],T)}}this.__updateLinks();var W=0;X.forEach(function(w,p){w<0?(R.multi?R.splice("selected",W,1):R.selected=R.selectedItem=null,X.delete(p)):W++})};
M.prototype.__updateLinks=function(){var N=this;this.__dataLinkedPaths={};if(this.multi){var R=0;this.__selectedMap.forEach(function(X){X>=0&&N.linkPaths("items."+X,"selected."+R++)})}else this.__selectedMap.forEach(function(X){N.linkPaths("selected","items."+X);
N.linkPaths("selectedItem","items."+X)})};
M.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
M.prototype.isSelected=function(N){return this.__selectedMap.has(N)};
M.prototype.isIndexSelected=function(N){return this.isSelected(this.items[N])};
M.prototype.__deselectChangedIdx=function(N){var R=this,X=this.__selectedIndexForItemIndex(N);if(X>=0){var A=0;this.__selectedMap.forEach(function(l,k){X==A++&&R.deselect(k)})}};
M.prototype.__selectedIndexForItemIndex=function(N){if(N=this.__dataLinkedPaths["items."+N])return parseInt(N.slice(9),10)};
M.prototype.deselect=function(N){var R=this.__selectedMap.get(N);if(R>=0){this.__selectedMap.delete(N);var X;this.multi&&(X=this.__selectedIndexForItemIndex(R));this.__updateLinks();this.multi?this.splice("selected",X,1):this.selected=this.selectedItem=null}};
M.prototype.deselectIndex=function(N){this.deselect(this.items[N])};
M.prototype.select=function(N){this.selectIndex(this.items.indexOf(N))};
M.prototype.selectIndex=function(N){var R=this.items[N];this.isSelected(R)?this.toggle&&this.deselectIndex(N):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(R,N),this.__updateLinks(),this.multi?this.push("selected",R):this.selected=this.selectedItem=R)};
_.Hm.Object.defineProperties(M,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return M}),J$J=y$z(xk),Yk=function(){return J$J.apply(this,arguments)||this};
_.v(Yk,J$J);_.Hm.Object.defineProperties(Yk,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Yk.is,Yk);var c$g=window.Polymer;window.Polymer=function(M){return window.Polymer._polymerFn(M)};
c$g&&Object.assign(Polymer,c$g);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:bON,resolveUrl:_.Ca,pathFromUrl:eui};Polymer.DomModule=Ta;Polymer.Async={timeOut:_.GY,animationFrame:_.Bz,idlePeriod:VDd,microTask:I_};Polymer.dedupingMixin=aU;Polymer.wrap=_.VG;Polymer.PropertiesChanged=$iL;Polymer.telemetry={instanceCount:BU3,incrementInstanceCount:function(){BU3++},
registrations:fMv,register:Ld2,dumpRegistrations:function(){fMv.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=kRt;Polymer.CaseMap={dashToCamelCase:Yv,camelToDashCase:ZS};Polymer.PropertyAccessors=p1e;Polymer.TemplateStamp=IyV;Polymer.Path={isPath:ED,root:ME,isAncestor:CG6,isDescendant:dD,translate:NE,matches:xNZ,normalize:R_,split:YLq,get:XK,set:ZOv,isDeep:ED};Polymer.Settings={useShadow:jF,useNativeCSSProperties:GDo,useNativeCustomElements:aIV,get rootPath(){return YuL},setRootPath:function(M){YuL=M},
get sanitizeDOMValue(){return lM},setSanitizeDOMValue:function(M){lM=M},
get passiveTouchGestures(){return UHZ},setPassiveTouchGestures:function(M){UHZ=M},
get strictTemplatePolicy(){return rD},setStrictTemplatePolicy:function(M){rD=M},
get allowTemplateFromDomModule(){return ZL3},setAllowTemplateFromDomModule:function(M){ZL3=M},
get legacyOptimizations(){return OX},setLegacyOptimizations:function(M){OX=M},
get syncInitialRender(){return EPI},setSyncInitialRender:function(M){EPI=M},
get legacyUndefined(){return Bm},setLegacyUndefined:function(M){Bm=M},
get legacyWarnings(){return o_},setLegacyWarnings:function(M){o_=M},
get orderedComputed(){return MDz},setOrderedComputed:function(M){MDz=M},
get fastDomIf(){return fx},setFastDomIf:function(M){fx=M},
get removeNestedTemplates(){return iV},setRemoveNestedTemplates:function(M){iV=M},
get suppressTemplateNotifications(){return Lx},setSuppressTemplateNotifications:Lx};Polymer.rootPath!==void 0&&(YuL=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(lM=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(UHZ=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(rD=Polymer.strictTemplatePolicy);ZL3=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(OX=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(EPI=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Bm=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(o_=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(MDz=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(fx=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(iV=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Lx=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return lM},
set:function(M){lM=M}});Polymer.PropertyEffects=uV;Polymer.StyleGather={stylesFromModules:vMA,stylesFromModule:I$S,stylesFromTemplate:OXi,stylesFromModuleImports:j02,cssFromModules:Pa2,cssFromModule:s0Z,cssFromTemplate:oMi,cssFromModuleImports:function(M){return(M=Ta.import(M))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):""}};Polymer.ElementMixin=Cx;Polymer.updateStyles=function(M){window.ShadyCSS&&window.ShadyCSS.styleDocument(M)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:yoZ};Polymer.html=_.KNg;Polymer.htmlLiteral=function(M){return new Jov(M,_.wH.apply(1,arguments))};Polymer.Element=xk;Polymer.ArraySelectorMixin=y$z;Polymer.ArraySelector=Yk;var SNL=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,zJo=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Dbq=/@media\s(.*)/;var eti=null,bXZ=window.HTMLImports&&window.HTMLImports.whenReady||null,HXi;var bbV=null,ZB=null,EM=function(){this.customStyles=[];this.enqueued=!1;nMS(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},eJL=function(M){!M.enqueued&&ZB&&(M.enqueued=!0,nMS(ZB))};
EM.prototype.addCustomStyle=function(M){M.__seenByShadyCSS||(M.__seenByShadyCSS=!0,this.customStyles.push(M),eJL(this))};
EM.prototype.getStyleForCustomStyle=function(M){if(M.__shadyCSSCachedStyle)return M.__shadyCSSCachedStyle;var d;M.getStyle?d=M.getStyle():d=M;return d};
EM.prototype.processStyles=function(){for(var M=this.customStyles,d=0;d<M.length;d++){var N=M[d];if(!N.__shadyCSSCachedStyle){var R=this.getStyleForCustomStyle(N);R&&(R=R.__appliedElement||R,bbV&&bbV(R),N.__shadyCSSCachedStyle=R)}}return M};
EM.prototype.addCustomStyle=EM.prototype.addCustomStyle;EM.prototype.getStyleForCustomStyle=EM.prototype.getStyleForCustomStyle;EM.prototype.processStyles=EM.prototype.processStyles;Object.defineProperties(EM.prototype,{transformCallback:{get:function(){return bbV},
set:function(M){bbV=M}},
validateCallback:{get:function(){return ZB},
set:function(M){var d=!1;ZB||(d=!0);ZB=M;d&&eJL(this)}}});var f$Z=!(window.ShadyDOM&&window.ShadyDOM.inUse),iXA,eF;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(eF=window.ShadyCSS.cssBuild);var Hbt=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?iXA=window.ShadyCSS.nativeCss:window.ShadyCSS?(L$i(window.ShadyCSS),window.ShadyCSS=void 0):L$i(window.WebComponents&&window.WebComponents.flags);var BzL=iXA;var nS3=new EM;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(M,d){nS3.processStyles();ScZ(M,d)},
styleElement:function(){nS3.processStyles()},
styleDocument:function(M){nS3.processStyles();ScZ(document.body,M)},
getComputedStyleValue:function(M,d){return zt2(M,d)},
flushCustomStyles:function(){},
nativeCss:BzL,nativeShadow:f$Z,cssBuild:eF,disableRuntime:Hbt});window.ShadyCSS.CustomStyleInterface=nS3;var ibJ=window.ShadyCSS.CustomStyleInterface,MG=function(){var M=HTMLElement.call(this)||this;M._style=null;ibJ.addCustomStyle(M);return M};
_.v(MG,HTMLElement);MG.prototype.getStyle=function(){if(this._style)return this._style;var M=this.querySelector("style");if(!M)return null;this._style=M;var d=M.getAttribute("include");d&&(M.removeAttribute("include"),M.textContent=Pa2(d)+M.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
MG.prototype.getStyle=MG.prototype.getStyle;window.customElements.define("custom-style",MG);Polymer.CustomStyle=MG;var dI=function(){this._timer=this._callback=this._asyncModule=null},NG,LNI;
dI.prototype.setConfig=function(M,d){var N=this;this._asyncModule=M;this._callback=d;this._timer=this._asyncModule.run(function(){N._timer=null;NG.delete(N);N._callback()})};
dI.prototype.cancel=function(){this.isActive()&&(fyJ(this),NG.delete(this))};
var fyJ=function(M){M.isActive()&&(M._asyncModule.cancel(M._timer),M._timer=null)};
dI.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
dI.prototype.isActive=function(){return this._timer!=null};
_.Rg=function(M,d,N){M instanceof dI?fyJ(M):M=new dI;M.setConfig(d,N);return M};
NG=new Set;_.XM=function(M){NG.add(M)};
LNI=function(){var M=!!NG.size;NG.forEach(function(d){try{d.flush()}catch(N){setTimeout(function(){throw N;})}});
return M};var GHZ=typeof document.head.style.touchAction==="string",tkv=["mousedown","mousemove","mouseup","click"],MBS=[0,1,4,2],tDd;try{tDd=(new MouseEvent("test",{buttons:1})).buttons===1}catch(M){tDd=!1}var EMZ=tDd,a$p=!1;(function(){try{var M=Object.defineProperty({},"passive",{get:function(){a$p=!0}});
window.addEventListener("test",null,M);window.removeEventListener("test",null,M)}catch(d){}})();
var Car=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),xHZ=[],GRI={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},TWi={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Ycv=function(M){var d=M.sourceCapabilities;if(!d||d.firesTouchEvents)if(M.__polymerGesturesHandled={skip:!0},M.type==="click"){d=!1;for(var N=XCA(M),R=0;R<N.length;R++){if(N[R].nodeType===Node.ELEMENT_NODE)if(N[R].localName==="label")xHZ.push(N[R]);
else if(GRI[N[R].localName]){var X=N[R];var A=Array.prototype.slice.call(X.labels||[]);if(!A.length){A=[];try{var l=X.getRootNode();if(X.id){var k=l.querySelectorAll("label[for = '"+X.id+"']");for(X=0;X<k.length;X++)A.push(k[X])}}catch(T){}}for(X=0;X<A.length;X++)d=d||xHZ.indexOf(A[X])>-1}if(N[R]===ayV)return}d||(M.preventDefault(),M.stopPropagation())}},ayV=null,FM=null,A9A=0,VBq=0,FJS=-1,lbA=!1;
document.addEventListener("touchend",function(M){FM||ZXi(!0);ayV=XCA(M)[0];FM=_.Rg(FM,_.GY.after(2500),function(){ZXi();FM=ayV=null})},a$p?{passive:!0}:!1);
var XCA=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(M){return M.composedPath&&M.composedPath()||[]},my={},wD=[];
$oZ({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Wm(this.info)},
mousedown:function(M){if(gD(M)){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),N=this;NWi(this.info,function(R){gD(R)||(vm("up",d,R),Wm(N.info))},function(R){gD(R)&&vm("up",d,R);
Wm(N.info)});
vm("down",d,M)}},
touchstart:function(M){vm("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)},
touchend:function(M){vm("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)}});
$oZ({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(M){this.moves.length>2&&this.moves.shift();this.moves.push(M)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;Wm(this.info)},
mousedown:function(M){if(gD(M)){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),N=this,R=function(X){var A=X.clientX,l=X.clientY;BWq(N.info,A,l)&&(N.info.state=N.info.started?X.type==="mouseup"?"end":"track":"start",N.info.state==="start"&&pH("tap"),N.info.addMove({x:A,y:l}),gD(X)||(N.info.state="end",Wm(N.info)),d&&kfS(N.info,d,X),N.info.started=!0)};
NWi(this.info,R,function(X){N.info.started&&R(X);Wm(N.info)});
this.info.x=M.clientX;this.info.y=M.clientY}},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchmove:function(M){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];var N=M.clientX,R=M.clientY;BWq(this.info,N,R)&&(this.info.state==="start"&&pH("tap"),this.info.addMove({x:N,y:R}),kfS(this.info,d,M),this.info.state="track",this.info.started=!0)},
touchend:function(M){var d=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:M.clientX,y:M.clientY}),kfS(this.info,d,M))}});
$oZ({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(M){gD(M)&&(this.info.x=M.clientX,this.info.y=M.clientY)},
click:function(M){gD(M)&&Doi(this.info,M)},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchend:function(M){Doi(this.info,M.changedTouches[0],M)}});var UiV=aU(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._addEventListenerToNode=function(N,R,X){ha(N,R,X)||M.prototype._addEventListenerToNode.call(this,N,R,X)};
d.prototype._removeEventListenerFromNode=function(N,R,X){QG(N,R,X)||M.prototype._removeEventListenerFromNode.call(this,N,R,X)};
return d});var AV=aU(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._shouldPropertyChange=function(N,R,X){return gD2(this,N,R,X,!0)};
return d}),uP3=aU(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._shouldPropertyChange=function(N,R,X){return gD2(this,N,R,X,this.mutableData)};
_.Hm.Object.defineProperties(d,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return d});
AV._mutablePropertyChange=gD2;var WJA=!1;var CeJ=UiV(uP3(uV(HTMLElement))),V0=function(){var M=CeJ.call(this)||this;if(rD)throw Error("Hd");M.root=null;M.$=null;M.__children=null;return M};
_.v(V0,CeJ);_.F=V0.prototype;_.F.attributeChangedCallback=function(){this.mutableData=!0};
_.F.connectedCallback=function(){wCL()||(this.style.display="none");this.render()};
_.F.disconnectedCallback=function(){this.__removeChildren()};
_.F.__insertChildren=function(){(0,_.VG)((0,_.VG)(this).parentNode).insertBefore(this.root,this)};
_.F.__removeChildren=function(){if(this.__children)for(var M=0;M<this.__children.length;M++)this.root.appendChild(this.__children[M])};
_.F.render=function(){var M=this;if(!this.__children){var d=d||this.querySelector("template");if(!d){var N=new MutationObserver(function(){if(d=M.querySelector("template"))N.disconnect(),M.render();else throw Error("Id");});
N.observe(this,{childList:!0});return}this.root=this._stampTemplate(d);this.$=this.root.$;this.__children=[];for(var R=this.root.firstChild;R;R=R.nextSibling)this.__children[this.__children.length]=R;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Hm.Object.defineProperties(V0,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",V0);Polymer.Debouncer=dI;Polymer.Gestures={gestures:my,recognizers:wD,deepTargetFind:Rkj,addListener:ha,removeListener:QG,register:$oZ,setTouchAction:_.qE,prevent:pH,resetMouseCanceller:function(){FM&&FM.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ha,remove:QG};Polymer.GestureEventListeners=UiV;Polymer.MutableData=AV;Polymer.OptionalMutableData=uP3;Polymer.DomBind=V0;_.lc=function(){do{var M=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var d=LNI()}while(M||d)};var pC6=null;moN.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:moN,writable:!0}});var sfi=uV(moN),jfS=AV(sfi),xid=uV(function(){}),sX=function(M){var d=xid.call(this)||this;
d._configureProperties(M);d.root=d._stampTemplate(d.__dataHost);var N=[];d.children=N;for(var R=d.root.firstChild;R;R=R.nextSibling)N.push(R),R.__templatizeInstance=d;d.__templatizeOwner&&d.__templatizeOwner.__hideTemplateChildren__&&d._showHideChildren(!0);N=d.__templatizeOptions;(M&&N.instanceProps||!N.instanceProps)&&d._enableProperties();return d};
_.v(sX,xid);_.F=sX.prototype;_.F._configureProperties=function(M){if(this.__templatizeOptions.forwardHostProp)for(var d in this.__hostProps)this._setPendingProperty(d,this.__dataHost["_host_"+d]);for(var N in M)this._setPendingProperty(N,M[N])};
_.F.forwardHostProp=function(M,d){this._setPendingPropertyOrPath(M,d,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.F._addEventListenerToNode=function(M,d,N){var R=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(M,d,function(A){A.model=R;N(A)});
else{var X=this.__dataHost.__dataHost;X&&X._addEventListenerToNode(M,d,N)}};
_.F._showHideChildren=function(M){Qfv(M,this.children)};
_.F._setUnmanagedPropertyToNode=function(M,d,N){M.__hideTemplateChildren__&&M.nodeType==Node.TEXT_NODE&&d=="textContent"?M.__polymerTextContent__=N:xid.prototype._setUnmanagedPropertyToNode.call(this,M,d,N)};
_.F.dispatchEvent=function(){return!0};
_.Hm.Object.defineProperties(sX.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var M=this.__parentModel;if(!M){var d;M=this;do M=M.__dataHost.__dataHost;while((d=M.__templatizeOptions)&&!d.parentModel);this.__parentModel=M}return M}}});
var IbZ=AV(sX);var $n=function(){var M=xk.call(this)||this;M.__renderDebouncer=null;M._lastIf=!1;M.__hideTemplateChildren__=!1;return M};
_.v($n,xk);_.F=$n.prototype;_.F.__debounceRender=function(){var M=this;this.__renderDebouncer=_.Rg(this.__renderDebouncer,I_,function(){return M.__render()});
_.XM(this.__renderDebouncer)};
_.F.disconnectedCallback=function(){xk.prototype.disconnectedCallback.call(this);var M=(0,_.VG)(this).parentNode;M&&(M.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.VG)(M).host)||this.__teardownInstance()};
_.F.connectedCallback=function(){xk.prototype.connectedCallback.call(this);wCL()||(this.style.display="none");this.if&&this.__debounceRender()};
_.F.__ensureTemplate=function(){var M=this;if(!this.__template){var d=this._templateInfo?this:(0,_.VG)(this).querySelector("template");if(!d){var N=new MutationObserver(function(){if((0,_.VG)(M).querySelector("template"))N.disconnect(),M.__render();else throw Error("Ld");});
N.observe(this,{childList:!0});return!1}this.__template=d}return!0};
_.F.__ensureInstance=function(){var M=(0,_.VG)(this).parentNode;if(this.__hasInstance()){var d=this.__getInstanceNodes();if(d&&d.length&&(0,_.VG)(this).previousSibling!==d[d.length-1])for(var N=0,R=void 0;N<d.length&&(R=d[N]);N++)(0,_.VG)(M).insertBefore(R,this)}else{if(!M||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(M)}return!0};
_.F.render=function(){_.lc()};
_.F.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Lx&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.F.__hasInstance=function(){};
_.F.__getInstanceNodes=function(){};
_.F.__createAndInsertInstance=function(){};
_.F.__teardownInstance=function(){};
_.F._showHideChildren=function(){};
_.Hm.Object.defineProperties($n,{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:$n.prototype.__debounceRender},restamp:{type:Boolean,observer:$n.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var YNV=function(){var M=$n.call(this)||this;M.__instance=null;M.__syncInfo=null;return M};
_.v(YNV,$n);_.F=YNV.prototype;_.F.__hasInstance=function(){return!!this.__instance};
_.F.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.F.__createAndInsertInstance=function(M){var d=this,N=this.__dataHost||this;if(rD&&!this.__dataHost)throw Error("Jd");var R=N._bindTemplate(this.__template,!0);R.runEffects=function(X,A,l){var k=d.__syncInfo;if(d.if)k&&(d.__syncInfo=null,d._showHideChildren(),A=Object.assign(k.changedProps,A)),X(A,l);else if(d.__instance)if(k||(k=d.__syncInfo={runEffects:X,changedProps:{}}),l)for(var T in A)X=ME(T),k.changedProps[X]=d.__dataHost[X];else Object.assign(k.changedProps,A)};
this.__instance=N._stampTemplate(this.__template,R);(0,_.VG)(M).insertBefore(this.__instance,this)};
_.F.__syncHostProperties=function(){var M=this.__syncInfo;M&&(this.__syncInfo=null,M.runEffects(M.changedProps,!1))};
_.F.__teardownInstance=function(){var M=this.__dataHost||this;this.__instance&&(M._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.F._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,Qfv(M,this.__instance.templateInfo.childNodes));M||this.__syncHostProperties()};
var ZbL=function(){var M=$n.call(this)||this;M.__ctor=null;M.__instance=null;M.__invalidProps=null;return M};
_.v(ZbL,$n);_.F=ZbL.prototype;_.F.__hasInstance=function(){return!!this.__instance};
_.F.__getInstanceNodes=function(){return this.__instance.children};
_.F.__createAndInsertInstance=function(M){this.__ctor||(this.__ctor=Pm(this.__template,this,{mutableData:!0,forwardHostProp:function(d,N){this.__instance&&(this.if?this.__instance.forwardHostProp(d,N):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ME(d)]=!0))}}));
this.__instance=new this.__ctor;(0,_.VG)(M).insertBefore(this.__instance.root,this)};
_.F.__teardownInstance=function(){if(this.__instance){var M=this.__instance.children;if(M&&M.length){var d=(0,_.VG)(M[0]).parentNode;if(d){d=(0,_.VG)(d);for(var N=0,R=void 0;N<M.length&&(R=M[N]);N++)d.removeChild(R)}}this.__instance=this.__invalidProps=null}};
_.F.__syncHostProperties=function(){var M=this.__invalidProps;if(M){this.__invalidProps=null;for(var d in M)this.__instance._setPendingProperty(d,this.__dataHost[d]);this.__instance._flushProperties()}};
_.F._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,this.__instance._showHideChildren(M));M||this.__syncHostProperties()};
_.Dc=fx?YNV:ZbL;customElements.define(_.Dc.is,_.Dc);Polymer.enqueueDebouncer=_.XM;Polymer.flush=_.lc;Polymer.Templatize={templatize:Pm,modelForElement:J96};Polymer.TemplateInstanceBase=sX;Polymer.DomIf=_.Dc;var ESz=uP3(xk),T3=function(){var M=ESz.call(this)||this;M.__instances=[];M.__renderDebouncer=null;M.__itemsIdxToInstIdx={};M.__chunkCount=null;M.__renderStartTime=null;M.__itemsArrayChanged=!1;M.__shouldMeasureChunk=!1;M.__shouldContinueChunking=!1;M.__chunkingId=0;M.__sortFn=null;M.__filterFn=null;M.__observePaths=null;M.__ctor=null;M.__isDetached=!0;M.template=null;return M};
_.v(T3,ESz);_.F=T3.prototype;_.F.disconnectedCallback=function(){ESz.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var M=0;M<this.__instances.length;M++)this.__detachInstance(M);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.F.connectedCallback=function(){ESz.prototype.connectedCallback.call(this);wCL()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var M=(0,_.VG)((0,_.VG)(this).parentNode),d=0;d<this.__instances.length;d++)this.__attachInstance(d,M);this.__chunkingId&&this.__render()}};
_.F.__ensureTemplatized=function(){var M=this;if(!this.__ctor){var d=this.template=this._templateInfo?this:this.querySelector("template");if(!d){var N=new MutationObserver(function(){if(M.querySelector("template"))N.disconnect(),M.__render();else throw Error("Md");});
N.observe(this,{childList:!0});return!1}var R={};R[this.as]=!0;R[this.indexAs]=!0;R[this.itemsIndexAs]=!0;this.__ctor=Pm(d,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:R,forwardHostProp:function(X,A){for(var l=this.__instances,k=0,T=void 0;k<l.length&&(T=l[k]);k++)T.forwardHostProp(X,A)},
notifyInstanceProp:function(X,A,l){xNZ(this.as,A)&&(X=X[this.itemsIndexAs],A==this.as&&(this.items[X]=l),A=NE(this.as,"items."+X,A),this.notifyPath(A,l))}})}return!0};
_.F.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.F.__functionFromPropertyValue=function(M){if(typeof M==="string"){var d=this.__getMethodHost();return function(){return d[M].apply(d,arguments)}}return M};
_.F.__sortChanged=function(M){this.__sortFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.F.__filterChanged=function(M){this.__filterFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.F.__computeFrameTime=function(M){return Math.ceil(1E3/M)};
_.F.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.F.__handleObservedPaths=function(M){if(this.__sortFn||this.__filterFn)if(!M)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var d=this.__observePaths,N=0;N<d.length;N++)M.indexOf(d[N])===0&&this.__debounceRender(this.__render,this.delay)};
_.F.__itemsChanged=function(M){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(M.path,M.value)||(M.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.F.__debounceRender=function(M,d){d=d===void 0?0:d;this.__renderDebouncer=_.Rg(this.__renderDebouncer,d>0?_.GY.after(d):I_,M.bind(this));_.XM(this.__renderDebouncer)};
_.F.render=function(){this.__debounceRender(this.__render);_.lc()};
_.F.__render=function(){var M=this;if(this.__ensureTemplatized()){var d=this.items||[],N=this.__sortAndFilterItems(d),R=this.__calculateLimit(N.length);this.__updateInstances(d,R,N);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){M.__chunkingId=null;M.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Lx&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.F.__sortAndFilterItems=function(M){for(var d=this,N=Array(M.length),R=0;R<M.length;R++)N[R]=R;this.__filterFn&&(N=N.filter(function(X,A,l){return d.__filterFn(M[X],A,l)}));
this.__sortFn&&N.sort(function(X,A){return d.__sortFn(M[X],M[A])});
return N};
_.F.__calculateLimit=function(M){var d=M,N=this.__instances.length;if(this.initialCount){var R;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(d=Math.min(M,this.initialCount),this.__chunkCount=(R=Math.max(d-N,0))||1):(R=Math.min(Math.max(M-N,0),this.__chunkCount),d=Math.min(N+R,M));this.__shouldMeasureChunk=R===this.__chunkCount;this.__shouldContinueChunking=d<M;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return d};
_.F.__continueChunking=function(){if(this.__shouldMeasureChunk){var M=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/M*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.F.__updateInstances=function(M,d,N){var R=this.__itemsIdxToInstIdx={},X;for(X=0;X<d;X++){var A=this.__instances[X],l=N[X],k=M[l];R[l]=X;A?(A._setPendingProperty(this.as,k),A._setPendingProperty(this.indexAs,X),A._setPendingProperty(this.itemsIndexAs,l),A._flushProperties()):this.__insertInstance(k,X,l)}for(M=this.__instances.length-1;M>=X;M--)this.__detachAndRemoveInstance(M)};
_.F.__detachInstance=function(M){M=this.__instances[M];for(var d=(0,_.VG)(M.root),N=0;N<M.children.length;N++)d.appendChild(M.children[N]);return M};
_.F.__attachInstance=function(M,d){d.insertBefore(this.__instances[M].root,this)};
_.F.__detachAndRemoveInstance=function(M){this.__detachInstance(M);this.__instances.splice(M,1)};
_.F.__stampInstance=function(M,d,N){var R={};R[this.as]=M;R[this.indexAs]=d;R[this.itemsIndexAs]=N;return new this.__ctor(R)};
_.F.__insertInstance=function(M,d,N){M=this.__stampInstance(M,d,N);N=(N=this.__instances[d+1])?N.children[0]:this;(0,_.VG)((0,_.VG)(this).parentNode).insertBefore(M.root,N);return this.__instances[d]=M};
_.F._showHideChildren=function(M){for(var d=0;d<this.__instances.length;d++)this.__instances[d]._showHideChildren(M)};
_.F.__handleItemPath=function(M,d){var N=M.slice(6),R=N.indexOf(".");M=R<0?N:N.substring(0,R);if(M==parseInt(M,10)){N=R<0?"":N.substring(R+1);this.__handleObservedPaths(N);if(M=this.__instances[this.__itemsIdxToInstIdx[M]])M._setPendingPropertyOrPath(this.as+(N?"."+N:""),d,!1,!0),M._flushProperties();return!0}};
_.F.itemForElement=function(M){return(M=this.modelForElement(M))&&M[this.as]};
_.F.indexForElement=function(M){return(M=this.modelForElement(M))&&M[this.indexAs]};
_.F.modelForElement=function(M){return J96(this.template,M)};
_.Hm.Object.defineProperties(T3,{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:T3.prototype.__sortChanged},filter:{type:Function,observer:T3.prototype.__filterChanged},observe:{type:String,observer:T3.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Lx,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.*)"]}}});
T3.prototype._setRenderedItemCount=function(){};
customElements.define(T3.is,T3);Polymer.DomRepeat=T3;var MpI=function(M,d){var N=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=M;this.callback=d;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){N._schedule()};
this.connect();this._schedule()},drd=function(M){var d=(0,_.VG)(M);
if(KH(M))return d.assignedNodes({flatten:!0});M=[];for(var N=0;N<d.childNodes.length;N++){var R=d.childNodes[N];KH(R)?M.push.apply(M,_.wu((0,_.VG)(R).assignedNodes({flatten:!0}))):M.push(R)}return M};
_.F=MpI.prototype;_.F.connect=function(){var M=this;KH(this._target)?this._listenSlots([this._target]):(0,_.VG)(this._target).children&&(this._listenSlots((0,_.VG)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(d){M._processMutations(d)}):(this._nativeChildrenObserver=new MutationObserver(function(d){M._processMutations(d)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.F.disconnect=function(){KH(this._target)?this._unlistenSlots([this._target]):(0,_.VG)(this._target).children&&(this._unlistenSlots((0,_.VG)(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};
_.F._schedule=function(){var M=this;this._scheduled||(this._scheduled=!0,I_.run(function(){return M.flush()}))};
_.F._processMutations=function(M){this._processSlotMutations(M);this.flush()};
_.F._processSlotMutations=function(M){if(M)for(var d=0;d<M.length;d++){var N=M[d];N.addedNodes&&this._listenSlots(N.addedNodes);N.removedNodes&&this._unlistenSlots(N.removedNodes)}};
_.F.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var M={target:this._target,addedNodes:[],removedNodes:[]},d=drd(this._target),N=yoZ(d,this._effectiveNodes),R=0,X=void 0;R<N.length&&(X=N[R]);R++)for(var A=0,l=void 0;A<X.removed.length&&(l=X.removed[A]);A++)M.removedNodes.push(l);
R=0;for(X=void 0;R<N.length&&(X=N[R]);R++)for(A=X.index;A<X.index+X.addedCount;A++)M.addedNodes.push(d[A]);this._effectiveNodes=d;d=!1;if(M.addedNodes.length||M.removedNodes.length)d=!0,this.callback.call(this._target,M);return d};
_.F._listenSlots=function(M){for(var d=0;d<M.length;d++){var N=M[d];KH(N)&&N.addEventListener("slotchange",this._boundSchedule)}};
_.F._unlistenSlots=function(M){for(var d=0;d<M.length;d++){var N=M[d];KH(N)&&N.removeEventListener("slotchange",this._boundSchedule)}};var BF=Element.prototype,N_L=BF.matches||BF.matchesSelector||BF.mozMatchesSelector||BF.msMatchesSelector||BF.oMatchesSelector||BF.webkitMatchesSelector,R5z=function(M,d){return N_L.call(M,d)},yG=function(M){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(M);
this.node=M},VpI;
_.F=yG.prototype;_.F.observeNodes=function(M){return new MpI(this.node,M)};
_.F.unobserveNodes=function(M){M.disconnect()};
_.F.notifyObserver=function(){};
_.F.deepContains=function(M){if((0,_.VG)(this.node).contains(M))return!0;var d=M;for(M=M.ownerDocument;d&&d!==M&&d!==this.node;)d=(0,_.VG)(d).parentNode||(0,_.VG)(d).host;return d===this.node};
_.F.getOwnerRoot=function(){return(0,_.VG)(this.node).getRootNode()};
_.F.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.VG)(this.node).assignedNodes({flatten:!0}):[]};
_.F.getDestinationInsertionPoints=function(){for(var M=[],d=(0,_.VG)(this.node).assignedSlot;d;)M.push(d),d=(0,_.VG)(d).assignedSlot;return M};
_.F.importNode=function(M,d){return(0,_.VG)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(M,d)};
_.F.getEffectiveChildNodes=function(){return drd(this.node)};
_.F.queryDistributedElements=function(M){for(var d=this.getEffectiveChildNodes(),N=[],R=0,X=d.length,A=void 0;R<X&&(A=d[R]);R++)A.nodeType===Node.ELEMENT_NODE&&R5z(A,M)&&N.push(A);return N};
_.Hm.Object.defineProperties(yG.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var M=this.node;return M._activeElement!==void 0?M._activeElement:M.activeElement}}});
var kn=function(M){this.event=M};
_.Hm.Object.defineProperties(kn.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 XDe=yG;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var FZm=window.ShadyDOM.Wrapper,ATV=function(){return FZm.apply(this,arguments)||this};
_.v(ATV,FZm);Object.getOwnPropertyNames(yG.prototype).forEach(function(M){M!="activeElement"&&M!="constructor"&&(ATV.prototype[M]=yG.prototype[M])});
S$i(ATV.prototype,["classList"]);XDe=ATV;Object.defineProperties(kn.prototype,{localTarget:{get:function(){var M=this.event.currentTarget;M=M&&_.Wl(M).getOwnerRoot();for(var d=this.path,N=0;N<d.length;N++){var R=d[N];if(_.Wl(R).getOwnerRoot()===M)return R}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else c9Z(),S$i(yG.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),zkr();VpI=XDe;_.Wl=function(M){M=M||document;if(M instanceof XDe)return M;if(M instanceof kn)return M;var d=M.__domApi;d||(M instanceof Event?d=new kn(M):d=new XDe(M),M.__domApi=d);return d};var l4z=/:host\(:dir\((ltr|rtl)\)\)/g,$rd=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,B_I=/:dir\((?:ltr|rtl)\)/,kLI=!(!window.ShadyDOM||!window.ShadyDOM.inUse),cm=[],T9=null,Ja="",T_I=aU(function(M){kLI||T9||(Ja=document.documentElement.getAttribute("dir"),T9=new MutationObserver(bQp),T9.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var d=p1e(M);M=function(){var N=d.call(this)||this;N.__autoDirOptOut=!1;return N};
_.v(M,d);M._processStyleText=function(N,R){N=d._processStyleText.call(this,N,R);!kLI&&B_I.test(N)&&(N=this._replaceDirInCssText(N),this.__activateDir=!0);return N};
M._replaceDirInCssText=function(N){N=N.replace(l4z,':host([dir="$1"])');return N=N.replace($rd,':host([dir="$2"]) $1')};
M.prototype.ready=function(){d.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
M.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(T9&&T9.takeRecords().length&&bQp(),cm.push(this),this.__autoDirOptOut||this.setAttribute("dir",Ja))};
M.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var N=cm.indexOf(this);N>-1&&cm.splice(N,1)}};
M.__activateDir=!1;return M});var DrV=function(M){for(;M;){var d=Object.getOwnPropertyDescriptor(M,"observedAttributes");if(d)return d.get;M=Object.getPrototypeOf(M.prototype).constructor}return function(){return[]}};
aU(function(M){var d=Cx(M),N=DrV(d);M=function(){return d.call(this)||this};
_.v(M,d);M.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:d.prototype._initializeProperties.call(this)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||d.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(R){return d.prototype._canApplyPropertyDefault.call(this,R)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(R))};
M.prototype.attributeChangedCallback=function(R,X,A,l){R=="disable-upgrade"?this.__isUpgradeDisabled&&A==null&&(d.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.VG)(this).isConnected&&d.prototype.connectedCallback.call(this)):d.prototype.attributeChangedCallback.call(this,R,X,A,l)};
M.prototype.connectedCallback=function(){this.__isUpgradeDisabled||d.prototype.connectedCallback.call(this)};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||d.prototype.disconnectedCallback.call(this)};
_.Hm.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return N.call(this).concat("disable-upgrade")}}});
return M});var SF=!1,HQS=[],za=[];var LJZ=window.ShadyDOM,tBZ=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",abA):document.readyState==="interactive"||document.readyState==="complete"?abA():window.addEventListener("DOMContentLoaded",abA);var CBA=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=""},Uop=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,u32=/@import[^;]*;/gim,dbA=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,NzZ=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,RXZ=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,XaA=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,EDq=/^@[^\s]*keyframes/,
ZQZ=/\s+/g;var FSi={};var l7Z=Promise.resolve();var g$t=new Set;var WZd=/;\s*/m,wDe=/^\s*(initial)|(inherit)\s*$/,pDz=/\s*!important/,mrz=function(){this._map={}};
mrz.prototype.set=function(M,d){M=M.trim();this._map[M]={properties:d,dependants:{}}};
mrz.prototype.get=function(M){M=M.trim();return this._map[M]||null};
var h5z=null,DA=function(){this._measureElement=this._currentElement=null;this._map=new mrz};
_.F=DA.prototype;_.F.detectMixin=function(M){M=zJo.test(M)||SNL.test(M);zJo.lastIndex=0;SNL.lastIndex=0;return M};
_.F.transformTemplate=function(M,d){if(M._gatheredStyle===void 0){var N=[];for(var R=M.content.querySelectorAll("style"),X=0;X<R.length;X++){var A=R[X];if(A.hasAttribute("shady-unscoped")){if(!f$Z){var l=A.textContent;if(!g$t.has(l)){g$t.add(l);var k=document.createElement("style");k.setAttribute("shady-unscoped","");k.textContent=l;document.head.appendChild(k)}A.parentNode.removeChild(A)}}else N.push(A.textContent),A.parentNode.removeChild(A)}(N=N.join("").trim())?(R=document.createElement("style"),
R.textContent=N,M.content.insertBefore(R,M.content.firstChild),N=R):N=null;M._gatheredStyle=N}return(M=M._gatheredStyle)?this.JSC$9064_transformStyle(M,d):null};
_.F.JSC$9064_transformStyle=function(M,d){d=d===void 0?"":d;var N=TzZ(M);this.transformRules(N,d);M.textContent=kMZ(N);return N};
_.F.transformCustomStyle=function(M){var d=this,N=TzZ(M);g_i(N,function(R){R.selector===":root"&&(R.selector="html");d.transformRule(R)});
M.textContent=kMZ(N);return N};
_.F.transformRules=function(M,d){var N=this;this._currentElement=d;g_i(M,function(R){N.transformRule(R)});
this._currentElement=null};
_.F.transformRule=function(M){M.cssText=Qzm(this,M.parsedCssText,M);M.selector===":root"&&(M.selector=":host > *")};
var Qzm=function(M,d,N){d=d.replace(SNL,function(R,X,A,l){return M._produceCssProperties(R,X,A,l,N)});
return M._consumeCssProperties(d,N)};
_.F=DA.prototype;_.F._getInitialValueForProperty=function(M){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(M)};
_.F._fallbacksFromPreviousRules=function(M){for(var d=this,N=M;N.parent;)N=N.parent;var R={},X=!1;g_i(N,function(A){(X=X||A===M)||A.selector===M.selector&&Object.assign(R,d._cssTextToMap(A.parsedCssText))});
return R};
_.F._consumeCssProperties=function(M,d){for(var N;N=zJo.exec(M);){var R=N[0],X=N[1];N=N.index;var A=N+R.indexOf("@apply"),l=N+R.length;R=M.slice(0,A);M=M.slice(l);A=d?this._fallbacksFromPreviousRules(d):{};Object.assign(A,this._cssTextToMap(R));X=this._atApplyToCssProperties(X,A);M=R+X+M;zJo.lastIndex=N+X.length}return M};
_.F._atApplyToCssProperties=function(M,d){M=M.replace(WZd,"");var N=[],R=this._map.get(M);R||(this._map.set(M,{}),R=this._map.get(M));if(R){this._currentElement&&(R.dependants[this._currentElement]=!0);var X,A=R.properties;for(X in A){var l=d&&d[X];R=[X,": var(",M,"_-_",X];l&&R.push(",",l.replace(pDz,""));R.push(")");pDz.test(A[X])&&R.push(" !important");N.push(R.join(""))}}return N.join("; ")};
_.F._replaceInitialOrInherit=function(M,d){var N=wDe.exec(d);N&&(d=N[1]?this._getInitialValueForProperty(M):"apply-shim-inherit");return d};
_.F._cssTextToMap=function(M,d){d=d===void 0?!1:d;M=M.split(";");for(var N,R,X={},A=0;A<M.length;A++)if(N=M[A])R=N.split(":"),R.length>1&&(N=R[0].trim(),R=R.slice(1).join(":"),d&&(R=this._replaceInitialOrInherit(N,R)),X[N]=R);return X};
_.F._invalidateMixinEntry=function(M){if(h5z)for(var d in M.dependants)d!==this._currentElement&&h5z(d)};
_.F._produceCssProperties=function(M,d,N,R,X){var A=this;N&&WSN(N,function(O,y){y&&A._map.get(y)&&(R="@apply "+y+";")});
if(!R)return M;var l=this._consumeCssProperties(""+R,X);X=M.slice(0,M.indexOf("--"));var k=l=this._cssTextToMap(l,!0),T=this._map.get(d),W=T&&T.properties;W?k=Object.assign(Object.create(W),l):this._map.set(d,k);var w=[],p,m=!1;for(p in k){var I=l[p];I===void 0&&(I="initial");!W||p in W||(m=!0);w.push(d+"_-_"+p+": "+I)}m&&this._invalidateMixinEntry(T);T&&(T.properties=k);N&&(X=M+";"+X);return X+w.join("; ")+";"};
DA.prototype.detectMixin=DA.prototype.detectMixin;DA.prototype.transformStyle=DA.prototype.JSC$9064_transformStyle;DA.prototype.transformCustomStyle=DA.prototype.transformCustomStyle;DA.prototype.transformRules=DA.prototype.transformRules;DA.prototype.transformRule=DA.prototype.transformRule;DA.prototype.transformTemplate=DA.prototype.transformTemplate;DA.prototype._separator="_-_";Object.defineProperty(DA.prototype,"invalidCallback",{get:function(){return h5z},
set:function(M){h5z=M}});var gI=new DA,qWJ=function(){this.customStyleInterface=null;gI.invalidCallback=AuA},WF=function(M){!M.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(M.customStyleInterface=window.ShadyCSS.CustomStyleInterface,M.customStyleInterface.transformCallback=function(d){gI.transformCustomStyle(d)},M.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){M.customStyleInterface.enqueued&&M.flushCustomStyles()})})};
_.F=qWJ.prototype;_.F.prepareTemplate=function(M,d){WF(this);waA(M)===""&&(FSi[d]=M,d=gI.transformTemplate(M,d),M._styleAst=d)};
_.F.flushCustomStyles=function(){WF(this);if(this.customStyleInterface){var M=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var d=0;d<M.length;d++){var N=this.customStyleInterface.getStyleForCustomStyle(M[d]);N&&gI.transformCustomStyle(N)}this.customStyleInterface.enqueued=!1}}};
_.F.styleSubtree=function(M,d){WF(this);d&&ScZ(M,d);if(M.shadowRoot)for(this.styleElement(M),M=M.shadowRoot.children||M.shadowRoot.childNodes,d=0;d<M.length;d++)this.styleSubtree(M[d]);else for(M=M.children||M.childNodes,d=0;d<M.length;d++)this.styleSubtree(M[d])};
_.F.styleElement=function(M){WF(this);var d=M.localName,N;d?d.indexOf("-")>-1?N=d:N=M.getAttribute&&M.getAttribute("is")||"":N=M.is;d=FSi[N];if(!(d&&waA(d)!==""||!d||Vtp(d))){if(Vtp(d)||d._applyShimValidatingVersion!==d._applyShimNextVersion)this.prepareTemplate(d,N),$bj(d);if(M=M.shadowRoot)if(M=M.querySelector("style"))M.__cssRules=d._styleAst,M.textContent=kMZ(d._styleAst)}};
_.F.styleDocument=function(M){WF(this);this.styleSubtree(document.body,M)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var wI=new qWJ,I4t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(M,d){wI.flushCustomStyles();wI.prepareTemplate(M,d)},
prepareTemplateStyles:function(M,d,N){window.ShadyCSS.prepareTemplate(M,d,N)},
prepareTemplateDom:function(){},
styleSubtree:function(M,d){wI.flushCustomStyles();wI.styleSubtree(M,d)},
styleElement:function(M){wI.flushCustomStyles();wI.styleElement(M)},
styleDocument:function(M){wI.flushCustomStyles();wI.styleDocument(M)},
getComputedStyleValue:function(M,d){return zt2(M,d)},
flushCustomStyles:function(){wI.flushCustomStyles()},
nativeCss:BzL,nativeShadow:f$Z,cssBuild:eF,disableRuntime:Hbt};I4t&&(window.ShadyCSS.CustomStyleInterface=I4t)}window.ShadyCSS.ApplyShim=gI;var v$L;v$L=window.ShadyCSS;_.p7=aU(function(M){M=UiV(Cx(M));var d=Ped?M:T_I(M),N=DrV(d),R={x:"pan-x",y:"pan-y",none:"none",all:"auto"};M=function(){return d.call(this)||this};
_.v(M,d);M.prototype.created=function(){};
M.prototype.__attributeReaction=function(X,A,l){(this.__dataAttributes&&this.__dataAttributes[X]||X==="disable-upgrade")&&this.attributeChangedCallback(X,A,l,null)};
M.prototype.setAttribute=function(X,A){if(diJ&&!this._legacyForceObservedAttributes){var l=this.getAttribute(X);d.prototype.setAttribute.call(this,X,A);this.__attributeReaction(X,l,String(A))}else d.prototype.setAttribute.call(this,X,A)};
M.prototype.removeAttribute=function(X){if(diJ&&!this._legacyForceObservedAttributes){var A=this.getAttribute(X);d.prototype.removeAttribute.call(this,X);this.__attributeReaction(X,A,null)}else d.prototype.removeAttribute.call(this,X)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||d.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(X){return d.prototype._canApplyPropertyDefault.call(this,X)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(X))};
M.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(d.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
M.prototype.attached=function(){};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(d.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
M.prototype.detached=function(){};
M.prototype.attributeChangedCallback=function(X,A,l,k){A!==l&&(X=="disable-upgrade"?this.__isUpgradeDisabled&&l==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.VG)(this).isConnected&&this.connectedCallback()):(d.prototype.attributeChangedCallback.call(this,X,A,l,k),this.attributeChanged(X,A,l)))};
M.prototype.attributeChanged=function(){};
M.prototype._initializeProperties=function(){if(OX&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var X=Object.getPrototypeOf(this);X.hasOwnProperty("__hasRegisterFinished")||(this._registered(),X.__hasRegisterFinished=!0);d.prototype._initializeProperties.call(this);this.root=this;this.created();diJ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
M.prototype._takeAttributes=function(){for(var X=this.attributes,A=0,l=X.length;A<l;A++){var k=X[A];this.__attributeReaction(k.name,null,k.value)}};
M.prototype._registered=function(){};
M.prototype.ready=function(){this._ensureAttributes();d.prototype.ready.call(this)};
M.prototype._ensureAttributes=function(){};
M.prototype._applyListeners=function(){};
M.prototype.serialize=function(X){return this._serializeValue(X)};
M.prototype.deserialize=function(X,A){return this._deserializeValue(X,A)};
M.prototype.reflectPropertyToAttribute=function(X,A,l){this._propertyToAttribute(X,A,l)};
M.prototype.serializeValueToAttribute=function(X,A,l){this._valueToNodeAttribute(l||this,X,A)};
M.prototype.extend=function(X,A){if(!X||!A)return X||A;for(var l=Object.getOwnPropertyNames(A),k=0,T=void 0;k<l.length&&(T=l[k]);k++){var W=Object.getOwnPropertyDescriptor(A,T);W&&Object.defineProperty(X,T,W)}return X};
M.prototype.mixin=function(X,A){for(var l in A)X[l]=A[l];return X};
M.prototype.chainObject=function(X,A){X&&A&&X!==A&&(X.__proto__=A);return X};
M.prototype.instanceTemplate=function(X){X=this.constructor._contentForTemplate(X);return document.importNode(X,!0)};
M.prototype.fire=function(X,A,l){l=l||{};A=A===null||A===void 0?{}:A;X=new Event(X,{bubbles:l.bubbles===void 0?!0:l.bubbles,cancelable:!!l.cancelable,composed:l.composed===void 0?!0:l.composed});X.detail=A;(0,_.VG)(l.node||this).dispatchEvent(X);return X};
M.prototype.listen=function(X,A,l){X=X||this;var k=this.__boundListeners||(this.__boundListeners=new WeakMap),T=k.get(X);T||(T={},k.set(X,T));k=A+l;T[k]||(T[k]=this._addMethodEventListenerToNode(X,A,l,this))};
M.prototype.unlisten=function(X,A,l){X=X||this;var k=this.__boundListeners&&this.__boundListeners.get(X);l=A+l;var T=k&&k[l];T&&(this._removeEventListenerFromNode(X,A,T),k[l]=null)};
M.prototype.setScrollDirection=function(X,A){_.qE(A||this,R[X]||"auto")};
M.prototype.$$=function(X){return this.root.querySelector(X)};
M.prototype.distributeContent=function(){var X=_.Wl(this);window.ShadyDOM&&X.shadowRoot&&ShadyDOM.flush()};
M.prototype.getEffectiveChildNodes=function(){return _.Wl(this).getEffectiveChildNodes()};
M.prototype.queryDistributedElements=function(X){return _.Wl(this).queryDistributedElements(X)};
M.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(X){return X.nodeType===Node.ELEMENT_NODE})};
M.prototype.getEffectiveTextContent=function(){for(var X=this.getEffectiveChildNodes(),A=[],l=0,k;k=X[l];l++)k.nodeType!==Node.COMMENT_NODE&&A.push(k.textContent);return A.join("")};
M.prototype.queryEffectiveChildren=function(X){return(X=this.queryDistributedElements(X))&&X[0]};
M.prototype.queryAllEffectiveChildren=function(X){return this.queryDistributedElements(X)};
M.prototype.getContentChildNodes=function(X){return(X=this.root.querySelector(X||"slot"))?_.Wl(X).getDistributedNodes():[]};
M.prototype.getContentChildren=function(X){return this.getContentChildNodes(X).filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
M.prototype.isLightDescendant=function(X){return this!==X&&(0,_.VG)(this).contains(X)&&(0,_.VG)(this).getRootNode()===(0,_.VG)(X).getRootNode()};
M.prototype.isLocalDescendant=function(X){return this.root===(0,_.VG)(X).getRootNode()};
M.prototype.scopeSubtree=function(X,A){return Gfr(X,A===void 0?!1:A)};
M.prototype.getComputedStyleValue=function(X){return v$L.getComputedStyleValue(this,X)};
M.prototype.debounce=function(X,A,l){this._debouncers=this._debouncers||{};return this._debouncers[X]=_.Rg(this._debouncers[X],l>0?_.GY.after(l):I_,A.bind(this))};
M.prototype.isDebouncerActive=function(X){this._debouncers=this._debouncers||{};X=this._debouncers[X];return!(!X||!X.isActive())};
M.prototype.flushDebouncer=function(X){this._debouncers=this._debouncers||{};(X=this._debouncers[X])&&X.flush()};
M.prototype.cancelDebouncer=function(X){this._debouncers=this._debouncers||{};(X=this._debouncers[X])&&X.cancel()};
M.prototype.async=function(X,A){return A>0?_.GY.run(X.bind(this),A):~I_.run(X.bind(this))};
M.prototype.cancelAsync=function(X){X<0?I_.cancel(~X):_.GY.cancel(X)};
M.prototype.create=function(X,A){X=document.createElement(X);if(A)if(X.setProperties)X.setProperties(A);else for(var l in A)X[l]=A[l];return X};
M.prototype.elementMatches=function(X,A){return R5z(A||this,X)};
M.prototype.toggleAttribute=function(X,A){var l=this;arguments.length===3&&(l=arguments[2]);arguments.length==1&&(A=!l.hasAttribute(X));if(A)return(0,_.VG)(l).setAttribute(X,""),!0;(0,_.VG)(l).removeAttribute(X);return!1};
M.prototype.toggleClass=function(X,A,l){l=l||this;arguments.length==1&&(A=!l.classList.contains(X));A?l.classList.add(X):l.classList.remove(X)};
M.prototype.transform=function(X,A){A=A||this;A.style.webkitTransform=X;A.style.transform=X};
M.prototype.translate3d=function(X,A,l,k){this.transform("translate3d("+X+","+A+","+l+")",k||this)};
M.prototype.arrayDelete=function(X,A){if(Array.isArray(X)){if(A=X.indexOf(A),A>=0)return X.splice(A,1)}else if(A=XK(this,X).indexOf(A),A>=0)return this.splice(X,A,1);return null};
M.prototype._logger=function(X,A){Array.isArray(A)&&A.length===1&&Array.isArray(A[0])&&(A=A[0]);switch(X){case "log":case "warn":case "error":console[X].apply(console,_.wu(A))}};
M.prototype._log=function(){this._logger("log",_.wH.apply(0,arguments))};
M.prototype._warn=function(){this._logger("warn",_.wH.apply(0,arguments))};
M.prototype._error=function(){this._logger("error",_.wH.apply(0,arguments))};
M.prototype._logf=function(X){return["[%s::%s]",this.is,X].concat(_.wu(_.wH.apply(1,arguments)))};
_.Hm.Object.defineProperties(M.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var X=(0,_.VG)(this).getRootNode();return X instanceof DocumentFragment?X.host:X}}});
_.Hm.Object.defineProperties(M,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return diJ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Ld2(this.prototype)),this.__observedAttributes):N.call(this).concat("disable-upgrade")}}});
M.prototype.is="";return M});Polymer.FlattenedNodesObserver=MpI;Polymer.DomApi=VpI;Polymer.EventApi=kn;Polymer.dom=_.Wl;Polymer.dom.matchesSelector=R5z;Polymer.dom.flush=_.lc;Polymer.dom.addDebouncer=_.XM;Polymer.DirMixin=T_I;Polymer.RenderStatus={beforeNextRender:_.fbS,afterNextRender:_.bM,flush:function(){for(;HQS.length||za.length;)ekZ(HQS),ekZ(za);SF=!1}};Polymer.LegacyElementMixin=_.p7;var Oh3;Oh3=AV._mutablePropertyChange;var jzV={properties:{mutableData:Boolean},_shouldPropertyChange:function(M,d,N){return Oh3(this,M,d,N,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(M,d,N){return Oh3(this,M,d,N,!0)}};
Polymer.OptionalMutableDataBehavior=jzV;var paZ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},I7i={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},qep=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},I7i),szt=(0,_.p7)(HTMLElement),Wgi=function(M,d){M||console.warn("Polymer.Class requires `info` argument");d=d?d(szt):szt;d=v_v(M,d,M.behaviors);d.is=d.prototype.is=
M.is;return d};Polymer.Class=Wgi;Polymer.mixinBehaviors=function(M,d){return v_v({},(0,_.p7)(d),M)};
Polymer.GenerateClassFromInfo=v_v;_.kQ=function(M){var d=typeof M==="function"?M:_.kQ.Class(M);M._legacyForceObservedAttributes&&(d.prototype._legacyForceObservedAttributes=M._legacyForceObservedAttributes);customElements.define(d.is,d);return d};
_.kQ.Class=Wgi;Polymer._polymerFn=_.kQ;var PYJ=window.onLegacyPolymerFunctionDefinedCallback;PYJ&&PYJ();var pIi={templatize:function(M,d){this._templatizerTemplate=M;this.ctor=Pm(M,this,{mutableData:!!d,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(M){return new this.ctor(M)},
modelForElement:function(M){return J96(this._templatizerTemplate,M)}};Polymer.Templatizer=pIi;_.ms=(0,_.p7)(HTMLElement).prototype;Polymer.Base=_.ms;var j1L=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.nH=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(_.nH,PolymerFakeBaseClass);var iM=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(iM,PolymerFakeBaseClass);var s1Z=Symbol("Nd"),Sev=[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 o$J=o$J||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},rTz;(function(M){function d(U,Fi,Y){var $i=C.get(U);if(!$i){if(!Y)return;$i=new e;C.set(U,$i)}U=$i.get(Fi);if(!U){if(!Y)return;U=new e;$i.set(Fi,U)}return U}
function N(U,Fi,Y){if(R(U,Fi,Y))return!0;Fi=m(Fi);return Fi!==null?N(U,Fi,Y):!1}
function R(U,Fi,Y){Fi=d(Fi,Y,!1);return Fi===void 0?!1:!!Fi.has(U)}
function X(U,Fi,Y){if(R(U,Fi,Y))return A(U,Fi,Y);Fi=m(Fi);if(Fi!==null)return X(U,Fi,Y)}
function A(U,Fi,Y){Fi=d(Fi,Y,!1);if(Fi!==void 0)return Fi.get(U)}
function l(U,Fi){var Y=k(U,Fi);U=m(U);if(U===null)return Y;var $i=l(U,Fi);if($i.length<=0)return Y;if(Y.length<=0)return $i;Fi=new t;U=[];Y=_.V(Y);for(var vj=Y.next();!vj.done;vj=Y.next())vj=vj.value,Fi.has(vj)||(Fi.add(vj),U.push(vj));Y=_.V($i);for($i=Y.next();!$i.done;$i=Y.next())$i=$i.value,Fi.has($i)||(Fi.add($i),U.push($i));return U}
function k(U,Fi){U=d(U,Fi,!1);var Y=[];U&&U.forEach(function($i,vj){return Y.push(vj)});
return Y}
function T(U){return U===void 0}
function W(U){return typeof U==="object"?U!==null:typeof U==="function"}
function w(U){return typeof U==="function"}
function p(U){return typeof U==="symbol"?U:String(U)}
function m(U){var Fi=Object.getPrototypeOf(U);if(typeof U!=="function"||U===c||Fi!==c)return Fi;var Y=Object.getPrototypeOf(U.prototype);if(Y==null||Y===Object.prototype)return Fi;Y=Y.constructor;return typeof Y!=="function"||Y===U?Fi:Y}
function I(){function U(){this._keys=[];this._values=[];this._cache=Fi}
var Fi={};U.prototype={get size(){return this._keys.length},has:function(Y){return Y===this._cache?!0:this._find(Y)>=0?(this._cache=Y,!0):!1},
get:function(Y){var $i=this._find(Y);if($i>=0)return this._cache=Y,this._values[$i]},
set:function(Y,$i){this.delete(Y);this._keys.push(Y);this._values.push($i);this._cache=Y;return this},
delete:function(Y){Y=this._find(Y);return Y>=0?(this._keys.splice(Y,1),this._values.splice(Y,1),this._cache=Fi,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=Fi},
forEach:function(Y){for(var $i=this.size,vj=0;vj<$i;++vj){var Pj=this._keys[vj],sS=this._values[vj];this._cache=Pj;Y.call(this,sS,Pj,this)}},
_find:function(Y){for(var $i=this._keys,vj=$i.length,Pj=0;Pj<vj;++Pj)if($i[Pj]===Y)return Pj;return-1}};
return U}
function O(){function U(){this._map=new e}
U.prototype={get size(){return this._map.length},has:function(Fi){return this._map.has(Fi)},
add:function(Fi){this._map.set(Fi,Fi);return this},
delete:function(Fi){return this._map.delete(Fi)},
clear:function(){this._map.clear()},
forEach:function(Fi,Y){this._map.forEach(Fi,Y)}};
return U}
function y(){function U(){this._key=Y()}
function Fi(b2,Hj){for(var LZ=0;LZ<Hj;++LZ)b2[LZ]=Math.random()*255|0}
function Y(){do{if(vj)var b2=vj.randomBytes(16);else typeof Uint8Array==="function"?(b2=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(b2):Fi(b2,16)):(b2=Array(16),Fi(b2,16));b2[6]=b2[6]&79|64;b2[8]=b2[8]&191|128;for(var Hj="",LZ=0;LZ<16;++LZ){var w3=b2[LZ];if(LZ===4||LZ===6||LZ===8)Hj+="-";w3<16&&(Hj+="0");Hj+=w3.toString(16).toLowerCase()}b2="@@WeakMap@@"+Hj}while(Pj.call(sS,b2));sS[b2]=!0;return b2}
function $i(b2,Hj){if(!Pj.call(b2,tL)){if(!Hj)return;Object.defineProperty(b2,tL,{value:Object.create(null)})}return b2[tL]}
var vj=typeof global!=="undefined"&&typeof o$J==="object"&&typeof require==="function"&&require("crypto"),Pj=Object.prototype.hasOwnProperty,sS={},tL=Y();U.prototype={has:function(b2){return(b2=$i(b2,!1))?this._key in b2:!1},
get:function(b2){if(b2=$i(b2,!1))return b2[this._key]},
set:function(b2,Hj){$i(b2,!0)[this._key]=Hj;return this},
delete:function(b2){return(b2=$i(b2,!1))&&this._key in b2?delete b2[this._key]:!1},
clear:function(){this._key=Y()}};
return U}
var c=Object.getPrototypeOf(Function),e=typeof Map==="function"?Map:I(),t=typeof Set==="function"?Set:O(),C=new (typeof WeakMap==="function"?WeakMap:y());M.decorate=function(U,Fi,Y,$i){if(T($i)){if(T(Y)){if(!Array.isArray(U))throw new TypeError;if(!w(Fi))throw new TypeError;for(Y=U.length-1;Y>=0;--Y)if($i=(0,U[Y])(Fi),!T($i)){if(!w($i))throw new TypeError;Fi=$i}return Fi}if(!Array.isArray(U))throw new TypeError;if(!W(Fi))throw new TypeError;Y=p(Y);for($i=U.length-1;$i>=0;--$i)(0,U[$i])(Fi,Y)}else{if(Array.isArray(U))if(W(Fi)){if(T(Y))throw new TypeError;
if(!W($i))throw new TypeError;}else throw new TypeError;else throw new TypeError;Y=p(Y);for(var vj=U.length-1;vj>=0;--vj){var Pj=(0,U[vj])(Fi,Y,$i);if(!T(Pj)){if(!W(Pj))throw new TypeError;$i=Pj}}return $i}};
M.metadata=function(U,Fi){return function(Y,$i){if(T($i)){if(!w(Y))throw new TypeError;d(Y,void 0,!0).set(U,Fi)}else{if(!W(Y))throw new TypeError;$i=p($i);d(Y,$i,!0).set(U,Fi)}}};
M.defineMetadata=function(U,Fi){var Y;if(W(Fi))T(Y)||(Y=p(Y));else throw new TypeError;d(Fi,Y,!0).set("parameters",U)};
M.hasMetadata=function(U,Fi,Y){if(W(Fi))T(Y)||(Y=p(Y));else throw new TypeError;return N(U,Fi,Y)};
M.hasOwnMetadata=function(U,Fi,Y){if(W(Fi))T(Y)||(Y=p(Y));else throw new TypeError;return R(U,Fi,Y)};
M.getMetadata=function(U,Fi,Y){if(W(Fi))T(Y)||(Y=p(Y));else throw new TypeError;return X(U,Fi,Y)};
M.getOwnMetadata=function(U,Fi,Y){if(W(Fi))T(Y)||(Y=p(Y));else throw new TypeError;return A(U,Fi,Y)};
M.getMetadataKeys=function(U,Fi){if(W(U))T(Fi)||(Fi=p(Fi));else throw new TypeError;return l(U,Fi)};
M.getOwnMetadataKeys=function(U,Fi){if(W(U))T(Fi)||(Fi=p(Fi));else throw new TypeError;return k(U,Fi)};
M.deleteMetadata=function(U,Fi,Y){if(W(Fi))T(Y)||(Y=p(Y));else throw new TypeError;var $i=d(Fi,Y,!1);if(!T($i)){if(!$i.delete(U))return!1;if($i.size>0)return!0;U=C.get(Fi);U.delete(Y);if(U.size>0)return!0;C.delete(Fi);return!0}};
(function(U){if(typeof U.Reflect!=="undefined"){if(U.Reflect!==M)for(var Fi in M)U.Reflect[Fi]=M[Fi]}else U.Reflect=M})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(rTz||(rTz={}));var t$6=self;var KZV=[0,_.L5,_.G7,_.L5];var yTd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(yTd,_.Jj);var JTL=_.uO(yTd,[0,_.zsv,_.U1,KZV,_.G7,_.C5]);_.RX(_.fH,_.DL);_.F=_.fH.prototype;_.F.start=function(){this.stop();this.usingListeners_=!1;var M=cTd(this),d=SWL(this);M&&!d&&this.JSC$9107_win_.mozRequestAnimationFrame?(this.JSC$9107_id_=_.lI(this.JSC$9107_win_,"MozBeforePaint",this.callback_),this.JSC$9107_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9107_id_=M&&d?M.call(this.JSC$9107_win_,this.callback_):this.JSC$9107_win_.setTimeout(igg(this.callback_),20)};
_.F.stop=function(){if(this.isActive()){var M=cTd(this),d=SWL(this);M&&!d&&this.JSC$9107_win_.mozRequestAnimationFrame?FQ(this.JSC$9107_id_):M&&d?d.call(this.JSC$9107_win_,this.JSC$9107_id_):this.JSC$9107_win_.clearTimeout(this.JSC$9107_id_)}this.JSC$9107_id_=null};
_.F.fire=function(){this.stop();this.JSC$9109_doAction_()};
_.F.isActive=function(){return this.JSC$9107_id_!=null};
_.F.JSC$9109_doAction_=function(){this.usingListeners_&&this.JSC$9107_id_&&FQ(this.JSC$9107_id_);this.JSC$9107_id_=null;this.JSC$9107_listener_.call(this.handler_,_.Nn())};
_.F.disposeInternal=function(){this.stop();_.fH.superClass_.disposeInternal.call(this)};
var cTd=function(M){M=M.JSC$9107_win_;return M.requestAnimationFrame||M.webkitRequestAnimationFrame||M.mozRequestAnimationFrame||M.oRequestAnimationFrame||M.msRequestAnimationFrame||null},SWL=function(M){M=M.JSC$9107_win_;
return M.cancelAnimationFrame||M.cancelRequestAnimationFrame||M.webkitCancelRequestAnimationFrame||M.mozCancelRequestAnimationFrame||M.oCancelRequestAnimationFrame||M.msCancelRequestAnimationFrame||null};_.ua=function(M,d,N){_.DL.call(this);this.JSC$9110_listener_=N!=null?M.bind(N):M;this.JSC$9110_interval_=d;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9110_timer_=null};
_.v(_.ua,_.DL);_.F=_.ua.prototype;_.F.fire=function(M){this.args_=arguments;this.JSC$9110_timer_||this.pauseCount_?this.shouldFire_=!0:z5d(this)};
_.F.stop=function(){this.JSC$9110_timer_&&(_.Np.clearTimeout(this.JSC$9110_timer_),this.JSC$9110_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.F.pause=function(){this.pauseCount_++};
_.F.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9110_timer_||(this.shouldFire_=!1,z5d(this))};
_.F.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);this.stop()};
var z5d=function(M){M.JSC$9110_timer_=vX(function(){M.JSC$9110_timer_=null;M.shouldFire_&&!M.pauseCount_&&(M.shouldFire_=!1,z5d(M))},M.JSC$9110_interval_);
var d=M.args_;M.args_=null;M.JSC$9110_listener_.apply(null,d)};var bhm=function(M,d){this.childIterator_=M[_.Np.Symbol.iterator]();this.mapFn_=d};
bhm.prototype[Symbol.iterator]=function(){return this};
bhm.prototype.next=function(){var M=this.childIterator_.next();return{value:M.done?void 0:this.mapFn_.call(void 0,M.value),done:M.done}};
var e5I=function(M,d){return new bhm(M,d)};var HhV={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 yJA=function(M){var d=n$d(M);if(!d)throw Error("Rd`"+M);return d},n$d=function(M){var d={};
M=String(M);var N=M.charAt(0)=="#"?M:"#"+M;if(ihI.test(N))return d.hex=s6i(N),d.type="hex",d;N=zFL(M);return N.length?(d.hex=VQj(N[0],N[1],N[2]),d.type="rgb",d):HhV&&(M=HhV[M.toLowerCase()])?(d.hex=M,d.type="named",d):null},f4d=/#(.)(.)(.)/,s6i=function(M){if(!ihI.test(M))throw Error("Td`"+M);
M.length==4&&(M=M.replace(f4d,"#$1$1$2$2$3$3"));return M.toLowerCase()},JJv=function(M){M=s6i(M);
M=parseInt(M.slice(1),16);return[M>>16,M>>8&255,M&255]},VQj=function(M,d,N){M=Number(M);
d=Number(d);N=Number(N);if(M!=(M&255)||d!=(d&255)||N!=(N&255))throw Error("Ud`"+M+"`"+d+"`"+N);d=M<<16|d<<8|N;return M<16?"#"+(16777216|d).toString(16).slice(1):"#"+d.toString(16)},ihI=/^#(?:[0-9a-f]{3}){1,2}$/i,LZo=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,zFL=function(M){var d=M.match(LZo);
if(d){M=Number(d[1]);var N=Number(d[2]);d=Number(d[3]);if(M>=0&&M<=255&&N>=0&&N<=255&&d>=0&&d<=255)return[M,N,d]}return[]};var tpo={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},h9=tpo;h9=tpo;var XrN,GLg,a4z;XrN=function(M,d){switch(d){case 1:return M%4!=0||M%100==0&&M%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
GLg=function(M,d,N,R,X){M=new Date(M,d,N);X=X||0;return M.valueOf()+(((R!==void 0?R:3)-X+7)%7-((M.getDay()+6)%7-X+7)%7)*864E5};
_.hV=function(M,d,N){typeof M==="number"?(this.date=a4z(M,d||0,N||1),UrV(this,N||1)):_.Me(M)?(this.date=a4z(M.getFullYear(),M.getMonth(),M.getDate()),UrV(this,M.getDate())):(this.date=new Date(_.Nn()),M=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),UrV(this,M))};
a4z=function(M,d,N){d=new Date(M,d,N);M>=0&&M<100&&d.setFullYear(d.getFullYear()-1900);return d};
_.F=_.hV.prototype;_.F.firstDayOfWeek_=h9.FIRSTDAYOFWEEK;_.F.firstWeekCutOffDay_=h9.FIRSTWEEKCUTOFFDAY;_.F.clone=function(){var M=new _.hV(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.F.getFullYear=function(){return this.date.getFullYear()};
_.F.getYear=function(){return this.getFullYear()};
_.F.getMonth=function(){return this.date.getMonth()};
_.F.getDate=function(){return this.date.getDate()};
_.F.getTime=function(){return this.date.getTime()};
_.F.getDay=function(){return this.date.getDay()};
_.F.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.F.getUTCMonth=function(){return this.date.getUTCMonth()};
_.F.getUTCDate=function(){return this.date.getUTCDate()};
_.F.getUTCDay=function(){return this.date.getDay()};
_.F.getUTCHours=function(){return this.date.getUTCHours()};
_.F.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.F.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.F.set=function(M){this.date=new Date(M.getFullYear(),M.getMonth(),M.getDate())};
_.F.setFullYear=function(M){this.date.setFullYear(M)};
_.F.setYear=function(M){this.setFullYear(M)};
_.F.setMonth=function(M){this.date.setMonth(M)};
_.F.setDate=function(M){this.date.setDate(M)};
_.F.setTime=function(M){this.date.setTime(M)};
_.F.setUTCFullYear=function(M){this.date.setUTCFullYear(M)};
_.F.setUTCMonth=function(M){this.date.setUTCMonth(M)};
_.F.setUTCDate=function(M){this.date.setUTCDate(M)};
_.F.add=function(M){if(M.years||M.months){var d=this.getMonth()+M.months+M.years*12,N=this.getYear()+Math.floor(d/12);d%=12;d<0&&(d+=12);var R=Math.min(XrN(N,d),this.getDate());this.setDate(1);this.setFullYear(N);this.setMonth(d);this.setDate(R)}M.days&&(N=this.getYear(),d=N>=0&&N<=99?-1900:0,M=new Date((new Date(N,this.getMonth(),this.getDate(),12)).getTime()+M.days*864E5),this.setDate(1),this.setFullYear(M.getFullYear()+d),this.setMonth(M.getMonth()),this.setDate(M.getDate()),UrV(this,M.getDate()))};
_.F.JSC$9123_toIsoString=function(M){var d=this.getFullYear(),N=d<0?"-":d>=1E4?"+":"";return[N+_.dl(Math.abs(d),N?6:4),_.dl(this.getMonth()+1,2),_.dl(this.getDate(),2)].join(M?"-":"")};
_.F.equals=function(M){return!(!M||this.getYear()!=M.getYear()||this.getMonth()!=M.getMonth()||this.getDate()!=M.getDate())};
_.F.toString=function(){return this.JSC$9123_toIsoString()};
var UrV=function(M,d){M.getDate()!=d&&M.date.setUTCHours(M.date.getUTCHours()+(M.getDate()<d?1:-1))};
_.hV.prototype.valueOf=function(){return this.date.valueOf()};var qG=function(M,d,N,R,X){this.reversed=!!d;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!N;M&&Q0(this,M,R);this.depth=X!=void 0?X:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.RX(qG,NL);var Q0=function(M,d,N,R){if(M.node=d)M.tagType=typeof N==="number"?N:M.node.nodeType!=1?0:M.reversed?-1:1;typeof R==="number"&&(M.depth=R)};
_.F=qG.prototype;_.F.JSC$9138_copyFrom=function(M){this.node=M.node;this.tagType=M.tagType;this.depth=M.depth;this.reversed=M.reversed;this.constrained=M.constrained};
_.F.clone=function(){return new qG(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.F.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return RU;var M=this.node;var d=this.reversed?-1:1;if(this.tagType==d){var N=this.reversed?M.lastChild:M.firstChild;N?Q0(this,N):Q0(this,M,d*-1)}else(N=this.reversed?M.previousSibling:M.nextSibling)?Q0(this,N):Q0(this,M.parentNode,d*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(M=this.node)?XN(M):RU};
_.F.equals=function(M){return M.node==this.node&&(!this.node||M.tagType==this.tagType)};
_.F.splice=function(M){var d=this.node,N=this.reversed?1:-1;this.tagType==N&&(this.tagType=N*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;qG.prototype.next.call(this);this.reversed=!this.reversed;N=_.CZ(arguments[0])?arguments[0]:arguments;for(var R=N.length-1;R>=0;R--)_.rl(N[R],d);_.l_(d)};var uwd=function(){},Ig=function(M){for(var d=[],N=M.getTextRangeCount(),R=0;R<N;R++)d.push(M.getTextRange(R));
return d};
uwd.prototype.isReversed=function(){return!1};
uwd.prototype.getWindow=function(){return QZ(_.qy(this.JSC$9140_getStartNode()))};
var CYC=function(M,d){qG.call(this,M,d,!0)};
_.RX(CYC,qG);var vF=function(M,d,N,R,X){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!X;if(M){this.startNode_=M;this.startOffset_=d;this.endNode_=N;this.endOffset_=R;if(M.nodeType==1&&M.tagName!="BR")if(M=M.childNodes,d=M[d])this.startNode_=d,this.startOffset_=0;else{M.length&&(this.startNode_=_.cj(M));var A=!0}N.nodeType==1&&((this.endNode_=N.childNodes[R])?this.endOffset_=0:this.endNode_=N)}qG.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);A&&this.next()};
_.RX(vF,CYC);_.F=vF.prototype;_.F.JSC$9146_getStartNode=function(){return this.startNode_};
_.F.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)};
_.F.next=function(){return this.isLast()?RU:vF.superClass_.next.call(this)};
_.F.JSC$9138_copyFrom=function(M){this.startNode_=M.startNode_;this.endNode_=M.endNode_;this.startOffset_=M.startOffset_;this.endOffset_=M.endOffset_;this.isReversed_=M.isReversed_;vF.superClass_.JSC$9138_copyFrom.call(this,M)};
_.F.clone=function(){var M=new vF(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);M.JSC$9138_copyFrom(this);return M};var xrg=function(){};
xrg.prototype.__iterator__=function(){return new vF(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var OY=function(M){this.range_=M};
_.RX(OY,xrg);var YWI=function(M){var d=_.qy(M).createRange();if(M.nodeType==3)d.setStart(M,0),d.setEnd(M,M.length);else if(s8(M)||M.nodeType==3){for(var N,R=M;(N=R.firstChild)&&(s8(N)||N.nodeType==3);)R=N;d.setStart(R,0);for(R=M;(N=R.lastChild)&&(s8(N)||N.nodeType==3);)R=N;d.setEnd(R,R.nodeType==1?R.childNodes.length:R.length)}else N=M.parentNode,M=Array.prototype.indexOf.call(N.childNodes,M),d.setStart(N,M),d.setEnd(N,M+1);return d},Zhg=function(M,d,N,R){var X=_.qy(M).createRange();
X.setStart(M,d);X.setEnd(N,R);return X};
_.F=OY.prototype;_.F.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.F.getContainer=function(){return this.range_.commonAncestorContainer};
_.F.compareBrowserRangeEndpoints=function(M,d,N){return this.range_.compareBoundaryPoints(N==1?d==1?_.Np.Range.START_TO_START:_.Np.Range.START_TO_END:d==1?_.Np.Range.END_TO_START:_.Np.Range.END_TO_END,M)};
_.F.isCollapsed=function(){return this.range_.collapsed};
_.F.select=function(M){this.selectInternal(QZ(_.qy(this.range_.startContainer)).getSelection(),M)};
_.F.selectInternal=function(M){M.removeAllRanges();M.addRange(this.range_)};
_.F.insertNode=function(M,d){var N=this.range_.cloneRange();N.collapse(d);N.insertNode(M);N.detach();return M};
_.F.collapse=function(M){this.range_.collapse(M)};_.RX(LH,OY);LH.prototype.selectInternal=function(M,d){!d||this.isCollapsed()?LH.superClass_.selectInternal.call(this,M,d):(M.collapse(this.range_.endContainer,this.range_.endOffset),M.extend(this.range_.startContainer,this.range_.startOffset))};_.RX(ta,OY);ta.prototype.compareBrowserRangeEndpoints=function(M,d,N){return ta.superClass_.compareBrowserRangeEndpoints.call(this,M,d,N)};
ta.prototype.selectInternal=function(M,d){d?M.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):M.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var E$d=function(M){return _.B_?new ta(M):_.$h?new LH(M):new OY(M)};var jP=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},M2t;
_.RX(jP,uwd);M2t=function(M,d){var N=new jP;N.browserRangeWrapper_=M;N.isReversed_=!!d;return N};
_.dXd=function(M){M=_.B_?new ta(YWI(M)):_.$h?new LH(YWI(M)):new OY(YWI(M));return M2t(M)};
_.sY=function(M,d,N,R){var X=new jP;X.isReversed_=NfC(M,d,N,R);if(_.nA(M)&&!s8(M)){var A=M.parentNode;d=Array.prototype.indexOf.call(A.childNodes,M);M=A}_.nA(N)&&!s8(N)&&(A=N.parentNode,R=Array.prototype.indexOf.call(A.childNodes,N),N=A);X.isReversed_?(X.startNode_=N,X.startOffset_=R,X.endNode_=M,X.endOffset_=d):(X.startNode_=M,X.startOffset_=d,X.endNode_=N,X.endOffset_=R);return X};
_.F=jP.prototype;_.F.clone=function(){var M=new jP;M.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();M.startNode_=this.startNode_;M.startOffset_=this.startOffset_;M.endNode_=this.endNode_;M.endOffset_=this.endOffset_;M.isReversed_=this.isReversed_;return M};
_.F.JSC$9140_getType=function(){return"text"};
_.F.getBrowserRangeObject=function(){return PF(this).range_};
_.F.getTextRangeCount=function(){return 1};
_.F.getTextRange=function(){return this};
var PF=function(M){var d;if(!(d=M.browserRangeWrapper_)){d=M.JSC$9140_getStartNode();var N=M.JSC$9140_getStartOffset(),R=M.JSC$9140_getEndNode(),X=M.JSC$9140_getEndOffset();d=_.B_?new ta(Zhg(d,N,R,X)):_.$h?new LH(Zhg(d,N,R,X)):new OY(Zhg(d,N,R,X));d=M.browserRangeWrapper_=d}return d};
_.F=jP.prototype;_.F.getContainer=function(){return PF(this).getContainer()};
_.F.JSC$9140_getStartNode=function(){return this.startNode_||(this.startNode_=PF(this).range_.startContainer)};
_.F.JSC$9140_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=PF(this).range_.startOffset};
_.F.JSC$9140_getEndNode=function(){return this.endNode_||(this.endNode_=PF(this).range_.endContainer)};
_.F.JSC$9140_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=PF(this).range_.endOffset};
_.F.isReversed=function(){return this.isReversed_};
_.F.JSC$9140_containsRange=function(M,d){if(M.JSC$9140_getType()=="text"){var N=PF(this);M=PF(M);d=d&&!M.isCollapsed();M=M.range_;N=d?N.compareBrowserRangeEndpoints(M,0,1)>=0&&N.compareBrowserRangeEndpoints(M,1,0)<=0:N.compareBrowserRangeEndpoints(M,0,0)>=0&&N.compareBrowserRangeEndpoints(M,1,1)<=0}else N=!1;return N};
_.F.isCollapsed=function(){return PF(this).isCollapsed()};
_.F.JSC$9140_getText=function(){return PF(this).range_.toString()};
_.F.__iterator__=function(){return new vF(this.JSC$9140_getStartNode(),this.JSC$9140_getStartOffset(),this.JSC$9140_getEndNode(),this.JSC$9140_getEndOffset())};
_.F.select=function(){PF(this).select(this.isReversed_)};
_.F.JSC$9140_removeContents=function(){var M=PF(this).range_;M.extractContents();if(M.startContainer.hasChildNodes()&&(M=M.startContainer.childNodes[M.startOffset])){var d=M.previousSibling;HJV(M)==""&&_.l_(M);d&&HJV(d)==""&&_.l_(d)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.F.insertNode=function(M,d){M=PF(this).insertNode(M,d);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return M};
_.F.collapse=function(M){M=this.isReversed()?!M:M;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(M);M?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var RrC=function(){};
_.RX(RrC,uwd);RrC.prototype.JSC$9140_containsRange=function(M,d){var N=Ig(this);M=Ig(M);return(d?b7:_.lhZ)(M,function(R){return b7(N,function(X){return X.JSC$9140_containsRange(R,d)})})};
RrC.prototype.insertNode=function(M,d){d?_.ox(M,this.JSC$9140_getStartNode()):_.rl(M,this.JSC$9140_getEndNode());return M};var XNC,FlL=Aw().JSC$7214_document_.documentElement;XNC=FlL.requestFullscreen?"fullscreenchange":FlL.webkitRequestFullscreen?"webkitfullscreenchange":FlL.mozRequestFullScreen?"mozfullscreenchange":FlL.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var A23=function(){var M=Aw().JSC$7214_document_;return!!(M.webkitIsFullScreen||M.mozFullScreen||M.msFullscreenElement||M.fullscreenElement)};var og=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.RX(og,RrC);_.F=og.prototype;_.F.clone=function(){var M=new og;M.browserRanges_=_.US(this.browserRanges_);return M};
_.F.JSC$9140_getType=function(){return"mutli"};
_.F.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.F.getTextRangeCount=function(){return this.browserRanges_.length};
_.F.getTextRange=function(M){this.ranges_[M]||(this.ranges_[M]=M2t(E$d(this.browserRanges_[M])));return this.ranges_[M]};
_.F.getContainer=function(){if(!this.container_){for(var M=[],d=this.getTextRangeCount(),N=0;N<d;N++)M.push(this.getTextRange(N).getContainer());this.container_=ydo.apply(null,M)}return this.container_};
var rI=function(M){M.sortedRanges_||(M.sortedRanges_=Ig(M),M.sortedRanges_.sort(function(d,N){var R=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();var X=N.JSC$9140_getStartNode();N=N.JSC$9140_getStartOffset();return R==X&&d==N?0:NfC(R,d,X,N)?1:-1}));
return M.sortedRanges_};
_.F=og.prototype;_.F.JSC$9140_getStartNode=function(){return rI(this)[0].JSC$9140_getStartNode()};
_.F.JSC$9140_getStartOffset=function(){return rI(this)[0].JSC$9140_getStartOffset()};
_.F.JSC$9140_getEndNode=function(){return _.cj(rI(this)).JSC$9140_getEndNode()};
_.F.JSC$9140_getEndOffset=function(){return _.cj(rI(this)).JSC$9140_getEndOffset()};
_.F.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.F.JSC$9140_getText=function(){return Ig(this).map(function(M){return M.JSC$9140_getText()}).join("")};
_.F.__iterator__=function(){return new K7(this)};
_.F.select=function(){var M=this.getWindow().getSelection();M.removeAllRanges();for(var d=this.getTextRangeCount(),N=0;N<d;N++)M.addRange(this.getTextRange(N).getBrowserRangeObject())};
_.F.JSC$9140_removeContents=function(){Ig(this).forEach(function(M){M.JSC$9140_removeContents()})};
_.F.collapse=function(M){if(!this.isCollapsed()){var d=M?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;d.collapse(M);this.ranges_=[d];this.sortedRanges_=[d];this.browserRanges_=[d.getBrowserRangeObject()]}};
var K7=function(M){this.iterators_=null;this.currentIdx_=0;M&&(this.iterators_=rI(M).map(function(d){return _.vvC(d)}));
qG.call(this,M?this.JSC$9146_getStartNode():null,!1,!0)};
_.RX(K7,CYC);_.F=K7.prototype;_.F.JSC$9146_getStartNode=function(){return this.iterators_[0].JSC$9146_getStartNode()};
_.F.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.F.next=function(){for(;this.currentIdx_<this.iterators_.length;){var M=this.iterators_[this.currentIdx_],d=M.next();if(d.done)this.currentIdx_++;else return Q0(this,M.node,M.tagType,M.depth),d}return RU};
_.F.JSC$9138_copyFrom=function(M){this.iterators_=_.US(M.iterators_);K7.superClass_.JSC$9138_copyFrom.call(this,M)};
_.F.clone=function(){var M=new K7(null);M.JSC$9138_copyFrom(this);return M};var V2L,NfC;_.gW=function(){var M=window.getSelection();return M&&V2L(M)};
V2L=function(M){var d=!1;if(M.createRange)try{var N=M.createRange()}catch(X){return null}else if(M.rangeCount){if(M.rangeCount>1){N=new og;d=M.rangeCount;for(var R=0;R<d;R++)N.browserRanges_.push(M.getRangeAt(R));return N}N=M.getRangeAt(0);d=NfC(M.anchorNode,M.anchorOffset,M.focusNode,M.focusOffset)}else return null;return M2t(E$d(N),d)};
_.y0=function(M,d){return _.sY(M,d,M,d)};
_.JV=function(M,d,N,R){return _.sY(M,d,N,R)};
NfC=function(M,d,N,R){if(M==N)return R<d;var X;if(M.nodeType==1&&d)if(X=M.childNodes[d])M=X,d=0;else if(_.PU(M,N))return!0;if(N.nodeType==1&&R)if(X=N.childNodes[R])N=X,R=0;else if(_.PU(N,M))return!1;return(KGg(M,N)||d-R)>0};var cF=function(){_.mk.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.gx)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.gx)(this.dispatchProgressEvent_,this)};
_.RX(cF,_.mk);cF.prototype.abort=function(){try{this.reader_.abort()}catch(M){throw new oWd(M,"aborting read");}};
cF.prototype.getError=function(){return this.reader_.error&&new oWd(this.reader_.error,"reading file")};
cF.prototype.dispatchProgressEvent_=function(M){this.dispatchEvent(new rkz(M,this))};
cF.prototype.disposeInternal=function(){cF.superClass_.disposeInternal.call(this);delete this.reader_};
var $Xm=function(M){var d=new cF,N=l3d(d);d.reader_.readAsArrayBuffer(M);return N},Bfd=function(M){var d=new cF,N=l3d(d);
d.reader_.readAsDataURL(M);return N},l3d=function(M){var d=new f2;
M.listen("loadend",_.B1(function(N,R){var X=R.reader_.result,A=R.getError();X==null||A?N.errback(A):N.callback(X);R.dispose()},d,M));
return d};var SP=function(){_.mk.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9180_eventHandler_=new _.a_(this);this.JSC$9180_isInitialized_=!1};
_.RX(SP,_.mk);var kuL=new _.TU("d"),TfI=new _.TU("beforedragstart"),DXd=new _.TU("dragstart"),gB3=new _.TU("beforedragmove"),Wlg=new _.TU("dragmove"),wNd=new _.TU("beforedragend"),pNg=new _.TU("dragend"),mXo=new _.TU("e");SP.prototype.isDragging=function(){return!!this.JSC$9180_dragger_};
var hrd=function(M,d){d.dlgGrowthDirection_=0;d.dlgDragHoverClass_=void 0;d.dlgDragPermission=0;M.dragLists_.push(d)},QjV=function(M,d){M.getHandleForDragItem_=d};
SP.prototype.init=function(){if(!this.JSC$9180_isInitialized_){for(var M=this.dragLists_.length,d=0;d<M;d++)for(var N=_.Ke(this.dragLists_[d]),R=N.length,X=0;X<R;++X){var A=N[X],l=this.getHandleForDragItem_(A),k=_.d3(l);this.dragItemForHandle_[k]=A;this.dragItemHoverClasses_&&(this.JSC$9180_eventHandler_.listen(A,"mouseover",this.handleDragItemMouseover_),this.JSC$9180_eventHandler_.listen(A,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9180_eventHandler_.listen(l,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9180_eventHandler_.listen(l,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(A);this.JSC$9180_eventHandler_.listen(l,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9180_isInitialized_=!0}};
SP.prototype.disposeInternal=function(){this.JSC$9180_eventHandler_.dispose();for(var M=this.dragLists_.length,d=0;d<M;d++){var N=this.dragLists_[d];N.dlgGrowthDirection_=void 0;N.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;qOe(this);SP.superClass_.disposeInternal.call(this)};
var I33=function(M,d){for(var N=M.dragLists_.length,R=0;R<N;R++){var X=M.dragLists_[R];X.dlgBounds_=it2(X)}N=M.dragItems_.length;for(R=0;R<N;R++)X=M.dragItems_[R],X!=d&&(X.dlgBounds_=it2(X))};
_.F=SP.prototype;
_.F.handlePotentialDragStart_=function(M){var d=_.d3(M.currentTarget);d=this.dragItemForHandle_[d];if(d.parentElement.dlgDragPermission!=2){this.currDragItem_=d;a:{d=this.currDragItem_;for(var N=d.cloneNode(!0),R=$a("TEXTAREA",d),X=$a("TEXTAREA",N),A=0;A<R.length;A++)X[A].value=R[A].value;switch(d.tagName){case "TR":d=_.O8("TABLE",null,_.O8("TBODY",null,N));break a;case "TD":case "TH":d=_.O8("TABLE",null,_.O8("TBODY",null,_.O8("TR",null,N)));break a;case "TEXTAREA":N.value=d.value;default:d=N;break a}d=
void 0}this.draggerEl_=d;this.draggerElClasses_&&n2(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.qy(this.currDragItem_).body.appendChild(this.draggerEl_);N=_.vT(this.currDragItem_);d=this.draggerEl_;R=_.vT(d);if(N instanceof _.hw){var l=N.y;N=N.x}ze(d,d.offsetLeft+(N-R.x),d.offsetTop+(Number(l)-R.y));this.JSC$9180_dragger_=new _.cv(this.draggerEl_);_.PkI(this.JSC$9180_dragger_,this.hysteresisDistance_);
_.lI(this.JSC$9180_dragger_,"start",this.handleDragStart_,!1,this);_.lI(this.JSC$9180_dragger_,"end",this.handleDragEnd_,!1,this);_.lI(this.JSC$9180_dragger_,"earlycancel",this.JSC$9182_cleanup_,!1,this);this.dispatchEvent(new z9(kuL,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_));this.JSC$9180_dragger_.startDrag(M)}};
_.F.handleDragStart_=function(M){if(this.dispatchEvent(new z9(TfI,this,M.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.PrC(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?n2(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var d=GbC(this.draggerEl_);this.draggerEl_.halfWidth=d.width/2;this.draggerEl_.halfHeight=d.height/2;d=this.draggerEl_.getBoundingClientRect();
var N=M.clientY,R=oYd(this.JSC$9180_dragger_,M.clientX);if(R>d.right){var X=this.currDragItem_.getBoundingClientRect();this.JSC$9180_dragger_.deltaX=R-(R-X.left)/X.width*d.width}N=rmd(this.JSC$9180_dragger_,N);N>d.bottom&&(this.JSC$9180_dragger_.deltaY+=N-d.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";I33(this,this.currDragItem_);this.currDragItem_.style.display="";_.lI(this.JSC$9180_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new z9(DXd,
this,M.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_))}else M.preventDefault(),this.JSC$9182_cleanup_()};
_.F.handleDragMove_=function(M){var d=_.vT(this.draggerEl_);d=new _.hw(d.x+this.draggerEl_.halfWidth,d.y+this.draggerEl_.halfHeight);a:{var N=null;if(this.currDragItem_.style.display!="none"){N=this.currDragItem_.parentNode;var R=it2(N);if(vBd(d,R))break a}R=this.dragLists_.length;for(var X=0;X<R;X++){var A=this.dragLists_[X];if(A!=N&&vBd(d,A.dlgBounds_)){N=A;break a}}N=null}if(N){if(N==null)throw Error("Vd");R=0;X=!1;A=void 0;switch(N.dlgGrowthDirection_){case 0:R=d.y;var l=O3d;var k=jjL;break;case 4:X=
!0;case 2:R=d.x;l=sjt;k=jjL;break;case 5:X=!0;case 3:R=d.x,l=Pxt,k=oB3}for(var T=null,W,w=_.Ke(N),p=w.length,m=0;m<p;m++){var I=w[m];if(I!=this.currDragItem_){var O=l(I.dlgBounds_);if(X){var y=r2L(I,d);A===void 0&&(A=y);k(R,O)&&(W==void 0||y<A||y==A&&(k(O,W)||O==W))&&(T=I,W=O);y<A&&(A=y)}else k(R,O)&&(W==void 0||k(O,W))&&(T=I,W=O)}}l=T!==null&&r2L(T,d)>A?null:T}else l=null;if(!this.dispatchEvent(new z9(gB3,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_,d,N,l)))return!1;if(N&&N.dlgDragPermission!=
1)this.currDragItem_.parentNode==N&&_.PrC(this.currDragItem_)==l||N.insertBefore(this.currDragItem_,l),this.currDragItem_.style.display="",N.dlgDragHoverClass_&&_.cz(N,N.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",k=this.dragLists_.length,W=0;W<k;W++)R=this.dragLists_[W],R.dlgDragHoverClass_&&_.yu(R,R.dlgDragHoverClass_);N!=this.currHoverList_&&(this.currHoverList_=N,I33(this,this.currDragItem_));this.dispatchEvent(new z9(Wlg,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_,
d,N,l));return!1};
_.F.JSC$9182_cleanup_=function(){qOe(this);this.JSC$9180_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var M=this.dragLists_.length,d=0;d<M;d++)this.dragLists_[d].dlgBounds_=null;M=this.dragItems_.length;for(d=0;d<M;d++)this.dragItems_[d].dlgBounds_=null};
_.F.handleDragEnd_=function(M){if(!this.dispatchEvent(new z9(wNd,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_)))return!1;qOe(this);this.dispatchEvent(new z9(pNg,this,M,this.currDragItem_,this.draggerEl_,this.JSC$9180_dragger_));this.JSC$9182_cleanup_();return!0};
var qOe=function(M){_.tw(M.JSC$9180_dragger_);var d=M.draggerEl_&&M.draggerEl_.parentElement;M.draggerEl_&&_.l_(M.draggerEl_);M.currDragItem_&&M.currDragItem_.style.display=="none"&&(M.origList_.insertBefore(M.currDragItem_,M.origNextItem_),M.currDragItem_.style.display="");M.currDragItemClasses_&&M.currDragItem_?oag(M.currDragItem_,M.currDragItemClasses_||[]):M.currDragItem_&&(M.currDragItem_.style.visibility="");for(var N=M.dragLists_.length,R=0;R<N;R++){var X=M.dragLists_[R];X.dlgDragHoverClass_&&
_.yu(X,X.dlgDragHoverClass_)}d&&M.dispatchEvent(new z9(mXo,M,null,M.currDragItem_,M.draggerEl_,M.JSC$9180_dragger_))};
_.F=SP.prototype;_.F.getHandleForDragItem_=function(M){return M};
_.F.handleDragItemMouseover_=function(M){n2(M.currentTarget,this.dragItemHoverClasses_||[])};
_.F.handleDragItemMouseout_=function(M){oag(M.currentTarget,this.dragItemHoverClasses_||[])};
_.F.handleDragItemHandleMouseover_=function(M){n2(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.F.handleDragItemHandleMouseout_=function(M){oag(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
var vBd=function(M,d){return M.x>d.left&&M.x<d.left+d.width&&M.y>d.top&&M.y<d.top+d.height},r2L=function(M,d){M=M.dlgBounds_;
return Math.abs(d.y-(M.top+(M.height-1)/2))},O3d=function(M){return M.top+M.height-1},sjt=function(M){return M.left+M.width-1},Pxt=function(M){return M.left||0},jjL=function(M,d){return M<d},oB3=function(M,d){return M>d},z9=function(M,d,N,R,X,A){_.Dj.call(this,M);
this.event=N;this.currDragItem=R;this.draggerEl=X;this.JSC$9184_dragger=A};
_.RX(z9,_.Dj);_.RX(UX,_.DL);var KlC=new _.hw(0,0);UX.prototype.JSC$9188_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
UX.prototype.JSC$9188_onMouseMove=function(M){var d=this.containerIsActuallyContent_?KlC:Ft(Aw(this.containerNode_)),N=this.horizontalScrolling_?this.calculateScrollDelta(M.clientX+d.x,this.scrollBounds_.left,this.scrollBounds_.width):0,R=this.calculateScrollDelta(M.clientY+d.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=N;this.scrollDelta_.y=R;!(N=!N&&!R)&&(N=this.constrainScroll_)&&(N=M.clientX+d.x,M=M.clientY+d.y,d=this.containerBounds_,N=!(d.left<=N&&d.left+d.width>=
N&&d.top<=M&&d.top+d.height>=M));N?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
UX.prototype.calculateScrollDelta=function(M,d,N){var R=0;M<d?R=-8:M>d+N&&(R=8);return R};
UX.prototype.disposeInternal=function(){UX.superClass_.disposeInternal.call(this);this.JSC$9186_eventHandler_.dispose();this.scrollTimer_.dispose()};var y2o={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"}}},bc=y2o;bc=y2o;var eP={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 J2V=function(){},cD=function(M){if(typeof M=="number"){var d=new J2V;
d.standardOffset_=M;var N=M;if(N==0)N="Etc/GMT";else{var R=["Etc/GMT",N<0?"-":"+"];N=Math.abs(N);R.push(Math.floor(N/60)%100);N%=60;N!=0&&R.push(":",_.dl(N,2));N=R.join("")}d.timeZoneId_=N;N=M;N==0?N="UTC":(R=["UTC",N<0?"+":"-"],N=Math.abs(N),R.push(Math.floor(N/60)%100),N%=60,N!=0&&R.push(":",N),N=R.join(""));M=c2J(M);d.tzNames_=[N,N];d.tzNamesExt_={STD_LONG_NAME_GMT:M,STD_GENERIC_LOCATION:M};d.transitions_=[];return d}d=new J2V;d.timeZoneId_=M.id;d.standardOffset_=-M.std_offset;d.tzNames_=M.names;
d.tzNamesExt_=M.names_ext;d.transitions_=M.transitions;return d},c2J=function(M){var d=["GMT"];
d.push(M<=0?"+":"-");M=Math.abs(M);d.push(_.dl(Math.floor(M/60)%100,2),":",_.dl(M%60,2));return d.join("")},SOd=function(M,d){d=Date.UTC(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate(),d.getUTCHours(),d.getUTCMinutes())/36E5;
for(var N=0;N<M.transitions_.length&&d>=M.transitions_[N];)N+=2;return N==0?0:M.transitions_[N-1]},zrL=function(M,d){M=M.standardOffset_-SOd(M,d);
return M===-1440?0:M};var Sp=function(M,d){this.patternParts_=[];this.JSC$9199_dateTimeSymbols_=d||h9;typeof M=="number"?b3d(this,M):erm(this,M)},H3I=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],HF=function(M){return M.getHours?M.getHours():0},erm=function(M,d){for(gON&&(d=d.replace(/\u200f/g,""));d;){for(var N=d,R=0;R<H3I.length;++R){var X=d.match(H3I[R]);
if(X){var A=X[0];d=d.substring(A.length);R==0&&(A=="''"?A="'":(A=A.substring(1,X[1]=="'"?A.length-1:A.length),A=A.replace(/''/g,"'")));M.patternParts_.push({text:A,type:R});break}}if(N===d)throw Error("Wd`"+d);}};
Sp.prototype.format=function(M,d){if(!M)throw Error("Xd");var N=d?(M.getTimezoneOffset()-zrL(d,M))*6E4:0,R=N?new Date(M.getTime()+N):M,X=R;d&&R.getTimezoneOffset()!=M.getTimezoneOffset()&&(R=new Date(R.getTime()+(R.getTimezoneOffset()-M.getTimezoneOffset())*6E4),X=new Date(M.getTime()+(N+(N>0?-864E5:864E5))));N=[];for(var A=0;A<this.patternParts_.length;++A){var l=this.patternParts_[A].text;1==this.patternParts_[A].type?N.push(nBI(this,l,M,R,X,d)):N.push(l)}return N.join("")};
var b3d=function(M,d){if(d<4)var N=M.JSC$9199_dateTimeSymbols_.DATEFORMATS[d];else if(d<8)N=M.JSC$9199_dateTimeSymbols_.TIMEFORMATS[d-4];else if(d<12)N=M.JSC$9199_dateTimeSymbols_.DATETIMEFORMATS[d-8],N=N.replace("{1}",M.JSC$9199_dateTimeSymbols_.DATEFORMATS[d-8]),N=N.replace("{0}",M.JSC$9199_dateTimeSymbols_.TIMEFORMATS[d-8]);else if(d===12)N=M.JSC$9199_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(d===13)N=M.JSC$9199_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{b3d(M,10);return}erm(M,N)},n7=function(M,d){d=String(d);
M=M.JSC$9199_dateTimeSymbols_||h9;if(M.ZERODIGIT!==void 0&&!DTi){for(var N=[],R=0;R<d.length;R++){var X=d.charCodeAt(R);N.push(48<=X&&X<=57?String.fromCharCode(M.ZERODIGIT+X-48):d.charAt(R))}d=N.join("")}return d},DTi=!1,gON=!1,f3V=function(M,d,N,R){N=N.getFullYear();
N<=0&&R&&(N=1-N);return n7(M,i3V(N,d))},i3V=function(M,d){d==2&&(M%=100);
M<0&&d++;return _.dl(M,d)},ic=function(M){if(!(M.getHours&&M.getSeconds&&M.getMinutes))throw Error("Yd");
},Lld=function(M,d){ic(d);
d=HF(d);return M.JSC$9199_dateTimeSymbols_.AMPMS[d>=12&&d<24?1:0]},nBI=function(M,d,N,R,X,A){var l=d.length;
switch(d.charAt(0)){case "G":return N=R.getFullYear()>0?1:0,l>=4?M.JSC$9199_dateTimeSymbols_.ERANAMES[N]:M.JSC$9199_dateTimeSymbols_.ERAS[N];case "y":return f3V(M,l,R,!0);case "Y":return N=(new Date(GLg(R.getFullYear(),R.getMonth(),R.getDate(),M.JSC$9199_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$9199_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),l==2&&(N%=100),n7(M,i3V(N,l));case "u":return f3V(M,l,R,!1);case "M":a:switch(N=R.getMonth(),l){case 5:l=M.JSC$9199_dateTimeSymbols_.NARROWMONTHS[N];break a;
case 4:l=M.JSC$9199_dateTimeSymbols_.MONTHS[N];break a;case 3:l=M.JSC$9199_dateTimeSymbols_.SHORTMONTHS[N];break a;default:l=n7(M,_.dl(N+1,l))}return l;case "k":return ic(X),n7(M,_.dl(HF(X)||24,l));case "S":return n7(M,(X.getMilliseconds()/1E3).toFixed(Math.min(3,l)).slice(2)+(l>3?_.dl(0,l-3):""));case "E":return N=R.getDay(),l>=4?M.JSC$9199_dateTimeSymbols_.WEEKDAYS[N]:M.JSC$9199_dateTimeSymbols_.SHORTWEEKDAYS[N];case "a":return Lld(M,X);case "b":return Lld(M,X);case "B":return Lld(M,X);case "h":return ic(X),
n7(M,_.dl(HF(X)%12||12,l));case "K":return ic(X),n7(M,_.dl(HF(X)%12,l));case "H":return ic(X),n7(M,_.dl(HF(X),l));case "c":a:switch(N=R.getDay(),l){case 5:l=M.JSC$9199_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[N];break a;case 4:l=M.JSC$9199_dateTimeSymbols_.STANDALONEWEEKDAYS[N];break a;case 3:l=M.JSC$9199_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[N];break a;default:l=n7(M,_.dl(N,1))}return l;case "L":a:switch(N=R.getMonth(),l){case 5:l=M.JSC$9199_dateTimeSymbols_.STANDALONENARROWMONTHS[N];break a;
case 4:l=M.JSC$9199_dateTimeSymbols_.STANDALONEMONTHS[N];break a;case 3:l=M.JSC$9199_dateTimeSymbols_.STANDALONESHORTMONTHS[N];break a;default:l=n7(M,_.dl(N+1,l))}return l;case "Q":return N=Math.floor(R.getMonth()/3),l<4?M.JSC$9199_dateTimeSymbols_.SHORTQUARTERS[N]:M.JSC$9199_dateTimeSymbols_.QUARTERS[N];case "d":return n7(M,_.dl(R.getDate(),l));case "m":return ic(X),n7(M,_.dl(X.getMinutes?X.getMinutes():0,l));case "s":return ic(X),n7(M,_.dl(X.getSeconds(),l));case "v":return(A||cD(N.getTimezoneOffset())).timeZoneId_;
case "V":return M=A||cD(N.getTimezoneOffset()),l<=2?M.timeZoneId_:SOd(M,N)>0?M.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?M.tzNamesExt_.STD_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return N=GLg(X.getFullYear(),X.getMonth(),X.getDate(),M.JSC$9199_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$9199_dateTimeSymbols_.FIRSTDAYOFWEEK),n7(M,_.dl(Math.floor(Math.round((N-(new Date((new Date(N)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,l));case "z":return M=A||cD(N.getTimezoneOffset()),l<4?M.tzNames_[SOd(M,N)>0?2:0]:M.tzNames_[SOd(M,N)>0?3:1];case "Z":return d=A||cD(N.getTimezoneOffset()),l<4?(l=-zrL(d,N),M=[l<0?"-":"+"],l=Math.abs(l),M.push(_.dl(Math.floor(l/60)%100,2),_.dl(l%60,2)),l=M.join("")):l=n7(M,c2J(zrL(d,N))),l;default:return""}};var t2L=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,GuV=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,rnS=function(M){this.patternParts_=[];this.JSC$9208_dateTimeSymbols_=h9;if(typeof M=="number"){M>11&&(M=10);if(M<4)var d=this.JSC$9208_dateTimeSymbols_.DATEFORMATS[M];else M<8?d=this.JSC$9208_dateTimeSymbols_.TIMEFORMATS[M-4]:(d=this.JSC$9208_dateTimeSymbols_.DATETIMEFORMATS[M-8],d=d.replace("{1}",this.JSC$9208_dateTimeSymbols_.DATEFORMATS[M-8]),d=d.replace("{0}",this.JSC$9208_dateTimeSymbols_.TIMEFORMATS[M-
8]));a3V(this,d)}else a3V(this,M)},a3V=function(M,d){for(var N=!1,R="",X=0;X<d.length;X++){var A=d.charAt(X);
if(t2L.test(A))for(R.length>0&&(M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R=""),M.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});X<d.length-1&&d.charAt(X+1)==" ";)X++;else if(N)A=="'"?X+1<d.length&&d.charAt(X+1)=="'"?(R+="'",X++):N=!1:R+=A;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(A)>=0){R.length>0&&(M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R="");for(var l=d.charAt(X),k=X+1;k<d.length&&d.charAt(k)==l;)k++;l=k-X;l<=0?k=!1:(k="MydhHmsSDkK".indexOf(A),
k=k>0||k==0&&l<3);M.patternParts_.push({text:A,count:l,abutStart:!1,numeric:k});X+=l-1}else A=="'"?X+1<d.length&&d.charAt(X+1)=="'"?(R+="'",X++):N=!0:R+=A}R.length>0&&M.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1});d=!1;for(N=0;N<M.patternParts_.length;N++)M.patternParts_[N].numeric?!d&&N+1<M.patternParts_.length&&M.patternParts_[N+1].numeric&&(d=!0,M.patternParts_[N].abutStart=!0):d=!1};
rnS.prototype.parse=function(M,d,N){var R=!1,X=!1;N&&(R=N.predictive||!1,X=N.validate||!1);if(R)for(N=0;N<this.patternParts_.length;N++){var A=this.patternParts_[N];if(A.count>0&&("abBhHkKm".indexOf(A.text.charAt(0))<0||A.count>2||A.abutStart))throw Error("Zd`"+A.text.charAt(0));}A=new UXV;N=[0];A.dayPeriodIndex=-1;for(var l=0;l<this.patternParts_.length&&!(R&&N[0]>=M.length);l++){if(this.patternParts_[l].count==0){a:{var k=M;var T=N,W=this.patternParts_[l],w=R;if(W.text.match(t2L)!=null){if(W=T[0],
u8o(k,T),T[0]>W){k=!0;break a}}else{if(k.indexOf(W.text,T[0])==T[0]){T[0]+=W.text.length;k=!0;break a}if(w&&W.text.indexOf(k.substring(T[0]))==0){T[0]+=k.length-T[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[l].abutStart){a:{T=M;W=N;w=l;var p=W[0],m=0;for(k=w;k<this.patternParts_.length;k++){var I=this.patternParts_[k],O=I.count;if(O===0)break;if(k==w&&(O-=m,m++,O==0)){k=0;break a}var y=k>w&&I.numeric,c=W[0];if(!Cxd(this,T,W,I,O,A,!1)||y&&W[0]-c<O)k=w-1,W[0]=p}k-=w}if(k<=0)return 0;
l+=k-1}else if(!Cxd(this,M,N,this.patternParts_[l],0,A,R))return 0}a:{M=X;if(d==null)throw Error("$d");A.era!=void 0&&A.year!=void 0&&A.era==0&&A.year>0&&(A.year=-(A.year-1));A.year!=void 0&&d.setFullYear(A.year);R=d.getDate();d.setDate(1);A.month!=void 0&&d.setMonth(A.month);A.day!=void 0?d.setDate(A.day):(X=XrN(d.getFullYear(),d.getMonth()),d.setDate(R>X?X:R));typeof d.setHours==="function"&&(A.hours==void 0&&(A.hours=d.getHours()),A.hours<12&&(A.ampm!=void 0&&A.ampm>0?A.hours+=12:A.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(A.dayPeriodName)||["night1","night2"].includes(A.dayPeriodName)&&A.hours>=6)&&(A.hours+=12)),d.setHours(A.hours));typeof d.setMinutes==="function"&&A.minutes!=void 0&&d.setMinutes(A.minutes);typeof d.setSeconds==="function"&&A.seconds!=void 0&&d.setSeconds(A.seconds);typeof d.setMilliseconds==="function"&&A.milliseconds!=void 0&&d.setMilliseconds(A.milliseconds);if(M&&(A.year&&A.year!=d.getFullYear()||A.month&&A.month!=
d.getMonth()||A.day&&A.day!=d.getDate()||A.hours&&A.hours>=24||A.minutes&&A.minutes>=60||A.seconds&&A.seconds>=60||A.milliseconds&&A.milliseconds>=1E3))d=!1;else{A.tzOffset!=void 0&&d.setTime(d.getTime()+(A.tzOffset-d.getTimezoneOffset())*60*1E3);A.ambiguousYear&&(M=new Date,M.setFullYear(M.getFullYear()-80),d.getTime()<M.getTime()&&d.setFullYear(M.getFullYear()+100));if(A.dayOfWeek!=void 0)if(A.day==void 0)A=(7+A.dayOfWeek-d.getDay())%7,A>3&&(A-=7),M=d.getMonth(),d.setDate(d.getDate()+A),d.getMonth()!=
M&&d.setDate(d.getDate()+(A>0?-7:7));else if(A.dayOfWeek!=d.getDay()){d=!1;break a}d=!0}}return d?N[0]:0};
var Cxd=function(M,d,N,R,X,A,l){u8o(d,N);if(R.numeric&&X>0&&N[0]+X>d.length)return!1;switch(R.text.charAt(0)){case "G":return f7(d,N,[M.JSC$9208_dateTimeSymbols_.ERAS],function(k){return A.era=k}),!0;
case "M":case "L":return xXI(M,d,N,X,R,A);case "E":return f7(d,N,[M.JSC$9208_dateTimeSymbols_.WEEKDAYS,M.JSC$9208_dateTimeSymbols_.SHORTWEEKDAYS],function(k){return A.dayOfWeek=k});
case "B":case "b":return X=[],M=[[].concat(M.JSC$9208_dateTimeSymbols_.AMPMS)],X.push("isAm"),X.push("isPm"),d=f7(d,N,M,function(k){return A.dayPeriodIndex=k},l),A.dayPeriodName=X[A.dayPeriodIndex],l?d:!0;
case "a":return d=f7(d,N,[M.JSC$9208_dateTimeSymbols_.AMPMS],function(k){return A.ampm=k},l),l?d:!0;
case "y":return YOL(M,d,N,R,X,A);case "Q":return f7(d,N,[M.JSC$9208_dateTimeSymbols_.QUARTERS,M.JSC$9208_dateTimeSymbols_.SHORTQUARTERS],function(k){A.month=k*3;A.day=1});
case "d":return L7(M,d,N,R,X,function(k){A.day=k}),!0;
case "S":return Z3C(M,d,N,X,A);case "h":case "K":case "H":case "k":return d=L7(M,d,N,R,X,function(k){A.hours=R.text.charAt(0)==="h"&&k===12?0:k},l),l?d:!0;
case "m":return d=L7(M,d,N,R,X,function(k){A.minutes=k},l),l?d:!0;
case "s":return L7(M,d,N,R,X,function(k){A.seconds=k}),!0;
case "z":case "Z":case "v":return EBI(M,d,N,A);default:return!1}},YOL=function(M,d,N,R,X,A){var l=N[0];
X=tV(M,d,N,X);X===null&&(X=tV(M,d,N,0,!0));if(X===null)return!1;X>=0&&N[0]-l==2&&R.count==2?(M=X,d=(new Date).getFullYear()-80,N=d%100,A.ambiguousYear=M==N,M+=Math.floor(d/100)*100+(M<N?100:0),A.year=M):A.year=X;return!0},xXI=function(M,d,N,R,X,A){return X.numeric&&L7(M,d,N,X,R,function(l){A.month=l-1})?!0:f7(d,N,[M.JSC$9208_dateTimeSymbols_.MONTHS,
M.JSC$9208_dateTimeSymbols_.STANDALONEMONTHS,M.JSC$9208_dateTimeSymbols_.SHORTMONTHS,M.JSC$9208_dateTimeSymbols_.STANDALONESHORTMONTHS],function(l){A.month=l})},Z3C=function(M,d,N,R,X){var A=N[0];
M=tV(M,d,N,R);if(M===null)return!1;N=N[0]-A;X.milliseconds=N<3?M*Math.pow(10,3-N):Math.round(M/Math.pow(10,N-3));return!0},EBI=function(M,d,N,R){d.indexOf("GMT",N[0])==N[0]&&(N[0]+=3);
if(N[0]>=d.length)return R.tzOffset=0,!0;var X=N[0],A=tV(M,d,N,0,!0);if(A===null)return!1;if(N[0]<d.length&&d.charAt(N[0])==":"){var l=A*60;N[0]++;A=tV(M,d,N,0);if(A===null)return!1;l+=A}else l=A,l=l<24&&N[0]-X<=3?l*60:l%100+l/100*60;R.tzOffset=-l;return!0},L7=function(M,d,N,R,X,A,l){l=l||!1;
var k=N[0];M=tV(M,d,N,X);if(M===null)return!1;if(l&&N[0]-k<R.count){if(N[0]<d.length)return!1;M*=Math.pow(10,R.count-(N[0]-k))}A(M);return!0},f7=function(M,d,N,R,X){X=X||!1;
for(var A,l=0;l<N.length;l++){A=d;for(var k=N[l],T=X,W=0,w=null,p=M.substring(A[0]).toLowerCase(),m=0;m<k.length;m++){var I=k[m].toLowerCase();if(T&&I.indexOf(p)==0){W=p.length;w=m;break}k[m].length>W&&p.indexOf(I)==0&&(W=k[m].length,w=m)}w!==null&&(A[0]+=W);A=w;if(A!==null)return R(A),!0}return!1},u8o=function(M,d){(M=M.substring(d[0]).match(GuV))&&(d[0]+=M[0].length)},tV=function(M,d,N,R,X){d=R>0?d.substring(0,N[0]+R):d;
X=X||!1;if(M.JSC$9208_dateTimeSymbols_.ZERODIGIT){R=[];for(var A=N[0];A<d.length;A++){var l=d.charCodeAt(A)-M.JSC$9208_dateTimeSymbols_.ZERODIGIT;R.push(0<=l&&l<=9?String.fromCharCode(l+48):d.charAt(A))}d=R.join("")}else d=d.substring(N[0]);M=d.match(new RegExp("^"+(X?"[+-]?":"")+"\\d+"));if(!M)return null;N[0]+=M[0].length;return parseInt(M[0],10)},UXV=function(){};
UXV.prototype.ambiguousYear=!1;_.MGt={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 dSg={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"},N4L=dSg,R7J=dSg;R7J=N4L=dSg;var F3o,G9,UY,vx2,ag,Xuz;
_.Kh=function(M,d,N,R){var X;if(X=d){a:if(d&&d.length===3){for(X=0;X<3;X++){var A=d[X];if(A<"A"||A>"Z"&&A<"a"||A>"z"){X=!1;break a}}X=!0}else X=!1;X=!X}if(X)throw new TypeError("ae");this.intlCurrencyCode_=d?d.toUpperCase():null;this.currencyStyle_=N||0;this.overrideNumberFormatSymbols_=R||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_=G9(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof M==="number")switch(M){case 1:ag(this,G9(this).DECIMAL_PATTERN);break;case 2:ag(this,G9(this).SCIENTIFIC_PATTERN);break;case 3:ag(this,G9(this).PERCENT_PATTERN);break;case 4:M=G9(this).CURRENCY_PATTERN;d=["0"];if(N=
eP[UY(this)]){N=N[0]&7;if(N>0)for(d.push("."),R=0;R<N;R++)d.push("0");M=M.replace(/0.00/g,d.join(""))}ag(this,M);break;case 5:Xuz(this,1);break;case 6:Xuz(this,2);break;default:throw Error("de");}else ag(this,M)};
F3o=!1;G9=function(M){return M.overrideNumberFormatSymbols_||(F3o?R7J:N4L)};
UY=function(M){return M.intlCurrencyCode_||G9(M).DEF_CURRENCY_CODE};
vx2=function(M,d){if(d>308)throw Error("ce`"+d);M.maximumFractionDigits_=d;return M};
ag=function(M,d){var N=[0];M.positivePrefix_=AyV(M,d,N);for(var R=N[0],X=-1,A=0,l=0,k=0,T=-1,W=d.length,w=!0;N[0]<W&&w;N[0]++)switch(d.charAt(N[0])){case "#":l>0?k++:A++;T>=0&&X<0&&T++;break;case "0":if(k>0)throw Error("je`"+d);l++;T>=0&&X<0&&T++;break;case ",":T>0&&M.groupingArray_.push(T);T=0;break;case ".":if(X>=0)throw Error("ke`"+d);X=A+l+k;break;case "E":if(M.useExponentialNotation_)throw Error("le`"+d);M.useExponentialNotation_=!0;M.minExponentDigits_=0;N[0]+1<W&&d.charAt(N[0]+1)=="+"&&(N[0]++,
M.useSignForPositiveExponent_=!0);for(;N[0]+1<W&&d.charAt(N[0]+1)=="0";)N[0]++,M.minExponentDigits_++;if(A+l<1||M.minExponentDigits_<1)throw Error("me`"+d);w=!1;break;default:N[0]--,w=!1}l==0&&A>0&&X>=0&&(l=X,l==0&&l++,k=A-l,A=l-1,l=1);if(X<0&&k>0||X>=0&&(X<A||X>A+l)||T==0)throw Error("ne`"+d);k=A+l+k;M.maximumFractionDigits_=X>=0?k-X:0;X>=0&&(M.minimumFractionDigits_=A+l-X,M.minimumFractionDigits_<0&&(M.minimumFractionDigits_=0));M.minimumIntegerDigits_=(X>=0?X:k)-A;M.useExponentialNotation_&&(M.maximumIntegerDigits_=
A+M.minimumIntegerDigits_,M.maximumFractionDigits_==0&&M.minimumIntegerDigits_==0&&(M.minimumIntegerDigits_=1));M.groupingArray_.push(Math.max(0,T));M.decimalSeparatorAlwaysShown_=X==0||X==k;R=N[0]-R;M.positiveSuffix_=AyV(M,d,N);N[0]<d.length&&d.charAt(N[0])==";"?(N[0]++,M.multiplier_!=1&&(M.negativePercentSignExpected_=!0),M.negativePrefix_=AyV(M,d,N),N[0]+=R,M.negativeSuffix_=AyV(M,d,N)):(M.negativePrefix_+=M.positivePrefix_,M.negativeSuffix_+=M.positiveSuffix_)};
Xuz=function(M,d){M.compactStyle_=d;ag(M,G9(M).DECIMAL_PATTERN);M.minimumFractionDigits_=0;vx2(M,2);if(M.minimumFractionDigits_>0)throw Error("be");M.significantDigits_=2};
_.Kh.prototype.parse=function(M,d){d=d||[0];if(this.compactStyle_!==0)throw Error("ee");M=M.replace(/ |\u202f/g,"\u00a0");var N=M.indexOf(this.positivePrefix_,d[0])==d[0],R=M.indexOf(this.negativePrefix_,d[0])==d[0];N&&R&&(this.positivePrefix_.length>this.negativePrefix_.length?R=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(N=!1));N?d[0]+=this.positivePrefix_.length:R&&(d[0]+=this.negativePrefix_.length);if(M.indexOf(G9(this).INFINITY,d[0])==d[0]){d[0]+=G9(this).INFINITY.length;var X=
Infinity}else{X=M;var A=!1,l=!1,k=!1,T=-1,W=1,w=G9(this).DECIMAL_SEP,p=G9(this).GROUP_SEP,m=G9(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");p=p.replace(/\u202f/g,"\u00a0");for(var I="";d[0]<X.length;d[0]++){var O=X.charAt(d[0]),y=VGL(this,O);if(y>=0&&y<=9)I+=y,k=!0;else if(O==w.charAt(0)){if(A||l)break;I+=".";A=!0}else if(O==p.charAt(0)&&("\u00a0"!=p.charAt(0)||d[0]+1<X.length&&VGL(this,X.charAt(d[0]+1))>=0)){if(A||l)break}else if(O==m.charAt(0)){if(l)break;I+="E";l=!0;T=d[0]}else if(O==
"+"||O=="-"){if(k&&T!=d[0]-1)break;I+=O}else if(this.multiplier_==1&&O==G9(this).PERCENT.charAt(0)){if(W!=1)break;W=100;if(k){d[0]++;break}}else if(this.multiplier_==1&&O==G9(this).PERMILL.charAt(0)){if(W!=1)break;W=1E3;if(k){d[0]++;break}}else break}this.multiplier_!=1&&(W=this.multiplier_);X=parseFloat(I)/W}if(N){if(M.indexOf(this.positiveSuffix_,d[0])!=d[0])return NaN;d[0]+=this.positiveSuffix_.length}else if(R){if(M.indexOf(this.negativeSuffix_,d[0])!=d[0])return NaN;d[0]+=this.negativeSuffix_.length}return R?
-X:X};
_.Kh.prototype.format=function(M){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(M))return G9(this).NAN;var d=[];var N=M;if(this.compactStyle_==0)N=uc;else{N=Math.abs(N);var R=lc3(this,N<=1?0:$SI(N)).divisorBase;N=lc3(this,R+$SI(B4J(this,C7(N,-R)).intValue))}M=C7(M,-N.divisorBase);(R=M<0||M==0&&1/M<0)?N.negative_prefix?d.push(N.negative_prefix):(d.push(N.prefix),d.push(this.negativePrefix_)):(d.push(N.prefix),d.push(this.positivePrefix_));if(isFinite(M))if(M*=
R?-1:1,M*=this.multiplier_,this.useExponentialNotation_){var X=M;if(X==0)k33(this,X,this.minimumIntegerDigits_,d),T4d(this,0,d);else{var A=Math.floor(Math.log(X)/Math.log(10)+2E-15);X=C7(X,-A);var l=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(l=A%this.maximumIntegerDigits_,l<0&&(l=this.maximumIntegerDigits_+l),X=C7(X,l),A-=l,l=1):this.minimumIntegerDigits_<1?(A++,X=C7(X,-1)):(A-=this.minimumIntegerDigits_-1,X=C7(X,this.minimumIntegerDigits_-
1));k33(this,X,l,d);T4d(this,A,d)}}else k33(this,M,this.minimumIntegerDigits_,d);else d.push(G9(this).INFINITY);R?N.negative_suffix?d.push(N.negative_suffix):(isFinite(M)&&d.push(N.suffix),d.push(this.negativeSuffix_)):(isFinite(M)&&d.push(N.suffix),d.push(this.positiveSuffix_));return d.join("")};
var B4J=function(M,d){var N=C7(d,M.maximumFractionDigits_);M.significantDigits_>0&&(N=DSe(N,M.significantDigits_,M.maximumFractionDigits_));N=Math.round(N);if(isFinite(N)){var R=Math.floor(C7(N,-M.maximumFractionDigits_));N=Math.floor(N-C7(R,M.maximumFractionDigits_));if(N<0||N>=C7(1,M.maximumFractionDigits_))R=Math.round(d),N=0}else R=d,N=0;return{intValue:R,fracValue:N}},k33=function(M,d,N,R){if(M.minimumFractionDigits_>M.maximumFractionDigits_)throw Error("ge");
R||(R=[]);d=B4J(M,d);var X=d.intValue,A=d.fracValue,l=M.minimumFractionDigits_>0||A>0||!1;d=M.minimumFractionDigits_;l&&(d=M.minimumFractionDigits_);for(var k="",T=X;T>1E20;)k="0"+k,T=Math.round(C7(T,-1));k=T+k;var W=G9(M).DECIMAL_SEP;T=G9(M).ZERO_DIGIT.codePointAt(0);var w=k.length,p=0;if(X>0||N>0){for(X=w;X<N;X++)R.push(String.fromCodePoint(T));if(M.groupingArray_.length>=2)for(N=1;N<M.groupingArray_.length;N++)p+=M.groupingArray_[N];N=w-p;if(N>0){X=M.groupingArray_;p=w=0;for(var m,I=G9(M).GROUP_SEP,
O=k.length,y=0;y<O;y++)if(R.push(String.fromCodePoint(T+Number(k.charAt(y)))),O-y>1)if(m=X[p],y<N){var c=N-y;(m===1||m>0&&c%m===1)&&R.push(I)}else p<X.length&&(y===N?p+=1:m===y-N-w+1&&(R.push(I),w+=m,p+=1))}else{N=k;k=M.groupingArray_;X=G9(M).GROUP_SEP;m=N.length;I=[];for(w=k.length-1;w>=0&&m>0;w--){p=k[w];for(O=0;O<p&&m-O-1>=0;O++)I.push(String.fromCodePoint(T+Number(N.charAt(m-O-1))));m-=p;m>0&&I.push(X)}R.push.apply(R,I.reverse())}}else l||R.push(String.fromCodePoint(T));(M.decimalSeparatorAlwaysShown_||
l)&&R.push(W);A=String(A);l=A.split("e+");l.length==2&&(A=String(DSe(parseFloat(l[0]),M.significantDigits_,1)),A=A.replace(".",""),A+=(0,_.B3L)("0",parseInt(l[1],10)-A.length+1));M.maximumFractionDigits_+1>A.length&&(A="1"+(0,_.B3L)("0",M.maximumFractionDigits_-A.length)+A);for(M=A.length;A.charAt(M-1)=="0"&&M>d+1;)M--;for(d=1;d<M;d++)R.push(String.fromCodePoint(T+Number(A.charAt(d))))},T4d=function(M,d,N){N.push(G9(M).EXP_SYMBOL);
d<0?(d=-d,N.push(G9(M).MINUS_SIGN)):M.useSignForPositiveExponent_&&N.push(G9(M).PLUS_SIGN);d=""+d;for(var R=G9(M).ZERO_DIGIT,X=d.length;X<M.minExponentDigits_;X++)N.push(R);M=R.codePointAt(0)-gQV;for(R=0;R<d.length;R++)N.push(String.fromCodePoint(M+d.codePointAt(R)))},VGL=function(M,d){d=d.codePointAt(0);
if(48<=d&&d<58)return d-48;M=G9(M).ZERO_DIGIT.codePointAt(0);return M<=d&&d<M+10?d-M:-1},gQV="0".codePointAt(0),AyV=function(M,d,N){for(var R="",X=!1,A=d.length;N[0]<A;N[0]++){var l=d.charAt(N[0]);
if(l=="'")N[0]+1<A&&d.charAt(N[0]+1)=="'"?(N[0]++,R+="'"):X=!X;else if(X)R+=l;else switch(l){case "#":case "0":case ",":case ".":case ";":return R;case "\u00a4":if(N[0]+1<A&&d.charAt(N[0]+1)=="\u00a4")N[0]++,R+=UY(M);else switch(M.currencyStyle_){case 0:l=UY(M);R+=l in eP?eP[l][1]:l;break;case 2:l=UY(M);var k=eP[l];R+=k?l==k[1]?l:l+" "+k[1]:l;break;case 1:l=UY(M),R+=l in eP?eP[l][2]:l}break;case "%":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("he");if(M.negativePercentSignExpected_&&
M.multiplier_!=100)throw Error("ie");M.multiplier_=100;M.negativePercentSignExpected_=!1;R+=G9(M).PERCENT;break;case "\u2030":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("he");if(M.negativePercentSignExpected_&&M.multiplier_!=1E3)throw Error("ie");M.multiplier_=1E3;M.negativePercentSignExpected_=!1;R+=G9(M).PERMILL;break;default:R+=l}}return R},uc={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},lc3=function(M,d){M=M.compactStyle_==1?bc.COMPACT_DECIMAL_SHORT_PATTERN:bc.COMPACT_DECIMAL_LONG_PATTERN;M==null&&(M=bc.COMPACT_DECIMAL_SHORT_PATTERN);if(d<3)return uc;d=Math.min(14,d);var N=M[C7(1,d)];for(--d;!N&&d>=3;)N=M[C7(1,d)],d--;if(!N)return uc;N=N.other;var R=M="",X=N.indexOf(";");X>=0&&(N=N.substring(0,X),X=N.substring(X+1))&&(R=/([^0]*)(0+)(.*)/.exec(X),M=R[1],R=R[3]);return N&&N!="0"?(N=/([^0]*)(0+)(.*)/.exec(N))?{divisorBase:d+
1-(N[2].length-1),negative_prefix:M,negative_suffix:R,prefix:N[1],suffix:N[3]}:uc:uc},$SI=function(M){if(!isFinite(M))return M>0?M:0;
for(var d=0;(M/=10)>=1;)d++;return d},C7=function(M,d){if(!M||!isFinite(M)||d==0)return M;
M=String(M).split("e");return parseFloat(M[0]+"e"+(parseInt(M[1]||0,10)+d))},W3V=function(M,d){return M&&isFinite(M)?C7(Math.round(C7(M,d)),-d):M},DSe=function(M,d,N){if(!M)return M;
d=d-$SI(M)-1;return d<-N?W3V(M,-N):W3V(M,d)};var wuL=function(M){return M%10==1&&M%100!=11?"one":M%10==2&&M%100!=12?"two":M%10==3&&M%100!=13?"few":"other"},puz=wuL;
puz=wuL;var mSe;mSe=function(M,d){var N=M|0;if(void 0===d){d=Math;var R=d.min,X=M+"",A=X.indexOf(".");d=R.call(d,A===-1?0:X.length-A-1,3)}R=Math.pow(10,d);M={v:d,f:(M*R|0)%R};return N==1&&M.v==0?"one":"other"};
_.bY=mSe;_.bY=mSe;var h7d,QTL,qHm,vQI,O6L;_.IcC=function(M){this.JSC$9251_pattern_=M;this.parsedPattern_=this.literals_=this.initialLiterals_=null;M=N4L;var d=bc;if(h7d!==M||QTL!==d)h7d=M,QTL=d,qHm=new _.Kh(1);this.numberFormatter_=qHm};
h7d=null;QTL=null;qHm=null;vQI=RegExp("'([{}#].*?)'","g");O6L=RegExp("''","g");
_.IcC.prototype.format=function(M){if(this.JSC$9251_pattern_){this.initialLiterals_=[];var d=jTt(this,this.JSC$9251_pattern_);this.parsedPattern_=sTo(this,d);this.JSC$9251_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.US(this.initialLiterals_),d=[],PuI(this,this.parsedPattern_,M,!1,d),M=d.join("");this.literals_.length>0;)M=M.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else M="";return M};
var PuI=function(M,d,N,R,X){for(var A=0;A<d.length;A++)switch(d[A].type){case 4:X.push(d[A].value);break;case 3:var l=d[A].value;var k=M,T=X,W=N[l];W===void 0?T.push("Undefined parameter - "+l):(k.literals_.push(W),T.push(k.buildPlaceholder_(k.literals_)));break;case 2:l=d[A].value;k=M;T=N;W=R;var w=X,p=l.argumentIndex;T[p]===void 0?w.push("Undefined parameter - "+p):(p=l[T[p]],p===void 0&&(p=l.other),PuI(k,p,T,W,w));break;case 0:l=d[A].value;oQd(M,l,N,_.bY,R,X);break;case 1:l=d[A].value,oQd(M,l,
N,puz,R,X)}},oQd=function(M,d,N,R,X,A){var l=d.argumentIndex,k=d.argumentOffset,T=+N[l];
isNaN(T)?A.push("Undefined or invalid parameter - "+l):(k=T-k,l=d[N[l]],l===void 0&&(R=R(Math.abs(k)),l=d[R],l===void 0&&(l=d.other)),d=[],PuI(M,l,N,X,d),N=d.join(""),X?A.push(N):(M=M.numberFormatter_.format(k),A.push(N.replace(/#/g,M))))},jTt=function(M,d){var N=M.initialLiterals_,R=M.buildPlaceholder_.bind(M);
d=d.replace(O6L,function(){N.push("'");return R(N)});
return d=d.replace(vQI,function(X,A){N.push(A);return R(N)})},ryI=function(M){var d=0,N=[],R=[],X=/[{}]/g;
X.lastIndex=0;for(var A;A=X.exec(M);){var l=A.index;A[0]=="}"?(N.pop(),N.length==0&&(A={type:1},A.value=M.substring(d,l),R.push(A),d=l+1)):(N.length==0&&(d=M.substring(d,l),d!=""&&R.push({type:0,value:d}),d=l+1),N.push("{"))}M=M.substring(d);M!=""&&R.push({type:0,value:M});return R},K3J=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,yyL=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Jye=/^\s*(\w+)\s*,\s*select\s*,/,sTo=function(M,d){var N=[];
d=ryI(d);for(var R=0;R<d.length;R++){var X={};if(0==d[R].type)X.type=4,X.value=d[R].value;else if(1==d[R].type){var A=d[R].value;switch(K3J.test(A)?0:yyL.test(A)?1:Jye.test(A)?2:/^\s*\w+\s*/.test(A)?3:5){case 2:X.type=2;X.value=cyV(M,d[R].value);break;case 0:X.type=0;X.value=SHe(M,d[R].value);break;case 1:X.type=1;X.value=z7J(M,d[R].value);break;case 3:X.type=3,X.value=d[R].value}}N.push(X)}return N},cyV=function(M,d){var N="";
d=d.replace(Jye,function(k,T){N=T;return""});
var R={};R.argumentIndex=N;d=ryI(d);for(var X=0;X<d.length;){var A=d[X].value;X++;var l=void 0;1==d[X].type&&(l=sTo(M,d[X].value));R[A.replace(/\s/g,"")]=l;X++}return R},SHe=function(M,d){var N="",R=0;
d=d.replace(K3J,function(T,W,w){N=W;w&&(R=parseInt(w,10));return""});
var X={};X.argumentIndex=N;X.argumentOffset=R;d=ryI(d);for(var A=0;A<d.length;){var l=d[A].value;A++;var k=void 0;1==d[A].type&&(k=sTo(M,d[A].value));X[l.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;A++}return X},z7J=function(M,d){var N="";
d=d.replace(yyL,function(k,T){N=T;return""});
var R={};R.argumentIndex=N;R.argumentOffset=0;d=ryI(d);for(var X=0;X<d.length;){var A=d[X].value;X++;var l=void 0;1==d[X].type&&(l=sTo(M,d[X].value));R[A.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=l;X++}return R};
_.IcC.prototype.buildPlaceholder_=function(M){return"\ufddf_"+(M.length-1).toString(10)+"_"};var b6V;
b6V={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 pn2=function(){this.rdtfSymbols_=e7o||b6V;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
pn2.prototype.format=function(M,d){a:{d=H6g(this,d);switch(this.style_){case 2:if(d.NARROW!=void 0){d=d.NARROW;break a}case 1:if(d.SHORT!=void 0){d=d.SHORT;break a}default:d=d.LONG;break a}d=void 0}if(!this.alwaysNumeric_&&d&&d.R&&d.R[""+M])M=d.R[""+M];else if(d){var N=Math.abs(M);M=(new _.IcC("{N,plural,"+(M>0||M==0&&1/M==Infinity?d.F:d.P)+"}")).format({N:N})}else M="";return M};
var H6g=function(M,d){switch(d){default:case 0:return M.rdtfSymbols_.YEAR;case 1:return M.rdtfSymbols_.QUARTER;case 2:return M.rdtfSymbols_.MONTH;case 3:return M.rdtfSymbols_.WEEK;case 4:return M.rdtfSymbols_.DAY;case 5:return M.rdtfSymbols_.HOUR;case 6:return M.rdtfSymbols_.MINUTE;case 7:return M.rdtfSymbols_.SECOND}};var nQV=function(M,d,N,R,X,A,l,k){this.x0=M;this.y0=d;this.x1=N;this.y1=R;this.x2=X;this.y2=A;this.x3=l;this.y3=k};
nQV.prototype.clone=function(){return new nQV(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
nQV.prototype.equals=function(M){return this.x0==M.x0&&this.y0==M.y0&&this.x1==M.x1&&this.y1==M.y1&&this.x2==M.x2&&this.y2==M.y2&&this.x3==M.x3&&this.y3==M.y3};
var i6L=function(M,d){if(d==0)return M.x0;if(d==1)return M.x3;var N=QR(M.x0,M.x1,d),R=QR(M.x1,M.x2,d);M=QR(M.x2,M.x3,d);N=QR(N,R,d);R=QR(R,M,d);return QR(N,R,d)},fcg=function(M,d){var N=(d-M.x0)/(M.x3-M.x0);
if(N<=0)return 0;if(N>=1)return 1;for(var R=0,X=1,A=0,l=0;l<8;l++){A=i6L(M,N);var k=(i6L(M,N+1E-6)-A)/1E-6;if(Math.abs(A-d)<1E-6)return N;if(Math.abs(k)<1E-6)break;else A<d?R=N:X=N,N-=(A-d)/k}for(l=0;Math.abs(A-d)>1E-6&&l<8;l++)A<d?(R=N,N=(N+X)/2):(X=N,N=(N+R)/2),A=i6L(M,N);return N};var xn=function(){_.mk.call(this);this.JSC$9272_name_="closure_frame"+L3L++;this.iframesForDisposal_=[];tGg[this.JSC$9272_name_]=this},Yn;
_.RX(xn,_.mk);var tGg={},L3L=0,G3I=function(M,d){var N=Aw(M);_.lK3(d,function(R,X){Array.isArray(R)||(R=[R]);_.Hy(R,function(A){A=N.JSC$7216_createDom("INPUT",{type:"hidden",name:X,value:A});M.appendChild(A)})})};
_.F=xn.prototype;_.F.JSC$9274_form_=null;_.F.JSC$9274_iframe_=null;_.F.iframeName_=null;_.F.nextIframeId_=0;_.F.JSC$9274_active_=!1;_.F.complete_=!1;_.F.success_=!1;_.F.lastContent_=null;_.F.JSC$9274_lastErrorCode_=0;_.F.iframeDisposalTimer_=null;
_.F.send=function(M,d,N,R){if(this.JSC$9274_active_)throw Error("oe");M=new _.iX(M);d=d?d.toUpperCase():"GET";N&&_.XX(M);Yn||(Yn=_.O8("FORM"),Yn.acceptCharset="utf-8",N=Yn.style,N.position="absolute",N.visibility="hidden",N.top=N.left="-10px",N.width=N.height="10px",N.overflow="hidden",document.body.appendChild(Yn));this.JSC$9274_form_=Yn;d=="GET"&&G3I(this.JSC$9274_form_,M.JSC$7917_queryData_);R&&G3I(this.JSC$9274_form_,R);N=M.toString();N=dVA(N);R=this.JSC$9274_form_;N=_.QL(VL(N));N!==void 0&&(R.action=
N);this.JSC$9274_form_.method=d;acI(this);USL(this)};
_.F.abort=function(M){if(this.JSC$9274_active_){var d=ZA(this);if(d)if(WX(d))d.removeAllListeners(void 0);else if(d=wy(d)){var N=0,R;for(R in d.listeners)for(var X=d.listeners[R].concat(),A=0;A<X.length;++A)FQ(X[A])&&++N}this.success_=this.JSC$9274_active_=this.complete_=!1;this.JSC$9274_lastErrorCode_=M||7;this.dispatchEvent("abort");uZo(this)}};
_.F.disposeInternal=function(){this.JSC$9274_active_&&this.abort();xn.superClass_.disposeInternal.call(this);this.JSC$9274_iframe_&&CuV(this);USL(this);this.JSC$9274_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9274_form_=null;this.JSC$9274_lastErrorCode_=0;delete tGg[this.JSC$9272_name_]};
_.F.isComplete=function(){return this.complete_};
_.F.isSuccess=function(){return this.success_};
_.F.isActive=function(){return this.JSC$9274_active_};
_.F.getResponseText=function(){return this.lastContent_};
_.F.getLastError=function(){return _.ntd(this.JSC$9274_lastErrorCode_)};
var acI=function(M){M.JSC$9274_active_=!0;M.complete_=!1;M.JSC$9274_lastErrorCode_=0;M.iframeName_=M.JSC$9272_name_+"_"+(M.nextIframeId_++).toString(36);M.JSC$9274_iframe_=Aw(M.JSC$9274_form_).JSC$7216_createDom("IFRAME",{name:M.iframeName_,id:M.iframeName_});var d=M.JSC$9274_iframe_.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";_.B_?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");Aw(M.JSC$9274_form_).JSC$7214_document_.body.appendChild(M.JSC$9274_iframe_);
d=M.iframeName_+"_inner";var N=Jdo(M.JSC$9274_iframe_);if(document.baseURI){var R=CO(d);R='<head><base href="'+CO(document.baseURI)+'"></head><body><iframe id="'+R+'" name="'+R+'"></iframe>';R=O0(R)}else R=CO(d),R=O0('<body><iframe id="'+R+'" name="'+R+'"></iframe>');N.write(jd(R));_.lI(N.getElementById(d),"load",M.onIframeLoaded_,!1,M);R=$a("TEXTAREA",M.JSC$9274_form_);for(var X=0,A=R.length;X<A;X++){var l=R[X].value;HJV(R[X])!=l&&(_.yR(R[X],l),R[X].value=l)}R=N.importNode(M.JSC$9274_form_,!0);R.target=
d;R.action=M.JSC$9274_form_.action;N.body.appendChild(R);X=$a("SELECT",M.JSC$9274_form_);A=$a("SELECT",R);l=0;for(var k=X.length;l<k;l++)for(var T=$a("OPTION",X[l]),W=$a("OPTION",A[l]),w=0,p=T.length;w<p;w++)W[w].selected=T[w].selected;X=$a("INPUT",M.JSC$9274_form_);A=$a("INPUT",R);l=0;for(k=X.length;l<k;l++)if(X[l].type=="file"&&X[l].value!=A[l].value){M.JSC$9274_form_.target=d;R=M.JSC$9274_form_;break}try{M.errorHandled_=!1,R.submit(),N.close(),_.$h&&setTimeout(M.testForFirefoxSilentError_.bind(M),
250)}catch(m){_.p2(N.getElementById(d),"load",M.onIframeLoaded_,!1,M),N.close(),EY(M,2)}};
xn.prototype.onIframeLoaded_=function(){_.p2(ZA(this),"load",this.onIframeLoaded_,!1,this);try{var M=this.JSC$9274_iframe_?Jdo(ZA(this)):null;this.complete_=!0;this.JSC$9274_active_=!1;try{var d=M.body;this.lastContent_=d.textContent||d.innerText}catch(X){var N=1}var R;N||typeof this.errorChecker_!="function"||(R=this.errorChecker_(M))&&(N=4);N?EY(this,N):(this.success_=!0,this.JSC$9274_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),uZo(this))}catch(X){EY(this,1)}};
var EY=function(M,d){M.errorHandled_||(M.success_=!1,M.JSC$9274_active_=!1,M.complete_=!0,M.JSC$9274_lastErrorCode_=d,M.dispatchEvent("complete"),M.dispatchEvent("error"),uZo(M),M.errorHandled_=!0)},uZo=function(M){CuV(M);
USL(M);M.JSC$9274_form_=null;M.dispatchEvent("ready")},CuV=function(M){var d=M.JSC$9274_iframe_;
d&&(d.onreadystatechange=null,d.onload=null,d.onerror=null,M.iframesForDisposal_.push(d));M.iframeDisposalTimer_&&(clearTimeout(M.iframeDisposalTimer_),M.iframeDisposalTimer_=null);_.$h?M.iframeDisposalTimer_=setTimeout(M.disposeIframes_.bind(M),2E3):M.disposeIframes_();M.JSC$9274_iframe_=null;M.iframeName_=null};
xn.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var M=this.iframesForDisposal_.pop();_.l_(M)}};
var USL=function(M){M.JSC$9274_form_&&M.JSC$9274_form_==Yn&&_.P6(M.JSC$9274_form_)},ZA=function(M){return M.JSC$9274_iframe_?Jdo(M.JSC$9274_iframe_).getElementById(M.iframeName_+"_inner"):null};
xn.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9274_active_){var M=this.JSC$9274_iframe_?Jdo(ZA(this)):null;M&&!I8(M,"documentUri")?(_.p2(ZA(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?EY(this,3):EY(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Mm=function(M){return M=="\r"||M=="\n"||M==" "||M=="\t"};var xSJ;_.dJ=function(M){this.errorMessage_=null;this.result_=[];this.JSC$9276_buffer_="";this.stack_=[];this.JSC$9276_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!M||!M.deliverMessageAsRawString)};
xSJ={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};_.dJ.prototype.isInputValid=function(){return this.streamState_!=3};
_.dJ.prototype.done=function(){return this.streamState_===2};
var Nm=function(M,d,N){M.streamState_=3;M.errorMessage_="The stream is broken @"+M.JSC$9276_pos_+"/"+N+". With input:\n"+d;throw Error(M.errorMessage_);};
_.dJ.prototype.acceptsBinaryInput=function(){return!1};
_.dJ.prototype.parse=function(M){function d(){for(;m<M.length;)if(_.Mm(M[m]))m++,A.JSC$9276_pos_++;else break;return m<W}
function N(){for(var O;;){O=M[m++];if(!O)break;A.JSC$9276_pos_++;switch(A.state_){case T.INIT:O==="{"?A.state_=T.OBJECT_OPEN:O==="["?A.state_=T.ARRAY_OPEN:_.Mm(O)||Nm(A,M,m);continue;case T.KEY_START:case T.OBJECT_OPEN:if(_.Mm(O))continue;if(A.state_===T.KEY_START)l.push(T.KEY_END);else if(O==="}"){X("{}");A.state_=R();continue}else l.push(T.OBJECT_END);O==='"'?A.state_=T.STRING:Nm(A,M,m);continue;case T.KEY_END:case T.OBJECT_END:if(_.Mm(O))continue;O===":"?(A.state_===T.OBJECT_END&&(l.push(T.OBJECT_END),
A.depth_++),A.state_=T.VALUE):O==="}"?(A.depth_--,X(),A.state_=R()):O===","?(A.state_===T.OBJECT_END&&l.push(T.OBJECT_END),A.state_=T.KEY_START):Nm(A,M,m);continue;case T.ARRAY_OPEN:case T.VALUE:if(_.Mm(O))continue;if(A.state_===T.ARRAY_OPEN)if(A.depth_++,A.state_=T.VALUE,O==="]"){A.depth_--;if(A.depth_===0){A.state_=T.ARRAY_END;return}X("[]");A.state_=R();continue}else l.push(T.ARRAY_END);O==='"'?A.state_=T.STRING:O==="{"?A.state_=T.OBJECT_OPEN:O==="["?A.state_=T.ARRAY_OPEN:O==="t"?A.state_=T.TRUE1:
O==="f"?A.state_=T.FALSE1:O==="n"?A.state_=T.NULL1:O!=="-"&&("0123456789".indexOf(O)!==-1?A.state_=T.NUM_DIGIT:Nm(A,M,m));continue;case T.ARRAY_END:if(O===",")l.push(T.ARRAY_END),A.state_=T.VALUE,A.depth_===1&&(p=m);else if(O==="]"){A.depth_--;if(A.depth_===0)return;X();A.state_=R()}else if(_.Mm(O))continue;else Nm(A,M,m);continue;case T.STRING:var y=m;a:for(;;){for(;A.unicodeCount_>0;)if(O=M[m++],A.unicodeCount_===4?A.unicodeCount_=0:A.unicodeCount_++,!O)break a;if(O==='"'&&!A.slashed_){A.state_=
R();break}if(O==="\\"&&!A.slashed_&&(A.slashed_=!0,O=M[m++],!O))break;if(A.slashed_)if(A.slashed_=!1,O==="u"&&(A.unicodeCount_=1),O=M[m++])continue;else break;k.lastIndex=m;O=k.exec(M);if(!O){m=M.length+1;break}m=O.index+1;O=M[O.index];if(!O)break}A.JSC$9276_pos_+=m-y;continue;case T.TRUE1:if(!O)continue;O==="r"?A.state_=T.TRUE2:Nm(A,M,m);continue;case T.TRUE2:if(!O)continue;O==="u"?A.state_=T.TRUE3:Nm(A,M,m);continue;case T.TRUE3:if(!O)continue;O==="e"?A.state_=R():Nm(A,M,m);continue;case T.FALSE1:if(!O)continue;
O==="a"?A.state_=T.FALSE2:Nm(A,M,m);continue;case T.FALSE2:if(!O)continue;O==="l"?A.state_=T.FALSE3:Nm(A,M,m);continue;case T.FALSE3:if(!O)continue;O==="s"?A.state_=T.FALSE4:Nm(A,M,m);continue;case T.FALSE4:if(!O)continue;O==="e"?A.state_=R():Nm(A,M,m);continue;case T.NULL1:if(!O)continue;O==="u"?A.state_=T.NULL2:Nm(A,M,m);continue;case T.NULL2:if(!O)continue;O==="l"?A.state_=T.NULL3:Nm(A,M,m);continue;case T.NULL3:if(!O)continue;O==="l"?A.state_=R():Nm(A,M,m);continue;case T.NUM_DECIMAL_POINT:O===
"."?A.state_=T.NUM_DIGIT:Nm(A,M,m);continue;case T.NUM_DIGIT:if("0123456789.eE+-".indexOf(O)!==-1)continue;else m--,A.JSC$9276_pos_--,A.state_=R();continue;default:Nm(A,M,m)}}}
function R(){var O=l.pop();return O!=null?O:T.VALUE}
function X(O){A.depth_>1||(O||(O=p===-1?A.JSC$9276_buffer_+M.substring(w,m):M.substring(p,m)),A.deliverMessageAsRawString_?A.result_.push(O):A.result_.push(JSON.parse(O)),p=m)}
for(var A=this,l=A.stack_,k=A.stringInputPattern_,T=xSJ,W=M.length,w=0,p=-1,m=0;m<W;)switch(A.streamState_){case 3:return Nm(A,M,m),null;case 2:return d()&&Nm(A,M,m),null;case 0:if(d()){var I=M[m++];A.JSC$9276_pos_++;if(I==="["){A.streamState_=1;w=m;A.state_=T.ARRAY_OPEN;continue}else Nm(A,M,m)}return null;case 1:return N(),A.depth_===0&&A.state_==T.ARRAY_END?(A.streamState_=2,A.JSC$9276_buffer_=M.substring(m)):A.JSC$9276_buffer_=p===-1?A.JSC$9276_buffer_+M.substring(w):M.substring(p),A.result_.length>
0?(I=A.result_,A.result_=[],I):null}return null};_.RX(_.uM,pE);CH.prototype.getValue=function(){return this.JSC$9284_value_};
CH.prototype.clone=function(){return new CH(this.JSC$9284_key_,this.JSC$9284_value_)};var RH=function(M){this.nodes_=[];if(M)a:{if(M instanceof RH){var d=M.getKeys();M=M.getValues();if(this.getCount()<=0){for(var N=this.nodes_,R=0;R<d.length;R++)N.push(new CH(d[R],M[R]));break a}}else d=_.wF.getKeys(M),M=_.wF.getValues(M);for(N=0;N<d.length;N++)this.insert(d[N],M[N])}};
_.F=RH.prototype;_.F.insert=function(M,d){var N=this.nodes_;N.push(new CH(M,d));M=N.length-1;d=this.nodes_;for(N=d[M];M>0;){var R=M-1>>1;if(d[R].JSC$9284_key_>N.JSC$9284_key_)d[M]=d[R],M=R;else break}d[M]=N};
_.F.remove=function(){var M=this.nodes_,d=M.length,N=M[0];if(!(d<=0)){if(d==1)M.length=0;else{M[0]=M.pop();M=0;d=this.nodes_;for(var R=d.length,X=d[M];M<R>>1;){var A=M*2+1,l=M*2+2;A=l<R&&d[l].JSC$9284_key_<d[A].JSC$9284_key_?l:A;if(d[A].JSC$9284_key_>X.JSC$9284_key_)break;d[M]=d[A];M=A}d[M]=X}return N.getValue()}};
_.F.peek=function(){var M=this.nodes_;if(M.length!=0)return M[0].getValue()};
_.F.getValues=function(){for(var M=this.nodes_,d=[],N=M.length,R=0;R<N;R++)d.push(M[R].getValue());return d};
_.F.getKeys=function(){for(var M=this.nodes_,d=[],N=M.length,R=0;R<N;R++)d.push(M[R].JSC$9284_key_);return d};
_.F.containsValue=function(M){return this.nodes_.some(function(d){return d.getValue()==M})};
_.F.containsKey=function(M){return this.nodes_.some(function(d){return d.JSC$9284_key_==M})};
_.F.clone=function(){return new RH(this)};
_.F.getCount=function(){return this.nodes_.length};
_.F.isEmpty=function(){return this.nodes_.length===0};
_.F.clear=function(){this.nodes_.length=0};_.Xz=function(M,d){this.JSC$9290_map_={};this.JSC$9290_keys_=[];this.version_=this.size=0;var N=arguments.length;if(N>1){if(N%2)throw Error("oa");for(var R=0;R<N;R+=2)this.set(arguments[R],arguments[R+1])}else M&&this.addAll(M)};
_.F=_.Xz.prototype;_.F.getCount=function(){return this.size};
_.F.getValues=function(){Fz(this);for(var M=[],d=0;d<this.JSC$9290_keys_.length;d++)M.push(this.JSC$9290_map_[this.JSC$9290_keys_[d]]);return M};
_.F.getKeys=function(){Fz(this);return this.JSC$9290_keys_.concat()};
_.F.containsKey=function(M){return this.has(M)};
_.F.has=function(M){return AO(this.JSC$9290_map_,M)};
_.F.containsValue=function(M){for(var d=0;d<this.JSC$9290_keys_.length;d++){var N=this.JSC$9290_keys_[d];if(AO(this.JSC$9290_map_,N)&&this.JSC$9290_map_[N]==M)return!0}return!1};
_.F.equals=function(M,d){if(this===M)return!0;if(this.size!=M.getCount())return!1;d=d||YHe;Fz(this);for(var N,R=0;N=this.JSC$9290_keys_[R];R++)if(!d(this.get(N),M.get(N)))return!1;return!0};
var YHe=function(M,d){return M===d};
_.Xz.prototype.isEmpty=function(){return this.size==0};
_.Xz.prototype.clear=function(){this.JSC$9290_map_={};this.version_=this.size=this.JSC$9290_keys_.length=0};
_.Xz.prototype.remove=function(M){return this.delete(M)};
_.Xz.prototype.delete=function(M){return AO(this.JSC$9290_map_,M)?(delete this.JSC$9290_map_[M],--this.size,this.version_++,this.JSC$9290_keys_.length>2*this.size&&Fz(this),!0):!1};
var Fz=function(M){if(M.size!=M.JSC$9290_keys_.length){for(var d=0,N=0;d<M.JSC$9290_keys_.length;){var R=M.JSC$9290_keys_[d];AO(M.JSC$9290_map_,R)&&(M.JSC$9290_keys_[N++]=R);d++}M.JSC$9290_keys_.length=N}if(M.size!=M.JSC$9290_keys_.length){d={};for(R=N=0;N<M.JSC$9290_keys_.length;){var X=M.JSC$9290_keys_[N];AO(d,X)||(M.JSC$9290_keys_[R++]=X,d[X]=1);N++}M.JSC$9290_keys_.length=R}};
_.F=_.Xz.prototype;_.F.get=function(M,d){return AO(this.JSC$9290_map_,M)?this.JSC$9290_map_[M]:d};
_.F.set=function(M,d){AO(this.JSC$9290_map_,M)||(this.size+=1,this.JSC$9290_keys_.push(M),this.version_++);this.JSC$9290_map_[M]=d};
_.F.addAll=function(M){if(M instanceof _.Xz)for(var d=M.getKeys(),N=0;N<d.length;N++)this.set(d[N],M.get(d[N]));else for(d in M)this.set(d,M[d])};
_.F.forEach=function(M,d){for(var N=this.getKeys(),R=0;R<N.length;R++){var X=N[R],A=this.get(X);M.call(d,A,X,this)}};
_.F.clone=function(){return new _.Xz(this)};
_.F.transpose=function(){for(var M=new _.Xz,d=0;d<this.JSC$9290_keys_.length;d++){var N=this.JSC$9290_keys_[d];M.set(this.JSC$9290_map_[N],N)}return M};
_.F.keys=function(){return Oag(this.__iterator__(!0)).toEs6()};
_.F.values=function(){return Oag(this.__iterator__(!1)).toEs6()};
_.F.entries=function(){var M=this;return e5I(this.keys(),function(d){return[d,M.get(d)]})};
_.F.__iterator__=function(M){Fz(this);var d=0,N=this.version_,R=this,X=new NL;X.next=function(){if(N!=R.version_)throw Error("pe");if(d>=R.JSC$9290_keys_.length)return RU;var A=R.JSC$9290_keys_[d++];return XN(M?A:R.JSC$9290_map_[A])};
return X};
var AO=function(M,d){return Object.prototype.hasOwnProperty.call(M,d)};var EQd=function(){this.JSC$9293_map_=new _.Xz;this.JSC$9293_head_=new Z6z("");this.JSC$9293_head_.next=this.JSC$9293_head_.prev=this.JSC$9293_head_},MCo=function(M,d){if(d=M.JSC$9293_map_.get(d))d.remove(),M.insert_(d);
return d};
_.F=EQd.prototype;_.F.get=function(M,d){return(M=MCo(this,M))?M.value:d};
_.F.set=function(M,d){var N=MCo(this,M);N?N.value=d:(N=new Z6z(M,d),this.JSC$9293_map_.set(M,N),this.insert_(N))};
_.F.peek=function(){return this.JSC$9293_head_.next.value};
_.F.shift=function(){return dxe(this,this.JSC$9293_head_.next)};
_.F.pop=function(){return dxe(this,this.JSC$9293_head_.prev)};
_.F.remove=function(M){return(M=this.JSC$9293_map_.get(M))?(this.removeNode(M),!0):!1};
_.F.removeNode=function(M){M.remove();this.JSC$9293_map_.remove(M.key)};
_.F.getCount=function(){return this.JSC$9293_map_.getCount()};
_.F.isEmpty=function(){return this.JSC$9293_map_.isEmpty()};
_.F.getKeys=function(){return this.map(function(M,d){return d})};
_.F.getValues=function(){return this.map(function(M){return M})};
_.F.contains=function(M){return this.some(function(d){return d==M})};
_.F.containsKey=function(M){return this.JSC$9293_map_.containsKey(M)};
_.F.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9293_head_.prev)};
_.F.forEach=function(M,d){for(var N=this.JSC$9293_head_.next;N!=this.JSC$9293_head_;N=N.next)M.call(d,N.value,N.key,this)};
_.F.map=function(M,d){for(var N=[],R=this.JSC$9293_head_.next;R!=this.JSC$9293_head_;R=R.next)N.push(M.call(d,R.value,R.key,this));return N};
_.F.some=function(M,d){for(var N=this.JSC$9293_head_.next;N!=this.JSC$9293_head_;N=N.next)if(M.call(d,N.value,N.key,this))return!0;return!1};
_.F.every=function(M,d){for(var N=this.JSC$9293_head_.next;N!=this.JSC$9293_head_;N=N.next)if(!M.call(d,N.value,N.key,this))return!1;return!0};
_.F.insert_=function(M){M.next=this.JSC$9293_head_.next;M.prev=this.JSC$9293_head_;this.JSC$9293_head_.next=M;for(M.next.prev=M;this.getCount()>40;)this.removeNode(this.JSC$9293_head_.prev)};
var dxe=function(M,d){M.JSC$9293_head_!=d&&M.removeNode(d);return d.value},Z6z=function(M,d){this.key=M;
this.value=d};
Z6z.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Nkt=function(){RH.apply(this,arguments)};
_.v(Nkt,RH);Nkt.prototype.enqueue=function(M,d){this.insert(M,d)};var RpJ=function(){var M=Error();M.name="SecurityError";throw M;},ebZ=function(){return{get opener(){return null},
get closed(){return!0},get location(){RpJ()},get document(){RpJ()},postMessage:function(){},
close:function(){},
focus:function(){}}};var f72={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 GMZ={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 XzL={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(GMZ).join("|");var FXd=function(){function M(k){k.substr(-1)!==";"&&(k+=";");return l(k)}
for(var d=Object.keys(XzL).sort(ttS),N=Object.keys(GMZ).sort(ttS),R=0,X=0;R<N.length;R++)d[X]===N[R]?(N[R]+=";?",X++):N[R]+=";";var A=new RegExp("&(?:"+N.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),l=a7Z();return function(k){return String(k).replace(A,M)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var Atd={};var VCd=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"),lHL=/[\\&]/,$xL=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),BkV=RegExp('[&<>"]',"g"),krV=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),TkV=function(M){return M.charCodeAt(0)===92?M.charAt(1):FXd(M)},Dxt=function(M){return lHL.test(M)?M.replace($xL,TkV):M},gjm=function(M){try{var d,N="";
if(typeof X!=="string"){var R=X;var X=";/?:@&=+$,-_.!~*'()#"}typeof R==="undefined"&&(R=!0);var A,l=Atd[X];if(l)var k=l;else{l=Atd[X]=[];for(A=0;A<128;A++){var T=String.fromCharCode(A);/^[0-9a-z]$/i.test(T)?l.push(T):l.push("%"+("0"+A.toString(16).toUpperCase()).slice(-2))}for(A=0;A<X.length;A++)l[X.charCodeAt(A)]=X[A];k=l}var W=0;for(d=M.length;W<d;W++){var w=M.charCodeAt(W);if(R&&w===37&&W+2<d&&/^[0-9a-f]{2}$/i.test(M.slice(W+1,W+3)))N+=M.slice(W,W+3),W+=2;else if(w<128)N+=k[w];else if(w>=55296&&
w<=57343){if(w>=55296&&w<=56319&&W+1<d){var p=M.charCodeAt(W+1);if(p>=56320&&p<=57343){N+=encodeURIComponent(M[W]+M[W+1]);W++;continue}}N+="%EF%BF%BD"}else N+=encodeURIComponent(M[W])}return N}catch(m){return M}},WXL=function(M){switch(M){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return M}},Vg=function(M,d){return BkV.test(M)?d?M.replace(krV,WXL):M.replace(BkV,WXL):M};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var l0;if(String.fromCodePoint)l0=function(M){try{return String.fromCodePoint(M)}catch(d){if(d instanceof RangeError)return String.fromCharCode(65533);throw d;}};
else{var wz3=String.fromCharCode,pzL=Math.floor;l0=function(){var M=[],d=-1,N=arguments.length;if(!N)return"";for(var R="";++d<N;){var X=Number(arguments[d]);if(!isFinite(X)||X<0||X>1114111||pzL(X)!==X)return String.fromCharCode(65533);if(X<=65535)M.push(X);else{X-=65536;var A=(X>>10)+55296;X=X%1024+56320;M.push(A,X)}if(d+1===N||M.length>16384)R+=wz3.apply(null,M),M.length=0}return R}};var mxz=function(M){this.root=this.current=M;this.entering=!0};
mxz.prototype.next=function(){var M=this.current,d=this.entering;if(M===null)return null;a:switch(M._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var N=!0;break a;default:N=!1}d&&N?M._firstChild?(this.current=M._firstChild,this.entering=!0):this.entering=!1:M===this.root?this.current=null:M._next===null?(this.current=
M._parent,this.entering=!1):(this.current=M._next,this.entering=!0);return{entering:d,node:M}};
var EX=function(M,d){this._type=M;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=d;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};
EX.prototype.appendChild=function(M){$c(M);M._parent=this;this._lastChild?(this._lastChild._next=M,M._prev=this._lastChild):this._firstChild=M;this._lastChild=M};
var $c=function(M){M._prev?M._prev._next=M._next:M._parent&&(M._parent._firstChild=M._next);M._next?M._next._prev=M._prev:M._parent&&(M._parent._lastChild=M._prev);M._parent=null;M._next=null;M._prev=null},hpt=function(M,d){$c(d);
d._next=M._next;d._next&&(d._next._prev=d);d._prev=M;M._next=d;d._parent=M._parent;d._next||(d._parent._lastChild=d)};
EX.prototype.insertBefore=function(M){$c(M);M._prev=this._prev;M._prev&&(M._prev._next=M);M._next=this;this._prev=M;M._parent=this._parent;M._prev||(M._parent._firstChild=M)};
_.Hm.Object.defineProperties(EX.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(M){this._literal=M}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(M){this._destination=M}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(M){this._title=M}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(M){this._info=M}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(M){this._level=M}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(M){this._listData.type=M}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(M){this._listData.tight=M}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(M){this._listData.start=M}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(M){this._onEnter=M}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(M){this._onExit=M}}});var UbA=/[ \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,
uUp={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 QAJ=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]/),
qzL=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),IHC=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),vjV=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),OqL=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),jAt=/`+/,sAm=/^`+/,PII=/\.\.\./g,ojV=/--+/g,rtJ=/^<([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])?)*)>/,
KXV=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,ytL=/^ *(?:\n *)?/,Jtz=/^[ \t\n\x0b\x0c\x0d]/,ctV=/[ \t\n\x0b\x0c\x0d]+/g,Szd=/^\s/,zpC=/ *$/,bqJ=/^ */,epV=/^ *(?:\n|$)/,HqL=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),njm=/^[^\n`\[\]\\!<&*_'"]+/m,B0=function(M){var d=new EX("text");d._literal=M;return d},kc=function(M){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=M||{}};
kc.prototype.match=function(M){M=M.exec(this.subject.slice(this.pos));if(M===null)return null;this.pos+=M.index+M[0].length;return M[0]};
kc.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var TJ=function(M){M.match(ytL);return!0},iqg=function(M,d,N){var R=0;
var X=M.pos;if(d===39||d===34)R++,M.pos++;else for(;M.peek()===d;)R++,M.pos++;if(R===0)R=null;else{var A=X===0?"\n":M.subject.charAt(X-1);var l=M.peek();l=l===-1?"\n":l0(l);var k=Szd.test(l);l=QAJ.test(l);var T=Szd.test(A);var W=QAJ.test(A);A=!k&&!(l&&!T&&!W);k=!T&&!(W&&!k&&!l);d===95?(T=A&&(!k||W),l=k&&(!A||l)):(T=d===39||d===34?A&&!k:A,l=k);M.pos=X;R={numdelims:R,can_open:T,can_close:l}}if(!R)return!1;X=R.numdelims;l=M.pos;M.pos+=X;l=d===39?"\u2019":d===34?"\u201c":M.subject.slice(l,M.pos);l=B0(l);
N.appendChild(l);M.delimiters={cc:d,numdelims:X,origdelims:X,node:l,previous:M.delimiters,next:null,can_open:R.can_open,can_close:R.can_close};M.delimiters.previous!==null&&(M.delimiters.previous.next=M.delimiters);return!0},fHo=function(M,d){d.previous!==null&&(d.previous.next=d.next);
d.next===null?M.delimiters=d.previous:d.next.previous=d.previous},LX3=function(M,d){var N,R,X=[],A=!1;
X[95]=d;X[42]=d;X[39]=d;X[34]=d;for(N=M.delimiters;N!==null&&N.previous!==d;)N=N.previous;for(;N!==null;){var l=N.cc;if(N.can_close){var k=N.previous;for(R=!1;k!==null&&k!==d&&k!==X[l];){A=(N.can_open||k.can_close)&&(k.origdelims+N.origdelims)%3===0;if(k.cc===N.cc&&k.can_open&&!A){R=!0;break}k=k.previous}var T=N;if(l===42||l===95)if(R){var W=N.numdelims>=2&&k.numdelims>=2?2:1;var w=k.node;var p=N.node;k.numdelims-=W;N.numdelims-=W;w._literal=w._literal.slice(0,w._literal.length-W);p._literal=p._literal.slice(0,
p._literal.length-W);var m=new EX(W===1?"emph":"strong");for(W=w._next;W&&W!==p;){var I=W._next;$c(W);m.appendChild(W);W=I}hpt(w,m);W=k;I=N;W.next!==I&&(W.next=I,I.previous=W);k.numdelims===0&&($c(w),fHo(M,k));N.numdelims===0&&($c(p),k=N.next,fHo(M,N),N=k)}else N=N.next;else l===39?(N.node._literal="\u2019",R&&(k.node._literal="\u2018"),N=N.next):l===34&&(N.node._literal="\u201d",R&&(k.node.literal="\u201c"),N=N.next);R||A||(X[l]=T.previous,T.can_open||fHo(M,T))}else N=N.next}for(;M.delimiters!==
null&&M.delimiters!==d;)fHo(M,M.delimiters)},tCL=function(M){M=M.match(qzL);
return M===null?null:Dxt(M.substr(1,M.length-2))},Grm=function(M){var d=M.match(IHC);
if(d===null){d=M.pos;for(var N=0,R;(R=M.peek())!==-1;)if(R===92)M.pos+=1,M.peek()!==-1&&(M.pos+=1);else if(R===40)M.pos+=1,N+=1;else if(R===41)if(N<1)break;else M.pos+=1,--N;else if(Jtz.exec(l0(R))!==null)break;else M.pos+=1;d=M.subject.substr(d,M.pos-d);return gjm(Dxt(d))}return gjm(Dxt(d.substr(1,d.length-2)))},aHJ=function(M){M=M.match(HqL);
return M===null||M.length>1001?0:M.length},Uxz=function(M,d,N,R){M.brackets!==null&&(M.brackets.bracketAfter=!0);
M.brackets={node:d,previous:M.brackets,previousDelimiter:M.delimiters,index:N,image:R,active:!0}},uQL=function(M,d){var N;
return(N=M.match(njm))?(M.options.smart?d.appendChild(B0(N.replace(PII,"\u2026").replace(ojV,function(R){var X=0,A=0;R.length%3===0?A=R.length/3:R.length%2===0?X=R.length/2:R.length%3===2?(X=1,A=(R.length-2)/3):(X=2,A=(R.length-4)/3);R="";var l;for(l=0;l<A;l++)R+="\u2014";for(l=0;l<X;l++)R+="\u2013";return R}))):d.appendChild(B0(N)),!0):!1},CIV=function(M,d,N){M.subject=d;
M.pos=0;d=M.pos;var R=aHJ(M);if(R===0)return 0;var X=M.subject.substr(0,R);if(M.peek()===58)M.pos++;else return M.pos=d,0;TJ(M);R=Grm(M);if(R===null||R.length===0)return M.pos=d,0;var A=M.pos;TJ(M);var l=tCL(M);l===null&&(l="",M.pos=A);var k=!0;M.match(epV)===null&&(l===""?k=!1:(l="",M.pos=A,k=M.match(epV)!==null));if(!k)return M.pos=d,0;X=C5Z(X);if(X==="")return M.pos=d,0;N[X]||(N[X]={destination:R,title:l});return M.pos-d},xxz=function(M,d){var N,R=M.peek();
if(R===-1)return!1;switch(R){case 10:M.pos+=1;if((N=d._lastChild)&&N.type==="text"&&N._literal[N._literal.length-1]===" "){var X=N._literal[N._literal.length-2]===" ";N._literal=N._literal.replace(zpC,"");d.appendChild(new EX(X?"linebreak":"softbreak"))}else d.appendChild(new EX("softbreak"));M.match(bqJ);N=!0;break;case 92:N=M.subject;M.pos+=1;M.peek()===10?(M.pos+=1,N=new EX("linebreak"),d.appendChild(N)):vjV.test(N.charAt(M.pos))?(d.appendChild(B0(N.charAt(M.pos))),M.pos+=1):d.appendChild(B0("\\"));
N=!0;break;case 96:a:if(N=M.match(sAm),N===null)N=!1;else{X=M.pos;for(var A;(A=M.match(jAt))!==null;)if(A===N){A=new EX("code");A._literal=M.subject.slice(X,M.pos-N.length).trim().replace(ctV," ");d.appendChild(A);N=!0;break a}M.pos=X;d.appendChild(B0(N));N=!0}break;case 42:case 95:N=iqg(M,R,d);break;case 39:case 34:N=M.options.smart&&iqg(M,R,d);break;case 91:N=M.pos;M.pos+=1;X=B0("[");d.appendChild(X);Uxz(M,X,N,!1);N=!0;break;case 33:N=M.pos;M.pos+=1;M.peek()===91?(M.pos+=1,X=B0("!["),d.appendChild(X),
Uxz(M,X,N+1,!0)):d.appendChild(B0("!"));N=!0;break;case 93:var l,k=!1,T;M.pos+=1;var W=M.pos;X=M.brackets;if(X===null)d.appendChild(B0("]"));else if(X.active){N=X.image;var w=M.pos;M.peek()===40&&(M.pos++,TJ(M)&&(A=Grm(M))!==null&&TJ(M)&&(Jtz.test(M.subject.charAt(M.pos-1))&&(l=tCL(M)),1)&&TJ(M)&&M.peek()===41?(M.pos+=1,k=!0):M.pos=w);if(!k){var p=M.pos,m=aHJ(M);m>2?T=M.subject.slice(p,p+m):X.bracketAfter||(T=M.subject.slice(X.index,W));m===0&&(M.pos=w);T&&(T=M.refmap[C5Z(T)])&&(A=T.destination,l=
T.title,k=!0)}if(k){W=new EX(N?"image":"link");W._destination=A;W._title=l||"";for(A=X.node._next;A;)l=A._next,$c(A),W.appendChild(A),A=l;d.appendChild(W);LX3(M,X.previousDelimiter);M.brackets=M.brackets.previous;$c(X.node);if(!N)for(X=M.brackets;X!==null;)X.image||(X.active=!1),X=X.previous}else M.brackets=M.brackets.previous,M.pos=W,d.appendChild(B0("]"))}else d.appendChild(B0("]")),M.brackets=M.brackets.previous;N=!0;break;case 60:(N=M.match(rtJ))?(N=N.slice(1,N.length-1),X=new EX("link"),X._destination=
gjm("mailto:"+N),X._title="",X.appendChild(B0(N)),d.appendChild(X),N=!0):(N=M.match(KXV))?(N=N.slice(1,N.length-1),X=new EX("link"),X._destination=gjm(N),X._title="",X.appendChild(B0(N)),d.appendChild(X),N=!0):N=!1;N||(N=M.match(VCd),N===null?N=!1:(X=new EX("html_inline"),X._literal=N,d.appendChild(X),N=!0));break;case 38:(N=M.match(OqL))?(d.appendChild(B0(FXd(N))),N=!0):N=!1;break;default:N=uQL(M,d)}N||(M.pos+=1,d.appendChild(B0(l0(R))));return!0};
kc.prototype.parseInlines=function(M){this.subject=M._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;xxz(this,M););M._string_content=null;LX3(this,null)};
kc.prototype.parse=kc.prototype.parseInlines;var Yze=[/./,/^<(?: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")],Zqt=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],EjV=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,MmI=/^[#`~*+_=<>0-9-\|]|\|/,dNL=/[^ \t\f\v\r\n]/,NTg=/^[*+-]/,Rug=/^(\d{1,9})([.)])/,XiC=/^#{1,6}(?:[ \t]+|$)/,FdV=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,AId=/^(?:`{3,}|~{3,})(?= *$)/,Vmg=/^(?:=+|-+)[ \t]*$/,lMJ=/\r\n|\n|\r/,YeL=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Ztj=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,$Nz={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(M,d){for(M=d._firstChild;M;){if(xbq(M)&&M._next){d._listData.tight=!1;break}for(var N=M._firstChild;N;){if(xbq(N)&&(M._next||N._next)){d._listData.tight=!1;break}N=N._next}M=M._next}},
canContain:function(M){return M==="item"},
acceptsLines:!1},block_quote:{continue:function(M){var d=M.currentLine;if(M.indented||YC(d,M.nextNonspace)!==62)return 1;D6(M);gJ(M,1,!1);xC(YC(d,M.offset))&&gJ(M,1,!0);return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},item:{continue:function(M,d){if(M.blank){if(d._firstChild==null)return 1;D6(M)}else if(M.indent>=d._listData.markerOffset+d._listData.padding)gJ(M,d._listData.markerOffset+d._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(M){return M!=="item"&&!E_r(M)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(M,d){var N=M.currentLine,R=M.indent;if(d._isFenced){if((R=R<=3&&N.charAt(M.nextNonspace)===d._fenceChar&&N.slice(M.nextNonspace).match(AId))&&R[0].length>=d._fenceLength)return M.finalize(d,M.lineNumber),2;for(d=d._fenceOffset;d>0&&xC(YC(N,M.offset));)gJ(M,1,!0),d--}else if(R>=4)gJ(M,4,!0);else if(M.blank)D6(M);else return 1;return 0},
finalize:function(M,d){if(d._isFenced){var N=d._string_content,R=N.indexOf("\n");M=N.slice(0,R);N=N.slice(R+1);d.info=Dxt(M.trim());d._literal=N}else d._literal=d._string_content.replace(/(\n *)+$/,"\n");d._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(M,d){return!M.blank||d._htmlBlockType!==6&&d._htmlBlockType!==7?0:1},
finalize:function(M,d){d._literal=d._string_content.replace(/(\n *)+$/,"");d._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(M){return M.blank?1:0},
finalize:function(M,d){for(var N,R=!1;YC(d._string_content,0)===91&&(N=CIV(M.inlineParser,d._string_content,M.refmap));)d._string_content=d._string_content.slice(N),R=!0;R&&!dNL.test(d._string_content)&&$c(d)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(M){return Zt(M.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(M){return M=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(M,d){if(!d._rowIsDelimiter){M=d._isHeader?"th":"td";for(var N=d._parent._tableColumns,R=d._string_content,X=0,A="",l,k=d._sourcepos[0][0];X<R.length;){switch(R[X]){case "|":l&&(l._string_content=A.trim(),A="",l=null,N--,N<=0&&(X=R.length));break;default:if(!l){l=new EX(M,[[k,X],[k,X]]);var T=d._parent._columnAlignment,W=d._parent._tableColumns-N;T&&W<=T.length&&W>=0&&(l._alignment=T[W]);d.appendChild(l)}A+=R[X];l._sourcepos[1][1]=X}X++}l&&(l._string_content=A.trim());d._string_content=
""}},
canContain:function(M){return M!=="row"},
acceptsLines:!1}},BTg=[function(M){if(M.indented||YC(M.currentLine,M.nextNonspace)!==62)return 0;D6(M);gJ(M,1,!1);xC(YC(M.currentLine,M.offset))&&gJ(M,1,!0);W0(M);M.addChild("block_quote",M.nextNonspace);return 1},
function(M){var d;if(!M.indented&&(d=M.currentLine.slice(M.nextNonspace).match(XiC))){D6(M);gJ(M,d[0].length,!1);W0(M);var N=M.addChild("heading",M.nextNonspace);N.level=d[0].trim().length;N._string_content=M.currentLine.slice(M.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");gJ(M,M.currentLine.length-M.offset);return 2}return 0},
function(M){var d;if(!M.indented&&(d=M.currentLine.slice(M.nextNonspace).match(FdV))){var N=d[0].length;W0(M);var R=M.addChild("code_block",M.nextNonspace);R._isFenced=!0;R._fenceLength=N;R._fenceChar=d[0][0];R._fenceOffset=M.indent;D6(M);gJ(M,N,!1);return 2}return 0},
function(M,d){if(!M.indented&&YC(M.currentLine,M.nextNonspace)===60){var N=M.currentLine.slice(M.nextNonspace),R;for(R=1;R<=7;R++)if(Yze[R].test(N)&&(R<7||d.type!=="paragraph"))return W0(M),M.addChild("html_block",M.offset)._htmlBlockType=R,2}return 0},
function(M,d){var N;if(!M.indented&&d.type==="paragraph"&&(N=M.currentLine.slice(M.nextNonspace).match(Vmg))){W0(M);var R=new EX("heading",d.sourcepos);R.level=N[0][0]==="="?1:2;R._string_content=d._string_content;hpt(d,R);$c(d);M.tip=R;gJ(M,M.currentLine.length-M.offset,!1);return 2}return 0},
function(M){return!M.indented&&EjV.test(M.currentLine.slice(M.nextNonspace))?(W0(M),M.addChild("thematic_break",M.nextNonspace),gJ(M,M.currentLine.length-M.offset,!1),2):0},
function(M,d){var N,R;if(!(R=M.indented&&d.type!=="list")){a:{var X=d,A=M.currentLine.slice(M.nextNonspace);R={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:M.indent};if(N=A.match(NTg))R.type="bullet",R.bulletChar=N[0][0];else{if(!(N=A.match(Rug))||X.type==="paragraph"&&N[1]!=="1"){N=null;break a}R.type="ordered";R.start=parseInt(N[1],10);R.delimiter=N[2]}var l=YC(M.currentLine,M.nextNonspace+N[0].length);if(l!==-1&&l!==9&&l!==32||X.type==="paragraph"&&!M.currentLine.slice(M.nextNonspace+
N[0].length).match(dNL))N=null;else{D6(M);gJ(M,N[0].length,!0);X=M.column;A=M.offset;do gJ(M,1,!0),l=YC(M.currentLine,M.offset);while(M.column-X<5&&xC(l));l=YC(M.currentLine,M.offset)===-1;var k=M.column-X;k>=5||k<1||l?(R.padding=N[0].length+1,M.column=X,M.offset=A,xC(YC(M.currentLine,M.offset))&&gJ(M,1,!0)):R.padding=N[0].length+k;N=R}}R=!N}if(R)return 0;W0(M);(R=M.tip.type!=="list")||(d=d._listData,R=!(d.type===N.type&&d.delimiter===N.delimiter&&d.bulletChar===N.bulletChar));R&&(d=M.addChild("list",
M.nextNonspace),d._listData=N);d=M.addChild("item",M.nextNonspace);d._listData=N;return 1},
function(M){var d;return((d=M.options.shouldParseIndentAsCodeBlock)!=null?d:1)&&M.indented&&M.tip.type!=="paragraph"&&!M.blank?(gJ(M,4,!0),W0(M),M.addChild("code_block",M.offset),2):0},
function(M,d){var N=Zt(M.currentLine),R=Zt(M.lookahead);if(N!==0&&R<0&&Math.abs(N)==Math.abs(R)&&!E_r(d.type)){W0(M);d=M.addChild("table",M.nextNonspace);d._tableRows=1;d._tableColumns=Math.abs(N);N=M.lookahead;if(Ztj.test(N)){R=[];for(var X=0,A=!1,l=0,k=void 0;X<N.length;){var T=l>=3;switch(N[X]){case "-":l++;break;case "|":A&&(R.push(k),k=void 0,l=0);A=!0;break;case ":":k||T||(k="left"),!k&&T&&(k="right"),k==="left"&&T&&(k="center")}X++}N=R}else N=void 0;d._columnAlignment=N;d=M.addChild("row",
M.nextNonspace);d._isHeader=!0;gJ(M,M.currentLine.length-M.offset,!1);d._string_content=M.currentLine;return 1}return 0},
function(M,d){if(d.type=="table"&&Zt(M.currentLine)!==0){W0(M);var N=d;d=M.addChild("row",M.nextNonspace);Zt(M.currentLine)<0?d._rowIsDelimiter=!0:N._tableRows+=1;gJ(M,M.currentLine.length-M.offset,!1);d._string_content=M.currentLine;return 2}return 0}],nNi=function(){var M={shouldParseIndentAsCodeBlock:!1};
M=M===void 0?{}:M;this.lastMatchedContainer=this.doc=MSZ();this.refmap={};this.lastLineLength=0;this.inlineParser=new kc(M);this.options=M;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=$Nz;this.blockStarts=BTg},kxL=function(M){M.partiallyConsumedTab&&(M.offset+=1,M.tip._string_content+=" ".repeat(4-M.column%
4));
M.tip._string_content+=M.currentLine.slice(M.offset)+"\n"};
nNi.prototype.addChild=function(M,d){for(;!this.blocks[this.tip.type].canContain(M);)this.finalize(this.tip,this.lineNumber-1);M=new EX(M,[[this.lineNumber,d+1],[0,0]]);M._string_content="";this.tip.appendChild(M);return this.tip=M};
var W0=function(M){if(!M.allClosed){for(;M.oldtip!==M.lastMatchedContainer;){var d=M.oldtip._parent;M.finalize(M.oldtip,M.lineNumber-1);M.oldtip=d}M.allClosed=!0}},gJ=function(M,d,N){for(var R=M.currentLine,X,A;d>0&&(A=R[M.offset]);)A==="\t"?(X=4-M.column%4,N?(M.partiallyConsumedTab=X>d,X=X>d?d:X,M.column+=X,M.offset+=M.partiallyConsumedTab?0:1,d-=X):(M.partiallyConsumedTab=!1,M.column+=X,M.offset+=1,--d)):(M.partiallyConsumedTab=!1,M.offset+=1,M.column+=1,--d)},D6=function(M){M.offset=M.nextNonspace;
M.column=M.nextNonspaceColumn;M.partiallyConsumedTab=!1},TT3=function(M){for(var d=M.currentLine,N=M.offset,R=M.column,X;(X=d.charAt(N))!=="";)if(X===" ")N++,R++;
else if(X==="\t")N++,R+=4-R%4;else break;M.blank=X==="\n"||X==="\r"||X==="";M.nextNonspace=N;M.nextNonspaceColumn=R;M.indent=M.nextNonspaceColumn-M.column;M.indented=M.indent>=4};
nNi.prototype.finalize=function(M,d){var N=M._parent;M._open=!1;M.sourcepos[1]=[d,this.lastLineLength];this.blocks[M.type].finalize(this,M);this.tip=N};
nNi.prototype.parse=function(M){this.tip=this.doc=MSZ();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!M)return this.doc;this.options.time&&console.time("preparing input");var d=M.split(lMJ),N=d.length;M.charCodeAt(M.length-1)===10&&--N;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(M=0;M<N;M++)a:{var R=void 0,X=d[M],A=d[M+1],l=!0,k=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;X.indexOf("\x00")!==-1&&(X=X.replace(/\0/g,"\ufffd"));this.currentLine=X;for(this.lookahead=A;(R=k._lastChild)&&R._open;){k=R;TT3(this);switch(this.blocks[k.type].continue(this,k)){case 0:break;case 1:l=!1;break;case 2:this.lastLineLength=X.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!l){k=k._parent;break}}this.allClosed=k===this.oldtip;this.lastMatchedContainer=
k;R=k.type!=="paragraph"&&$Nz[k.type].acceptsLines;A=this.blockStarts;for(l=A.length;!R;){TT3(this);if(!this.indented&&!MmI.test(X.slice(this.nextNonspace))){D6(this);break}for(var T=0;T<l;){var W=A[T](this,k);if(W===1){k=this.tip;break}else if(W===2){k=this.tip;R=!0;break}else T++}if(T===l){D6(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){W0(this);this.blank&&k.lastChild&&(k.lastChild._lastLineBlank=!0);R=k.type;A=this.blank&&!(R==="block_quote"||R==="code_block"&&k._isFenced||
R==="item"&&!k._firstChild&&k.sourcepos[0][0]===this.lineNumber);for(l=k;l;)l._lastLineBlank=A,l=l._parent;this.blocks[R].acceptsLines?(kxL(this),R==="html_block"&&k._htmlBlockType>=1&&k._htmlBlockType<=5&&Zqt[k._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(k,this.lineNumber)):this.offset<X.length&&!this.blank&&(this.addChild("paragraph",this.offset),D6(this),kxL(this))}else kxL(this);this.lastLineLength=X.length}for(;this.tip;)this.finalize(this.tip,N);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");X=new mxz(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;N=X.next();)d=N.node,M=d.type,N.entering||M!=="paragraph"&&M!=="heading"&&M!=="th"&&M!="td"||this.inlineParser.parse(d);this.options.time&&console.timeEnd("inline parsing");return this.doc};dnA.prototype.render=function(M){M=new mxz(M);var d;this.buffer="";for(this.lastOut="\n";d=M.next();){var N=d.node.type;if(this[N])this[N](d.node,d.entering)}return this.buffer};
dnA.prototype.out=function(M){wJ(this,M)};
var wJ=function(M,d){M.buffer+=d;M.lastOut=d};
dnA.prototype.cr=function(){this.lastOut!=="\n"&&wJ(this,"\n")};var DNm=/^javascript:|vbscript:|file:|data:/i,gFm=/^data:image\/(?:png|gif|jpeg|webp)/i,WdC=function(M){return DNm.test(M)&&!gFm.test(M)};
Mw.prototype=Object.create(dnA.prototype);_.F=Mw.prototype;_.F.text=function(M){this.out(M.literal)};
_.F.html_inline=function(M){this.options.safe?wJ(this,"\x3c!-- raw HTML omitted --\x3e"):wJ(this,M.literal)};
_.F.html_block=function(M){this.cr();this.options.safe?wJ(this,"\x3c!-- raw HTML omitted --\x3e"):wJ(this,M.literal);this.cr()};
_.F.softbreak=function(){wJ(this,this.options.softbreak)};
_.F.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.F.link=function(M,d){var N=this.attrs(M);d?(this.options.safe&&WdC(M.destination)||N.push(["href",Vg(M.destination,!0)]),M.title&&N.push(["title",Vg(M.title,!0)]),this.tag("a",N)):this.tag("/a")};
_.F.image=function(M,d){d?(this.disableTags===0&&(this.options.safe&&WdC(M.destination)?wJ(this,'<img src="" alt="'):wJ(this,'<img src="'+Vg(M.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(M.title&&wJ(this,'" title="'+Vg(M.title,!0)),wJ(this,'" />')))};
_.F.emph=function(M,d){this.tag(d?"em":"/em")};
_.F.strong=function(M,d){this.tag(d?"strong":"/strong")};
_.F.paragraph=function(M,d){var N=M.parent.parent;M=this.attrs(M);N!==null&&N.type==="list"&&N.listTight||(d?(this.cr(),this.tag("p",M)):(this.tag("/p"),this.cr()))};
_.F.heading=function(M,d){var N="h"+M.level;M=this.attrs(M);d?(this.cr(),this.tag(N,M)):(this.tag("/"+N),this.cr())};
_.F.code=function(M){this.tag("code");this.out(M.literal);this.tag("/code")};
_.F.code_block=function(M){var d=M.info?M.info.split(/\s+/):[],N=this.attrs(M);d.length>0&&d[0].length>0&&N.push(["class","language-"+Vg(d[0],!0)]);this.cr();this.tag("pre");this.tag("code",N);this.out(M.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.F.thematic_break=function(M){M=this.attrs(M);this.cr();this.tag("hr",M,!0);this.cr()};
_.F.block_quote=function(M,d){M=this.attrs(M);d?(this.cr(),this.tag("blockquote",M)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.F.list=function(M,d){var N=M.listType==="bullet"?"ul":"ol",R=this.attrs(M);d?(M=M.listStart,M!==null&&M!==1&&R.push(["start",M.toString()]),this.cr(),this.tag(N,R)):(this.cr(),this.tag("/"+N));this.cr()};
_.F.item=function(M,d){M=this.attrs(M);d?this.tag("li",M):(this.tag("/li"),this.cr())};
_.F.custom_inline=function(M,d){d&&M.onEnter?wJ(this,M.onEnter):!d&&M.onExit&&wJ(this,M.onExit)};
_.F.custom_block=function(M,d){this.cr();d&&M.onEnter?wJ(this,M.onEnter):!d&&M.onExit&&wJ(this,M.onExit);this.cr()};
_.F.table=function(M,d){M=this.attrs(M);d?(this.cr(),this.tag("table",M)):(this.tag("/table"),this.cr())};
_.F.row=function(M,d){M._rowIsDelimiter||(M=this.attrs(M),d?this.tag("tr",M):this.tag("/tr"))};
_.F.td=function(M,d){var N=this.attrs(M);M._alignment&&N.push(["align",M._alignment]);d?this.tag("td",N):this.tag("/td")};
_.F.th=function(M,d){var N=this.attrs(M);M._alignment&&N.push(["align",M._alignment]);d?this.tag("th",N):this.tag("/th")};
_.F.out=function(M){wJ(this,Vg(M,!1))};
_.F.tag=function(M,d,N){if(!(this.disableTags>0)){this.buffer+="<"+M;if(d&&d.length>0){M=0;for(var R;(R=d[M])!==void 0;)this.buffer+=" "+R[0]+'="'+R[1]+'"',M++}N&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.F.attrs=function(M){var d=[];this.options.sourcepos&&(M=M.sourcepos)&&d.push(["data-sourcepos",String(M[0][0])+":"+String(M[0][1])+"-"+String(M[1][0])+":"+String(M[1][1])]);return d};
Mw.prototype.text=Mw.prototype.text;Mw.prototype.html_inline=Mw.prototype.html_inline;Mw.prototype.html_block=Mw.prototype.html_block;Mw.prototype.softbreak=Mw.prototype.softbreak;Mw.prototype.linebreak=Mw.prototype.linebreak;Mw.prototype.link=Mw.prototype.link;Mw.prototype.image=Mw.prototype.image;Mw.prototype.emph=Mw.prototype.emph;Mw.prototype.strong=Mw.prototype.strong;Mw.prototype.paragraph=Mw.prototype.paragraph;Mw.prototype.heading=Mw.prototype.heading;Mw.prototype.code=Mw.prototype.code;
Mw.prototype.code_block=Mw.prototype.code_block;Mw.prototype.thematic_break=Mw.prototype.thematic_break;Mw.prototype.block_quote=Mw.prototype.block_quote;Mw.prototype.list=Mw.prototype.list;Mw.prototype.item=Mw.prototype.item;Mw.prototype.custom_inline=Mw.prototype.custom_inline;Mw.prototype.custom_block=Mw.prototype.custom_block;Mw.prototype.table=Mw.prototype.table;Mw.prototype.row=Mw.prototype.row;Mw.prototype.td=Mw.prototype.td;Mw.prototype.th=Mw.prototype.th;Mw.prototype.out=Mw.prototype.out;
Mw.prototype.tag=Mw.prototype.tag;Mw.prototype.attrs=Mw.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 wid,piV,S3v;(function(){function M(J,r){return J<r?-1:J>r?1:J>=r?0:NaN}
function d(J){return function(r,b){return M(J(r),b)}}
function N(){for(var J=0,r=arguments.length,b={},u;J<r;++J){if(!(u=arguments[J]+"")||u in b)throw Error("re`"+u);b[u]=[]}return new R(b)}
function R(J){this._=J}
function X(J,r){return J.trim().split(/^|\s+/).map(function(b){var u="",Xi=b.indexOf(".");Xi>=0&&(u=b.slice(Xi+1),b=b.slice(0,Xi));if(b&&!r.hasOwnProperty(b))throw Error("se`"+b);return{type:b,name:u}})}
function A(J,r,b){for(var u=0,Xi=J.length;u<Xi;++u)if(J[u].name===r){J[u]=ker;J=J.slice(0,u).concat(J.slice(u+1));break}b!=null&&J.push({name:r,value:b});return J}
function l(J){var r=J,b=r.indexOf(":");b>=0&&(r=J.slice(0,b))!=="xmlns"&&(J=J.slice(b+1));return CQ.hasOwnProperty(r)?{space:CQ[r],local:J}:J}
function k(J){return function(){var r=this.ownerDocument,b=this.namespaceURI;return b==="http://www.w3.org/1999/xhtml"&&r.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?r.createElement(J):r.createElementNS(b,J)}}
function T(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}
function W(J){J=l(J);return(J.local?T:k)(J)}
function w(){}
function p(J){return J==null?w:function(){return this.querySelector(J)}}
function m(J){return Array(J.length)}
function I(J,r){this.ownerDocument=J.ownerDocument;this.namespaceURI=J.namespaceURI;this._next=null;this._parent=J;this.__data__=r}
function O(J){return function(){return J}}
function y(J,r,b,u,Xi,Bj){for(var pZ=0,jr,Zv=r.length,u2=Bj.length;pZ<u2;++pZ)(jr=r[pZ])?(jr.__data__=Bj[pZ],u[pZ]=jr):b[pZ]=new I(J,Bj[pZ]);for(;pZ<Zv;++pZ)if(jr=r[pZ])Xi[pZ]=jr}
function c(J,r,b,u,Xi,Bj,pZ){var jr,Zv,u2={},ES=r.length,Dm=Bj.length,tC=Array(ES),wq;for(jr=0;jr<ES;++jr)if(Zv=r[jr])tC[jr]=wq="$"+pZ.call(Zv,Zv.__data__,jr,r),wq in u2?Xi[jr]=Zv:u2[wq]=Zv;for(jr=0;jr<Dm;++jr)wq="$"+pZ.call(J,Bj[jr],jr,Bj),(Zv=u2[wq])?(u[jr]=Zv,Zv.__data__=Bj[jr],u2[wq]=null):b[jr]=new I(J,Bj[jr]);for(jr=0;jr<ES;++jr)(Zv=r[jr])&&u2[tC[jr]]===Zv&&(Xi[jr]=Zv)}
function e(J,r){return J<r?-1:J>r?1:J>=r?0:NaN}
function t(J){return function(){this.removeAttribute(J)}}
function C(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function U(J,r){return function(){this.setAttribute(J,r)}}
function Fi(J,r){return function(){this.setAttributeNS(J.space,J.local,r)}}
function Y(J,r){return function(){var b=r.apply(this,arguments);b==null?this.removeAttribute(J):this.setAttribute(J,b)}}
function $i(J,r){return function(){var b=r.apply(this,arguments);b==null?this.removeAttributeNS(J.space,J.local):this.setAttributeNS(J.space,J.local,b)}}
function vj(J){return function(){this.style.removeProperty(J)}}
function Pj(J,r,b){return function(){this.style.setProperty(J,r,b)}}
function sS(J,r,b){return function(){var u=r.apply(this,arguments);u==null?this.style.removeProperty(J):this.style.setProperty(J,u,b)}}
function tL(J,r){return J.style.getPropertyValue(r)||(J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView).getComputedStyle(J,null).getPropertyValue(r)}
function b2(J){return function(){delete this[J]}}
function Hj(J,r){return function(){this[J]=r}}
function LZ(J,r){return function(){var b=r.apply(this,arguments);b==null?delete this[J]:this[J]=b}}
function w3(){this.textContent=""}
function XY(J){return function(){this.textContent=J}}
function jJ(J){return function(){var r=J.apply(this,arguments);this.textContent=r==null?"":r}}
function Ne(){this.innerHTML=""}
function Vz(J){return function(){this.innerHTML=J}}
function oI(J){return function(){var r=J.apply(this,arguments);this.innerHTML=r==null?"":r}}
function $d(){return null}
function CJ(){var J=this.parentNode;J&&J.removeChild(this)}
function xd(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Vq(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function uL(J,r,b){J=fg(J,r,b);return function(u){var Xi=u.relatedTarget;Xi&&(Xi===this||Xi.compareDocumentPosition(this)&8)||J.call(this,u)}}
function fg(J,r,b){return function(){J.call(this,this.__data__,r,b)}}
function M9(J){return J.trim().split(/^|\s+/).map(function(r){var b="",u=r.indexOf(".");u>=0&&(b=r.slice(u+1),r=r.slice(0,u));return{type:r,name:b}})}
function OV(J){return function(){var r=this.__on;if(r){for(var b=0,u=-1,Xi=r.length,Bj;b<Xi;++b)(Bj=r[b],J.type&&Bj.type!==J.type||Bj.name!==J.name)?r[++u]=Bj:this.removeEventListener(Bj.type,Bj.listener,Bj.capture);++u?r.length=u:delete this.__on}}}
function UV(J,r,b){var u=e0I.hasOwnProperty(J.type)?uL:fg;return function(Xi,Bj,pZ){Xi=this.__on;var jr;Bj=u(r,Bj,pZ);if(Xi){pZ=0;for(var Zv=Xi.length;pZ<Zv;++pZ)if((jr=Xi[pZ]).type===J.type&&jr.name===J.name){this.removeEventListener(jr.type,jr.listener,jr.capture);this.addEventListener(jr.type,jr.listener=Bj,jr.capture=b);jr.value=r;return}}this.addEventListener(J.type,Bj,b);jr={type:J.type,name:J.name,value:r,listener:Bj,capture:b};Xi?Xi.push(jr):this.__on=[jr]}}
function q$(J,r,b){var u=J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView,Xi=u.CustomEvent;typeof Xi==="function"?Xi=new Xi(r,b):(Xi=u.document.createEvent("Event"),b?(Xi.initEvent(r,b.bubbles,b.cancelable),Xi.detail=b.detail):Xi.initEvent(r,!1,!1));J.dispatchEvent(Xi)}
function BV(J,r){return function(){return q$(this,J,r)}}
function fZ(J,r){return function(){return q$(this,J,r.apply(this,arguments))}}
function WV(J,r){this._groups=J;this._parents=r}
function V9(){return new WV([[document.documentElement]],Tld)}
function Qz(){this._="@"+(++DID).toString(36)}
function IC(J,r,b){J.prototype=r.prototype=b;b.constructor=J}
function Qt(J,r){J=Object.create(J.prototype);for(var b in r)J[b]=r[b];return J}
function AX(){}
function pK(J){var r;J=(J+"").trim().toLowerCase();return(r=gsG.exec(J))?(r=parseInt(r[1],16),new DR(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1)):(r=W2T.exec(J))?HY(parseInt(r[1],16)):(r=w6J.exec(J))?new DR(r[1],r[2],r[3],1):(r=p64.exec(J))?new DR(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=mIb.exec(J))?Vb(r[1],r[2],r[3],r[4]):(r=hvq.exec(J))?Vb(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Qx4.exec(J))?lX(r[1],r[2]/100,r[3]/100,1):(r=q8C.exec(J))?lX(r[1],r[2]/100,r[3]/100,r[4]):HGg.hasOwnProperty(J)?
HY(HGg[J]):J==="transparent"?new DR(NaN,NaN,NaN,0):null}
function HY(J){return new DR(J>>16&255,J>>8&255,J&255,1)}
function Vb(J,r,b,u){u<=0&&(J=r=b=NaN);return new DR(J,r,b,u)}
function yy(J){J instanceof AX||(J=pK(J));if(!J)return new DR;J=J.rgb();return new DR(J.r,J.g,J.b,J.opacity)}
function Hg(J,r,b,u){return arguments.length===1?yy(J):new DR(J,r,b,u==null?1:u)}
function DR(J,r,b,u){this.r=+J;this.g=+r;this.b=+b;this.opacity=+u}
function mL(J){J=Math.max(0,Math.min(255,Math.round(J)||0));return(J<16?"0":"")+J.toString(16)}
function lX(J,r,b,u){u<=0?J=r=b=NaN:b<=0||b>=1?J=r=NaN:r<=0&&(J=NaN);return new nu(J,r,b,u)}
function kT(J){if(J instanceof nu)return new nu(J.h,J.s,J.l,J.opacity);J instanceof AX||(J=pK(J));if(!J)return new nu;if(J instanceof nu)return J;J=J.rgb();var r=J.r/255,b=J.g/255,u=J.b/255,Xi=Math.min(r,b,u),Bj=Math.max(r,b,u),pZ=NaN,jr=Bj-Xi,Zv=(Bj+Xi)/2;jr?(pZ=r===Bj?(b-u)/jr+(b<u)*6:b===Bj?(u-r)/jr+2:(r-b)/jr+4,jr/=Zv<.5?Bj+Xi:2-Bj-Xi,pZ*=60):jr=Zv>0&&Zv<1?0:pZ;return new nu(pZ,jr,Zv,J.opacity)}
function zN(J,r,b,u){return arguments.length===1?kT(J):new nu(J,r,b,u==null?1:u)}
function nu(J,r,b,u){this.h=+J;this.s=+r;this.l=+b;this.opacity=+u}
function R2(J,r,b){return(J<60?r+(b-r)*J/60:J<180?b:J<240?r+(b-r)*(240-J)/60:r)*255}
function gU(J){if(J instanceof hL)return new hL(J.l,J.a,J.b,J.opacity);if(J instanceof mt){if(isNaN(J.h))return new hL(J.l,0,0,J.opacity);var r=J.h*ncz;return new hL(J.l,Math.cos(r)*J.c,Math.sin(r)*J.c,J.opacity)}J instanceof DR||(J=yy(J));var b=FY(J.r),u=FY(J.g),Xi=FY(J.b);r=JL(.2225045*b+.7168786*u+.0606169*Xi);if(b===u&&u===Xi)var Bj=b=r;else Bj=JL((.4360747*b+.3850649*u+.1430804*Xi)/.96422),b=JL((.0139322*b+.0971045*u+.7141733*Xi)/.82521);return new hL(116*r-16,500*(Bj-r),200*(r-b),J.opacity)}
function hL(J,r,b,u){this.l=+J;this.a=+r;this.b=+b;this.opacity=+u}
function JL(J){return J>I0i?Math.pow(J,1/3):J/iGz+f6L}
function nZ(J){return J>l4?J*J*J:iGz*(J-f6L)}
function g3(J){return 255*(J<=.0031308?12.92*J:1.055*Math.pow(J,1/2.4)-.055)}
function FY(J){return(J/=255)<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)}
function Px(J){if(J instanceof mt)return new mt(J.h,J.c,J.l,J.opacity);J instanceof hL||(J=gU(J));if(J.a===0&&J.b===0)return new mt(NaN,0,J.l,J.opacity);var r=Math.atan2(J.b,J.a)*LQd;return new mt(r<0?r+360:r,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}
function DD(J,r,b,u){return arguments.length===1?Px(J):new mt(J,r,b,u==null?1:u)}
function mt(J,r,b,u){this.h=+J;this.c=+r;this.l=+b;this.opacity=+u}
function pg(J,r,b,u){if(arguments.length===1){var Xi=J;if(Xi instanceof gq)Xi=new gq(Xi.h,Xi.s,Xi.l,Xi.opacity);else{Xi instanceof DR||(Xi=yy(Xi));var Bj=Xi.g/255,pZ=Xi.b/255,jr=(tOV*pZ+Xi.r/255*-1.7884503806-3.5172982438*Bj)/(tOV+-1.7884503806-3.5172982438);pZ-=jr;var Zv=(1.97294*(Bj-jr)- -.29227*pZ)/-.90649;pZ=(Bj=Math.sqrt(Zv*Zv+pZ*pZ)/(1.97294*jr*(1-jr)))?Math.atan2(Zv,pZ)*LQd-120:NaN;Xi=new gq(pZ<0?pZ+360:pZ,Bj,jr,Xi.opacity)}}else Xi=new gq(J,r,b,u==null?1:u);return Xi}
function gq(J,r,b,u){this.h=+J;this.s=+r;this.l=+b;this.opacity=+u}
function vx(J,r,b,u,Xi){var Bj=J*J,pZ=Bj*J;return((1-3*J+3*Bj-pZ)*r+(4-6*Bj+3*pZ)*b+(1+3*J+3*Bj-3*pZ)*u+pZ*Xi)/6}
function FL(J){return function(){return J}}
function h_(J,r){return function(b){return J+b*r}}
function bs(J,r,b){return J=Math.pow(J,b),r=Math.pow(r,b)-J,b=1/b,function(u){return Math.pow(J+u*r,b)}}
function cx(J,r){var b=r-J;return b?h_(J,b>180||b<-180?b-360*Math.round(b/360):b):FL(isNaN(J)?r:J)}
function Lk(J){return(J=+J)===1?Jw:function(r,b){return b-r?bs(r,b,J):FL(isNaN(r)?b:r)}}
function Jw(J,r){var b=r-J;return b?h_(J,b):FL(isNaN(J)?r:J)}
function bB(J){return function(r){var b=r.length,u=Array(b),Xi=Array(b),Bj=Array(b),pZ;for(pZ=0;pZ<b;++pZ){var jr=Hg(r[pZ]);u[pZ]=jr.r||0;Xi[pZ]=jr.g||0;Bj[pZ]=jr.b||0}u=J(u);Xi=J(Xi);Bj=J(Bj);jr.opacity=1;return function(Zv){jr.r=u(Zv);jr.g=Xi(Zv);jr.b=Bj(Zv);return jr+""}}}
function TT(J,r){return J=+J,r-=J,function(b){return J+r*b}}
function Yi(J){return function(){return J}}
function pJ(J){return function(r){return J(r)+""}}
function ei(J,r){var b=DmN.lastIndex=gcZ.lastIndex=0,u,Xi,Bj,pZ=-1,jr=[],Zv=[];J+="";for(r+="";(u=DmN.exec(J))&&(Xi=gcZ.exec(r));)(Bj=Xi.index)>b&&(Bj=r.slice(b,Bj),jr[pZ]?jr[pZ]+=Bj:jr[++pZ]=Bj),(u=u[0])===(Xi=Xi[0])?jr[pZ]?jr[pZ]+=Xi:jr[++pZ]=Xi:(jr[++pZ]=null,Zv.push({i:pZ,x:TT(u,Xi)})),b=gcZ.lastIndex;b<r.length&&(Bj=r.slice(b),jr[pZ]?jr[pZ]+=Bj:jr[++pZ]=Bj);return jr.length<2?Zv[0]?pJ(Zv[0].x):Yi(r):(r=Zv.length,function(u2){for(var ES=0,Dm;ES<r;++ES)jr[(Dm=Zv[ES]).i]=Dm.x(u2);return jr.join("")})}
function rs(J,r,b,u,Xi,Bj){var pZ,jr,Zv;if(pZ=Math.sqrt(J*J+r*r))J/=pZ,r/=pZ;if(Zv=J*b+r*u)b-=J*Zv,u-=r*Zv;if(jr=Math.sqrt(b*b+u*u))b/=jr,u/=jr,Zv/=jr;J*u<r*b&&(J=-J,r=-r,Zv=-Zv,pZ=-pZ);return{translateX:Xi,translateY:Bj,rotate:Math.atan2(r,J)*GJe,skewX:Math.atan(Zv)*GJe,scaleX:pZ,scaleY:jr}}
function TP(J,r,b,u){function Xi(u2){return u2.length?u2.pop()+" ":""}
function Bj(u2,ES,Dm,tC,wq,Wx){u2!==Dm||ES!==tC?(wq=wq.push("translate(",null,r,null,b),Wx.push({i:wq-4,x:TT(u2,Dm)},{i:wq-2,x:TT(ES,tC)})):(Dm||tC)&&wq.push("translate("+Dm+r+tC+b)}
function pZ(u2,ES,Dm,tC){u2!==ES?(u2-ES>180?ES+=360:ES-u2>180&&(u2+=360),tC.push({i:Dm.push(Xi(Dm)+"rotate(",null,u)-2,x:TT(u2,ES)})):ES&&Dm.push(Xi(Dm)+"rotate("+ES+u)}
function jr(u2,ES,Dm,tC){u2!==ES?tC.push({i:Dm.push(Xi(Dm)+"skewX(",null,u)-2,x:TT(u2,ES)}):ES&&Dm.push(Xi(Dm)+"skewX("+ES+u)}
function Zv(u2,ES,Dm,tC,wq,Wx){u2!==Dm||ES!==tC?(wq=wq.push(Xi(wq)+"scale(",null,",",null,")"),Wx.push({i:wq-4,x:TT(u2,Dm)},{i:wq-2,x:TT(ES,tC)})):Dm===1&&tC===1||wq.push(Xi(wq)+"scale("+Dm+","+tC+")")}
return function(u2,ES){var Dm=[],tC=[];u2=J(u2);ES=J(ES);Bj(u2.translateX,u2.translateY,ES.translateX,ES.translateY,Dm,tC);pZ(u2.rotate,ES.rotate,Dm,tC);jr(u2.skewX,ES.skewX,Dm,tC);Zv(u2.scaleX,u2.scaleY,ES.scaleX,ES.scaleY,Dm,tC);u2=ES=null;return function(wq){for(var Wx=-1,iy=tC.length,qO;++Wx<iy;)Dm[(qO=tC[Wx]).i]=qO.x(wq);return Dm.join("")}}}
function FS(J){return function(r,b){var u=J((r=zN(r)).h,(b=zN(b)).h),Xi=Jw(r.s,b.s),Bj=Jw(r.l,b.l),pZ=Jw(r.opacity,b.opacity);return function(jr){r.h=u(jr);r.s=Xi(jr);r.l=Bj(jr);r.opacity=pZ(jr);return r+""}}}
function id(J){return function(r,b){var u=J((r=DD(r)).h,(b=DD(b)).h),Xi=Jw(r.c,b.c),Bj=Jw(r.l,b.l),pZ=Jw(r.opacity,b.opacity);return function(jr){r.h=u(jr);r.c=Xi(jr);r.l=Bj(jr);r.opacity=pZ(jr);return r+""}}}
function P_(J){return function u(b){function Xi(Bj,pZ){var jr=J((Bj=pg(Bj)).h,(pZ=pg(pZ)).h),Zv=Jw(Bj.s,pZ.s),u2=Jw(Bj.l,pZ.l),ES=Jw(Bj.opacity,pZ.opacity);return function(Dm){Bj.h=jr(Dm);Bj.s=Zv(Dm);Bj.l=u2(Math.pow(Dm,b));Bj.opacity=ES(Dm);return Bj+""}}
b=+b;Xi.gamma=u;return Xi}(1)}
function Gx(){return HS||(a6V(Cr6),HS=Yx.now()+hMp)}
function Cr6(){HS=0}
function vs(){this._call=this._time=this._next=null}
function GO(J,r,b){var u=new vs;u.restart(J,r,b);return u}
function ai(){HS=(Q4Z=Yx.now())+hMp;$A=Zz=0;try{Gx();++$A;for(var J=qoi,r;J;)(r=HS-J._time)>=0&&J._call.call(null,r),J=J._next;--$A}finally{$A=0;J=qoi;for(var b=Infinity;J;)if(J._call){b>J._time&&(b=J._time);var u=J;J=J._next}else r=J._next,J._next=null,J=u?u._next=r:qoi=r;Em=u;U2(b);HS=0}}
function htL(){var J=Yx.now(),r=J-Q4Z;r>1E3&&(hMp-=r,Q4Z=J)}
function U2(J){$A||(Zz&&(Zz=clearTimeout(Zz)),J-HS>24?(J<Infinity&&(Zz=setTimeout(ai,J-Yx.now()-hMp)),M7&&(M7=clearInterval(M7))):(M7||(Q4Z=Yx.now(),M7=setInterval(htL,1E3)),$A=1,a6V(ai)))}
function UmL(J,r,b){var u=new vs;r=r==null?0:+r;u.restart(function(Xi){u.stop();J(Xi+r)},r,b);
return u}
function WQv(J,r,b,u,Xi,Bj){var pZ=J.__transition;if(!pZ)J.__transition={};else if(b in pZ)return;vs9(J,b,{name:r,index:u,group:Xi,on:Oe$,tween:jxG,time:Bj.time,delay:Bj.delay,duration:Bj.duration,ease:Bj.ease,timer:null,state:0})}
function w06(J,r){J=wG(J,r);if(J.state>0)throw Error("te");return J}
function nz(J,r){J=wG(J,r);if(J.state>2)throw Error("ue");return J}
function wG(J,r){J=J.__transition;if(!J||!(J=J[r]))throw Error("ve");return J}
function vs9(J,r,b){function u(Zv){var u2,ES;if(b.state!==1)return Bj();for(tC in pZ){var Dm=pZ[tC];if(Dm.name===b.name){if(Dm.state===3)return UmL(u);Dm.state===4?(Dm.state=6,Dm.timer.stop(),Dm.on.call("interrupt",J,J.__data__,Dm.index,Dm.group),delete pZ[tC]):+tC<r&&(Dm.state=6,Dm.timer.stop(),delete pZ[tC])}}UmL(function(){b.state===3&&(b.state=4,b.timer.restart(Xi,b.delay,b.time),Xi(Zv))});
b.state=2;b.on.call("start",J,J.__data__,b.index,b.group);if(b.state===2){b.state=3;jr=Array(ES=b.tween.length);var tC=0;for(u2=-1;tC<ES;++tC)if(Dm=b.tween[tC].value.call(J,J.__data__,b.index,b.group))jr[++u2]=Dm;jr.length=u2+1}}
function Xi(Zv){Zv=Zv<b.duration?b.ease.call(null,Zv/b.duration):(b.timer.restart(Bj),b.state=5,1);for(var u2=-1,ES=jr.length;++u2<ES;)jr[u2].call(null,Zv);b.state===5&&(b.on.call("end",J,J.__data__,b.index,b.group),Bj())}
function Bj(){b.state=6;b.timer.stop();delete pZ[r];for(var Zv in pZ)return;delete J.__transition}
var pZ=J.__transition,jr;pZ[r]=b;b.timer=GO(function(Zv){b.state=1;b.timer.restart(u,b.delay,b.time);b.delay<=Zv&&u(Zv-b.delay)},0,b.time)}
function sxq(J,r){var b,u;return function(){var Xi=nz(this,J),Bj=Xi.tween;if(Bj!==b){u=b=Bj;Bj=0;for(var pZ=u.length;Bj<pZ;++Bj)if(u[Bj].name===r){u=u.slice();u.splice(Bj,1);break}}Xi.tween=u}}
function PUd(J,r,b){var u,Xi;if(typeof b!=="function")throw Error();return function(){var Bj=nz(this,J),pZ=Bj.tween;if(pZ!==u){Xi=(u=pZ).slice();pZ={name:r,value:b};for(var jr=0,Zv=Xi.length;jr<Zv;++jr)if(Xi[jr].name===r){Xi[jr]=pZ;break}jr===Zv&&Xi.push(pZ)}Bj.tween=Xi}}
function p06(J,r,b){var u=J._id;J.each(function(){var Xi=nz(this,u);(Xi.value||(Xi.value={}))[r]=b.apply(this,arguments)});
return function(Xi){return wG(Xi,u).value[r]}}
function uzL(J,r){var b;return(typeof r==="number"?TT:r instanceof pK?C0L:(b=pK(r))?(r=b,C0L):ei)(J,r)}
function osd(J){return function(){this.removeAttribute(J)}}
function rMD(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function K2i(J,r,b){var u,Xi;return function(){var Bj=this.getAttribute(J);return Bj===b?null:Bj===u?Xi:Xi=r(u=Bj,b)}}
function yMG(J,r,b){var u,Xi;return function(){var Bj=this.getAttributeNS(J.space,J.local);return Bj===b?null:Bj===u?Xi:Xi=r(u=Bj,b)}}
function JMe(J,r,b){var u,Xi,Bj;return function(){var pZ=b(this);if(pZ==null)return void this.removeAttribute(J);var jr=this.getAttribute(J);return jr===pZ?null:jr===u&&pZ===Xi?Bj:Bj=r(u=jr,Xi=pZ)}}
function cMD(J,r,b){var u,Xi,Bj;return function(){var pZ=b(this);if(pZ==null)return void this.removeAttributeNS(J.space,J.local);var jr=this.getAttributeNS(J.space,J.local);return jr===pZ?null:jr===u&&pZ===Xi?Bj:Bj=r(u=jr,Xi=pZ)}}
function S8$(J,r){function b(){var u=this,Xi=r.apply(u,arguments);return Xi&&function(Bj){u.setAttributeNS(J.space,J.local,Xi(Bj))}}
b._value=r;return b}
function zve(J,r){function b(){var u=this,Xi=r.apply(u,arguments);return Xi&&function(Bj){u.setAttribute(J,Xi(Bj))}}
b._value=r;return b}
function beq(J,r){return function(){w06(this,J).delay=+r.apply(this,arguments)}}
function evJ(J,r){return r=+r,function(){w06(this,J).delay=r}}
function Hei(J,r){return function(){nz(this,J).duration=+r.apply(this,arguments)}}
function nsb(J,r){return r=+r,function(){nz(this,J).duration=r}}
function ie$(J,r){if(typeof r!=="function")throw Error();return function(){nz(this,J).ease=r}}
function f04(J){return(J+"").trim().split(/^|\s+/).every(function(r){var b=r.indexOf(".");b>=0&&(r=r.slice(0,b));return!r||r==="start"})}
function L24(J,r,b){var u,Xi,Bj=f04(r)?w06:nz;return function(){var pZ=Bj(this,J),jr=pZ.on;if(jr!==u)(Xi=(u=jr).copy()).on(r,b);pZ.on=Xi}}
function tIJ(J){return function(){var r=this.parentNode,b;for(b in this.__transition)if(+b!==J)return;r&&r.removeChild(this)}}
function Gee(J,r){var b,u,Xi;return function(){var Bj=tL(this,J),pZ=(this.style.removeProperty(J),tL(this,J));return Bj===pZ?null:Bj===b&&pZ===u?Xi:Xi=r(b=Bj,u=pZ)}}
function a0T(J){return function(){this.style.removeProperty(J)}}
function UIP(J,r,b){var u,Xi;return function(){var Bj=tL(this,J);return Bj===b?null:Bj===u?Xi:Xi=r(u=Bj,b)}}
function uWq(J,r,b){var u,Xi,Bj;return function(){var pZ=tL(this,J),jr=b(this);jr==null&&(jr=(this.style.removeProperty(J),tL(this,J)));return pZ===jr?null:pZ===u&&jr===Xi?Bj:Bj=r(u=pZ,Xi=jr)}}
function CUe(J,r,b){function u(){var Xi=this,Bj=r.apply(Xi,arguments);return Bj&&function(pZ){Xi.style.setProperty(J,Bj(pZ),b)}}
u._value=r;return u}
function xIP(J){return function(){this.textContent=J}}
function Y8e(J){return function(){var r=J(this);this.textContent=r==null?"":r}}
function WG(J,r,b,u){this._groups=J;this._parents=r;this._name=b;this._id=u}
function mmr(J){return{type:J}}
function h0j(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function IKi(){}
function xmd(J,r){var b=new IKi;if(J instanceof IKi)J.each(function(pZ,jr){b.set(jr,pZ)});
else if(Array.isArray(J)){var u=-1,Xi=J.length,Bj;if(r==null)for(;++u<Xi;)b.set(u,J[u]);else for(;++u<Xi;)b.set(r(Bj=J[u],u,J),Bj)}else if(J)for(u in J)b.set(u,J[u]);return b}
function vTj(){}
function YjV(J){return function(r){for(var b={},u=0;u<J.length;u++)b[J[u]]=r[u]||"";return b}}
function ZeT(J,r){var b=YjV(J);return function(u,Xi){return r(b(u),Xi,J)}}
function EsP(J){var r=Object.create(null),b=[];J.forEach(function(u){for(var Xi in u)Xi in r||b.push(r[Xi]=Xi)});
return b}
function ZGV(J){function r(pZ,jr){function Zv(){if(Wx)return QHi;if(iy)return iy=!1,Ecd;var UI,aW=Dm,rU;if(pZ.charCodeAt(aW)===34){for(;Dm++<ES&&pZ.charCodeAt(Dm)!==34||pZ.charCodeAt(++Dm)===34;);(UI=Dm)>=ES?Wx=!0:(rU=pZ.charCodeAt(Dm++))===10?iy=!0:rU===13&&(iy=!0,pZ.charCodeAt(Dm)===10&&++Dm);return pZ.slice(aW+1,UI-1).replace(/""/g,'"')}for(;Dm<ES;){if((rU=pZ.charCodeAt(UI=Dm++))===10)iy=!0;else if(rU===13)iy=!0,pZ.charCodeAt(Dm)===10&&++Dm;else if(rU!==Bj)continue;return pZ.slice(aW,UI)}return Wx=
!0,pZ.slice(aW,ES)}
var u2=[],ES=pZ.length,Dm=0,tC=0,wq,Wx=ES<=0,iy=!1;pZ.charCodeAt(ES-1)===10&&--ES;for(pZ.charCodeAt(ES-1)===13&&--ES;(wq=Zv())!==QHi;){for(var qO=[];wq!==Ecd&&wq!==QHi;)qO.push(wq),wq=Zv();jr&&(qO=jr(qO,tC++))==null||u2.push(qO)}return u2}
function b(pZ){return pZ.map(u).join(J)}
function u(pZ){return pZ==null?"":Xi.test(pZ)?'"'+pZ.replace(/"/g,'""')+'"':pZ}
var Xi=new RegExp('["'+J+"\n\r]"),Bj=J.charCodeAt(0);return{parse:function(pZ,jr){var Zv,u2;pZ=r(pZ,function(ES,Dm){if(Zv)return Zv(ES,Dm-1);u2=ES;Zv=jr?ZeT(ES,jr):YjV(ES)});
pZ.columns=u2||[];return pZ},
parseRows:r,format:function(pZ,jr){jr==null&&(jr=EsP(pZ));return[jr.map(u).join(J)].concat(pZ.map(function(Zv){return jr.map(function(u2){return u(Zv[u2])}).join(J)})).join("\n")},
formatRows:function(pZ){return pZ.map(b).join("\n")}}}
function MsC(J){if(!J.ok)throw Error("we`"+J.status+"`"+J.statusText);return J.text()}
function MHV(J){return function(r,b,u){arguments.length===2&&typeof b==="function"&&(u=b,b=void 0);return fetch(r,b).then(MsC).then(function(Xi){return J(Xi,u)})}}
function dsz(J,r,b,u){if(isNaN(r)||isNaN(b))return J;var Xi,Bj=J._root;u={data:u};var pZ=J._x0,jr=J._y0,Zv=J._x1,u2=J._y1,ES,Dm,tC,wq,Wx;if(!Bj)return J._root=u,J;for(;Bj.length;)if((tC=r>=(ES=(pZ+Zv)/2))?pZ=ES:Zv=ES,(wq=b>=(Dm=(jr+u2)/2))?jr=Dm:u2=Dm,Xi=Bj,!(Bj=Bj[Wx=wq<<1|tC]))return Xi[Wx]=u,J;var iy=+J._x.call(null,Bj.data);var qO=+J._y.call(null,Bj.data);if(r===iy&&b===qO)return u.next=Bj,Xi?Xi[Wx]=u:J._root=u,J;do Xi=Xi?Xi[Wx]=Array(4):J._root=Array(4),(tC=r>=(ES=(pZ+Zv)/2))?pZ=ES:Zv=ES,(wq=
b>=(Dm=(jr+u2)/2))?jr=Dm:u2=Dm;while((Wx=wq<<1|tC)===(tC=(qO>=Dm)<<1|iy>=ES));return Xi[tC]=Bj,Xi[Wx]=u,J}
function FZ(J,r,b,u,Xi){this.node=J;this.x0=r;this.y0=b;this.x1=u;this.y1=Xi}
function dcJ(J){return J[0]}
function NyD(J){return J[1]}
function qji(J,r,b,u,Xi,Bj){this._x=J;this._y=r;this._x0=b;this._y0=u;this._x1=Xi;this._y1=Bj;this._root=void 0}
function N9I(J){for(var r={data:J.data},b=r;J=J.next;)b=b.next={data:J.data};return r}
function OuZ(J,r){if((r=(J=r?J.toExponential(r-1):J.toExponential()).indexOf("e"))<0)return null;var b=J.slice(0,r);return[b.length>1?b[0]+b.slice(2):b,+J.slice(r+1)]}
function Rcd(J){return J=OuZ(Math.abs(J)),J?J[1]:NaN}
function XXY(J,r){return function(b,u){for(var Xi=b.length,Bj=[],pZ=0,jr=J[0],Zv=0;Xi>0&&jr>0;){Zv+jr+1>u&&(jr=Math.max(1,u-Zv));Bj.push(b.substring(Xi-=jr,Xi+jr));if((Zv+=jr+1)>u)break;jr=J[pZ=(pZ+1)%J.length]}return Bj.reverse().join(r)}}
function Fk9(J){return function(r){return r.replace(/[0-9]/g,function(b){return J[+b]})}}
function I6j(J){return new vcA(J)}
function vcA(J){if(!(r=AYr.exec(J)))throw Error("xe`"+J);var r;this.fill=r[1]||" ";this.align=r[2]||">";this.sign=r[3]||"-";this.symbol=r[4]||"";this.zero=!!r[5];this.width=r[6]&&+r[6];this.comma=!!r[7];this.precision=r[8]&&+r[8].slice(1);this.trim=!!r[9];this.type=r[10]||""}
function RKV(J,r){r=OuZ(J,r);if(!r)return J+"";J=r[0];r=r[1];return r<0?"0."+Array(-r).join("0")+J:J.length>r+1?J.slice(0,r+1)+"."+J.slice(r+1):J+Array(r-J.length+2).join("0")}
function Xqd(J){return J}
function VsC(J){function r(jr){function Zv(Gh){var T2=rU,y9=g5,DG,ds;if(aW==="c")y9=Us(Gh)+y9,Gh="";else{Gh=+Gh;var mG=Gh<0;Gh=Us(Math.abs(Gh),qO);if(UI){var Uo=Gh.length,sD=1,u7=-1;a:for(;sD<Uo;++sD)switch(Gh[sD]){case ".":u7=DG=sD;break;case "0":u7===0&&(u7=sD);DG=sD;break;default:if(!+Gh[sD])break a;u7>0&&(u7=0)}Gh=u7>0?Gh.slice(0,u7)+Gh.slice(DG+1):Gh}mG&&+Gh===0&&(mG=!1);T2=(mG?Dm==="("?Dm:"-":Dm==="-"||Dm==="("?"":Dm)+T2;y9=(aW==="s"?F6L[8+A6z/3]:"")+y9+(mG&&Dm==="("?")":"");if(k4)for(mG=-1,
DG=Gh.length;++mG<DG;)if(ds=Gh.charCodeAt(mG),48>ds||ds>57){y9=(ds===46?Xi+Gh.slice(mG+1):Gh.slice(mG))+y9;Gh=Gh.slice(0,mG);break}}iy&&!wq&&(Gh=b(Gh,Infinity));ds=T2.length+Gh.length+y9.length;mG=ds<Wx?Array(Wx-ds+1).join(u2):"";iy&&wq&&(Gh=b(mG+Gh,mG.length?Wx-y9.length:Infinity),mG="");switch(ES){case "<":Gh=T2+Gh+y9+mG;break;case "=":Gh=T2+mG+Gh+y9;break;case "^":Gh=mG.slice(0,ds=mG.length>>1)+T2+Gh+y9+mG.slice(ds);break;default:Gh=mG+T2+Gh+y9}return Bj(Gh)}
jr=I6j(jr);var u2=jr.fill,ES=jr.align,Dm=jr.sign,tC=jr.symbol,wq=jr.zero,Wx=jr.width,iy=jr.comma,qO=jr.precision,UI=jr.trim,aW=jr.type;aW==="n"?(iy=!0,aW="g"):VHL[aW]||(qO==null&&(qO=12),UI=!0,aW="g");if(wq||u2==="0"&&ES==="=")wq=!0,u2="0",ES="=";var rU=tC==="$"?u[0]:tC==="#"&&/[boxX]/.test(aW)?"0"+aW.toLowerCase():"",g5=tC==="$"?u[1]:/[%p]/.test(aW)?pZ:"",Us=VHL[aW],k4=/[defgprs%]/.test(aW);qO=qO==null?6:/[gprs]/.test(aW)?Math.max(1,Math.min(21,qO)):Math.max(0,Math.min(20,qO));Zv.toString=function(){return jr+
""};
return Zv}
var b=J.grouping&&J.thousands?XXY(J.grouping,J.thousands):Xqd,u=J.currency,Xi=J.decimal,Bj=J.numerals?Fk9(J.numerals):Xqd,pZ=J.percent||"%";return{format:r,formatPrefix:function(jr,Zv){var u2=r((jr=I6j(jr),jr.type="f",jr));jr=Math.max(-8,Math.min(8,Math.floor(Rcd(Zv)/3)))*3;var ES=Math.pow(10,-jr),Dm=F6L[8+jr/3];return function(tC){return u2(ES*tC)+Dm}}}}
function aX(){this.reset()}
function l1d(J,r,b){var u=J.s=r+b,Xi=u-r;J.t=r-(u-Xi)+(b-Xi)}
function j4j(J){return J>1?xD:J<-1?-xD:Math.asin(J)}
function ljY(){}
function $sI(J){var r=J[0];J=J[1];var b=YD(J);return[b*YD(r),b*zL(r),zL(J)]}
function B9o(J,r){return[J[1]*r[2]-J[2]*r[1],J[2]*r[0]-J[0]*r[2],J[0]*r[1]-J[1]*r[0]]}
function kQV(J){var r=s4Z(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=r;J[1]/=r;J[2]/=r}
function $cr(){var J=[],r;return{point:function(b,u){r.push([b,u])},
lineStart:function(){J.push(r=[])},
lineEnd:ljY,rejoin:function(){J.length>1&&J.push(J.pop().concat(J.shift()))},
result:function(){var b=J;J=[];r=null;return b}}}
function Pdj(J,r,b,u){this.x=J;this.z=r;this.o=b;this.e=u;this.v=!1;this.n=this.p=null}
function Byd(J,r,b,u,Xi){var Bj=[],pZ=[];J.forEach(function(Dm){if(!((tC=Dm.length-1)<=0)){var tC,wq=Dm[0],Wx=Dm[tC],iy=wq;if(wQ(iy[0]-Wx[0])<1E-6&&wQ(iy[1]-Wx[1])<1E-6){Xi.lineStart();for(jr=0;jr<tC;++jr)Xi.point((wq=Dm[jr])[0],wq[1]);Xi.lineEnd()}else Bj.push(tC=new Pdj(wq,Dm,null,!0)),pZ.push(tC.o=new Pdj(wq,null,tC,!1)),Bj.push(tC=new Pdj(Wx,Dm,null,!1)),pZ.push(tC.o=new Pdj(Wx,null,tC,!0))}});
if(Bj.length){pZ.sort(r);T9V(Bj);T9V(pZ);var jr=0;for(J=pZ.length;jr<J;++jr)pZ[jr].e=b=!b;b=Bj[0];for(var Zv;;){for(var u2=b,ES=!0;u2.v;)if((u2=u2.n)===b)return;r=u2.z;Xi.lineStart();do{u2.v=u2.o.v=!0;if(u2.e){if(ES)for(jr=0,J=r.length;jr<J;++jr)Xi.point((Zv=r[jr])[0],Zv[1]);else u(u2.x,u2.n.x,1,Xi);u2=u2.n}else{if(ES)for(r=u2.p.z,jr=r.length-1;jr>=0;--jr)Xi.point((Zv=r[jr])[0],Zv[1]);else u(u2.x,u2.p.x,-1,Xi);u2=u2.p}u2=u2.o;r=u2.z;ES=!ES}while(!u2.v);Xi.lineEnd()}}}
function T9V(J){if(r=J.length){for(var r,b=0,u=J[0],Xi;++b<r;)u.n=Xi=J[b],Xi.p=u,u=Xi;u.n=Xi=J[0];Xi.p=u}}
function kUd(J){return J.length>1}
function TyT(J,r){return((J=J.x)[0]<0?J[1]-xD-1E-6:xD-J[1])-((r=r.x)[0]<0?r[1]-xD-1E-6:xD-r[1])}
function OG2(){}
function Dsz(J){return function(r,b){var u=YD(r),Xi=YD(b);u=J(u*Xi);return[u*Xi*zL(r),u*zL(b)]}}
function dg(J){return function(r,b){var u=s4Z(r*r+b*b),Xi=J(u),Bj=zL(Xi);Xi=YD(Xi);return[g3J(r*Bj,u*Xi),j4j(u&&b*Bj/u)]}}
function DcD(J){var r=0,b=J.children,u=b&&b.length;if(u)for(;--u>=0;)r+=b[u].value;else r=1;J.value=r}
function W6g(J,r){var b=new N7(J);J=+J.value&&(b.value=J.value);var u,Xi=[b],Bj,pZ,jr,Zv;for(r==null&&(r=g9d);u=Xi.pop();)if(J&&(u.value=+u.data.value),(pZ=r(u.data))&&(Zv=pZ.length))for(u.children=Array(Zv),jr=Zv-1;jr>=0;--jr)Xi.push(Bj=u.children[jr]=new N7(pZ[jr])),Bj.parent=u,Bj.depth=u.depth+1;return b.eachBefore(WkJ)}
function g9d(J){return J.children}
function wX4(J){J.data=J.data.data}
function WkJ(J){var r=0;do J.height=r;while((J=J.parent)&&J.height<++r)}
function N7(J){this.data=J;this.depth=this.height=0;this.parent=null}
function In(J,r,b,u){function Xi(Bj){return J(Bj=new Date(+Bj)),Bj}
Xi.floor=Xi;Xi.ceil=function(Bj){return J(Bj=new Date(Bj-1)),r(Bj,1),J(Bj),Bj};
Xi.round=function(Bj){var pZ=Xi(Bj),jr=Xi.ceil(Bj);return Bj-pZ<jr-Bj?pZ:jr};
Xi.offset=function(Bj,pZ){return r(Bj=new Date(+Bj),pZ==null?1:Math.floor(pZ)),Bj};
Xi.range=function(Bj,pZ,jr){var Zv=[],u2;Bj=Xi.ceil(Bj);jr=jr==null?1:Math.floor(jr);if(!(Bj<pZ&&jr>0))return Zv;do Zv.push(u2=new Date(+Bj)),r(Bj,jr),J(Bj);while(u2<Bj&&Bj<pZ);return Zv};
Xi.filter=function(Bj){return In(function(pZ){if(pZ>=pZ)for(;J(pZ),!Bj(pZ);)pZ.setTime(pZ-1)},function(pZ,jr){if(pZ>=pZ)if(jr<0)for(;++jr<=0;)for(;r(pZ,-1),!Bj(pZ););
else for(;--jr>=0;)for(;r(pZ,1),!Bj(pZ););})};
b&&(Xi.count=function(Bj,pZ){jHL.setTime(+Bj);sHi.setTime(+pZ);J(jHL);J(sHi);return Math.floor(b(jHL,sHi))},Xi.every=function(Bj){Bj=Math.floor(Bj);
return isFinite(Bj)&&Bj>0?Bj>1?Xi.filter(u?function(pZ){return u(pZ)%Bj===0}:function(pZ){return Xi.count(0,pZ)%Bj===0}):Xi:null});
return Xi}
function iR(J){return In(function(r){r.setDate(r.getDate()-(r.getDay()+7-J)%7);r.setHours(0,0,0,0)},function(r,b){r.setDate(r.getDate()+b*7)},function(r,b){return(b-r-(b.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/6048E5})}
function fz(J){return In(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-J)%7);r.setUTCHours(0,0,0,0)},function(r,b){r.setUTCDate(r.getUTCDate()+b*7)},function(r,b){return(b-r)/6048E5})}
function pXq(J){if(0<=J.y&&J.y<100){var r=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);r.setFullYear(J.y);return r}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}
function oTq(J){if(0<=J.y&&J.y<100){var r=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));r.setUTCFullYear(J.y);return r}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}
function R$(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}
function mcq(J){function r(y9,DG){return function(ds){var mG=[],Uo=-1,sD=0,u7=y9.length,wK,JO;for(ds instanceof Date||(ds=new Date(+ds));++Uo<u7;)if(y9.charCodeAt(Uo)===37){mG.push(y9.slice(sD,Uo));(sD=wqL[wK=y9.charAt(++Uo)])!=null?wK=y9.charAt(++Uo):sD=wK==="e"?" ":"0";if(JO=DG[wK])wK=JO(ds,sD);mG.push(wK);sD=Uo+1}mG.push(y9.slice(sD,Uo));return mG.join("")}}
function b(y9,DG){return function(ds){var mG=R$(1900);if(u(mG,y9,ds,0)!=ds.length)return null;if("Q"in mG)return new Date(mG.Q);"p"in mG&&(mG.H=mG.H%12+mG.p*12);if("V"in mG){if(mG.V<1||mG.V>53)return null;"w"in mG||(mG.w=1);if("Z"in mG){ds=oTq(R$(mG.y));var Uo=ds.getUTCDay();ds=Uo>4||Uo===0?P0Z.ceil(ds):P0Z(ds);ds=pqg.offset(ds,(mG.V-1)*7);mG.y=ds.getUTCFullYear();mG.m=ds.getUTCMonth();mG.d=ds.getUTCDate()+(mG.w+6)%7}else ds=DG(R$(mG.y)),Uo=ds.getDay(),ds=Uo>4||Uo===0?ocr.ceil(ds):ocr(ds),ds=msV.offset(ds,
(mG.V-1)*7),mG.y=ds.getFullYear(),mG.m=ds.getMonth(),mG.d=ds.getDate()+(mG.w+6)%7}else if("W"in mG||"U"in mG)"w"in mG||(mG.w="u"in mG?mG.u%7:"W"in mG?1:0),Uo="Z"in mG?oTq(R$(mG.y)).getUTCDay():DG(R$(mG.y)).getDay(),mG.m=0,mG.d="W"in mG?(mG.w+6)%7+mG.W*7-(Uo+5)%7:mG.w+mG.U*7-(Uo+6)%7;return"Z"in mG?(mG.H+=mG.Z/100|0,mG.M+=mG.Z%100,oTq(mG)):DG(mG)}}
function u(y9,DG,ds,mG){for(var Uo=0,sD=DG.length,u7=ds.length,wK;Uo<sD;){if(mG>=u7)return-1;wK=DG.charCodeAt(Uo++);if(wK===37){if(wK=DG.charAt(Uo++),wK=T2[wK in wqL?DG.charAt(Uo++):wK],!wK||(mG=wK(y9,ds,mG))<0)return-1}else if(wK!=ds.charCodeAt(mG++))return-1}return mG}
var Xi=J.dateTime,Bj=J.date,pZ=J.time,jr=J.periods,Zv=J.days,u2=J.shortDays,ES=J.months,Dm=J.shortMonths,tC=XF(jr),wq=FF(jr),Wx=XF(Zv),iy=FF(Zv),qO=XF(u2),UI=FF(u2),aW=XF(ES),rU=FF(ES),g5=XF(Dm),Us=FF(Dm),k4={a:function(y9){return u2[y9.getDay()]},
A:function(y9){return Zv[y9.getDay()]},
b:function(y9){return Dm[y9.getMonth()]},
B:function(y9){return ES[y9.getMonth()]},
c:null,d:hK3,e:hK3,f:hcb,H:Qe$,I:qF$,j:Ijd,L:Quz,m:v9e,M:O2J,p:function(y9){return jr[+(y9.getHours()>=12)]},
Q:qPe,s:I1C,S:jer,u:seD,U:Pmi,V:o99,w:rYq,W:Kkd,x:null,X:null,y:yYD,Y:JYb,Z:cY$,"%":v3C},Gh={a:function(y9){return u2[y9.getUTCDay()]},
A:function(y9){return Zv[y9.getUTCDay()]},
b:function(y9){return Dm[y9.getUTCMonth()]},
B:function(y9){return ES[y9.getUTCMonth()]},
c:null,d:O9z,e:O9z,f:SFD,H:zc4,I:b2d,j:ec9,L:jut,m:H2q,M:n9T,p:function(y9){return jr[+(y9.getUTCHours()>=12)]},
Q:qPe,s:I1C,S:i2Y,u:fjY,U:LkC,V:ts4,w:GUD,W:aj4,x:null,X:null,y:Ucd,Y:u7J,Z:Cm$,"%":v3C},T2={a:function(y9,DG,ds){return(DG=qO.exec(DG.slice(ds)))?(y9.w=UI[DG[0].toLowerCase()],ds+DG[0].length):-1},
A:function(y9,DG,ds){return(DG=Wx.exec(DG.slice(ds)))?(y9.w=iy[DG[0].toLowerCase()],ds+DG[0].length):-1},
b:function(y9,DG,ds){return(DG=g5.exec(DG.slice(ds)))?(y9.m=Us[DG[0].toLowerCase()],ds+DG[0].length):-1},
B:function(y9,DG,ds){return(DG=aW.exec(DG.slice(ds)))?(y9.m=rU[DG[0].toLowerCase()],ds+DG[0].length):-1},
c:function(y9,DG,ds){return u(y9,Xi,DG,ds)},
d:suI,e:suI,f:xcb,H:P8V,I:P8V,j:YFi,L:Z2T,m:E9b,M:M8T,p:function(y9,DG,ds){return(DG=tC.exec(DG.slice(ds)))?(y9.p=wq[DG[0].toLowerCase()],ds+DG[0].length):-1},
Q:d2Y,s:NGT,S:Rw$,u:Xv4,U:F8i,V:AWY,w:V8G,W:lVT,x:function(y9,DG,ds){return u(y9,Bj,DG,ds)},
X:function(y9,DG,ds){return u(y9,pZ,DG,ds)},
y:$2d,Y:BG4,Z:k_d,"%":TGY};k4.x=r(Bj,k4);k4.X=r(pZ,k4);k4.c=r(Xi,k4);Gh.x=r(Bj,Gh);Gh.X=r(pZ,Gh);Gh.c=r(Xi,Gh);return{format:function(y9){var DG=r(y9,k4);DG.toString=function(){return y9};
return DG},
parse:function(y9){var DG=b(y9,pXq);DG.toString=function(){return y9};
return DG},
utcFormat:function(y9){var DG=r(y9,Gh);DG.toString=function(){return y9};
return DG},
utcParse:function(y9){var DG=b(y9,oTq);DG.toString=function(){return y9};
return DG}}}
function pu(J,r,b){var u=J<0?"-":"";J=(u?-J:J)+"";var Xi=J.length;return u+(Xi<b?Array(b-Xi+1).join(r)+J:J)}
function D2P(J){return J.replace(g5Y,"\\$&")}
function XF(J){return new RegExp("^(?:"+J.map(D2P).join("|")+")","i")}
function FF(J){for(var r={},b=-1,u=J.length;++b<u;)r[J[b].toLowerCase()]=b;return r}
function V8G(J,r,b){return(r=Kb.exec(r.slice(b,b+1)))?(J.w=+r[0],b+r[0].length):-1}
function Xv4(J,r,b){return(r=Kb.exec(r.slice(b,b+1)))?(J.u=+r[0],b+r[0].length):-1}
function F8i(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.U=+r[0],b+r[0].length):-1}
function AWY(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.V=+r[0],b+r[0].length):-1}
function lVT(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.W=+r[0],b+r[0].length):-1}
function BG4(J,r,b){return(r=Kb.exec(r.slice(b,b+4)))?(J.y=+r[0],b+r[0].length):-1}
function $2d(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.y=+r[0]+(+r[0]>68?1900:2E3),b+r[0].length):-1}
function k_d(J,r,b){return(r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(b,b+6)))?(J.Z=r[1]?0:-(r[2]+(r[3]||"00")),b+r[0].length):-1}
function E9b(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.m=r[0]-1,b+r[0].length):-1}
function suI(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.d=+r[0],b+r[0].length):-1}
function YFi(J,r,b){return(r=Kb.exec(r.slice(b,b+3)))?(J.m=0,J.d=+r[0],b+r[0].length):-1}
function P8V(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.H=+r[0],b+r[0].length):-1}
function M8T(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.M=+r[0],b+r[0].length):-1}
function Rw$(J,r,b){return(r=Kb.exec(r.slice(b,b+2)))?(J.S=+r[0],b+r[0].length):-1}
function Z2T(J,r,b){return(r=Kb.exec(r.slice(b,b+3)))?(J.L=+r[0],b+r[0].length):-1}
function xcb(J,r,b){return(r=Kb.exec(r.slice(b,b+6)))?(J.L=Math.floor(r[0]/1E3),b+r[0].length):-1}
function TGY(J,r,b){return(J=W8q.exec(r.slice(b,b+1)))?b+J[0].length:-1}
function d2Y(J,r,b){return(r=Kb.exec(r.slice(b)))?(J.Q=+r[0],b+r[0].length):-1}
function NGT(J,r,b){return(r=Kb.exec(r.slice(b)))?(J.Q=+r[0]*1E3,b+r[0].length):-1}
function hK3(J,r){return pu(J.getDate(),r,2)}
function Qe$(J,r){return pu(J.getHours(),r,2)}
function qF$(J,r){return pu(J.getHours()%12||12,r,2)}
function Ijd(J,r){return pu(1+msV.count(B4(J),J),r,3)}
function Quz(J,r){return pu(J.getMilliseconds(),r,3)}
function hcb(J,r){return Quz(J,r)+"000"}
function v9e(J,r){return pu(J.getMonth()+1,r,2)}
function O2J(J,r){return pu(J.getMinutes(),r,2)}
function jer(J,r){return pu(J.getSeconds(),r,2)}
function seD(J){J=J.getDay();return J===0?7:J}
function Pmi(J,r){return pu(wvY.count(B4(J),J),r,2)}
function o99(J,r){var b=J.getDay();J=b>=4||b===0?rOi(J):rOi.ceil(J);return pu(rOi.count(B4(J),J)+(B4(J).getDay()===4),r,2)}
function rYq(J){return J.getDay()}
function Kkd(J,r){return pu(ocr.count(B4(J),J),r,2)}
function yYD(J,r){return pu(J.getFullYear()%100,r,2)}
function JYb(J,r){return pu(J.getFullYear()%1E4,r,4)}
function cY$(J){J=J.getTimezoneOffset();return(J>0?"-":(J*=-1,"+"))+pu(J/60|0,"0",2)+pu(J%60,"0",2)}
function O9z(J,r){return pu(J.getUTCDate(),r,2)}
function zc4(J,r){return pu(J.getUTCHours(),r,2)}
function b2d(J,r){return pu(J.getUTCHours()%12||12,r,2)}
function ec9(J,r){return pu(1+pqg.count(kA(J),J),r,3)}
function jut(J,r){return pu(J.getUTCMilliseconds(),r,3)}
function SFD(J,r){return jut(J,r)+"000"}
function H2q(J,r){return pu(J.getUTCMonth()+1,r,2)}
function n9T(J,r){return pu(J.getUTCMinutes(),r,2)}
function i2Y(J,r){return pu(J.getUTCSeconds(),r,2)}
function fjY(J){J=J.getUTCDay();return J===0?7:J}
function LkC(J,r){return pu(pv$.count(kA(J),J),r,2)}
function ts4(J,r){var b=J.getUTCDay();J=b>=4||b===0?KQi(J):KQi.ceil(J);return pu(KQi.count(kA(J),J)+(kA(J).getUTCDay()===4),r,2)}
function GUD(J){return J.getUTCDay()}
function aj4(J,r){return pu(P0Z.count(kA(J),J),r,2)}
function Ucd(J,r){return pu(J.getUTCFullYear()%100,r,2)}
function u7J(J,r){return pu(J.getUTCFullYear()%1E4,r,4)}
function Cm$(){return"+0000"}
function v3C(){return"%"}
function qPe(J){return+J}
function I1C(J){return Math.floor(+J/1E3)}
function AS(J){for(var r=J.length/6|0,b=Array(r),u=0;u<r;)b[u]="#"+J.slice(u*6,++u*6);return b}
function ud(J){return m2$(J[J.length-1])}
function rli(J){var r=J.length;return function(b){return J[Math.max(0,Math.min(r-1,Math.floor(b*r)))]}}
function o3o(J){this._context=J}
function r6V(J){this._curve=J}
function K6L(J,r,b){var u=J._x1-J._x0;r-=J._x1;var Xi=(J._y1-J._y0)/(u||r<0&&-0);J=(b-J._y1)/(r||u<0&&-0);return((Xi<0?-1:1)+(J<0?-1:1))*Math.min(Math.abs(Xi),Math.abs(J),.5*Math.abs((Xi*r+J*u)/(u+r)))||0}
function y6V(J,r){var b=J._x1-J._x0;return b?(3*(J._y1-J._y0)/b-r)/2:r}
function yOj(J,r,b){var u=J._x0,Xi=J._x1,Bj=J._y1,pZ=(Xi-u)/3;J._context.bezierCurveTo(u+pZ,J._y0+pZ*r,Xi-pZ,Bj-pZ*b,Xi,Bj)}
function JOS(J){this._context=J}
function J63(J){this._context=J}
function Ag(J,r,b){this.k=J;this.x=r;this.y=b}
(function(J){J.length===1&&(J=d(J));return{left:function(r,b,u,Xi){u==null&&(u=0);Xi==null&&(Xi=r.length);for(;u<Xi;){var Bj=u+Xi>>>1;J(r[Bj],b)<0?u=Bj+1:Xi=Bj}return u},
right:function(r,b,u,Xi){u==null&&(u=0);Xi==null&&(Xi=r.length);for(;u<Xi;){var Bj=u+Xi>>>1;J(r[Bj],b)>0?Xi=Bj:u=Bj+1}return u}}})(M);
var ker={value:function(){}};
R.prototype=N.prototype={constructor:R,on:function(J,r){var b=this._,u=X(J+"",b),Xi,Bj=-1,pZ=u.length;if(arguments.length<2)for(;++Bj<pZ;){var jr;if(jr=Xi=(J=u[Bj]).type){a:{jr=b[Xi];for(var Zv=0,u2=jr.length;Zv<u2;++Zv)if((Xi=jr[Zv]).name===J.name){Xi=Xi.value;break a}Xi=void 0}jr=Xi}if(jr)return Xi}else{if(r!=null&&typeof r!=="function")throw Error("ye`"+r);for(;++Bj<pZ;)if(Xi=(J=u[Bj]).type)b[Xi]=A(b[Xi],J.name,r);else if(r==null)for(Xi in b)b[Xi]=A(b[Xi],J.name,null);return this}},
copy:function(){var J={},r=this._,b;for(b in r)J[b]=r[b].slice();return new R(J)},
call:function(J,r){if((Xi=arguments.length-2)>0)for(var b=Array(Xi),u=0,Xi,Bj;u<Xi;++u)b[u]=arguments[u+2];if(!this._.hasOwnProperty(J))throw Error("se`"+J);Bj=this._[J];u=0;for(Xi=Bj.length;u<Xi;++u)Bj[u].value.apply(r,b)},
apply:function(J,r,b){if(!this._.hasOwnProperty(J))throw Error("se`"+J);J=this._[J];for(var u=0,Xi=J.length;u<Xi;++u)J[u].value.apply(r,b)}};
var CQ={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/"},c6V=function(J){return function(){return this.matches(J)}};
if(typeof document!=="undefined"){var Ve=document.documentElement;if(!Ve.matches){var hwT=Ve.webkitMatchesSelector||Ve.msMatchesSelector||Ve.mozMatchesSelector||Ve.oMatchesSelector;c6V=function(J){return function(){return hwT.call(this,J)}}}}var SPd=c6V;
I.prototype={constructor:I,appendChild:function(J){return this._parent.insertBefore(J,this._next)},
insertBefore:function(J,r){return this._parent.insertBefore(J,r)},
querySelector:function(J){return this._parent.querySelector(J)},
querySelectorAll:function(J){return this._parent.querySelectorAll(J)}};
var e0I={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(e0I={mouseenter:"mouseover",mouseleave:"mouseout"}));var Tld=[null];WV.prototype=V9.prototype={constructor:WV,select:function(J){typeof J!=="function"&&(J=p(J));for(var r=this._groups,b=r.length,u=Array(b),Xi=0;Xi<b;++Xi)for(var Bj=r[Xi],pZ=Bj.length,jr=u[Xi]=Array(pZ),Zv,u2,ES=0;ES<pZ;++ES)(Zv=Bj[ES])&&(u2=J.call(Zv,Zv.__data__,ES,Bj))&&("__data__"in Zv&&(u2.__data__=Zv.__data__),jr[ES]=u2);return new WV(u,this._parents)},
filter:function(J){typeof J!=="function"&&(J=SPd(J));for(var r=this._groups,b=r.length,u=Array(b),Xi=0;Xi<b;++Xi)for(var Bj=r[Xi],pZ=Bj.length,jr=u[Xi]=[],Zv,u2=0;u2<pZ;++u2)(Zv=Bj[u2])&&J.call(Zv,Zv.__data__,u2,Bj)&&jr.push(Zv);return new WV(u,this._parents)},
data:function(J,r){if(!J)return wq=Array(this.size()),u2=-1,this.each(function(aW){wq[++u2]=aW}),wq;
var b=r?c:y,u=this._parents,Xi=this._groups;typeof J!=="function"&&(J=O(J));for(var Bj=Xi.length,pZ=Array(Bj),jr=Array(Bj),Zv=Array(Bj),u2=0;u2<Bj;++u2){var ES=u[u2],Dm=Xi[u2],tC=Dm.length,wq=J.call(ES,ES&&ES.__data__,u2,u),Wx=wq.length,iy=jr[u2]=Array(Wx),qO=pZ[u2]=Array(Wx);tC=Zv[u2]=Array(tC);b(ES,Dm,iy,qO,tC,wq,r);Dm=ES=0;for(var UI;ES<Wx;++ES)if(tC=iy[ES]){for(ES>=Dm&&(Dm=ES+1);!(UI=qO[Dm])&&++Dm<Wx;);tC._next=UI||null}}pZ=new WV(pZ,u);pZ._enter=jr;pZ._exit=Zv;return pZ},
exit:function(){return new WV(this._exit||this._groups.map(m),this._parents)},
merge:function(J){var r=this._groups;J=J._groups;for(var b=r.length,u=Math.min(b,J.length),Xi=Array(b),Bj=0;Bj<u;++Bj)for(var pZ=r[Bj],jr=J[Bj],Zv=pZ.length,u2=Xi[Bj]=Array(Zv),ES,Dm=0;Dm<Zv;++Dm)if(ES=pZ[Dm]||jr[Dm])u2[Dm]=ES;for(;Bj<b;++Bj)Xi[Bj]=r[Bj];return new WV(Xi,this._parents)},
order:function(){for(var J=this._groups,r=-1,b=J.length;++r<b;)for(var u=J[r],Xi=u.length-1,Bj=u[Xi],pZ;--Xi>=0;)if(pZ=u[Xi])Bj&&Bj!==pZ.nextSibling&&Bj.parentNode.insertBefore(pZ,Bj),Bj=pZ;return this},
sort:function(J){function r(Dm,tC){return Dm&&tC?J(Dm.__data__,tC.__data__):!Dm-!tC}
J||(J=e);for(var b=this._groups,u=b.length,Xi=Array(u),Bj=0;Bj<u;++Bj){for(var pZ=b[Bj],jr=pZ.length,Zv=Xi[Bj]=Array(jr),u2,ES=0;ES<jr;++ES)if(u2=pZ[ES])Zv[ES]=u2;Zv.sort(r)}return(new WV(Xi,this._parents)).order()},
call:function(){var J=arguments[0];arguments[0]=this;J.apply(null,arguments);return this},
nodes:function(){var J=Array(this.size()),r=-1;this.each(function(){J[++r]=this});
return J},
node:function(){for(var J=this._groups,r=0,b=J.length;r<b;++r)for(var u=J[r],Xi=0,Bj=u.length;Xi<Bj;++Xi){var pZ=u[Xi];if(pZ)return pZ}return null},
size:function(){var J=0;this.each(function(){++J});
return J},
empty:function(){return!this.node()},
each:function(J){for(var r=this._groups,b=0,u=r.length;b<u;++b)for(var Xi=r[b],Bj=0,pZ=Xi.length,jr;Bj<pZ;++Bj)(jr=Xi[Bj])&&J.call(jr,jr.__data__,Bj,Xi);return this},
attr:function(J,r){var b=l(J);if(arguments.length<2){var u=this.node();return b.local?u.getAttributeNS(b.space,b.local):u.getAttribute(b)}return this.each((r==null?b.local?C:t:typeof r==="function"?b.local?$i:Y:b.local?Fi:U)(b,r))},
style:function(J,r,b){return arguments.length>1?this.each((r==null?vj:typeof r==="function"?sS:Pj)(J,r,b==null?"":b)):tL(this.node(),J)},
property:function(J,r){return arguments.length>1?this.each((r==null?b2:typeof r==="function"?LZ:Hj)(J,r)):this.node()[J]},
text:function(J){return arguments.length?this.each(J==null?w3:(typeof J==="function"?jJ:XY)(J)):this.node().textContent},
html:function(J){return arguments.length?this.each(J==null?Ne:(typeof J==="function"?oI:Vz)(J)):this.node().innerHTML},
append:function(J){var r=typeof J==="function"?J:W(J);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},
insert:function(J,r){var b=typeof J==="function"?J:W(J),u=r==null?$d:typeof r==="function"?r:p(r);return this.select(function(){return this.insertBefore(b.apply(this,arguments),u.apply(this,arguments)||null)})},
remove:function(){return this.each(CJ)},
clone:function(J){return this.select(J?Vq:xd)},
datum:function(J){return arguments.length?this.property("__data__",J):this.node().__data__},
on:function(J,r,b){var u=M9(J+""),Xi=u.length,Bj;if(arguments.length<2){var pZ=this.node().__on;if(pZ)for(var jr=0,Zv=pZ.length,u2;jr<Zv;++jr){var ES=0;for(u2=pZ[jr];ES<Xi;++ES)if((Bj=u[ES]).type===u2.type&&Bj.name===u2.name)return u2.value}}else{pZ=r?UV:OV;b==null&&(b=!1);for(ES=0;ES<Xi;++ES)this.each(pZ(u[ES],r,b));return this}},
dispatch:function(J,r){return this.each((typeof r==="function"?fZ:BV)(J,r))}};
var DID=0;Qz.prototype=function(){return new Qz}.prototype={constructor:Qz,
get:function(J){for(var r=this._;!(r in J);)if(!(J=J.parentNode))return;return J[r]},
set:function(J,r){return J[this._]=r},
remove:function(J){return this._ in J&&delete J[this._]},
toString:function(){return this._}};
var Tw=1/.7,gsG=/^#([0-9a-f]{3})$/,W2T=/^#([0-9a-f]{6})$/,w6J=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),p64=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),mIb=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),hvq=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*\\)$"),
Qx4=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),q8C=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*\\)$"),HGg={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};
IC(AX,pK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
IC(DR,Hg,Qt(AX,{brighter:function(J){J=J==null?Tw:Math.pow(Tw,J);return new DR(this.r*J,this.g*J,this.b*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new DR(this.r*J,this.g*J,this.b*J,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"#"+mL(this.r)+mL(this.g)+mL(this.b)},
toString:function(){var J=this.opacity;J=isNaN(J)?1:Math.max(0,Math.min(1,J));return(J===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))+(J===1?")":", "+J+")")}}));
IC(nu,zN,Qt(AX,{brighter:function(J){J=J==null?Tw:Math.pow(Tw,J);return new nu(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new nu(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=this.h%360+(this.h<0)*360,r=this.l,b=r+(r<.5?r:1-r)*(isNaN(J)||isNaN(this.s)?0:this.s);r=2*r-b;return new DR(R2(J>=240?J-240:J+120,r,b),R2(J,r,b),R2(J<120?J+240:J-120,r,b),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 ncz=Math.PI/180,LQd=180/Math.PI,f6L=4/29,l4=6/29,iGz=3*l4*l4,I0i=l4*l4*l4;IC(hL,function(J,r,b,u){return arguments.length===1?gU(J):new hL(J,r,b,u==null?1:u)},Qt(AX,{brighter:function(J){return new hL(this.l+18*(J==null?1:J),this.a,this.b,this.opacity)},
darker:function(J){return new hL(this.l-18*(J==null?1:J),this.a,this.b,this.opacity)},
rgb:function(){var J=(this.l+16)/116,r=isNaN(this.a)?J:J+this.a/500,b=isNaN(this.b)?J:J-this.b/200;r=.96422*nZ(r);J=1*nZ(J);b=.82521*nZ(b);return new DR(g3(3.1338561*r-1.6168667*J-.4906146*b),g3(-.9787684*r+1.9161415*J+.033454*b),g3(.0719453*r-.2289914*J+1.4052427*b),this.opacity)}}));
IC(mt,DD,Qt(AX,{brighter:function(J){return new mt(this.h,this.c,this.l+18*(J==null?1:J),this.opacity)},
darker:function(J){return new mt(this.h,this.c,this.l-18*(J==null?1:J),this.opacity)},
rgb:function(){return gU(this).rgb()}}));
var tOV=1.78277*-.29227-.1347134789;IC(gq,pg,Qt(AX,{brighter:function(J){J=J==null?Tw:Math.pow(Tw,J);return new gq(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new gq(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*ncz,r=+this.l,b=isNaN(this.s)?0:this.s*r*(1-r),u=Math.cos(J);J=Math.sin(J);return new DR(255*(r+b*(-.14861*u+1.78277*J)),255*(r+b*(-.29227*u+-.90649*J)),255*(r+1.97294*u*b),this.opacity)}}));
var C0L=function b(r){function u(Bj,pZ){var jr=Xi((Bj=Hg(Bj)).r,(pZ=Hg(pZ)).r),Zv=Xi(Bj.g,pZ.g),u2=Xi(Bj.b,pZ.b),ES=Jw(Bj.opacity,pZ.opacity);return function(Dm){Bj.r=jr(Dm);Bj.g=Zv(Dm);Bj.b=u2(Dm);Bj.opacity=ES(Dm);return Bj+""}}
var Xi=Lk(r);u.gamma=b;return u}(1),m2$=bB(function(r){var b=r.length-1;
return function(u){var Xi=u<=0?u=0:u>=1?(u=1,b-1):Math.floor(u*b),Bj=r[Xi],pZ=r[Xi+1];return vx((u-Xi/b)*b,Xi>0?r[Xi-1]:2*Bj-pZ,Bj,pZ,Xi<b-1?r[Xi+2]:2*pZ-Bj)}});
bB(function(r){var b=r.length;return function(u){var Xi=Math.floor(((u%=1)<0?++u:u)*b);return vx((u-Xi/b)*b,r[(Xi+b-1)%b],r[Xi%b],r[(Xi+1)%b],r[(Xi+2)%b])}});
var DmN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gcZ=new RegExp(DmN.source,"g"),GJe=180/Math.PI,cOS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},lT,Sjr,zKo,KFZ,Qtb=TP(function(r){if(r==="none")return cOS;lT||(lT=document.createElement("DIV"),Sjr=document.documentElement,zKo=document.defaultView);lT.style.transform=r;r=zKo.getComputedStyle(Sjr.appendChild(lT),null).getPropertyValue("transform");Sjr.removeChild(lT);r=r.slice(7,-1).split(",");return rs(+r[0],+r[1],+r[2],+r[3],
+r[4],+r[5])},"px, ","px)","deg)"),qKT=TP(function(r){if(r==null)return cOS;
KFZ||(KFZ=document.createElementNS("http://www.w3.org/2000/svg","g"));KFZ.setAttribute("transform",r);if(!(r=KFZ.transform.baseVal.consolidate()))return cOS;r=r.matrix;return rs(r.a,r.b,r.c,r.d,r.e,r.f)},", ",")",")");
FS(cx);FS(Jw);id(cx);id(Jw);P_(cx);var z0p=P_(Jw),$A=0,Zz=0,M7=0,qoi,Em,Q4Z=0,HS=0,hMp=0,Yx=typeof performance==="object"&&performance.now?performance:Date,a6V=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};
vs.prototype=GO.prototype={constructor:vs,restart:function(r,b,u){if(typeof r!=="function")throw new TypeError("ze");u=(u==null?Gx():+u)+(b==null?0:+b);this._next||Em===this||(Em?Em._next=this:qoi=this,Em=this);this._call=r;this._time=u;U2()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,U2())}};
var Oe$=N("start","end","interrupt"),jxG=[],IVT=V9.prototype.constructor,b9d=0,D9=V9.prototype;WG.prototype=function(r){return V9().transition(r)}.prototype={constructor:WG,
select:function(r){var b=this._name,u=this._id;typeof r!=="function"&&(r=p(r));for(var Xi=this._groups,Bj=Xi.length,pZ=Array(Bj),jr=0;jr<Bj;++jr)for(var Zv=Xi[jr],u2=Zv.length,ES=pZ[jr]=Array(u2),Dm,tC,wq=0;wq<u2;++wq)(Dm=Zv[wq])&&(tC=r.call(Dm,Dm.__data__,wq,Zv))&&("__data__"in Dm&&(tC.__data__=Dm.__data__),ES[wq]=tC,WQv(ES[wq],b,u,wq,ES,wG(Dm,u)));return new WG(pZ,this._parents,b,u)},
filter:function(r){typeof r!=="function"&&(r=SPd(r));for(var b=this._groups,u=b.length,Xi=Array(u),Bj=0;Bj<u;++Bj)for(var pZ=b[Bj],jr=pZ.length,Zv=Xi[Bj]=[],u2,ES=0;ES<jr;++ES)(u2=pZ[ES])&&r.call(u2,u2.__data__,ES,pZ)&&Zv.push(u2);return new WG(Xi,this._parents,this._name,this._id)},
merge:function(r){if(r._id!==this._id)throw Error();var b=this._groups;r=r._groups;for(var u=b.length,Xi=Math.min(u,r.length),Bj=Array(u),pZ=0;pZ<Xi;++pZ)for(var jr=b[pZ],Zv=r[pZ],u2=jr.length,ES=Bj[pZ]=Array(u2),Dm,tC=0;tC<u2;++tC)if(Dm=jr[tC]||Zv[tC])ES[tC]=Dm;for(;pZ<u;++pZ)Bj[pZ]=b[pZ];return new WG(Bj,this._parents,this._name,this._id)},
selection:function(){return new IVT(this._groups,this._parents)},
transition:function(){for(var r=this._name,b=this._id,u=++b9d,Xi=this._groups,Bj=Xi.length,pZ=0;pZ<Bj;++pZ)for(var jr=Xi[pZ],Zv=jr.length,u2,ES=0;ES<Zv;++ES)if(u2=jr[ES]){var Dm=wG(u2,b);WQv(u2,r,u,ES,jr,{time:Dm.time+Dm.delay+Dm.duration,delay:0,duration:Dm.duration,ease:Dm.ease})}return new WG(Xi,this._parents,r,u)},
call:D9.call,nodes:D9.nodes,node:D9.node,size:D9.size,empty:D9.empty,each:D9.each,on:function(r,b){var u=this._id;return arguments.length<2?wG(this.node(),u).on.on(r):this.each(L24(u,r,b))},
attr:function(r,b){var u=l(r),Xi=u==="transform"?qKT:uzL;return this.attrTween(r,typeof b==="function"?(u.local?cMD:JMe)(u,Xi,p06(this,"attr."+r,b)):b==null?(u.local?rMD:osd)(u):(u.local?yMG:K2i)(u,Xi,b+""))},
attrTween:function(r,b){var u="attr."+r;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(b==null)return this.tween(u,null);if(typeof b!=="function")throw Error();var Xi=l(r);return this.tween(u,(Xi.local?S8$:zve)(Xi,b))},
style:function(r,b,u){var Xi=r==="transform"?Qtb:uzL;return b==null?this.styleTween(r,Gee(r,Xi)).on("end.style."+r,a0T(r)):this.styleTween(r,typeof b==="function"?uWq(r,Xi,p06(this,"style."+r,b)):UIP(r,Xi,b+""),u)},
styleTween:function(r,b,u){var Xi="style."+r;if(arguments.length<2)return(Xi=this.tween(Xi))&&Xi._value;if(b==null)return this.tween(Xi,null);if(typeof b!=="function")throw Error();return this.tween(Xi,CUe(r,b,u==null?"":u))},
text:function(r){return this.tween("text",typeof r==="function"?Y8e(p06(this,"text",r)):xIP(r==null?"":r+""))},
remove:function(){return this.on("end.remove",tIJ(this._id))},
tween:function(r,b){var u=this._id;if(arguments.length<2){u=wG(this.node(),u).tween;for(var Xi=0,Bj=u.length,pZ;Xi<Bj;++Xi)if((pZ=u[Xi]).name===r)return pZ.value;return null}return this.each((b==null?sxq:PUd)(u,r,b))},
delay:function(r){var b=this._id;return arguments.length?this.each((typeof r==="function"?beq:evJ)(b,r)):wG(this.node(),b).delay},
duration:function(r){var b=this._id;return arguments.length?this.each((typeof r==="function"?Hei:nsb)(b,r)):wG(this.node(),b).duration},
ease:function(r){var b=this._id;return arguments.length?this.each(ie$(b,r)):wG(this.node(),b).ease}};
var bGN={time:null,delay:0,duration:250,ease:function(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}};
V9.prototype.transition=function(r){var b;if(r instanceof WG){var u=r._id;r=r._name}else u=++b9d,(b=bGN).time=Gx(),r=r==null?null:r+"";for(var Xi=this._groups,Bj=Xi.length,pZ=0;pZ<Bj;++pZ)for(var jr=Xi[pZ],Zv=jr.length,u2,ES=0;ES<Zv;++ES)if(u2=jr[ES]){var Dm=u2,tC=r,wq=u,Wx=ES,iy=jr,qO;if(!(qO=b))a:{qO=void 0;for(var UI=u;!(qO=u2.__transition)||!(qO=qO[UI]);)if(!(u2=u2.parentNode)){qO=(bGN.time=Gx(),bGN);break a}}WQv(Dm,tC,wq,Wx,iy,qO)}return new WG(Xi,this._parents,r,u)};
["e","w"].map(mmr);["n","s"].map(mmr);"n e s w nw ne se sw".split(" ").map(mmr);h0j.prototype=function(){return new h0j}.prototype={constructor:h0j,
moveTo:function(r,b){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+b)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(r,b){this._+="L"+(this._x1=+r)+","+(this._y1=+b)},
bezierCurveTo:function(r,b,u,Xi,Bj,pZ){this._+="C"+ +r+","+ +b+","+ +u+","+ +Xi+","+(this._x1=+Bj)+","+(this._y1=+pZ)},
rect:function(r,b,u,Xi){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+b)+"h"+ +u+"v"+ +Xi+"h"+-u+"Z"},
toString:function(){return this._}};
IKi.prototype=xmd.prototype={constructor:IKi,has:function(r){return" "+r in this},
get:function(r){return this[" "+r]},
set:function(r,b){this[" "+r]=b;return this},
remove:function(r){r=" "+r;return r in this&&delete this[r]},
clear:function(){for(var r in this)r[0]===" "&&delete this[r]},
keys:function(){var r=[],b;for(b in this)b[0]===" "&&r.push(b.slice(1));return r},
values:function(){var r=[],b;for(b in this)b[0]===" "&&r.push(this[b]);return r},
entries:function(){var r=[],b;for(b in this)b[0]===" "&&r.push({key:b.slice(1),value:this[b]});return r},
size:function(){var r=0,b;for(b in this)b[0]===" "&&++r;return r},
empty:function(){for(var r in this)if(r[0]===" ")return!1;return!0},
each:function(r){for(var b in this)b[0]===" "&&r(this[b],b.slice(1),this)}};
var Lz=xmd.prototype;vTj.prototype=function(r,b){var u=new vTj;if(r instanceof vTj)r.each(function(pZ){u.add(pZ)});
else if(r){var Xi=-1,Bj=r.length;if(b==null)for(;++Xi<Bj;)u.add(r[Xi]);else for(;++Xi<Bj;)u.add(b(r[Xi],Xi,r))}return u}.prototype={constructor:vTj,
has:Lz.has,add:function(r){this[" "+r]=r;return this},
remove:Lz.remove,clear:Lz.clear,values:Lz.keys,size:Lz.size,empty:Lz.empty,each:Lz.each};var Ecd={},QHi={},v5$=ZGV(",").parse,OUY=ZGV("\t").parse;MHV(v5$);MHV(OUY);var Ay=function(r,b,u){b=new qji(b==null?dcJ:b,u==null?NyD:u,NaN,NaN,NaN,NaN);return r==null?b:b.addAll(r)}.prototype=qji.prototype;
Ay.copy=function(){var r=new qji(this._x,this._y,this._x0,this._y0,this._x1,this._y1),b=this._root,u,Xi;if(!b)return r;if(!b.length)return r._root=N9I(b),r;for(u=[{source:b,target:r._root=Array(4)}];b=u.pop();)for(var Bj=0;Bj<4;++Bj)if(Xi=b.source[Bj])Xi.length?u.push({source:Xi,target:b.target[Bj]=Array(4)}):b.target[Bj]=N9I(Xi);return r};
Ay.add=function(r){var b=+this._x.call(null,r),u=+this._y.call(null,r);return dsz(this.cover(b,u),b,u,r)};
Ay.addAll=function(r){var b,u,Xi=r.length,Bj,pZ,jr=Array(Xi),Zv=Array(Xi),u2=Infinity,ES=Infinity,Dm=-Infinity,tC=-Infinity;for(u=0;u<Xi;++u)isNaN(Bj=+this._x.call(null,b=r[u]))||isNaN(pZ=+this._y.call(null,b))||(jr[u]=Bj,Zv[u]=pZ,Bj<u2&&(u2=Bj),Bj>Dm&&(Dm=Bj),pZ<ES&&(ES=pZ),pZ>tC&&(tC=pZ));Dm<u2&&(u2=this._x0,Dm=this._x1);tC<ES&&(ES=this._y0,tC=this._y1);this.cover(u2,ES).cover(Dm,tC);for(u=0;u<Xi;++u)dsz(this,jr[u],Zv[u],r[u]);return this};
Ay.cover=function(r,b){if(isNaN(r=+r)||isNaN(b=+b))return this;var u=this._x0,Xi=this._y0,Bj=this._x1,pZ=this._y1;if(isNaN(u))Bj=(u=Math.floor(r))+1,pZ=(Xi=Math.floor(b))+1;else if(u>r||r>Bj||Xi>b||b>pZ){var jr=Bj-u,Zv=this._root,u2;switch(u2=(b<(Xi+pZ)/2)<<1|r<(u+Bj)/2){case 0:do{var ES=Array(4);ES[u2]=Zv;Zv=ES}while(jr*=2,Bj=u+jr,pZ=Xi+jr,r>Bj||b>pZ);break;case 1:do ES=Array(4),ES[u2]=Zv,Zv=ES;while(jr*=2,u=Bj-jr,pZ=Xi+jr,u>r||b>pZ);break;case 2:do ES=Array(4),ES[u2]=Zv,Zv=ES;while(jr*=2,Bj=u+jr,
Xi=pZ-jr,r>Bj||Xi>b);break;case 3:do ES=Array(4),ES[u2]=Zv,Zv=ES;while(jr*=2,u=Bj-jr,Xi=pZ-jr,u>r||Xi>b)}this._root&&this._root.length&&(this._root=Zv)}else return this;this._x0=u;this._y0=Xi;this._x1=Bj;this._y1=pZ;return this};
Ay.data=function(){var r=[];this.visit(function(b){if(!b.length){do r.push(b.data);while(b=b.next)}});
return r};
Ay.extent=function(r){return arguments.length?this.cover(+r[0][0],+r[0][1]).cover(+r[1][0],+r[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Ay.find=function(r,b,u){var Xi=this._x0,Bj=this._y0,pZ,jr,Zv,u2,ES=this._x1,Dm=this._y1,tC=[],wq=this._root,Wx;wq&&tC.push(new FZ(wq,Xi,Bj,ES,Dm));u==null?u=Infinity:(Xi=r-u,Bj=b-u,ES=r+u,Dm=b+u,u*=u);for(;Wx=tC.pop();)if(!(!(wq=Wx.node)||(pZ=Wx.x0)>ES||(jr=Wx.y0)>Dm||(Zv=Wx.x1)<Xi||(u2=Wx.y1)<Bj))if(wq.length){Wx=(pZ+Zv)/2;var iy=(jr+u2)/2;tC.push(new FZ(wq[3],Wx,iy,Zv,u2),new FZ(wq[2],pZ,iy,Wx,u2),new FZ(wq[1],Wx,jr,Zv,iy),new FZ(wq[0],pZ,jr,Wx,iy));if(wq=(b>=iy)<<1|r>=Wx)Wx=tC[tC.length-1],tC[tC.length-
1]=tC[tC.length-1-wq],tC[tC.length-1-wq]=Wx}else if(Wx=r-+this._x.call(null,wq.data),iy=b-+this._y.call(null,wq.data),Wx=Wx*Wx+iy*iy,Wx<u){var qO=Math.sqrt(u=Wx);Xi=r-qO;Bj=b-qO;ES=r+qO;Dm=b+qO;qO=wq.data}return qO};
Ay.remove=function(r){if(isNaN(u2=+this._x.call(null,r))||isNaN(ES=+this._y.call(null,r)))return this;var b,u=this._root,Xi,Bj=this._x0,pZ=this._y0,jr=this._x1,Zv=this._y1,u2,ES,Dm,tC,wq,Wx,iy;if(!u)return this;if(u.length)for(;;){(wq=u2>=(Dm=(Bj+jr)/2))?Bj=Dm:jr=Dm;(Wx=ES>=(tC=(pZ+Zv)/2))?pZ=tC:Zv=tC;if(!(b=u,u=u[iy=Wx<<1|wq]))return this;if(!u.length)break;if(b[iy+1&3]||b[iy+2&3]||b[iy+3&3]){var qO=b;var UI=iy}}for(;u.data!==r;)if(!(Xi=u,u=u.next))return this;(r=u.next)&&delete u.next;if(Xi)return r?
Xi.next=r:delete Xi.next,this;if(!b)return this._root=r,this;r?b[iy]=r:delete b[iy];(u=b[0]||b[1]||b[2]||b[3])&&u===(b[3]||b[2]||b[1]||b[0])&&!u.length&&(qO?qO[UI]=u:this._root=u);return this};
Ay.removeAll=function(r){for(var b=0,u=r.length;b<u;++b)this.remove(r[b]);return this};
Ay.root=function(){return this._root};
Ay.size=function(){var r=0;this.visit(function(b){if(!b.length){do++r;while(b=b.next)}});
return r};
Ay.visit=function(r){var b=[],u,Xi=this._root,Bj,pZ,jr,Zv,u2;for(Xi&&b.push(new FZ(Xi,this._x0,this._y0,this._x1,this._y1));u=b.pop();)if(!r(Xi=u.node,pZ=u.x0,jr=u.y0,Zv=u.x1,u2=u.y1)&&Xi.length){u=(pZ+Zv)/2;var ES=(jr+u2)/2;(Bj=Xi[3])&&b.push(new FZ(Bj,u,ES,Zv,u2));(Bj=Xi[2])&&b.push(new FZ(Bj,pZ,ES,u,u2));(Bj=Xi[1])&&b.push(new FZ(Bj,u,jr,Zv,ES));(Bj=Xi[0])&&b.push(new FZ(Bj,pZ,jr,u,ES))}};
Ay.visitAfter=function(r){var b=[],u=[],Xi;for(this._root&&b.push(new FZ(this._root,this._x0,this._y0,this._x1,this._y1));Xi=b.pop();){var Bj=Xi.node;if(Bj.length){var pZ,jr=Xi.x0,Zv=Xi.y0,u2=Xi.x1,ES=Xi.y1,Dm=(jr+u2)/2,tC=(Zv+ES)/2;(pZ=Bj[0])&&b.push(new FZ(pZ,jr,Zv,Dm,tC));(pZ=Bj[1])&&b.push(new FZ(pZ,Dm,Zv,u2,tC));(pZ=Bj[2])&&b.push(new FZ(pZ,jr,tC,Dm,ES));(pZ=Bj[3])&&b.push(new FZ(pZ,Dm,tC,u2,ES))}u.push(Xi)}for(;Xi=u.pop();)r(Xi.node,Xi.x0,Xi.y0,Xi.x1,Xi.y1);return this};
Ay.x=function(r){return arguments.length?(this._x=r,this):this._x};
Ay.y=function(r){return arguments.length?(this._y=r,this):this._y};
var AYr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;I6j.prototype=vcA.prototype;vcA.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 A6z,VHL={"%":function(r,b){return(r*100).toFixed(b)},
b:function(r){return Math.round(r).toString(2)},
c:function(r){return r+""},
d:function(r){return Math.round(r).toString(10)},
e:function(r,b){return r.toExponential(b)},
f:function(r,b){return r.toFixed(b)},
g:function(r,b){return r.toPrecision(b)},
o:function(r){return Math.round(r).toString(8)},
p:function(r,b){return RKV(r*100,b)},
r:RKV,s:function(r,b){var u=OuZ(r,b);if(!u)return r+"";var Xi=u[0];u=u[1];u=u-(A6z=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var Bj=Xi.length;return u===Bj?Xi:u>Bj?Xi+Array(u-Bj+1).join("0"):u>0?Xi.slice(0,u)+"."+Xi.slice(u):"0."+Array(1-u).join("0")+OuZ(r,Math.max(0,b+u-1))[0]},
X:function(r){return Math.round(r).toString(16).toUpperCase()},
x:function(r){return Math.round(r).toString(16)}},F6L="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),jt$;
(function(r){return jt$=VsC(r)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});aX.prototype={constructor:aX,reset:function(){this.s=this.t=0},
add:function(r){l1d(ylL,r,this.t);l1d(this,ylL.s,this.s);this.s?this.t+=ylL.t:this.s=ylL.t},
valueOf:function(){return this.s}};
var ylL=new aX,Ph=Math.PI,xD=Ph/2,eKd=Ph/4,str=Ph*2,e0N=Ph/180,wQ=Math.abs,HGZ=Math.atan,g3J=Math.atan2,YD=Math.cos,zL=Math.sin,s4Z=Math.sqrt;new aX;new aX;new aX;var ncq=new aX;(function(r,b,u,Xi){return function(Bj){function pZ(Us,k4){r(Us,k4)&&Bj.point(Us,k4)}
function jr(Us,k4){wq.point(Us,k4)}
function Zv(){g5.point=jr;wq.lineStart()}
function u2(){g5.point=pZ;wq.lineEnd()}
function ES(Us,k4){rU.push([Us,k4]);iy.point(Us,k4)}
function Dm(){iy.lineStart();rU=[]}
function tC(){ES(rU[0][0],rU[0][1]);iy.lineEnd();var Us=iy.clean(),k4=Wx.result(),Gh=k4.length,T2;rU.pop();UI.push(rU);rU=null;if(Gh)if(Us&1){if(Gh=k4[0],(k4=Gh.length-1)>0){qO||(Bj.polygonStart(),qO=!0);Bj.lineStart();for(Us=0;Us<k4;++Us)Bj.point((T2=Gh[Us])[0],T2[1]);Bj.lineEnd()}}else Gh>1&&Us&2&&k4.push(k4.pop().concat(k4.shift())),aW.push(k4.filter(kUd))}
var wq=b(Bj),Wx=$cr(),iy=b(Wx),qO=!1,UI,aW,rU,g5={point:pZ,lineStart:Zv,lineEnd:u2,polygonStart:function(){g5.point=ES;g5.lineStart=Dm;g5.lineEnd=tC;aW=[];UI=[]},
polygonEnd:function(){g5.point=pZ;g5.lineStart=Zv;g5.lineEnd=u2;var Us=aW,k4=Us.length;var Gh=-1;for(var T2=0,y9,DG;++Gh<k4;)T2+=Us[Gh].length;for(y9=Array(T2);--k4>=0;)for(DG=Us[k4],Gh=DG.length;--Gh>=0;)y9[--T2]=DG[Gh];aW=y9;Us=UI;k4=Xi[0];T2=Xi[1];var ds=zL(T2);Gh=[zL(k4),-YD(k4),0];DG=y9=0;ncq.reset();ds===1?T2=xD+1E-6:ds===-1&&(T2=-xD-1E-6);ds=0;for(var mG=Us.length;ds<mG;++ds)if(sD=(Uo=Us[ds]).length){var Uo,sD,u7=Uo[sD-1],wK=u7[0],JO=u7[1]/2+eKd,JlN=zL(JO),H9I=YD(JO);for(JO=0;JO<sD;++JO,wK=
iGq,JlN=n3d,H9I=$b,u7=clq){var clq=Uo[JO],iGq=clq[0];$b=clq[1]/2+eKd;var n3d=zL($b),$b=YD($b),gN=iGq-wK,f6i=gN>=0?1:-1,LQi=f6i*gN,SoA=LQi>Ph;JlN*=n3d;ncq.add(g3J(JlN*f6i*zL(LQi),H9I*$b+JlN*YD(LQi)));y9+=SoA?gN+f6i*str:gN;SoA^wK>=k4^iGq>=k4&&(u7=B9o($sI(u7),$sI(clq)),kQV(u7),wK=B9o(Gh,u7),kQV(wK),wK=(SoA^gN>=0?-1:1)*j4j(wK[2]),T2>wK||T2===wK&&(u7[0]||u7[1]))&&(DG+=SoA^gN>=0?1:-1)}}Us=(y9<-1E-6||y9<1E-6&&ncq<-1E-6)^DG&1;aW.length?(qO||(Bj.polygonStart(),qO=!0),Byd(aW,TyT,Us,u,Bj)):Us&&(qO||(Bj.polygonStart(),
qO=!0),Bj.lineStart(),u(null,null,1,Bj),Bj.lineEnd());qO&&(Bj.polygonEnd(),qO=!1);aW=UI=null},
sphere:function(){Bj.polygonStart();Bj.lineStart();u(null,null,1,Bj);Bj.lineEnd();Bj.polygonEnd()}};
return g5}})(function(){return!0},function(r){var b=NaN,u=NaN,Xi=NaN,Bj;
return{lineStart:function(){r.lineStart();Bj=1},
point:function(pZ,jr){var Zv=pZ>0?Ph:-Ph,u2=wQ(pZ-b);if(wQ(u2-Ph)<1E-6)r.point(b,u=(u+jr)/2>0?xD:-xD),r.point(Xi,u),r.lineEnd(),r.lineStart(),r.point(Zv,u),r.point(pZ,u),Bj=0;else if(Xi!==Zv&&u2>=Ph){wQ(b-Xi)<1E-6&&(b-=Xi*1E-6);wQ(pZ-Zv)<1E-6&&(pZ-=Zv*1E-6);u2=b;var ES=u,Dm=pZ,tC,wq,Wx=zL(u2-Dm);u=wQ(Wx)>1E-6?HGZ((zL(ES)*(wq=YD(jr))*zL(Dm)-zL(jr)*(tC=YD(ES))*zL(u2))/(tC*wq*Wx)):(ES+jr)/2;r.point(Xi,u);r.lineEnd();r.lineStart();r.point(Zv,u);Bj=0}r.point(b=pZ,u=jr);Xi=Zv},
lineEnd:function(){r.lineEnd();b=u=NaN},
clean:function(){return 2-Bj}}},function(r,b,u,Xi){r==null?(u*=xD,Xi.point(-Ph,u),Xi.point(0,u),Xi.point(Ph,u),Xi.point(Ph,0),Xi.point(Ph,-u),Xi.point(0,-u),Xi.point(-Ph,-u),Xi.point(-Ph,0),Xi.point(-Ph,u)):wQ(r[0]-b[0])>1E-6?(r=r[0]<b[0]?Ph:-Ph,u=u*r/2,Xi.point(-r,u),Xi.point(0,u),Xi.point(r,u)):Xi.point(b[0],b[1])},[-Ph,
-xD]);new aX;new aX;new aX;new aX;OG2.prototype={constructor:OG2,point:function(r,b){this.stream.point(r,b)},
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()}};
YD(30*e0N);(function(r){return function(b){var u=new OG2,Xi;for(Xi in r)u[Xi]=r[Xi];u.stream=b;return u}})({point:function(r,b){this.stream.point(r*e0N,b*e0N)}});
Dsz(function(r){return s4Z(2/(1+r))}).invert=dg(function(r){return 2*j4j(r/2)});
Dsz(function(r){return(r=r>1?0:r<-1?Ph:Math.acos(r))&&r/zL(r)}).invert=dg(function(r){return r});
s4Z(3);dg(HGZ);dg(j4j);dg(function(r){return 2*HGZ(r)});
N7.prototype=W6g.prototype={constructor:N7,count:function(){return this.eachAfter(DcD)},
each:function(r){var b,u=[this],Xi;do{var Bj=u.reverse();for(u=[];b=Bj.pop();)if(r(b),b=b.children){var pZ=0;for(Xi=b.length;pZ<Xi;++pZ)u.push(b[pZ])}}while(u.length);return this},
eachAfter:function(r){for(var b,u=[this],Xi=[],Bj,pZ;b=u.pop();)if(Xi.push(b),b=b.children)for(Bj=0,pZ=b.length;Bj<pZ;++Bj)u.push(b[Bj]);for(;b=Xi.pop();)r(b);return this},
eachBefore:function(r){for(var b,u=[this],Xi;b=u.pop();)if(r(b),b=b.children)for(Xi=b.length-1;Xi>=0;--Xi)u.push(b[Xi]);return this},
sum:function(r){return this.eachAfter(function(b){for(var u=+r(b.data)||0,Xi=b.children,Bj=Xi&&Xi.length;--Bj>=0;)u+=Xi[Bj].value;b.value=u})},
sort:function(r){return this.eachBefore(function(b){b.children&&b.children.sort(r)})},
path:function(r){var b=this;var u=b;var Xi=r;if(u!==Xi){var Bj=u.ancestors(),pZ=Xi.ancestors(),jr=null;u=Bj.pop();for(Xi=pZ.pop();u===Xi;)jr=u,u=Bj.pop(),Xi=pZ.pop();u=jr}for(Xi=[b];b!==u;)b=b.parent,Xi.push(b);for(b=Xi.length;r!==u;)Xi.splice(b,0,r),r=r.parent;return Xi},
ancestors:function(){for(var r=this,b=[r];r=r.parent;)b.push(r);return b},
links:function(){var r=this,b=[];r.each(function(u){u!==r&&b.push({source:u.parent,target:u})});
return b},
copy:function(){return W6g(this).eachBefore(wX4)}};
(function(r,b){this._=r;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=b}).prototype=Object.create(N7.prototype);
var jHL=new Date,sHi=new Date,i9L=In(function(){},function(r,b){r.setTime(+r+b)},function(r,b){return b-r});
i9L.every=function(r){r=Math.floor(r);return isFinite(r)&&r>0?r>1?In(function(b){b.setTime(Math.floor(b/r)*r)},function(b,u){b.setTime(+b+u*r)},function(b,u){return(u-b)/r}):i9L:null};
In(function(r){r.setTime(Math.floor(r/1E3)*1E3)},function(r,b){r.setTime(+r+b*1E3)},function(r,b){return(b-r)/1E3},function(r){return r.getUTCSeconds()});
In(function(r){r.setTime(Math.floor(r/6E4)*6E4)},function(r,b){r.setTime(+r+b*6E4)},function(r,b){return(b-r)/6E4},function(r){return r.getMinutes()});
In(function(r){var b=r.getTimezoneOffset()*6E4%36E5;b<0&&(b+=36E5);r.setTime(Math.floor((+r-b)/36E5)*36E5+b)},function(r,b){r.setTime(+r+b*36E5)},function(r,b){return(b-r)/36E5},function(r){return r.getHours()});
var msV=In(function(r){r.setHours(0,0,0,0)},function(r,b){r.setDate(r.getDate()+b)},function(r,b){return(b-r-(b.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/864E5},function(r){return r.getDate()-1}),wvY=iR(0),ocr=iR(1);
iR(2);iR(3);var rOi=iR(4);iR(5);iR(6);In(function(r){r.setDate(1);r.setHours(0,0,0,0)},function(r,b){r.setMonth(r.getMonth()+b)},function(r,b){return b.getMonth()-r.getMonth()+(b.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()});
var B4=In(function(r){r.setMonth(0,1);r.setHours(0,0,0,0)},function(r,b){r.setFullYear(r.getFullYear()+b)},function(r,b){return b.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});
B4.every=function(r){return isFinite(r=Math.floor(r))&&r>0?In(function(b){b.setFullYear(Math.floor(b.getFullYear()/r)*r);b.setMonth(0,1);b.setHours(0,0,0,0)},function(b,u){b.setFullYear(b.getFullYear()+u*r)}):null};
In(function(r){r.setUTCSeconds(0,0)},function(r,b){r.setTime(+r+b*6E4)},function(r,b){return(b-r)/6E4},function(r){return r.getUTCMinutes()});
In(function(r){r.setUTCMinutes(0,0,0)},function(r,b){r.setTime(+r+b*36E5)},function(r,b){return(b-r)/36E5},function(r){return r.getUTCHours()});
var pqg=In(function(r){r.setUTCHours(0,0,0,0)},function(r,b){r.setUTCDate(r.getUTCDate()+b)},function(r,b){return(b-r)/864E5},function(r){return r.getUTCDate()-1}),pv$=fz(0),P0Z=fz(1);
fz(2);fz(3);var KQi=fz(4);fz(5);fz(6);In(function(r){r.setUTCDate(1);r.setUTCHours(0,0,0,0)},function(r,b){r.setUTCMonth(r.getUTCMonth()+b)},function(r,b){return b.getUTCMonth()-r.getUTCMonth()+(b.getUTCFullYear()-r.getUTCFullYear())*12},function(r){return r.getUTCMonth()});
var kA=In(function(r){r.setUTCMonth(0,1);r.setUTCHours(0,0,0,0)},function(r,b){r.setUTCFullYear(r.getUTCFullYear()+b)},function(r,b){return b.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});
kA.every=function(r){return isFinite(r=Math.floor(r))&&r>0?In(function(b){b.setUTCFullYear(Math.floor(b.getUTCFullYear()/r)*r);b.setUTCMonth(0,1);b.setUTCHours(0,0,0,0)},function(b,u){b.setUTCFullYear(b.getUTCFullYear()+u*r)}):null};
var wqL={"-":"",_:" ",0:"0"},Kb=/^\s*\d+/,W8q=/^%/,g5Y=/[\\^$*+?|[\]().{}]/g,zMi;(function(r){zMi=mcq(r);wid=zMi.utcFormat;piV=zMi.utcParse;return zMi})({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||wid("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||piV("%Y-%m-%dT%H:%M:%S.%LZ");AS("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
AS("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");AS("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");AS("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");AS("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");AS("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");AS("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
AS("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");AS("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");AS("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");AS("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");AS("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var PJ4=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(AS);ud(PJ4);var o5T=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(AS);ud(o5T);var rWG=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(AS);ud(rWG);var K8T=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(AS);
ud(K8T);var yW4=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(AS);ud(yW4);var JW$=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(AS);ud(JW$);var cW9=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(AS);ud(cW9);var SKC=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(AS);ud(SKC);var zw4=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(AS);ud(zw4);var bUi=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(AS);ud(bUi);var ewJ=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(AS);ud(ewJ);var HUd=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(AS);ud(HUd);var n59=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(AS);ud(n59);var iUJ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(AS);ud(iUJ);var fV4=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(AS);ud(fV4);var L8e=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(AS);ud(L8e);var t8Y=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(AS);ud(t8Y);var G_q=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(AS);ud(G_q);var aV4=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(AS);ud(aV4);var U2$=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(AS);ud(U2$);var uXb=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(AS);ud(uXb);var CJd=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(AS);ud(CJd);var x2T=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(AS);ud(x2T);var YK9=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(AS);ud(YK9);var ZUq=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(AS);ud(ZUq);var E5i=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(AS);ud(E5i);var MXG=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(AS);ud(MXG);z0p(pg(300,.5,0),pg(-240,.5,1));z0p(pg(-100,.75,.35),pg(80,1.5,.8));z0p(pg(260,.75,.35),pg(80,1.5,.8));pg();Hg();rli(AS("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
rli(AS("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
rli(AS("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
rli(AS("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
o3o.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(r,b){r=+r;b=+b;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,b):this._context.moveTo(r,b);break;case 1:this._point=2;default:this._context.lineTo(r,b)}}};
(function(r){function b(u){return new r6V(r(u))}
b._curve=r;return b})(function(r){return new o3o(r)});
r6V.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(r,b){this._curve.point(b*Math.sin(r),b*-Math.cos(r))}};
JOS.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:yOj(this,this._t0,y6V(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(r,b){var u=NaN;r=+r;b=+b;if(r!==this._x1||b!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,b):this._context.moveTo(r,b);break;case 1:this._point=2;break;case 2:this._point=3;yOj(this,y6V(this,u=K6L(this,r,b)),u);break;default:yOj(this,this._t0,u=K6L(this,r,b))}this._x0=this._x1;this._x1=r;this._y0=this._y1;this._y1=b;this._t0=u}}};
(function(r){this._context=new J63(r)}.prototype=Object.create(JOS.prototype)).point=function(r,b){JOS.prototype.point.call(this,b,r)};
J63.prototype={moveTo:function(r,b){this._context.moveTo(b,r)},
closePath:function(){this._context.closePath()},
lineTo:function(r,b){this._context.lineTo(b,r)},
bezierCurveTo:function(r,b,u,Xi,Bj,pZ){this._context.bezierCurveTo(b,r,Xi,u,pZ,Bj)}};
Ag.prototype={constructor:Ag,scale:function(r){return r===1?this:new Ag(this.k*r,this.x,this.y)},
translate:function(r,b){return r===0&b===0?this:new Ag(this.k,this.x+this.k*r,this.y+this.k*b)},
apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},
invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Ag(1,0,0);S3v=pK;CQ.svg=CQ.svg;CQ.xhtml=CQ.xhtml;CQ.xlink=CQ.xlink;CQ.xml=CQ.xml;CQ.xmlns=CQ.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 mN3="hammer_"+(Math.random()*1E6|0),huV=function(){var M=document||document;if(!M[mN3]){var d=function(){(function(N,R,X,A){function l(hL,JL,nZ){return setTimeout(m(hL,nZ),JL)}
function k(hL,JL,nZ){return Array.isArray(hL)?(T(hL,nZ[JL],nZ),!0):!1}
function T(hL,JL,nZ){var g3;if(hL)if(hL.forEach)hL.forEach(JL,nZ);else if(hL.length!==A){var FY=0;for(g3=hL.length;FY<g3;FY++)JL.call(nZ,hL[FY],FY,hL)}else for(FY in hL)hL.hasOwnProperty(FY)&&JL.call(nZ,hL[FY],FY,hL)}
function W(hL,JL,nZ){for(var g3=Object.keys(JL),FY=0,Px=g3.length;FY<Px;FY++)if(!nZ||nZ&&hL[g3[FY]]===A)hL[g3[FY]]=JL[g3[FY]];return hL}
function w(hL,JL){return W(hL,JL,!0)}
function p(hL,JL,nZ){JL=JL.prototype;var g3=hL.prototype=Object.create(JL);g3.constructor=hL;g3._super=JL;nZ&&W(g3,nZ)}
function m(hL,JL){return function(){return hL.apply(JL,arguments)}}
function I(hL,JL){return typeof hL=="function"?hL.apply(JL?JL[0]||A:A,JL):hL}
function O(hL,JL,nZ){T(c(JL),function(g3){hL.addEventListener(g3,nZ,!1)})}
function y(hL,JL,nZ){T(c(JL),function(g3){hL.removeEventListener(g3,nZ,!1)})}
function c(hL){return hL.trim().split(/\s+/g)}
function e(hL,JL,nZ){if(hL.indexOf&&!nZ)return hL.indexOf(JL);for(var g3=0,FY=hL.length;g3<FY;g3++)if(nZ&&hL[g3][nZ]==JL||!nZ&&hL[g3]===JL)return g3;return-1}
function t(hL,JL,nZ){for(var g3=[],FY=[],Px=0,DD=hL.length;Px<DD;Px++){var mt=JL?hL[Px][JL]:hL[Px];e(FY,mt)<0&&g3.push(hL[Px]);FY[Px]=mt}nZ&&(g3=JL?g3.sort(function(pg,gq){return pg[JL]>gq[JL]}):g3.sort());
return g3}
function C(hL,JL){for(var nZ,g3=JL[0].toUpperCase()+JL.slice(1),FY=0,Px=fZ.length;FY<Px;FY++)if(nZ=(nZ=fZ[FY])?nZ+g3:JL,nZ in hL)return nZ;return A}
function U(hL,JL){var nZ=this;this.manager=hL;this.callback=JL;this.element=hL.element;this.target=hL.options.inputTarget;this.domHandler=function(g3){I(hL.options.enable,[hL])&&nZ.handler(g3)};
this.evEl&&O(this.element,this.evEl,this.domHandler);this.evTarget&&O(this.target,this.evTarget,this.domHandler);this.evWin&&O(N,this.evWin,this.domHandler)}
function Fi(hL){var JL;HY?JL=Hj:Vb?JL=LZ:pK?JL=w3:JL=b2;return new JL(hL,Y)}
function Y(hL,JL,nZ){var g3=nZ.pointers.length,FY=nZ.changedPointers.length,Px=JL&1&&g3-FY===0;nZ.isFirst=!!Px;nZ.isFinal=!!(JL&12&&g3-FY===0);Px&&(hL.session={});nZ.eventType=JL;JL=hL.session;g3=nZ.pointers;FY=g3.length;JL.firstInput||(JL.firstInput=$i(nZ));FY>1&&!JL.firstMultiple?JL.firstMultiple=$i(nZ):FY===1&&(JL.firstMultiple=!1);Px=JL.firstInput;var DD=(FY=JL.firstMultiple)?FY.center:Px.center,mt=nZ.center=vj(g3);nZ.timeStamp=IC();nZ.deltaTime=nZ.timeStamp-Px.timeStamp;nZ.angle=tL(DD,mt);nZ.distance=
sS(DD,mt);Px=nZ.center;DD=JL.offsetDelta||{};mt=JL.prevDelta||{};var pg=JL.prevInput||{};if(nZ.eventType===1||pg.eventType===4)mt=JL.prevDelta={x:pg.deltaX||0,y:pg.deltaY||0},DD=JL.offsetDelta={x:Px.x,y:Px.y};nZ.deltaX=mt.x+(Px.x-DD.x);nZ.deltaY=mt.y+(Px.y-DD.y);nZ.offsetDirection=Pj(nZ.deltaX,nZ.deltaY);FY?(Px=FY.pointers,Px=sS(g3[0],g3[1],Hg)/sS(Px[0],Px[1],Hg)):Px=1;nZ.scale=Px;FY?(FY=FY.pointers,g3=tL(g3[1],g3[0],Hg)-tL(FY[1],FY[0],Hg)):g3=0;nZ.rotation=g3;DD=JL.lastInterval||nZ;g3=nZ.timeStamp-
DD.timeStamp;nZ.eventType!=8&&(g3>25||DD.velocity===A)?(Px=DD.deltaX-nZ.deltaX,DD=DD.deltaY-nZ.deltaY,mt=Px/g3||0,pg=DD/g3||0,g3=mt,FY=pg,mt=Qz(mt)>Qz(pg)?mt:pg,Px=Pj(Px,DD),JL.lastInterval=nZ):(mt=DD.velocity,g3=DD.velocityX,FY=DD.velocityY,Px=DD.direction);nZ.velocity=mt;nZ.velocityX=g3;nZ.velocityY=FY;nZ.direction=Px;JL=hL.element;a:{for(g3=nZ.srcEvent.target;g3;){if(g3==JL){g3=!0;break a}g3=g3.parentNode}g3=!1}g3&&(JL=nZ.srcEvent.target);nZ.target=JL;hL.emit("hammer.input",nZ);hL.recognize(nZ);
hL.session.prevInput=nZ}
function $i(hL){for(var JL=[],nZ=0;nZ<hL.pointers.length;nZ++)JL[nZ]={clientX:V9(hL.pointers[nZ].clientX),clientY:V9(hL.pointers[nZ].clientY)};return{timeStamp:IC(),pointers:JL,center:vj(JL),deltaX:hL.deltaX,deltaY:hL.deltaY}}
function vj(hL){var JL=hL.length;if(JL===1)return{x:V9(hL[0].clientX),y:V9(hL[0].clientY)};for(var nZ=0,g3=0,FY=0;FY<JL;FY++)nZ+=hL[FY].clientX,g3+=hL[FY].clientY;return{x:V9(nZ/JL),y:V9(g3/JL)}}
function Pj(hL,JL){return hL===JL?1:Qz(hL)>=Qz(JL)?hL>0?2:4:JL>0?8:16}
function sS(hL,JL,nZ){nZ||(nZ=yy);var g3=JL[nZ[0]]-hL[nZ[0]];hL=JL[nZ[1]]-hL[nZ[1]];return Math.sqrt(g3*g3+hL*hL)}
function tL(hL,JL,nZ){nZ||(nZ=yy);return Math.atan2(JL[nZ[1]]-hL[nZ[1]],JL[nZ[0]]-hL[nZ[0]])*180/Math.PI}
function b2(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;U.apply(this,arguments)}
function Hj(){this.evEl=kT;this.evWin=zN;U.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function LZ(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};U.apply(this,arguments)}
function w3(){U.apply(this,arguments);var hL=m(this.handler,this);this.touch=new LZ(this.manager,hL);this.mouse=new b2(this.manager,hL)}
function XY(hL,JL){this.manager=hL;this.set(JL)}
function jJ(hL){if(hL.indexOf("none")>-1)return"none";var JL=hL.indexOf("pan-x")>-1,nZ=hL.indexOf("pan-y")>-1;return JL&&nZ?"pan-x pan-y":JL||nZ?JL?"pan-x":"pan-y":hL.indexOf("manipulation")>-1?"manipulation":"auto"}
function Ne(hL){this.id=Qt++;this.manager=null;this.options=w(hL||{},this.defaults);hL=this.options.enable;this.options.enable=hL===A?!0:hL;this.state=1;this.simultaneous={};this.requireFail=[]}
function Vz(hL){return hL==16?"down":hL==8?"up":hL==2?"left":hL==4?"right":""}
function oI(hL,JL){return(JL=JL.manager)?JL.get(hL):hL}
function $d(){Ne.apply(this,arguments)}
function CJ(){$d.apply(this,arguments);this.pY=this.pX=null}
function xd(){$d.apply(this,arguments)}
function Vq(){Ne.apply(this,arguments);this._input=this._timer=null}
function uL(){$d.apply(this,arguments)}
function fg(){$d.apply(this,arguments)}
function M9(){Ne.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function OV(hL,JL){JL=JL||{};var nZ=JL.recognizers;JL.recognizers=nZ===A?OV.defaults.preset:nZ;return new UV(hL,JL)}
function UV(hL,JL){JL=JL||{};this.options=w(JL,OV.defaults);this.options.inputTarget=this.options.inputTarget||hL;this.handlers={};this.session={};this.recognizers=[];this.element=hL;this.input=Fi(this);this.touchAction=new XY(this,this.options.touchAction);q$(this,!0);T(JL.recognizers,function(nZ){var g3=this.add(new nZ[0](nZ[1]));nZ[2]&&g3.recognizeWith(nZ[2]);nZ[3]&&g3.requireFailure(nZ[2])},this)}
function q$(hL,JL){var nZ=hL.element;T(hL.options.cssProps,function(g3,FY){nZ.style[C(nZ.style,FY)]=JL?g3:""})}
function BV(hL,JL){var nZ=R.createEvent("Event");nZ.initEvent(hL,!0,!0);nZ.gesture=JL;JL.target.dispatchEvent(nZ)}
var fZ=" webkit moz MS ms o".split(" "),WV=R.createElement("div"),V9=Math.round,Qz=Math.abs,IC=Date.now,Qt=1,AX=/mobile|tablet|ip(ad|hone|od)|android/i,pK="ontouchstart"in N,HY=C(N,"PointerEvent")!==A,Vb=pK&&AX.test(navigator.userAgent),yy=["x","y"],Hg=["clientX","clientY"];U.prototype={handler:function(){},
destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler);this.evTarget&&y(this.target,this.evTarget,this.domHandler);this.evWin&&y(N,this.evWin,this.domHandler)}};
var DR={mousedown:1,mousemove:2,mouseup:4};p(b2,U,{handler:function(hL){var JL=DR[hL.type];JL&1&&hL.button===0&&(this.pressed=!0);JL&2&&hL.which!==1&&(JL=4);this.pressed&&this.allow&&(JL&4&&(this.pressed=!1),this.callback(this.manager,JL,{pointers:[hL],changedPointers:[hL],pointerType:"mouse",srcEvent:hL}))}});
var mL={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},lX={2:"touch",3:"pen",4:"mouse",5:"kinect"},kT="pointerdown",zN="pointermove pointerup pointercancel";N.MSPointerEvent&&(kT="MSPointerDown",zN="MSPointerMove MSPointerUp MSPointerCancel");p(Hj,U,{handler:function(hL){var JL=this.store,nZ=!1,g3=hL.type.toLowerCase().replace("ms","");g3=mL[g3];var FY=lX[hL.pointerType]||hL.pointerType;g3&1&&(hL.button===0||FY=="touch")?JL.push(hL):g3&12&&(nZ=!0);var Px=e(JL,hL.pointerId,"pointerId");
Px<0||(JL[Px]=hL,this.callback(this.manager,g3,{pointers:JL,changedPointers:[hL],pointerType:FY,srcEvent:hL}),nZ&&JL.splice(Px,1))}});
var nu={touchstart:1,touchmove:2,touchend:4,touchcancel:8};p(LZ,U,{handler:function(hL){var JL=nu[hL.type];var nZ=Array.prototype.slice.call(hL.touches,0);var g3=this.targetIds;if(JL&3&&nZ.length===1)g3[nZ[0].identifier]=!0,g3=[nZ,nZ];else{var FY,Px=Array.prototype.slice.call(hL.targetTouches,0),DD=Array.prototype.slice.call(hL.changedTouches,0),mt=[];if(JL===1)for(nZ=0,FY=Px.length;nZ<FY;nZ++)g3[Px[nZ].identifier]=!0;nZ=0;for(FY=DD.length;nZ<FY;nZ++)g3[DD[nZ].identifier]&&mt.push(DD[nZ]),JL&12&&
delete g3[DD[nZ].identifier];g3=mt.length?[t(Px.concat(mt),"identifier",!0),mt]:void 0}g3&&this.callback(this.manager,JL,{pointers:g3[0],changedPointers:g3[1],pointerType:"touch",srcEvent:hL})}});
p(w3,U,{handler:function(hL,JL,nZ){var g3=nZ.pointerType=="mouse";if(nZ.pointerType=="touch")this.mouse.allow=!1;else if(g3&&!this.mouse.allow)return;JL&12&&(this.mouse.allow=!0);this.callback(hL,JL,nZ)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var R2=C(WV.style,"touchAction"),gU=R2!==A;XY.prototype={set:function(hL){hL=="compute"&&(hL=this.compute());gU&&(this.manager.element.style[R2]=hL);this.actions=hL.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var hL=[];T(this.manager.recognizers,function(JL){I(JL.options.enable,[JL])&&(hL=hL.concat(JL.getTouchAction()))});
return jJ(hL.join(" "))},
preventDefaults:function(hL){if(!gU){var JL=hL.srcEvent;hL=hL.offsetDirection;if(this.manager.session.prevented)JL.preventDefault();else{var nZ=this.actions,g3=nZ.indexOf("none")>-1,FY=nZ.indexOf("pan-y")>-1;nZ=nZ.indexOf("pan-x")>-1;if(g3||FY&&nZ||FY&&hL&6||nZ&&hL&24)return this.preventSrc(JL)}}},
preventSrc:function(hL){this.manager.session.prevented=!0;hL.preventDefault()}};
Ne.prototype={defaults:{},set:function(hL){W(this.options,hL);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(hL){if(k(hL,"recognizeWith",this))return this;var JL=this.simultaneous;hL=oI(hL,this);JL[hL.id]||(JL[hL.id]=hL,hL.recognizeWith(this));return this},
dropRecognizeWith:function(hL){if(k(hL,"dropRecognizeWith",this))return this;hL=oI(hL,this);delete this.simultaneous[hL.id];return this},
requireFailure:function(hL){if(k(hL,"requireFailure",this))return this;var JL=this.requireFail;hL=oI(hL,this);e(JL,hL)===-1&&(JL.push(hL),hL.requireFailure(this));return this},
dropRequireFailure:function(hL){if(k(hL,"dropRequireFailure",this))return this;hL=oI(hL,this);hL=e(this.requireFail,hL);hL>-1&&this.requireFail.splice(hL,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(hL){return!!this.simultaneous[hL.id]},
emit:function(hL){function JL(FY){nZ.manager.emit(nZ.options.event+(FY?g3&16?"cancel":g3&8?"end":g3&4?"move":g3&2?"start":"":""),hL)}
var nZ=this,g3=this.state;g3<8&&JL(!0);JL();g3>=8&&JL(!0)},
tryEmit:function(hL){if(this.canEmit())return this.emit(hL);this.state=32},
canEmit:function(){for(var hL=0;hL<this.requireFail.length;hL++)if(!(this.requireFail[hL].state&33))return!1;return!0},
recognize:function(hL){hL=W({},hL);I(this.options.enable,[this,hL])?(this.state&56&&(this.state=1),this.state=this.process(hL),this.state&30&&this.tryEmit(hL)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
p($d,Ne,{defaults:{pointers:1},attrTest:function(hL){var JL=this.options.pointers;return JL===0||hL.pointers.length===JL},
process:function(hL){var JL=this.state,nZ=hL.eventType,g3=JL&6;hL=this.attrTest(hL);return g3&&(nZ&8||!hL)?JL|16:g3||hL?nZ&4?JL|8:JL&2?JL|4:2:32}});
p(CJ,$d,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var hL=this.options.direction;if(hL===30)return["none"];var JL=[];hL&6&&JL.push("pan-y");hL&24&&JL.push("pan-x");return JL},
directionTest:function(hL){var JL=this.options,nZ=!0,g3=hL.distance,FY=hL.direction,Px=hL.deltaX,DD=hL.deltaY;FY&JL.direction||(JL.direction&6?(FY=Px===0?1:Px<0?2:4,nZ=Px!=this.pX,g3=Math.abs(hL.deltaX)):(FY=DD===0?1:DD<0?8:16,nZ=DD!=this.pY,g3=Math.abs(hL.deltaY)));hL.direction=FY;return nZ&&g3>JL.threshold&&FY&JL.direction},
attrTest:function(hL){return $d.prototype.attrTest.call(this,hL)&&(this.state&2||!(this.state&2)&&this.directionTest(hL))},
emit:function(hL){this.pX=hL.deltaX;this.pY=hL.deltaY;var JL=Vz(hL.direction);JL&&this.manager.emit(this.options.event+JL,hL);this._super.emit.call(this,hL)}});
p(xd,$d,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(hL){return this._super.attrTest.call(this,hL)&&(Math.abs(hL.scale-1)>this.options.threshold||this.state&2)},
emit:function(hL){this._super.emit.call(this,hL);hL.scale!==1&&this.manager.emit(this.options.event+(hL.scale<1?"in":"out"),hL)}});
p(Vq,Ne,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(hL){var JL=this.options,nZ=hL.pointers.length===JL.pointers,g3=hL.distance<JL.threshold,FY=hL.deltaTime>JL.time;this._input=hL;if(!g3||!nZ||hL.eventType&12&&!FY)this.reset();else if(hL.eventType&1)this.reset(),this._timer=l(function(){this.state=8;this.tryEmit()},JL.time,this);
else if(hL.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(hL){this.state===8&&(hL&&hL.eventType&4?this.manager.emit(this.options.event+"up",hL):(this._input.timeStamp=IC(),this.manager.emit(this.options.event,this._input)))}});
p(uL,$d,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(hL){return this._super.attrTest.call(this,hL)&&(Math.abs(hL.rotation)>this.options.threshold||this.state&2)}});
p(fg,$d,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return CJ.prototype.getTouchAction.call(this)},
attrTest:function(hL){var JL=this.options.direction;if(JL&30)var nZ=hL.velocity;else JL&6?nZ=hL.velocityX:JL&24&&(nZ=hL.velocityY);return this._super.attrTest.call(this,hL)&&JL&hL.direction&&Qz(nZ)>this.options.velocity&&hL.eventType&4},
emit:function(hL){var JL=Vz(hL.direction);JL&&this.manager.emit(this.options.event+JL,hL);this.manager.emit(this.options.event,hL)}});
p(M9,Ne,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(hL){var JL=this.options,nZ=hL.pointers.length===JL.pointers,g3=hL.distance<JL.threshold,FY=hL.deltaTime<JL.time;this.reset();if(hL.eventType&1&&this.count===0)return this.failTimeout();if(g3&&FY&&nZ){if(hL.eventType!=4)return this.failTimeout();nZ=this.pTime?hL.timeStamp-this.pTime<JL.interval:!0;g3=!this.pCenter||sS(this.pCenter,hL.center)<JL.posThreshold;this.pTime=hL.timeStamp;this.pCenter=hL.center;g3&&nZ?this.count+=1:this.count=1;this._input=hL;if(this.count%JL.taps===0)return this.hasRequireFailures()?
(this._timer=l(function(){this.state=8;this.tryEmit()},JL.interval,this),2):8}return 32},
failTimeout:function(){this._timer=l(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))}});
OV.VERSION="2.0.2";OV.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[uL,{enable:!1}],[xd,{enable:!1},["rotate"]],[fg,{direction:6}],[CJ,{direction:6},["swipe"]],[M9],[M9,{event:"doubletap",taps:2},["tap"]],[Vq]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};UV.prototype={set:function(hL){W(this.options,hL);return this},
stop:function(hL){this.session.stopped=hL?2:1},
recognize:function(hL){var JL=this.session;if(!JL.stopped){this.touchAction.preventDefaults(hL);var nZ=this.recognizers,g3=JL.curRecognizer;if(!g3||g3&&g3.state&8)g3=JL.curRecognizer=null;for(var FY=0,Px=nZ.length;FY<Px;FY++){var DD=nZ[FY];JL.stopped===2||g3&&DD!=g3&&!DD.canRecognizeWith(g3)?DD.reset():DD.recognize(hL);!g3&&DD.state&14&&(g3=JL.curRecognizer=DD)}}},
get:function(hL){if(hL instanceof Ne)return hL;for(var JL=this.recognizers,nZ=0;nZ<JL.length;nZ++)if(JL[nZ].options.event==hL)return JL[nZ];return null},
add:function(hL){if(k(hL,"add",this))return this;var JL=this.get(hL.options.event);JL&&this.remove(JL);this.recognizers.push(hL);hL.manager=this;this.touchAction.update();return hL},
remove:function(hL){if(k(hL,"remove",this))return this;var JL=this.recognizers;hL=this.get(hL);JL.splice(e(JL,hL),1);this.touchAction.update();return this},
on:function(hL,JL){var nZ=this.handlers;T(c(hL),function(g3){nZ[g3]=nZ[g3]||[];nZ[g3].push(JL)});
return this},
off:function(hL,JL){var nZ=this.handlers;T(c(hL),function(g3){JL?nZ[g3].splice(e(nZ[g3],JL),1):delete nZ[g3]});
return this},
emit:function(hL,JL){this.options.domEvents&&BV(hL,JL);var nZ=this.handlers[hL]&&this.handlers[hL].slice();if(nZ&&nZ.length){JL.type=hL;JL.preventDefault=function(){JL.srcEvent.preventDefault()};
hL=0;for(var g3=nZ.length;hL<g3;hL++)nZ[hL](JL)}},
destroy:function(){this.element&&q$(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
W(OV,{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:UV,Input:U,TouchAction:XY,Recognizer:Ne,AttrRecognizer:$d,Tap:M9,Pan:CJ,Swipe:fg,Pinch:xd,Rotate:uL,Press:Vq,on:O,off:y,each:T,merge:w,extend:W,inherit:p,bindFn:m,prefixed:C});
N[X]=OV})(window,document,"Hammer");
return window.Hammer}.call({});
d.DOCUMENT=M;M[mN3]=d}return M[mN3]};/*

 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 Qqd=function(M,d){if(M.length!==d.length)return!1;for(var N=0;N<M.length;++N)if(M[N]!==d[N])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var qLV=_.V(["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"]),IMd=qLV.next();!IMd.done;IMd=qLV.next()){var vFd=IMd.value,OOg=document.createElement("link");OOg.rel="stylesheet";OOg.href=vFd;document.head.appendChild(OOg)};var VSi,$n6,k7Z,X_A,lki,Fv2,NPi,Rxq;VSi={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};$n6={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:"*"};k7Z={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};X_A=/[a-z0-9*]/;lki=/U\+/;Fv2=/^arrow/;NPi=/^space(bar)?/;Rxq=/^escape$/;_.pG={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(M,d){this._imperativeKeyBindings[M]=d;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(M,d){d=DnZ(d);for(var N=0;N<d.length;++N)if(BPA(d[N],M))return!0;return!1},
_collectKeyBindings:function(){var M=this.behaviors.map(function(d){return d.keyBindings});
M.indexOf(this.keyBindings)===-1&&M.push(this.keyBindings);return M},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(N){for(var R in N)this._addKeyBinding(R,N[R])},this);
for(var M in this._imperativeKeyBindings)this._addKeyBinding(M,this._imperativeKeyBindings[M]);for(var d in this._keyBindings)this._keyBindings[d].sort(function(N,R){N=N[0].hasModifiers;return N===R[0].hasModifiers?0:N?-1:1})},
_addKeyBinding:function(M,d){DnZ(M).forEach(function(N){this._keyBindings[N.event]=this._keyBindings[N.event]||[];this._keyBindings[N.event].push([N,d])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(M){var d=this._onKeyBindingEvent.bind(this,this._keyBindings[M]);this._boundKeyHandlers.push([this.keyEventTarget,M,d]);this.keyEventTarget.addEventListener(M,d)},this)},
_unlistenKeyEventListeners:function(){for(var M,d,N;this._boundKeyHandlers.length;)M=this._boundKeyHandlers.pop(),d=M[0],N=M[1],M=M[2],d.removeEventListener(N,M)},
_onKeyBindingEvent:function(M,d){this.stopKeyboardEventPropagation&&d.stopPropagation();if(!d.defaultPrevented)for(var N=0;N<M.length;N++){var R=M[N][0],X=M[N][1];if(BPA(R,d)&&(this._triggerKeyHandler(R,X,d),d.defaultPrevented))break}},
_triggerKeyHandler:function(M,d,N){var R=Object.create(M);R.keyboardEvent=N;M=new CustomEvent(M.event,{detail:R,cancelable:!0});this[d].call(this,M);M.defaultPrevented&&N.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
*/
_.kQ({is:"iron-a11y-keys",_template:null,behaviors:[_.pG],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(M){this.keyEventTarget=M},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(M){this.fire("keys-pressed",M.detail,{})}});_.mQ={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(M){this._setFocused(M.type==="focus")},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false");this.style.pointerEvents=M?"none":"";M?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var hO={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(M){this._detectKeyboardFocus(M);M||this._setPressed(!1)},
_detectKeyboardFocus:function(M){this._setReceivedFocusFromKeyboard(!this.pointerDown&&M)},
_userActivate:function(M){this.active!==M&&(this.active=M,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(M){M=M.detail.keyboardEvent;var d=_.Wl(M).localTarget;this.isLightDescendant(d)||(M.preventDefault(),M.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(M){M=_.Wl(M.detail.keyboardEvent).localTarget;this.isLightDescendant(M)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(M,d){d&&d!=M&&this.hasAttribute(d)&&this.removeAttribute(d)},
_activeChanged:function(M){this.toggles?this.setAttribute(this.ariaActiveAttribute,M?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},jqV=[_.pG,
hO];_.Qg={IronButtonState:jqV,IronButtonStateImpl:hO};_.qm={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.IH=function(M){_.IH[" "](M);this.type=M&&M.type||"default";this.key=M&&M.key;M&&"value"in M&&(this.value=M.value)};
_.IH.prototype.byKey=function(M){this.key=M;return this.value};
_.Hm.Object.defineProperties(_.IH.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M=this.type,d=this.key;if(M&&d)return v0[M]&&v0[M][d]},
set:function(M){var d=this.type,N=this.key;d&&N&&(d=v0[d]=v0[d]||{},M==null?delete d[N]:d[N]=M)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var M=v0[this.type];return M?Object.keys(M).map(function(d){return v0[this.type][d]},this):[]}}});
_.IH[" "]=function(){};
var v0={};_.kQ({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(M,d,N){M=new _.IH({type:M,key:d});N!==void 0&&N!==M.value?M.value=N:this.value!==M.value&&(this.value=M.value);return M},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(M){M&&(this.value=this)},
byKey:function(M){return(new _.IH({type:this.type,key:M})).value}});var sqJ;sqJ=null;_.Oj={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){sqJ=new _.IH({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return sqJ&&sqJ.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(M){this.invalid=M===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(M);return!this.invalid},
_getValidity:function(M){return this.hasValidator()?this._validator.validate(M):!0}};var PGL={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"}},oFV=[_.qm,
_.Oj,PGL];_.kQ({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 _.IH({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(M){return this.name+":"+M},this)},
applyIcon:function(M,d){this.removeIcon(M);if(d=this._cloneIcon(d,this.rtlMirroring&&this._targetIsRTL(M))){var N=_.Wl(M.root||M);N.insertBefore(d,N.childNodes[0]);return M._svgIcon=d}return null},
removeIcon:function(M){M._svgIcon&&(_.Wl(M.root||M).removeChild(M._svgIcon),M._svgIcon=null)},
_targetIsRTL:function(M){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(M&&M.nodeType!==Node.ELEMENT_NODE&&(M=M.host),this.__targetIsRTL=M&&window.getComputedStyle(M).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var M=Object.create(null);_.Wl(this).querySelectorAll("[id]").forEach(function(d){M[d.id]=d});
return M},
_cloneIcon:function(M,d){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[M],this.size,d)},
_prepareSvgClone:function(M,d,N){if(M){M=M.cloneNode(!0);var R=document.createElementNS("http://www.w3.org/2000/svg","svg");d=M.getAttribute("viewBox")||"0 0 "+d+" "+d;var X="pointer-events: none; display: block; width: 100%; height: 100%;";N&&M.hasAttribute("mirror-in-rtl")&&(X+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");R.setAttribute("viewBox",d);R.setAttribute("preserveAspectRatio","xMidYMid meet");R.setAttribute("focusable","false");R.style&&(R.style.cssText=
X);R.appendChild(M).removeAttribute("id");return R}return null}});var rIm=function(M){this.multi=!1;this.selection=[];this.selectCallback=M};
_.F=rIm.prototype;_.F.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.F.clear=function(M){this.selection.slice().forEach(function(d){(!M||M.indexOf(d)<0)&&this.setItemSelected(d,!1)},this)};
_.F.isSelected=function(M){return this.selection.indexOf(M)>=0};
_.F.setItemSelected=function(M,d){if(M!=null&&d!==this.isSelected(M)){if(d)this.selection.push(M);else{var N=this.selection.indexOf(M);N>=0&&this.selection.splice(N,1)}this.selectCallback&&this.selectCallback(M,d)}};
_.F.select=function(M){this.multi?this.toggle(M):this.get()!==M&&(this.setItemSelected(this.get(),!1),this.setItemSelected(M,!0))};
_.F.toggle=function(M){this.setItemSelected(M,!this.isSelected(M))};_.sH={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 rIm(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Wl(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(M){return this.items?this.items.indexOf(M):-1},
select:function(M){this.selected=M},
selectPrevious:function(){var M=this.items.length,d=M-1;this.selected!==void 0&&(d=(Number(this._valueToIndex(this.selected))-1+M)%M);this.selected=this._indexToValue(d)},
selectNext:function(){var M=0;this.selected!==void 0&&(M=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(M)},
selectIndex:function(M){this.select(this._indexToValue(M))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(M){this.listen(this,M,"_activateHandler")},
_removeListener:function(M){this.unlisten(this,M,"_activateHandler")},
_activateEventChanged:function(M,d){this._removeListener(d);this._addListener(M)},
_updateItems:function(){var M=_.Wl(this).queryDistributedElements(this.selectable||"*");M=Array.prototype.filter.call(M,this._bindFilterItem);this._setItems(M)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var M=this._valueToItem(this.selected);M?this._selection.select(M):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(M){return!this._excludedLocalNames[M.localName]},
_valueToItem:function(M){return M==null?null:this.items[this._valueToIndex(M)]},
_valueToIndex:function(M){if(this.attrForSelected)for(var d=0,N;N=this.items[d];d++){if(this._valueForItem(N)==M)return d}else return Number(M)},
_indexToValue:function(M){if(this.attrForSelected){if(M=this.items[M])return this._valueForItem(M)}else return M},
_valueForItem:function(M){if(!M)return null;if(!this.attrForSelected)return M=this.indexOf(M),M===-1?null:M;var d=M[Yv(this.attrForSelected)];return d!=void 0?d:M.getAttribute(this.attrForSelected)},
_applySelection:function(M,d){this.selectedClass&&this.toggleClass(this.selectedClass,d,M);this.selectedAttribute&&this.toggleAttribute.call(M,this.selectedAttribute,d);this._selectionChange();this.fire("iron-"+(d?"select":"deselect"),{item:M})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(M){return _.Wl(M).observeNodes(function(d){this._updateItems();this._updateSelected();this.fire("iron-items-changed",d,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(M){M=M.target;for(var d=this.items;M&&M!=this;){var N=d.indexOf(M);if(N>=0){d=this._indexToValue(N);this._itemActivate(d,M);break}M=M.parentNode}},
_itemActivate:function(M,d){this.fire("iron-activate",{selected:M,item:d},{cancelable:!0}).defaultPrevented||this.select(M)}};var Kdd={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(M){this.multi?this._toggleSelected(M):this.selected=M},
multiChanged:function(M){this._selection.multi=M;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(M){return this._indexToValue(this.indexOf(M))},this).filter(function(M){return M!=null},this)):_.sH._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(M){M=M||[];M=(this._valuesToItems(M)||[]).filter(function(N){return N!==null&&N!==void 0});
this._selection.clear(M);for(var d=0;d<M.length;d++)this._selection.setItemSelected(M[d],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var M=this._selection.get();this.multi?(this._setSelectedItems(M),this._setSelectedItem(M.length?M[0]:null)):M!==null&&M!==void 0?(this._setSelectedItems([M]),this._setSelectedItem(M)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(M){var d=this.selectedValues.indexOf(M);d<0?this.push("selectedValues",M):this.splice("selectedValues",d,1)},
_valuesToItems:function(M){return M==null?null:M.map(function(d){return this._valueToItem(d)},this)}},yI3=[_.sH,
Kdd];var JIo;
_.jO={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(M){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var d=this._valueToItem(M);d&&d.hasAttribute("disabled")||(this._setFocusedItem(d),Kdd.select.apply(this,arguments))},
_resetTabindices:function(){var M=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(d){d.setAttribute("tabindex",d===M?"0":"-1");d.setAttribute("aria-selected",this._selection.isSelected(d))},this)},
_updateMultiselectable:function(M){M?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(M){if(this._MODIFIER_KEYS.indexOf(M.key)===-1){this.cancelDebouncer("_clearSearchText");var d=this._searchText||"";d+=(M.key&&M.key.length==1?M.key:String.fromCharCode(M.keyCode)).toLocaleLowerCase();M=d.length;for(var N=0,R;R=this.items[N];N++)if(!R.hasAttribute("disabled")){var X=this.attrForItemTitle||"textContent";X=(R[X]||R.getAttribute(X)||"").trim();if(!(X.length<M)&&X.slice(0,M).toLocaleLowerCase()==d){this._setFocusedItem(R);break}}this._searchText=d;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var M=this.items.length,d=Number(this.indexOf(this.focusedItem)),N=1;N<M+1;N++){var R=this.items[(d-N+M)%M];if(!R.hasAttribute("disabled")){var X=_.Wl(R).getOwnerRoot()||document;this._setFocusedItem(R);if(_.Wl(X).activeElement==R)break}}},
_focusNext:function(){for(var M=this.items.length,d=Number(this.indexOf(this.focusedItem)),N=1;N<M+1;N++){var R=this.items[(d+N)%M];if(!R.hasAttribute("disabled")){var X=_.Wl(R).getOwnerRoot()||document;this._setFocusedItem(R);if(_.Wl(X).activeElement==R)break}}},
_applySelection:function(M,d){d?M.setAttribute("aria-selected","true"):M.setAttribute("aria-selected","false");_.sH._applySelection.apply(this,arguments)},
_focusedItemChanged:function(M,d){d&&d.setAttribute("tabindex","-1");!M||M.hasAttribute("disabled")||this.disabled||(M.setAttribute("tabindex","0"),M.focus())},
_onIronItemsChanged:function(M){M.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");_.jO._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);_.jO._shiftTabPressed=!1},1)},
_onFocus:function(M){!_.jO._shiftTabPressed&&(M=_.Wl(M).rootTarget,M===this||typeof M.tabIndex==="undefined"||this.isLightDescendant(M))&&(this._defaultFocusAsync=this.async(function(){var d=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);d?this._setFocusedItem(d):this.items[0]&&this._focusNext()}))},
_onUpKey:function(M){this._focusPrevious();M.detail.keyboardEvent.preventDefault()},
_onDownKey:function(M){this._focusNext();M.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var M=this.focusedItem;M&&M.blur()},
_onKeydown:function(M){this.keyboardEventMatchesKeys(M,"up down esc")||this._focusWithKeyboardEvent(M);M.stopPropagation()},
_activateHandler:function(M){_.sH._activateHandler.call(this,M);M.stopPropagation()},
_disabledChanged:function(M){M?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};JIo=[yI3,_.pG,_.jO];_.cIz={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(M){this.focusedItem&&(this.focusedItem.click(),M.detail.keyboardEvent.preventDefault())},
_onDownKey:function(M){this.focusedItem&&(this.focusedItem.click(),M.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(M){return M.ctrlKey||M.shiftKey||M.altKey||M.metaKey},
_onLeftKey:function(M){this._isSpecialKey(M.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),M.detail.keyboardEvent.preventDefault())},
_onRightKey:function(M){this._isSpecialKey(M.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),M.detail.keyboardEvent.preventDefault())},
_onKeydown:function(M){this.keyboardEventMatchesKeys(M,"up down left right esc")||this._focusWithKeyboardEvent(M)}};
_.SLz=[JIo,_.cIz];var zuL;zuL=new Set;_.sj={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):(zuL.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},this),this._fireResize())},
assignParentResizable:function(M){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=M)&&M._interestedResizables.indexOf(this)===-1&&(M._interestedResizables.push(this),M._subscribeIronResize(this))},
stopResizeNotificationsFor:function(M){var d=this._interestedResizables.indexOf(M);d>-1&&(this._interestedResizables.splice(d,1),this._unsubscribeIronResize(M))},
_subscribeIronResize:function(M){M.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(M){M.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(M){this._notifyingDescendant?M.stopPropagation():jF||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(M){var d=_.Wl(M).rootTarget;d!==this&&(d.assignParentResizable(this),this._notifyDescendant(d),M.stopPropagation())},
_parentResizableChanged:function(M){M&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(M){this.isAttached&&(this._notifyingDescendant=!0,M.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var M=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function N(){document.removeEventListener("readystatechange",N);M()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(d){d!==this&&d._findParent()},this):(zuL.forEach(function(d){d!==this&&d._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?zuL.delete(this):zuL.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
*/
_.bOI={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(M,d){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);d&&(M==="document"?this.scrollTarget=this._doc:typeof M==="string"?this.scrollTarget=(d=this.domHost)&&d.$?d.$[M]:_.Wl(this.ownerDocument).querySelector("#"+M):this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(M){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,M):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
M)},set _scrollLeft(M){this.scrollTarget===this._doc?window.scrollTo(M,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=M)},scroll:function(M,d){if(typeof M==="object"){var N=M.left;d=M.top}else N=M;N=N||0;d=d||0;this.scrollTarget===this._doc?window.scrollTo(N,d):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=N,this.scrollTarget.scrollTop=d)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(M,d){d=d===this._doc?window:d;M?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),d.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(d.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(M){this._shouldHaveListener=M;this._toggleScrollListener(M,this.scrollTarget)}};_.kQ({is:"iron-selector",_template:null,behaviors:[yI3]});var P0={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(M){if(M.timing)for(var d in M.timing)this.animationTiming[d]=M.timing[d];return this.animationTiming},
setPrefixedProperty:function(M,d,N){for(var R={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[d],X,A=0;X=R[A];A++)M.style[X]=N;M.style[d]=N},
complete:function(){}};_.kQ({is:"fade-in-animation",_template:null,behaviors:[P0],configure:function(M){return this._effect=new KeyframeEffect(M.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(M))}});_.kQ({is:"fade-out-animation",_template:null,behaviors:[P0],configure:function(M){return this._effect=new KeyframeEffect(M.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(M))}});var eud=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(M,d){for(var N in d)M[N]=d[N]},
_cloneConfig:function(M){var d={isClone:!0};this._copyProperties(d,M);return d},
_getAnimationConfigRecursive:function(M,d,N){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 R=M?this.animationConfig[M]:this.animationConfig;Array.isArray(R)||(R=[R]);if(R)for(var X,A=0;X=R[A];A++)if(X.animatable)X.animatable._getAnimationConfigRecursive(X.type||M,d,N);else if(X.id){var l=d[X.id];
l?(l.isClone||(d[X.id]=this._cloneConfig(l),l=d[X.id]),this._copyProperties(l,X)):d[X.id]=X}else N.push(X)}},
getAnimationConfig:function(M){var d={},N=[];this._getAnimationConfigRecursive(M,d,N);for(var R in d)N.push(d[R]);return N}},
{_configureAnimations:function(M){var d=[],N=[];if(M.length>0)for(var R,X=0;R=M[X];X++){var A=document.createElement(R.name);if(A.isNeonAnimation){var l=null;A.configure||(A.configure=function(){return null});
l=A.configure(R);N.push({result:l,config:R})}else console.warn(this.is+":",R.name,"not found!")}for(M=0;M<N.length;M++){l=N[M].result;R=N[M].config;try{typeof l.cancel!="function"&&(l=document.timeline.play(l))}catch(k){l=null,console.warn("Couldnt play","(",R.name,").",k)}l&&d.push({neonAnimation:A,config:R,animation:l})}return d},
_shouldComplete:function(M){for(var d=!0,N=0;N<M.length;N++)if(M[N].animation.playState!="finished"){d=!1;break}return d},
_complete:function(M){for(var d=0;d<M.length;d++)M[d].neonAnimation.complete(M[d].config);for(d=0;d<M.length;d++)M[d].animation.cancel()},
playAnimation:function(M,d){var N=this.getAnimationConfig(M);if(N){this._active=this._active||{};this._active[M]&&(this._complete(this._active[M]),delete this._active[M]);var R=this._configureAnimations(N);if(R.length==0)this.fire("neon-animation-finish",d,{bubbles:!1});else for(this._active[M]=R,N=0;N<R.length;N++)R[N].animation.onfinish=function(){this._shouldComplete(R)&&(this._complete(R),delete this._active[M],this.fire("neon-animation-finish",d,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var M in this._active){var d=this._active[M],N;for(N in d)d[N].animation&&d[N].animation.cancel&&d[N].animation.cancel()}this._active={}}}];var dB=function(M,d){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.arg=d;this.name=this.constructor.name;this.constructor=dB;this.__proto__=dB.prototype};
_.v(dB,Error);var HO3=aU(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype._marshalArgs=function(N,R,X){R=M.prototype._marshalArgs.call(this,N,R,X);if(this._legacyUndefinedCheck&&R.length>1)for(X=0;X<R.length;X++)if(R[X]===void 0||N[X].wildcard&&R[X].base===void 0)throw N=N[X].name,new dB("Argument '"+N+"' is undefined.",N);return R};
d.prototype._addPropertyEffect=function(N,R,X){return M.prototype._addPropertyEffect.call(this,N,R,ghj(X,X&&X.info&&X.info.methodName))};
d._addTemplatePropertyEffect=function(N,R,X){return M._addTemplatePropertyEffect.call(this,N,R,ghj(X))};
return d}),nFt=_.kQ.Class;
_.kQ.Class=function(M,d){return nFt(M,function(N){return d?d(HO3(N)):HO3(N)})};
var iOm=aU(function(M){var d=HO3(M);M=function(){return d.apply(this,arguments)||this};
_.v(M,d);_.Hm.Object.defineProperties(M.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return M}),fMm=Pm.mixin;
Pm.mixin=fMm?function(M){return iOm(fMm(M))}:iOm;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.oH=_.Qg.IronButtonState;var wIv=OX;/*

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 tmd;_.LdL="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");tmd=function(){var M=[],d;var N=N||_.LdL.length;for(d=0;d<8;d++)M[d]=_.LdL[0|Math.random()*N];return M.join("")};var mni=function(){return Math.random().toString(36).substring(7).split("").join(".")},p_Z="@@redux/INIT"+mni(),q1r="@@redux/REPLACE"+mni();var Iki=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Gxg=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var aMJ="top right bottom left width height size weight".split(" "),UNL=typeof MutationObserver!=="undefined",ucI=Gxg&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,CGo=function(){this.mutationEventsAdded_=this.JSC$9549_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=vh6(this.refresh.bind(this))},xNg=function(M,
d){var N=M.observers_;
d=N.indexOf(d);~d&&N.splice(d,1);!N.length&&M.JSC$9549_connected_&&Gxg&&M.JSC$9549_connected_&&(document.removeEventListener("transitionend",M.onTransitionEnd_),window.removeEventListener("resize",M.refresh),M.mutationsObserver_&&(M.mutationsObserver_.disconnect(),ucI&&(HTMLElement.prototype.attachShadow=ucI)),M.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",M.refresh),M.mutationsObserver_=null,M.mutationEventsAdded_=!1,M.JSC$9549_connected_=!1)};
CGo.prototype.refresh=function(){YLz(this)&&this.refresh()};
var YLz=function(M){M=M.observers_.filter(function(d){return ZOm(d),d.activeObservations_.length>0});
M.forEach(function(d){return EFo(d)});
return M.length>0},Mkd=function(M){if(Gxg&&!M.JSC$9549_connected_){document.addEventListener("transitionend",M.onTransitionEnd_);
window.addEventListener("resize",M.refresh);if(UNL){M.mutationsObserver_=new MutationObserver(M.refresh);var d={attributes:!0,childList:!0,characterData:!0,subtree:!0};M.mutationsObserver_.observe(document,d);ucI&&(function X(R){var A=R.shadowRoot;A&&(M.mutationsObserver_.observe(A,d),X(A));for(R=R.firstElementChild;R;)X(R),R=R.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var R=ucI.apply(this,_.wH.apply(0,arguments));
M.mutationsObserver_.observe(R,d);return R})}else document.addEventListener("DOMSubtreeModified",M.refresh),M.mutationEventsAdded_=!0;
M.JSC$9549_connected_=!0}};
CGo.prototype.onTransitionEnd_=function(M){var d=M.propertyName===void 0?"":M.propertyName;aMJ.some(function(N){return!!~d.indexOf(N)})&&this.refresh()};
var dHz=null;var N5I=function(M,d){for(var N=_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,Object.defineProperty(M,R,{value:d[R],enumerable:!1,writable:!1,configurable:!0})};var rJ=function(M){var d;return(M==null?void 0:(d=M.ownerDocument)==null?void 0:d.defaultView)||globalThis};var RtL={x:0,y:0,width:0,height:0},X5L=typeof SVGGraphicsElement!=="undefined"?function(M){return M instanceof rJ(M).SVGGraphicsElement}:function(M){return M instanceof rJ(M).SVGElement&&typeof M.getBBox==="function"};var F$L=function(M){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=M};
F$L.prototype.isActive=function(){var M=this.target;if(Gxg)if(X5L(M)){var d=M.getBBox();d={x:0,y:0,width:d.width,height:d.height}}else{var N=M.clientWidth,R=M.clientHeight;if(N||R){var X=rJ(M).getComputedStyle(M);d=Rn(X["padding-top"]);var A=Rn(X["padding-left"]),l=A+Rn(X["padding-right"]),k=d+Rn(X["padding-bottom"]),T=Rn(X.width),W=Rn(X.height);X.boxSizing==="border-box"&&(Math.round(T+l)!==N&&(T-=O5Z(X,"left","right")+l),Math.round(W+k)!==R&&(W-=O5Z(X,"top","bottom")+k));M!==rJ(M).document.documentElement&&
(M=Math.round(T+l)-N,R=Math.round(W+k)-R,Math.abs(M)!==1&&(T-=M),Math.abs(R)!==1&&(W-=R));d={x:A,y:d,width:T,height:W}}else d=RtL}else d=RtL;this.contentRect_=d;return d.width!==this.broadcastWidth||d.height!==this.broadcastHeight};var Aog=function(M,d){var N=d.x;var R=d.y;var X=d.width;d=d.height;var A=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);N5I(A,{x:N,y:R,width:X,height:d,top:R,right:N+X,bottom:d+R,left:N});N5I(this,{target:M,contentRect:A})};var VkV=function(M,d){var N=dHz;this.activeObservations_=[];this.observations_=new Map;if(typeof M!=="function")throw new TypeError("Qe");this.callback_=M;this.controller_=N;this.callbackCtx_=d};
VkV.prototype.observe=function(M){if(M===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(M instanceof rJ(M).Element))throw new TypeError("Se");var d=this.observations_;d.has(M)||(d.set(M,new F$L(M)),M=this.controller_,~M.observers_.indexOf(this)||M.observers_.push(this),M.JSC$9549_connected_||Mkd(M),this.controller_.refresh())}};
VkV.prototype.unobserve=function(M){if(M===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(M instanceof rJ(M).Element))throw new TypeError("Se");var d=this.observations_;d.has(M)&&(d.delete(M),d.size||xNg(this.controller_,this))}};
VkV.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();xNg(this.controller_,this)};
var ZOm=function(M){M.activeObservations_.splice(0);M.observations_.forEach(function(d){d.isActive()&&M.activeObservations_.push(d)})},EFo=function(M){if(M.activeObservations_.length>0){var d=M.callbackCtx_,N=M.activeObservations_.map(function(R){var X=R.target,A=R.contentRect_;
R.broadcastWidth=A.width;R.broadcastHeight=A.height;return new Aog(X,A)});
M.callback_.call(d,N,d);M.activeObservations_.splice(0)}};var KG=function(M){if(!(this instanceof KG))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");dHz||(dHz=new CGo);this.observer_=new VkV(M,this)};
KG.prototype.observe=function(M){this.observer_.observe(M)};
KG.prototype.unobserve=function(M){this.observer_.unobserve(M)};
KG.prototype.disconnect=function(){this.observer_.disconnect()};var SGv=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:KG;var Jij="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(" "),yiZ={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Kv2=null,jXN=null;var cir={},S1Z=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 fkS={text:1},ex2={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var l$J=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,$Hg={CONSTANT:{isUnwrappable:function(M){return M instanceof j5},
unwrap:geL},JAVASCRIPT:{isUnwrappable:function(M){return M instanceof _.KS},
unwrap:J_},HTML:{isUnwrappable:function(M){return M instanceof vQ},
unwrap:function(M){return jd(M)}},
RESOURCE_URL:{isUnwrappable:function(M){return M instanceof NO},
unwrap:_.XC},STRING:{isUnwrappable:function(M){return M instanceof Object},
unwrap:function(M){return String(M)}},
STYLE:{isUnwrappable:function(M){return typeof M==="string"},
unwrap:function(M){return M}},
URL:{isUnwrappable:function(M){return ly(M)},
unwrap:_.$8}},B5t={CONSTANT:LvZ,JAVASCRIPT:LvZ,HTML:function(M){M=M instanceof vQ?M:O0(String(M).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return jd(M)},
RESOURCE_URL:LvZ,STRING:String,STYLE:LvZ,URL:function(M,d){M=l$J.test(M)?M:void 0;return M===void 0?d:M}};var MI2=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,tSi=/[\t\n\f\r ]+/,akZ=/[\t\n\f\r ,]+/g,uqZ=function(M,d,N){return N},Bl={},kH3=function(){var M=function(){var R={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",R):R}(),d=M.createHTML(""),N=M.createScript("");
M=M.createScriptURL("");return{INNOCUOUS_STRING:d,INNOCUOUS_SCRIPT:N,INNOCUOUS_URL:M}}(),$P=kH3.INNOCUOUS_STRING,EhZ=kH3.INNOCUOUS_SCRIPT,Z5N=kH3.INNOCUOUS_URL;var T5z=function(M){var d=dI2(M);return function(N,R,X,A){return A?d(A,R,X,N):$P}}({reportHandler:function(M,d){if(M)try{throw Error(d);
}catch(N){_.qZ(N)}},
safeTypesBridge:function(M,d,N){var R=$Hg[d];return R.isUnwrappable(M)&&(R=R.unwrap(M,N),R!==N)?R:(0,B5t[d])(String(M),N)},
allowedIdentifierPrefixes:[""]});if(lM!==void 0)throw Error("Ue");lM=T5z;if(lM!==T5z)throw Error("Ve");kP("Injectable",[]);var PUL=kP("Inject",[["token",void 0]]),rMv=kP("Optional",[]);kP("Injectable",[]);var K2r=kP("Self",[]),yMA=kP("SkipSelf",[]);kP("Host",[]);var DHg={},gML=function(){};
gML.prototype.resolve=function(){throw Error("Xe");};
gML.prototype.addProvider=function(){throw Error("Xe");};var jxA=Function;var W$z=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,w5t=function(){this._reflect=window.Reflect};
_.F=w5t.prototype;_.F.factory=function(M){return function(){return new (Function.prototype.bind.apply(M,[null].concat(_.wu(_.wH.apply(0,arguments)))))}};
_.F._zipTypesAndAnnotations=function(M,d){var N=typeof M==="undefined"?Array(d.length):Array(M.length);for(var R=0;R<N.length;R++)N[R]=typeof M==="undefined"?[]:M[R]!=Object?[M[R]]:[],d&&Rvj(d[R])&&(N[R]=N[R].concat(d[R]));return N};
_.F._ownParameters=function(M,d){if(W$z.exec(M.toString()))return null;if(M.parameters&&M.parameters!==d.parameters)return M.parameters;var N=M.ctorParameters;return N&&N!==d.ctorParameters?(d=typeof N==="function"?N():N,M=d.map(function(R){return R&&R.type}),d=d.map(function(R){return R&&F2j(R.decorators)}),this._zipTypesAndAnnotations(M,d)):Rvj(this._reflect)&&Rvj(this._reflect.getOwnMetadata)&&(d=this._reflect.getOwnMetadata("parameters",M),(N=this._reflect.getOwnMetadata("design:paramtypes",M))||
d)?this._zipTypesAndAnnotations(N,d):Array(M.length).fill(void 0)};
_.F.parameters=function(M){if(!M.prototype)return[];var d=Object.getPrototypeOf(M.prototype).constructor;(M=this._ownParameters(M,d))||d===Object||(M=this.parameters(d));return M||[]};
_.F._ownAnnotations=function(M,d){if(M.annotations&&M.annotations!==d.annotations)return M=M.annotations,typeof M==="function"&&M.annotations&&(M=M.annotations),M;if(M.decorators&&M.decorators!==d.decorators)return F2j(M.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",M)};
_.F.annotations=function(M){var d=Object.getPrototypeOf(M.prototype).constructor;M=this._ownAnnotations(M,d)||[];return(d!==Object?this.annotations(d):[]).concat(M)};
_.F._ownPropMetadata=function(M,d){if(M.propMetadata&&M.propMetadata!==d.propMetadata)return M=M.propMetadata,typeof M==="function"&&M.propMetadata&&(M=M.propMetadata),M;if(M.propDecorators&&M.propDecorators!==d.propDecorators){var N=M.propDecorators,R={};Object.keys(N).forEach(function(X){R[X]=F2j(N[X])});
return R}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",M)};
_.F.propMetadata=function(M){var d=Object.getPrototypeOf(M.prototype).constructor,N={};if(d!==Object){var R=this.propMetadata(d);Object.keys(R).forEach(function(A){N[A]=R[A]})}var X=this._ownPropMetadata(M,d);
X&&Object.keys(X).forEach(function(A){var l=[];N.hasOwnProperty(A)&&l.push.apply(l,_.wu(N[A]));l.push.apply(l,_.wu(X[A]));N[A]=l});
return N};
_.F.getter=function(M){return function(d){return d[M]}};
_.F.method=function(M){return function(d,N){if(!d[M])throw Error("Ye`"+M);return d[M].apply(d,N)}};var p5V=function(){};var mHm=function(M){this.reflectionCapabilities=M};
_.v(mHm,p5V);_.F=mHm.prototype;_.F.factory=function(M){return this.reflectionCapabilities.factory(M)};
_.F.parameters=function(M){return this.reflectionCapabilities.parameters(M)};
_.F.annotations=function(M){return this.reflectionCapabilities.annotations(M)};
_.F.propMetadata=function(M){return this.reflectionCapabilities.propMetadata(M)};
_.F.getter=function(M){return this.reflectionCapabilities.getter(M)};
_.F.method=function(M){return this.reflectionCapabilities.method(M)};var gsA=new mHm(new w5t);var yg=function(M,d){this.token=M;this.id=d;if(M===void 0||M===null)throw Error("cf");};
_.Hm.Object.defineProperties(yg.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return TD(this.token)}}});
_.Hm.Object.defineProperties(yg,{JSC$9591_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return gB.JSC$9595_numberOfKeys}}});
var htC=function(){this._allKeys=new Map};
htC.prototype.get=function(M){if(M instanceof yg)return M;if(this._allKeys.has(M))return this._allKeys.get(M);var d=new yg(M,yg.JSC$9591_numberOfKeys);this._allKeys.set(M,d);return d};
_.Hm.Object.defineProperties(htC.prototype,{JSC$9595_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var gB=new htC;var JMi=function(M,d,N){this.key=M;this.optional=d;this.visibility=N},w6Z=function(M){return new JMi(M,!1,null)},mI6=[],q8N=function(M,d,N){this.key=M;
this.resolvedFactories=d;this.multiProvider=N},hvZ=function(M,d,N,R){this.factory=M;
this.dependencies=d;this.providerClass=N;this.providerValue=R};var c0={},SO=function(M,d){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=d===void 0?null:d;M=_.V(M);for(d=M.next();!d.done;d=M.next())this.addProvider(d.value)};
_.F=SO.prototype;_.F.addProvider=function(M){this.keyIdToIndex.set(M.key.id,this.keyIds.length);this.providers.push(M);this.keyIds.push(M.key.id);this.objs.push(c0)};
_.F.resolve=function(M,d){d=d===void 0?DHg:d;return this._getByKey(gB.get(DI(M)),null,d)};
_.F._new=function(M){if(this.constructedKeyIds[M.key.id])throw ke2(this,M.key);this.constructedKeyIds[M.key.id]=!0;return this._instantiateProvider(M)};
_.F._instantiateProvider=function(M){if(M.multiProvider){for(var d=Array(M.resolvedFactories.length),N=0;N<M.resolvedFactories.length;++N)d[N]=this._instantiate(M,M.resolvedFactories[N]);return d}return this._instantiate(M,M.resolvedFactories[0])};
_.F._instantiate=function(M,d){var N=this,R=d.factory;try{var X=d.dependencies.map(function(l){return N._getByReflectiveDependency(l)})}catch(l){throw l.addKey&&l.addKey(this,M.key),l;
}try{var A=R.apply(null,_.wu(X))}catch(l){throw TlL(this,l,M.key);}return A};
_.F._getByReflectiveDependency=function(M){return this._getByKey(M.key,M.visibility,M.optional?null:DHg)};
_.F._getByKey=function(M,d,N){return M===Q0t?this:d instanceof K2r?this._getByKeySelf(M,N):this._getByKeyDefault(M,N,d)};
_.F._getObjByKeyId=function(M){for(var d=0;d<this.keyIds.length;d++)if(this.keyIds[d]===M)return this.objs[d]===c0&&(this.objs[d]=this._new(this.providers[d])),this.objs[d];return c0};
_.F._throwOrNull=function(M,d){if(d!==DHg)return d;throw Blv(this,M);};
_.F._getByKeySelf=function(M,d){var N=this._getObjByKeyId(M.id);return N!==c0?N:this._throwOrNull(M,d)};
_.F._getByKeyDefault=function(M,d,N){for(var R=N=N instanceof yMA?this.parent:this;N instanceof SO;){var X=N._getObjByKeyId(M.id);if(X!==c0)return X;N=N.parent}X=void 0;if(N!==null)try{var A=N.resolve(M.token,d);if(A!==c0)return A}catch(l){X=l}if(!(R instanceof SO&&S8p(M.token))){if(X)throw X;return this._throwOrNull(M,d)}for(A=R;A.parent instanceof SO;)A=A.parent;A.addProvider(I0r({provide:M.token,useClass:M.token}));return A.resolve(M.token,d)};
_.F.toString=function(){return this.displayName};
_.Hm.Object.defineProperties(SO.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+cMv(this,function(M){return' "'+M.key.displayName+'" '}).join(", ")+"])"}}});
var Q0t=gB.get(DI(gML));(function(){let module=undefined;let exports=undefined;let define=undefined;(function(Y){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=Y();else if(typeof define==="function"&&define.amd)define([],Y);else{var B=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;B.XRegExp=Y()}})(function(){return function F(B,D,f){function t(h,m){if(!D[h]){if(!B[h]){var A=typeof require=="function"&&require;
if(!m&&A)return A(h,!0);if(G)return G(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=D[h]={exports:{}};B[h][0].call(m.exports,function(p){var l=B[h][1][p];return t(l?l:p)},m,m.exports,F,B,D,f)}return D[h].exports}
for(var G=typeof require=="function"&&require,u=0;u<f.length;u++)t(f[u]);return t}({1:[function(B,D){D.exports=function(f){function F(h){var m=/^(?:\(\?:\))*\^/,A=/\$(?:\(\?:\))*$/;
return m.test(h)&&A.test(h)&&A.test(h.replace(/\\[\s\S]/g,""))?h.replace(m,"").replace(A,""):h}
function t(h,m){m=m?"x":"";return f.isRegExp(h)?h.xregexp&&h.xregexp.captureNames?h:f(h.source,m):f(h,m)}
var G=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,u=f.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,G],"g",{conjunction:"or"});f.build=function(h,m,A){A=A||"";var p=A.indexOf("x")>-1,l=/^\(\?([\w$]+)\)/.exec(h);l&&(A=f._clipDuplicates(A+l[1]));var g={},v;for(v in m)m.hasOwnProperty(v)&&(l=t(m[v],p),g[v]={pattern:F(l.source),names:l.xregexp.captureNames||[]});h=t(h,p);var w=0,x,e=0,H=[0],y=h.xregexp.captureNames||[];h=h.source.replace(u,function(z,I,M,P,Q){var K=I||M;if(K){if(!g.hasOwnProperty(K))throw new ReferenceError("Undefined property "+
z);if(I){var L=y[e];H[++e]=++w;z="(?<"+(L||K)+">"}else z="(?:";x=w;return z+g[K].pattern.replace(G,function(S,T,N){if(T){if(L=g[K].names[w-x],++w,L)return"(?<"+L+">"}else if(N)return O=+N-1,g[K].names[O]?"\\k<"+g[K].names[O]+">":"\\"+(+N+x);return S})+")"}if(P){if(L=y[e],H[++e]=++w,L)return"(?<"+L+">"}else if(Q){var O=+Q-1;
return y[O]?"\\k<"+y[O]+">":"\\"+H[+Q]}return z});
return f(h,A)}}},
{}],2:[function(B,D){D.exports=function(f){function F(t,G,u,h){return{name:t,value:G,start:u,end:h}}
f.matchRecursive=function(t,G,u,h,m){h=h||"";m=m||{};var A=h.indexOf("g")>-1,p=h.indexOf("y")>-1,l=h.replace(/y/g,""),g=m.escapeChar;m=m.valueNames;var v=[],w=0,x=0,e=0,H=0;G=f(G,l);u=f(u,l);if(g){if(g.length>1)throw Error("Cannot use more than one escape character");g=f.escape(g);var y=new RegExp("(?:"+g+"[\\S\\s]|(?:(?!"+f.union([G,u],"",{conjunction:"or"}).source+")[^"+g+"])+)+",h.replace(/[^imu]+/g,""))}for(;;){g&&(e+=(f.exec(t,y,e,"sticky")||[""])[0].length);h=f.exec(t,G,e);l=f.exec(t,u,e);h&&
l&&(h.index<=l.index?l=null:h=null);if(h||l)x=(h||l).index,e=x+(h||l)[0].length;else if(!w)break;if(p&&!w&&x>H)break;if(h){if(!w){var z=x;var I=e}++w}else if(l&&w){if(!--w&&(m?(m[0]&&z>H&&v.push(F(m[0],t.slice(H,z),H,z)),m[1]&&v.push(F(m[1],t.slice(z,I),z,I)),m[2]&&v.push(F(m[2],t.slice(I,x),I,x)),m[3]&&v.push(F(m[3],t.slice(x,e),x,e))):v.push(t.slice(I,x)),H=e,!A))break}else throw Error("Unbalanced delimiter found in string");x===e&&++e}A&&!p&&m&&m[0]&&t.length>H&&v.push(F(m[0],t.slice(H),H,t.length));
return v}}},
{}],3:[function(B,D){D.exports=function(f){function F(p){return p.replace(/[- _]+/g,"").toLowerCase()}
function t(p){var l=/^\\[xu](.+)/.exec(p);return l?h(l[1]):p.charCodeAt(p.charAt(0)==="\\"?1:0)}
function G(p){var l="",g=-1;f.forEach(p,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(v){var w=t(v[1]);w>g+1&&(l+="\\u"+A(m(g+1)),w>g+2&&(l+="-\\u"+A(m(w-1))));g=t(v[2]||v[1])});
g<65535&&(l+="\\u"+A(m(g+1)),g<65534&&(l+="-\\uFFFF"));return l}
var u={},h=f._dec,m=f._hex,A=f._pad4;f.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(p,l,g){var v=p[1]==="P"||!!p[2],w=g.indexOf("A")>-1;g=F(p[4]||p[3]);var x=u[g];if(p[1]==="P"&&p[2])throw new SyntaxError("Invalid double negation "+p[0]);if(!u.hasOwnProperty(g))throw new SyntaxError("Unknown Unicode token "+p[0]);if(x.inverseOf){g=F(x.inverseOf);if(!u.hasOwnProperty(g))throw new ReferenceError("Unicode token missing data "+p[0]+" -> "+x.inverseOf);x=u[g];v=!v}if(!x.bmp&&!w)throw new SyntaxError("Astral mode required for Unicode token "+
p[0]);if(w){if(l==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");p=v?"a!":"a=";(l=u[g][p])||(l=u[g],g=u[g],w="",g.bmp&&!g.isBmpLast&&(w="["+g.bmp+"]"+(g.astral?"|":"")),g.astral&&(w+=g.astral),g.isBmpLast&&g.bmp&&(w+=(g.astral?"|":"")+"["+g.bmp+"]"),v=v?"(?:(?!"+w+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+w+")",l=l[p]=v);return v=l}return v=l==="class"?v?u[g]["b!"]||(u[g]["b!"]=G(u[g].bmp)):x.bmp:(v?"[^":"[")+x.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});f.addUnicodeData=function(p){for(var l,g=0;g<p.length;++g){l=p[g];if(!l.name)throw Error("Unicode token requires name");if(!(l.inverseOf||l.bmp||l.astral))throw Error("Unicode token has no character data "+l.name);u[F(l.name)]=l;l.alias&&(u[F(l.alias)]=l)}f.cache.flush("patterns")};
f._getUnicodeProperty=function(p){p=F(p);return u[p]}}},
{}],4:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");f.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(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var F=[{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"}];F.push({name:"Assigned",inverseOf:"Cn"});f.addUnicodeData(F)}},
{}],7:[function(B,D){D.exports=function(f){if(!f.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");f.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(B,D){var f=B("./xregexp");B("./addons/build")(f);B("./addons/matchrecursive")(f);B("./addons/unicode-base")(f);B("./addons/unicode-blocks")(f);B("./addons/unicode-categories")(f);B("./addons/unicode-properties")(f);B("./addons/unicode-scripts")(f);D.exports=f},
{"./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(B,D){function f(a){var b=!0;try{b=!!RegExp("",a)}catch(c){b=!1}return b}
function F(a,b,c,d,n){var r;a.xregexp={captureNames:b};if(n)return a;if(a.__proto__)a.__proto__=e.prototype;else for(r in e.prototype)a[r]=e.prototype[r];a.xregexp.source=c;a.xregexp.flags=d?d.split("").sort().join(""):d;return a}
function t(a){return y.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function G(a,b){if(!e.isRegExp(a))throw new TypeError("Type RegExp expected");var c=a.xregexp||{},d=O?a.flags:y.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],n="",r="",k=null,q=null;b=b||{};b.removeG&&(r+="g");b.removeY&&(r+="y");r&&(d=y.replace.call(d,new RegExp("["+r+"]+","g"),""));b.addG&&(n+="g");b.addY&&(n+="y");n&&(d=t(d+n));b.isInternalOnly||(c.source!==void 0&&(k=c.source),c.flags!=null&&(q=n?t(c.flags+n):c.flags));return a=F(new RegExp(b.source||a.source,d),a.xregexp&&a.xregexp.captureNames?
c.captureNames.slice(0):null,k,q,b.isInternalOnly)}
function u(a){return parseInt(a,16)}
function h(a,b,c){(b=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(c=c.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],b=y.test.call(new RegExp("^(?:"+c.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return b?"":"(?:)"}
function m(a){return parseInt(a,10).toString(16)}
function A(a,b){var c=a.length,d;for(d=0;d<c;++d)if(a[d]===b)return d;return-1}
function p(a,b){return S.call(a)==="[object "+b+"]"}
function l(a){for(;a.length<4;)a="0"+a;return a}
function g(a,b){var c;if(t(b)!==b)throw new SyntaxError("Invalid duplicate regex flag "+b);a=y.replace.call(a,/^\(\?([\w$]+)\)/,function(d,n){if(y.test.call(/[gy]/,n))throw new SyntaxError("Cannot use flag g or y in mode modifier "+d);b=t(b+n);return""});
for(c=0;c<b.length;++c)if(!Z[b.charAt(c)])throw new SyntaxError("Unknown regex flag "+b.charAt(c));return{pattern:a,flags:b}}
function v(a){var b={};return p(a,"String")?(e.forEach(a,/[^\s,]+/,function(c){b[c]=!0}),b):a}
function w(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function x(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function e(a,b){if(e.isRegExp(a)){if(b!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return G(a)}a=a===void 0?"":String(a);b=b===void 0?"":String(b);e.isInstalled("astral")&&b.indexOf("A")===-1&&(b+="A");M[a]||(M[a]={});if(!M[a][b]){var c={hasNamedCapture:!1,captureNames:[]},d="default",n="",r=0,k=g(a,b),q=k.pattern;for(k=k.flags;r<q.length;){do{for(var J,E=q,U=k,V=r,W=d,X=c,R=P.length,ba=E.charAt(V),aa=null;R--;){var C=P[R];if(!(C.leadChar&&C.leadChar!==ba||C.scope!==
W&&C.scope!=="all"||C.flag&&U.indexOf(C.flag)===-1)&&(J=e.exec(E,C.regex,V,"sticky"))){aa={matchLength:J[0].length,output:C.handler.call(X,J,W,U),reparse:C.reparse};break}}(C=aa)&&C.reparse&&(q=q.slice(0,r)+C.output+q.slice(r+C.matchLength))}while(C&&C.reparse);C?(n+=C.output,r+=C.matchLength||1):(C=e.exec(q,Q[d],r,"sticky")[0],n+=C,r+=C.length,C==="["&&d==="default"?d="class":C==="]"&&d==="class"&&(d="default"))}M[a][b]={pattern:y.replace.call(n,/(?:\(\?:\))+/g,"(?:)"),flags:y.replace.call(k,/[^gimuy]+/g,
""),captures:c.hasNamedCapture?c.captureNames:null}}c=M[a][b];return F(new RegExp(c.pattern,c.flags),c.captures,a,b)}
var H={astral:!1,natives:!1},y={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},z={},I={},M={},P=[],Q={"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]/},K=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
L=y.exec.call(/()??/,"")[1]===void 0,O=/x/.flags!==void 0,S={}.toString,T=f("u"),N=f("y"),Z={g:!0,i:!0,m:!0,u:T,y:N};e.prototype=RegExp();e.version="3.2.0";e._clipDuplicates=t;e._hasNativeFlag=f;e._dec=u;e._hex=m;e._pad4=l;e.addToken=function(a,b,c){c=c||{};var d=c.optionalFlags,n;c.flag&&w(c.flag);if(d)for(d=y.split.call(d,""),n=0;n<d.length;++n)w(d[n]);P.push({regex:G(a,{addG:!0,addY:N,isInternalOnly:!0}),handler:b,scope:c.scope||"default",flag:c.flag,reparse:c.reparse,leadChar:c.leadChar});e.cache.flush("patterns")};
e.cache=function(a,b){I[a]||(I[a]={});return I[a][b]||(I[a][b]=e(a,b))};
e.cache.flush=function(a){a==="patterns"?M={}:I={}};
e.escape=function(a){return y.replace.call(x(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
e.exec=function(a,b,c,d){var n="g",r,k=!1;(r=N&&!!(d||b.sticky&&d!==!1))?n+="y":d&&(k=!0,n+="FakeY");b.xregexp=b.xregexp||{};d=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!0,addY:r,source:k?b.source+"|()":void 0,removeY:d===!1,isInternalOnly:!0}));c=c||0;d.lastIndex=c;a=z.exec.call(d,a);k&&a&&a.pop()===""&&(a=null);b.global&&(b.lastIndex=a?d.lastIndex:0);return a};
e.forEach=function(a,b,c){for(var d=0,n=-1;d=e.exec(a,b,d);)c(d,++n,a,b),d=d.index+(d[0].length||1)};
e.install=function(a){a=v(a);!H.astral&&a.astral&&(H.astral=!0);!H.natives&&a.natives&&(RegExp.prototype.exec=z.exec,RegExp.prototype.test=z.test,String.prototype.match=z.match,String.prototype.replace=z.replace,String.prototype.split=z.split,H.natives=!0)};
e.isInstalled=function(a){return!!H[a]};
e.isRegExp=function(a){return S.call(a)==="[object RegExp]"};
e.match=function(a,b,c){var d=b.global&&c!=="one"||c==="all",n=(d?"g":"")+(b.sticky?"y":"")||"noGY";b.xregexp=b.xregexp||{};n=b.xregexp[n]||(b.xregexp[n]=G(b,{addG:!!d,removeG:c==="one",isInternalOnly:!0}));a=y.match.call(x(a),n);b.global&&(b.lastIndex=c==="one"&&a?a.index+a[0].length:0);return d?a||[]:a&&a[0]};
e.replace=function(a,b,c,d){var n=e.isRegExp(b),r=b.global&&d!=="one"||d==="all",k=(r?"g":"")+(b.sticky?"y":"")||"noGY",q=b;n?(b.xregexp=b.xregexp||{},q=b.xregexp[k]||(b.xregexp[k]=G(b,{addG:!!r,removeG:d==="one",isInternalOnly:!0}))):r&&(q=new RegExp(e.escape(String(b)),"g"));a=z.replace.call(x(a),q,c);n&&b.global&&(b.lastIndex=0);return a};
e.split=function(a,b,c){return z.split.call(x(a),b,c)};
e.test=function(a,b,c,d){return!!e.exec(a,b,c,d)};
e.union=function(a,b,c){function d(V,W,X){var R=U[r-E];if(W){if(++r,R)return"(?<"+R+">"}else if(X)return"\\"+(+X+E);return V}
c=c||{};var n=c.conjunction||"or",r=0;if(!p(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var k=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;c=[];for(var q,J=0;J<a.length;++J)if(q=a[J],e.isRegExp(q)){var E=r;var U=q.xregexp&&q.xregexp.captureNames||[];c.push(y.replace.call(e(q.source).source,k,d))}else c.push(e.escape(q));a=n==="none"?"":"|";return e(c.join(a),b)};
z.exec=function(a){var b=this.lastIndex,c=y.exec.apply(this,arguments),d;if(c){if(!L&&c.length>1&&A(c,"")>-1){var n=G(this,{removeG:!0,isInternalOnly:!0});y.replace.call(String(a).slice(c.index),n,function(){var r=arguments.length,k;for(k=1;k<r-2;++k)arguments[k]===void 0&&(c[k]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(d=1;d<c.length;++d)(n=this.xregexp.captureNames[d-1])&&(c[n]=c[d]);
this.global&&!c[0].length&&this.lastIndex>c.index&&(this.lastIndex=c.index)}this.global||(this.lastIndex=b);return c};
z.test=function(a){return!!z.exec.call(this,a)};
z.match=function(a){if(!e.isRegExp(a))a=new RegExp(a);else if(a.global){var b=y.match.apply(this,arguments);a.lastIndex=0;return b}return z.exec.call(a,x(this))};
z.replace=function(a,b){var c=e.isRegExp(a);if(c){if(a.xregexp)var d=a.xregexp.captureNames;var n=a.lastIndex}else a+="";var r=p(b,"Function")?y.replace.call(String(this),a,function(){var k=arguments,q;if(d)for(k[0]=new String(k[0]),q=0;q<d.length;++q)d[q]&&(k[0][d[q]]=k[q+1]);c&&a.global&&(a.lastIndex=k[k.length-2]+k[0].length);return b.apply(void 0,k)}):y.replace.call(this==null?this:String(this),a,function(){var k=arguments;
return y.replace.call(String(b),K,function(q,J,E){if(J){E=+J;if(E<=k.length-3)return k[E]||"";E=d?A(d,J):-1;if(E<0)throw new SyntaxError("Backreference to undefined group "+q);return k[E+1]||""}if(E==="$")return"$";if(E==="&"||+E===0)return k[0];if(E==="`")return k[k.length-1].slice(0,k[k.length-2]);if(E==="'")return k[k.length-1].slice(k[k.length-2]+k[0].length);E=+E;if(!isNaN(E)){if(E>k.length-3)throw new SyntaxError("Backreference to undefined group "+q);return k[E]||""}throw new SyntaxError("Invalid token "+
q);})});
c&&(a.lastIndex=a.global?0:n);return r};
z.split=function(a,b){if(!e.isRegExp(a))return y.split.apply(this,arguments);var c=String(this),d=[],n=a.lastIndex,r=0,k;b=(b===void 0?-1:b)>>>0;e.forEach(c,a,function(q){q.index+q[0].length>r&&(d.push(c.slice(r,q.index)),q.length>1&&q.index<c.length&&Array.prototype.push.apply(d,q.slice(1)),k=q[0].length,r=q.index+k)});
r===c.length?(!y.test.call(a,"")||k)&&d.push(""):d.push(c.slice(r));a.lastIndex=n;return d.length>b?d.slice(0,b):d};
e.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,b){if(a[1]==="B"&&b==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});e.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,b,c){b=u(a[1]);if(b>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(b<=65535)return"\\u"+l(m(b));if(T&&c.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});e.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
e.addToken(/\(\?#[^)]*\)/,h,{leadChar:"("});e.addToken(/\s+|#[^\n]*\n?/,h,{flag:"x"});e.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});e.addToken(/\\k<([\w$]+)>/,function(a){var b=isNaN(a[1])?A(this.captureNames,a[1])+1:+a[1],c=a.index+a[0].length;if(!b||b>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+b+(c===a.input.length||isNaN(a.input.charAt(c))?"":"(?:)")},{leadChar:"\\"});
e.addToken(/\\(\d+)/,function(a,b){if(!(b==="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:"\\"});e.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(A(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:"("});
e.addToken(/\((?!\?)/,function(a,b,c){if(c.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});D.exports=e},
{}]},{},[8])(8)})}).call(globalThis);var qcJ=window.XRegExp;var I$V=-1,vMt=function(M){addEventListener("pageshow",function(d){d.persisted&&(I$V=d.timeStamp,M(d))},!0)};var j0L=function(M,d,N){var R=OXd,X,A;return function(l){d.value>=0&&(l||N)&&((A=d.value-(X||0))||X===void 0)&&(X=d.value,d.delta=A,l=d.value,d.rating=l>R[1]?"poor":l>R[0]?"needs-improvement":"good",M(d))}};var zJ=-1,s03=function(M){document.visibilityState==="hidden"&&zJ>-1&&(zJ=M.type==="visibilitychange"?M.timeStamp:0,removeEventListener("visibilitychange",s03,!0),removeEventListener("prerenderingchange",s03,!0))},PaL=function(){addEventListener("visibilitychange",s03,!0);
addEventListener("prerenderingchange",s03,!0)},oML=function(){zJ<0&&(zJ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,PaL(),vMt(function(){setTimeout(function(){zJ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
PaL()},0)}));
return{get firstHiddenTime(){return zJ}}};var ro3=function(){var M=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(M&&M.responseStart>0&&M.responseStart<performance.now())return M};var K$z=function(){var M=ro3();return M&&M.activationStart||0};var yog=function(){var M=ro3(),d="navigate";I$V>=0?d="back-forward-cache":M&&(document.prerendering||K$z()>0?d="prerender":document.wasDiscarded?d="restore":M.type&&(d=M.type.replace(/_/g,"-")));return{name:"LCP",value:-1,rating:"good",delta:0,entries:[],id:"v4-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:d}};var Jom=function(M){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var d=new PerformanceObserver(function(N){Promise.resolve().then(function(){M(N.getEntries())})});
d.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return d}}catch(N){}};var coV=function(M){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M()})};var Scg=function(M){var d=!1;return function(){d||(M(),d=!0)}};var ztL=function(M){document.prerendering?addEventListener("prerenderingchange",function(){return M()},!0):M()};var bXg=function(M){requestAnimationFrame(function(){return requestAnimationFrame(function(){return M()})})};var OXd=[2500,4E3],etd={},cFj=function(M){var d=d||{};ztL(function(){var N=oML(),R=yog(),X=function(T){d.reportAllChanges||(T=T.slice(-1));T.forEach(function(W){W.startTime<N.firstHiddenTime&&(R.value=Math.max(W.startTime-K$z(),0),R.entries=[W],l())})},A=Jom(X);
if(A){var l=j0L(M,R,d.reportAllChanges);var k=Scg(function(){etd[R.id]||(X(A.takeRecords()),A.disconnect(),etd[R.id]=!0,l(!0))});
["keydown","click"].forEach(function(T){addEventListener(T,function(){var W=k,w=self.requestIdleCallback||self.setTimeout,p=-1;W=Scg(W);document.visibilityState==="hidden"?W():(p=w(W),coV(W));return p},!0)});
coV(k);vMt(function(T){R=yog();l=j0L(M,R,d.reportAllChanges);bXg(function(){R.value=performance.now()-T.timeStamp;etd[R.id]=!0;l(!0)})})}})};var HXd;var nMV;_.Z=function(){return nMV!==void 0?nMV:nMV=document.createElement("template")};
document.head.appendChild(_.Z().content);var iXt;_.kQ({_template:function(){if(iXt!==void 0)return iXt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;HXd===void 0&&(HXd=document.createElement("template"));var R=HXd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return iXt=M},
is:"tp-yt-app-toolbar"});var f$3;var L$d;_.b0=function(){};
_.b0=_.kQ({_template:function(){if(L$d!==void 0)return L$d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;f$3===void 0&&(f$3=document.createElement("template"));var R=f$3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return L$d=M},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.b0.instance||(_.b0.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(M){this._text===M&&(M+="\u00a0");this._text="";this.async(function(){this._text=M},this.timeout)},
_onIronAnnounce:function(M){M.detail&&M.detail.text&&this.announce(M.detail.text)}});
_.b0.instance=null;_.b0.requestAvailability=function(){_.b0.instance||(_.b0.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.b0.instance):document.addEventListener("load",function(){document.body.appendChild(_.b0.instance)})};var tkm;var GHg;/*

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
*/
_.kQ({_template:function(){if(GHg!==void 0)return GHg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;tkm===void 0&&(tkm=document.createElement("template"));var R=tkm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return GHg=M},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.Oj,_.mQ],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(M){this.$.textarea.selectionStart=M},set selectionEnd(M){this.$.textarea.selectionEnd=M},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var M=this.$.textarea.validity.valid;M&&(this.required&&this.value===""?M=!1:this.hasValidator()&&(M=_.Oj.validate.call(this,this.value)));this.invalid=!M;this.fire("iron-input-validate");return M},
_bindValueChanged:function(M){this.value=M},
_valueChanged:function(M){var d=this.textarea;d&&(d.value!==M&&(d.value=M||M===0?M:""),this.bindValue=M,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(M){var d=_.Wl(M).path;this.value=d?d[0].value:M.target.value},
_constrain:function(M){var d;M=M||[""];for(d=this.maxRows>0&&M.length>this.maxRows?M.slice(0,this.maxRows):M.slice(0);this.rows>0&&d.length<this.rows;)d.push("");return d.join("\n")+"\u00a0"},
_valueForMirror:function(){var M=this.textarea;if(M)return this.tokens=M&&M.value?M.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var a$e;var UHd;_.kQ({_template:function(){if(UHd!==void 0)return UHd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;a$e===void 0&&(a$e=document.createElement("template"));var R=a$e;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return UHd=M},
is:"tp-yt-iron-collapse",behaviors:[_.sj],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(M,d){M=M==="auto"?"":M;d=d&&!this.noAnimation&&this.isAttached&&this._desiredSize!==M;this._desiredSize=M;this._updateTransition(!1);d&&(d=this._calcSize(),M===""&&(this.style[this._dimensionMax]="",M=this._calcSize()),this.style[this._dimensionMax]=d,this.scrollTop=this.scrollTop,this._updateTransition(!0),d=M!==d);this.style[this._dimensionMax]=M;d||this._transitionEnd()},
enableTransition:function(M){_.ms._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!M},
_updateTransition:function(M){this.style.transitionDuration=M&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(M){_.Wl(M).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var uTC;var CaJ;var xHd=void 0,Ycm={properties:{sizingTarget:{type:Object,value:function(){var M;return(M=this.hostElement)!=null?M:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var M,d=_.Wl((M=this.hostElement)!=null?M:
this).parentNode;d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(d=d.host);return d},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var M;this._memoizedIsRTL=window.getComputedStyle((M=this.hostElement)!=null?M:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var M;window.getComputedStyle((M=this.hostElement)!=null?M:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var M,d=window.getComputedStyle((M=this.hostElement)!=null?M:this);M=window.getComputedStyle(this.sizingTarget);var N,R,X;this._fitInfo={inlineStyle:{top:((N=this.hostElement)!=null?N:this).style.top||"",left:((R=this.hostElement)!=null?R:this).style.left||"",position:((X=this.hostElement)!=null?X:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:d.top!=="auto"?"top":d.bottom!=="auto"?"bottom":null,horizontally:d.left!=="auto"?"left":d.right!=="auto"?"right":null},sizedBy:{height:M.maxHeight!=="none",width:M.maxWidth!=="none",minWidth:parseInt(M.minWidth,10)||0,minHeight:parseInt(M.minHeight,10)||0},margin:{top:parseInt(d.marginTop,10)||0,right:parseInt(d.marginRight,10)||0,bottom:parseInt(d.marginBottom,10)||0,left:parseInt(d.marginLeft,10)||0}}}},
resetFit:function(){var M=this._fitInfo||{},d;for(d in M.sizerInlineStyle)this.sizingTarget.style[d]=M.sizerInlineStyle[d];for(d in M.inlineStyle){var N=void 0;((N=this.hostElement)!=null?N:this).style[d]=M.inlineStyle[d]}this._fitInfo=null},
refit:function(){var M=this.sizingTarget.scrollLeft,d=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=M;this.sizingTarget.scrollTop=d},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var M;((M=this.hostElement)!=null?M:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var d;((d=this.hostElement)!=null?d:this).style.left="0px";var N;((N=this.hostElement)!=null?N:this).style.top="0px";var R,X=((R=this.hostElement)!=null?R:this).getBoundingClientRect();d=this.__getNormalizedRect(this.positionTarget);R=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(R={left:R.left+24,right:R.right-24,top:R.top+24,bottom:R.bottom-24});if(this.expandSizingTargetForScrollbars){var A=this.sizingTarget.offsetWidth;var l=this.sizingTarget.offsetHeight;var k=this.sizingTarget.clientWidth;var T=this.sizingTarget.clientHeight}M=this._fitInfo.margin;d=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:X.width+M.left+M.right,height:X.height+M.top+M.bottom},X,d,R);var W=d.left+M.left,w=d.top+M.top;N=Math.min(R.right-M.right,W+X.width);var p=Math.min(R.bottom-
M.bottom,w+X.height);W=Math.max(R.left+M.left,Math.min(W,N-this._fitInfo.sizedBy.minWidth));w=Math.max(R.top+M.top,Math.min(w,p-this._fitInfo.sizedBy.minHeight));N=Math.max(N-W,this._fitInfo.sizedBy.minWidth);p=Math.max(p-w,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=N+"px";this.sizingTarget.style.maxHeight=p+"px";W-=X.left;X=w-X.top;var m;((m=this.hostElement)!=null?m:this).style.left=W+"px";var I;((I=this.hostElement)!=null?I:this).style.top=X+"px";if(this.expandSizingTargetForScrollbars){m=
this.sizingTarget.offsetHeight;l=m-this.sizingTarget.clientHeight-(l-T);if(l>0){this.sizingTarget.style.maxHeight=Math.min(R.height-M.top-M.bottom,p+l)+"px";l=this.sizingTarget.offsetHeight;T=l-m;var O;d.verticalAlign==="top"?O=X:d.verticalAlign==="middle"?O=X-T/2:d.verticalAlign==="bottom"&&(O=X-T);O=Math.max(R.top+M.top,Math.min(O,R.bottom-M.bottom-l));var y;((y=this.hostElement)!=null?y:this).style.top=O+"px"}O=this.sizingTarget.offsetWidth;A=O-this.sizingTarget.clientWidth-(A-k);if(A>0){xHd!==
void 0?k=xHd:(k=document.createElement("div"),Object.assign(k.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),y=document.createElement("div"),y.style.width="200px",y.style.height="200px",k.appendChild(y),document.body.appendChild(k),xHd=Math.abs(k.offsetWidth-100)>1?k.offsetWidth-k.clientWidth:0,document.body.removeChild(k),k=xHd);this.sizingTarget.style.maxWidth=Math.min(R.width-M.left-M.right,N+A-k)+"px";A=this.sizingTarget.offsetWidth+k;k=A-O;var c;
d.horizontalAlign==="left"?c=W:d.horizontalAlign==="center"?c=W-k/2:d.horizontalAlign==="right"&&(c=W-k);c=Math.max(R.left+M.left,Math.min(c,R.right-M.right-A));var e;((e=this.hostElement)!=null?e:this).style.left=c+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var M=this._fitInfo;if(!M.positionedBy.vertically){var d;((d=this.hostElement)!=null?d:this).style.position="fixed";var N;((N=this.hostElement)!=null?N:this).style.top="0px"}if(!M.positionedBy.horizontally){var R;((R=this.hostElement)!=null?R:this).style.position="fixed";var X;((X=this.hostElement)!=null?X:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var A;d=((A=this.hostElement)!=null?A:this).getBoundingClientRect();
M.sizedBy.height||this.__sizeDimension(d,M.positionedBy.vertically,"top","bottom","Height");M.sizedBy.width||this.__sizeDimension(d,M.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(M,d,N,R,X){this.__sizeDimension(M,d,N,R,X)},
__sizeDimension:function(M,d,N,R,X){var A=this._fitInfo,l=this.__getNormalizedRect(this.fitInto);l=X==="Width"?l.width:l.height;M=(d=d===R)?l-M[R]:M[N];N=A.margin[d?N:R];R="offset"+X;var k;A=((k=this.hostElement)!=null?k:this)[R]-this.sizingTarget[R];this.sizingTarget.style["max"+X]=l-N-M-A+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var M=this._fitInfo.positionedBy;if(!M.vertically||!M.horizontally){var d;((d=this.hostElement)!=null?d:this).style.position="fixed";if(!M.vertically){var N;((N=this.hostElement)!=null?N:this).style.top="0px"}if(!M.horizontally){var R;((R=this.hostElement)!=null?R:this).style.left="0px"}var X;d=((X=this.hostElement)!=null?X:this).getBoundingClientRect();X=this.__getNormalizedRect(this.fitInto);if(!M.vertically){N=X.top-d.top+(X.height-
d.height)/2;var A;((A=this.hostElement)!=null?A:this).style.top=N+"px"}if(!M.horizontally){M=X.left-d.left+(X.width-d.width)/2;var l;((l=this.hostElement)!=null?l:this).style.left=M+"px"}}}},
__getNormalizedRect:function(M){return M===document.documentElement||M===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:M.getBoundingClientRect()},
__getOffscreenArea:function(M,d,N){return Math.abs(Math.min(0,M.top)+Math.min(0,N.bottom-(M.top+d.height)))*d.width+Math.abs(Math.min(0,M.left)+Math.min(0,N.right-(M.left+d.width)))*d.height},
__getPosition:function(M,d,N,R,X,A){var l=[{verticalAlign:"top",horizontalAlign:"left",top:X.top+this.verticalOffset,left:X.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:X.top+this.verticalOffset,left:X.right-N.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:X.bottom-N.height-this.verticalOffset,left:X.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:X.bottom-N.height-this.verticalOffset,left:X.right-N.width-
this.horizontalOffset}];if(this.noOverlap){for(var k=0,T=l.length;k<T;k++){var W={},w;for(w in l[k])W[w]=l[k][w];l.push(W)}l[0].top=l[1].top+=X.height;l[2].top=l[3].top-=X.height;l[4].left=l[6].left+=X.width;l[5].left=l[7].left-=X.width}d=d==="auto"?null:d;M=M==="auto"?null:M;M&&M!=="center"||(l.push({verticalAlign:"top",horizontalAlign:"center",top:X.top+this.verticalOffset+(this.noOverlap?X.height:0),left:X.left-R.width/2+X.width/2+this.horizontalOffset}),l.push({verticalAlign:"bottom",horizontalAlign:"center",
top:X.bottom-N.height-this.verticalOffset-(this.noOverlap?X.height:0),left:X.left-R.width/2+X.width/2+this.horizontalOffset}));d&&d!=="middle"||(l.push({verticalAlign:"middle",horizontalAlign:"left",top:X.top-R.height/2+X.height/2+this.verticalOffset,left:X.left+this.horizontalOffset+(this.noOverlap?X.width:0)}),l.push({verticalAlign:"middle",horizontalAlign:"right",top:X.top-R.height/2+X.height/2+this.verticalOffset,left:X.right-N.width-this.horizontalOffset-(this.noOverlap?X.width:0)}));d==="middle"&&
M==="center"&&l.push({verticalAlign:"middle",horizontalAlign:"center",top:X.top-R.height/2+X.height/2+this.verticalOffset,left:X.left-R.width/2+X.width/2+this.horizontalOffset});for(k=0;k<l.length;k++){R=l[k];X=R.verticalAlign===d;T=R.horizontalAlign===M;if(!this.dynamicAlign&&!this.noOverlap&&X&&T){var p=R;break}W=(!d||X)&&(!M||T);if(this.dynamicAlign||W){R.offscreenArea=this.__getOffscreenArea(R,N,A);if(R.offscreenArea===0&&W){p=R;break}p=p||R;W=R.offscreenArea-p.offscreenArea;if(W<0||W===0&&(X||
T))p=R}}return p}};/*

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 eO,ZXL,EMd;eO=Element.prototype;ZXL=eO.matches||eO.matchesSelector||eO.mozMatchesSelector||eO.msMatchesSelector||eO.oMatchesSelector||eO.webkitMatchesSelector;EMd=function(){};
_.doo=function(M){var d=MBV,N=[];return d._collectTabbableNodes(M,N)?d._sortByTabIndex(N):N};
_.F=EMd.prototype;_.F._normalizedTabIndex=function(M){return(ZXL.call(M,"input, select, textarea, button, object")?ZXL.call(M,":not([disabled])"):ZXL.call(M,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(M=M.getAttribute("tabindex")||0,Number(M)):-1};
_.F._collectTabbableNodes=function(M,d){if(M.nodeType!==Node.ELEMENT_NODE||!this._isVisible(M))return!1;var N=this._normalizedTabIndex(M),R=N>0;N>=0&&d.push(M);if(M.localName==="content"||M.localName==="slot")N=_.Wl(M).getDistributedNodes();else{var X;N=((X=_.Wl(M).shadowRoot)!=null?X:_.Wl(M.root||M)).children}for(M=0;M<N.length;M++)R=this._collectTabbableNodes(N[M],d)||R;return R};
_.F._isVisible=function(M){var d=M.style;return d.visibility!=="hidden"&&d.display!=="none"?(d=window.getComputedStyle(M),d.visibility!=="hidden"&&d.display!=="none"):!1};
_.F._sortByTabIndex=function(M){var d=M.length;if(d<2)return M;var N=Math.ceil(d/2);d=this._sortByTabIndex(M.slice(0,N));M=this._sortByTabIndex(M.slice(N));return this._mergeSortByTabIndex(d,M)};
_.F._mergeSortByTabIndex=function(M,d){for(var N=[];M.length>0&&d.length>0;)this._hasLowerTabOrder(M[0],d[0])?N.push(d.shift()):N.push(M.shift());return N.concat(M,d)};
_.F._hasLowerTabOrder=function(M,d){M=Math.max(M.tabIndex,0);d=Math.max(d.tabIndex,0);return M===0||d===0?d>M:M>d};
var MBV=new EMd;var NWL;var RkV;_.kQ({_template:function(){if(RkV!==void 0)return RkV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;NWL===void 0&&(NWL=document.createElement("template"));var R=NWL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return RkV=M},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.Wl(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Wl(this.parentNode).removeChild(this)},
_onTransitionend:function(M){M&&M.target===this&&this.complete()},
_openedChanged:function(M){M?this.prepare():(M=window.getComputedStyle(this),M.transitionDuration!=="0s"&&M.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var H0=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ha(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)};
H0.prototype._bringOverlayAtIndexToFront=function(M){var d=this._overlays[M];if(d){var N=this._overlays.length-1,R=this._overlays[N];R&&this._shouldBeBehindOverlay(d,R)&&N--;if(!(M>=N)){R=Math.max(this._getZ(_.XCt(this)),this._minimumZ);for(this._getZ(d)<=R&&this._applyOverlayZ(d,R);M<N;)this._overlays[M]=this._overlays[M+1],M++;this._overlays[N]=d}}};
H0.prototype.addOverlay=function(M){var d=this._overlays.indexOf(M);if(d>=0)this._bringOverlayAtIndexToFront(d);else{d=this._overlays.length;var N=this._overlays[d-1],R=Math.max(this._getZ(N),this._minimumZ),X=this._getZ(M);N&&this._shouldBeBehindOverlay(M,N)&&(this._applyOverlayZ(N,R),d--,R=Math.max(this._getZ(this._overlays[d-1]),this._minimumZ));X<=R&&this._applyOverlayZ(M,R);this._overlays.splice(d,0,M)}this.trackBackdrop()};
H0.prototype.removeOverlay=function(M){M=this._overlays.indexOf(M);M!==-1&&(this._overlays.splice(M,1),this.trackBackdrop())};
_.XCt=function(M){return M._overlays[M._overlays.length-1]};
_.F=H0.prototype;_.F.trackBackdrop=function(){var M=this._overlayWithBackdrop();if(M||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(M)-1,this.backdropElement.opened=!!M,this.backdropElement.prepare()};
_.F._overlayWithBackdrop=function(){for(var M=this._overlays.length-1;M>=0;M--)if(this._overlays[M].withBackdrop)return this._overlays[M]};
_.F._getZ=function(M){var d=this._minimumZ;if(M){var N,R,X=Number(((N=M.hostElement)!=null?N:M).style.zIndex||window.getComputedStyle((R=M.hostElement)!=null?R:M).zIndex);X===X&&(d=X)}return d};
_.F._setZ=function(M,d){var N;((N=M.hostElement)!=null?N:M).style.zIndex=d};
_.F._applyOverlayZ=function(M,d){this._setZ(M,d+2)};
_.F._overlayInPath=function(M){M=M||[];for(var d=0;d<M.length;d++){var N=void 0;if(((N=M[d].polymerController)!=null?N:M[d])._manager===this)return M[d]}};
_.F._onCaptureClick=function(M){var d=this._overlays.length-1;if(d!==-1)for(var N=_.Wl(M).path,R,X;(R=this._overlays[d])&&this._overlayInPath(N)!==((X=R.hostElement)!=null?X:R);)if(R._onCaptureClick(M),R.allowClickThrough)d--;else break};
_.F._onCaptureFocus=function(M){var d=_.XCt(this);d&&d._onCaptureFocus(M)};
_.F._onCaptureKeyDown=function(M){var d=_.XCt(this);d&&(_.pG.keyboardEventMatchesKeys(M,"esc")?d._onCaptureEsc(M):_.pG.keyboardEventMatchesKeys(M,"tab")&&d._onCaptureTab(M))};
_.F._shouldBeBehindOverlay=function(M,d){return!M.alwaysOnTop&&d.alwaysOnTop&&!d.contains(M)};
_.Hm.Object.defineProperties(H0.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var M=document.activeElement;M&&M instanceof Element!==!1||(M=document.body);for(;M.root&&_.Wl(M.root).activeElement;)M=_.Wl(M.root).activeElement;return M}}});
_.nG=new H0;var zvi=0,beZ=0,evZ=null,Her=[],wB=["wheel","mousewheel","DOMMouseScroll"],ns6;_.Q("web_no_lock_on_touchstart_killswitch")&&(wB.push("touchstart"),wB.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;_.i0={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:_.nG},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var M;return this._focusedChild||_.Wl((M=this.hostElement)!=null?M:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var M;return _.doo((M=this.hostElement)!=null?M:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var M;this._observer=_.Wl((M=this.hostElement)!=null?M:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var M;_.Wl((M=this.hostElement)!=null?M:this).unobserveNodes(this._observer)}this._observer=null;for(var d in this.__rafs)this.__rafs[d]!==null&&cancelAnimationFrame(this.__rafs[d]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(M){this.fire("iron-overlay-canceled",M,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var M;((M=this.hostElement)!=null?M:this).style.outline="none";var d;((d=this.hostElement)!=null?d:this).style.display="none"}},
_openedChanged:function(M){if(M){var d;((d=this.hostElement)!=null?d:this).removeAttribute("aria-hidden")}else{var N;((N=this.hostElement)!=null?N:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var M;if(this.withBackdrop&&!((M=this.hostElement)!=null?M:this).hasAttribute("tabindex")){var d;((d=this.hostElement)!=null?d:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var N;((N=this.hostElement)!=null?N:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";var d;((d=this.hostElement)!=null?d:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var M,d;((M=this.hostElement)!=null?M:this).style.transition=((d=this.hostElement)!=null?d:this).style.webkitTransition="none";var N,R;((N=this.hostElement)!=null?N:this).style.transform=((R=this.hostElement)!=null?R:this).style.webkitTransform="none";var X;((X=this.hostElement)!=null?X:this).style.display=""},
_finishPositioning:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";this.scrollTop=this.scrollTop;var d,N;((d=this.hostElement)!=null?d:this).style.transition=((N=this.hostElement)!=null?N:this).style.webkitTransition="";var R,X;((R=this.hostElement)!=null?R:this).style.transform=((X=this.hostElement)!=null?X:this).style.webkitTransform="";var A;((A=this.hostElement)!=null?A:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var M=this._manager.deepActiveElement,d;if(!(d=M===document.body))a:{for(;M;M=M.assignedSlot||M.parentNode||M.host)if(M===this){d=!0;break a}d=!1}d&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(M){this.noCancelOnOutsideClick||this.cancel(M)},
_onCaptureFocus:function(M){if(this.withBackdrop){var d=_.Wl(M).path;d.indexOf(this)===-1?(M.stopPropagation(),this._applyFocus()):this._focusedChild=d[0]}},
_onCaptureEsc:function(M){this.noCancelOnEscKey||this.cancel(M)},
_onCaptureTab:function(M){if(this.withBackdrop){this.__ensureFirstLastFocusables();var d=M.shiftKey,N=d?this.__firstFocusableNode:this.__lastFocusableNode;d=d?this.__lastFocusableNode:this.__firstFocusableNode;if(N===d)N=!0;else{var R=this._manager.deepActiveElement;N=R===N||R===this}N&&(M.preventDefault(),this._focusedChild=d,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var M=this._focusableNodes;this.__firstFocusableNode=M[0];this.__lastFocusableNode=M[M.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(M,d){var N=this.__rafs;N[M]!==null&&cancelAnimationFrame(N[M]);N[M]=requestAnimationFrame(function(){N[M]=null;d.call(this)}.bind(this))},
__updateScrollObservers:function(M,d,N){M&&d&&this.__isValidScrollAction(N)?(N==="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),ns6=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(M=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),M!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(M,1),ns6=_._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(jF)for(var M=this;M;)M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&M.host&&this.__rootNodes.push(M),M=M.host||M.assignedSlot||M.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(d){d.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(M){M.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(M){return M==="lock"||M==="refit"||M==="cancel"},
__onCaptureScroll:function(M){if(!(this.__isAnimating||_.Wl(M).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(M)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.fG=[Ycm,_.sj,_.i0];_.kQ({_template:function(){if(CaJ!==void 0)return CaJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;uTC===void 0&&(uTC=document.createElement("template"));var R=uTC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return CaJ=M},
is:"tp-yt-iron-dropdown",behaviors:[_.mQ,_.pG,_.fG,eud],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var M=_.Wl(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},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(),_.i0._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.i0._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.i0._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var M=this.containedElement,d=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),N=0;N<d.length;N++)d[N].node=M;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(M){this._readied&&(M?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var M=this.focusTarget||this.containedElement;M&&this.opened&&!this.noAutoFocus?M.focus():_.i0._applyFocus.apply(this,arguments)}});var FJV;var A9t;/*

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 VBz=new _.IH({type:"iconset"});
_.kQ({_template:function(){if(A9t!==void 0)return A9t;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;FJV===void 0&&(FJV=document.createElement("template"));
var R=FJV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return A9t=M},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(M){M=(M||"").split(":");this._iconName=M.pop();this._iconsetName=M.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.Wl(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=VBz.byKey(this._iconsetName)){var M=this._iconset.applyIcon(this,this._iconName,this.theme);M&&M.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.Wl(this.root).appendChild(this._img)}});var lbt;var $og;_.kQ({_template:function(){if($og!==void 0)return $og;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;lbt===void 0&&(lbt=document.createElement("template"));var R=lbt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return $og=M},
is:"tp-yt-iron-input",behaviors:[_.Oj],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(){_.b0.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Wl(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Wl(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var M=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":M=/[0-9.,e-]/}return M},_bindValueChanged:function(M,d){d&&(M===void 0?d.value=null:M!==d.value&&(this.inputElement.value=M),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:M}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(M){var d=M.keyCode==19||M.keyCode==20||M.keyCode==45||M.keyCode==46||M.keyCode==144||M.keyCode==145||M.keyCode>32&&M.keyCode<41||M.keyCode>111&&M.keyCode<124;return!(M.keyCode==8||M.keyCode==9||M.keyCode==13||M.keyCode==27)&&!(M.charCode==0&&d)},
_onKeypress:function(M){if(this.allowedPattern||this.inputElement.type==="number"){var d=this._patternRegExp;if(d&&!(M.metaKey||M.ctrlKey||M.altKey)){this._patternAlreadyChecked=!0;var N=String.fromCharCode(M.charCode);this._isPrintable(M)&&!d.test(N)&&(M.preventDefault(),this._announceInvalidCharacter("Invalid character "+N+" not entered."))}}},
_checkPatternValidity:function(){var M=this._patternRegExp;if(!M)return!0;for(var d=0;d<this.inputElement.value.length;d++)if(!M.test(this.inputElement.value[d]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var M=this.inputElement.checkValidity();M&&(this.required&&this.bindValue===""?M=!1:this.hasValidator()&&(M=_.Oj.validate.call(this,this.bindValue)));this.invalid=!M;this.fire("iron-input-validate");return M},
_announceInvalidCharacter:function(M){this.fire("iron-announce",{text:M})},
_computeValue:function(M){return M}});var BWz;var kfV;var TWd=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Dod=TWd&&TWd[1]>=8;
_.kQ({_template:function(){if(kfV!==void 0)return kfV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;BWz===void 0&&(BWz=document.createElement("template"));var R=BWz;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return kfV=M},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[pIi,_.sj,_.bOI,jzV],_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 _.Wl(_.Wl(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var M=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,M-this._physicalCount)},set _virtualStart(M){M=this._clamp(M,0,this._maxVirtualStart);this.grid&&(M-=M%this._itemsPerRow);this._virtualStartVal=M},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(M){M%=this._physicalCount;M<0&&(M=this._physicalCount+M);this.grid&&(M-=M%this._itemsPerRow);this._physicalStartVal=M},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(M){this._physicalCountVal=M},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var M=this._firstVisibleIndexVal;if(M==null){var d=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
M=this._iterateItems(function(N,R){d+=this._getPhysicalSizeIncrement(N);if(d>this._scrollPosition)return this.grid?R-R%this._itemsPerRow:R;if(this.grid&&this._virtualCount-1===R)return R-R%this._itemsPerRow})||0}return M},
get lastVisibleIndex(){var M=this._lastVisibleIndexVal;if(M==null){if(this.grid)M=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var d=this._physicalTop+this._scrollOffset;this._iterateItems(function(N,R){d<this._scrollBottom&&(M=R);d+=this._getPhysicalSizeIncrement(N)})}this._lastVisibleIndexVal=M}return M},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.Bz);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(M){this.style.webkitOverflowScrolling=M===this?"touch":"";this.style.overflowY=M===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Bz)},
updateViewportBoundaries:function(){var M=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(M["padding-top"],10);this._isRTL=M.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var M=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),d=M-this._scrollPosition,N=d>=0;this._scrollPosition=M;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(d)>this._physicalSize&&this._physicalSize>0?(d-=this._scrollOffset,N=Math.round(d/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=N,this._physicalStart+=N,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(M=this._getReusables(N),N?(this._physicalTop=M.physicalTop,this._virtualStart+=M.indexes.length,this._physicalStart+=M.indexes.length):(this._virtualStart=this._virtualStart-M.indexes.length,this._physicalStart=this._physicalStart-M.indexes.length),this._update(M.indexes,N?null:M.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),I_))},
_getReusables:function(M){var d=[],N=this._hiddenContentSize*this._ratio,R=this._virtualStart,X=this._virtualEnd,A=this._physicalCount,l=this._physicalTop+this._scrollOffset;var k=this._physicalBottom+this._scrollOffset;var T=this._scrollPosition,W=this._scrollBottom;if(M){var w=this._physicalStart;k=T-l}else w=this._physicalEnd,k-=W;for(;;){var p=this._getPhysicalSizeIncrement(w);k-=p;if(d.length>=A||k<=N)break;if(M){if(X+d.length+1>=this._virtualCount)break;if(l+p>=T-this._scrollOffset)break;d.push(w);
l+=p;w=(w+1)%A}else{if(R-d.length<=0)break;if(l+this._physicalSize-p<=W)break;d.push(w);l-=p;w=w===0?A-1:w-1}}return{indexes:d,physicalTop:l-this._scrollOffset}},
_update:function(M,d){if(!(M&&M.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(M);this._updateMetrics(M);if(d)for(;d.length;)M=d.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(M);this._positionItems();this._updateScrollerSize()}},
_createPool:function(M){this._ensureTemplatized();var d,N=Array(M);for(d=0;d<M;d++){var R=this.stamp(null);N[d]=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}return N},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(M){M=this._clamp(this._physicalCount+M,3,this._virtualCount-this._virtualStart);M=this._convertIndexToCompleteRow(M);if(this.grid){var d=M%this._itemsPerRow;d&&M-d<=this._physicalCount&&(M+=this._itemsPerRow);M-=d}M-=this._physicalCount;d=Math.round(this._physicalCount*.5);if(!(M<0)){if(M>0){d=window.performance.now();[].push.apply(this._physicalItems,this._createPool(M));for(var N=0;N<M;N++)this._physicalSizes.push(0);this._physicalCount+=M;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=M);this._update();this._templateCost=(window.performance.now()-d)/M;d=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||d===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,d)),VDd):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,d),I_))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var M=this._getReusables(!0);this._physicalTop=M.physicalTop;this._virtualStart+=M.indexes.length;this._physicalStart+=M.indexes.length;this._update(M.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var M={__key__:!0};M[this.as]=!0;M[this.indexAs]=!0;M[this.selectedAs]=!0;M.tabIndex=!0;this._instanceProps=M;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(M,d){typeof d!=="undefined"&&(this.notifyResize(),_.lc(),M&&this._updateGridMetrics())},
_itemsChanged:function(M){if(M.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.Bz);else if(M.path==="items.splices"){this._adjustVirtualIndex(M.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(M.value.indexSplices.some(function(N){return N.addedCount>0||N.removed.length>0})){var d=this._getActiveElement();
this.contains(d)&&d.blur()}M=M.value.indexSplices.some(function(N){return N.index+N.addedCount>=this._virtualStart&&N.index<=this._virtualEnd},this);
this._isClientFull()&&!M||this._debounce("_render",this._render,_.Bz)}else M.path!=="items.length"&&this._forwardItemPath(M.path,M.value)},
_forwardItemPath:function(M,d){M=M.slice(6);var N=M.indexOf(".");N===-1&&(N=M.length);var R,X=this.modelForElement(this._offscreenFocusedItem),A=parseInt(M.substring(0,N),10);if(R=this._isIndexRendered(A)){var l=this._getPhysicalIndex(A);var k=this.modelForElement(this._physicalItems[l])}else X&&(k=X);k&&k[this.indexAs]===A&&(M=M.substring(N+1),M=this.as+(M?"."+M:""),k._setPendingPropertyOrPath(M,d,!1,!0),k._flushProperties&&k._flushProperties(),R&&(this._updateMetrics([l]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(M){M.forEach(function(d){d.removed.forEach(this._removeItem,this);d.index<this._virtualStart&&(d=Math.max(d.addedCount-d.removed.length,d.index-this._virtualStart),this._virtualStart+=d,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=d))},this)},
_removeItem:function(M){this.$.selector.deselect(M);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===M&&this._removeFocusedItem()},
_iterateItems:function(M,d){var N,R;if(arguments.length===2&&d)for(R=0;R<d.length;R++){var X=d[R];var A=this._computeVidx(X);if((N=M.call(this,X,A))!=null)return N}else{X=this._physicalStart;for(A=this._virtualStart;X<this._physicalCount;X++,A++)if((N=M.call(this,X,A))!=null)return N;for(X=0;X<this._physicalStart;X++,A++)if((N=M.call(this,X,A))!=null)return N}},
_computeVidx:function(M){return M>=this._physicalStart?this._virtualStart+(M-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+M},
_assignModels:function(M){this._iterateItems(function(d,N){var R=this._physicalItems[d],X=this.items&&this.items[N];if(X!=null){var A=this.modelForElement(R);A.__key__=null;this._forwardProperty(A,this.as,X);this._forwardProperty(A,this.selectedAs,this.$.selector.isSelected(X));this._forwardProperty(A,this.indexAs,N);this._forwardProperty(A,"tabIndex",this._focusedVirtualIndex===N?0:-1);this._physicalIndexForKey[A.__key__]=d;A._flushProperties&&A._flushProperties(!0);R.removeAttribute("hidden")}else R.setAttribute("hidden",
"")},M)},
_updateMetrics:function(M){_.lc();var d=0,N=0,R=this._physicalAverageCount,X=this._physicalAverage;this._iterateItems(function(A){N+=this._physicalSizes[A];this._physicalSizes[A]=this._physicalItems[A].offsetHeight;d+=this._physicalSizes[A];this._physicalAverageCount+=this._physicalSizes[A]?1:0},M);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(N=this._itemsPerRow===1?N:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+d-N,this._itemsPerRow=1);this._physicalAverageCount!==R&&(this._physicalAverage=Math.round((X*R+d)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var M=this._physicalTop;if(this.grid){var d=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(N,R){var X=Math.floor(R%this._itemsPerRow*this._itemWidth+d);this._isRTL&&(X*=-1);this.translate3d(X+"px",M+"px",0,this._physicalItems[N]);this._shouldRenderNextRow(R)&&(M+=this._rowHeight)})}else this._iterateItems(function(N){this.translate3d(0,M+"px",0,this._physicalItems[N]);
M+=this._physicalSizes[N]})},
_getPhysicalSizeIncrement:function(M){return this.grid?this._computeVidx(M)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[M]},
_shouldRenderNextRow:function(M){return M%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var M=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(M!==0){this._physicalTop=this._physicalTop-M;var d=this._scrollPosition;!Dod&&d>0&&this._resetScrollPosition(d-M)}},
_resetScrollPosition:function(M){this.scrollTarget&&M>=0&&(this._scrollPosition=this._scrollTop=M)},
_updateScrollerSize:function(M){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((M=(M=(M=M||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(M){return this.scrollToIndex(this.items.indexOf(M))},
scrollToIndex:function(M){if(!(typeof M!=="number"||M<0||M>this.items.length-1)&&(_.lc(),this._physicalCount!==0)){M=this._clamp(M,0,this._virtualCount-1);if(!this._isIndexRendered(M)||M>=this._maxVirtualStart)this._virtualStart=this.grid?M-this._itemsPerRow*2:M-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var d=this._physicalStart,N=this._virtualStart,R=0,X=this._hiddenContentSize;N<M&&
R<=X;)R+=this._getPhysicalSizeIncrement(d),d=(d+1)%this._physicalCount,N++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+R);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)},_.Bz)},
selectItem:function(M){return this.selectIndex(this.items.indexOf(M))},
selectIndex:function(M){if(!(M<0||M>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(M)){var d=this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)]);d&&(d[this.selectedAs]=!0);this.updateSizeForIndex(M)}this.$.selector.selectIndex(M)}},
deselectItem:function(M){return this.deselectIndex(this.items.indexOf(M))},
deselectIndex:function(M){M<0||M>=this._virtualCount||(this._isIndexRendered(M)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)])[this.selectedAs]=!1,this.updateSizeForIndex(M)),this.$.selector.deselectIndex(M))},
toggleSelectionForItem:function(M){return this.toggleSelectionForIndex(this.items.indexOf(M))},
toggleSelectionForIndex:function(M){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(M):this.$.selector.isSelected(this.items[M]))?this.deselectIndex(M):this.selectIndex(M)},
clearSelection:function(){this._iterateItems(function(M){this.modelForElement(this._physicalItems[M])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(M){(M?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(M){var d=this.modelForElement(M.target);if(d){var N=_.Wl(M).path[0];M=this._getActiveElement();var R=this._physicalItems[this._getPhysicalIndex(d[this.indexAs])];if(N.localName!=="input"&&N.localName!=="button"&&N.localName!=="select"){N=d.tabIndex;d.tabIndex=-100;var X=M?M.tabIndex:-1;d.tabIndex=N;M&&R!==M&&R.contains(M)&&X!==-100||this.toggleSelectionForItem(d[this.as])}}},
_multiSelectionChanged:function(M){this.clearSelection();this.$.selector.multi=M},
updateSizeForItem:function(M){return this.updateSizeForIndex(this.items.indexOf(M))},
updateSizeForIndex:function(M){if(!this._isIndexRendered(M))return null;this._updateMetrics([this._getPhysicalIndex(M)]);this._positionItems();return null},
_manageFocus:function(){var M=this._focusedVirtualIndex;M>=0&&M<this._virtualCount?this._isIndexRendered(M)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(M){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(M/this._itemsPerRow)*this._itemsPerRow:M},
_isIndexRendered:function(M){return M>=this._virtualStart&&M<=this._virtualEnd},
_isIndexVisible:function(M){return M>=this.firstVisibleIndex&&M<=this.lastVisibleIndex},
_getPhysicalIndex:function(M){return(this._physicalStart+(M-this._virtualStart))%this._physicalCount},
focusItem:function(M){this._focusPhysicalItem(M)},
_focusPhysicalItem:function(M){if(!(M<0||M>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(M)||this.scrollToIndex(M);var d=this._physicalItems[this._getPhysicalIndex(M)],N=this.modelForElement(d),R;N.tabIndex=-100;d.tabIndex===-100&&(R=d);R||(R=_.Wl(d).querySelector('[tabindex="-100"]'));N.tabIndex=0;this._focusedVirtualIndex=M;R&&R.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var M=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var d=this.stamp(null);this._focusBackfillItem=d.root.querySelector("*");this._itemsParent.appendChild(d.root)}this._offscreenFocusedItem=this._physicalItems[M];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[M]=this._focusBackfillItem;this._focusedPhysicalIndex=M;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var M=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),d=this._physicalItems[M];if(d){var N=this.modelForElement(d),R=this.modelForElement(this._offscreenFocusedItem);N[this.as]===R[this.as]?(this._focusBackfillItem=d,N.tabIndex=-1,this._physicalItems[M]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(M){M=this.modelForElement(M.target);var d=this.modelForElement(this._focusedItem),N=this._offscreenFocusedItem!==null,R=this._focusedVirtualIndex;M&&(d===M?this._isIndexVisible(R)||this.scrollToIndex(R):(this._restoreFocusedItem(),d&&(d.tabIndex=-1),M.tabIndex=0,this._focusedVirtualIndex=R=M[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(R),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],N&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(M){switch(M.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&M.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&M.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(M)}},
_clamp:function(M,d,N){return Math.min(N,Math.max(d,M))},
_debounce:function(M,d,N){this._debouncers=this._debouncers||{};this._debouncers[M]=_.Rg(this._debouncers[M],N,d.bind(this));_.XM(this._debouncers[M])},
_forwardProperty:function(M,d,N){M._setPendingProperty(d,N)},
_forwardHostPropV2:function(M,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&this.modelForElement(N).forwardHostProp(M,d)},this)},
_notifyInstancePropV2:function(M,d,N){xNZ(this.as,d)&&(M=M[this.indexAs],d==this.as&&(this.items[M]=N),this.notifyPath(NE(this.as,"items."+M,d),N))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(M,d,N){d.indexOf(this.as+".")===0&&this.notifyPath("items."+M.__key__+"."+d.slice(this.as.length+1),N)},
_forwardParentPath:function(M,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&this.modelForElement(N).notifyPath(M,d)},this)},
_forwardParentProp:function(M,d){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(N){N&&(this.modelForElement(N)[M]=d)},this)},
_getActiveElement:function(){var M=this._itemsParent.node.domHost;return _.Wl(M?M.root:document).activeElement},
_scrollTargetChanged:function(M,d){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(d)if(M==="document")this.scrollTarget=this._doc;else if(typeof M==="string"){var N,R;this.scrollTarget=(d=(R=(N=this.domHost)==null?void 0:N.polymerController)!=null?R:this.domHost)&&d.$?d.$[M]:_.Wl(this.ownerDocument).querySelector("#"+M)}else this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M))}});var gDL;var WJt;var wCC=function(M,d,N,R){M-=N;d-=R;return Math.sqrt(M*M+d*d)},pCo=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
iep.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var f0Z=function(M){M.maxRadius=0;M.mouseDownStart=0;M.mouseUpStart=0;M.xStart=0;M.yStart=0;M.xEnd=0;M.yEnd=0;M.containerMetrics=new iep(M.element)};
L2Z.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var M=pCo()-this.mouseDownStart;this.mouseUpStart&&(M-=this.mouseUpElapsed);return M},get mouseUpElapsed(){return this.mouseUpStart?pCo()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var M=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(M*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-M/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var M=this.radius/(this.containerMetrics.size/2);var d=this.xNow-this.containerMetrics.width/2;var N=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+d+"px, "+N+"px)";this.waveContainer.style.transform="translate3d("+d+"px, "+N+"px, 0)";this.wave.style.webkitTransform="scale("+M+","+M+")";this.wave.style.transform="scale3d("+M+","+M+",1)"},
downAction:function(M){var d=this.containerMetrics.width/2,N=this.containerMetrics.height/2;f0Z(this);this.mouseDownStart=pCo();this.center?(this.xStart=d,this.yStart=N):(this.xStart=M?M.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=M?M.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=d,this.yEnd=N);M=this.containerMetrics;d=this.xStart;N=this.yStart;this.maxRadius=Math.max(wCC(d,N,0,0),wCC(d,N,
M.width,0),wCC(d,N,0,M.height),wCC(d,N,M.width,M.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=pCo())},
remove:function(){_.Wl(_.Wl(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.kQ({_template:function(){if(WJt!==void 0)return WJt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;gDL===void 0&&(gDL=document.createElement("template"));var R=gDL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return WJt=M},
is:"tp-yt-paper-ripple",behaviors:[_.pG],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(){_.Wl(this).parentNode.nodeType==11?this.keyEventTarget=_.Wl(this).getOwnerRoot().host:this.keyEventTarget=_.Wl(this).parentNode;var M=this.keyEventTarget;this.listen(M,"up","uiUpAction");this.listen(M,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(M){M.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var M=0;M<this.ripples.length;++M)if(!this.ripples[M].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(M){this.noink||this.downAction(M)},
downAction:function(M){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(M),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(M){this.noink||this.upAction(M)},
upAction:function(M){this.holdDown||(this.ripples.forEach(function(d){d.upAction(M)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var M=0;M<this.ripples.length;++M){var d=this.ripples[M];d.isOpacityFullyDecayed&&!d.isRestingAtMaxRadius&&this.removeRipple(d)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var M=new L2Z(this);_.Wl(this.$.waves).appendChild(M.waveContainer);this.$.background.style.backgroundColor=M.color;this.ripples.push(M);this._setAnimating(!0);return M},
removeRipple:function(M){var d=this.ripples.indexOf(M);d<0||(this.ripples.splice(d,1),M.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var M;for(M=0;M<this.ripples.length;++M){var d=this.ripples[M];d.draw();this.$.background.style.opacity=d.outerOpacity;d.isOpacityFullyDecayed&&!d.isRestingAtMaxRadius&&this.removeRipple(d)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(M,d){d!==void 0&&(M?this.downAction():this.upAction())}});var LG={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(M){hO._downHandler.call(this,M);this.pressed&&this.ensureRipple(M)},
ensureRipple:function(M){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var d=this._rippleContainer||this.root;d&&_.Wl(d).appendChild(this._ripple);if(M){d=_.Wl(this._rippleContainer||this);var N=_.Wl(M).rootTarget;d.deepContains(N)&&this._ripple.uiDownAction(M)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(M){this.hasRipple()&&(this._ripple.noink=M)}};var moI={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var M=1;this.disabled?M=0:this.active||this.pressed?M=4:this.receivedFocusFromKeyboard&&(M=3);this._setElevation(M)},
_computeKeyboardClass:function(M){this.toggleClass("keyboard-focus",M)},
_spaceKeyDownHandler:function(M){hO._spaceKeyDownHandler.call(this,M);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(M){hO._spaceKeyUpHandler.call(this,M);this.hasRipple()&&this._ripple.uiUpAction()}},hkd=[jqV,
_.mQ,LG,moI];_.Qfm={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=M)},
_createRipple:function(){var M=LG._createRipple();M.id="ink";M.setAttribute("center","");M.classList.add("circle");return M}};
_.q$d=[jqV,_.mQ,LG,_.Qfm];_.Ibg=[_.q$d,oFV,{_checkedChanged:function(){PGL._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){LG._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var vDm;var OQI;var jfV=function(){};
_.F=jfV.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._buttonStateChanged=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._createRipple=function(){};
_.F._noinkChanged=function(){};
_.F._computeKeyboardClass=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
_.F._setElevation=function(){};
jfV=_.kQ({_template:function(){if(OQI!==void 0)return OQI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;vDm===void 0&&(vDm=document.createElement("template"));var R=vDm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return OQI=M},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[hkd],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?moI._calculateElevation.apply(this):this._setElevation(0)}});var sfd;var PBt;var oDo={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(M){_.Q("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(M)},
_onDialogClickWrapped:function(M){_.Q("dialog_behavior_no_tap_killswitch")||this._onDialogClick(M)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(M,d){d&&(M?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(M){this.closingReason=this.closingReason||{};this.closingReason.confirmed=M},
_onDialogClick:function(M){for(var d=_.Wl(M).path,N=0,R,X=d.indexOf((R=this.hostElement)!=null?R:this);N<X;N++)if(R=d[N],R.hasAttribute&&(R.hasAttribute("dialog-dismiss")||R.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(R.hasAttribute("dialog-confirm"));this.close();M.stopPropagation();break}}},r9t=[_.fG,
oDo];var KJL=document.createElement("template");_.P(KJL,'<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(KJL.content);var y9g=document.createElement("template");_.P(y9g,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(y9g.content);_.kQ({_template:function(){if(PBt!==void 0)return PBt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;sfd===void 0&&(sfd=document.createElement("template"));var R=sfd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return PBt=M},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[r9t,eud],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 J9o;var c9d;_.kQ({_template:function(){if(c9d!==void 0)return c9d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;J9o===void 0&&(J9o=document.createElement("template"));var R=J9o;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return c9d=M},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var M,d,N;if(((M=window.ShadyDOM)==null?void 0:M.noPatch)!==!0&&((d=window.ShadyDOM)==null?void 0:d.noPatch)!=="on-demand"||((N=this.__shady_parentNode)==null?void 0:N.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(oDo)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var S$L=_.a1(['<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>']),zkJ=_.KNg(S$L);zkJ.setAttribute("style","display: none;");document.head.appendChild(zkJ.content);var bQe;var ekg;var HQV;var nDz;_.kQ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[P0],configure:function(M){var d=M.node,N=d.getBoundingClientRect().height;return this._effect=new KeyframeEffect(d,[{height:N/2+"px"},{height:N+"px"}],this.timingFromConfig(M))}});
_.kQ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[P0],configure:function(M){var d=M.node,N=d.getBoundingClientRect().width;return this._effect=new KeyframeEffect(d,[{width:N/2+"px"},{width:N+"px"}],this.timingFromConfig(M))}});
_.kQ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[P0],configure:function(M){var d=M.node,N=d.getBoundingClientRect().width;return this._effect=new KeyframeEffect(d,[{width:N+"px"},{width:N-N/20+"px"}],this.timingFromConfig(M))}});
_.kQ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[P0],configure:function(M){var d=M.node,N=d.getBoundingClientRect().height;this.setPrefixedProperty(d,"transformOrigin","0 0");return this._effect=new KeyframeEffect(d,[{height:N+"px",transform:"translateY(0)"},{height:N/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(M))}});var tO={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},iQd=function(){};
_.F=iQd.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._focusBlurHandler=function(){};
_.F._changedControlState=function(){};
_.F._setFocused=function(){};
iQd=_.kQ({_template:function(){if(nDz!==void 0)return nDz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;HQV===void 0&&(HQV=document.createElement("template"));var R=HQV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return nDz=M},
is:"tp-yt-paper-menu-button",behaviors:[_.pG,_.mQ],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:tO.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:tO.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:tO.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var M=_.Wl(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(M,d){M?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):d!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(M){_.mQ._disabledChanged.apply(this,arguments);M&&this.opened&&this.close()},
__onIronOverlayCanceled:function(M){var d=this.$.trigger;_.Wl(M.detail).path.indexOf(d)>-1&&M.preventDefault()}});
Object.keys(tO).forEach(function(M){iQd[M]=tO[M]});var fbV=_.Qg.IronButtonState,LJd=(0,_.p7)(HTMLElement);
_.kQ({_template:function(){if(ekg!==void 0)return ekg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;bQe===void 0&&(bQe=document.createElement("template"));var R=bQe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return ekg=M},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[fbV,_.mQ,LG,_.qm,_.Oj],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(M){var d=(0,_.VG)(this);d.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:M});d.shadowRoot.appendChild(M);return LJd.prototype._attachDom.call(this,M)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.Wl(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var d="";M?d=M.label||M.getAttribute("label")||M.textContent.trim():d="";this.value=d;this._setSelectedItemLabel(d)},
_computeMenuVerticalOffset:function(M,d){return d?d:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",d=this.contentElement;d&&d.setAttribute("aria-expanded",M)},
_computeLabelClass:function(M,d,N){var R="label";if(M)N&&(R+=" label-is-hidden");else if(N||d)R+=" label-is-floating";return R},
_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 tB3;var GfJ;_.kQ({is:"tp-yt-paper-icon-button",_template:function(){if(GfJ!==void 0)return GfJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;tB3===void 0&&(tB3=document.createElement("template"));var R=tB3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return GfJ=M},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.q$d],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(M,d){var N=this.getAttribute("aria-label");N&&d!=N||this.setAttribute("aria-label",M)}});var abt;var Uoe;_.GJ=[jqV,_.mQ,{hostAttributes:{role:"option",tabindex:"0"}}];_.kQ({_template:function(){if(Uoe!==void 0)return Uoe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;abt===void 0&&(abt=document.createElement("template"));var R=abt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Uoe=M},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.GJ]});var u3L;var CBt;var xot={attached:function(){this.fire("addon-attached")},
update:function(){}};var Y$I=1,ZQg=1,EDz=1,Mtm=[_.mQ,_.pG,{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();!xk&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(M,d){M?M=M+" "+d:M=d;return M},
_onAddonAttached:function(M){M=_.Wl(M).rootTarget;if(M.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,M.id);else{var d="paper-input-add-on-"+ZQg++;M.id=d;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,d)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(M){_.mQ._focusBlurHandler.call(this,M);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(M){try{var d=this.inputElement.selectionStart;this.value=M;this.inputElement.selectionStart=d;this.inputElement.selectionEnd=d}catch(N){this.value=M}},
_computeAlwaysFloatLabel:function(M,d){return d||M},
_updateAriaLabelledBy:function(){var M=_.Wl(this.root).querySelector("label");if(M){if(M.id)var d=M.id;else d="paper-input-label-"+Y$I++,M.id=d;this._ariaLabelledBy=d}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+EDz++)},
_onChange:function(M){this.shadowRoot&&this.fire(M.type,{sourceEvent:M},{node:this,bubbles:M.bubbles,cancelable:M.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var M=document.activeElement;M instanceof HTMLElement&&M!==document.body&&M!==document.documentElement||this._focusableElement.focus()}}}];var dbt;var Nz3;_.kQ({_template:function(){if(Nz3!==void 0)return Nz3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;dbt===void 0&&(dbt=document.createElement("template"));var R=dbt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Nz3=M},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[xot],properties:{_charCounterStr:{type:String,value:"0"}},update:function(M){if(M.inputElement){M.value=M.value||"";var d=M.value.toString().length.toString();M.inputElement.hasAttribute("maxlength")&&(d+="/"+M.inputElement.getAttribute("maxlength"));this._charCounterStr=d}}});var RX3;var Xat;_.kQ({_template:function(){if(Xat!==void 0)return Xat;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;RX3===void 0&&(RX3=document.createElement("template"));var R=RX3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Xat=M},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return Yv(this.attrForValue)},get _inputElement(){return _.Wl(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(M){this._addons||(this._addons=[]);M=M.target;this._addons.indexOf(M)===-1&&(this._addons.push(M),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(M){this._handleValueAndAutoValidate(M.target)},
_onValueChanged:function(M){var d=M.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,d.value===void 0||d.value===""))return;this._handleValueAndAutoValidate(M.target)},
_handleValue:function(M){var d=this._inputElementValue;d||d===0||M.type==="number"&&!M.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:M,value:d,invalid:this.invalid})},
_handleValueAndAutoValidate:function(M){this.autoValidate&&M&&(this.invalid=!(M.validate?M.validate(this._inputElementValue):M.checkValidity()));this._handleValue(M)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(M){if(this._addons)for(var d,N=0;d=this._addons[N];N++)d.update(M)},
_computeInputContentClass:function(M,d,N,R,X){var A="input-content";M?(X&&(A+=" label-is-hidden"),R&&!this.noUnfloatedLabelError&&(A+=" is-invalid")):(M=this.querySelector("label"),d||X?(A+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",R?A+=" is-invalid":N&&(A+=" label-is-highlighted")):(M&&(this.$.labelAndInputContainer.style.position="relative"),R&&!this.noUnfloatedLabelError&&(A+=" is-invalid")));N&&(A+=" focused");return A},
_computeUnderlineClass:function(M,d){var N="underline";d?N+=" is-invalid":M&&(N+=" is-highlighted");return N},
_computeAddOnContentClass:function(M,d){var N="add-on-content";d?N+=" is-invalid":M&&(N+=" is-highlighted");return N}});var FSd;var Aut;_.kQ({_template:function(){if(Aut!==void 0)return Aut;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;FSd===void 0&&(FSd=document.createElement("template"));var R=FSd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Aut=M},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[xot],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(M){this._setInvalid(M.invalid)}});_.kQ({is:"tp-yt-paper-input",_template:function(){if(CBt!==void 0)return CBt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;u3L===void 0&&(u3L=document.createElement("template"));var R=u3L;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return CBt=M},
behaviors:[Mtm,_.qm],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 Vte;var l73;_.kQ({_template:function(){if(l73!==void 0)return l73;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=
M.content,N=d.insertBefore;Vte===void 0&&(Vte=document.createElement("template"));var R=Vte;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return l73=M},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.GJ]});var $bV;var BzC;_.kQ({_template:function(){if(BzC!==void 0)return BzC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;$bV===void 0&&($bV=document.createElement("template"));var R=$bV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return BzC=M},
is:"tp-yt-paper-item-body"});var kMd;var Tz3;var Dbz=function(){};
_.F=Dbz.prototype;_.F.indexOf=function(){};
_.F.selectPrevious=function(){};
_.F.selectNext=function(){};
_.F.selectIndex=function(){};
_.F.forceSynchronousItemUpdate=function(){};
_.F._checkFallback=function(){};
_.F._addListener=function(){};
_.F._removeListener=function(){};
_.F._activateEventChanged=function(){};
_.F._updateItems=function(){};
_.F._selectSelected=function(){};
_.F._filterItem=function(){};
_.F._valueToItem=function(){};
_.F._valueToIndex=function(){};
_.F._indexToValue=function(){};
_.F._valueForItem=function(){};
_.F._observeItems=function(){};
_.F._itemActivate=function(){};
_.F.multiChanged=function(){};
_.F._updateAttrForSelected=function(){};
_.F._updateSelected=function(){};
_.F._selectMulti=function(){};
_.F._selectionChange=function(){};
_.F._toggleSelected=function(){};
_.F._valuesToItems=function(){};
_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F.select=function(){};
_.F._resetTabindices=function(){};
_.F._updateMultiselectable=function(){};
_.F._focusWithKeyboardEvent=function(){};
_.F._clearSearchText=function(){};
_.F._focusPrevious=function(){};
_.F._focusNext=function(){};
_.F._applySelection=function(){};
_.F._focusedItemChanged=function(){};
_.F._onIronItemsChanged=function(){};
_.F._onShiftTabDown=function(){};
_.F._onFocus=function(){};
_.F._onUpKey=function(){};
_.F._onDownKey=function(){};
_.F._onEscKey=function(){};
_.F._onKeydown=function(){};
_.F._activateHandler=function(){};
_.F._disabledChanged=function(){};
_.F._setSelectedItem=function(){};
_.F._setItems=function(){};
_.F._setSelectedItems=function(){};
_.F._setFocusedItem=function(){};
Dbz=_.kQ({_template:function(){if(Tz3!==void 0)return Tz3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;kMd===void 0&&(kMd=document.createElement("template"));var R=kMd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Tz3=M},
is:"tp-yt-paper-listbox",behaviors:[JIo],hostAttributes:{role:"listbox"}});var g_L;var WSI;var wat={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(M,d){return[M||d?"active":"",d?"cooldown":""].join(" ")},
__activeChanged:function(M,d){this.__setAriaHidden(!M);this.__coolingDown=!M&&d},
__altChanged:function(M){this.setAttribute("aria-label",M||"loading")},
__setAriaHidden:function(M){M?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.kQ({_template:function(){if(WSI!==void 0)return WSI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;g_L===void 0&&(g_L=document.createElement("template"));var R=g_L;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return WSI=M},
is:"tp-yt-paper-spinner",behaviors:[wat]});var pad;var mbd;_.kQ({_template:function(){if(mbd!==void 0)return mbd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;pad===void 0&&(pad=document.createElement("template"));var R=pad;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return mbd=M},
is:"tp-yt-paper-spinner-lite",behaviors:[wat]});var hXV;var Q1V;_.kQ({_template:function(){if(Q1V!==void 0)return Q1V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;hXV===void 0&&(hXV=document.createElement("template"));var R=hXV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Q1V=M},
is:"tp-yt-paper-tab",behaviors:[_.mQ,_.Qg.IronButtonState,LG],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var M=_.Wl(this).parentNode;return!!M&&!!M.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(M){if(this.link){var d=this.queryEffectiveChildren("a");d&&M.target!==d&&d.click()}}});var qee;var I7d;var v_m=_.a1(['<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>']),Ote=_.KNg(v_m);document.head.appendChild(Ote.content);_.kQ({_template:function(){if(I7d!==void 0)return I7d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;qee===void 0&&(qee=document.createElement("template"));var R=qee;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return I7d=M},
is:"tp-yt-paper-tabs",behaviors:[_.sj,_.SLz],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(M){_.Wl(this).querySelectorAll("tp-yt-paper-tab").forEach(M?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(M){M.setAttribute("noink","")},
_removeNoinkAttribute:function(M){M.removeAttribute("noink")},
_computeScrollButtonClass:function(M,d,N,R){return!d||N?"hidden":M?R?"hidden":"not-visible":""},
_computeTabsContentClass:function(M,d){var N="tabs-content";M&&(N+=" scrollable");if(!M||d)N+=" fit-container";return N},
_computeSelectionBarClass:function(M,d){var N="selection-bar";M?N+=" hidden":d&&(N+=" align-bottom");return N},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(M){return""+M},
_onIronSelect:function(M){this._tabChanged(M.detail.item,this._previousTab);this._previousTab=M.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.jO._activateHandler.apply(this,arguments)},
_scheduleActivation:function(M,d){this._pendingActivationItem=M;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,d)},
_delayedActivationHandler:function(){var M=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;M.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(M){M.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(M,d){this.scrollable&&this._affectScroll(d&&-d.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(M){this.$.tabsContainer.scrollLeft+=M;M=this.$.tabsContainer.scrollLeft;this._leftHidden=M===0||this.hideScrollButtons;this._rightHidden=M===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(M,d){if(M){var N=this.$.tabsContent.getBoundingClientRect(),R=N.width,X=M.getBoundingClientRect();N=X.left-N.left;this._pos={width:this._calcPercent(X.width,R),left:this._calcPercent(N,R)};if(this.noSlide||d==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var A=d.getBoundingClientRect();d=this.items.indexOf(d);M=this.items.indexOf(M);this.$.selectionBar.classList.add("expand");
M=d<M;this._isRTL&&(M=!M);M?this._positionBar(this._calcPercent(X.left+X.width-A.left,R)-5,this._left):this._positionBar(this._calcPercent(A.left+A.width-X.left,R)-5,this._calcPercent(N,R)+5);this.scrollable&&this._scrollToSelectedIfNeeded(X.width,N)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(M,d){d-=this.$.tabsContainer.scrollLeft;d<0?this.$.tabsContainer.scrollLeft+=d:(d+=M-this.$.tabsContainer.offsetWidth,d>0&&(this.$.tabsContainer.scrollLeft+=d))},
_calcPercent:function(M,d){return 100*M/d},
_positionBar:function(M,d){M=M||0;d=d||0;this._width=M;this._left=d;this.transform("translateX("+d+"%) scaleX("+M/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var M=this.$.selectionBar.classList;M.contains("expand")?(M.remove("expand"),M.add("contract"),this._positionBar(this._pos.width,this._pos.left)):M.contains("contract")&&M.remove("contract")}});var j1C;var s13;_.kQ({_template:function(){if(s13!==void 0)return s13;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;j1C===void 0&&(j1C=document.createElement("template"));var R=j1C;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return s13=M},
is:"tp-yt-paper-textarea",behaviors:[Mtm,_.qm],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(M){this.$.input.textarea.selectionStart=M},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(M){this.$.input.textarea.selectionEnd=M},_ariaLabelledByChanged:function(M){this._focusableElement.setAttribute("aria-labelledby",M)},
_ariaDescribedByChanged:function(M){this._focusableElement.setAttribute("aria-describedby",M)},
get _focusableElement(){return this.inputElement.textarea}});var P5L;var o_L;/*

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 rue=function(){};
_.F=rue.prototype;_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._focusedChanged=function(){};
_.F.registered=function(){};
_.F._invalidChanged=function(){};
_.F.hasValidator=function(){};
_.F.validate=function(){};
_.F._getValidity=function(){};
_.F._requiredChanged=function(){};
_.F._valueChanged=function(){};
_.F._checkedChanged=function(){};
_.F._buttonStateChanged=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
rue=_.kQ({is:"tp-yt-paper-toggle-button",_template:function(){if(o_L!==void 0)return o_L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;P5L===void 0&&(P5L=document.createElement("template"));var R=P5L;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return o_L=M},
behaviors:[_.Ibg],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");_.bM(this,function(){_.qE(this,"pan-y")})},
_ontrack:function(M){M=M.detail;M.state==="start"?this._trackStart(M):M.state==="track"?this._trackMove(M):M.state==="end"&&this._trackEnd(M)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(M){M=M.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+M:M)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+M:M));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var M=LG._createRipple();M.id="ink";M.setAttribute("recenters","");M.classList.add("circle","toggle-ink");return M}});var KSm;var yuC;_.kQ({_template:function(){if(yuC!==void 0)return yuC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;KSm===void 0&&(KSm=document.createElement("template"));var R=KSm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return yuC=M},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var M=_.Wl(this).parentNode,d=_.Wl(this).getOwnerRoot(),N;this.for?N=_.Wl(d).querySelector("#"+this.for):N=M.nodeType==Node.DOCUMENT_FRAGMENT_NODE?d.host:M;return N},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(M){M==="entry"?this.show():M==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Wl(this).textContent.trim()===""){for(var M=!0,d=_.Wl(this).getEffectiveChildNodes(),N=0;N<d.length;N++)if(d[N].textContent.trim()!==""){M=!1;break}if(M)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var M=this.offset;this.marginTop!=14&&this.offset==14&&(M=this.marginTop);var d=this.offsetParent.getBoundingClientRect(),N=this._target.getBoundingClientRect(),R=this.getBoundingClientRect(),X=(N.width-R.width)/2,A=(N.height-R.height)/2,l=N.left-d.left,k=N.top-d.top;switch(this.position){case "top":var T=l+X;var W=k-R.height-M;break;case "bottom":T=l+X;W=k+N.height+M;break;case "left":T=l-R.width-M;W=k+A;break;case "right":T=l+N.width+
M,W=k+A}this.fitToVisibleBounds?(d.left+T+R.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,T)+"px",this.style.right="auto"),d.top+W+R.height>window.innerHeight?(this.style.bottom=d.height+"px",this.style.top="auto"):(this.style.top=Math.max(-d.top,W)+"px",this.style.bottom="auto")):(this.style.left=T+"px",this.style.top=W+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(M){M!==500&&this.updateStyles({"--paper-tooltip-delay-in":M+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(M){if(M==="entry"&&this.animationEntry!=="")return this.animationEntry;if(M==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[M]&&typeof this.animationConfig[M][0].name==="string"){if(this.animationConfig[M][0].timing&&this.animationConfig[M][0].timing.delay&&this.animationConfig[M][0].timing.delay!==0){var d=this.animationConfig[M][0].timing.delay;M==="entry"?this.updateStyles({"--paper-tooltip-delay-in":d+"ms"}):M==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":d+
"ms"})}return this.animationConfig[M][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var JuL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(JuL,_.Jj);var cuL=_.uO(JuL,[0,_.C5]);var aH=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(aH,_.Jj);var Sem=[3,4],zXL=[5,6];var btt=[0,Sem,zXL,_.nZL,-1,_.ub,_.iKJ,-1,bsZ,esq];var eXV=_.uO(aH,btt),HtJ=_.CK(btt);var n_z=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(n_z,_.Jj);var itL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(itL,_.Jj);var f7L=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(f7L,_.Jj);var LSm=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(LSm,_.Jj);var ttV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(ttV,_.Jj);var Uj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Uj,_.Jj);Uj.prototype.getSource=function(){return _.K5(this,1)};
Uj.prototype.getMessage=function(){return _.rP(this,4)};
Uj.prototype.getData=function(){return _.uk(this,ttV,8)};var GMg=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(GMg,_.Jj);var u0=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(u0,_.Jj);var CG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(CG,_.Jj);var xc=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(xc,_.Jj);xc.prototype.getUrl=function(){return _.rP(this,1)};
xc.prototype.setUrl=function(M){return _.VZ(this,1,M)};
xc.prototype.hasUrl=function(){return _.zb(_.wP(this,1))!=null};var a7g=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(a7g,_.Jj);var Ubt=[3];var uUe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(uUe,_.Jj);var Yc=function(M){var d=new uUe;return _.CE(d,2,M)};
uUe.prototype.getLanguage=function(){return Ji(this,4,Z6)};
var C53=function(M){var d=Yc(1);return _.EA(d,6,Z6,M)},Z6=[3,
4,5,6];var xbz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(xbz,_.Jj);var Ej=function(M){var d=new xbz;return _.CE(d,1,M)},Ms=function(M,d){return _.EA(M,2,YeC,d)},YeC=[2,
3,4,5];var ZtV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(ZtV,_.Jj);var d9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(d9,_.Jj);var E_J=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(E_J,_.Jj);var MSd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(MSd,_.Jj);var dnt=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(dnt,_.Jj);var NPd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(NPd,_.Jj);var Rxz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Rxz,_.Jj);var Ns=function(M){return _.uk(M,CG,5)};var X_t=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(X_t,_.Jj);X_t.prototype.getValue=function(){return s1(this,1)};var FvL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(FvL,_.Jj);var Ru=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Ru,_.Jj);Ru.prototype.getMetadata=function(){return _.c_(this,dnt,7,X6)};
Ru.prototype.hasMetadata=function(){return _.mv(this,dnt,7,X6)};
var Ai3=_.Ns6(Ru),X6=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var F6=function(M){this.JSC$9812_name_=M;this.files_=[];this.directories_=[];this.directoryMap_={}};
F6.prototype.getName=function(){return this.JSC$9812_name_};var VP=function(M,d){this.callback_=d;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new F6("");VSL(this,M,this.rootDirectory_);A6(this)},VSL=function(M,d,N){for(var R=0;R<d.length;R++){var X=d[R];
X.isFile?(M.fileOps_++,X.file((0,_.gx)(M.handleFileSuccess_,M,N),(0,_.gx)(M.handleFileError_,M))):M.unscannedDirectories_.push(new lkd(X,N))}},A6=function(M){if(M.unscannedDirectories_.length>0&&M.directoryOps_<5&&!M.hasError_){M.directoryOps_++;
var d=M.unscannedDirectories_.shift(),N=d.entry,R=new F6(N.name);d=d.parent;d.directoryMap_[R.getName()]=R;d.directories_.push(R);N=N.createReader();N.readEntries((0,_.gx)(M.handleDirectorySuccess_,M,N,R),(0,_.gx)(M.handleDirectoryError_,M))}M.directoryOps_!=0||M.fileOps_!=0||M.unscannedDirectories_.length!=0&&!M.hasError_||M.callback_(M.rootDirectory_.files_,M.rootDirectory_.directories_,M.hasError_)};
VP.prototype.handleDirectorySuccess_=function(M,d,N){VSL(this,N,d);N.length==0?(this.directoryOps_--,A6(this)):M.readEntries((0,_.gx)(this.handleDirectorySuccess_,this,M,d),(0,_.gx)(this.handleDirectoryError_,this))};
VP.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;A6(this)};
VP.prototype.handleFileSuccess_=function(M,d){M.files_.push(d);this.fileOps_--;A6(this)};
VP.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;A6(this)};
var lkd=function(M,d){this.entry=M;this.parent=d};var l8=function(M){_.mk.call(this);_.lI(M,"drop",this.onObjectsDropped_,!1,this);_.lI(M,"dragenter",this.onFilesDragged_,!1,this);_.lI(M,"dragover",this.onFilesDragged_,!1,this);_.lI(M,"dragleave",this.onDragLeave_,!1,this);_.lI(M,"dragend",this.onDragLeave_,!1,this)};
_.RX(l8,_.mk);var $no=function(M,d){_.Dj.call(this,"f");this.files=M;this.directories=d};
_.RX($no,_.Dj);var BPt=function(){_.Dj.call(this,"h")};
_.RX(BPt,_.Dj);var k73=function(){_.Dj.call(this,"i")};
_.RX(k73,_.Dj);var TPJ=function(){_.Dj.call(this,"g")};
_.RX(TPJ,_.Dj);l8.prototype.onObjectsDropped_=function(M){var d=this;M.preventDefault();var N=M.event_.dataTransfer;if((M=N&&N.items)&&M.length>0&&M[0].webkitGetAsEntry){N=[];for(var R=[],X=0;X<M.length;X++){var A=M[X].webkitGetAsEntry();A?N.push(A):R.push(M[X])}new VP(N,function(l,k,T){T?d.dispatchEvent(new TPJ("Error occurred while reading from the file system.")):d.dispatchEvent(new $no(l,k,R))})}else(M=N&&N.files)&&this.dispatchEvent(new $no(Array.from(M),[]))};
l8.prototype.onFilesDragged_=function(M){M.type==="dragenter"&&this.dispatchEvent(new BPt);M.preventDefault()};
l8.prototype.onDragLeave_=function(){this.dispatchEvent(new k73)};var Dnd=function(M,d){this.JSC$9835_name_=M;this.inputElement_=d};
Dnd.prototype.getName=function(){return this.JSC$9835_name_};
Dnd.prototype.getInputElement=function(){return this.inputElement_};var $3=function(M,d,N){d=d===void 0?"single_file":d;N=N===void 0?[]:N;_.mk.call(this);this.overlayTarget_=M;this.parentOverlay_=M!=null?M.parentNode:_.Vf("scotty-overlay-parent");this.selectorType_=d;this.acceptTypes_=N;this.overlay_=ghV(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.v($3,_.mk);
var ghV=function(M,d,N,R){var X=document.createElement("input");X.setAttribute("type","file");X.setAttribute("name","Filedata");_.lI(X,"change",M.onFilesSelected_,!1,M);N==="multiple_file"&&(X.multiple="true");N==="single_directory"&&(X.webkitdirectory="true");R.length>0&&X.setAttribute("accept",R.join(","));X.style.position="absolute";X.style.overflow="hidden";X.style.height="0px";X.style.width="0px";X.style.opacity="0";X.setAttribute("aria-hidden","true");X.setAttribute("tabIndex",-1);if(M.overlayTarget_!=
null)return X.style.height=d.offsetHeight+"px",X.style.width=d.offsetWidth+"px",M.parentOverlay_&&(M.parentOverlay_.style.position="relative"),_.rl(X,d),ze(X,new _.hw(d.offsetLeft,d.offsetTop)),X;M.parentOverlay_.appendChild(X);return X};
$3.prototype.click=function(){this.overlay_.click()};
$3.prototype.onFilesSelected_=function(M){a:{try{var d=(new XMLHttpRequest).upload!==void 0;break a}catch(W){}d=!1}if(d){var N;M=Array.from((N=M.target.files)!=null?N:[]);N=[];if(this.selectorType_==="single_directory"&&(_.B_||nE||_.$h)){N=new F6("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(d=0;d<M.length;d++)for(var R=M[d],X=R.webkitRelativePath.split("/"),A=N,l=0;l<X.length;l++){var k=X[l];if(l==X.length-1){k!="."&&A.files_.push(R);break}var T=A.directoryMap_[k];T==void 0&&(k=
T=new F6(k),A.directoryMap_[k.getName()]=k,A.directories_.push(k));A=T}N=N.directories_}this.dispatchEvent(new Wv3(M,N,null))}else M=M.target.value,M.match(/^c:\\fakepath\\/i)&&(M=M.substring(12)),this.dispatchEvent(new Wv3([],[],new Dnd(M,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=ghV(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Wv3=function(M,d){_.Dj.call(this,"j");this.files=M;this.directories=d};
_.v(Wv3,_.Dj);var w_d=function(M){this.uploadUrl_=M};var p_3=function(){_.mk.call(this)};
_.RX(p_3,_.mk);var Bq=function(M){_.Dj.call(this,M)};
_.RX(Bq,_.Dj);var k3=function(M){_.Dj.call(this,M)};
_.RX(k3,_.Dj);var mnL=function(M,d,N,R,X){_.mk.call(this);N=document.createElement("form");N.setAttribute("method",d);N.setAttribute("enctype","multipart/form-data");N.setAttribute("encoding","multipart/form-data");d=document.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name","metadata");d.setAttribute("value",X);N.appendChild(d);N.appendChild(R);this.JSC$9852_form_=N;M=new _.iX(M);_.J8(M,"upload_protocol","multipart");this.JSC$9852_url_=M.toString();this.JSC$9852_request_=new xn;this.state_=
"Ready";this.JSC$9852_errorDescription_=null;this.JSC$9852_eventHandler_=new _.a_(this);_.RW(this,this.JSC$9852_eventHandler_);this.JSC$9852_eventHandler_.listen(this.JSC$9852_request_,"success",this.onTransferSuccess_);this.JSC$9852_eventHandler_.listen(this.JSC$9852_request_,"error",this.onTransferError_)};
_.v(mnL,p_3);_.F=mnL.prototype;_.F.run=function(){this.state_="Transferring";var M=this.JSC$9852_request_,d=this.JSC$9852_form_;if(M.JSC$9274_active_)throw Error("oe");var N=new _.iX(this.JSC$9852_url_||d.action);M.JSC$9274_form_=d;d=M.JSC$9274_form_;N=_.QL(N.toString());N!==void 0&&(d.action=N);acI(M)};
_.F.getResponseCode=function(){return null};
_.F.getResponseText=function(){return this.JSC$9852_request_&&this.JSC$9852_request_.getResponseText()||null};
_.F.JSC$25667_getErrorDescription=function(){return this.JSC$9852_errorDescription_};
_.F.cancel=function(){this.JSC$9852_request_&&this.JSC$9852_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Bq("o"))};
_.F.pause=function(){};
_.F.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Bq("l"))};
_.F.onTransferError_=function(){this.JSC$9852_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Bq("n"))};var TQ=function(){_.sF.call(this)};
_.v(TQ,_.sF);TQ.prototype.createXhr=function(){var M=_.sF.prototype.createXhr.call(this);M.upload&&(M.upload.onprogress=(0,_.gx)(this.onProgress_,this));return M};
TQ.prototype.onProgress_=function(M){this.dispatchEvent(M)};var hxV=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},q1J=function(M,d){var N=M.attempt_+1;
if(M.maxAttempts_>0&&N>M.maxAttempts_)return!1;N==0?d():M.delayCallId_=vX(function(){M.delayCallId_=null;d()},QXt(M),M);
M.attempt_=N;return!0};
hxV.prototype.reset=function(){this.delayCallId_&&_.Np.clearTimeout(this.delayCallId_);this.attempt_=-1};
var QXt=function(M){var d=250*Math.pow(2,M.attempt_);M.maxDelayMs_>=0&&(d=Math.min(d,M.maxDelayMs_));return d};var Gei=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var D1=function(){_.mk.call(this);this.JSC$9862_request_=this.state_=null;this.JSC$9862_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9862_bytesTransferred_=0;this.retryIterator_=new hxV;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9862_errorDescription_=null;this.JSC$9862_eventHandler_=new _.a_(this);_.RW(this,this.JSC$9862_eventHandler_);this.JSC$9862_url_=this.blob_=null;this.JSC$9862_method_=void 0;this.chunkSize_=this.JSC$9862_metadata_=
this.JSC$9862_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9862_responseText_=this.JSC$9862_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.RX(D1,p_3);_.F=D1.prototype;_.F.run=function(){g9(this)};
_.F.getResponseCode=function(){return this.JSC$9862_responseCode_};
_.F.getResponseText=function(){return this.JSC$9862_responseText_};
_.F.JSC$25667_getErrorDescription=function(){return this.JSC$9862_errorDescription_};
_.F.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9862_eventHandler_.removeAll();this.JSC$9862_request_&&this.JSC$9862_request_.abort();this.retryIterator_.reset();var M=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(M==="Upload"||M==="Query")M=new TQ,M.JSC$7680_withCredentials_=this.JSC$9862_withCredentials_,M.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9862_bytesTransferred_=
0;this.dispatchEvent(new Bq("o"))}};
_.F.pause=function(){this.pauseRequested_=!0};
var g9=function(M){var d=M.state_;M.pauseRequested_?(M.pauseRequested_=!1,M.stateAfterUnpausing_=d,M.state_="Paused"):q1J(M.retryIterator_,function(){switch(M.state_){case "Start":M.JSC$9862_request_=new TQ;var N=_.wF.clone(M.JSC$9862_headers_);M.blob_.size!=null&&(N["Content-Length"]=M.blob_.size);N=a0S(N);N["X-Goog-Upload-Protocol"]="resumable";N["X-Goog-Upload-Command"]="start";M.JSC$9862_eventHandler_.removeAll();M.JSC$9862_eventHandler_.listen(M.JSC$9862_request_,"complete",M.onStartComplete_);
M.JSC$9862_request_.JSC$7680_withCredentials_=M.JSC$9862_withCredentials_;M.JSC$9862_request_.send(M.JSC$9862_url_,M.JSC$9862_method_,M.JSC$9862_metadata_,N);M.lastCommandResponseCode_=null;M.dispatchEvent(new k3("q"));break;case "Upload":N=M.transferHandle_.uploadUrl_;var R=M.blob_.size;if(yk3()){var X=M.chunkSize_;var A=M.offset_+X>=R;R=K03(M.blob_,M.offset_,A?R:M.offset_+X)}else M.offset_=0,R=M.blob_,A=!0;M.JSC$9862_request_=new TQ;M.JSC$9862_request_.JSC$7680_withCredentials_=M.JSC$9862_withCredentials_;
M.JSC$9862_eventHandler_.removeAll();M.JSC$9862_eventHandler_.listen(M.JSC$9862_request_,"progress",M.onUploadProgress_);X=(0,_.gx)(M.JSC$9864_onUploadComplete_,M,M.offset_+R.size,A);M.JSC$9862_eventHandler_.listen(M.JSC$9862_request_,"complete",X);M.lastCommandResponseCode_=null;M.dispatchEvent(new k3("q"));A=Object.assign({},M.JSC$9862_headers_||{},{"X-Goog-Upload-Command":"upload"+(A?", finalize":""),"X-Goog-Upload-Offset":M.offset_});M.JSC$9862_request_.send(N,"POST",R,A);break;case "Query":M.JSC$9862_request_=
new TQ;M.JSC$9862_eventHandler_.removeAll();M.JSC$9862_eventHandler_.listen(M.JSC$9862_request_,"complete",M.onQueryComplete_);N=Object.assign({},M.JSC$9862_headers_||{},{"X-Goog-Upload-Command":"query"});M.JSC$9862_request_.send(M.transferHandle_.uploadUrl_,"POST","",N);M.lastCommandResponseCode_=null;M.dispatchEvent(new k3("q"));break;default:throw Error("df");}})||Wq(M,"Transfer encountered too many consecutive failures.")},Wq=function(M,d){M.state_="Error";
M.JSC$9862_errorDescription_=d;M.dispatchEvent(new Bq("n"))};
D1.prototype.onStartComplete_=function(M){var d=M.target;this.lastCommandResponseCode_=d.getStatus();this.dispatchEvent(new k3("r"));if(Ikd(d))vho(this,d);else if(O5g(d)){M=b_(M.target.getAllResponseHeaders());for(var N in M)_.AL(N.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Bq("m"));N=pL(M,"X-Goog-Upload-URL");M=(M=pL(M,"X-Goog-Upload-Chunk-Granularity"))?parseInt(M,10):1;N===void 0||isNaN(M)||M<=0?Wq(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
M)*M,this.transferHandle_=new w_d(N),this.dispatchEvent(new Bq("p")),this.state_="Upload",this.retryIterator_.reset(),g9(this))}else g9(this)};
D1.prototype.onUploadProgress_=function(M){this.JSC$9862_bytesTransferred_=this.offset_+M.loaded;this.dispatchEvent(new Bq("k"))};
D1.prototype.JSC$9864_onUploadComplete_=function(M,d,N){var R=this,X,A;return _.B(function(l){switch(l.nextAddress){case 1:X=N.target;R.lastCommandResponseCode_=X.getStatus();R.dispatchEvent(new k3("r"));if(jXI(X)||X.getStatus()==404)return R.JSC$9862_bytesTransferred_=M,vho(R,X),l.return();if(O5g(X)){l.jumpTo(2);break}if(!(A=R.detectCorruptedBlobEnabled_)){l.jumpTo(3);break}return _.D(l,sXV(R),4);case 4:A=l.yieldResult;case 3:if(A)return Wq(R,"Blob has been modified or corrupted."),l.return();R.requireUploadRequestModification_=
X.getStatus()==400;R.state_="Query";g9(R);return l.return();case 2:if(d)return Wq(R,"Got a non-final success response after issuing a finalize command."),l.return();R.JSC$9862_bytesTransferred_=M;R.offset_=M;R.retryIterator_.reset();g9(R);return l.return()}})};
D1.prototype.onQueryComplete_=function(M){var d=M.target;this.lastCommandResponseCode_=d.getStatus();this.dispatchEvent(new k3("r"));Ikd(d)?(d.getStatus()===200&&(this.JSC$9862_bytesTransferred_=this.blob_.size),vho(this,d)):O5g(d)?(M=b_(M.target.getAllResponseHeaders()),M=parseInt(pL(M,"X-Goog-Upload-Size-Received"),10),isNaN(M)?Wq(this,"Server did not respond with current offset."):M<this.offset_?Wq(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
M+"."):this.requireUploadRequestModification_&&this.offset_===M?Wq(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<M&&this.retryIterator_.reset(),this.offset_=this.JSC$9862_bytesTransferred_=M,this.state_="Upload",g9(this))):g9(this)};
var vho=function(M,d){M.JSC$9862_responseCode_=d.getStatus();var N=b_(d.getAllResponseHeaders());UIj(N);M.JSC$9862_responseText_=d.getResponseText();M.state_="Response received";M.dispatchEvent(new Bq("l"))},O5g=function(M){var d=M.getStatus();
M=b_(M.getAllResponseHeaders());M=pL(M,"X-Goog-Upload-Status");return d===200&&M==="active"},jXI=function(M){M=b_(M.getAllResponseHeaders());
return pL(M,"X-Goog-Upload-Status")==="final"},Ikd=function(M){if(jXI(M))return!0;
M=M.getStatus();return M>=400&&M<500},sXV=function(M){var d;
return _.B(function(N){if(N.nextAddress==1){if(!M.blob_||M.originalBlobSize_<=0)return N.return(!1);if(M.blob_.size!==M.originalBlobSize_)return N.return(!0);_.Mv(N,2);if(d=K03(M.blob_,0,1)){var R=new cF,X=l3d(R);R.reader_.readAsBinaryString(d);N=_.D(N,X,4)}else N=N.return(!0);return N}if(N.nextAddress!=2)return N.return(M.blob_.size!==M.originalBlobSize_);_.Fg(N);return N.return(!0)})};var PbJ=function(M,d,N,R,X,A){_.mk.call(this);this.payload_=R;this.JSC$9865_url_=M;this.JSC$9865_method_=d;this.JSC$9865_headers_=N;this.JSC$9865_metadata_=X;this.encoding_=A||"binary";M=new _.hV;this.boundary_="uploader-"+rx()+"-"+M.JSC$9123_toIsoString();this.JSC$9865_responseText_=this.JSC$9865_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9865_errorDescription_=null;this.JSC$9865_eventHandler_=new _.a_(this);_.RW(this,this.JSC$9865_eventHandler_)};
_.v(PbJ,p_3);_.F=PbJ.prototype;
_.F.run=function(){var M=_.wF.clone(this.JSC$9865_headers_);this.payload_.length!=null&&(M["Content-Length"]=this.payload_.length);M=a0S(M);M["X-Goog-Upload-Protocol"]="multipart";M["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new TQ;this.JSC$9865_eventHandler_.removeAll();this.JSC$9865_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9865_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9865_url_,this.JSC$9865_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9865_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",M)};
_.F.getResponseCode=function(){return this.JSC$9865_responseCode_};
_.F.getResponseText=function(){return this.JSC$9865_responseText_};
_.F.JSC$25667_getErrorDescription=function(){return this.JSC$9865_errorDescription_};
_.F.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9865_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Bq("o")))};
_.F.pause=function(){};
_.F.onTransferProgress_=function(){this.dispatchEvent(new Bq("k"))};
_.F.onTransferComplete_=function(M){var d=M.target.getStatus();d===void 0||d===-1?(this.JSC$9865_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Bq("n"))):(this.JSC$9865_responseCode_=d,M=M.target,d=b_(M.getAllResponseHeaders()),UIj(d),this.JSC$9865_responseText_=M.getResponseText(),this.state_="Complete",this.dispatchEvent(new Bq("l")))};_.oho=function(M,d,N,R){R=R===void 0?!1:R;if(N instanceof Dnd)return new mnL(M,"POST",d,N.getInputElement(),"");if(typeof N==="string"||N instanceof String)return new PbJ(M,"POST",d,N,"");var X=new D1(void 0);X.JSC$9862_url_=M;X.JSC$9862_method_="POST";X.JSC$9862_headers_=d;X.blob_=N;X.originalBlobSize_=N.size;X.JSC$9862_metadata_="";R&&(X.JSC$9862_withCredentials_=R);X.state_="Start";return X};var w9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(w9,_.Jj);_.F=w9.prototype;_.F.getEnableSsEngine=function(){return _.jS(this,2)};
_.F.getEnableAwr=function(){return _.jS(this,3)};
_.F.getAlohaAutoGaRollout=function(){return _.jS(this,5)};
_.F.getEnableConfigurator=function(){return _.jS(this,6)};
_.F.getEnableMweb=function(){return _.jS(this,7)};
var KvL=function(){var M=rio();return _.hX(M,7,!0)};
w9.prototype.getEnableCtlConsentCheckbox=function(){return _.jS(this,8)};
w9.prototype.getEnableIframe=function(){return _.jS(this,9)};
var rio=function(){var M=new w9;M=_.hX(M,5,!0);M=_.hX(M,2,!0);M=_.hX(M,4,!1);M=_.hX(M,8,!0);return _.hX(M,9,!0)};
w9.prototype.getEnableScreenshotNudge=function(){return _.jS(this,10)};
var yig=function(){var M=KvL();return _.hX(M,10,!0)};
w9.prototype.getEnableWebStartupConfigEndpoint=function(){return _.jS(this,11)};
w9.prototype.getEnableJunkNudge=function(){return _.jS(this,12)};
var ByL=function(){var M=yig();return _.hX(M,12,!0)};
_.F=w9.prototype;_.F.getEnableConfiguratorLocale=function(){return _.jS(this,13)};
_.F.getEnableTinyNoPointer=function(){return _.jS(this,14)};
_.F.getEnableSupportSessionLogging=function(){return _.jS(this,15)};
_.F.getEnableFileUploadForScreenshot=function(){return _.jS(this,16)};
_.F.getEnableDirectDeflectionForSingleCategory=function(){return _.jS(this,17)};
_.F.getEnableImageSanitization=function(){return _.jS(this,18)};
_.F.getEnableAlohaBinarySplit=function(){return _.jS(this,19)};
_.F.getEnableDbFeedbackIntents=function(){return _.jS(this,20)};
_.F.getEnableMarkMandatoryFieldsWithRequired=function(){return _.jS(this,21)};
_.F.getEnableFeedbackCategoryCustomUi=function(){return _.jS(this,22)};
_.F.getEnableRealtimeCtl=function(){return _.jS(this,23)};var $c2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v($c2,_.Jj);var uWZ=[/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 xIj="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 Y8i=_.a1(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ZeS=_.a1(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var MsN,Nyv;var JiV,ciJ;
JiV=function(M,d,N){M.timeOfStartCall=(new Date).getTime();var R=N||_.Np,X=R.document,A=M.nonce||_.rH(R.document);A&&!M.nonce&&(M.nonce=A);if(M.flow=="help"){var l=_.cy("document.location.href",R);!M.helpCenterContext&&l&&(M.helpCenterContext=l.substring(0,1200));l=!0;if(d&&JSON&&JSON.stringify){var k=JSON.stringify(d);(l=k.length<=1200)&&(M.psdJson=k)}l||(d={invalidPsd:!0})}d=[M,d,N];R.GOOGLE_FEEDBACK_START_ARGUMENTS=d;N=M.feedbackServerUri||"//www.google.com/tools/feedback";if(l=R.GOOGLE_FEEDBACK_START)l.apply(R,d);
else{R=N+"/load.js?";for(var T in M)d=M[T],d==null||_.Me(d)||(R+=encodeURIComponent(T)+"="+encodeURIComponent(d)+"&");M=Aw(X).createElement("SCRIPT");A&&M.setAttribute("nonce",A);_.Sd(M,_.RO(R));X.body.appendChild(M)}};
ciJ=function(M,d,N,R){var X,A;_.B(function(l){X=N||_.Np;var k=M.serverEnvironment==="DEV",T=N||_.Np;T=M.nonce||_.rH(T.document);k={integrationKeys:{productId:M.productId,feedbackBucket:M.bucket,triggerId:M.triggerId},callbacks:{onClose:M.callback,onLoad:M.onLoadCallback},formContent:{locale:M.locale,disableScreenshot:M.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:M.abuseLink,additionalDataConsent:M.additionalDataConsent},initializationData:{isLocalServer:k,nonce:T,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:M.feedbackServerUri,colorScheme:M.colorScheme},extraData:{productVersion:M.productVersion,authUser:M.authuser,configuratorId:M.configuratorId,customZIndex:M.customZIndex,tinyNoPointer:M.tinyNoPointer,
allowNonLoggedInFeedback:M.allowNonLoggedInFeedback,enableAnonymousFeedback:M.enableAnonymousFeedback}};d&&(T=new Map(Object.entries(d)),k.extraData.productSpecificData=T);A=k;return _.D(l,AY2(A,R,X),0)})};
_.S1d=function(M,d,N){try{if(M.flow==="help"){var R=M.helpCenterPath.replace(/^\//,"");_.oO(N||window,"https://support.google.com/"+R)}else M.flow==="submit"?JiV(M,d,N):kUL(M.productId,M.feedbackServerUri).then(function(X){X=_.uk(X,w9,1);var A=!VZL||(X==null?void 0:X.getEnableMweb()),l=!M.tinyNoPointer||(X==null?void 0:X.getEnableTinyNoPointer());!X||X.getAlohaAutoGaRollout()&&A&&l?ciJ(M,d,N,X):JiV(M,d,N)},function(X){X&&X.name!=="DuplicateFormError"&&JiV(M,d,N)})}catch(X){ciJ(M,d,N,null)}};
_.fE("userfeedback.api.startFeedback",_.S1d);var TyS=/https?:\/\/\S+\.\S+/,Dcv=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],g9L=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Mni=function(M){var d=M.split(""),N=[-263237435,15,d,function(R,X,A){var l=X.length;A.forEach(function(k,T,W){this.push(W[T]=X[(X.indexOf(k)-X.indexOf(this[T])+T+l--)%X.length])},R.split(""))},
function(R,X){R=(R%X.length+X.length)%X.length;X.splice(-R).reverse().forEach(function(A){X.unshift(A)})},
"response",function(){for(var R=64,X=[];++R-X.length-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}X.push(String.fromCharCode(R))}return X},
null,12,1540023973,65941107,null,d,function(R,X){for(R=(R%X.length+X.length)%X.length;R--;)X.unshift(X.pop())},
695603893,function(R){for(var X=R.length;X;)R.push(R.splice(--X,1)[0])},
"'[;'[(",function(R,X){R.push(X)},
null,function(R,X,A,l,k){return X(A,l,k)},
"continuation",d,function(R,X){if(R.length!=0){X=(X%R.length+R.length)%R.length;var A=R[0];R[0]=R[X];R[X]=A}},
function(){for(var R=64,X=[];++R-X.length-32;){switch(R){case 91:R=44;continue;case 123:R=65;break;case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}X.push(String.fromCharCode(R))}return X},
'"),/]];'];N[7]=N;N[11]=N;N[18]=N;try{(((0,N[15])(N[21]),N[22])(N[11],N[9]),N[22])(N[new Date("1970-01-01T04:30:12.000+04:30")/1E3],N[1]),((0,N[22])(N[11],N[23]),N[4])(N[10],N[18]),(0,N[20])(N[21],N[14])<<(0,N[17])(N[18],N[1]),(0,N[4])(N[8],N[21]),(0,N[19])((0,N[19])((0,N[17])(N[7],N[9]),N[3],N[20],(0,N[6])(),N[2]),N[3],N[5],(0,N[15])(),N[2])}catch(R){return"aTlOUOubTO4AP____8P_"+M}return d.join("")};_.zxt=new _.x("runAttestationCommand");var b5g=new _.x("verifyCommand");_.H5=new _.x("accessibilityContext");var exL=new _.x("accessibilityData");var H5L=new _.x("profileCardCommand");var f9L=new _.x("signInEndpoint");var iPA=new _.x("signOutEndpoint");var i5L;_.nhJ=new _.x("accountItemSectionRenderer");i5L=new _.x("accountItemRenderer");_.fkV=new _.x("saveCommandToSessionStorageAction");var Lvd=new _.x("crossAccountChannelTransferEndpoint");var HBS=new _.x("getAccountMenuEndpoint");_.nIr=new _.x("getAccountSwitcherEndpoint");var eWS=new _.x("getAccountsListEndpoint");var tSd=new _.x("getAccountsListInnertubeEndpoint");_.G7J=new _.x("addToToastAction");var ak3=new _.x("hideEnclosingAction");_.p9=new _.x("replaceEnclosingAction");_.UnL=new _.x("buttonRefreshAction");var uqg=new _.x("adsControlFlowOpportunityReceivedCommand");var Cbg=new _.x("openAdAllowlistInstructionCommand");var xnz=new _.x("videoMastheadAdPrimaryVideoRenderer");var Y1J=new _.x("displayAdRenderer");var ld6=new _.x("instreamVideoAdRenderer");_.Z5I=new _.x("inFeedAdLayoutRenderer");var Ehd=new _.x("sequenceItemInPlayerAdLayoutRenderer");_.MIL=new _.x("adSlotRenderer");var dIL=new _.x("adAvatarViewModel");var NlL=new _.x("adBadgeViewModel");var RvV=new _.x("adButtonViewModel");var m6=new _.x("adImageViewModel");var xjq=new _.x("reelsAdCardButtonedViewModel");var X6d=new _.x("reelsPlayerOverlayLayoutViewModel");var F2V=new _.x("showSchedulingPanelCommand");var AML=new _.x("backstageCommentsRenderer");var VIz=new _.x("backstageImageRenderer");var l0L=new _.x("backstagePostRenderer");var $Id=new _.x("postRenderer");var Blm=new _.x("sharedPostRenderer");var keL=new _.x("createBackstagePostEndpoint");var TlC=new _.x("getPostVideoPreviewEndpoint");var DIm=new _.x("updateBackstagePostEndpoint");var gst=new _.x("filterChipTransformCommand");var W2V=new _.x("insertRichSectionCommand");var e8S=new _.x("talkToRecsDeselectCommand");var w6g=new _.x("talkToRecsNextCommand");var bpZ=new _.x("talkToRecsSelectCommand");var p6d=new _.x("talkToRecsUpdateTextCommand");_.F8=new _.x("browseEndpoint");_.mIo=new _.x("confirmDialogEndpoint");var hv3=new _.x("expandOnHoverCardRenderer");var Qxd=new _.x("lumiereShelfDetailsRenderer");var q8I=new _.x("revealBusinessEmailCommand");var I0J=new _.x("validateChannelHandleCommand");var vsz=new _.x("channelCreationFormEndpoint");var Oee=new _.x("aboutChannelViewModel");var jxt=new _.x("channelThumbnailWithLinkRenderer");var sx3=new _.x("channelCreationServiceEndpoint");var PUC=new _.x("updateChannelPageSettingsEndpoint");var h6=function(M){this.delegate=M},QP=function(){h6.apply(this,arguments)};
_.v(QP,h6);_.Hm.Object.defineProperties(QP.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(M){this.delegate.entityMetadata=M}}});var osC=function(){QP.apply(this,arguments)};
_.v(osC,QP);osC.prototype.getAssociations=function(){return[]};var xKv=new _.x("webThumbnailDetailsExtensionData");var Znp=new _.x("commandContext");var rMm=new _.x("addVideoLinkAction");var K2J=new _.x("createPollAction");var yMt=new _.x("hideIdentityChipAction");var JMd=new _.x("openUpdateCommentDialogAction");var qs=new _.x("updateBackstagePollAction");var cMm=new _.x("updateCommentVoteAction");var S8e=new _.x("commentThreadRenderer");var zvd=function(){QP.apply(this,arguments)};
_.v(zvd,QP);zvd.prototype.getAssociations=function(){return[]};_.be3=new _.x("commentDialogRenderer");var evg=new _.x("updateCommentsSettingsEndpoint");var HeJ=new _.x("commentViewModel");var nso=new _.x("triStateButtonViewModel");var iee=new _.x("voiceReplyContainerViewModel");_.XP=new _.x("commandExecutorCommand");var wk=new _.x("emoji");var f0d=new _.x("updateCreatorChannelInnertubeCommand");_.L2d=new _.x("appendContinuationItemsAction");_.tIg=new _.x("changeEngagementPanelVisibilityAction");_.qN=new _.x("continuationCommand");var Ged=new _.x("listMutationCommand");_.Iu=new _.x("openPopupAction");var a0V=new _.x("persistSubscriptionsDisplayPreferencesCommand");var MsI;_.UIV=new _.x("playlistRemoveVideosAction");_.uW3=new _.x("updatePlaylistAction");_.CUd=new _.x("addToPlaylistCommand");_.xIV=new _.x("endPlaylistCommand");_.Y8d=new _.x("recoverPlaylistCommand");_.ZeV=new _.x("refreshPlaylistCommand");_.EsV=new _.x("refreshFormCommand");MsI=new _.x("openOnePickAddVideoModalCommand");_.aCq=new _.x("reloadContinuationItemsCommand");_.dcg=new _.x("scrollToEngagementPanelCommand");var Nym=new _.x("selectCountryCommand");var RcC=new _.x("showReloadUiCommand");var XXL=new _.x("undoFeedbackAction");var Fkz=new _.x("updateButtonAction");var DDj=new _.x("updateSubscribeButtonAction");var AYL=new _.x("updateToggleAction");var VsI=new _.x("webNativeShareCommand");_.an=new _.x("webCommandMetadata");_.vq=new _.x("webHandleServiceEndpointExtension");var tTS=new _.x("webNavigationEndpointData");var ljL=new _.x("copyLinkCommand");var $cL=new _.x("playlistVotingRefreshPopupCommand");var ByC=new _.x("selectChipCommand");var kUC=new _.x("setCookieCommand");var TyV=new _.x("setLocalStorageCommand");var Dcm=new _.x("setPrefStorageEntryCommand");var pX3;_.g9C=new _.x("settingsUpdateCheckboxCommand");_.Wkg=new _.x("settingsUpdateTextCommand");_.wXd=new _.x("settingsUpdateOptionsCommand");pX3=new _.x("settingsUpdateSwitchCommand");_.mc3=new _.x("settingsUpdateConnectedAppRendererCommand");var hco=new _.x("updateTextInputFormFieldRendererCommand");var Qee=new _.x("updateToggleButtonStateCommand");var qFe=new _.x("updateUrlParamCommand");var IjC=new _.x("webSubmitFormCommand");var v9d=new _.x("channelSwitcherPageRenderer"),O2g=new _.x("updateChannelSwitcherPageAction");_.R1=new _.x("continuationItemRenderer");_.OP=new _.x("richItemRenderer");var jeL=new _.x("richSectionRenderer");_.sem=new _.x("richShelfRenderer");_.PmJ=new _.x("metadataBadgeRenderer");_.o9z=new _.x("multiPageMenuNotificationSectionRenderer");_.rY3=new _.x("playlistLoopButtonStateRenderer");var KkC=new _.x("claimLegacyYoutubeChannelEndpoint");var yYm=new _.x("getNotificationMenuEndpoint");var JYo=new _.x("getSearchInVideoCommand");_.cYe=new _.x("getTranscriptEndpoint");_.A$=new _.x("signalServiceEndpoint");var SFm=new _.x("verifyAgeEndpoint");var RYS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(RYS,_.Jj);RYS.prototype.getPath=function(){return _.rP(this,1)};
RYS.prototype.getValue=function(){return _.rP(this,2)};var zcd=[0,_.G7,-1];var b2C=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(b2C,_.Jj);var NgS=_.uO(b2C,[0,_.U1,zcd]);var ecz=new _.x("dismissalEndpoint");var H23=new _.x("elementsCommand");_.mX=new _.x("innertubeCommand");var n9V=new _.x("multipleInlinePlaybackCommand");var PEZ=new _.x("loggingDirectives");var TGi={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"};var i2L=new _.x("acknowledgeChannelTouStrikeCommand");var fjL=function(){QP.apply(this,arguments)};
_.v(fjL,QP);fjL.prototype.getAssociations=function(){return[]};var LkI=function(){QP.apply(this,arguments)};
_.v(LkI,QP);LkI.prototype.getAssociations=function(){return[]};var JI=new _.x("entityBatchUpdate");_.tsd=new _.x("entityUpdateCommand");var GUm=function(){QP.apply(this,arguments)};
_.v(GUm,QP);GUm.prototype.getAssociations=function(){var M=[];this.delegate.alternateChannel&&M.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&M.push.apply(M,_.wu(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&M.push(this.delegate.oneofChannelEntity);return[].concat(_.wu(new Set(M)))};var ajd=function(){QP.apply(this,arguments)};
_.v(ajd,QP);ajd.prototype.getAssociations=function(){var M=[];this.delegate.entryCollection&&M.push(this.delegate.entryCollection);return[].concat(_.wu(new Set(M)))};
var UcC=function(){QP.apply(this,arguments)};
_.v(UcC,QP);UcC.prototype.getAssociations=function(){var M=[];this.delegate.parentPlaylist&&M.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var d=_.V(this.delegate.entries),N=d.next();!N.done;N=d.next())M.push.apply(M,_.wu((new u7g(N.value)).getAssociations()));return[].concat(_.wu(new Set(M)))};
var u7g=function(){h6.apply(this,arguments)};
_.v(u7g,h6);u7g.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);return[].concat(_.wu(new Set(M)))};var Cme=function(){QP.apply(this,arguments)};
_.v(Cme,QP);Cme.prototype.getAssociations=function(){var M=[];this.delegate.descriptionEntity&&M.push(this.delegate.descriptionEntity);this.delegate.creators&&M.push.apply(M,_.wu(this.delegate.creators));this.delegate.theBiggestFan&&M.push(this.delegate.theBiggestFan);return[].concat(_.wu(new Set(M)))};
var xco=function(){QP.apply(this,arguments)};
_.v(xco,QP);xco.prototype.getAssociations=function(){return[]};var YFJ=new _.x("fantasyRosterViewModel");var Z2V=new _.x("addFollowUpSurveyCommand");var E9o=new _.x("getSurveyCommand");var M8V=new _.x("ratingSurveyOptionRenderer");_.yr=new _.x("feedbackEndpoint");var d2L=new _.x("reportHistoryTableCellRenderer"),NGV=new _.x("reportHistoryTableTextCellRenderer"),Rwe=new _.x("reportHistoryTableReasonCellRenderer");_.Xvd=new _.x("flagEndpoint");var F8J=new _.x("getFlowCommand");var AWL=new _.x("submitFormWithValidationFlowCommand");var V8t=function(){QP.apply(this,arguments)};
_.v(V8t,QP);V8t.prototype.getAssociations=function(){return[]};var lVV=new _.x("flowFormState");var $2C=new _.x("gameCardRenderer");var BGd=new _.x("accountLinkingStateChangedCommand");var k_C=function(){QP.apply(this,arguments)};
_.v(k_C,QP);k_C.prototype.getAssociations=function(){return[]};var TGL=new _.x("changeMiniAppPlayStateCommand");var D2V=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(D2V,_.Jj);var jH=[1,2,3];var g5L=[0,jH,y7L,_.J7p,OsL];var W83=_.uO(D2V,g5L),wvL=_.CK(g5L);var pve=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(pve,_.Jj);var m2e=[0,_.f5,_.G7];var hwV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(hwV,_.Jj);var Qto=[0,_.G7];var qKV=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(qKV,_.Jj);var IVV=function(M,d){return _.CE(M,3,d)};var v5e=_.CK([0,1,m2e,_.C5,Qto]);var OUL=new _.x("miniAppScoreChallengeViewModel");var jte=new _.x("miniGameCardViewModel");var stL=new _.x("teaserCardViewModel");var PJd=function(){QP.apply(this,arguments)};
_.v(PJd,QP);PJd.prototype.getAssociations=function(){return[]};_.o5V=new _.x("feedbackItemRenderer");var rWt={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var K8V=function(){QP.apply(this,arguments)};
_.v(K8V,QP);K8V.prototype.getAssociations=function(){return[]};_.yWd=new _.x("playerInterstitialRenderer");var JWe=new _.x("getKidsBlocklistPickerCommand");_.cWz=new _.x("updateKidsBlacklistEndpoint");_.fQ=new _.x("likeEndpoint");var SKI,zwd,bUJ;SKI=new _.x("addChatItemAction");zwd=new _.x("removeChatItemAction");bUJ=new _.x("markChatItemAsDeletedAction");_.ewg=new _.x("setLiveChatCollapsedStateAction");var HUC=function(){QP.apply(this,arguments)};
_.v(HUC,QP);HUC.prototype.getAssociations=function(){return[]};var n5z=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(n5z,_.Jj);var iUg=_.uO(n5z,[0,1,_.f5]);var fVd=new _.x("liveChatEndpoint");var L8d=new _.x("liveChatItemContextMenuEndpoint");var t8L=new _.x("liveChatReplayEndpoint");_.G_3=new _.x("emojiPickerRenderer");var aVd=new _.x("liveChatAuthorBadgeViewModel");var U2e=new _.x("deleteLiveChatMessageCommand");var uXo=new _.x("liveChatActionEndpoint");var CJC=new _.x("createLiveChatPollEndpoint");var x2V=new _.x("manageLiveChatUserEndpoint");var YKz=new _.x("moderateLiveChatEndpoint");_.ZU3=new _.x("sendLiveChatMessageEndpoint");var E5J=new _.x("sendLiveChatVoteEndpoint");var MXt=new _.x("clearLocationCommand");var dLC=new _.x("resolveLocationCommand");var NYd=new _.x("interactionLoggingCommandMetadata");var IJr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(IJr,_.Jj);var qwZ=function(M,d){return _.Eq(M,1,d)};var RVt=[0,_.ti];var QBZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(QBZ,_.Jj);var hlL=function(M,d){return lv(M,1,IJr,d)};QBZ.prototype.JSC$9958_serializeBinary=d9Z([0,_.U1,RVt]);var b2L={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 X3t={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"},
FEV={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 eZZ={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"};_.gJv=new _.x("logFlowLoggingEventCommand");_.NAi=new _.x("loggingContext");var A4L=new _.x("captionLanguageSelectActionCommand");var VXd=new _.x("showCaptionLanguageSelectActionCommand");var lB3=new _.x("dismissDialogEndpoint");var $LI=new _.x("hideItemSectionVideosByIdCommand");var BYe=new _.x("showMiniplayerCommand");var kYz=function(){QP.apply(this,arguments)};
_.v(kYz,QP);kYz.prototype.getAssociations=function(){return[]};var TYC=function(){QP.apply(this,arguments)};
_.v(TYC,QP);TYC.prototype.getAssociations=function(){return[]};var DLo=function(){QP.apply(this,arguments)};
_.v(DLo,QP);DLo.prototype.getAssociations=function(){return[]};var gkd=function(){QP.apply(this,arguments)};
_.v(gkd,QP);gkd.prototype.getAssociations=function(){var M=[];this.delegate.downloadsList&&M.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&M.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&M.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.wu(new Set(M)))};var WEe=function(){QP.apply(this,arguments)};
_.v(WEe,QP);WEe.prototype.getAssociations=function(){var M=[];this.delegate.refresh&&M.push(this.delegate.refresh);if(this.delegate.downloads)for(var d=_.V(this.delegate.downloads),N=d.next();!N.done;N=d.next())M.push.apply(M,_.wu((new w3e(N.value)).getAssociations()));return[].concat(_.wu(new Set(M)))};
var w3e=function(){h6.apply(this,arguments)};
_.v(w3e,h6);w3e.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playlist&&M.push(this.delegate.playlist);this.delegate.videoItem&&M.push(this.delegate.videoItem);this.delegate.playlistItem&&M.push(this.delegate.playlistItem);return[].concat(_.wu(new Set(M)))};var p3d=function(){QP.apply(this,arguments)};
_.v(p3d,QP);p3d.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.wu(this.delegate.localImageEntities));return[].concat(_.wu(new Set(M)))};var mLd=function(){QP.apply(this,arguments)};
_.v(mLd,QP);mLd.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.wu(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wu(new Set(M)))};var hVI=function(){QP.apply(this,arguments)};
_.v(hVI,QP);hVI.prototype.getAssociations=function(){return[]};var QUV=function(){QP.apply(this,arguments)};
_.v(QUV,QP);QUV.prototype.getAssociations=function(){var M=[];this.delegate.fakeChildren&&M.push.apply(M,_.wu(this.delegate.fakeChildren));return[].concat(_.wu(new Set(M)))};var qMd=function(){QP.apply(this,arguments)};
_.v(qMd,QP);qMd.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);return[].concat(_.wu(new Set(M)))};var IBe=function(){QP.apply(this,arguments)};
_.v(IBe,QP);IBe.prototype.getAssociations=function(){return[]};var vkV=function(){QP.apply(this,arguments)};
_.v(vkV,QP);vkV.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.videos&&M.push.apply(M,_.wu(this.delegate.videos));this.delegate.collaboratorChannels&&M.push.apply(M,_.wu(this.delegate.collaboratorChannels));this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.wu(new Set(M)))};var Oxo=function(){QP.apply(this,arguments)};
_.v(Oxo,QP);Oxo.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.channelContributor&&M.push(this.delegate.channelContributor);return[].concat(_.wu(new Set(M)))};var jUJ=function(){h6.apply(this,arguments)};
_.v(jUJ,h6);jUJ.prototype.getAssociations=function(){var M=[];this.delegate.recommendedVideoMetadata&&M.push.apply(M,_.wu((new sUt(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.wu(new Set(M)))};
var sUt=function(){h6.apply(this,arguments)};
_.v(sUt,h6);sUt.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.wu(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wu(new Set(M)))};var PVV=function(){h6.apply(this,arguments)};
_.v(PVV,h6);PVV.prototype.getAssociations=function(){var M=[];this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);return[].concat(_.wu(new Set(M)))};var okd=function(){QP.apply(this,arguments)};
_.v(okd,QP);okd.prototype.getAssociations=function(){var M=[];this.delegate.owner&&M.push(this.delegate.owner);this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.userState&&M.push.apply(M,_.wu((new PVV(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&M.push.apply(M,_.wu((new jUJ(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.wu(new Set(M)))};var r4d=function(){QP.apply(this,arguments)};
_.v(r4d,QP);r4d.prototype.getAssociations=function(){var M=[];this.delegate.userChannelDetails&&M.push(this.delegate.userChannelDetails);return[].concat(_.wu(new Set(M)))};var KEL=function(){QP.apply(this,arguments)};
_.v(KEL,QP);KEL.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&M.push.apply(M,_.wu(this.delegate.localImageEntities));this.delegate.downloadStatus&&M.push(this.delegate.downloadStatus);return[].concat(_.wu(new Set(M)))};var msj=new _.x("downloadsPageSmartDownloadsOptInBannerParams");var y4d=function(){QP.apply(this,arguments)};
_.v(y4d,QP);y4d.prototype.getAssociations=function(){return[]};var J43=function(){QP.apply(this,arguments)};
_.v(J43,QP);J43.prototype.getAssociations=function(){return[]};var c4J=function(){QP.apply(this,arguments)};
_.v(c4J,QP);c4J.prototype.getAssociations=function(){return[]};var SMt=function(){QP.apply(this,arguments)};
_.v(SMt,QP);SMt.prototype.getAssociations=function(){return[]};var zVe=function(){QP.apply(this,arguments)};
_.v(zVe,QP);zVe.prototype.getAssociations=function(){return[]};var bxt=function(){QP.apply(this,arguments)};
_.v(bxt,QP);bxt.prototype.getAssociations=function(){return[]};var eVJ=function(){QP.apply(this,arguments)};
_.v(eVJ,QP);eVJ.prototype.getAssociations=function(){return[]};var Hx3=function(){QP.apply(this,arguments)};
_.v(Hx3,QP);Hx3.prototype.getAssociations=function(){return[]};var jk=new _.x("dislikeButtonViewModel");var Oc=new _.x("likeButtonViewModel");var nk3=new _.x("videoSummaryContentViewModel");var Tp6=new _.x("videoSummaryParagraphViewModel");var ix3=new _.x("changeTimelyActionVisibilityCommand");var fBJ=new _.x("hideEngagementPanelEndpoint");var LE3=new _.x("refreshPanelEndpoint");var tXJ=new _.x("scrollToSectionEndpoint");var GYm=new _.x("seekToVideoTimestampCommand");_.Kt=new _.x("showEngagementPanelEndpoint");var aBt=new _.x("showTransientPlayerScrimOverlayCommand");var ULd=new _.x("toggleEngagementPanelCommand");_.uNo=new _.x("createBroadcastCommand");var CVV=new _.x("metadataUpdateCommand");var xLg=function(){QP.apply(this,arguments)};
_.v(xLg,QP);xLg.prototype.getAssociations=function(){return[]};var YML=function(){QP.apply(this,arguments)};
_.v(YML,QP);YML.prototype.getAssociations=function(){return[]};var Zxz=function(){QP.apply(this,arguments)};
_.v(Zxz,QP);Zxz.prototype.getAssociations=function(){return[]};_.Ekg=new _.x("merchandiseShelfRenderer");var MPV=new _.x("gridMovieRenderer");_.dGg=new _.x("movieRenderer");var NIz=function(){QP.apply(this,arguments)};
_.v(NIz,QP);NIz.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.wu(this.delegate.trackDownloadMetadatas));return[].concat(_.wu(new Set(M)))};var RiJ=function(){QP.apply(this,arguments)};
_.v(RiJ,QP);
RiJ.prototype.getAssociations=function(){var M=[];this.delegate.downloadedTracks&&M.push.apply(M,_.wu(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&M.push.apply(M,_.wu(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&M.push.apply(M,_.wu(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&M.push.apply(M,_.wu(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&M.push.apply(M,_.wu(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
M.push.apply(M,_.wu(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&M.push.apply(M,_.wu(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&M.push.apply(M,_.wu(this.delegate.metadataOnlyTracks));return[].concat(_.wu(new Set(M)))};var XFg=function(){QP.apply(this,arguments)};
_.v(XFg,QP);XFg.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.wu(this.delegate.trackDownloadMetadatas));return[].concat(_.wu(new Set(M)))};var FsL=function(){QP.apply(this,arguments)};
_.v(FsL,QP);FsL.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.wu(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wu(new Set(M)))};var AVo=function(){QP.apply(this,arguments)};
_.v(AVo,QP);
AVo.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&M.push.apply(M,_.wu(this.delegate.primaryArtists));this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.tracks&&M.push.apply(M,_.wu(this.delegate.tracks));this.delegate.share&&M.push(this.delegate.share);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.refresh&&
M.push(this.delegate.refresh);return[].concat(_.wu(new Set(M)))};
var VPJ=function(){QP.apply(this,arguments)};
_.v(VPJ,QP);VPJ.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.tracks&&M.push.apply(M,_.wu(this.delegate.tracks));return[].concat(_.wu(new Set(M)))};
var lAg=function(){QP.apply(this,arguments)};
_.v(lAg,QP);lAg.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);return[].concat(_.wu(new Set(M)))};var $Gm=function(){QP.apply(this,arguments)};
_.v($Gm,QP);$Gm.prototype.getAssociations=function(){var M=[];this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);return[].concat(_.wu(new Set(M)))};
var BIz=function(){QP.apply(this,arguments)};
_.v(BIz,QP);BIz.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.wu(new Set(M)))};
var k9C=function(){QP.apply(this,arguments)};
_.v(k9C,QP);k9C.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.wu(new Set(M)))};var TIL=function(){QP.apply(this,arguments)};
_.v(TIL,QP);TIL.prototype.getAssociations=function(){return[]};var DGt=function(){QP.apply(this,arguments)};
_.v(DGt,QP);DGt.prototype.getAssociations=function(){return[]};var gnV=function(){QP.apply(this,arguments)};
_.v(gnV,QP);
gnV.prototype.getAssociations=function(){var M=[];this.delegate.tracks&&M.push.apply(M,_.wu(this.delegate.tracks));this.delegate.refresh&&M.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&M.push(this.delegate.details);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&M.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.entryCollection&&
M.push(this.delegate.entryCollection);this.delegate.share&&M.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&M.push.apply(M,_.wu((new Wst(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.wu(new Set(M)))};
var Wst=function(){h6.apply(this,arguments)};
_.v(Wst,h6);Wst.prototype.getAssociations=function(){var M=[];this.delegate.creatorEntity&&M.push(this.delegate.creatorEntity);return[].concat(_.wu(new Set(M)))};var wFV=function(){QP.apply(this,arguments)};
_.v(wFV,QP);wFV.prototype.getAssociations=function(){return[]};var pFC=function(){QP.apply(this,arguments)};
_.v(pFC,QP);
pFC.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&M.push.apply(M,_.wu(this.delegate.artists));this.delegate.audioModeVersion&&M.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&M.push(this.delegate.videoModeVersion);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.details&&M.push(this.delegate.details);this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.share&&
M.push(this.delegate.share);this.delegate.libraryEdit&&M.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.lyrics&&M.push(this.delegate.lyrics);return[].concat(_.wu(new Set(M)))};
var mGV=function(){QP.apply(this,arguments)};
_.v(mGV,QP);mGV.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.wu(new Set(M)))};
var hi3=function(){QP.apply(this,arguments)};
_.v(hi3,QP);hi3.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.wu(new Set(M)))};var Mb=new _.x("musicResponsiveListItemRenderer");var x_N=new _.x("addToPlaylistEndpoint");var Qge=new _.x("captionPickerEndpoint");var qYt=new _.x("suggestStats");var IAL=new _.x("backstageImageUploadEndpoint");var vnd=new _.x("createBackstagePostDialogEndpoint");_.O7m=new _.x("createCommentReplyDialogEndpoint");_.jgL=new _.x("updateCommentDialogEndpoint");_.sgV=new _.x("updateCommentReplyDialogEndpoint");var Pc3=new _.x("menuEndpoint");var i06=new _.x("modalEndpoint");var on3=new _.x("playlistEditorEndpoint");var rVV=new _.x("copyTextEndpoint");var Kso,yVg;Kso=new _.x("shareEndpoint");yVg=new _.x("shareEntityEndpoint");_.JVV=new _.x("shareEntityServiceEndpoint");_.lCr=new _.x("userFeedbackEndpoint");_.nL=new _.x("watchEndpoint");var QdA=new _.x("watchPlaylistEndpoint");var cV3=new _.x("addUpcomingEventReminderEndpoint");_.sP=new _.x("getCommentsFromInboxCommand");var SYV=new _.x("notificationOptOutEndpoint");var ziI=new _.x("recordNotificationInteractionsEndpoint");var b7e=new _.x("removeUpcomingEventReminderEndpoint");var uvZ=new _.x("getDownloadActionCommand");_.eig=new _.x("offlineOrchestrationActionCommand");var H7z=function(){QP.apply(this,arguments)};
_.v(H7z,QP);H7z.prototype.getAssociations=function(){return[]};var nnm=function(){QP.apply(this,arguments)};
_.v(nnm,QP);nnm.prototype.getAssociations=function(){return[]};var i7I=function(){QP.apply(this,arguments)};
_.v(i7I,QP);i7I.prototype.getAssociations=function(){return[]};var fAg=function(){QP.apply(this,arguments)};
_.v(fAg,QP);fAg.prototype.getAssociations=function(){return[]};var LsL=function(){QP.apply(this,arguments)};
_.v(LsL,QP);LsL.prototype.getAssociations=function(){var M=[];this.delegate.transfer&&M.push(this.delegate.transfer);this.delegate.adsPlaybackData&&M.push.apply(M,_.wu(this.delegate.adsPlaybackData));this.delegate.drmLicense&&M.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.wu(new Set(M)))};var tPJ=function(){QP.apply(this,arguments)};
_.v(tPJ,QP);tPJ.prototype.getAssociations=function(){return[]};var G9V=function(){QP.apply(this,arguments)};
_.v(G9V,QP);G9V.prototype.getAssociations=function(){var M=[];this.delegate.offlineVideoStreams&&M.push.apply(M,_.wu(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&M.push.apply(M,_.wu(this.delegate.captionTrack));return[].concat(_.wu(new Set(M)))};var aAV=function(){QP.apply(this,arguments)};
_.v(aAV,QP);aAV.prototype.getAssociations=function(){return[]};var UGI=new _.x("showMoreDrawerCommand");var uMV=new _.x("updateEngagementPanelContentCommand");var CcL=new _.x("getPdgBuyFlowCommand");var xGz=new _.x("liveChatPurchaseMessageEndpoint");var YY3=new _.x("openSuperStickerBuyFlowCommand");var Z7J=new _.x("updatePdgFeatureEnablementCommand");var End=function(){QP.apply(this,arguments)};
_.v(End,QP);End.prototype.getAssociations=function(){return[]};var MOe=function(){QP.apply(this,arguments)};
_.v(MOe,QP);MOe.prototype.getAssociations=function(){return[]};_.dmL=new _.x("pdgCommentChipRenderer");_.NJC=new _.x("permissionRoleBottomBarRenderer");_.R0e=new _.x("updatePermissionRoleCommand");var X0g=new _.x("prefetchWatchCommand");var FQo=new _.x("updatePlayerErrorMessageCommand");var iBA=new _.x("toggleCaptionsVisibilityCommand");_.AOd=new _.x("quickActionsViewModel");var VO3=new _.x("playerResponse");var l6I=new _.x("playlistRenderer");_.$mm=new _.x("playlistVideoListRenderer");_.Pq=new _.x("playlistEditEndpoint");var BJg=new _.x("createImagePollCommand");var kJe=new _.x("createQuizCommand");var TJo=new _.x("quizRenderer");var DmI=new _.x("uploadedVideoRenderer");var gcg=new _.x("decorateMessageEndpoint");var WQm=new _.x("lpOfferCardOptionViewModel");var w0o=new _.x("sfvAudioItemPlaybackCommand");var p0o=function(){QP.apply(this,arguments)};
_.v(p0o,QP);p0o.prototype.getAssociations=function(){return[]};_.ou=new _.x("reelNonVideoContentEndpoint");_.$B=new _.x("reelWatchEndpoint");_.r9=new _.x("reelItemRenderer");var mmJ=new _.x("reelMetapanelViewModel");_.h0V=new _.x("reelNonVideoContentRenderer");_.QHL=new _.x("reelPlayerOverlayRenderer");var qjL=new _.x("shortsLockupViewModel");var I6V=new _.x("sponsorButtonViewModel");var vct=new _.x("reelItemWatchResponse");var OGL=new _.x("textBadgeRenderer");_.K9=new _.x("buttonRenderer");_.yP=new _.x("toggleButtonRenderer");var x6S=new _.x("switchButtonViewModel");_.jHC=new _.x("confirmDialogRenderer");var sHL;sHL=new _.x("menuRenderer");_.P0g=new _.x("menuFlexibleItemRenderer");var ocJ=new _.x("pollRenderer");_.rOL=new _.x("backgroundPromoRenderer");var yOV;_.KQd=new _.x("chipCloudRenderer");yOV=new _.x("chipCloudChipRenderer");var JOV=new _.x("dropdownRenderer");var cOV=new _.x("gridVideoRenderer");_.cgi=new _.x("itemSectionRenderer");_.SjJ=new _.x("messageRenderer");var z0e=new _.x("sortFilterHeaderRenderer");_.bGI=new _.x("videoRenderer");var f1t=new _.x("resolveUrlCommandMetadata");var L6d=function(){QP.apply(this,arguments)};
_.v(L6d,QP);L6d.prototype.getAssociations=function(){return[]};_.tHL=new _.x("getAnswerCommand");_.A2=new _.x("searchEndpoint");var GQo=new _.x("genAiRichTextViewModel");var U_2=new _.x("overviewAnswerViewModel");var a1J=new _.x("addToPlaylistServiceEndpoint");var Ust=new _.x("clearSearchHistoryEndpoint");var u6t=new _.x("clearWatchHistoryEndpoint");var C8o=new _.x("webSerializedServiceEndpointExtension");_.xsL=new _.x("createCommentEndpoint");var YPd=new _.x("createCommentReplyEndpoint");var Z9t=new _.x("performCommentActionEndpoint");var E3g=new _.x("updateCommentEndpoint");var M4t=new _.x("updateCommentReplyEndpoint");_.J6=new _.x("createPlaylistServiceEndpoint");var dTL=new _.x("deletePlaylistEndpoint");var Nmg=new _.x("deleteVideoEndpoint");var CN2=new _.x("getReportFormEndpoint");var RHC=new _.x("modifyChannelNotificationPreferenceEndpoint");var WmA;_.R0=new _.x("offlinePlaylistEndpoint");WmA={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 wer;_.NH=new _.x("offlineVideoEndpoint");wer={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 XnI=new _.x("pingingEndpoint");_.FTg=new _.x("selectActiveIdentityEndpoint");var Abt=new _.x("setSettingEndpoint");var HpL=new _.x("undoFeedbackEndpoint");var V4e=new _.x("unsubscribeEndpoint");_.lYL=new _.x("updatedMetadataEndpoint");var $To=function(){QP.apply(this,arguments)};
_.v($To,QP);$To.prototype.getAssociations=function(){return[]};_.Bmz=new _.x("updateLocalAppSettingCommand");var kqd=new _.x("saveImageToDeviceEndpoint");var Tm3=new _.x("shareImageCommand");var DTd=new _.x("sharingProviderDataCommand");var gOI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(gOI,_.Jj);var WTL=[0,_.G7,-1];gOI.prototype.JSC$10157_serializeBinary=d9Z(WTL);var wnd=_.CK(WTL);var pnL=new _.x("userMentionSuggestionRenderer");var mTI=new _.x("liveChatTunnelCommand");var hHt=new _.x("showSponsorshipsGiftOfferDialogCommand");var QLC=new _.x("sponsorshipsScrollableShelfViewModel");var q9m=new _.x("updateUpcomingEventReminderButtonStateCommand");var IYC=new _.x("upcomingEventReminderButtonStateRenderer");var vOd=new _.x("subscribeEndpoint");var O4I=new _.x("registerTasksCommand");var jLz=new _.x("showDialogCommand");_.$M=new _.x("showSheetCommand");var sLo=function(){QP.apply(this,arguments)};
_.v(sLo,QP);sLo.prototype.getAssociations=function(){return[]};_.fX=new _.x("avatarViewModel");var wOj=new _.x("badgeViewModel");_.QM=new _.x("buttonViewModel");_.cq=new _.x("chipViewModel");var OCZ=new _.x("contentPreviewImageViewModel");var yRv=new _.x("decoratedAvatarViewModel");var tyi=new _.x("downloadButtonViewModel");_.pM2=new _.x("engagementBarViewModel");_.zRi=new _.x("imageBannerViewModel");var J3L=new _.x("lockupContentMetadataRowExtension");var PgL=new _.x("lockupMetadataViewModel");_.oOL=new _.x("lockupViewModel");var rbe=function(){QP.apply(this,arguments)};
_.v(rbe,QP);rbe.prototype.getAssociations=function(){return[]};_.KTe=new _.x("pageHeaderViewModel");var noZ=new _.x("thumbnailHoverOverlayToggleActionsViewModel");_.qH=new _.x("toggleButtonViewModel");var ybV=function(){QP.apply(this,arguments)};
_.v(ybV,QP);ybV.prototype.getAssociations=function(){return[]};_.m7N=new _.x("votingViewModel");var JbL=new _.x("sectionHeaderViewModel");var cbV=new _.x("notifyDropdownOptionSelectedCommand");var Vyr=new _.x("listViewModel");_.B5=new _.x("listItemViewModel");var S9o=new _.x("dialogHeaderViewModel");var zHC=function(){QP.apply(this,arguments)};
_.v(zHC,QP);zHC.prototype.getAssociations=function(){return[]};var b4g=function(){QP.apply(this,arguments)};
_.v(b4g,QP);b4g.prototype.getAssociations=function(){return[]};var eHL=function(){QP.apply(this,arguments)};
_.v(eHL,QP);eHL.prototype.getAssociations=function(){return[]};_.H4g=new _.x("transcriptSubmitCaptionCorrectionCommand");var nOd=function(){QP.apply(this,arguments)};
_.v(nOd,QP);nOd.prototype.getAssociations=function(){return[]};var oJr=new _.x("unpluggedStringRunImage");var i4J=new _.x("tabViewModel");var fYL=new _.x("tabbedViewModel");var LTo=function(){QP.apply(this,arguments)};
_.v(LTo,QP);LTo.prototype.getAssociations=function(){return[]};_.t4d=new _.x("updateDescriptionAction");var Gqd=new _.x("updateToggleButtonTextAction");_.aYL=new _.x("autoplaySwitchButtonRenderer");var St;_.UTV=new _.x("multiMarkersPlayerBarRenderer");St=new _.x("chapterRenderer");var uDL=new _.x("heatMarkerRenderer");var YQq=new _.x("heatmapRenderer");var Cgg=new _.x("smartSkipPlayerScrimOverlayRenderer");var xT3=new _.x("timedMarkerDecorationRenderer");var Acj=new _.x("postWebToNativeMessageCommand");var Y9t=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Y9t,_.Jj);var Z4L=_.uO(Y9t,[0,_.G7,-2]);var EOL=new _.x("whitelistEditEndpoint");var MVL=new _.x("clearUrlParamCommand");var dlV=new _.x("commerceActionCommand");_.Nbo=new _.x("getPaymentInstrumentsParamsCommand");var RfI=new _.x("getPaymentsClientTokenCommand");var XAd=new _.x("googlePaymentBillingCommand");var FMV=new _.x("googlePaymentPurchaseManagerCommand");_.AK3=new _.x("logGtmCommand");var VVL=new _.x("updateCardItemOnClickCommand");_.lpd=new _.x("ypcPauseSubscriptionCommand");_.$lz=new _.x("ypcResumeSubscriptionCommand");var BbL=function(){QP.apply(this,arguments)};
_.v(BbL,QP);BbL.prototype.getAssociations=function(){return[]};var kn3=function(){QP.apply(this,arguments)};
_.v(kn3,QP);kn3.prototype.getAssociations=function(){return[]};var Tbe=function(){QP.apply(this,arguments)};
_.v(Tbe,QP);Tbe.prototype.getAssociations=function(){return[]};var DlJ=function(){QP.apply(this,arguments)};
_.v(DlJ,QP);DlJ.prototype.getAssociations=function(){return[]};var gHg=function(){QP.apply(this,arguments)};
_.v(gHg,QP);gHg.prototype.getAssociations=function(){return[]};var QVi=new _.x("ypcOffersEndpoint");var WMV=new _.x("cardItemRenderer"),wAe=new _.x("cardItemTextRenderer");var pAg=new _.x("commerceCartItemQuantityPickerRenderer");var mle=new _.x("linkCardRenderer");var EN2=new _.x("quantityIncrementerButtonViewModel");var hfI=new _.x("quantityIncrementerViewModel");var QhV=new _.x("themedImageViewModel");_.qnC=new _.x("ypcCancelRecurrenceEndpoint");var IpI=new _.x("ypcCompleteTransactionEndpoint");_.vHo=new _.x("ypcGetCartEndpoint");_.Ec=new _.x("ypcGetOffersEndpoint");_.SH=new _.x("ypcHandleTransactionEndpoint");var O$e=new _.x("ypcLogWalletAnalyticDataEndpoint");_.jhd=new _.x("ypcRedeemCodeEndpoint");var shV=new _.x("ypcUpdateFopEndpoint");Ms(Ej(1),Yc(4));TZz((new MessageChannel).port2);var PWm=function(){this.register=new Map},H2Z=function(M,d,N){M=M+"_"+d;
zQ.register.has(M)?N=zQ.register.get(M):(N=N(),zQ.register.set(M,N));return N},oHV=function(M){M=_.V(M.register.values());
for(var d=M.next();!d.done;d=M.next())_.gz(d.value,"ABORTED")};
PWm.prototype.clear=function(){oHV(this);this.register.clear()};
var zQ=new PWm;var pXZ=Date.now().toString();var hc6,rK3=_.Np.ytLoggingDocDocumentNonce_;rK3||(rK3=Qb(16),_.fE("ytLoggingDocDocumentNonce_",rK3));hc6=rK3;var Pmr={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 KMV;KMV=1;_.qw=function(M){this.veData=M};
_.At=function(M){return new _.qw({trackingParams:M})};
_.Tx=function(M,d,N,R,X,A){var l=KMV++;return new _.qw({veType:M,veCounter:l,elementIndex:N,dataElement:d,youtubeData:R,jspbYoutubeData:X,loggingDirectives:A})};
_.F=_.qw.prototype;
_.F.getAsJson=function(){var M={};this.veData.trackingParams!==void 0?M.trackingParams=this.veData.trackingParams:(M.veType=this.veData.veType,this.veData.veCounter!==void 0&&(M.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(M.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(M.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(M.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(M.isCounterfactual=!0);
return M};
_.F.getAsJspb=function(){var M=new gvV;this.veData.trackingParams!==void 0?M.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.SS(M,2,this.veData.veType),this.veData.veCounter!==void 0&&_.SS(M,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.SS(M,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Eq(M,5,!0));if(this.veData.dataElement!==void 0){var d=this.veData.dataElement.getAsJspb();_.ZG(M,7,d)}this.veData.youtubeData!==void 0&&_.ZG(M,8,this.veData.jspbYoutubeData);
return M};
_.F.toString=function(){return JSON.stringify(this.getAsJson())};
_.F.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.F.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.fE("yt_logging_screen.getRootVeType",O2Z);_.fE("yt_logging_screen.getCurrentCsn",_.Ou);_.fE("yt_logging_screen.getCttAuthInfo",jE);_.fE("yt_logging_screen.setCurrentScreen",_.KkL);var yKI=function(){this.events=new Map},JKz=function(M){var d=[];
M=_.V(M.events.values());for(var N=M.next();!N.done;N=M.next())d.push(N.value);return d};
yKI.prototype.clear=function(){this.events.clear()};var Snz=function(){this.logTransport=new cKd;this.loggedEventRegister=new yKI;this.unloggedEventRegister=new yKI;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10212_flushTimer=new _.Ga(this.flushInterval);this.JSC$10212_flushTimer.listen("tick",this.flush,!1,this)};
Snz.prototype.flush=function(){if(this.eventsCount){var M={loggedEvents:JKz(this.loggedEventRegister),unloggedEvents:JKz(this.unloggedEventRegister)};if(_.Q("export_player_version_to_ytconfig")){var d;(d=_.rK("PLAYER_CLIENT_VERSION"))?(d=d.split("-")[0].replace(/\./g,""),d=isNaN(Number(d))?"0":d):d="";var N=_.rK("PLAYER_CLIENT_VERSION");if(N){N=N.split("-");var R="";N.length>1&&(R=N[N.length-1]);N=wXZ(R.startsWith("canary_experiment")?"canary":R.startsWith("canary_control")?"control":"none")}else N=
"CLIENT_CANARY_STATE_UNKNOWN";M.dimensions={playerClientVersion:d,playerCanaryState:N}}this.logTransport.flush(M);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10212_flushTimer.enabled&&this.JSC$10212_flushTimer.stop()}};
var zfC=function(M){b8==null&&(b8=new Snz);var d=b8;var N=d.loggedEventRegister;M.dimensions=M.dimensions||{};M.dimensions.csn=_.Ou()||"";var R=yYv(M.dimensions).join(";");if(M.records!=null)if(N.events.has(R)){var X;(X=N.events.get(R).records)==null||X.push.apply(X,_.wu(M.records))}else N.events.set(R,M);d.JSC$10212_flushTimer.enabled||d.JSC$10212_flushTimer.start();d.eventsCount++;d.eventsCount>=100&&d.flush()};var cKd=function(){};
cKd.prototype.flush=function(M,d){_.Q("enable_client_sli_logging")&&_.hQ("sliEventBatch",M,{sendIsolatedPayload:!!d})};var b8;var efC;efC=function(M){var d=b$I;M=M===void 0?{}:M;d=d.name;var N=ecq("SUCCESS");zfC({dimensions:M,records:[{name:d,state:"SLI_STATE_END",status:N}]})};
_.n9S=function(M,d,N,R){this.name=M;this.sliId=d;this.timeoutMs=N;this.statusOnTimeout=R;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.n9S.prototype.getId=function(){return this.sliId};
_.D7=function(M,d){d=d===void 0?{}:d;M.ongoing||(M.ongoing=!0,M.dimensions=d,M.logSliId=tmd(),zfC({dimensions:M.dimensions,records:[{name:M.name,state:"SLI_STATE_START",sliId:M.logSliId}]}),M.timeoutMs>0&&(M.timeoutHandle=setTimeout(function(){_.gz(M,M.statusOnTimeout)},M.timeoutMs)))};
_.gz=function(M,d){M.ongoing&&(M.timeoutMs>0&&clearTimeout(M.timeoutHandle),M.ongoing=!1,d={dimensions:M.dimensions,records:[{name:M.name,status:ecq(d),state:"SLI_STATE_END",sliId:M.logSliId}]},zQ.register.delete(M.name+"_"+M.sliId),zfC(d))};var b$I=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var H$L=function(){QP.apply(this,arguments)};
_.v(H$L,QP);H$L.prototype.getAssociations=function(){return[]};var Wp2=new _.x("highlightTextDecoratorColorMapExtension");var DKq=new _.x("styleRunColorMapExtension");var UcL=_.a1(["data-"]),xc6={};var Z2S={};_.yb=function(M,d,N){_.Mp.call(this,M+", errorCode="+d);this.errorCode=d;this.xhr=N;this.name="PromiseAjaxError"};
_.v(_.yb,_.Mp);var Rwp=function(M){this.xhr=M};var eH=function(M){this.wrappedPromise_=M===void 0?null:M;this.state_=0;this.JSC$10244_value_=null};
eH.prototype.then=function(M,d,N){return this.wrappedPromise_?this.wrappedPromise_.then(M,d,N):this.state_===1&&M?(M=M.call(N,this.JSC$10244_value_))&&typeof M.then==="function"?M:_.Hq(M):this.state_===2&&d?(M=d.call(N,this.JSC$10244_value_))&&typeof M.then==="function"?M:_.nHL(M):this};
eH.prototype.getValue=function(){return this.JSC$10244_value_};
eH.prototype.isRejected=function(){return this.state_==2};
gtz(eH);_.nHL=function(M){var d=new eH;M=M===void 0?null:M;d.state_=2;d.JSC$10244_value_=M===void 0?null:M;return d};
_.Hq=function(M){var d=new eH;M=M===void 0?null:M;d.state_=1;d.JSC$10244_value_=M===void 0?null:M;return d};var NGS={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var hwS="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var i$t=["load","abort","error"],n9=function(M,d,N){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10264_maxAspectRatio_=M;this.disableAnimation_=d===void 0?!1:d;this.disableExifRotation_=N===void 0?!1:N;this.JSC$10264_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10264_reject_=this.resolve_=null};
n9.prototype.transform=function(M){var d=this;this.mime_=M.type;tY(Bfd(M),this.dataUrlRead_,this.readError_,this);tY($Xm(M.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(N,R){d.resolve_=N;d.JSC$10264_reject_=R})};
n9.prototype.dataUrlRead_=function(M){this.dataUrl_=M;this.angle_!=null&&fpC(this)};
n9.prototype.exifRead_=function(M){if(this.disableExifRotation_)this.angle_=0;else{a:if(M=new DataView(M),M.byteLength<2||M.getUint16(0)!==65496)M=-2;else{for(var d=2,N=M.byteLength;d<N;){var R=M.getUint16(d),X=M.getUint16(d+2);if(R===65505){d+=4;R=M.getUint32(d);X=M.getUint16(d+4);if(R!==1165519206||X!==0)break;d+=6;R=M.getUint16(d)===18761;d+=M.getUint32(d+4,R);X=M.getUint16(d,R);d+=2;for(var A=0;A<X;A++){if(M.getUint16(d,R)===274){d+=8;M=M.getUint16(d,R);break a}d+=12}}else if(R>>8!==255)break;
else d+=X+2}M=-1}switch(M){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&fpC(this)};
n9.prototype.readError_=function(){this.JSC$10264_reject_()};
var fpC=function(M){XQ(M.JSC$10264_image_,i$t,M.completeTransform_,!1,M);M.JSC$10264_image_.src=_.gH(M.dataUrl_).toString();M.JSC$10264_image_.src!=DW.toString()&&M.JSC$10264_image_.src.substr(0,11)==="data:image/"||M.JSC$10264_reject_()};
n9.prototype.completeTransform_=function(){if(this.JSC$10264_image_.src!=DW.toString()){var M=_.gH(this.dataUrl_),d=this.JSC$10264_image_.naturalHeight?this.JSC$10264_image_.naturalWidth/this.JSC$10264_image_.naturalHeight:null;this.invalidAspectRatio=d>this.JSC$10264_maxAspectRatio_||d<1/this.JSC$10264_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var N=this.JSC$10264_image_.naturalWidth,R=this.JSC$10264_image_.naturalHeight,X=d=0,A=this.JSC$10264_image_.naturalHeight?this.JSC$10264_image_.naturalWidth/
this.JSC$10264_image_.naturalHeight:null;A>this.JSC$10264_maxAspectRatio_?(N=this.JSC$10264_maxAspectRatio_*R,d=(N-this.JSC$10264_image_.naturalWidth)/2,this.cropped=!0):A<1/this.JSC$10264_maxAspectRatio_?(R=this.JSC$10264_maxAspectRatio_*N,X=(R-this.JSC$10264_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)A=N,N=R,R=A,A=d,d=X,X=A;switch(this.angle_){case 90:X-=N;break;case 180:d-=N;X-=R;break;case 270:d-=
R}this.cropped||this.angle_%360!==0?(M=document.createElement("canvas"),M.width=N||1,M.height=R||1,this.JSC$10264_image_.naturalWidth&&this.JSC$10264_image_.naturalHeight&&(N=M.getContext("2d"),N.rotate(Math.PI/180*this.angle_),N.drawImage(this.JSC$10264_image_,d,X,this.JSC$10264_image_.naturalWidth,this.JSC$10264_image_.naturalHeight)),this.transformedData=_.gH(M.toDataURL(this.mime_))):this.transformedData=M}else this.transformedData=M;this.resolve_(this)}};var i8=function(M,d){_.Dj.call(this,M);this.value=d};
_.v(i8,_.Dj);
var f9=function(M,d,N,R,X,A,l){l=l===void 0?!1:l;_.mk.call(this);var k=this;this.JSC$10269_url_=M;this.channelId_=d;this.maxFileSizeMb_=N;this.JSC$10269_maxAspectRatio_=R;this.dropZoneEl_=X;this.rejectInvalidAspectRatio_=l;this.selectButtonEl_=A;this.JSC$10269_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new l8(this.dropZoneEl_);this.selectOverlay_=new $3(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10269_image_=this.transfer_=null;this.handler_=new _.a_(this);_.RW(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(A,"click",function(){k.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.v(f9,_.mk);f9.prototype.disposeInternal=function(){for(var M=this.selectButtonEl_.nextSibling;M&&M.parentNode&&M.tagName=="INPUT";)M.parentNode.removeChild(M),M=this.selectButtonEl_.nextSibling;this.cancel();_.mk.prototype.disposeInternal.call(this)};
f9.prototype.uploadPromise=function(){if(this.JSC$10269_image_==null)return null;this.uploadPromise_||LMV(this);return this.uploadPromise_};
f9.prototype.cancel=function(){tVd(this);this.JSC$10269_image_=null};
var tVd=function(M){M.transfer_&&M.transfer_.cancel();M.transfer_=null;M.uploadPromise_=null;M.resolve_=null;M.JSC$10269_reject_=null},LMV=function(M){tVd(M);
M.transfer_=_.oho(M.JSC$10269_url_,{"X-YouTube-ChannelId":M.channelId_},M.JSC$10269_image_);M.handler_.listenOnce(M.transfer_,"l",M.JSC$10271_onUploadComplete_);M.handler_.listenOnce(M.transfer_,"n",M.onUploadError_);M.transfer_.run();M.uploadPromise_=new Promise(function(d,N){M.resolve_=d;M.JSC$10269_reject_=N})};
_.F=f9.prototype;_.F.onChange_=function(M){M.files.length&&(this.JSC$10269_image_=M.files[0],this.JSC$10269_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10269_image_=null,this.dispatchEvent(new i8("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(LMV(this),(new n9(this.JSC$10269_maxAspectRatio_)).transform(this.JSC$10269_image_).then((0,_.gx)(this.onPreview_,this),(0,_.gx)(this.onPreviewError_,this))))};
_.F.onPreview_=function(M){if(M.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10269_image_=null),this.dispatchEvent(new i8("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;M.cropped&&this.dispatchEvent(new i8("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new i8("yt.comments.ImageUploadOverlay.CHANGE_EVENT",M.transformedData))};
_.F.onPreviewError_=function(){this.JSC$10269_image_=null;this.dispatchEvent(new i8("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.F.onHover_=function(M){M.stopPropagation();M.preventDefault();if(M.type==="dragover")M=!0;else if(M.type==="dragleave")M=!1;else return;this.dispatchEvent(new i8("yt.comments.ImageUploadOverlay.HOVER_EVENT",M))};
_.F.JSC$10271_onUploadComplete_=function(){var M=(0,_.HIt)(this.transfer_.getResponseText());this.resolve_(M.encryptedBlobId)};
_.F.onUploadError_=function(){this.JSC$10269_reject_();tVd(this)};var GnV=function(M){M=M||{};var d={},N={};this.url=M.url||"";this.args=M.args||_.wF.clone(d);this.assets=M.assets||{};this.attrs=M.attrs||_.wF.clone(N);this.fallback=M.fallback||null;this.fallbackMessage=M.fallbackMessage||null;this.html5=!!M.html5;this.disable=M.disable||{};this.loaded=!!M.loaded;this.messages=M.messages||{}};
GnV.prototype.clone=function(){var M=new GnV,d;for(d in this)if(this.hasOwnProperty(d)){var N=this[d];M[d]=_.$e(N)=="object"?_.wF.clone(N):N}return M};var apL,UlI,u5g,E$,xld,Ynd,Z$C,EHL,M$V,dhV,NQC,RAt,XGJ,Fqd,AsJ,V$z,ldo,$hL,BQV,kcL,TQd,DhL,gym,WqL,wGm,pGm,mhV,hAe,Qdt,D7p,qbI,Idd,vyd,OVL,jdL,sdC,Pnm,oyL,rsV,Kq3,ysL,Jsz,cs3,Sbm,zAd,bVe,eAV,HVL,nyV,iVd,fdo,LqI,t$o,GcI,adm,Uhz,L9,unJ,Cne,xho,Ybd,ZVC,Eyd,MQV,d1d,Nhm,Rmz,Xko,F4o,ANI,VQV,lh3,$1I,BhL,k1C,kzL,ThC,D1g,g0L,W4J,wkg,pkL,m1J,hmt,Qko,qpI,Iht,v0m,Ofg,jkL,skV,P$I,o0C,rNL,K4C,yNJ,JNL,cNo,Spz,zm3,bfL;apL=["account/accounts_list"];UlI=["acknowledge_channel_tou_strike"];u5g=["notification/add_upcoming_event_reminder"];
_.CWC=["att/get"];E$=["browse","music/browse","unplugged/browse"];xld=["channel/claim_legacy_youtube_channel"];Ynd=["history/clear_search_history"];Z$C=["history/clear_watch_history"];EHL=["comment/perform_comment_action"];M$V=["comment/get_comment_replies"];dhV=["ypc/commerce_action"];NQC=["backstage/create_post"];RAt=["live/create_broadcast"];XGJ=["channel/create_channel"];Fqd=["comment/create_comment_reply"];AsJ=["comment/create_comment"];V$z=["live_chat/create_poll"];ldo=["playlist/create"];
$hL=["decorate_message"];BQV=["live_chat/delete_message"];kcL=["playlist/delete"];TQd=["video/delete"];DhL=["like/dislike"];gym=["dismissal/dismiss"];WqL=["flag/flag"];wGm=["flow"];pGm=["account/account_menu"];mhV=["playlist/get_add_to_playlist"];hAe=["get_answer"];Qdt=["channel/get_channel_creation_form"];D7p=["offline/get_download_action"];qbI=["kids/get_kids_blocklist_picker"];Idd=["live_chat/get_item_context_menu"];vyd=["live_chat/get_live_chat_message_buy_flow"];OVL=["live_chat/get_live_chat_replay"];
jdL=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];sdC=["live_chat/get_live_chat_super_sticker_buy_flow"];Pnm=["notification/get_notification_menu"];oyL=["playlist/get_settings_editor"];rsV=["backstage/get_post_video_preview"];Kq3=["account/get_profile_card"];ysL=["share/get_share_panel"];Jsz=["share/get_sharing_provider_data"];cs3=["get_survey"];Sbm=["notification/get_unseen_count"];zAd=["get_user_mention_suggestions"];bVe=["get_watch"];eAV=["guide"];
HVL=["feedback"];nyV=["kids/update_blacklist"];iVd=["like/like"];fdo=["live_chat/live_chat_action"];LqI=["live_chat/manage_user"];t$o=["video_manager/metadata_update"];GcI=["live_chat/moderate"];adm=["notification/modify_channel_preference"];Uhz=["notification/opt_out"];L9=["get_panel","get_posts_by_host_panel"];unJ=["player"];Cne=["browse/edit_playlist"];xho=["notification/record_interactions"];Ybd=["reel/reel_item_watch"];ZVC=["reel/reel_watch_sequence"];Eyd=["like/removelike"];MQV=["notification/remove_upcoming_event_reminder"];
d1d=["flag/get_form"];Nhm=["miniapp/report_value"];Rmz=["navigation/resolve_url"];Xko=["channel/reveal_business_email"];F4o=["in_video/search"];ANI=["search","sfv/search","unplugged/search"];VQV=["live_chat/send_message"];lh3=["live_chat/send_live_chat_vote"];$1I=["account/set_setting"];BhL=["submit_caption_correction"];k1C=["subscription/subscribe"];kzL=["get_transcript"];ThC=["resolve_location","unplugged/resolve_location"];D1g=["subscription/unsubscribe"];g0L=["backstage/update_post"];W4J=["channel_edit/update_channel_page_settings"];
wkg=["comment/update_comment_reply"];pkL=["comment/update_comment"];m1J=["comment/update_comments_settings"];hmt=["creator/update_creator_channel"];Qko=["pdg/update_enablement"];qpI=["updated_metadata"];Iht=["channel_edit/validate_channel_handle"];v0m=["verify_age"];Ofg=["next","unplugged/watch_next"];jkL=["whitelist/edit"];skV=["ypc/cancel_recurrence"];P$I=["ypc/complete_transaction"];o0C=["ypc/get_cart"];rNL=["ypc/get_fix_instrument_params"];K4C=["ypc/get_offers"];yNJ=["ypc/get_payment_instruments_params"];
JNL=["ypc/handle_transaction"];cNo=["ypc/log_payment_server_analytics"];Spz=["ypc/pause_subscription"];zm3=["ypc/redeem_code"];bfL=["ypc/resume_subscription"];var emt=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,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,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,
3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,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,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,
32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,
28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var Vh=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.fE("yt.msgs_",Vh);var t6=new _.x5("ACTION_ROUTER_TOKEN");_.GQ=function(){this.autonavState_=_.Q("kevlar_is_pupi_enabled")?2:yWZ()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.GQ.prototype.getState=function(){return this.autonavState_};
_.GQ.prototype.pause=function(M){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=M):this.autonavState_==1&&(this.disabledAutonavPauseReason_=M)};
_.GQ.prototype.setState=function(M,d,N){d&&(this.autoplayChangedByUser=!0);d=this.autonavState_===3||M===3;this.autonavState_!=M&&(this.autonavState_=M,M!=3&&_.JWp(M==2),M=_.Q("kevlar_is_pupi_enabled")?N||d:!0,_.ch.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,M,N))};
_.GQ.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.dP(_.GQ);var au=function(){this.hasRun=!1};var UP={},aVZ=(UP.auto_search="LATENCY_ACTION_AUTO_SEARCH",UP.ad_to_ad="LATENCY_ACTION_AD_TO_AD",UP.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",UP.app_startup="LATENCY_ACTION_APP_STARTUP",UP.browse="LATENCY_ACTION_BROWSE",UP.cast_splash="LATENCY_ACTION_CAST_SPLASH",UP.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",UP.channels="LATENCY_ACTION_CHANNELS",UP.chips="LATENCY_ACTION_CHIPS",UP.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",UP.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
UP.editor="LATENCY_ACTION_EDITOR",UP.embed="LATENCY_ACTION_EMBED",UP.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",UP.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",UP.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",UP.explore="LATENCY_ACTION_EXPLORE",UP.favorites="LATENCY_ACTION_FAVORITES",UP.home="LATENCY_ACTION_HOME",UP.inboarding="LATENCY_ACTION_INBOARDING",UP.landing="LATENCY_ACTION_LANDING",UP.library="LATENCY_ACTION_LIBRARY",UP.live=
"LATENCY_ACTION_LIVE",UP.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",UP.management="LATENCY_ACTION_MANAGEMENT",UP.mini_app="LATENCY_ACTION_MINI_APP_PLAY",UP.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",UP.onboarding="LATENCY_ACTION_ONBOARDING",UP.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",UP.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",UP.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",UP.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
UP.prebuffer="LATENCY_ACTION_PREBUFFER",UP.prefetch="LATENCY_ACTION_PREFETCH",UP.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",UP.profile_switcher="LATENCY_ACTION_LOGIN",UP.projects="LATENCY_ACTION_PROJECTS",UP.reel_watch="LATENCY_ACTION_REEL_WATCH",UP.results="LATENCY_ACTION_RESULTS",UP.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",UP.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",UP.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",UP.review="LATENCY_ACTION_REVIEW",UP.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",UP.search_ui="LATENCY_ACTION_SEARCH_UI",UP.search_suggest="LATENCY_ACTION_SUGGEST",UP.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",UP.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",UP.seek="LATENCY_ACTION_PLAYER_SEEK",UP.settings="LATENCY_ACTION_SETTINGS",UP.store="LATENCY_ACTION_STORE",UP.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",UP.tenx="LATENCY_ACTION_TENX",UP.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",UP.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
UP.watch="LATENCY_ACTION_WATCH",UP.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",UP["watch,watch7"]="LATENCY_ACTION_WATCH",UP["watch,watch7_html5"]="LATENCY_ACTION_WATCH",UP["watch,watch7ad"]="LATENCY_ACTION_WATCH",UP["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",UP.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",UP.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",UP.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",UP.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",UP.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",UP.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",UP.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",UP.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",UP);var kYq=function(M,d){Qw.call(this,1,arguments);this.timer=d};
_.v(kYq,Qw);var BYp=new WZZ("aft-recorded",kYq);var x2S=_.Np.ytLoggingGelSequenceIdObj_||{};_.fE("ytLoggingGelSequenceIdObj_",x2S);var u8=_.Np.ytLoggingLatencyUsageStats_||{};_.fE("ytLoggingLatencyUsageStats_",u8);var C9=function(){this.cleanupJob=0},E5r=function(){C9.instance||(C9.instance=new C9);
return C9.instance};
_.F=C9.prototype;_.F.baseline=function(M,d,N){x3(this,"baseline_"+M)||_.hQ("latencyActionBaselined",{clientActionNonce:M},{timestamp:d,cttAuthInfo:N})};
_.F.tick=function(M,d,N,R){x3(this,"tick_"+M+"_"+d)||_.hQ("latencyActionTicked",{tickName:M,clientActionNonce:d},{timestamp:N,cttAuthInfo:R})};
_.F.info=function(M,d,N){var R=Object.keys(M).join("");x3(this,"info_"+R+"_"+d)||(M=Object.assign({},M),M.clientActionNonce=d,_.hQ("latencyActionInfo",M,{cttAuthInfo:N}))};
_.F.jspbInfo=function(M,d,N){for(var R="",X=0;X<xe(M).length;X++)xe(M)[X]!==void 0&&(R=X===0?R.concat(""+X):R.concat("_"+X));x3(this,"info_"+R+"_"+d)||(_.VZ(M,2,d),d={cttAuthInfo:N},N=_.Q("jspb_sparse_encoded_pivot")?new DS([{}]):new DS,_.EA(N,7,raJ,M),YKq("latencyActionInfo",N,d))};
_.F.span=function(M,d,N){var R=Object.keys(M).join("");x3(this,"span_"+R+"_"+d)||(M.clientActionNonce=d,_.hQ("latencyActionSpan",M,{cttAuthInfo:N}))};
var x3=function(M,d){u8[d]=u8[d]||{count:0};var N=u8[d];N.count++;N.time=(0,_.Gs)();M.cleanupJob||(M.cleanupJob=_.gL(_.IQ,function(){var R=(0,_.Gs)(),X;for(X in u8)u8[X]&&R-u8[X].time>6E4&&delete u8[X];M&&(M.cleanupJob=0)},5E3));
return N.count>5?(N.count===6&&Math.random()*1E5<1&&(N=new _.WJ("CSI data exceeded logging limit with key",d.split("_")),d.indexOf("plev")>=0||_.vh(N)),!0):!1};var HfL,n0L;HfL=window;n0L=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.W1=HfL.performance||HfL.mozPerformance||HfL.msPerformance||HfL.webkitPerformance||new n0L;var $LN=!1,dLL=!1,TYL=(0,_.gx)(_.W1.clearResourceTimings||_.W1.webkitClearResourceTimings||_.W1.mozClearResourceTimings||_.W1.msClearResourceTimings||_.W1.oClearResourceTimings||_.wl,_.W1);var ifI=window;ifI.ytcsi&&(ifI.ytcsi.infoGel=_.qi,ifI.ytcsi.tick=_.v1);var Ox6=function(M){Qw.call(this,1,arguments);this.csn=M};
_.v(Ox6,Qw);var Qzv=new WZZ("screen-created",Ox6),ixZ=[],vkS=nkZ,fBr=0,oD=new Map,jUr=new Map,sUA=new Map;var P5=Symbol("vf"),ie=new WeakMap;var Y3=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},RA=function(){Y3.instance||(Y3.instance=new Y3);
return Y3.instance};
_.F=Y3.prototype;_.F.setClient=function(M){this.client=M};
_.F.JSC$10351_newScreen=function(){this.clear();this.csn=_.Ou()};
_.F.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.F.reportShown=function(M,d,N){var R=this.JSC$10351_getTrackingParams(M),X=M.visualElement?M.visualElement:R;d=this.shownElements.has(X);var A=this.visibleState.get(X);this.shownElements.add(X);this.visibleState.set(X,!0);M.impressionLog&&!d&&M.impressionLog();if(R||M.visualElement)if(N=fhV(this,M,N))if(X=L4V(this,M),Z1(this,M)||X){R=M.visualElement?M.visualElement:_.At(R);var l=M.interactionLoggingClientData;X||d?Z1(this,M)&4?A||SMA(this.client,N,R,l):Z1(this,M)&1&&!d&&y4i(this.client,N,R,l):y4i(this.client,
N,R,l)}};
_.F.reportHidden=function(M,d,N){var R=this.JSC$10351_getTrackingParams(M),X=M.visualElement?M.visualElement:R;d=this.hiddenElements.has(X);var A=this.visibleState.get(X);this.hiddenElements.add(X);this.visibleState.set(X,!1);if(A===!1)return!0;if(!R&&!M.visualElement)return!1;N=fhV(this,M,N);if(!N||!Z1(this,M)&&L4V(this,M))return!1;R=M.visualElement?M.visualElement:_.At(R);Z1(this,M)&8?zVp(this.client,N,R):Z1(this,M)&2&&!d&&(M=this.client,d=P1({cttAuthInfo:jE(N)||void 0},N),R={csn:N,ve:R.getAsJson(),
eventType:2},N==="UNDEFINED_CSN"?J$("visualElementHidden",d,R):M?pa("visualElementHidden",R,M,d):_.hQ("visualElementHidden",R,d));return!0};
_.F.JSC$10351_getTrackingParams=function(M){var d=this.getData(M),N,R;if(_.Q("il_use_view_model_logging_context")&&(d==null?0:(N=d.context)==null?0:(R=N.loggingContext)==null?0:R.loggingDirectives))return d.context.loggingContext.loggingDirectives.trackingParams||"";var X,A;if(d==null?0:(X=d.rendererContext)==null?0:(A=X.loggingContext)==null?0:A.loggingDirectives)return d.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(d==null?0:d.loggingDirectives)return d.loggingDirectives.trackingParams||
"";var l;return((l=M.veContainer)==null?0:l.trackingParams)?M.veContainer.trackingParams:(d==null?void 0:d.trackingParams)||""};
_.F.JSC$10351_elementShouldLogGesture=function(M,d){M=this.getData(M);return!!((Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.gestures&&M.loggingDirectives.gestures.types||""))||0)&d)};
_.F.JSC$10351_getNearestParentVe=function(M){var d=this.JSC$10351_getTrackingParams(M);return M.visualElement?M.visualElement:d?_.At(d):M.parentElement?this.JSC$10351_getNearestParentVe(M.parentElement):null};
var fhV=function(M,d,N){var R=_.Ou(N);return M.csn===null||R===M.csn||N?R:(M=new _.WJ("VisibilityLogger called before newScreen",{caller:d.tagName,previous_csn:M.csn,current_csn:R}),_.vh(M),null)};
Y3.prototype.getData=function(M){var d,N=M.data||((d=M.props)==null?void 0:d.data);if(!N&&_.Q("enable_wiz_always_try_logging_info_map")){var R;N=(R=fb(M))==null?void 0:R[P5]}else if(M.isWebComponentWrapper){var X;N=(X=fb(M))==null?void 0:X[P5]}return N};
var L4V=function(M,d){var N;return!((N=M.getData(d))==null||!N.loggingDirectives)},Z1=function(M,d){M=M.getData(d);
return Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.visibility&&M.loggingDirectives.visibility.types||""))||1};var EP;EP=function(){};
_.Mx=function(){EP.instance||(EP.instance=new EP);return EP.instance};
EP.prototype.setClient=function(M){_.JA(RA().setClient).bind(RA())(M)};
_.tQC=function(){_.Mx();_.JA(RA().JSC$10351_newScreen).bind(RA())()};
EP.prototype.clear=function(){_.JA(RA().clear).bind(RA())()};
EP.prototype.reportShown=function(M,d,N){_.JA(RA().reportShown).bind(RA())(M,d,N)};
EP.prototype.reportHidden=function(M,d,N){return _.JA(RA().reportHidden).bind(RA())(M,d,N)};
var BAr=function(M,d){return _.JA(RA().JSC$10351_getTrackingParams).bind(RA())(d)},kpp=function(M,d){return _.JA(RA().JSC$10351_getNearestParentVe).bind(RA())(d)};var MT,G1t;MT=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};
_.Nx=function(){MT.instance||(MT.instance=new MT);return MT.instance};
MT.prototype.setClient=function(M){this.client=M};
G1t=function(M,d,N){N=N===void 0?{}:N;_.JA(function(){var R,X,A,l=((R=_.q(d==null?void 0:d.commandMetadata,_.an))==null?void 0:R.rootVe)||((X=_.q(d==null?void 0:d.commandMetadata,NYd))==null?void 0:(A=X.screenVisualElement)==null?void 0:A.uiType);if(l){R=_.q(d==null?void 0:d.commandMetadata,f1t);if(R==null?0:R.parentTrackingParams){var k=_.At(R.parentTrackingParams);if(R.parentCsn)var T=R.parentCsn}else N.clickedVisualElement?k=N.clickedVisualElement:d.clickTrackingParams&&(k=_.At(d.clickTrackingParams));
a:{R=_.q(d,_.nL);X=_.q(d,QdA);if(R){if(X=cWq(R,"VIDEO")){R={token:X,videoId:R.videoId};break a}}else if(X&&(R=cWq(X,"PLAYLIST"))){R={token:R,playlistId:X.playlistId};break a}R=void 0}N=Object.assign({},{cttAuthInfo:R,parentCsn:T},N);if(_.Q("expectation_logging")){var W;N.loggingExpectations=((W=_.q(d==null?void 0:d.commandMetadata,NYd))==null?void 0:W.loggingExpectations)||void 0}_.dm(M,l,k,N)}else _.vh(new _.WJ("Error: Trying to create a new screen without a rootVeType",d))})()};
_.dm=function(M,d,N,R){R=R===void 0?{}:R;_.JA(function(){emt.includes(d)||(_.vh(new _.WJ("createClientScreen() called with a non-page VE",d)),d=83769);R.isHistoryNavigation||(M.forwardHistoryStack=[],M.backHistoryStack.push({rootVe:d,key:R.key||""}));M.graftQueue=[];M.stateChangedQueue=[];R.dataPromises?ahd(M,d,N,R):U1e(M,d,N,R)})()};
_.uBC=function(M,d,N){N=N===void 0?0:N;_.JA(function(){d.then(function(R){M.pendingScreenCreation.has(N)&&M.pendingScreenFn&&M.pendingScreenFn();var X=_.Ou(N),A=_.vl(N);if(X&&A){var l;(R==null?0:(l=R.response)==null?0:l.trackingParams)&&yh(M.client,X,A,_.At(R.response.trackingParams));var k;(R==null?0:(k=R.playerResponse)==null?0:k.trackingParams)&&yh(M.client,X,A,_.At(R.playerResponse.trackingParams))}})})()};
MT.prototype.graftServerVe=function(M,d,N){var R=this;return _.JA(function(){var X=_.At(M);_.NT(R,X,d,N);return X})()};
_.Tv2=function(M,d,N,R){return _.Q("enable_client_ve_spec")&&d.clientVeSpec?(d=_.Tx(d.clientVeSpec.uiType,void 0,d.clientVeSpec.elementIndex,d.clientVeSpec.clientYoutubeData,void 0,d),_.NT(M,d,N,R)?d:null):d.trackingParams?M.graftServerVe(d.trackingParams,N,R):null};
_.dk=function(M,d,N,R){return _.JA(function(){if(!d.veType)return _.IR(new _.WJ("Error: Trying to graft a client VE without a veType.")),null;if(d.visibilityTypes){var X=d.visibilityTypes.reduce(function(A,l){return A|l});
X={visibility:{types:String(X)}}}X=_.Tx(d.veType,d.visualElement,d.elementIndex,d.clientYouTubeData,void 0,X);return _.NT(M,X,N,R)?X:null})()};
_.NT=function(M,d,N,R){R=R===void 0?0:R;return _.JA(function(){if(M.pendingScreenCreation.has(R))return M.graftQueue.push([d,N]),!0;var X=_.Ou(R),A=N||_.vl(R);if(X&&A){if(_.Q("combine_ve_grafts")){var l=M.cachedVisualElements.get(A.toString());l?l.push(d):(M.cachedRootVisualElements.set(A.toString(),A),M.cachedVisualElements.set(A.toString(),[d]));M.attachTimeout||(M.attachTimeout=_.gL(_.IQ,function(){C$V(M,X)},1200))}else yh(M.client,X,A,d);
return!0}return!1})()};
_.RL=function(M,d,N){N=N===void 0?0:N;var R=M.recurringGrafts.get(N)||new Map;if(_.Q("smarter_ve_dedupping"))for(var X=Array.from(R.keys()),A=0;A<X.length;A++){var l=void 0,k=void 0;var T=d;var W=X[A];W.isClientVe()&&T.isClientVe()?(l=T.getAsJson(),k=W.getAsJson(),T=l.veType!==k.veType||l.elementIndex!==k.elementIndex||l.dataElement!==k.dataElement||T.getLoggingDirectives()!==W.getLoggingDirectives()?!1:!0):T=W.veData.trackingParams!==void 0&&T.veData.trackingParams!==void 0?((k=T.veData)==null?void 0:
k.trackingParams)===((l=W.veData)==null?void 0:l.trackingParams):!1;if(T)return}else if(R.has(d))return;R.set(d,void 0);M.recurringGrafts.set(N,R);_.Ou(N)==="UNDEFINED_CSN"||M.pendingScreenCreation.has(N)||_.NT(M,d,void 0,N)};
_.XD=function(M,d,N,R){R=_.Ou(R===void 0?0:R);if(!R)return!1;eVr(M.client,R,d,N);return!0};
_.FD=function(M,d,N,R){if(!d)return!1;R=_.Ou(R===void 0?0:R);if(!R)return!1;eVr(M.client,R,_.At(d),N);return!0};
_.sL=function(M,d){var N=d.getScreenLayer&&d.getScreenLayer();if(d.visualElement)return _.XD(M,d.visualElement,void 0,N);d=BAr(_.Mx(),d);return _.FD(M,d,void 0,N)};
MT.prototype.clickCommand=function(M,d,N){return _.FD(this,M.clickTrackingParams,d,N===void 0?0:N)};
MT.prototype.stateChanged=function(M,d,N){this.visualElementStateChanged(_.At(M),d,N===void 0?0:N)};
MT.prototype.visualElementStateChanged=function(M,d,N){N=N===void 0?0:N;N===0&&this.pendingScreenCreation.has(N)?this.stateChangedQueue.push([M,d]):this.logStateChanged(M,d,N)};
MT.prototype.logStateChanged=function(M,d,N){N=N===void 0?0:N;var R=_.Ou(N);M=M||_.vl(N);return R&&M?(HxZ(this.client,R,M,d),!0):!1};
var ahd=function(M,d,N,R){R=R===void 0?{}:R;M.pendingScreenCreation.add(R.layer||0);M.pendingScreenFn=function(){U1e(M,d,N,R);var l=_.vl(R.layer);if(l){for(var k=_.V(M.graftQueue),T=k.next();!T.done;T=k.next())T=T.value,_.NT(M,T[0],T[1]||l,R.layer);l=_.V(M.stateChangedQueue);for(k=l.next();!k.done;k=l.next())k=k.value,M.logStateChanged(k[0],k[1])}};
N||_.Ou(R.layer)||M.pendingScreenFn();if(R.dataPromises)for(var X=_.V(R.dataPromises),A=X.next();!A.done;A=X.next())_.uBC(M,A.value,R.layer);else _.qZ(Error("wf"))},U1e=function(M,d,N,R){R=R===void 0?{}:R;
var X=void 0;R.layer||(R.layer=0);X=R.parentLayer!==void 0?R.parentLayer:R.layer;var A=_.Ou(X);X=_.vl(X);var l=N||X,k;l&&(R.parentCsn!==void 0?k={clientScreenNonce:R.parentCsn,visualElement:l}:A&&A!=="UNDEFINED_CSN"&&(k={clientScreenNonce:A,visualElement:l}));var T,W=_.rK("EVENT_ID");A==="UNDEFINED_CSN"&&W&&(T={servletData:{serializedServletEventId:W}});_.Q("combine_ve_grafts")&&A&&C$V(M,A);_.Q("no_client_ve_attach_unless_shown")&&l&&A&&KEi(l,A);try{var w=_.PVS(M.client,d,k,R.csnToClone,R.cttAuthInfo,
T,R.implicitGestureType,void 0,R.loggingExpectations)}catch(I){_.OD(I,{rootVeType:d,rootVe:X,parentVisualElement:N,currentCsn:A,parentEl:k,csnToClone:R.csnToClone});_.qZ(I);return}_.KkL(w,d,R.layer,R.cttAuthInfo);A&&A!=="UNDEFINED_CSN"&&X&&!o9q(A)&&zVp(M.client,A,X,!0);M.backHistoryStack[M.backHistoryStack.length-1]&&!M.backHistoryStack[M.backHistoryStack.length-1].csn&&(M.backHistoryStack[M.backHistoryStack.length-1].csn=w||"");_.qi({clientScreenNonce:w});_.tQC();var p=_.vl(R.layer);A&&A!=="UNDEFINED_CSN"&&
p&&(_.Q("web_mark_root_visible")||_.Q("music_web_mark_root_visible"))&&_.SD(w,p);M.pendingScreenCreation.delete(R.layer||0);M.pendingScreenFn=void 0;var m;(m=M.recurringGrafts.get(R.layer))==null||m.forEach(function(I,O){I?_.NT(M,O,I,R.layer):p&&_.NT(M,O,p,R.layer)});
x1J(M)},x1J=function(M){for(var d=0;d<M.afterNewScreenOneOffJobs.length;d++){var N=M.afterNewScreenOneOffJobs[d];
try{N()}catch(R){_.qZ(R)}}for(d=M.afterNewScreenOneOffJobs.length=0;d<M.afterNewScreenRecurringJobs.length;d++){N=M.afterNewScreenRecurringJobs[d];try{N()}catch(R){_.qZ(R)}}},C$V=function(M,d){if(d===void 0)for(var N=sev(),R=0;R<N.length;R++)N[R]!==void 0&&C$V(M,N[R]);
else M.cachedVisualElements.forEach(function(X,A){(A=M.cachedRootVisualElements.get(A))&&_.oki(M.client,d,A,X)}),M.cachedVisualElements.clear(),M.cachedRootVisualElements.clear(),M.attachTimeout=void 0};var Ab=function(M){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;M={};this.cga=(M.response=!1,M.playerResponse=!1,M)};
_.v(Ab,au);Ab.prototype.validate=function(M){return!(!M.data||!M.data.response&&!M.data.playerResponse)};
Ab.prototype.handle=function(M){var d=_.Nx(),N=this.createScreenConfig.layer;M.data.response&&M.data.response.trackingParams&&!this.cga.response&&(d.graftServerVe(M.data.response.trackingParams,void 0,N),this.cga.response=!0);M.data.playerResponse&&M.data.playerResponse.trackingParams&&!this.cga.playerResponse&&(d.graftServerVe(M.data.playerResponse.trackingParams,void 0,N),this.cga.playerResponse=!0)};var Vm=function(){this.aj=_.KO();this.sY=[];this.peK=0};
Vm.prototype.processChunk=function(M){if(M){for(var d=_.V(this.sY),N=d.next();!N.done;N=d.next())N=N.value,N.validate(M)&&(N.handle(M),N.hasRun=!0);_.v1("np"+this.peK);this.peK++}};var ULi,Lb,t$,GYv=0,aBA=function(M,d,N,R,X,A){var l=t$;this.name=M;this.attributes=d;this.startTime=N;this.id=R;this.sessionId=X;this.traceId=A;this.parent=l};
aBA.prototype.attr=function(M,d){this.attributes[M]=d};
aBA.prototype.close=function(M){if(this!==t$)throw Error("xf");var d=t$;M&&(d.status=M);d.endTime=performance.now();M=_.V(Lb.spanProcessors);for(var N=M.next();!N.done;N=M.next()){var R=void 0,X=void 0;(X=(R=N.value).onSpanEnd)==null||X.call(R,d)}t$=d==null?void 0:d.parent};
aBA.prototype[Symbol.dispose]=function(){this.close()};var nz6,E0L;_.YQ=function(M,d,N,R,X,A,l){l=l===void 0?[]:l;this.buildCommandPayload=M;this.navigate=d;this.handleServiceRequest=N;this.sendAction=R;this.JSC$10392_screenManager=X;this.commandResolverMap=A;this.autoLogResolverAllowlist=l;this.pendingCommands=new Set;if(CVj("command")){var k=this.resolveCommand;this.resolveCommand=function(T,W){var w=uN6("command",{command:T});return YM2(w,k.bind(this,T,W),null)}}};
nz6=function(M,d,N){var R=j3Z,X=s3Z,A=_.Nx(),l=YpV;N=N===void 0?[]:N;_.YQ.instance=new _.YQ(M,d,R,X,A,l,N)};
E0L=function(M,d,N){if(!M.commandResolverMap)return!1;var R=dGZ(d,M.commandResolverMap);return R?((M.autoLogResolverAllowlist.some(function(X){return!!_.q(d,X)})||(N==null?0:N.forceClickLogging))&&ZfV(M,d,N),R instanceof Promise?R.then(function(X){X.resolve(d,N)}):R.resolve(d,N),!0):!1};
_.YQ.prototype.resolveCommand=function(M,d){var N=this,R=MYd(M);if(E0L(this,M,d))return!0;if(R)return dfd(this,M,d);if(!this.buildCommandPayload)return Zxq(M,"Unhandled command by buildCommandPayload"),!1;var X=this.buildCommandPayload(M,d);if(d==null?0:d.commandController)X.commandController=d.commandController;if(X.type===0){if(!this.navigate)return EkZ(M,"navigate"),!1;if(!N1o(X.command))return Zxq(M,"Page requests need to specify a url"),!1;_.Q("logging_avoid_blocking_during_navigation")&&_.AtZ().transition("application_navigating");
M=this.navigate(X)||[];q_d(M).then(function(){N.pendingCommands.delete(X.command)});
return!0}if(X.type===1){if(!this.handleServiceRequest)return EkZ(M,"handleServiceRequest"),!1;(d==null?0:d.forceClickLogging)&&ZfV(this,X.command,d);M=this.handleServiceRequest(X);q_d(M).then(function(){N.pendingCommands.delete(X.command)});
return!0}if(X.type===2){if(!this.sendAction)return EkZ(M,"sendAction"),!1;ZfV(this,X.command,d);this.sendAction(X);return!0}return!1};
var ZfV=function(M,d,N){if((N==null||!N.disableClickTracking)&&M.JSC$10392_screenManager)if(d.clickTrackingParams&&_.Q("log_click_with_layer_from_element_in_command_handler")){var R;N=N==null?void 0:(R=N.form)==null?void 0:R.element;M.JSC$10392_screenManager.clickCommand(d,null,N&&N.getScreenLayer&&N.getScreenLayer())}else d.clickTrackingParams?M.JSC$10392_screenManager.clickCommand(d):!_.Q("disable_clicked_visual_element_in_command_handler")&&(N==null?0:N.clickedVisualElement)&&_.XD(M.JSC$10392_screenManager,
N.clickedVisualElement)},MYd=function(M){var d=!!_.q(M,_.XP),N;
M=((N=_.q(M,_.A$))==null?void 0:N.signal)==="CLIENT_SIGNAL";return d||M},dfd=function(M,d,N){var R=_.q(d,_.XP);
if(R)var X=(R==null?void 0:R.commands)||[];else{var A;if(((A=_.q(d,_.A$))==null?void 0:A.signal)==="CLIENT_SIGNAL"){var l;X=((l=_.q(d,_.A$))==null?void 0:l.actions)||[]}}if(X){d=_.V(X);for(X=d.next();!X.done;X=d.next()){X=X.value;try{M.resolveCommand(X,N)}catch(k){k instanceof Error&&_.qZ(k)}}return!0}Zxq(d,"Could not handle the meta command");return!1},N1o=function(M){var d;
return!((d=_.q(M==null?void 0:M.commandMetadata,_.an))==null||!d.url)};var lg=function(){au.apply(this,arguments)};
_.v(lg,au);lg.prototype.validate=function(M){var d,N;return!this.hasRun&&!!((d=M.data.response)==null?0:(N=d.onResponseReceivedEndpoints)==null?0:N.length)};
lg.prototype.handle=function(M){var d=_.YQ.instance;M=_.V(M.data.response.onResponseReceivedEndpoints);for(var N=M.next();!N.done;N=M.next())d.resolveCommand(N.value)};var RTL,Xcd,FfI;
RTL=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.RD();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.$O=function(){Xcd||(Xcd=new RTL);return Xcd};
FfI=function(){var M=_.$O();M.miniplayerButtonActivation=!1;M.userActivation=!1;M.playlistWatchPageActivation=!1;M.productDetailsPageActivation=!1;M.miniAppPageActivation=!1;M.playablesDestPageActivation=!1;M.lockupActivation=!1;M.showMiniplayerCommandActivation=!1;M.playlistSuggestionsShelfActivation=!1;M.mediaSessionPipActivation=!1;M.watchPipActivation=!1;M.watchWhileActivation=!1;M.shortsPipActivation=!1};
_.Ahz=function(){var M=_.$O(),d=M.mediaSessionPipActivation,N=M.watchPipActivation,R=M.watchWhileActivation,X=M.playlistWatchPageActivation,A=M.lockupActivation,l=M.showMiniplayerCommandActivation,k=M.navigatingAwayFromWatchDeletedVideo,T=M.shortsPipActivation,W=M.playlistSuggestionsShelfActivation,w=M.productDetailsPageActivation,p=M.miniAppPageActivation,m=M.playablesDestPageActivation;return!M.miniplayerButtonActivation&&!X&&!W&&!w&&!p&&!m&&!A&&!l&&!d&&!N&&!R&&!T||k};var a_q;_.Bn=aD("FEwhat_to_watch","/",3854);_.Uz2=aD("FEdownloads","/feed/downloads",42352);a_q=aD("FEmusic_offline","browse/FEmusic_offline",42352);var nh=function(M,d){d=d===void 0?[]:d;var N=N===void 0?[]:N;d=WvZ.apply(null,[w_Z.apply(null,_.wu(d))].concat(_.wu(N)));this.store=QXA(M,void 0,d)};
nh.prototype.getState=function(){return this.store.getState()};
nh.prototype.dispatch=function(M){return this.store.dispatch(M)};
nh.prototype.subscribe=function(M){return this.store.subscribe(M)};
nh.prototype.replaceReducer=function(M){return this.store.replaceReducer(M)};
nh.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.kO=function(M,d,N){var R=d(M.getState());return M.subscribe(function(){var X=d(M.getState());if(X!==R){var A=R;R=X;N(X,A)}})};var aAS;_.la=function(M,d,N){return _.YS({type:"REPLACE_ENTITY",payload:{entityPayload:N,entityType:M,key:d}})};
aAS=function(M){return _.YS({type:"REPLACE_ENTITIES",payload:M})};
_.v5=function(M,d,N,R){return _.YS({type:"UPDATE_ENTITY",payload:{entityPayload:N,entityType:M,key:d,mergeOption:R}})};var gnj=function(M){var d=this;M=M===void 0?[]:M;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;M.forEach(function(N){d.append(N)})};
_.F=gnj.prototype;_.F.getLength=function(){return this.totalLength};
_.F.append=function(M){var d=this.arrays.length===0?!1:(d=this.arrays[this.arrays.length-1])&&d.buffer===M.buffer&&d.byteOffset+d.length===M.byteOffset;d?(d=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(d.buffer,d.byteOffset,d.length+M.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(M);this.totalLength+=M.length};
_.F.split=function(M){for(var d=new gnj,N=new gnj,R=_.V(this.arrays),X=R.next();!X.done;X=R.next())X=X.value,M>=X.length?(d.append(X),M-=X.length):M?(d.append(new Uint8Array(X.buffer,X.byteOffset,M)),N.append(new Uint8Array(X.buffer,X.byteOffset+M,X.length-M)),M=0):N.append(X);return{headView:d,tailView:N}};
_.F.extract=function(M,d){return this.split(M).tailView.split(d).headView};
_.F.isFocused=function(M){return M>=this.arrayPos&&M<this.arrayPos+this.arrays[this.arrayIdx].length};
_.F.focus=function(M){if(!this.isFocused(M))for(M<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=M&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.F.getDataView=function(M,d){M=M===void 0?0:M;d=d===void 0?-1:d;if(!this.totalLength||!d)return new DataView(new ArrayBuffer(0));d<0&&(d=this.totalLength-M);this.focus(M);if(!(M-this.arrayPos+d<=this.arrays[this.arrayIdx].length)){var N=this.arrayIdx,R=this.arrayPos;this.focus(M+d-1);R=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-R);for(var X=0,A=N;A<=this.arrayIdx;A++)R.set(this.arrays[A],X),X+=this.arrays[A].length;this.arrays.splice(N,this.arrayIdx-N+1,R);this.arrayPos=this.arrayIdx=
0;this.focus(M)}N=this.arrays[this.arrayIdx];return new DataView(N.buffer,N.byteOffset+M-this.arrayPos,d)};
_.F.getUint8=function(M){this.focus(M);return this.arrays[this.arrayIdx][M-this.arrayPos]};(function(){var M=function(R){return new Uint8Array(R)},d=function(R){for(var X=new Uint8Array(R.length),A=0;A<R.length;A++)X[A]=R[A];
return X},N=new Uint8Array([1]);
return N.length===1&&N[0]===1?M:d})();
var lAZ=Array(1024),VPr=window.TextDecoder?new TextDecoder:void 0,BIq=window.TextEncoder?new TextEncoder:void 0;var DGA=function(M){this.arrayView=M;this.pos=0;this.pendingTagAndType=-1},Zy=function(M){var d=M.arrayView.getUint8(M.pos);
++M.pos;if(d<128)return d;for(var N=d&127,R=1;d>=128;)d=M.arrayView.getUint8(M.pos),++M.pos,R*=128,N+=(d&127)*R;return N},WsA=function(M,d){var N=M.pendingTagAndType;
for(M.pendingTagAndType=-1;M.pos+1<=M.arrayView.totalLength;){N<0&&(N=Zy(M));var R=N>>3,X=N&7;if(R===d)return!0;if(R>d){M.pendingTagAndType=N;break}N=-1;switch(X){case 0:Zy(M);break;case 1:M.pos+=8;break;case 2:R=Zy(M);M.pos+=R;break;case 5:M.pos+=4}}return!1};var pFL=function(){this.pos=0;this.submessagePosStack=[];this.buf=TIi(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},d_=function(M,d){d=M.pos+d;
if(!(M.buf.length>=d)){for(var N=M.buf.length*2;N<d;)N*=2;M.buf=TIi(N,M.buf.subarray(0,M.pos));M.view=new DataView(M.buf.buffer,M.buf.byteOffset,M.buf.byteLength)}},Mr=function(M,d){if(d>268435455){d_(M,4);
for(var N=d&1073741823,R=0;R<4;R++)M.view.setUint8(M.pos,N&127|128),N>>=7,M.pos+=1;d=Math.floor(d/268435456)}for(d_(M,4);d>127;)M.view.setUint8(M.pos,d&127|128),d>>=7,M.pos+=1;M.view.setUint8(M.pos,d);M.pos+=1};for(var mGj={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,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},wFj={},VYL=_.V(Object.entries(mGj)),ll3=VYL.next();!ll3.done;ll3=VYL.next()){var $fC=_.V(ll3.value),B1d=$fC.next().value,k4d=$fC.next().value,T1V=B1d,Dft=k4d;Dft&&(wFj[Dft]=T1V)};var Qgp=function(M,d){M=M===void 0?{}:M;switch(d.type){case "ENTITY_LOADED":return d.payload.reduce(function(R,X){var A,l=(A=X.options)==null?void 0:A.persistenceOption;if(l&&l!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&l!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!X.entityKey)return _.qZ(Error("zf")),R;if(X.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!X.payload)return X=new _.WJ("REPLACE entity mutation is missing a payload",{entityKey:X.entityKey}),_.qZ(X),R;var k=(0,_.wF.getAnyKey)(X.payload);
return IAi(R,k,X.entityKey,X.payload[k])}if(X.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{X=X.entityKey;try{var T=_.EN(X).entityType;k=IAi(R,T,X);break a}catch(p){if(p instanceof Error){X=new _.WJ("Failed to deserialize entity key",{entityKey:X,originalMessage:p.message});_.qZ(X);k=R;break a}throw p;}k=void 0}return k}if(X.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!X.payload)return X=new _.WJ("UPDATE entity mutation is missing a payload",{entityKey:X.entityKey}),_.qZ(X),R;k=(0,_.wF.getAnyKey)(X.payload);
var W,w;return vnZ(R,k,X.entityKey,X.payload[k],(W=X.fieldMask)==null?void 0:(w=W.mergeOptions)==null?void 0:w.repeatedFieldsMergeOption)}return R},M);
case "REPLACE_ENTITY":var N=d.payload;return IAi(M,N.entityType,N.key,N.entityPayload);case "REPLACE_ENTITIES":return Object.keys(d.payload).reduce(function(R,X){var A=d.payload[X];return Object.keys(A).reduce(function(l,k){return IAi(l,X,k,A[k])},R)},M);
case "UPDATE_ENTITY":return N=d.payload,vnZ(M,N.entityType,N.key,N.entityPayload,N.mergeOption);default:return M}};var O7v;var g2z=!1,Tq,DY,gm,Wn,wm,Wft=function(M){_.DL.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!g2z){var d,N=new Uint8Array(256),R=new Uint8Array(256);var X=1;for(d=0;d<256;d++)N[X]=d,R[d]=X,X^=X<<1^(X>>7&&283);Tq=new Uint8Array(256);DY=Xw(256);gm=Xw(256);Wn=Xw(256);wm=Xw(256);for(var A=0;A<256;A++){X=A?R[255^N[A]]:0;X^=X<<1^X<<2^X<<3^X<<4;X=X&255^X>>>8^99;Tq[A]=X;d=X<<1^(X>>7&&283);var l=d^X;DY[A]=d<<24|X<<16|X<<8|l;gm[A]=l<<24|DY[A]>>>8;Wn[A]=X<<24|gm[A]>>>
8;wm[A]=X<<24|Wn[A]>>>8}g2z=!0}X=Xw(44);for(N=0;N<4;N++)X[N]=M[4*N]<<24|M[4*N+1]<<16|M[4*N+2]<<8|M[4*N+3];for(R=1;N<44;N++)M=X[N-1],N%4||(M=(Tq[M>>16&255]^R)<<24|Tq[M>>8&255]<<16|Tq[M&255]<<8|Tq[M>>>24],R=R<<1^(R>>7&&283)),X[N]=X[N-4]^M;this.key=X};
_.v(Wft,_.DL);
Wft.prototype.encrypt=function(M){var d=M.length;M=new Uint8Array(M.buffer.slice(M.byteOffset,M.byteOffset+d));for(var N=this.cipherBlock,R=0;R<d&&this.blockOffset<16;)M[R++]^=N[this.blockOffset++];for(var X=d-(d-R)%16;R<X;)wcI(this),M[R++]^=N[0],M[R++]^=N[1],M[R++]^=N[2],M[R++]^=N[3],M[R++]^=N[4],M[R++]^=N[5],M[R++]^=N[6],M[R++]^=N[7],M[R++]^=N[8],M[R++]^=N[9],M[R++]^=N[10],M[R++]^=N[11],M[R++]^=N[12],M[R++]^=N[13],M[R++]^=N[14],M[R++]^=N[15];if(R<d)for(wcI(this),this.blockOffset=0;R<d;)M[R++]^=
N[this.blockOffset++];return M};
var pc3=function(M,d){for(var N=0;N<4;N++)M.counter[N]=d[N*4]<<24|d[N*4+1]<<16|d[N*4+2]<<8|d[N*4+3];M.blockOffset=16},wcI=function(M){for(var d=M.key,N=M.counter[0]^d[0],R=M.counter[1]^d[1],X=M.counter[2]^d[2],A=M.counter[3]^d[3],l=3;l>=0&&!(M.counter[l]=-~M.counter[l]);l--);
for(var k,T,W=4;W<40;)l=DY[N>>>24]^gm[R>>16&255]^Wn[X>>8&255]^wm[A&255]^d[W++],k=DY[R>>>24]^gm[X>>16&255]^Wn[A>>8&255]^wm[N&255]^d[W++],T=DY[X>>>24]^gm[A>>16&255]^Wn[N>>8&255]^wm[R&255]^d[W++],A=DY[A>>>24]^gm[N>>16&255]^Wn[R>>8&255]^wm[X&255]^d[W++],N=l,R=k,X=T;M=M.cipherBlock;l=d[40];M[0]=Tq[N>>>24]^l>>>24;M[1]=Tq[R>>16&255]^l>>16&255;M[2]=Tq[X>>8&255]^l>>8&255;M[3]=Tq[A&255]^l&255;l=d[41];M[4]=Tq[R>>>24]^l>>>24;M[5]=Tq[X>>16&255]^l>>16&255;M[6]=Tq[A>>8&255]^l>>8&255;M[7]=Tq[N&255]^l&255;l=d[42];
M[8]=Tq[X>>>24]^l>>>24;M[9]=Tq[A>>16&255]^l>>16&255;M[10]=Tq[N>>8&255]^l>>8&255;M[11]=Tq[R&255]^l&255;l=d[43];M[12]=Tq[A>>>24]^l>>>24;M[13]=Tq[N>>16&255]^l>>16&255;M[14]=Tq[R>>8&255]^l>>8&255;M[15]=Tq[X&255]^l&255};var mft=!1;(function(){var M=function(R){return new Uint8Array(R)},d=function(R){for(var X=new Uint8Array(R.length),A=0;A<R.length;A++)X[A]=R[A];
return X},N=new Uint8Array([1]);
return N.length===1&&N[0]===1?M:d})();
var p4;var hTt=function(M){this.JSC$10459_aesKey=M};
hTt.prototype.encrypt=function(M,d){var N=this,R,X;return _.B(function(A){if(A.nextAddress==1){a:{if(!mft&&!nE){if(p4){var l=p4;break a}p4=(l=window.crypto)==null?void 0:l.subtle;var k,T,W;if(((k=p4)==null?0:k.importKey)&&((T=p4)==null?0:T.sign)&&((W=p4)==null?0:W.encrypt)){l=p4;break a}p4=void 0}l=void 0}R=l;if(!R)return A.return(Qmd(N,M,d));_.Mv(A,3);return _.D(A,qft(N,M,d,R),5)}if(A.nextAddress!=3)return A.return(A.yieldResult);X=_.Fg(A);_.vh(X);mft=!0;return A.return(Qmd(N,M,d))})};
var qft=function(M,d,N,R){var X,A;return _.B(function(l){switch(l.nextAddress){case 1:if(M.cryptoKey){l.jumpTo(2);break}return _.D(l,R.importKey("raw",M.JSC$10459_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:M.cryptoKey=l.yieldResult;case 2:return X={name:"AES-CTR",counter:N,length:128},_.D(l,R.encrypt(X,M.cryptoKey,d),4);case 4:return A=l.yieldResult,l.return(new Uint8Array(A))}})},Qmd=function(M,d,N){M.encryptorPolyfill||(M.encryptorPolyfill=new Wft(M.JSC$10459_aesKey));
pc3(M.encryptorPolyfill,N);return M.encryptorPolyfill.encrypt(d)},Ilz=function(M){this.JSC$10463_aesKey=M};
Ilz.prototype.encrypt=function(M,d){this.encryptor||(this.encryptor=new Wft(this.JSC$10463_aesKey));pc3(this.encryptor,d);return this.encryptor.encrypt(M)};var v2I={},PcZ=tm("yt-idb-pref-storage",{objectStores:(v2I.prefs={addedAtVersion:1},v2I),shared:!1,upgrade:function(M,d){d(1)&&KA(rc(M,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.mT=function(M){this.token=M};
_.mT.getInstance=function(){return _.B(function(M){return M.return(new Promise(function(d){_.LE().then(function(N){N?(_.mT.instance||(_.mT.instance=new _.mT(N)),d(_.mT.instance)):d(void 0)})}))})};
_.mT.prototype.get=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,onZ(d.token),2);if(A.nextAddress!=3)return N=A.yieldResult,_.D(A,N.get("prefs",M),3);R=A.yieldResult;if(!R)return A.return();X=(0,_.Gs)();return R.expirationTimestampMs<=X?A.return():A.return(R.value)})};
_.mT.prototype.set=function(M,d,N){N=N===void 0?31536E3:N;var R=this,X,A,l;return _.B(function(k){if(k.nextAddress==1)return X=(0,_.Gs)(),A={key:M,value:d,expirationTimestampMs:X+N*1E3},_.D(k,onZ(R.token),2);l=k.yieldResult;return _.D(k,l.put("prefs",A),0)})};
_.mT.prototype.remove=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,onZ(d.token),2);N=R.yieldResult;return _.D(R,N.delete("prefs",M),0)})};var hb={},OWg=(hb.INVALID_ENCODER_VERSION="Invalid encoder version",hb.KEY_CREATION_FAILED="Failed to create encoder key",hb.UNKNOWN_DECODE_ERROR="Failed to decode PES data",hb.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",hb.WRONG_DATA_TYPE="Encoder cannot process the data type",hb),Fw=function(M,d){d=d===void 0?{}:d;_.WJ.call(this,OWg[M],Object.assign({},{name:"PESEncoderError",type:M},d));this.type=M;this.level="WARNING";Object.setPrototypeOf(this,Fw.prototype)};
_.v(Fw,_.WJ);var jmL=function(){},smL=function(M,d,N){try{return M.encodeImpl(d,N)}catch(R){JVS(R,Ks6)}},P1L=function(M,d,N){var R;
return _.B(function(X){if(X.nextAddress==1)return _.Mv(X,2),_.D(X,M.decodeAsyncImpl(d,N),4);if(X.nextAddress!=2)return X.return(X.yieldResult);R=_.Fg(X);JVS(R,yVZ);_.Vy(X)})};
jmL.prototype.decodeAsyncImpl=function(M,d){return Promise.resolve(this.decodeImpl(M,d))};var Qm=function(M,d){this.aesEncryptor=M;this.aesEncryptorAsync=d};
_.v(Qm,jmL);Qm.prototype.encodeImpl=function(M,d){d=cVZ(d);M=(new TextEncoder).encode(JSON.stringify(M));return this.aesEncryptor.encrypt(M,d)};
Qm.prototype.decodeImpl=function(M,d){if(!(M instanceof Uint8Array))throw rVS(1);var N=new TextDecoder;d=cVZ(d);M=this.aesEncryptor.encrypt(M,d);return JSON.parse(N.decode(M))};
Qm.prototype.decodeAsyncImpl=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1){if(!(M instanceof Uint8Array))throw rVS(1);R=new TextDecoder;X=cVZ(d);return _.D(l,N.aesEncryptorAsync.encrypt(M,X),2)}A=l.yieldResult;return l.return(JSON.parse(R.decode(A)))})};var SYS={accountLinkStatusEntity:k_C,booleanEntity:fjL,buttonEntity:nOd,captionTrack:H7z,channelHandle:osC,commerceAcquisitionClientPayloadEntity:BbL,commerceCartListEntity:kn3,contextNoteFeedEntityPayload:zvd,continuationTokenEntity:IBe,downloadQualityPickerEntity:kYz,downloadsPageRefreshTokenEntity:DLo,downloadsPageViewConfigurationEntity:y4d,downloadStatusEntity:TYC,dismissState:sLo,sfvAudioItemCurrentlyPlayingEntity:p0o,emojiFountainDataEntity:b4g,emojiCustomizationSetEntity:zHC,fakeChannel:GUm,
fakePlaylist:ajd,fakePlaylistEntryCollection:UcC,fakeVideo:Cme,fakeVideoDescription:xco,featuredProductsEntity:xLg,flowStateEntity:V8t,iconBadgeEntity:Tbe,interstitialInteractionStateEntity:K8V,likeButtonAnimationEntity:J43,liveChatPollStateEntity:HUC,liveViewerLeaderboardChatEntryPointStateEntity:End,liveViewerLeaderboardPointsEntity:MOe,liveReactionsDataEntity:eHL,logoEntity:PJd,macroMarkerEntity:c4J,mainDownloadsLibraryEntity:gkd,mainDownloadsListEntity:WEe,mainPlaylistDownloadStateEntity:p3d,
mainPlaylistEntity:vkV,mainPlaylistVideoEntity:Oxo,mainVideoDownloadStateEntity:mLd,mainVideoEntity:okd,markersEngagementPanelSyncEntity:SMt,markersVisibilityOverrideEntity:zVe,musicAlbumReleaseDetail:VPJ,musicAlbumReleaseDownloadMetadataEntity:NIz,musicAlbumRelease:AVo,musicAlbumReleaseUserDetail:lAg,musicArtistDetail:BIz,musicArtist:$Gm,musicArtistUserDetail:k9C,musicDownloadsLibraryEntity:RiJ,musicLibraryEdit:TIL,musicLibraryStatusEntity:DGt,musicPlaylist:gnV,musicPlaylistDownloadMetadataEntity:XFg,
musicShare:wFV,musicTrackDetail:mGV,musicTrackDownloadMetadataEntity:FsL,musicTrack:pFC,musicTrackUserDetail:hi3,offlineOrchestrationActionWrapperEntity:nnm,offlineVideoPolicy:i7I,offlineVideoStreams:fAg,offlineabilityEntity:hVI,orchestrationWebSamplingEntity:QUV,pageHeaderEntity:rbe,pdpStateEntity:DlJ,pinnedProductEntity:YML,playbackData:LsL,playerStateEntity:bxt,quantityIncrementerEntity:gHg,refresh:tPJ,saveToPlaylistListEntity:L6d,settingEntity:$To,stringEntity:LkI,suggestedFeedbackChipStateEntity:eVJ,
transfer:G9V,trendingOfferEntity:Zxz,videoDownloadContextEntity:aAV,videoOverviewAsyncDataEntity:H$L,videoPlaybackPositionEntity:LTo,votingEntity:ybV,ytMainChannelEntity:r4d,youchatPendingResponseEntity:Hx3,ytMainDownloadedVideoEntity:qMd,ytMainVideoEntity:KEL};var o2z,Kfd,BD,Lsi,tPr,chC,zTz,Sfz,Jh3;o2z=function(M,d){this.JSC$10482_wrapped=M;this.JSC$10482_encoderRegistry=d;this.changedKeys={}};
Kfd=function(M,d){a:{M=rhd(M.JSC$10482_encoderRegistry,d.version);try{var N=M.decodeImpl(d.data,d.key);break a}catch(R){JVS(R,yVZ)}N=void 0}return N};
_.yhC=function(M,d,N){return M.JSC$10482_wrapped.objectStore("EntityStore").get(d).then(function(R){if(R){if(N&&R.entityType!==N)throw Error("Af");return Kfd(M,R)}})};
BD=function(M,d,N){return N?(N=N.map(function(R){return _.yhC(M,R,d)}),r2.all(N)):M.JSC$10482_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(d)).then(function(R){return R.map(function(X){return Kfd(M,X)})})};
_.fAZ=function(M,d,N){var R=hiZ(d),X=rhd(M.JSC$10482_encoderRegistry,1),A=Object.assign({},d);return M.JSC$10482_wrapped.objectStore("EntityStore").get(R).then(function(l){if(l){if(l.entityType!==N)throw Error("Af");A.entityMetadata||(l=Kfd(M,l),A.entityMetadata=l.entityMetadata)}}).then(function(){var l={key:R,
entityType:N,data:smL(X,A,R),version:1};return r2.all([M.JSC$10482_wrapped.objectStore("EntityStore").put(l),Jh3(M,A,N)])}).then(function(){chC(M,R,N);
return R})};
Lsi=function(M,d){var N=_.EN(d).entityType;return r2.all([M.JSC$10482_wrapped.objectStore("EntityStore").delete(d),Sfz(M,d)]).then(function(){chC(M,d,N)})};
tPr=function(M,d,N,R){var X=rhd(M.JSC$10482_encoderRegistry,1);return _.yhC(M,d,R).then(function(A){if(A){A=AV6(A,N);var l={key:d,entityType:R,data:smL(X,A,d),version:1};return r2.all([M.JSC$10482_wrapped.objectStore("EntityStore").put(l),Jh3(M,A,R)])}}).then(function(){chC(M,d,R);
return d})};
chC=function(M,d,N){var R=M.changedKeys[N];R||(R=new Set,M.changedKeys[N]=R);R.add(d)};
zTz=function(M,d,N){var R=hiZ(d);N=ziN(N);if(!N)return r2.resolve([]);N=new N(d);M=M.JSC$10482_wrapped.objectStore("EntityAssociationStore");d=[];N=_.V(N.getAssociations());for(var X=N.next();!X.done;X=N.next())d.push(M.put({parentEntityKey:R,childEntityKey:X.value}));return r2.all(d).then(function(A){return A.map(function(l){return l[1]})})};
Sfz=function(M,d){return M.JSC$10482_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(d))};
Jh3=function(M,d,N){var R=hiZ(d);return Sfz(M,R).then(function(){return zTz(M,d,N)})};var bWV=function(){};
_.v(bWV,jmL);bWV.prototype.encodeImpl=function(M){return M};
bWV.prototype.decodeImpl=function(M){if(M instanceof Uint8Array)throw rVS(0);return M};var H7q=function(){this.cacheMap={};this.cacheMap[0]=new bWV;if(!_.Q("aes_pes_encoder_killswitch")){var M=this.cacheMap;try{var d=_.Ds();var N=cVZ(d);var R=new Qm(new Ilz(N),new hTt(N))}catch(X){throw M=X instanceof Error?new Fw("KEY_CREATION_FAILED",{originalMessage:X.message}):new Fw("KEY_CREATION_FAILED"),_.qZ(M),M;}M[1]=R}},rhd=function(M,d){d=d===void 0?0:d;
M=M.cacheMap[d];if(!M)throw d=new Fw("INVALID_ENCODER_VERSION",{encoderVersion:d}),_.qZ(d),d;return M};var VQ=function(M,d){_.DL.call(this);this.token=M;this.JSC$10496_encoderRegistry=d;this.observers=[];M=new _.Np.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Ds());M.onmessage=this.handleMessage.bind(this);this.channel=M};
_.v(VQ,_.DL);_.$$=function(M,d,N){var R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,sgS(M.token),2);if(k.nextAddress!=3)return R=k.yieldResult,_.D(k,_.bk(R,["EntityStore","EntityAssociationStore"],d,function(T){X=new o2z(T,M.JSC$10496_encoderRegistry);return N(X)}),3);
A=k.yieldResult;X&&(l=X.changedKeys,Object.keys(l).length>0&&(M.channel.postMessage(l),eTL(M,l)));return k.return(A)})};
VQ.prototype.observe=function(M){var d=this;this.observers.push(M);return function(){var N=d.observers.indexOf(M);N>=0&&d.observers.splice(N,1)}};
var ITZ=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.$$(M,{mode:"readonly",enableRetries:!0},function(R){return R.JSC$10482_wrapped.objectStore("EntityStore").getAll()}),2);
d=N.yieldResult;return N.return(Promise.all(d.filter(function(R){return!!R}).map(function(R){var X,A;
return _.B(function(l){if(l.nextAddress==1){X=R.key;A=R.entityType;var k=P1L(rhd(M.JSC$10496_encoderRegistry,R.version),R.data,R.key);return _.D(l,k,2)}return l.return({key:X,entityType:A,data:l.yieldResult})})})))})};
VQ.prototype.handleMessage=function(M){eTL(this,M.data)};
var eTL=function(M,d){M=_.V(M.observers);for(var N=M.next();!N.done;N=M.next())N=N.value,N(d)};
VQ.prototype.disposeInternal=function(){this.channel.close()};
var b7p;var qT,n2V,pqZ,$mv;qT={};_.HWg=(qT.mainVideoEntity="mainVideoEntityActionMetadata",qT.mainPlaylistEntity="mainPlaylistEntityActionMetadata",qT.musicTrack="musicTrackEntityActionMetadata",qT.musicPlaylist="musicPlaylistEntityActionMetadata",qT);n2V=new _.x5("DOWNLOADS_ENTITY_TYPE_MAP");pqZ=_.Nr("","downloadsPageViewConfigurationEntity");$mv=_.Nr("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Quq=_.Nr("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Nr("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Nr("SMART_DOWNLOADS_ENABLED","settingEntity");_.Nr("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Cci=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var NJL=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var VH2={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var IL,FTZ,e7o,OjL;IL=window;_.r_=IL.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.wni=IL.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.bY;FTZ=IL.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||h9;e7o=IL.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||b6V;_.iWt=IL.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.MGt;OjL=IL.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||R7J;cD({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 hHA=AbA(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(M){return M}}}),J0N=AbA(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(M){return M}}}),Bmq=new Map;var q9v=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],WTi;var flz=function(M){return _.YS({type:"SET_EPHEMERAL_ACTION",payload:M})};var LfL={ephemeralAction:null};var tYC={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var t4Z={sharedUi:function(M,d){M=M===void 0?tYC:M;switch(d.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},M,{animatedThumbnailEnabled:d.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},M,{inlinePreviewEnabled:d.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:d.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},M,{currentPageSubType:d.payload});default:return M}},
a11y:Nw({ephemeralAction:function(M,d){M=M===void 0?LfL.ephemeralAction:M;switch(d.type){case "SET_EPHEMERAL_ACTION":return d.payload;default:return M}}})};var b4Z=Nw({isLeaderTab:function(M,d){M=M===void 0?!0:M;switch(d.type){case "SET_IS_LEADER_TAB":var N,R;return(R=d==null?void 0:(N=d.payload)==null?void 0:N.isLeaderTab)!=null?R:M;default:return M}}});var G4t=function(M){return _.YS({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:M}})};var LT6=Nw({isDesktopSmallWidth:function(M,d){switch(d.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return d.payload.isDesktopSmallWidth;default:return M===void 0?!1:M}},
isShortsActive:function(M,d){switch(d.type){case "SET_IS_SHORTS_ACTIVE":return d.payload.isShortsActive;default:return M===void 0?!1:M}},
isWatchWhileMode:function(M,d){switch(d.type){case "SET_IS_WATCH_WHILE_MODE":return d.payload.isWatchWhileMode;default:return M===void 0?!1:M}},
playerState:function(M,d){switch(d.type){case "SET_PLAYER_STATE":return d.payload.playerState;default:return M===void 0?-1:M}},
isFullscreen:function(M,d){switch(d.type){case "SET_IS_FULLSCREEN":return d.payload.isFullscreen;default:return M===void 0?!1:M}},
isSmallScreenSqueezeback:function(M,d){switch(d.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return d.payload.isSmallScreenSqueezeback;default:return M===void 0?!1:M}},
isShortsPipActive:function(M,d){switch(d.type){case "SET_IS_SHORTS_PIP_ACTIVE":return d.payload.isShortsPipActive;default:return M===void 0?!1:M}},
isPlaybackStarted:function(M,d){switch(d.type){case "SET_IS_PLAYBACK_STARTED":return d.payload.isPlaybackStarted;default:return M===void 0?!1:M}}});var Pg2={playlistId:"",inviteLinkURL:""};var alL={};var zHL=Nw({continuationCommand:function(M,d){M=M===void 0?alL:M;switch(d.type){case "SET_CONTINUATION_COMMAND":return d.payload.continuationCommand;default:return M}}});var aY2=function(){return function(M){return function(d){var N=M(d);_.ZI(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[d],!0);return N}}};var UfV,dtv;UfV=new _.MX;_.aq=new _.x5("WATCH_PLAYER_PROMISE_TOKEN");_.u13=new _.MX;_.C1V=new _.x5("SHORTS_PLAYER_PROMISE_TOKEN");dtv=new _.x5("");var UTS=function(){return function(M){return function(d){d.type==="ENTITY_LOADED"&&_.h().resolve(_.aq).then(function(N){var R;(R=N.dispatchReduxAction)==null||R.call(N,d)});
return M(d)}}};var rbp={currentFormId:"",commandsMap:{}};var xft={};var eHi=Nw({additionalContext:function(M,d){switch(d.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var N;return(N=d.payload)!=null?N:"";default:return M===void 0?"":M}},
impersonatedChannelUrl:function(M,d){switch(d.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var N;return(N=d.payload)!=null?N:"";default:return M===void 0?"":M}},
selectedVideoIds:function(M,d){M=M===void 0?xft:M;switch(d.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var N={};return Object.assign({},M,(N[d.payload]=!0,N));case "VIDEO_UNSELECTED":return d=d.payload,M=Object.assign({},M),delete M[d],M;default:return M}}});var H4Z=Nw({parentClickTrackingParams:function(M,d){switch(d.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return d.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return M===void 0?"":M}}});var YfC=function(M){return _.YS({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:M})};var ZWt={};var nOZ=Nw({stepStates:function(M,d){M=M===void 0?ZWt:M;switch(d.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var N=M,R=d.payload,X,A,l;M={};d={selectionStates:Object.assign({},(l=(X=N[R.stepId])==null?void 0:X.selectionStates)!=null?l:{},(M[R.token]={isSelected:R.isSelected},M)),userQuery:(A=N[R.stepId])==null?void 0:A.userQuery};X={};return Object.assign({},N,(X[R.stepId]=d,X));case "TALK_TO_RECS_UPDATE_USER_QUERY":return X=M,A=d.payload,l={selectionStates:Object.assign({},
(R=(N=X[A.stepId])==null?void 0:N.selectionStates)!=null?R:{}),userQuery:{userQuery:A.userQuery,token:A.userQueryToken}},N={},Object.assign({},X,(N[A.stepId]=l,N));default:return M}}});var E2J,Mqd;E2J=function(M){return _.YS({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:M})};
Mqd=function(M){return _.YS({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:M})};
_.o1=function(M){return _.YS({type:"SET_CURRENT_PAGE_TYPE",payload:M})};
_.dMg=function(M){return _.YS({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:M})};var ybS={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"};_.NVm=function(M){return _.YS({type:"SET_PLAYER_STATE",payload:{playerState:M}})};var RUC=[],XIV={width:0,height:0};var i4r=Nw({isTheaterMode:function(M,d){M=M===void 0?_.KF("START_IN_THEATER_MODE"):M;switch(d.type){case "SET_IS_THEATER_MODE":return d.payload.isTheaterMode;default:return M}},
isWatchActive:function(M,d){switch(d.type){case "SET_IS_WATCH_ACTIVE":return d.payload.isWatchActive;default:return M===void 0?!1:M}},
isWatchFullscreen:function(M,d){switch(d.type){case "SET_IS_WATCH_FULLSCREEN":return d.payload.isWatchFullscreen;default:return M===void 0?!1:M}},
isWatchNarrowWidth:function(M,d){switch(d.type){case "SET_IS_WATCH_NARROW_WIDTH":return d.payload.isWatchNarrowWidth;default:return M===void 0?!1:M}},
isWatchRetroMode:function(M,d){switch(d.type){case "SET_IS_WATCH_RETRO_MODE":return d.payload.isWatchRetroMode;default:return M===void 0?!1:M}},
isLiveChatCollapsed:function(M,d){switch(d.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return d.payload.isLiveChatCollapsed;default:return M===void 0?!1:M}},
openEngagementPanels:function(M,d){M=M===void 0?RUC:M;var N=[].concat(_.wu(M));switch(d.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return N.push(d.payload.panelToAdd),N;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return N.splice(N.indexOf(d.payload.panelToRemove),1),N;default:return M}},
playerState:function(M,d){switch(d.type){case "SET_PLAYER_STATE":return d.payload.playerState;default:return M===void 0?-1:M}},
watchScrollTop:function(M,d){switch(d.type){case "SET_WATCH_SCROLL_TOP":return d.payload.watchScrollTop;default:return M===void 0?0:M}},
watchWindowSize:function(M,d){M=M===void 0?XIV:M;switch(d.type){case "SET_WATCH_WINDOW_SIZE":return d.payload.watchWindowSize;default:return M}}});var Fgo={feedbackTokens:[]};var fYi=Nw({surveyFeedbackData:function(M,d){M=M===void 0?Fgo:M;switch(d.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return d.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},M,d.payload);default:return M}}});var cbj={};var CgZ=void 0;_.Q("web_enable_redux_store_on_demand")||(CgZ=uD2());var Azt=function(M,d,N){var R=this;this.listId=M;this.JSC$10629_updateCallback=d;this.isOfflineVideoCallback=N;_.iY().subscribe(function(){R.handleUpdate()})};
Azt.prototype.getPlaylistData=function(){var M=_.iY().getState().entities;if(this.listId&&this.listId!=="PPSV"){var d=xmi(M,this.listId,!0),N=_.Nr(this.listId,"mainPlaylistEntity"),R,X;M=M==null?void 0:(R=M.mainPlaylistEntity)==null?void 0:(X=R[N])==null?void 0:X.title;return xTZ(d,M,this.listId)}d=_.R0p(O9q(M));M=_.R0p(_.mZ(M));return xTZ(d.concat(M))};
Azt.prototype.getPlaylistId=function(){return this.listId};
Azt.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10629_updateCallback(this.listId,this.getPlaylistData(),{})};var vn=function(M,d,N,R){R=R===void 0?[]:R;this.JSC$10632_playlistNetworkManager=M;this.listId=d;this.JSC$10632_updateCallback=N;this.videoIds=R;this.pendingUpdates=[];this.currentIndex=0};
vn.prototype.JSC$10632_setCurrentIndex=function(M){this.currentIndex=M};
vn.prototype.setListId=function(M){this.listId=M};
var Vqd=function(M,d){M.currentCreateRequest&&M.currentCreateRequest.cancel(d);M.currentUpdateRequest&&M.currentUpdateRequest.cancel(d);M.currentRefreshRequest&&M.currentRefreshRequest.cancel(d)};
vn.prototype.delete=function(){Vqd(this,"PROXY DELETED")};
vn.prototype.addVideos=function(M,d,N){var R=this;N!==void 0?this.videoIds.splice.apply(this.videoIds,[N,0].concat(_.wu(M))):this.videoIds.push.apply(this.videoIds,_.wu(M));this.listId||this.currentCreateRequest?(M.forEach(function(X,A){X={addedVideoId:X,action:"ACTION_ADD_VIDEO"};N&&(X.addedVideoPosition=N+A);R.pendingUpdates.push(X)}),O9(this)):lgo(this,d.onCreateListCommand)};
var $Mo=function(M,d,N,R,X){viZ(M.videoIds,d,N);d>M.currentIndex&&N<=M.currentIndex?M.JSC$10632_setCurrentIndex(M.currentIndex+1):d===M.currentIndex?M.JSC$10632_setCurrentIndex(N):d<M.currentIndex&&N>=M.currentIndex&&M.JSC$10632_setCurrentIndex(M.currentIndex-1);M.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:R,movedSetVideoIdPredecessor:X});O9(M)},lgo=function(M,d){Vqd(M,"OBSOLETE");
M.currentCreateRequest=BVJ(M.JSC$10632_playlistNetworkManager,d,M.videoIds);_.Ie(M.currentCreateRequest,function(){M.currentCreateRequest=void 0}).then(function(N){M.setListId(N.playlistId);
M.pendingUpdates.length>0?O9(M):kSz(M)})},O9=function(M){if(M.pendingUpdates.length!==0&&(M.currentRefreshRequest&&M.currentRefreshRequest.cancel("OBSOLETE"),!M.currentUpdateRequest&&!M.currentCreateRequest)){var d=M.pendingUpdates.splice(0,M.pendingUpdates.length);
M.currentUpdateRequest=M.JSC$10632_playlistNetworkManager.updatePlaylist(M.listId,d);_.Ie(M.currentUpdateRequest,function(){M.currentUpdateRequest=void 0}).then(function(){M.pendingUpdates.length>0?O9(M):kSz(M)}).thenCatch(function(){M.pendingUpdates.unshift.apply(M.pendingUpdates,_.wu(d))})}},kSz=function(M){M.currentRefreshRequest=_.TVL(M.JSC$10632_playlistNetworkManager,M.listId,M.currentIndex,M.videoIds[M.currentIndex]);
_.Ie(M.currentRefreshRequest,function(){M.currentRefreshRequest=void 0}).then(function(d){M.JSC$10632_updateCallback(d.playlistId,d.playlistPanelRenderer,d.autoplayRenderer)})};
vn.prototype.size=function(){return this.videoIds.length};var DM3=function(M,d,N,R){R=R===void 0?[]:R;vn.call(this,M,d,N,R);this.JSC$10632_playlistNetworkManager=M;this.listId=d;this.JSC$10632_updateCallback=N;this.videoIds=R};
_.v(DM3,vn);_.j4=function(M,d,N,R,X,A,l){X=X===void 0?[]:X;l=l===void 0?Re:l;vn.call(this,M,d,N,X);this.JSC$10632_playlistNetworkManager=M;this.listId=d;this.JSC$10632_updateCallback=N;this.onAuthChange=R;this.videoIds=X;this.storage=A;this.cookieReader=l;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Lq(_.IQ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v(_.j4,vn);_.F=_.j4.prototype;_.F.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Lq(_.IQ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.F.JSC$10632_setCurrentIndex=function(M){vn.prototype.JSC$10632_setCurrentIndex.call(this,M);this.store()};
_.F.delete=function(){_.IQ.cancelJob(this.queueSapisIdJob);vn.prototype.delete.call(this)};
_.F.setListId=function(M){vn.prototype.setListId.call(this,M);this.store()};
_.F.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var glL=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Wgd=["playerResponse","videoDetails"],wIm=["response","currentVideoEndpoint","watchEndpoint","videoId"],pId=["response","currentVideoEndpoint","watchEndpoint","playlistId"],mMC=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],hUe=["response","contents","twoColumnWatchNextResults","playlist","playlist"],QrL=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
qyz=["response","contents","twoColumnWatchNextResults"];var s9={},dlj=(s9.WEB_UNPLUGGED="^unplugged/",s9.WEB_UNPLUGGED_ONBOARDING="^unplugged/",s9.WEB_UNPLUGGED_OPS="^unplugged/",s9.WEB_UNPLUGGED_PUBLIC="^unplugged/",s9.WEB_CREATOR="^creator/",s9.WEB_KIDS="^kids/",s9.WEB_EXPERIMENTS="^experiments/",s9.WEB_MUSIC="^music/",s9.WEB_REMIX="^music/",s9.WEB_MUSIC_EMBEDDED_PLAYER="^music/",s9.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",s9);var ys2,BVJ;ys2=function(M,d){this.networkManager=M;this.innertubeTransportService=d};
BVJ=function(M,d,N){if(!_.q(d,_.J6))return _.cl(Error("Ef"));_.q(d,_.J6).videoIds=N;N={create_playlist_title:_.le("QUEUE",void 0,"Queue")};return EOi(_.rT(M.innertubeTransportService,d,N),Y9A)};
_.TVL=function(M,d,N,R){d={videoId:R,playlistId:d,playlistIndex:N};N=_.fh(Ofg);return EOi(_.Pn(M.innertubeTransportService,d,N),MVi)};
ys2.prototype.updatePlaylist=function(M,d){return EOi(_.rT(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:M,actions:d}}),Z42)};var Igm=function(M){this.storage=M},vl3;
Igm.prototype.store=function(M,d){d=d===void 0?0:d;if(this.storage&&M.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",M),this.storage.set("TLPQindex",String(d)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(N){}};
Igm.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Igm.prototype.getPlaylistId=function(){if(!this.storage)return null;var M=null;try{M=this.storage.get("TLPQplaylist")}catch(d){}return M};var FMS=["navigationEndpoint","watchEndpoint","videoId"],XAZ=["nextButtonVideo","watchEndpoint","videoId"];_.Tu=new _.x5("NETWORK_TOKEN");_.em=new _.x5("PAGE_TOKEN");_.oL=new _.x5("PLAYLIST_TOKEN");var ONJ;ONJ=new _.x5("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.D3=new _.x5("INNERTUBE_TRANSPORT_TOKEN");var jrd,rm,PKd,olV,KgL,yzo;jrd=new Set(["ci","cr","carml"]);rm=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10679_parkedJobs=new Map;this.parkedProcessors=new Map};
_.K4=function(){rm.instance||(rm.instance=new rm);return rm.instance};
rm.prototype.onAny=function(M){return _.srd(this,M,2)};
rm.prototype.parkOrScheduleJob=function(M,d,N,R,X){_.ym(this,N)?_.Pa().addJob(M,d,R):(X&&(M=PKd(M),olV(this,M,d,N,X)),X=this.JSC$10679_parkedJobs.get(N),X||(this.JSC$10679_parkedJobs.set(N,[]),X=this.JSC$10679_parkedJobs.get(N)),X.push({job:M,priority:d,delay:R}))};
rm.prototype.addListener=function(M,d,N){N&&(d=PKd(d),olV(this,d,0,M,N));N=this.parkedProcessors.get(M);N||(this.parkedProcessors.set(M,[]),N=this.parkedProcessors.get(M));N.push(d)};
rm.prototype.processSignal=function(M){if(!_.ym(this,M)){this.inProgressSignals.add(M);var d=this.JSC$10679_parkedJobs.get(M);if(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,_.Pa().addJob(N.job,N.priority,N.delay);this.JSC$10679_parkedJobs.delete(M)}if(d=this.parkedProcessors.get(M)){d=_.V(d);for(N=d.next();!N.done;N=d.next())N=N.value,N();this.parkedProcessors.delete(M)}this.signals.push(M);this.inProgressSignals.delete(M)}};
_.ym=function(M,d){return jrd.has(d)||_.KF("IS_HOMEPAGE_COLD")||_.KF("IS_RESULTS_PAGE_COLD")||_.KF("IS_WATCH_PAGE_COLD")?M.signals.indexOf(d)>=0:!0};
PKd=function(M){var d=!1;return function(){d||(d=!0,M())}};
olV=function(M,d,N,R,X){if(rzV.has(R))_.Pa().addJob(d,N,X);else{var A=M.compoundSignals.get(R);A&&_.Pa().addJob(function(){_.ym(M,R)||(A.isTimeoutConditionSatisfied?_.Pa().addJob(d,N):A.timeoutConditionObservers.push(function(){_.Pa().addJob(d,N)}))},N,X)}};
_.srd=function(M,d,N){if(d.length>1){var R=[],X=Object.create(null);d=_.V(d);for(var A=d.next();!A.done;A=d.next())A=A.value,X[A]||(R.push(A),X[A]=!0);d=R}if(d.length===1)return d[0];A=d;R="";X=N===2?"|":"&";A.sort();A=_.V(A);for(var l=A.next();!l.done;l=A.next())R+=l.value+X;if(!M.compoundSignals.get(R)){X=0;A=[];l=_.V(d);for(var k=l.next();!k.done;k=l.next())k=k.value,X++,_.ym(M,k)||A.push(k);(N=N===2)&&X>A.length||!N&&!A.length?M.signals.push(R):KgL(M,R,N,d,A)}return R};
KgL=function(M,d,N,R,X){var A=X.length,l=function(){N||--A===0?M.processSignal(d):yzo(M,d)};
X=_.V(X);for(var k=X.next();!k.done;k=X.next())M.addListener(k.value,l);M.compoundSignals.set(d,{signals:R,isOnAny:N,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});yzo(M,d)};
yzo=function(M,d){if(!_.ym(M,d)){var N=M.compoundSignals.get(d);if(N&&!N.isTimeoutConditionSatisfied){for(var R=!1,X=0,A=0,l=_.V(N.signals),k=l.next();!k.done;k=l.next()){var T=k.value;k=!_.ym(M,T);rzV.has(T)?R=!0:(T=M.compoundSignals.get(T))?k&&!T.isTimeoutConditionSatisfied&&(A++,N.isInitialized||T.timeoutConditionObservers.push(function(){yzo(M,d)})):k&&X++}N.isInitialized=!0;
N.isOnAny?R&&(N.isTimeoutConditionSatisfied=!0):X===0&&A===0&&(N.isTimeoutConditionSatisfied=!0);if(N.isTimeoutConditionSatisfied)for(N=_.V(N.timeoutConditionObservers),R=N.next();!R.done;R=N.next())R=R.value,R()}}};
rm.prototype.processSignal=rm.prototype.processSignal;rm.prototype.parkOrScheduleJob=rm.prototype.parkOrScheduleJob;rm.prototype.onAny=rm.prototype.onAny;_.fE("ytsignals.getInstance",_.K4);rm.prototype.onAny=rm.prototype.onAny;rm.prototype.parkOrScheduleJob=rm.prototype.parkOrScheduleJob;rm.prototype.processSignal=rm.prototype.processSignal;var rzV=new Set(["eop","eocs","dl","pcl"]);_.et=new _.x5("MINIPLAYER_SERVICE");var Jb,JzI,czL;Jb=function(M,d,N){var R=_.ch.getInstance();if(!vl3){var X=new mwZ;var A=void 0,l=_.rK("ID_TOKEN");l&&X.isAvailable()&&(A=new hm(X,"yt-queue"+l));vl3=new Igm(A)}X=vl3;A=_.K4();this.JSC$10686_actionRouter=R;this.pageManager=M;this.playlistManager=d;this.JSC$10686_playlistNetworkManager=N;this.storage=X;this.signals=A;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.cn=function(){if(!JzI){var M=_.h(),d=M.resolve(_.CF(_.em)),N=M.resolve(_.CF(_.Tu)),R=M.resolve(_.CF(_.oL));M=M.resolve(_.D3);JzI=new Jb(d,R,new ys2(N,M))}return JzI};
czL=function(M,d,N){if(N){var R;if(((R=M.responsePlaylistData)==null?void 0:R.playlistId)!==N)return}M.responsePlaylistData&&(N=knZ(d,M.responsePlaylistData),M.responsePlaylistData=(0,_.wF.unsafeClone)(M.responsePlaylistData),Dlr(M.responsePlaylistData,N));N=M.temporaryItems.findIndex(function(X){return X.videoId===d});
N>-1&&M.temporaryItems.splice(N,1);_.S4(M,_.zq(M,M.response?M.response.autoplayRenderer:void 0))};
_.Sy3=function(M,d){if(M.responsePlaylistData){var N=Tbp(d,M.responsePlaylistData);Dlr(M.responsePlaylistData,N);if(M.queueProxy){var R=M.queueProxy;N<0||(R.videoIds.splice(N,1),N<R.currentIndex&&R.JSC$10632_setCurrentIndex(R.currentIndex-1),R.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:d}),O9(R))}}_.S4(M,_.zq(M,M.response?M.response.autoplayRenderer:void 0))};
Jb.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.S4(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Jb.prototype.setPlaylistData=function(M,d,N){this.temporaryItems=[];this.listId=M;this.responsePlaylistData=d;_.S4(this,_.zq(this,N))};
var zUL=function(M){return(M==null?0:M.playlistId)?M.playlistId:"PPSV"},bNJ=function(M){return M&&M.playlistId?M.playlistId==="PPSV"?!0:uz2(_.iY().getState().entities,M.playlistId):!1};
Jb.prototype.isPlayingOfflineVideo=function(){return this.response?bNJ(this.response):!1};
Jb.prototype.closeMiniplayer=function(M){var d=this.queueProxy&&this.queueProxy.size()<=1,N=_.h().resolve(_.et);if(!this.queueProxy||d)this.queueProxy&&this.clearQueue(),N.close(!0);else{N.pipController.getWindow()&&window.focus();d=this.responsePlaylistData;var R=this.temporaryItems.length+(d&&d.contents?d.contents.length:0);d=_.le("QUEUE_CLEARED_UNPLURALIZED")||_.$S("QUEUE_CLEARED",R);d=_.tT(d);N=_.le("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");R=_.le("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.$S("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",R);var X=_.le("MINIPLAYER_CLOSE",void 0,"Close"),A=_.le("CANCEL",void 0,"Cancel");_.Kx(this.JSC$10686_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ep(N),dialogMessages:[_.ep(R)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ep(X),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
d]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ep(A)}}}}}}],M)}};
_.zq=function(M,d){var N={},R=M.response;N.autoplayRenderer=d;if(!M.responsePlaylistData&&!M.temporaryItems.length)return!R||!R.hasRelatedVideoData&&_.Q("kevlar_prefetch_data_augments_network_data")||(N.playerData={rvs:R.relatedVideoArgs,endScreenRenderer:R.endScreenRenderer}),N;N.playerData={};if(M.index===void 0)return _.qZ(Error("Gf")),N;N.panel=M.responsePlaylistData?(0,_.wF.unsafeClone)(M.responsePlaylistData):{titleText:_.ep(_.le("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
d=N.panel;if(d.contents)for(var X=_.V(M.temporaryItems),A=X.next();!A.done;A=X.next())d.contents.push({playlistPanelVideoRenderer:A.value});M.queueProxy&&R&&R.playingVideo&&R.playingVideoId&&!Bbi(R.playingVideoId,N.panel)&&(d=R.playingVideo,X=N.panel,A=M.index,X.contents&&X.contents.splice(A===void 0?0:A,0,{playlistPanelVideoRenderer:d}));R&&R.playingVideoId&&(d=M.index,X=N.panel,d=!X.contents||d>=X.contents.length?void 0:X.contents[d].playlistPanelVideoRenderer,d&&d.videoId===R.playingVideoId||(d=
knZ(R.playingVideoId,N.panel),M.index=d!==-1?d:M.index?M.index-1:0));d=$lq(M.index+1,N.panel);X=void 0;M.index>0&&(X=$lq(M.index-1,N.panel));if(X||d)N.autoplayRenderer=AKZ(d,X,N.autoplayRenderer);!d&&(R==null?0:R.relatedVideoArgs)&&(N.playerData.rvs=R.relatedVideoArgs);R=R?R.playlistIndexOffset:0;M.queueProxy?wAp(N.panel,M.index,R,lpi,!0,!0,!0):wAp(N.panel,M.index,R);N.playerData.playlistPanelRenderer=N.panel;return N};
Jb.prototype.openToast=function(M){_.h().resolve(_.et).openToast(M,_.le("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Jb.prototype.isMiniplayerActive=function(){return _.h().resolve(_.et).isMiniplayerActive()};
_.S4=function(M,d){M.playlistManager.setAutoplayRenderer(d.autoplayRenderer||null);M.playlistManager.setPlaylistData(d.panel||null);d.playerData&&M.playlistManager.setPlayerPlaybackControlData(d.playerData)};var mlp="#";var eUJ={},HNV={},nlm={},iNL={},fgV={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:(eUJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",eUJ),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:(HNV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",HNV),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:(nlm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",nlm),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:(iNL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",iNL),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 dhj=[{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:fgV},{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:fgV}}];_.EW=[[["eWM4MXA2ZW5wbmtpbmQjaG4=","d3l4ZXRxbnFzZXZhbHVlIzhl"],"cmFjNTg4MjRvbEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI3Vm"]];_.Z4=["MmwybHF5MGJjbWdsb2JhbENhbGxiYWNrcyM2eA==","ZTFpODViczNkZW9uQWJub3JtYWxpdHlEZXRlY3RlZCN5Yg==","OHVnOHl2ejh4dm9uQWRTa2lwI3Vy","czU4enY3ZThwNXJhd19wbGF5ZXJfcmVzcG9uc2Ujazg=","a3k5d2NzemFrY2FkU2xvdHMja2c="];_.bg="MmwybHF5MGJjbWdsb2JhbENhbGxiYWNrcyM2eA== ZTFpODViczNkZW9uQWJub3JtYWxpdHlEZXRlY3RlZCN5Yg== OHVnOHl2ejh4dm9uQWRTa2lwI3Vy czU4enY3ZThwNXJhd19wbGF5ZXJfcmVzcG9uc2Ujazg= dzE2eXA0cWJ5aHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNkNw== YXR4bnk2aDI4NWFiX3NhX2VmI3Jk a3k5d2NzemFrY2FkU2xvdHMja2c=".split(" ");var LgV=[["cjFwMmJjeWMyaHByaW1hcnkjZms=",null],[null,["azh0bmliNDNydXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI283","anE3Znltd2hvZXN0eWxlLXNjb3BlI2Rt"]],["NGlmMWdyNDR0am1hc3RoZWFkLWFkI2ky",["aW11djhqOXhhaXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjd2Q="]],[null,["ZTN1bmlldXZoMHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjMjM=","bTB3d2RpYXl2a3N0eWxlLXNjb3BlI2p5"]],[null,["MDV0cW50YXhiMHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjcDI=","ZXRjaXlldzA4MHN0eWxlLXNjb3BlIzV0"]],[null,["d2Z5M3FqdHQybHl0ZC1hZC1zbG90LXJlbmRlcmVyI2F3"]]],
tqg=[["azVscXRtNnpkMXBsYXllci1hZHMjamQ=",null]];var GnS=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var e4;e4=function(M,d,N){this.asM=M;this.isAsync=d;this.tBA=N};
_.TQZ=[new e4("b.f_",!1,0),new e4("j.s_",!1,2),new e4("r.s_",!1,4),new e4("e.h_",!1,6),new e4("i.s_",!0,8),new e4("s.t_",!1,10),new e4("p.h_",!1,12),new e4("s.i_",!1,14),new e4("f.i_",!1,16),new e4("a.b_",!1,18),new e4("a.o_",!1),new e4("g.o_",!1,22),new e4("p.i_",!1,24),new e4("p.m_",!1),new e4("n.k_",!0,20),new e4("i.f_",!1),new e4("a.s_",!0),new e4("m.c_",!1),new e4("n.h_",!1,26),new e4("o.p_",!1),new e4("m.p_",!0,28),new e4("o.a_",!1),new e4("d.p_",!1)].reduce(function(M,d){M[d.asM]=d;return M},
{});var vH6=function(){};
vH6.prototype.flush=function(M,d){M=M===void 0?[]:M;d=d===void 0?!1:d;if(_.Q("enable_client_streamz_web")){M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=$OV(N.value),N={serializedIncrementBatch:_.UT(N.JSC$7491_serializeBinary())},_.hQ("streamzIncremented",N,{sendIsolatedPayload:d})}};var Ch;var CWL,jhZ,Snq,oHj,yKN,LMS,YnZ,i$A,Hn;CWL=2;jhZ=2;Snq=2;oHj=2;yKN=2;LMS=2;YnZ=2;i$A=new A8J;Hn={};_.agd=(Hn["b.f_"]=function(){return _.B(function(M){return M.nextAddress==1?_.D(M,(_.g5i()!==void 0?_.cl(Error("sf")):_.XvZ()).then(function(){return 1},function(d){if(d.message==="Biscotti id is disabled")return 3;
_.vh("Failed fetching bid");return 0}),2):M.return(M.yieldResult)})},Hn["j.s_"]=fpL,Hn["r.s_"]=H$i,Hn["e.h_"]=function(){for(var M=function(X){return hfN(X)},d=[LgV,
tqg],N=2,R=0;R<d.length&&(N=tVZ(QhS(d[R],M)),N!==0);R++);return N},Hn["n.h_"]=function(){return tVZ(QhS([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},Hn["i.s_"]=function(){return _.rK("ISDSTAT",2)},Hn["p.h_"]=function(){return 2},Hn["s.t_"]=function(){return CWL},Hn["s.i_"]=xlZ,Hn["f.i_"]=PWv,Hn["a.b_"]=b$N,Hn["a.o_"]=u5Z,Hn["g.o_"]=UlN,Hn["p.i_"]=ap2,Hn["p.m_"]=KMS,Hn["n.k_"]=function(){return _.rK("NKDSTAT",2)},Hn["i.f_"]=cKZ,Hn["a.s_"]=function(){return _.rK("ASDSTAT",2)},Hn["m.c_"]=function(){return 2},Hn["o.p_"]=function(){return Z$L(_.bg)},Hn["m.p_"]=function(){return _.rK("MBSTAT",
2)},Hn["o.a_"]=function(){return EHi()===0?0:M$j()},Hn["d.p_"]=function(){return YnZ},Hn);var UMV,urz,CKJ;UMV=function(){this.ongoingFlowNonces=new Map};
_.Rj=function(){urz||(urz=new UMV);return urz};
_.df=function(M,d,N){return{eventType:{flowEventNamespace:M,flowEventType:d},metadata:N,statusCode:void 0,csn:void 0,can:void 0}};
_.gyv=function(M,d){var N=_.Rj(),R=CKJ(N,d,!0);_.NX(N,M,d,R)};
_.NX=function(M,d,N,R){M={flowNonce:R||CKJ(M,N),flowType:N,flowEventType:d.eventType};d.metadata&&(M.flowMetadata=d.metadata);d.statusCode!==void 0&&(M.flowEventStatus=d.statusCode);d.csn&&(M.csn=d.csn);d.can&&(M.can=d.can);_.hQ("flowEvent",M,void 0)};
CKJ=function(M,d,N){N=N===void 0?!1:N;var R=M.ongoingFlowNonces.get(d);if(!R||N)R=Qb(16),M.ongoingFlowNonces.set(d,R);return R};_.xMJ=new Fxm;var n4=function(M,d,N,R,X,A,l){N=N===void 0?!1:N;R=R===void 0?!1:R;A=A===void 0?_.cn():A;this.hasRun=!1;this.eXx=M;this.fHn=d;this.p96=N;this.fromHistory=R;this.previousVideoId=X;this.niY=A;this.tempData=l;this.w9I=new _.Vzt};
_.v(n4,au);n4.prototype.validate=function(M){return!(!M.data.playerResponse||M.data.page!=="watch"&&M.data.page!=="shorts"||this.hasRun)};
n4.prototype.handle=function(M){var d=this,N=_.q(M.endpoint,_.nL),R=_.q(M.endpoint,_.$B);if(_.Q("kevlar_continue_playback_without_player_response")&&(N==null?0:N.videoId)&&this.previousVideoId&&(N==null?void 0:N.videoId)===this.previousVideoId&&(N==null?0:N.continuePlayback)&&!this.fromHistory)this.eXx.resolve();else{var X={};N?X.watch_endpoint=N:R&&(X.watch_endpoint=R,R.endTimeSeconds&&(X.end=R.endTimeSeconds));M.data.page==="watch"?(M.data.filler||this.p96||(_.ON("cfg"),_.ch.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(X,Yye(this,M.endpoint)),_.Q("enable_masthead_quartile_ping_fix")&&Object.assign(X,ZNJ(this)),N=!_.Q("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(X,N),M.data.forceExternalPlaylist&&(X.external_list=!0)):M.data.page==="shorts"&&_.ch.getInstance().triggerAction("yt-start-loading-shorts");if(N=this.fHn()){try{N.loadVideoWithPlayerResponse(M.data.playerResponse,X),N.getPlayerPromise().then(this.eXx.resolve)}catch(A){_.qZ(A),this.eXx.resolve()}this.hasRun=
!0;N.getPlayerPromise().then(function(A){A.addEventListener("onAbnormalityDetected",function(){var l=M.data.playerResponse,k=A.getVideoData().cpn;YnZ=0;_.GSV=k;if(k=kci(l))d.w9I.increment("IN_PLAYER"),_.X8(5),_.Q("ab_st_vid_ks")?A.pauseVideo(!0):A.stopVideo(),l.playabilityStatus=Object.assign({},l.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:k}}),l.videoDetails=void 0,_.ch.getInstance().triggerOptionalAction("yt-updated-playability-status",l.playabilityStatus)})})}else _.vh(Error("Jf"))}};
var Yye=function(M,d){var N=_.q(d,_.nL);if(d&&N&&N.playlistId&&N.videoId&&(M=M.niY,M.queueProxy?(M=M.queueProxy,N=M.listId===N.playlistId?M.attributionData.get(N.videoId):void 0):N=void 0,N))return{queue_info:N}},ZNJ=function(M){var d;
if((d=M.tempData)==null?0:d.adpings)return{adpings:M.tempData.adpings}};var ig=function(M,d,N){this.hasRun=!1;this.eG6=M;this.sfx=d;this.q9X=N};
_.v(ig,au);ig.prototype.validate=function(M){return!!_.wF.getValueByKeys.apply(null,[M.data].concat(_.wu(qyz)))};
ig.prototype.handle=function(M){var d=this;this.eG6.promise.then(function(){var N=M.data;var R=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(glL))),X=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(hUe))),A=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(wIm)));var l=(l=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(Wgd))))?{videoId:l.videoId,thumbnail:l.thumbnail,title:l.title?_.ep(l.title):void 0,shortBylineText:l.author?_.ep(l.author):void 0}:void 0;var k=void 0;_.Q("web_get_playlist_id_from_current_endpoint_ks")||
(k=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(pId))));var T=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(QrL))),W=_.wF.getValueByKeys.apply(null,[N].concat(_.wu(mMC))),w=!!T||!!W&&!!W.results&&W.results.length>0,p=0;X&&X.currentIndex&&X.localCurrentIndex&&(p=X.currentIndex-X.localCurrentIndex);X&&X.playlistId&&(k=X.playlistId);N={rawResponse:N,autoplayRenderer:R,hasRelatedVideoData:w,playingVideo:l,playingVideoId:A,playlistPanelRenderer:X,playlistId:k,playlistIndex:X&&X.currentIndex,relatedVideoArgs:T,
endScreenRenderer:W,playlistIndexOffset:p};a:{R=d.q9X;X=d.sfx;R.response=N;if(bNJ(N))R.downloadPlaylistProxy&&R.downloadPlaylistProxy.getPlaylistId()===zUL(N)||(R.downloadPlaylistProxy=new Azt(zUL(N),R.setPlaylistData.bind(R),R.isPlayingOfflineVideo.bind(R))),R.responsePlaylistData=R.downloadPlaylistProxy.getPlaylistData(),R.listId=zUL(N),R.index=0;else if(N.playlistPanelRenderer&&N.playlistId&&N.autoplayRenderer)N.playlistId.startsWith("TLPQ")?R.queueProxy?R.listId===N.playlistId?(R.index=N.playlistIndex,
R.responsePlaylistData=N.playlistPanelRenderer,R.queueProxy.JSC$10632_setCurrentIndex(R.index)):N.playingVideoId&&R.index!==void 0&&X.clientParams.autoSaveToQueue&&(R.index+=1,R.queueProxy.JSC$10632_setCurrentIndex(R.index),R.queueProxy.addVideos([N.playingVideoId],{},R.index)):(R.queueProxy=new _.j4(R.JSC$10686_playlistNetworkManager,N.playlistId,R.setPlaylistData.bind(R),R.clearQueue.bind(R),_.gHZ(N.playlistPanelRenderer),R.storage),R.responsePlaylistData=N.playlistPanelRenderer,R.listId=N.playlistId,
R.index=N.playlistIndex):(R.index=N.playlistIndex,R.listId!==N.playlistId&&R.clearQueue(),R.responsePlaylistData=N.playlistPanelRenderer,R.listId=N.playlistId,R.playlistProxy=new DM3(R.JSC$10686_playlistNetworkManager,N.playlistId,R.setPlaylistData.bind(R),_.gHZ(N.playlistPanelRenderer)));else if(!R.queueProxy)R.responsePlaylistData=void 0;else if(N.playingVideoId&&X.clientParams.autoSaveToQueue){if(R.index===void 0){_.qZ(Error("Ff"));R.clearQueue();break a}R.queueProxy.videoIds.includes(N.playingVideoId)||
(R.index+=1,R.queueProxy.JSC$10632_setCurrentIndex(R.index),R.queueProxy.addVideos([N.playingVideoId],{},R.index))}_.S4(R,_.zq(R,R.response.autoplayRenderer))}})};var ElC=function(M,d){d=d===void 0?_.cn():d;Vm.call(this);this.sY.push(new ig(this.aj,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},d));this.sY.push(new n4(this.aj,M,!1,!1));_.Q("web_response_commands_chunk_processor")&&this.sY.push(new lg)};
_.v(ElC,Vm);ElC.prototype.processChunk=function(M){M&&M.data.player===void 0&&this.aj.resolve();Vm.prototype.processChunk.call(this,M)};var f4=function(M,d){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;this.tIg=d};
_.v(f4,au);f4.prototype.validate=function(M){return!(this.hasRun||!M.endpoint)};
f4.prototype.handle=function(M){var d=_.Nx(),N,R,X=(R=_.q((N=M.endpoint)==null?void 0:N.commandMetadata,_.an))==null?void 0:R.rootVe;this.tIg&&X?_.dm(d,X,this.tIg,this.createScreenConfig):G1t(d,M.endpoint,this.createScreenConfig);this.hasRun=!0};var L4=function(M,d){this.hasRun=!1;this.ydn=M;this.previousVideoId=d};
_.v(L4,au);L4.prototype.validate=function(M){return _.Q("kevlar_continue_playback_without_player_response")&&(M=_.q(M.endpoint,_.nL),(M==null?0:M.videoId)&&this.previousVideoId&&(M==null?void 0:M.videoId)===this.previousVideoId&&(M==null?0:M.continuePlayback))?!1:this.ydn.peK===0};
L4.prototype.handle=function(M){_.ch.getInstance().triggerAction("yt-stop-old-player",M.data,!0)};var M1o=function(M){M=M===void 0?{layer:0}:M;Vm.call(this);this.sY.push(new L4(this));this.sY.push(new f4(M));this.sY.push(new Ab(M))};
_.v(M1o,Vm);var d0o=function(){this.hasRun=this.hasRun=!1};
_.v(d0o,au);d0o.prototype.validate=function(M){return!this.hasRun&&!(!M.data.csn||!M.data.rootVe)};
d0o.prototype.handle=function(M){this.hasRun=!0;_.KkL(M.data.csn,M.data.rootVe,3)};var N$V=function(){au.apply(this,arguments)};
_.v(N$V,au);N$V.prototype.validate=function(M){return!!M.data.preconnect};
N$V.prototype.handle=function(M){_.v1("bc");M=_.V(M.data.preconnect);for(var d=M.next();!d.done;d=M.next())d=d.value,(new Image).src=d};var RCJ=function(M,d,N){N=N===void 0?{layer:0}:N;Vm.call(this);this.sY.push(new n4(this.aj,M));this.sY.push(new f4(N));this.sY.push(new Ab(N))};
_.v(RCJ,Vm);var Xse=function(M,d,N,R,X){N=N===void 0?{layer:0}:N;R=R===void 0?_.cn():R;Vm.call(this);var A=!!d&&!!d.clientParams&&!!d.clientParams.miniplayer;A&&this.sY.push(new d0o);this.sY.push(new ig(this.aj,d,R));this.sY.push(new N$V);var l,k;this.sY.push(new n4(this.aj,M,A,!((l=d.clientParams)==null||!l.fromHistory),(k=d.clientParams)==null?void 0:k.previousVideoId,R,d.tempData));var T;this.sY.push(new L4(this,(T=d.clientParams)==null?void 0:T.previousVideoId));var W;(W=d.clientParams)!=null&&W.fromHistory||
(N.layer||(N=Object.assign({},N,{layer:A?3:0})),this.sY.push(new f4(N,X)),this.sY.push(new Ab(N)));_.Q("web_response_commands_chunk_processor")&&this.sY.push(new lg)};
_.v(Xse,Vm);var tb,V1J;tb={};
_.Fz3=(tb["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},tb["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},tb["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},tb["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},tb["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},tb["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},tb["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},tb);_.Gq=new _.Pf("yt-edu");_.A1m=function(){this.JSC$10781_eduDisplayedThisLoad_={}};
V1J=function(M){var d=_.A1m.getInstance();var N=_.ZR("kevlar_tooltip_impression_cap");d=N&&parseInt(_.Gq.get(M+"-impression")||0,10)>=N||_.Gq.get(M+"-dismissed")?!1:(N=_.Fz3[M])&&!d.JSC$10781_eduDisplayedThisLoad_[N.setKey||M]&&(N.titleText&&_.le(N.titleText)||N.bodyText&&_.le(N.bodyText))?!0:!1;if(!d)return null;d=_.Fz3[M];if(!d)return null;N=d.bodyText?_.le(d.bodyText):void 0;var R=d.titleText?_.le(d.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:d.position,popup:{bubbleHintRenderer:{text:R?
_.ep(R):void 0,detailsText:N?_.ep(N):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ep(_.le("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:M}}]}}}}}}}},{eduImpressionAction:{key:M}}]};
_.dP(_.A1m);var Wq2=!1;var hAp={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"};for(var loz="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),$0o=[],aL=6;aL>=1;aL--)$0o.push({columnCount:aL,query:aL==1?0:aL*2*107-4+32,className:"grid-"+aL+"-columns",width:aL*2*107+"px"});_.kjd=function(M){this.actionRouter_=M=M===void 0?_.ch.getInstance():M;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.B$L(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.B$L=function(M){var d=M.miniGuideVisible_?72:0,N=M.documentWidth_-(M.guidePersistentAndVisible_?240:d);return $0o.find(function(R){return N>R.query})};
_.dP(_.kjd);var T$o=function(){var M=this;this.JSC$10794_keyboardInUse=!1;document.addEventListener("keydown",function(){M.onKeydown()});
document.addEventListener("mousedown",function(){M.JSC$10794_keyboardInUse=!1})},D03;
T$o.prototype.isKeyBoardInUse=function(){return this.JSC$10794_keyboardInUse};
T$o.prototype.onKeydown=function(){this.JSC$10794_keyboardInUse=!0};var g1m,C4;_.U9=new _.Pf("yt-mentions");_.ug=function(){};
g1m=function(M,d){return C4(d,"drag-to-reorder-edu-displayed")};
C4=function(M,d,N,R,X,A){N=N===void 0?"OPEN_POPUP_POSITION_TOP":N;if(d){if(_.U9.get(d))return;_.U9.set(d,!0,R)}if(X&&A!==void 0){d=Number(_.U9.get(X)||0);if(d>=A)return;_.U9.set(X,d+1)}return[{openPopupAction:{popupType:"HINT",position:N,popup:{bubbleHintRenderer:{detailsText:M,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.dP(_.ug);var Wzo,wsC,ps3;Wzo=function(M,d,N,R){this.JSC$10804_taskManager_=M;this.onFulfilled_=typeof d==="function"?d:null;this.onRejected_=typeof N==="function"?N:null;this.JSC$10804_context_=R};
wsC=function(M,d){M.onFulfilled_&&_.kM(M.JSC$10804_taskManager_,function(){M.onFulfilled_.call(M.JSC$10804_context_,d)})};
ps3=function(M,d){M.onRejected_&&_.kM(M.JSC$10804_taskManager_,function(){M.onRejected_.call(M.JSC$10804_context_,d)})};
_.xO=function(M){this.JSC$10807_taskManager_=M;this.callbacks_=[]};
_.xO.prototype.then=function(M,d,N){this.callbacks_.push(new Wzo(this.JSC$10807_taskManager_,M,d,N));return this};
_.xO.prototype.onSuccess=function(M){this.callbacks_.forEach(function(d){wsC(d,M)})};
_.xO.prototype.onFailure=function(M){this.callbacks_.forEach(function(d){ps3(d,M)})};
_.xO.prototype.cancel=function(){this.callbacks_.length=0};
gtz(_.xO);_.qbN=null;_.gT=new _.x5("ACTIVITY_TOKEN");var sdL=/^[a-zA-Z0-9_\-]{11}$/;var Pnv=_.pe(function(){var M,d;return(d=(M=window).matchMedia)==null?void 0:d.call(M,"(prefers-reduced-motion: reduce)").matches});var m0d=_.pe(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var M=_.cy("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");M||(M=_.Vf("VIDEO"),_.fE("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
M));return!!(M&&M.canPlayType&&M.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var hCL;_.YO=new _.x5("SHORTS_CONTROLLER_TOKEN");hCL=new _.x5("SHORTS_STATE_STORE_TOKEN");var ZY=function(M,d){var N=_.wH.apply(2,arguments);M=M===void 0?0:M;_.WJ.call(this,d,N);this.errorType=M;Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(ZY,_.WJ);var QZL,qto,Ioo,v1t,jZz,rFZ,i5,EXi,r13,o1z,zCV,J1V,y1L;QZL=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(M){return M+"="}).join("|"));
qto=RegExp(".*\\?.*ybp=1.*");Ioo=["FEcommerce_cart","SPcommerce_checkout"];v1t=RegExp(".*\\?.*playnext=1.*");_.E9=function(M,d,N,R){this.watchEndpointMap=M;this.reelWatchEndpointMap=d;this.innerTubeTransportService=N;this.fetchPbj=R;this.forceWebFEForAdsTesting=!1};
jZz=function(M,d,N){var R=_.h().resolve(_.CF(Odm));_.E9.instance=new _.E9(M,d,N,R)};
_.sZL=function(M,d){var N=_.ZR("web_pbj_log_warning_rate",0);N=N>0&&Math.random()<N;var R;if((R=_.q(d.commandMetadata,_.an))==null||!R.rootVe)return N&&_.vh(Error("Pf")),!1;var X;R=(X=_.q(d.commandMetadata,_.an))==null?void 0:X.url;if(!R)return N&&_.vh(Error("Qf")),!1;if(v1t.test(R))return!0;if(QZL.test(R))return N&&_.vh(Error("Rf`"+R)),!1;var A;X=(A=_.q(d,_.F8))==null?void 0:A.browseId;if(qto.test(R)&&(!X||!Ioo.includes(X)))return N&&_.vh(Error("Sf`"+R)),!1;if(_.q(d,_.nL)){if(M.forceWebFEForAdsTesting)return N&&
_.vh(Error("Tf")),!1;if(!(M.watchEndpointMap.watchNext&&M.watchEndpointMap.player||_.Q("kevlar_fetch_initial_data_op_watch_client")))return N&&_.vh(Error("Lf")),!1;M=_.ZR("web_pbj_log_warning_rate",0);M=M>0&&Math.random()<M;_.q(d,_.nL)?OV2(d)?d=!0:(M&&_.vh(Error("Mf")),d=!1):(M&&_.vh(Error("Lf")),d=!1);return d}if(_.q(d,_.$B))return jd2(d);if(_.q(d,_.ou))return!0;d=_.oq(M.innerTubeTransportService,d);!d&&N&&_.vh(Error("Uf"));return d};
rFZ=function(M,d,N,R,X,A){d={url:d};if(N==null?0:N.itct)d.parentTrackingParams=N.itct;var l=_.fh(Rmz);return _.Pn(M.innerTubeTransportService,d,l).then(function(k){(k=k.endpoint)||(k=_.Bn);(N==null?0:N.itct)&&k&&!k.trackingParams&&(k.trackingParams=N.itct);var T=Vp(k);return i5(M,k,N,R,T,X,A)})};
i5=function(M,d,N,R,X,A,l,k){k=k===void 0?{}:k;if(M.fetchPbj&&!_.sZL(M,d)){k=M.fetchPbj(d);var T=_.RD(k.then(function(U){if(!U)throw Error("Vf");l(T)||A(d,U);return U}));
return T}var W,w,p={rootVe:(W=_.q(d.commandMetadata,_.an))==null?void 0:W.rootVe,url:(w=_.q(d.commandMetadata,_.an))==null?void 0:w.url,endpoint:d,page:X};if(_.q(d,_.nL)){var m,I={contentPlaybackContext:_.BN(N,(m=_.q(d.commandMetadata,_.an))==null?void 0:m.url,R)},O=_.KO();_.Q("web_streaming_watch")&&window.TextDecoderStream?(k=PDe(M.innerTubeTransportService,d,I,function(U){!p.response&&U.content&&(p.response=U.content);!p.playerResponse&&U.player&&(p.playerResponse=U.player);A(d,p)}),W=V8A(d),W.length&&
(p.preconnect=W,A(d,p)),o1z(k,O,p).catch(function(U){U instanceof ZY&&U.errorType===2&&r13(M,d,I,p,A,l,O)})):r13(M,d,I,p,A,l,O);
return O.promise}if(_.q(d,_.$B)){var y;if(((y=_.q(d,_.$B))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var c=_.KO();_.KzI(_.h().resolve(_.YO),d).then(function(U){y1L(M,N,R,X,A,c,U)});
return c.promise}k=_.RD();var e;W={contentPlaybackContext:_.BN(N,(e=_.q(d.commandMetadata,_.an))==null?void 0:e.url,R)};(e=M.reelWatchEndpointMap.player)&&(e=e().JSC$11783_getRequest(d,W))&&(k=_.Pn(M.innerTubeTransportService,e.innerTubeRequest,e.input,d.clickTrackingParams,e.config));e=_.RD();(w=M.reelWatchEndpointMap.reelItemWatch)&&(w=w().JSC$11783_getRequest(d))&&(e=_.Pn(M.innerTubeTransportService,w.innerTubeRequest,w.input,d.clickTrackingParams,w.config));w=_.RD();(m=M.reelWatchEndpointMap.reelWatchSequence)&&
_.q(d,_.$B).sequenceParams&&(W=m().JSC$11783_getRequest(d,W))&&(w=_.Pn(M.innerTubeTransportService,W.innerTubeRequest,W.input,d.clickTrackingParams,W.config));W=_.RD(p);m=_.KO();J1V(d,W,k,e,w,A,l,m);return m.promise}var t;if(_.q(d,QdA)&&((t=_.q(d.commandMetadata,_.an))==null?0:t.url))return k=JN2(_.Kk(QZ().location.href),_.Kk(_.q(d.commandMetadata,_.an).url)).toString(),rFZ(M,k,N,R,A,function(){return!1});
if(_.q(d,_.ou))return A(d,p),_.RD(p);if(_.oq(M.innerTubeTransportService,d)){k=Object.assign({},{tempData:N,disableCache:N.disableCache},k);var C=_.rT(M.innerTubeTransportService,d,k).then(function(U){p.response=U;l(C)||A(d,p);return p});
return C}return _.RD(p)};
_.Std=function(M,d,N,R){if(_.q(d,_.nL)||_.q(d,_.$B)&&(_.Q("mweb_enable_shorts_innertube_player_prefetch")||_.Q("kevlar_enable_shorts_prefetch_in_sequence"))||_.q(d,X0g)&&_.Q("web_enable_prefetching_videos_on_home")){var X,A={contentPlaybackContext:_.BN(N,(X=_.q(d.commandMetadata,_.an))==null?void 0:X.url,R),prefetchPlaybackContext:rsS(N)},l,k,T;if(((l=_.q(d,_.nL))==null?void 0:(k=l.watchEndpointSupportedPrefetchConfig)==null?void 0:(T=k.prefetchHintConfig)==null?void 0:T.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(N=
M.watchEndpointMap.watchNext)if(A=N().JSC$11783_getRequest(d,A))return Promise.resolve(_.Pn(M.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(p){return p}))}else if(_.q(d,_.$B)&&_.Q("web_prefetch_riw_for_next_video")){if(N=M.reelWatchEndpointMap.reelItemWatch)if((N=N().JSC$11783_getRequest(d,A))&&_.Pn(M.innerTubeTransportService,N.innerTubeRequest,N.input,void 0,N.config).then(function(p){return p}),N=M.reelWatchEndpointMap.player)if(A=N().JSC$11783_getRequest(d,
A))return Promise.resolve(_.Pn(M.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(p){return p}))}else if(N=M.watchEndpointMap.player)if(A=N().JSC$11783_getRequest(d,A))return Promise.resolve(_.Pn(M.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(p){return p}))}else if(_.oq(M.innerTubeTransportService,d)){var W={tempData:N},w=c1I(M.innerTubeTransportService,d);
return w?new Promise(function(p,m){var I,O;return _.B(function(y){if(y.nextAddress==1)return _.D(y,w,2);if(y.nextAddress!=4)return I=y.yieldResult,I.JSC$11790_getStoreKey(d,W)?_.D(y,_.rT(M.innerTubeTransportService,d,W),4):(m(new _.WJ("Prefetching request builder with no store key.",d)),y.jumpTo(0));O=y.yieldResult;p(O);_.Vy(y)})}):Promise.reject(new _.WJ("Prefetching unregistered request builder.",d))}return Promise.reject(new _.WJ("No request builder available to prefetch endpoint.",d))};
EXi=function(M,d){var N,R,X;if(_.q(d,_.nL)){var A=M.watchEndpointMap.watchNext;A&&(N=A());(M=M.watchEndpointMap.player)&&(R=M())}else if(_.q(d,_.$B))(A=M.reelWatchEndpointMap.reelItemWatch)&&(N=A()),(A=M.reelWatchEndpointMap.player)&&(R=A()),(M=M.reelWatchEndpointMap.reelWatchSequence)&&(X=M());else{a:{M=spr(d,M.innerTubeTransportService.endpointMap);if(M!==void 0)if(typeof M.then==="function")_.qZ(new _.WJ("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",d));else break a;
M=void 0}M&&(N=M)}var l,k,T;return{content:(l=N)==null?void 0:l.JSC$11790_getStoreKey(d),player:(k=R)==null?void 0:k.JSC$11790_getStoreKey(d),reelSequence:(T=X)==null?void 0:T.JSC$11790_getStoreKey(d)}};
r13=function(M,d,N,R,X,A,l){var k=_.RD(),T=M.watchEndpointMap.player;T&&(T=T().JSC$11783_getRequest(d,N))&&(k=_.Pn(M.innerTubeTransportService,T.innerTubeRequest,T.input,d.clickTrackingParams,T.config));T=_.RD();var W=M.watchEndpointMap.watchNext;W&&(N=W().JSC$11783_getRequest(d,N))&&(T=_.Pn(M.innerTubeTransportService,N.innerTubeRequest,N.input,d.clickTrackingParams,N.config));M=_.RD(R);zCV(d,M,k,T,X,A,l)};
o1z=function(M,d,N){return _.B(function(R){if(R.nextAddress==1)return _.D(R,M,2);d.resolve(N);_.Vy(R)})};
zCV=function(M,d,N,R,X,A,l){var k,T,W,w,p;_.B(function(m){switch(m.nextAddress){case 1:return _.D(m,d,2);case 2:k=m.yieldResult;if(A(l.promise))return l.resolve(k),m.return();X(M,k);T=V8A(M);if(!T.length){m.jumpTo(3);break}return _.D(m,d,4);case 4:k.preconnect=T,X(M,k);case 3:return _.Mv(m,5),_.D(m,N,7);case 7:W=m.yieldResult;_.cJ(m,6);break;case 5:return w=_.Fg(m),l.reject(w),m.return();case 6:if(W===void 0)return k.reload=!0,X(M,k),l.resolve(k),m.return();if(A(l.promise))return l.resolve(k),m.return();
k.playerResponse=W;X(M,k);_.Mv(m,8);return _.D(m,R,10);case 10:p=m.yieldResult;_.cJ(m,9);break;case 8:_.Fg(m);case 9:if(p===void 0)return k.response={responseContext:{}},l.resolve(k),m.return();if(A(l.promise))return l.resolve(k),m.return();k.response=p;X(M,k);l.resolve(k);_.Vy(m)}})};
J1V=function(M,d,N,R,X,A,l,k){var T,W,w,p,m,I;_.B(function(O){switch(O.nextAddress){case 1:return _.D(O,d,2);case 2:T=O.yieldResult;if(l(k.promise))return k.resolve(T),O.return();A(M,T);W=V8A(M);if(!W.length){O.jumpTo(3);break}return _.D(O,d,4);case 4:T.preconnect=W,A(M,T);case 3:return _.Mv(O,5),_.D(O,N,7);case 7:w=O.yieldResult;_.cJ(O,6);break;case 5:return p=_.Fg(O),k.reject(p),O.return();case 6:if(w===void 0)return T.reload=!0,A(M,T),k.resolve(T),O.return();if(l(k.promise))return k.resolve(T),
O.return();T.playerResponse=w;A(M,T);_.Mv(O,8);return _.D(O,R,10);case 10:m=O.yieldResult;_.cJ(O,9);break;case 8:_.Fg(O);case 9:if(m===void 0)return T.response={responseContext:{}},k.resolve(T),O.return();if(l(k.promise))return k.resolve(T),O.return();T.response=m;A(M,T);_.Mv(O,11);return _.D(O,X,13);case 13:I=O.yieldResult;_.cJ(O,12);break;case 11:_.Fg(O);case 12:if(l(k.promise))return k.resolve(T),O.return();T.reelWatchSequenceResponse=I;A(M,T);k.resolve(T);_.Vy(O)}})};
y1L=function(M,d,N,R,X,A,l){var k,T,W,w,p,m;_.B(function(I){if((k=l)==null||!k.replacementEndpoint)return A.reject(),I.return();T=l.replacementEndpoint;(W=_.q(T,_.$B))?(l.sequenceContinuation&&(W.sequenceParams=l.sequenceContinuation),w=_.h().resolve(_.YO),p=W.sequenceParams,bdz(w,T)&&delete W.sequenceParams,m=i5(M,T,d,N,R,X,function(){return!1}),m.then(function(O){return _.B(function(y){if(y.nextAddress==1)return eCJ(w,{reelWatchEndpoint:{sequenceParams:p}},O),_.D(y,0,2);
A.resolve(O);_.Vy(y)})})):A.reject();
_.Vy(I)})};_.HdL=function(M){if(M.validatedFragments_.length==0)return null;if(!M.mergedPrefetchedData_){for(var d=[],N=_.V(M.validatedFragments_),R=N.next();!R.done;R=N.next()){R=_.V(M.fragmentConfiguration_[R.value].graftedKeys);for(var X=R.next();!X.done;X=R.next())(X=M.prefetchedData_[X.value].trackingParams)&&d.push(X)}M.mergedPrefetchedData_={};Object.assign(M.mergedPrefetchedData_,M.prefetchedData_,{clientSideGrafts:d})}return M.mergedPrefetchedData_};var n1V;_.Ml=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
n1V=function(M,d,N){if(_.Idi(d))return M.prefetchCache_.get(_.vyZ(d,N))};_.db=new _.x5("NAVIGATION_TOKEN");var idg=function(M){var d=this;var N=N===void 0?Jsq():N;var R=R===void 0?_.h().resolve(_.db):R;this.onePickCommand=M;this.JSC$10908_playlistNetworkManager=N;this.navigationManager=R;this.videoPickerBuilder=_.KqZ("yt-addtoplaylist");_.JAV(OAz(jQo(vWm(this.videoPickerBuilder.setTitle(M.modalTitle).setSize(1E3).addView(oVd()).addView(Psd())).addView("youtube"),M.selectButtonLabel)),function(X){d.handleAction(X)})};
idg.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
idg.prototype.handleAction=function(M){var d=this;if(M&&this.onePickCommand.listId&&M.action==="picked"&&M.docs){var N=[];M.docs.forEach(function(R){N.push({addedVideoId:R.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10908_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,N).then(function(){_.Q("playlist_add_video_hard_reload_killswitch")?d.navigationManager.reload():foC(d.navigationManager)})}};var Lze=function(){if(this.constructor===Lze)throw new TypeError("Wf");};
_.F=Lze.prototype;_.F.dispose=function(){};
_.F.disconnect=function(){};
_.F.reconnect=function(){};
_.F.observe=function(M,d,N){return{element:M,option:N}};
_.F.unobserveByKey=function(){};var csZ=function(M,d){d=d===void 0?0:d;Lze.call(this);this.viewroot=M;this.defaultPrescanHeight=d;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),M?{root:M,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.v(csZ,Lze);_.F=csZ.prototype;_.F.dispose=function(){this.disconnect();this.handlers.clear()};
_.F.disconnect=function(M){this.isConnected=!1;this.pauseObservingUntilReconnect=M===void 0?!1:M;this.observer.disconnect();M=_.V(this.prescanObservers.values());for(var d=M.next();!d.done;d=M.next())d.value.disconnect()};
_.F.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var M=_.V(this.handlers),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;var R=N.next().value;N=!1;R=_.V(R.keys());for(var X=R.next();!X.done;X=R.next())if((X=X.value)&&X.state==="prescan"){N=!0;break}N&&t1J(this,d).observe(d);this.observer.observe(d)}}};
_.F.handleObserveEvent=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=this.handlers.get(d.target);if(N){var R=d.isIntersecting;N=_.V(N);for(var X=N.next();!X.done;X=N.next()){var A=_.V(X.value);X=A.next().value;A=A.next().value;X&&(X.state==="visible"&&R||X.state==="hidden"&&!R)&&(A(d.target,X.state),X.calledOnce&&this.unobserveByKey({element:d.target,option:X}))}}}};
_.F.handlePrescanEvent=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=this.handlers.get(d.target);if(N&&d.isIntersecting){N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;R&&R.state==="prescan"&&(X(d.target,R.state),R.calledOnce&&this.unobserveByKey({element:d.target,option:R}))}}}};
_.F.observe=function(M,d,N){var R=(R=this.handlers.get(M))&&R.has(N)?{element:M,option:N}:void 0;if(R)return R;R={element:M,option:N};this.handlers.has(M)||this.handlers.set(M,new Map);var X=this.handlers.get(M);X&&!X.has(N)&&X.set(N,d);this.pauseObservingUntilReconnect||(N.state==="prescan"&&t1J(this,M).observe(M),this.observer.observe(M));return R};
_.F.unobserveByKey=function(M){var d=this.handlers.get(M.element);if(d&&d.has(M.option)){d.delete(M.option);if(M&&M.option.state==="prescan")for(var N=_.V(this.prescanObservers.values()),R=N.next();!R.done;R=N.next())R.value.unobserve(M.element);d.size===0&&(this.handlers.delete(M.element),this.observer.unobserve(M.element))}};
var t1J=function(M,d){var N=M.defaultPrescanHeight;d.hasAttribute("prescan-height")&&(d=Number(d.getAttribute("prescan-height")),isNaN(d)||(N=d));if(M.prescanObservers.has(N))return M.prescanObservers.get(N);d="-0.1px -0.1px "+N+"px -0.1px";d=new IntersectionObserver(M.handlePrescanEvent.bind(M),M.viewroot?{root:M.viewroot,rootMargin:d}:{rootMargin:d});M.prescanObservers.set(N,d);return d};var Gjm=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],aoJ=function(){var M,d=this;this.JSC$10925_actionRouter=M=M===void 0?_.ch.getInstance():M;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return d.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return d.visibilityObservedElementHandlerKeys}}},U0V,CD3,Zd3;
aoJ.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.Q("kevlar_use_vimio_behavior")&&_.rK("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Sbv())};
aoJ.prototype.dispose=function(){this.visibilityMonitor&&_.p2(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
aoJ.prototype.handleVisibilityRefreshed=function(){for(var M=_.V(this.targetMap.entries()),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;_.u4o(this,d,N)}};
_.Yt3=function(M,d,N){CD3(M,N);var R=_.x0I(M,d);R.element=N;M.targetedElements.set(N,d);_.u4o(M,d,R)};
CD3=function(M,d){var N=M.targetedElements.get(d);if(N){var R=M.targetMap.get(N);R&&(delete R.element,M.targetMap.set(N,R));M.targetedElements.delete(d);M.visibilityObserver&&M.visibilityObservedElementHandlerKeys&&(N=M.visibilityObservedElementHandlerKeys.get(d))&&(M.visibilityObserver.unobserveByKey(N),M.visibilityObservedElementHandlerKeys.delete(d))}};
_.u4o=function(M,d,N){var R=N.action,X=N.element;X&&R&&(Gjm.includes(d)||_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||M.visibilityMonitor&&M.visibilityMonitor.isNodeVisible(X)?Zd3(M,d,N):M.visibilityObserver&&(M.visibilityObservedElementHandlerKeys||(M.visibilityObservedElementHandlerKeys=new WeakMap),R=M.visibilityObserver.observe(X,function(){Zd3(M,d,N);M.visibilityObservedElementHandlerKeys.delete(X)},{calledOnce:!0,
state:"visible"}),M.visibilityObservedElementHandlerKeys.set(X,R)))};
Zd3=function(M,d,N){var R=N.action;(N=N.element)&&R&&(_.Kx(M.JSC$10925_actionRouter,[R],N),M.targetMap.delete(d),M.targetedElements.delete(N),M.triggeredTargets.add(d))};
_.x0I=function(M,d){var N=M.targetMap.get(d);N||(N={},M.targetMap.set(d,N));return N};
_.Nl=function(){U0V||(U0V=new aoJ);return U0V};var E1z=document.createElement("div");E1z.style.touchAction="pan-down";var zAi=E1z.style.touchAction==="pan-down";var MjV,ddt;MjV=function(){this.hammerFn=huV();this.JSC$10933_screenManager=_.Nx();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Tx(83615);_.RL(this.JSC$10933_screenManager,this.ve);bVp()};
_.Rh=function(){ddt||(ddt=new MjV);return ddt};
MjV.prototype.registerTouchEvents=function(M,d,N){var R=_.wH.apply(3,arguments),X=this.hammerFn(M,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});N&&X.set({touchAction:N});this.nodeManagerMapping.set(M,X);var A=
eAj(d);R=_.V(R);for(var l=R.next();!l.done;l=R.next()){l=l.value;if(l.includes("swipe")||l.includes("pinch")||l.includes("pan"))l.includes("swipe")?X.get("swipe").set({enable:!0,direction:A,velocity:.2}):l.includes("pinch")?X.get("pinch").set({enable:!0}):l.includes("pan")&&(X.get("pan").set({enable:!0,direction:A}),X.get("swipe").set({enable:!0,direction:A,velocity:.2}),X.get("swipe").recognizeWith("pan"));NrL(this,M,X,l)}};
var NrL=function(M,d,N,R){N.on(R,function(X){if(R.includes("pinch"))M.lastPinchTime=Date.now();else if(R.includes("swipe")&&Date.now()-M.lastPinchTime<400)return;X.pointerType!=="mouse"&&(X=R==="doubletap"?{coordinates:X.center}:R.includes("pan")?X:R.includes("swipe")?{target:X.target}:{},d.dispatchEvent(new CustomEvent(R,{bubbles:!0,composed:!0,detail:X})))})};
MjV.prototype.unregisterTouchEvents=function(M){var d=_.wH.apply(1,arguments),N=this.nodeManagerMapping.get(M);if(N){d=_.V(d);for(var R=d.next();!R.done;R=d.next())N.off(R.value);this.nodeManagerMapping.delete(M);M.style.touchAction="unset"}};var RzV=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var HV2=null;var FPV;_.X5=function(M,d,N){var R=N&&N>0?N:0;N=R?Date.now()+R*1E3:0;if((R=R?(0,_.XSL)():FPV())&&window.JSON){typeof d!=="string"&&(d=JSON.stringify(d,void 0));try{R.set(M,d,N)}catch(X){R.remove(M)}}};
_.F5=function(M){var d=FPV(),N=(0,_.XSL)();if(!d&&!N||!window.JSON)return null;try{var R=d.get(M)}catch(X){}if(typeof R!=="string")try{R=N.get(M)}catch(X){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(X){}return R};
_.AK=function(M){try{var d=FPV(),N=(0,_.XSL)();d&&d.remove(M);N&&N.remove(M)}catch(R){}};
_.XSL=_.pe(function(){try{var M=new plp;var d=M.isAvailable()?M:null}catch(N){return null}return d?new _.uM(d):null});
FPV=_.pe(function(){var M=new mwZ;return M.isAvailable()?new _.uM(M):null});var Aeg=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Rmq=function(){Aeg.instance||(Aeg.instance=new Aeg);
return Aeg.instance},Xk6=function(M){var d=M.networkEvents;
M.networkEvents=[];return _.Q("enable_network_monitoring")?d:[]};var Vjg;Vjg={};_.lQL=tm("yt-serviceworker-metadata",{objectStores:(Vjg.auth={addedAtVersion:1},Vjg["resource-manifest-assets"]={addedAtVersion:2},Vjg),shared:!0,upgrade:function(M,d){d(1)&&rc(M,"resource-manifest-assets");d(2)&&rc(M,"auth")},
version:2});var GcN=self.location.origin+"/";adv([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);adv([/purge_shell=1/]);var $dd=void 0;$dd=$dd===void 0?[]:$dd;for(var BrL=[],kZz=_.V(lSC),TrV=kZz.next();!TrV.done;TrV=kZz.next())BrL.push({key:TrV.value});for(var Ddt=_.V($dd),g7L=Ddt.next();!g7L.done;g7L=Ddt.next())BrL.push(g7L.value);var WPI,gf=_.Np==null?void 0:(WPI=_.Np.performance)==null?void 0:WPI.memory,Cnp=!1,F46={},ZVL={},WN={},wf=navigator;var VY=function(M){this.JSC$10977_expiringStorage=new pE(M)};
VY.prototype.set=function(M,d,N){N=N!==void 0?Date.now()+N:void 0;this.JSC$10977_expiringStorage.set(M,d,N)};
VY.prototype.get=function(M){return this.JSC$10977_expiringStorage.get(M)};
VY.prototype.remove=function(M){this.JSC$10977_expiringStorage.remove(M)};var D1Z=_.a1(["https://www.youtube.com/",""]),g0i=_.a1(["https://studio.youtube.com/",""]),hmA="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",wkZ=null,OfZ;var wSJ=_.a1(["https://www.youtube.com/iframe_api"]),lW=function(){this.playerResolver_=_.KO();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.wl;this.playbackDurationSeconds_=0},pSt=function(M){var d=function(){return window.YT&&typeof window.YT.ready==="function"};
if(d())return _.RD(window.YT);var N=_.KO(),R=_.Vf("SCRIPT");R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||(R.onload=_.wl,R.onreadystatechange=_.wl,R.onerror=_.wl,d()?N.resolve(window.YT):N.reject(new _.WJ("Failed to load the iframe player library","script.onload",R.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
R.onerror=function(X){R.onload=_.wl;R.onreadystatechange=_.wl;R.onerror=_.wl;N.reject(new _.WJ("Failed to load the iframe player library","script.onerror",X&&X.target&&X.target.src))};
_.Sd(R,_.u6(wSJ));M.insertBefore(R,M.firstChild);return N.promise},mdV=function(M,d,N){var R,X;
_.B(function(A){switch(A.nextAddress){case 1:return M.playbackEndedCallback_=N,_.Mv(A,2),_.D(A,pSt(d.parentElement||null),4);case 4:R=A.yieldResult;_.cJ(A,3);break;case 2:return X=_.Fg(A),X instanceof _.WJ&&X.args&&X.args[0]=="script.onerror"?_.vh(X):_.qZ(X),A.return();case 3:R.ready(function(){return new R.Player(d,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:M.onPlayerReady_.bind(M),onStateChange:M.onPlayerStateChange_.bind(M),
onCueRangeExit:M.onCueRangeExit_.bind(M)}})}),_.Vy(A)}})};
_.F=lW.prototype;_.F.getPlayerPromise=function(){return this.playerPromise_};
_.F.onPlayerReady_=function(M){this.playerResolver_.resolve(M.target)};
_.F.onPlayerStateChange_=function(M){if(M.data==YT.PlayerState.PLAYING){M=M.target;var d=M.getCurrentTime();M.addCueRange("playback",d,d+this.playbackDurationSeconds_)}};
_.F.onCueRangeExit_=function(M){M.data=="playback"&&(M.target.stopVideo(),this.playbackEndedCallback_())};
_.F.stopVideo=function(){this.playerPromise_.then(function(M){M.stopVideo()})};
var hzz=function(M){M.playerVars_&&M.playerPromise_.then(function(d){typeof d.cueVideoByPlayerVars!="function"?_.vh(new _.WJ("vmh: player API not ready","cueVideoByPlayerVars",typeof d.cueVideoByPlayerVars)):d.cueVideoByPlayerVars(M.playerVars_)})};
lW.prototype.playVideo=function(){var M=this;this.playerVars_&&this.playerPromise_.then(function(d){typeof d.loadVideoByPlayerVars!="function"?(d=new _.WJ("vmh: player API not ready","loadVideoByPlayerVars",typeof d.loadVideoByPlayerVars),_.qZ(d)):d.loadVideoByPlayerVars(M.playerVars_)})};
var QlV=function(M,d,N,R,X){d&&(N===void 0&&(N=0),R===void 0&&(R=0),M.playbackDurationSeconds_=R/1E3,M.playerVars_={adformat:"17_8",videoId:d,suggestedQuality:"hd720",startSeconds:N/1E3,player_params:X})};
lW.prototype.mute=function(){this.playerPromise_.then(function(M){M.mute()})};
lW.prototype.unMute=function(){this.playerPromise_.then(function(M){M.unMute()})};var yNr=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var $H;$H=function(){this.tokenJars={};if(this.cookiesEnabled=_.Ts()){var M=_.BJ.get("CONSISTENCY",void 0);M&&qC3(this,{encryptedTokenJarContents:M})}};
_.cN6=function(){$H.instance||($H.instance=new $H);return $H.instance};
$H.prototype.handleResponse=function(M,d){if(!d)throw Error("ag");var N,R;d=((N=d.innerTubeRequest.context)==null?void 0:(R=N.request)==null?void 0:R.consistencyTokenJars)||[];var X;(M=(X=M.responseContext)==null?void 0:X.consistencyTokenJar)&&this.replace(d,M)};
$H.prototype.replace=function(M,d){M=_.V(M);for(var N=M.next();!N.done;N=M.next())delete this.tokenJars[N.value.encryptedTokenJarContents];qC3(this,d)};
var qC3=function(M,d){if(d.encryptedTokenJarContents&&(M.tokenJars[d.encryptedTokenJarContents]=d,typeof d.expirationSeconds==="string")){var N=Number(d.expirationSeconds);setTimeout(function(){delete M.tokenJars[d.encryptedTokenJarContents]},N*1E3);
M.cookiesEnabled&&_.kY("CONSISTENCY",d.encryptedTokenJarContents,N,void 0,!0)}};var IQm,BA;IQm=window.location.hostname.split(".").slice(-2).join(".");_.PN=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var M=_.rK("LOCATION_PLAYABILITY_TOKEN");_.rK("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=v7J(this))&&(M=this.localStorage.get("yt-location-playability-token"));M&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0)};
_.PN.getInstance=function(){BA=_.cy("yt.clientLocationService.instance");BA||(BA=new _.PN,_.fE("yt.clientLocationService.instance",BA));return BA};
_.PN.prototype.setLocationOnInnerTubeContext=function(M){M.client||(M.client={});if(this.mostRecentPosition)M.client.locationInfo||(M.client.locationInfo={}),M.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),M.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),M.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),M.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)M.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.PN.prototype.handleResponse=function(M){var d;M=(d=M.responseContext)==null?void 0:d.locationPlayabilityToken;M!==void 0&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0,_.rK("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=v7J(this))&&this.localStorage.set("yt-location-playability-token",M,15552E3):_.kY("YT_CL",JSON.stringify({loctok:M}),15552E3,IQm,!0))};
var v7J=function(M){return M.localStorage===void 0?new _.Pf("yt-client-location"):M.localStorage};
_.PN.prototype.clearLocationPlayabilityToken=function(M){M==="TVHTML5"?(this.localStorage=v7J(this))&&this.localStorage.remove("yt-location-playability-token"):_.BBZ("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.PN.prototype.getCurrentPositionFromGeolocation=function(){var M=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var d=!1,N=1E4;_.rK("INNERTUBE_CLIENT_NAME")==="MWEB"&&(d=!0,N=15E3);return new Promise(function(R,X){navigator.geolocation.getCurrentPosition(function(A){M.mostRecentPosition=A;R(A)},function(A){X(A)},{enableHighAccuracy:d,
maximumAge:0,timeout:N})})};
_.PN.prototype.createUnpluggedLocationInfo=function(M){var d={};M=M.coords;if(M==null?0:M.latitude)d.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)d.longitudeE7=Math.floor(M.longitude*1E7);if(M==null?0:M.accuracy)d.locationRadiusMeters=Math.round(M.accuracy);return d};
_.PN.prototype.createLocationInfo=function(M){var d={};M=M.coords;if(M==null?0:M.latitude)d.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)d.longitudeE7=Math.floor(M.longitude*1E7);return d};var OzC=function(M,d){var N=on();M||(M="unknown");d||(d="unknown");M="MAIN_APP_WEB_PAGE_TYPE_"+M.toUpperCase();M in X3t||(M="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");d="MAIN_APP_WEB_REQUEST_TYPE_"+d.toUpperCase();d in FEV||(d="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.D7(N,{mainAppWeb:{pageType:M,requestType:d,isShellLoad:_.KF("IS_SHELL_LOAD",!1)}})},jlg={start:function(){_.D7(fji(),{mainAppWeb:_.oj()})},
success:function(){_.gz(fji(),"SUCCESS")},
failure:function(){_.gz(fji(),"FAILURE")},
cancelled:function(){_.gz(fji(),"CANCELLED")}};var sld,PRo,Hf2;sld=_.a1(["/sw.js"]);PRo=_.a1(["/sw.js?0"]);_.o7L=_.u6(sld);Hf2=_.u6(PRo);var ret=function(){var M=Error.apply(this,arguments);this.message=M.message;"stack"in M&&(this.stack=M.stack)};
_.v(ret,Error);_.yp.prototype.load=function(M){this.megabloxUrl_=_.rK("YPC_MB_URL");_.rB(this.megabloxUrl_,(0,_.gx)(function(){M&&M()},this))};
_.x7Z=function(M,d,N,R,X,A,l,k,T,W,w){_.ifN(T);M.load((0,_.gx)(function(){try{var p=A?A:_.rK("HL"),m=_.rK("SESSION_INDEX");_.st2("client",function(){hyC("59",{helpCenterPath:"/youtube",locale:p,window:window}).JSC$7859_loadChatSupport({authuser:String(m)})})}catch(I){throw rf(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),X&&X(I),_.qZ(I),I;
}KPV(this,d,N,R,X,A,l,k,T,W,w)},M))};
_.yp.prototype.openFixFlowDialog=function(M,d,N,R){this.load((0,_.gx)(function(){try{yeC(this,_.cy("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(M).withIntegratorCallback(d).load(N,R)}catch(X){throw _.qZ(X),X;}},this))};
var yeC=function(M,d,N,R){var X=d.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.Q("enable_window_constrained_buy_flow_dialog")&&(X=X.usingPopupStyle(_.cy("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));R&&(X=X.usingCloseCallback(R));d.bootstrap.fromPaymentsUrl(M.megabloxUrl_);M=d.bootstrap.asMashupMode(X);N=N?N:_.rK("HL");M.usingGaiaIndex(_.rK("SESSION_INDEX")).usingLocale(N).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.Q("enable_google_payments_buyflow_material2_style_web")?
M.usingStyle(":m2;pc=#444;ac=#065fd4"):M.usingStyle(":md;pc=#444;ac=#065fd4");return M},KPV=function(M,d,N,R,X,A,l,k,T,W,w){try{var p=_.cy("payments.business.integration");
if(!p)throw new ret("payments.business.integration is undefined");var m=p.standaloneContextAuthId.forUserId(),I=yeC(M,p,A,k);l&&I.usingServerAnalyticsEventHandler(l);var O=I.inStandaloneContext(m).buyFlow(function(y){if(y&&(!y.integratorData||y.integratorData===""||y.error))if(y.error!=null)if(String(y.error)==="-1")_.fhj(T);else{var c=String(y.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";rf(10,w,c,y.debugCode);
_.K3(c,T,y.debugCode);c=new _.WJ("PAYMENT_ERROR_MESSAGE::"+y.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+y.internalErrorDetails);_.qZ(c)}else rf(10,w,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.K3("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",T,"EMPTY_INTEGRATOR_DATA"),_.qZ(Error("dg"));N&&N(y)}).withEncryptedParameters(d);
W&&O.withClientParameters(fFp(_.d72(W)));O.load(function(){rf(24,w);_.jD("ttc",void 0,"commerce_transaction");WEp("commerce_transaction");R&&R()},function(y){if(y==null?0:y.debugCode)var c=y==null?void 0:y.debugCode;
else if(!y||(y==null?0:y.debugCode))c="EMPTY_LOAD_FAILURE_ERROR",_.qZ(Error(c));else{c="EMPTY_LOAD_FAILURE_DEBUG_CODE";var e=new _.WJ("LOAD_FAILURE:"+y.message," DEBUG_CODE:"+c);_.qZ(e)}rf(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",c);_.K3("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",T,c);_.qZ(y);X&&X(y)})}catch(y){throw y instanceof ret&&(rf(10,w,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),X&&X(y)),_.qZ(y),y;
}};var Jem;Jem=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.U7A=function(M,d){d=d===void 0?!1:d;M=Jem.test(M)?_.RO(M):null;!d&&window.payments||!M?(M=_.KO(),d=M.promise,M.resolve()):d=_.ot(M,{attributes:{"data-payments-main":"",id:"payment-lib"}});return d};var ceo;ceo=_.a1(["//www.googletagmanager.com/gtm.js?id=",""]);_.kH=function(M,d){_.fO(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:d}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.rK("GL")}),d=_.Vf("SCRIPT"),d.async=!0,_.Sd(d,_.u6(ceo,M)),d.id="gtm",M=document.getElementsByTagName("script"),M.length==0?document.head.appendChild(d):(M=M[0],M.parentNode.insertBefore(d,M)))};
_.Tn=function(M){if(M=JSON.parse(M))window.dataLayer=window.dataLayer||[],window.dataLayer.push(M)};var SCJ,zzC;SCJ=_.a1(["https://clients2.google.com/gr/gr_sync.js"]);_.Gzi=function(){};
_.Gzi.prototype.init=function(){if(zzC()){var M=_.KO();M.resolve();return M.promise}return _.ot(_.u6(SCJ)).then(function(){if(!zzC())throw Error("eg");},function(){throw Error("fg");
})};
_.aa2=function(){if(!zzC())return"";var M=window.google.gr;M.init({async:{schedule:"sync"},merchantId:"youtube"});M.start();M=M.finish();return M==null?"":M};
zzC=function(){return window.google!=null&&window.google.gr!=null};var ZWA,dMZ=new Set,E2r;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.n=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.n,PolymerFakeBaseClassWithoutHtml);_.MS=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.MS,PolymerFakeBaseClassWithoutHtml);var L4j=window.ShadyDOM;var v2N,qfA,jmi,sm2,o2q,rhZ,Dp,f3;v2N=_.Q("enable_shadydom_free_scoped_query_methods");qfA=_.Q("enable_shadydom_free_scoped_node_methods");jmi=_.Q("enable_shadydom_free_scoped_readonly_properties_batch_one");sm2=_.Q("enable_shadydom_free_parent_node");o2q=_.Q("enable_shadydom_free_children");rhZ=_.Q("enable_shadydom_free_last_child");Dp=window.ShadyDOM;_.aj=Dp&&Dp.noPatch&&Dp.wrap?Dp.wrap:Dp?function(M){return Dp.patch(M)}:function(M){return M};
f3=function(M){if(M instanceof ShadowRoot)this.host=(0,_.aj)(M.host),this.root=M;else if(M.$$){this.host=(0,_.aj)(M);var d;this.root=(d=M.root)!=null?d:this.host}else if(M.polymerController){this.host=(0,_.aj)(M);var N;this.root=(N=this.host.shadowRoot)!=null?N:this.host}else this.root=this.host=(0,_.aj)(M)};
Ilq();OWZ();KfZ();yhL();P12();var bzg={querySelector:function(M,d){d=G1A(d,zu(M));M=_.bx(M);return e2(M).prototype.querySelector.call(M,d)},
querySelectorAll:function(M,d){d=G1A(d,zu(M));M=_.bx(M);return e2(M).prototype.querySelectorAll.call(M,d)}},ezV={appendChild:function(M,d){var N=zu(M),R=_.S2(d);
return _.hTA(_.bx(M),N?_.n3(d,N,R):d)},
cloneNode:function(M,d){var N=_.S2(M);M=_.bx(M);d=e2(M).prototype.cloneNode.call(M,d);return N?ix(d,N):d},
contains:function(M,d){var N=zu(M),R=_.S2(d);return N!==R?!1:QmZ(M,d)},
insertBefore:function(M,d,N){var R=zu(M),X=_.S2(d);M=_.bx(M);d=R?_.n3(d,R,X):d;return e2(M).prototype.insertBefore.call(M,d,N)},
removeChild:function(M,d){var N=zu(M);M=_.bx(M);d=N?ix(d,N):d;return e2(M).prototype.removeChild.call(M,d)},
replaceChild:function(M,d,N){var R=zu(M),X=_.S2(d);d=R?_.n3(d,R,X):X?ix(d,X):d;N=R?ix(N,R):N;M=_.bx(M);return e2(M).prototype.replaceChild.call(M,d,N)},
getRootNode:function(M,d){d=d===void 0?{composed:!0}:d;var N;if(((N=d)!=null?N:{}).composed)M=N16(M);else{d=M;for(M=U1p(M);M;)d=M,M=C$S(M);M=d}return M}},chL=jmi?{firstChild:DfA,
nextSibling:B1i,previousSibling:T1j,firstElementChild:g2q,lastElementChild:wcN,nextElementSibling:$fL,previousElementSibling:k4i,childNodes:pcZ}:{};sm2&&(chL.parentNode=llZ);o2q&&(chL.children=mfA);rhZ&&(chL.lastChild=WfA);v2N&&JhZ(bzg);qfA&&JhZ(ezV);Sfq();var zTq=function(M){this.node=M instanceof ShadowRoot?M.host:M};
bWj();eTi();var flq=new WeakMap;var tYL=Symbol("wd");var C1j=new Set(["tap","track","down","up"]),xfA=_.Q("pbcm_fi_query_decorators");var gb=function(){return _.MS.apply(this,arguments)||this};
_.v(gb,_.MS);_.F=gb.prototype;_.F.getState=function(){return this.store.getState()};
_.F.dispatch=function(M){this.store.dispatch(M)};
_.F.beforeRegister=function(){if(this&&typeof this==="object"){var M;var d=!!this.useSignals||!((M=this.polymerController)==null||!M.useSignals)}else d=!1;if(!d&&this.properties)for(d=_.V(Object.keys(this.properties)),M=d.next();!M.done;M=d.next()){var N=M.value;M=this.properties[N];if(M.selector){if(M.computed)throw Error("lg");N=["reduxPropertiesRecomputeTrigger",'"'+N+'"'].concat(_.wu(M.selectorArgs||[])).join(",");M.computed="recomputeReduxSelector("+N+")"}}};
_.F.attached=function(){var M=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){M.reduxPropertiesRecomputeTrigger++}));
_.Q("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.F.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.F.recomputeReduxSelector=function(M,d){var N=_.wH.apply(2,arguments),R=this.properties[d].selector;if(!R)throw Error("jg`"+d);return R.apply(null,[this.store.getState()].concat(_.wu(N)))};
_.F.select=function(M){var d=_.wH.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return M.apply(null,[this.store.getState()].concat(_.wu(d)))};
_.Hm.Object.defineProperties(gb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
gb.prototype.recomputeReduxSelector=gb.prototype.recomputeReduxSelector;_.G([_.H(),_.a("design:type",Number)],gb.prototype,"reduxPropertiesRecomputeTrigger",void 0);gb=_.G([_.d4()],gb);var WA=[],XIj={},Wu=function(){return iM.apply(this,arguments)||this};
_.v(Wu,iM);Wu.prototype._addPropertyEffect=function(M,d,N){if(d==="__observeEffects"&&N){var R,X=(R=N.info.method)!=null?R:N.info.methodName;if(X){var A=this[X];this[X]=function(){WA.push(X);try{A==null||A.apply(this,arguments)}finally{WA.pop()}}}}_.ms._addPropertyEffect.apply(this,[M,
d,N])};
Wu.prototype._setPendingProperty=function(M,d,N){if(WA.length){var R=WA[WA.length-1],X;(X=XIj[this.is])!=null&&X.has(R)||(Fg6(this.is,R),_.hQ("polymerPropertyChangedInObserver",{componentName:this.is,observerName:R}))}return _.ms._setPendingProperty.apply(this,[M,d,N])};
Wu=_.G([o_i()],Wu);var AzA=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),lg6,XZ={};_.Q("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=XZ);var $Q=function(){return _.MS.apply(this,arguments)||this};
_.v($Q,_.MS);$Q.prototype._setUnmanagedPropertyToNode=function(M,d,N){M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!0);if(N!==M[d]||typeof N==="object")M[d]=N;M.is&&M.polymerController&&M.polymerController!==M&&VE(M.is,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!1)};
$Q=_.G([_.d4()],$Q);VqZ()&&(sX.prototype._setUnmanagedPropertyToNode=(new $Q)._setUnmanagedPropertyToNode);_.Igv={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(M){},set polymerController(M){}}]};var g4=function(){var M=iM.apply(this,arguments)||this;M.json=function(){};
return M};
_.v(g4,iM);g4.prototype.equals=function(M,d){return M===d};
g4.prototype.isEmpty=function(M){return!M||_.CZ(M)&&M.length===0};
g4=_.G([o_i()],g4);var HzC=function(M){M=Oep(M);SO.call(this,M)};
_.v(HzC,SO);HzC.prototype.addProvider=function(M){M=M.key?M:Oep([M])[0];var d=this.keyIdToIndex.get(M.key.id);if(d){if(DMZ(M,this.providers[d]))throw Error("mg`"+M.key.displayName);}else SO.prototype.addProvider.call(this,M)};
var n7t=new HzC([]);var izt=!1;var hUp={};izt||(mML(),izt=!0);
hUp.InjectBehavior={initializeInjection:function(){var M=this.provide;try{if((M=M!=null?M:[])&&M.length>0)for(var d=Oep(M),N=_.V(d),R=N.next();!R.done;R=N.next())n7t.addProvider(R.value);var X=new Set;gli(this.behaviors||[],X);d={};for(var A=_.V(X),l=A.next();!l.done;l=A.next()){var k=l.value;k.inject&&Object.assign(d,k.inject)}this.inject&&Object.assign(d,this.inject);for(var T=_.V(Object.keys(d)),W=T.next();!W.done;W=T.next()){var w=W.value,p=d[w];try{this[w]=n7t.resolve(p)}catch(m){throw m;}}}catch(m){throw Error(m.message);
}}};var qyq;var vlZ=/\bclass\b/.test(function(){}.toString()),sri=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var fQL=function(M){this.wasDefined=!0;Array.isArray(M)||M instanceof Array?(this.JSC$11136_getImpl=M[0],this.JSC$11136_setImpl=M[1]):this.JSC$11136_getImpl=M};
_.F=fQL.prototype;_.F.getWithPath=function(M){return rzS(this.JSC$11136_getImpl(),M)};
_.F.setWithPath=function(M,d){var N=this;if(M.length)throw Error("ng");if(!this.JSC$11136_setImpl)throw Error("og");VJ(function(){N.JSC$11136_setImpl(d)})};
_.F.notifyPath=function(){throw Error("pg");};
_.F.notifySplices=function(){throw Error("qg");};
_.F.getChangeRecordSignal=function(M,d){var N=this;if(M.length)throw Error("rg");return function(){var R=N.getWithPath(M);return{path:d!=null?d:"",base:R,value:R}}};
_.F.getSplicesSignal=function(){throw Error("sg");};
_.F.getPathMutationSignal=function(){throw Error("tg");};
_.F.pop=function(){throw Error("ug");};
_.F.push=function(){throw Error("vg");};
_.F.splice=function(){throw Error("wg");};
_.F.unshift=function(){throw Error("xg");};var wb=function(M){var d=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(M)||M instanceof Array?(this.JSC$11141_getImpl=M[0],this.JSC$11141_setImpl=M[1]):this.JSC$11141_getImpl=M;this.wasDefined=!1;MF(function(){d.wasDefined=d.JSC$11141_getImpl()!==void 0})};
wb.prototype.getWithPath=function(M){return rzS(this.JSC$11141_getImpl(),M)};
wb.prototype.setWithPath=function(M,d){var N=this;if(M[M.length-1]!=="*"&&M[M.length-1]!=="splices"){if(M.length===0){if(!this.JSC$11141_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=d!==void 0);VJ(function(){N.JSC$11141_setImpl(d)})}else{for(var R=MF(function(){return N.getWithPath([])}),X=0;X<M.length-1;X++){if(!R)return;
R=R[M[X]]}X=M[M.length-1];R&&(R[X]=d);this.wasDefined||(this.wasDefined=M.length>1||d!==void 0)}LPV(this,M,{pathComponents:M,value:d})}};
wb.prototype.notifyPath=function(M,d){M.length===0?d&&this.setWithPath(M,d.value):LPV(this,M,{pathComponents:M,value:d==null?void 0:d.value,fallbackWhenUndefined:d==null?void 0:d.value})};
var LPV=function(M,d,N,R){if(M.setMutationSignal){var X=++M.mutationIndex,A=[M.observedPath],l=M.observedPath,k;d.length===0&&(k=l);for(var T=0;T<d.length;T++){var W=l.subPaths[d[T]];if(!W)break;A.push(W);l=W;T===d.length-1&&(k=W)}for(d=!1;A.length;)l=A.shift(),l.data={index:X,mutation:N,spliceMutationIndex:R},d||(d=l===k),d&&A.push.apply(A,_.wu(Object.values(l.subPaths)));VJ(function(){M.setMutationSignal(X)})}};
wb.prototype.notifySplices=function(M,d){var N=this,R=MF(function(){return N.getWithPath(M)}),X=[].concat(_.wu(M),["splices"]);
LPV(this,X,{pathComponents:X,value:{indexSplices:d}});if(R==null?0:R.length)d=this.mutationIndex,X=[].concat(_.wu(M),["length"]),LPV(this,X,{pathComponents:X,value:R.length},d)};
var tjJ=function(M,d,N,R,X,A){M.notifySplices(N,[{index:R,addedCount:X,removed:A,object:d,type:"splice"}])},GZL=function(M,d){M=M.observedPath;
for(var N=0;N<d.length;N++){var R=d[N],X=M.subPaths[R];X||(X={pathComponents:d.slice(0,N+1),subPaths:{}},M.subPaths[R]=X);M=X}},UdI=function(M,d,N){GZL(M,d);
if(!M.getMutationSignal){var R=_.V(_.d0(M.mutationIndex,void 0,"HavCgf"));M.getMutationSignal=R.next().value;M.setMutationSignal=R.next().value}var X=M.getMutationSignal;return _.Al(function(){X();return N(aQt(M,d))},void 0,"BYaPo")};
wb.prototype.getChangeRecordSignal=function(M,d){var N=this,R=this.mutationIndex,X;return UdI(this,M,function(A){if(A&&A.index>R){var l=A.mutation;R=A.index;X=void 0}A=MF(function(){return N.getWithPath(M)});
if(l){var k=l.pathComponents[l.pathComponents.length-1],T=[].concat(_.wu(l.pathComponents));if(k==="splices"||k==="length")return{base:A,path:(d?[d].concat(_.wu(T)):T).join("."),value:l.value};var W=M.length>T.length?M:T,w;return{base:A!=null?A:l.fallbackWhenUndefined,path:(d?[d].concat(_.wu(W)):W).join("."),value:(w=MF(function(){return N.getWithPath(W)}))!=null?w:l.fallbackWhenUndefined}}X||(X={base:A,
path:(d?[d].concat(_.wu(M)):M).join("."),value:A});return X})};
wb.prototype.getSplicesSignal=function(M){var d=this.mutationIndex,N;return UdI(this,M,function(R){if(R&&R.index>d&&R.spliceMutationIndex!==d){var X=R.mutation;d=R.index;N=void 0}return X&&X.pathComponents[X.pathComponents.length-1]==="splices"?N=R=X.value:N})};
wb.prototype.getPathMutationSignal=function(M){var d=this;GZL(this,M);if(!this.getMutationSignal){var N=_.V(_.d0(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=N.next().value;this.setMutationSignal=N.next().value}var R=this.getMutationSignal,X=this.mutationIndex,A;return _.Al(function(){R();var l=aQt(d,M);if(l&&l.index>X&&l.mutation&&Kg2(l.mutation.pathComponents,M)){var k=l.mutation;X=l.index}if(!A||X!==A.index){var T,W;l=(W=MF(function(){return d.getWithPath(M)}))!=null?W:(T=k)==null?
void 0:T.fallbackWhenUndefined;
A={index:X,value:l}}return A},void 0,"Aumsyf")};
var aQt=function(M,d){M=M.observedPath;d=_.V(d);for(var N=d.next();!N.done;N=d.next())M=M.subPaths[N.value];return M.data};
wb.prototype.pop=function(M){var d=this,N=MF(function(){return d.getWithPath(M)});
if(!(N instanceof Array))throw Error("zg");var R=N.length>0,X=N.pop();R&&tjJ(this,N,M,N.length,0,[X]);return X};
wb.prototype.push=function(M){var d=_.wH.apply(1,arguments),N=this,R=MF(function(){return N.getWithPath(M)});
if(!(R instanceof Array))throw Error("Ag");var X=R.length,A=R.push.apply(R,_.wu(d));d.length&&tjJ(this,R,M,X,d.length,[]);return A};
wb.prototype.splice=function(M,d,N){var R=_.wH.apply(3,arguments),X=this,A=MF(function(){return X.getWithPath(M)});
if(!(A instanceof Array))throw Error("Bg");d<0?d=A.length-Math.floor(-d):d&&(d=Math.floor(d));var l=A.splice.apply(A,[d,N].concat(_.wu(R)));(R.length||l.length)&&tjJ(this,A,M,d,R.length,l);return l};
wb.prototype.unshift=function(M){var d=_.wH.apply(1,arguments),N=this,R=MF(function(){return N.getWithPath(M)});
if(!(R instanceof Array))throw Error("Cg");var X=R.unshift.apply(R,_.wu(d));d.length&&tjJ(this,R,M,0,d.length,[]);return X};var uEV=!0,CRC=!1,TrS=!1,xdL=!1,p$=!1,YCV=0;xdL=!1;YCV=0;uEV=!0;p$=CRC=TrS=!1;var mM=function(M,d,N){this.model=M;this.unknownSignalResolver=d;this.options=N;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];d=_.V(nlv());M=d.next().value;d=d.next().value;this.owner=M;this.disposeImpl=d};
mM.prototype.dispose=function(){if(!this.isDisposed){for(var M=_.V(this.childSignalProxies),d=M.next();!d.done;d=M.next())d.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Zze=function(M,d){M=nk(M.owner);try{d()}finally{nk(M)}};
mM.prototype.effect=function(M){Zze(this,function(){_.w0(M)})};
var E7I=function(M,d){M.options!=null||(M.options={});var N;(N=M.options).immutableProps!=null||(N.immutableProps=new Set);M.options.immutableProps.add(d)},kjZ=function(M,d){d=""+d;
M3L(M,d);var N;if((N=M.model.__signalCache)==null?0:N.has(d))N=M.model.__signalCache.get(d),Array.isArray(N)&&E7I(M,d);var R,X,A;return(A=(R=M.options)==null?void 0:(X=R.immutableProps)==null?void 0:X.has(d))!=null?A:!1},dWd=function(M,d){var N;
M.unknownSignalResolver&&(N=M.unknownSignalResolver(d));var R,X;((R=M.options)==null?0:(X=R.immutableProps)==null?0:X.has(d))?N!=null||(N=new fQL(_.d0(M.model[d],void 0,"q2oXO"))):N!=null||(N=new wb(_.d0(M.model[d],void 0,"fw0V7b")));var A=M.model.hostElement;Object.defineProperty(M.model,d,{get:function(){BVr(A,d);return N.getWithPath([])},
set:function(l){lu(A,d);M.setWithPath([d],l)},
configurable:!0});return N},M3L=function(M,d){var N,R,X;
((N=M.model.__signalCache)==null||!N.has(d))&&((R=M.options)==null?0:(X=R.externalSignalProps)==null?0:X.has(d))&&M.model[d]},hy=function(M,d){d=""+d;
var N=M.signalCache[d];if(N!==void 0)return N;N=!1;M3L(M,d);var R;if((R=M.model.__signalCache)==null?0:R.has(d))if(N=M.model.__signalCache.get(d),Array.isArray(N))N=!0,E7I(M,d);else return M.signalCache[d]=M.model.__signalCache.get(d).signal,M.signalCache[d];var X,A;R=(A=(X=M.options)==null?void 0:X.reactivityMode)!=null?A:0;var l,k;if(!((l=M.options)==null?0:(k=l.reactiveProps)==null?0:k.has(d))&&!N&&R===1)throw Error("Dg`"+d);X=N?Ntd(M,d):dWd(M,d);return M.signalCache[d]=X},Ntd=function(M,d){var N=
Object.getOwnPropertyDescriptor(M.model.constructor.prototype,d),R=function(){return M.model[d]};
return new fQL(N&&N.get&&!N.set?R:[R,function(X){M.model[d]=X}])};
mM.prototype.getWithPath=function(M){var d=_.V(M);M=d.next().value;d=z5(d);BVr(this.model.hostElement,""+M);return hy(this,M).getWithPath(d)};
mM.prototype.setWithPath=function(M,d){if(M.length){lu(this.model.hostElement,M.join("."));var N=_.V(M);M=N.next().value;N=z5(N);hy(this,M).setWithPath(N,d)}};
mM.prototype.getPathMutationSignal=function(M){var d=_.V(M);M=d.next().value;d=z5(d);return hy(this,M).getPathMutationSignal(d)};
mM.prototype.notifyPath=function(M,d){var N=_.V(M);M=N.next().value;N=z5(N);hy(this,M).notifyPath(N,d)};
var RFd=function(M,d){if(d.type==="literal")return function(){return{rootWasDefined:!0,value:d.value}};
var N=p6(d.path),R=_.V(N),X=R.next().value;R=z5(R);var A,l;if(d.type==="path"&&(N.length===1||((A=M.options)==null?0:(l=A.immutableProps)==null?0:l.has(X))))return function(){var p=M.getWithPath(N.slice(0,1)),m=rzS(p,N.slice(1));p=p!==void 0;p$&&(p=hy(M,N[0]).wasDefined);return{rootWasDefined:p,value:m}};
var k=hy(M,X);if(d.type==="path"){var T=k.getPathMutationSignal(R);return function(){var p=p$?k.wasDefined:qF(M.owner,function(){return k.getWithPath([])})!==void 0;
var m,I=(m=T())==null?void 0:m.value;return{rootWasDefined:p,value:I}}}if(d.type==="splices"){var W=k.getSplicesSignal(R);
return function(){var p=W();return{rootWasDefined:p$?k.wasDefined:p!==void 0,value:p}}}var w=k.getChangeRecordSignal(R,""+X);
return function(){var p=w();return{rootWasDefined:p$?k.wasDefined:p!==void 0,value:p}}},bNr=function(M,d,N){var R=N.map(function(k){return RFd(M,k)}),X=N.length===0,A=[],l=N.length!==1||N[0].type!=="path"?!1:!0;
M.effect(function(){for(var k=R.length,T=[],W=!!A.length,w=0;w<k;w++){var p=R[w](),m=p.rootWasDefined;p=p.value;X||(X=m);T[w]=p;l&&(T[w+k]=W?A[w]:T[w],A[w]=p)}X&&qF(M.owner,function(){return void d.apply(null,_.wu(T))})})},yz6=function(M,d,N,R,X){var A=hy(M,d);
X!==void 0&&A.setWithPath([],X);bNr(M,function(){var l=_.wH.apply(0,arguments);lu(M.model.hostElement,d,!0);A.setWithPath([],N.apply(null,_.wu(l)))},R)};
mM.prototype.arrayPush=function(M){var d=_.wH.apply(1,arguments),N=_.V(M),R=N.next().value;N=z5(N);R=hy(this,R);return R.push.apply(R,[N].concat(_.wu(d)))};
mM.prototype.arraySplice=function(M,d,N){var R=_.wH.apply(3,arguments),X=_.V(M),A=X.next().value;X=z5(X);A=hy(this,A);return A.splice.apply(A,[X,d,N].concat(_.wu(R)))};
mM.prototype.arrayUnshift=function(M){var d=_.wH.apply(1,arguments),N=_.V(M),R=N.next().value;N=z5(N);R=hy(this,R);return R.unshift.apply(R,[N].concat(_.wu(d)))};
mM.prototype.notifySplices=function(M,d){var N=_.V(M);M=N.next().value;N=z5(N);hy(this,M).notifySplices(N,d)};var agi=/([^\s]+?)\(([\s\S]*)\)/,LgS=/\.([^.]+)$/,urq=/\\,/g,iN2=/&comma;/g,fgj=/\\(.)/g,UMS=[],tqZ={"*":"wildcard",splices:"splices"};var Xsp=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"),M16=/[A-Z]/,XLt=["class","hidden","id","on-dom-change"],A1v=new Set([].concat(_.wu(XLt),
["if","notify-dom-change","restamp"])),V1r=new Set([].concat(_.wu(XLt),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),loq=new Set(["restamp"]);var AJL=new Set(["className","id"]);var D0Z=Symbol(),QZi=window;var o1q=window;var zCS=0,y1i=0,QE=[],StZ=0,KzN=!1,c1N=document.createTextNode("");(new window.MutationObserver(J1j)).observe(c1N,{characterData:!0});var IT=new Map,qS=0,F9J=function(M){this.mappedHandleId=M},eCr=function(M,d,N,R){this.mappedHandleId=M;
var X=this;this.mappedHandleId=M;this.callback=d;this.waitTime=N;this.schedulerPriority=R;this.handleId=_.IQ.addJob(function(){X.callback();IT.delete(X.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.v(eCr,F9J);eCr.prototype.cancel=function(){_.IQ.cancelJob(this.handleId);IT.delete(this.mappedHandleId)};
var Hd2=function(M,d){this.mappedHandleId=M;var N=this;this.mappedHandleId=M;this.callback=d;this.handleId=bdq(function(){N.callback();IT.delete(N.mappedHandleId)})};
_.v(Hd2,F9J);Hd2.prototype.cancel=function(){var M=this.handleId-y1i;M<0||QE.length<=M||(QE[M]=null);IT.delete(this.mappedHandleId)};var Lzp=function(){};
Lzp.prototype.cancel=function(){this.jobHandle!==void 0&&(n1j(this.jobHandle),this.jobHandle=void 0)};
Lzp.prototype.run=function(M,d,N){var R=this;this.cancel();this.callback=M;this.jobHandle=_.vu(function(){M();R.callback=void 0},d,N)};
Lzp.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var idZ=new WeakMap;var AJC=aU(function(M){for(var d=M,N=0;N<3;N++)d=Object.getPrototypeOf(d);delete d.prototype.connectedCallback;var R=function(){return M.apply(this,arguments)||this};
_.v(R,M);R.prototype._attachDom=function(X){if(!X)return null;var A=(0,_.aj)(this.hostElement);A.attachShadow({mode:"open",shadyUpgradeFragment:X});A.shadowRoot.appendChild(X);return A.shadowRoot};
R.prototype._takeAttributes=function(){for(var X=this.hostElement.attributes,A=0;A<X.length;A++){var l=X[A],k=void 0,T=void 0;(T=(k=this).__attributeReaction)==null||T.call(k,l.name,null,l.value)}};
R.prototype._readyClients=function(){M.prototype._readyClients.call(this);this.root=this};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);M.prototype.connectedCallback.call(this)};
_.Hm.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){return R.prototype._template}}});
return R}),V3z=aU(function(M){var d=function(){return M.apply(this,arguments)||this};
_.v(d,M);d.prototype.created=function(){if(this.__notifyEffects)for(var N=_.V(Object.values(this.__notifyEffects)),R=N.next();!R.done;R=N.next()){R=_.V(R.value);for(var X=R.next();!X.done;X=R.next())X.value.fn=U0j}if(this.__reflectEffects)for(N=_.V(Object.values(this.__reflectEffects)),R=N.next();!R.done;R=N.next())for(R=_.V(R.value),X=R.next();!X.done;X=R.next())X.value.fn=u46};
d.prototype._addEventListenerToNode=function(N,R,X){N=jG(N);ha(N,R,X)||M.prototype._addEventListenerToNode.call(this,N,R,X)};
d.prototype._removeEventListenerFromNode=function(N,R,X){N=jG(N);QG(N,R,X)||M.prototype._removeEventListenerFromNode.call(this,N,R,X)};
d.prototype._propertiesChanged=function(N,R,X){if(this.__dataToNotify&&this.__notifyEffects)for(var A=_.V(Object.keys(this.__dataToNotify)),l=A.next();!l.done;l=A.next()){l=l.value;var k=aor(l);this.__notifyEffects[k]||delete this.__dataToNotify[l]}else this.__dataToNotify=null;M.prototype._propertiesChanged.call(this,N,R,X)};
d.prototype.fire=function(N,R,X){R=R===void 0?{}:R;var A;return _.YP(jG((A=X==null?void 0:X.node)!=null?A:this),N,R,X)};
d.prototype._ensureAttribute=function(N,R){var X=jG(this);X.hasAttribute(N)||m3(X,R,N)};
d.prototype.isLightDescendant=function(N){var R=jG(this);return jG(R)!==N&&_.K(R).contains(N)&&_.K(R).getRootNode()===_.K(N).getRootNode()};
return d});
_.mQ.ready=function(){var M;((M=this.hostElement)!=null?M:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var d;((d=this.hostElement)!=null?d:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.sj._subscribeIronResize=function(M){var d;((d=M.hostElement)!=null?d:M).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.sj._unsubscribeIronResize=function(M){var d;((d=M.hostElement)!=null?d:M).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var YtZ=[Array,Boolean,Date,Number,Object,String],Pu=function(M,d,N,R){this.polySiInfo=M;this.polySiParams=d;this.polySiContext=N;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;R||this instanceof HTMLElement&&(R=this);if(!R)throw Error("Kg");this.allowedProps=d.allowedProps;this.hostElement=R;this.is=M.is;this.upgradeDisabled=!!d.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");M=new Set(d.reactiveSchemas.filter(function(X){return X.type!==
"observe"}).map(function(X){return X.propertyKey}));
this.signalProxy=new mM(this,void 0,{reactiveProps:M,reactivityMode:d.reactivityMode});this.__dataHasAccessor={};d=_.V(d.reactiveSchemas);for(M=d.next();!M.done;M=d.next())M=M.value,M.type==="signal"&&(this.__dataHasAccessor[M.propertyKey]=!0);this.upgradeDisabled||l2z(this)};
Pu.prototype.getExtraMethodsToForward=function(){return[]};
var l2z=function(M){M.polySiContext.didRegister||(M.registered(),M.polySiContext.didRegister=!0);M.polySiContext.finalizedTemplate||(M.polySiContext.finalizedTemplate={},M.polySiParams.templateGetter&&(M.polySiContext.finalizedTemplate.processedTemplate=r1Z(M.polySiParams.templateGetter,M.polySiParams.is)));$Wm(M);var d=M.hostElement;d.loggingStatus!=null||(d.loggingStatus={});d.loggingStatus.isInitializing=!0;MF(function(){return void M.created()});
d.loggingStatus.isInitializing=!1;M.isPolySiElementConnected&&Bte(M)},Bte=function(M){M.didCallReady||(MF(function(){return void M.ready()}),M.didCallReady=!0);
M.isAttached=!0;M.attached()};
_.F=Pu.prototype;_.F.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Bte(this)};
_.F.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.F.attributeChangedCallback=function(M,d,N){if(this.upgradeDisabled)M==="disable-upgrade"&&N===null&&(this.upgradeDisabled=!1,l2z(this));else if(d!==N){var R=_.Ff(M),X=this.polySiContext.typesForSignals[R];if(X){switch(X){case Object:try{var A=JSON.parse(N)}catch(k){A=N}break;case Array:try{A=JSON.parse(N)}catch(k){A=null}break;case Date:A=isNaN(N)?String(N):Number(N);A=new Date(A);break;case Boolean:A=N!==null;break;case Number:A=Number(N);break;default:A=N}this[R]=A}R=_.V(this.polySiParams.behaviors);
for(X=R.next();!X.done;X=R.next())A=void 0,(A=X.value.attributeChanged)==null||A.call(this,M,d,N);var l;(l=this.attributeChanged)==null||l.call(this,M,d,N)}};
_.F.attributeChangedCallbackWrapper=function(M,d,N){this.attributeChangedCallback(M,d,N)};
_.F.setPropertiesFromInitialAttributeValues=function(){for(var M=0;M<this.hostElement.attributes.length;M++){var d=this.hostElement.attributes[M];(d.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(d.name))&&this.attributeChangedCallback(d.name,null,d.value)}};
_.F.created=function(){this.provide=this.polySiParams.provide;var M;(M=this.initializeInjection)==null||M.call(this);M=_.V(this.polySiParams.reactiveSchemas);for(var d=M.next();!d.done;d=M.next())d=d.value,d.type==="signal"&&(this.mutablePropNames.add(d.propertyKey),hy(this.signalProxy,d.propertyKey));x0N(this,this.polySiInfo,this.polySiParams.behaviors);M=_.V(this.polySiParams.reactiveSchemas);for(d=M.next();!d.done;d=M.next())d=d.value,d.type==="signal"&&d.value!==void 0&&(this.signalProxy.model[d.propertyKey]=
typeof d.value==="function"?d.value.call(this):d.value);if(this.polySiParams.signalProperties)for(M=_.V(this.polySiParams.signalProperties),d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;((N=this.__signalCache)==null?0:N.has(d))||(this.signalProxy.model[d]=void 0)}xdL||kA3(this);CDZ(this);M=_.V(this.polySiParams.behaviors);for(d=M.next();!d.done;d=M.next())N=void 0,(N=d.value.created)==null||N.call(this);var R;(R=this.polySiInfo.created)==null||R.call(this)};
_.F.registered=function(){var M=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var d=Object.getPrototypeOf(this);d.addReactiveSchema=function(k){M.polySiParams.reactiveSchemas.push(k)};
for(var N=_.V(this.polySiParams.behaviors),R=N.next();!R.done;R=N.next()){var X=void 0;(X=R.value.beforeRegister)==null||X.call(d)}var A;(A=this.polySiInfo.beforeRegister)==null||A.call(d);d.addReactiveSchema=E1q;N=_.V(this.polySiParams.behaviors);for(R=N.next();!R.done;R=N.next())X=void 0,(X=R.value.registered)==null||X.call(d);var l;(l=this.polySiInfo.registered)==null||l.call(d)};
_.F.ready=function(){var M;(M=this.beforeReady)==null||M.call(this);xdL&&kA3(this);var d;if(M=(d=this.polySiContext.finalizedTemplate)==null?void 0:d.processedTemplate){M=PDp(M.template,M.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:M.hasInsertionPoint,thisCtx:this});d=M.nodesById;M=M.root;var N=this.hostElement;var R=R===void 0?!1:R;N=(0,_.aj)(N);if(!N.attachShadow)throw Error("Cd");if(!N.shadowRoot||R)N.attachShadow({mode:"open",shadyUpgradeFragment:M}),N.shadowRoot.appendChild(M);
this.root=N.shadowRoot;this.$=d}TtC(this);R=_.V(this.polySiParams.behaviors);for(d=R.next();!d.done;d=R.next())M=void 0,(M=d.value.ready)==null||M.call(this);var X;(X=this.polySiInfo.ready)==null||X.call(this)};
_.F.attached=function(){for(var M=_.V(this.polySiParams.behaviors),d=M.next();!d.done;d=M.next()){var N=void 0;(N=d.value.attached)==null||N.call(this)}var R;(R=this.polySiInfo.attached)==null||R.call(this)};
_.F.detached=function(){for(var M=_.V(this.polySiParams.behaviors),d=M.next();!d.done;d=M.next()){var N=void 0;(N=d.value.detached)==null||N.call(this)}var R;(R=this.polySiInfo.detached)==null||R.call(this)};
var $Wm=function(M){for(var d=_.V(M.polySiParams.behaviors),N=d.next();!N.done;N=d.next())if(N=N.value,N.listeners)for(var R in N.listeners)sZ2(M,M.hostElement,R,N.listeners[R]);if(M.polySiInfo.listeners)for(var X in M.polySiInfo.listeners)sZ2(M,M.hostElement,X,M.polySiInfo.listeners[X])},sZ2=function(M,d,N,R,X){M=olS(M,R,X);
ha(d,N,M)||d.addEventListener(N,M);return M},kA3=function(M){for(var d=_.V(M.polySiParams.reactiveSchemas),N=d.next();!N.done;N=d.next())N=N.value,N.type==="compute"||N.type==="computeWithMethod"?JzN(M.signalProxy,N,M):N.type==="redux"?zUi(M.signalProxy,N,M.store):N.type==="signal"&&N.readOnly&&SyZ(M.signalProxy,N)},TtC=function(M){for(var d=_.V(M.polySiParams.reactiveSchemas),N=d.next(),R={};!N.done;R={schema$jscomp$12:void 0},N=d.next())R.schema$jscomp$12=N.value,R.schema$jscomp$12.type==="notify"?
eUr(M.signalProxy,R.schema$jscomp$12,M.hostElement):R.schema$jscomp$12.type==="observe"?HNj(M.signalProxy,R.schema$jscomp$12,M):R.schema$jscomp$12.type==="reflect"&&M.signalProxy.effect(function(A){return function(){var l=M.signalProxy.getWithPath([A.schema$jscomp$12.propertyKey]);
xMr(M.hostElement,A.schema$jscomp$12.propertyKey,l)}}(R));
if(M.reflectedAttributes)for(d=_.V(Object.entries(M.reflectedAttributes)),R=d.next(),N={};!R.done;N={key$jscomp$873:void 0,value$jscomp$8783:void 0},R=d.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;N.key$jscomp$873=R;N.value$jscomp$8783=X;M.signalProxy.effect(function(A){return function(){xMr(M.hostElement,A.key$jscomp$873,(0,A.value$jscomp$8783)())}}(N))}};
_.F=Pu.prototype;_.F._setPendingProperty=function(M,d){this.set(M,d);return!1};
_.F._enableProperties=function(){};
_.F._setPendingPropertyOrPath=function(M,d){this.notifyPath(M,d);return!1};
_.F._addPropertyEffect=function(){};
_.F._stampTemplate=function(){throw Error("Lg");};
_.F.fire=function(M,d,N){d=d===void 0?{}:d;N=N===void 0?{}:N;var R,X,A={bubbles:(R=N.bubbles)!=null?R:!0,cancelable:!!N.cancelable,composed:(X=N.composed)!=null?X:!0},l;return _.YP(Mjj((l=N.node)!=null?l:this.hostElement),M,d,A)};
_.F.get=function(M,d){var N=p6(M);return d?rzS(d,N):M==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(N)};
_.F.linkPaths=function(){};
_.F.listen=function(M,d,N){M=Mjj(M);this.boundListeners!=null||(this.boundListeners=new WeakMap);var R=this.boundListeners.get(M);R||(R={},this.boundListeners.set(M,R));var X=d+N;R[X]||(R[X]=sZ2(this,M,d,N))};
_.F.notifyPath=function(M,d){this.signalProxy.notifyPath(p6(M),arguments.length===2?{value:d}:void 0)};
_.F.canNotifyPath=function(M){var d,N;return this.mutablePropNames.has(M)&&!((d=this.signalProxy.options)==null?0:(N=d.immutableProps)==null?0:N.has(M))};
_.F.notifySplices=function(M,d){this.signalProxy.notifySplices(p6(M),d)};
_.F.pop=function(M){var d=this.signalProxy;M=p6(M);var N=_.V(M);M=N.next().value;N=z5(N);return hy(d,M).pop(N)};
_.F.push=function(M){var d=_.wH.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[p6(M)].concat(_.wu(d)))};
_.F.set=function(M,d,N){if(N)throw Error("Mg");M==="hidden"?this.hostElement.hidden=!!d:this.signalProxy.setWithPath(p6(M),d)};
_.F.setProperties=function(M){M=_.V(Object.entries(M));for(var d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;this[d]=N}};
_.F.splice=function(M,d,N){var R=_.wH.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[p6(M),d,N].concat(_.wu(R)))};
_.F.unlinkPaths=function(){};
_.F.unlisten=function(M,d,N){M=Mjj(M);if(this.boundListeners){var R=this.boundListeners.get(M);if(R){N=d+N;var X=R[N];X&&(QG(M,d,X)||M.removeEventListener(d,X),delete R[N])}}};
_.F.unshift=function(M){var d=_.wH.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[p6(M)].concat(_.wu(d)))};
_.Hm.Object.defineProperties(Pu.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 kZq=[Array,Boolean,Date,Number,Object,String];var g72=!1;var hK=function(){var M=HTMLElement.apply(this,arguments)||this;M.restamp=!1;M.notifyDomChange=!1;M.JSC$11249_didCallConnected=!1;M.JSC$11249_renderDebouncer=null;M.disableTemplateUpdateSignalImpl=oT()?void 0:_.d0(!1,void 0,"zLXz1e");var d;M.getDisableTemplateUpdate=(d=M.disableTemplateUpdateSignalImpl)==null?void 0:d[0];var N;M.setDisableTemplateUpdate=(N=M.disableTemplateUpdateSignalImpl)==null?void 0:N[1];return M};
_.v(hK,HTMLElement);var DWo=function(M){M.conditionSignalImpl!=null||(M.conditionSignalImpl=new wb(_.d0(!1,void 0,"wcuOQ")));return M.conditionSignalImpl};
_.F=hK.prototype;_.F.showHideChildren=function(M){ggm(this,M,this.if)};
_.F.attributeChangedCallback=function(M,d,N){if(this.JSC$11249_didCallConnected)throw Error("Qg`"+M);M==="notify-dom-change"?this.notifyDomChange=N!==null:M==="restamp"&&(this.restamp=N!==null)};
_.F.debounceRender=function(){this.JSC$11249_renderDebouncer=_.Rg(this.JSC$11249_renderDebouncer,I_,this.JSC$11249_renderImpl.bind(this));_.XM(this.JSC$11249_renderDebouncer)};
_.F.disconnectedCallback=function(){var M=(0,_.aj)(this).parentNode;(!M||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in M&&!M.host)&&W9V(this)};
_.F.connectedCallback=function(){var M=this;this.JSC$11249_didCallConnected=!0;uEV?WPN():this.style.display="none";this.parentSignalProxy.effect(function(){DWo(M).getWithPath([]);M.debounceRender()})};
_.F.render=function(){_.lc()};
_.F.JSC$11249_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var M=this.if;if(M){a:{var d=(0,_.aj)(this).parentNode;if(this.hasInstance()){var N=this.instance.children;if((N==null?0:N.length)&&(0,_.aj)(this).previousSibling!==N[N.length-1])for(var R=0;R<N.length;R++)(0,_.aj)(d).insertBefore(N[R],this)}else{if(!d){d=!1;break a}wLJ(this,d)}d=!0}if(!d)return}else this.restamp&&W9V(this);ggm(this,!1,M);M&&pLz(this);CRC&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.F.hasInstance=function(){return!!this.instance};
var wLJ=function(M,d){var N=M.parentSignalProxy;if(oT()){var R=_.V(_.d0(!0,void 0,"wXzgnc"));var X=R.next().value;R=R.next().value;N=M.parentSignalProxy}else{var A;var l=new mM((A=mWz(M))!=null?A:{},function(T){var W=hy(M.parentSignalProxy,T).getChangeRecordSignal([]);T=_.d0(void 0,void 0,"mryEkc");var w=new wb(T);l.effect(function(){if(M.getDisableTemplateUpdate&&!M.getDisableTemplateUpdate()){var p=W();w.notifyPath(p6(p.path),{value:p.value})}});
return w});
M.parentSignalProxy.childSignalProxies.push(l);var k=N=l}N=PDp(M.templateInfo,M.templateInfo.nodeInfoList,N,{eventListenerHost:M.eventListenerHost,hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,enabledSignal:oT()?X:void 0,getModel:function(){return mWz(M)}}).root;
M.instance={root:N,children:[],hidden:!1,signalProxy:k,getTemplateUpdatesEnabled:X,setTemplateUpdatesEnabled:R};k=_.V(N.childNodes);for(X=k.next();!X.done;X=k.next())M.instance.children.push(X.value);(0,_.aj)(d).insertBefore(M.instance.root,M)},mWz=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var d={},N;
for(N in M)M.hasOwnProperty(N)&&(d[N]=M[N]);return d}},W9V=function(M){if(M.instance){var d=M.instance.children;
if(d.length){var N=(0,_.aj)(d[0]).parentNode;if(N){N=(0,_.aj)(N);for(var R=0;R<d.length;R++)N.removeChild(d[R])}}oT()?M.instance.setTemplateUpdatesEnabled(!1):M.instance.signalProxy.dispose();M.instance=void 0}},ggm=function(M,d,N){d=d||!N;
M.instance&&M.instance.hidden!==d&&(M.instance.hidden=d,DdA(d,M.instance.children))},pLz=function(M){if(oT()){var d=M.instance;
d&&qF(M.parentSignalProxy.owner,function(){return!d.getTemplateUpdatesEnabled()})&&d.setTemplateUpdatesEnabled(!0)}else M.setDisableTemplateUpdate(!1)};
_.Hm.Object.defineProperties(hK.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var M=this;return qF(this.parentSignalProxy.owner,function(){return DWo(M).getWithPath([])})},
set:function(M){M||(oT()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));DWo(this).setWithPath([],!!M)}}});
_.Hm.Object.defineProperties(hK,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",hK);var hFz=[],QY=function(){var M=HTMLElement.apply(this,arguments)||this;M.as="item";M.indexAs="index";M.itemsIndexAs="itemsIndex";M.targetFramerate=20;M.notifyDomChange=!1;M.isDetached=!1;M.JSC$11256_renderDebouncer=null;M.instances=[];M.chunkingId=null;M.chunkCount=null;M.shouldMeasureChunk=!1;M.shouldContinueChunking=!1;M.renderStartTime=null;M.JSC$11256_didCallConnected=!1;return M};
_.v(QY,HTMLElement);var Qwe=function(M){M.itemSignalImpl!=null||(M.itemSignalImpl=new wb(_.d0(hFz,void 0,"YBrqgf")));return M.itemSignalImpl},q3V=function(M,d){Array.isArray(d)||(d=hFz);
Qwe(M).setWithPath([],d)};
_.F=QY.prototype;_.F.showHideChildren=function(M){for(var d=_.V(this.instances),N=d.next();!N.done;N=d.next())DdA(M,N.value.children)};
_.F.notifyPath=function(M,d){M=p6(M);M[0]==="items"&&(M.length===1?q3V(this,d):Qwe(this).setWithPath(M.slice(1),d))};
_.F.canNotifyPath=function(M){return M==="items"};
_.F.attributeChangedCallback=function(M,d,N){if(this.JSC$11256_didCallConnected)throw Error("Rg`"+M);M==="as"?this.as=N:M==="index-as"?this.indexAs=N:M==="items-index-as"?this.itemsIndexAs=N:M==="initial-count"?this.initialCount=Number(N):M==="notify-dom-change"?this.notifyDomChange=N!==null:M==="target-framerate"&&(this.targetFramerate=Number(N))};
_.F.disconnectedCallback=function(){this.isDetached=!0;for(var M=0;M<this.instances.length;M++)I2V(this,M);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.F.connectedCallback=function(){var M=this,d=Qwe(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var X=d(),A=p6(X.path);if(A[0]===void 0||A[0]==="splices"||A[0]==="length")M.debounceRender();else{var l=A[0];if(l=M.instances[typeof l==="string"?Math.floor(Number(l)):l])A=[M.as].concat(_.wu(A.slice(1))),l.signalProxy.notifyPath(A,X)}});
this.JSC$11256_didCallConnected=!0;uEV?WPN():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var N=(0,_.aj)((0,_.aj)(this).parentNode),R=0;R<this.instances.length;R++)N.insertBefore(this.instances[R].root,this);this.chunkingId&&this.render()}};
_.F.debounceRender=function(){this.JSC$11256_renderDebouncer=_.Rg(this.JSC$11256_renderDebouncer,I_,this.JSC$11256_renderImpl.bind(this));_.XM(this.JSC$11256_renderDebouncer)};
_.F.render=function(){this.debounceRender();_.lc()};
_.F.JSC$11256_renderImpl=function(){var M=this,d=this.items,N=vgV(this,d.length);O8d(this,d,N);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){M.chunkingId=null;if(M.shouldMeasureChunk){var R=performance.now()-M.renderStartTime;M.chunkCount=Math.round(Math.ceil(1E3/M.targetFramerate)/R*M.chunkCount)||1}M.shouldContinueChunking&&M.debounceRender()}));
CRC&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var vgV=function(M,d){var N=d,R=M.instances.length;if(M.initialCount){if(M.chunkCount){var X=Math.min(Math.max(d-R,0),M.chunkCount);N=Math.min(R+X,d)}else N=Math.min(d,M.initialCount),X=Math.max(N-R,0),M.chunkCount=X||1;M.shouldMeasureChunk=X===M.chunkCount;M.shouldContinueChunking=N<d;M.renderStartTime=performance.now()}return N},O8d=function(M,d,N){for(var R=0;R<N;R++){var X=M.instances[R],A=d[R];
X?(X.signalProxy.setWithPath([M.as],A),X.signalProxy.setWithPath([M.indexAs],R)):jwz(M,A,R)}for(d=M.instances.length-1;d>=R;d--)N=M,X=d,I2V(N,X),_.V(N.instances.splice(X,1)).next().value.signalProxy.dispose()},I2V=function(M,d){M=M.instances[d];
d=(0,_.aj)(M.root);for(var N=0;N<M.children.length;N++)d.appendChild(M.children[N])},jwz=function(M,d,N){var R={};
d=Object.assign({},swe(M),(R[M.as]=d,R[M.indexAs]=N,R[M.itemsIndexAs]=N,R));var X=new mM(d,function(l){if(l!==M.as&&l!==M.indexAs){if(l===M.itemsIndexAs)return hy(X,M.indexAs);var k=hy(M.parentSignalProxy,l).getChangeRecordSignal([]);l=_.d0(void 0,void 0,"Mu2Bwb");var T=new wb(l);X.effect(function(){var W=k();T.notifyPath(p6(W.path),{value:W.value})});
return T}});
M.parentSignalProxy.childSignalProxies.push(X);R=PDp(M.templateInfo,M.templateInfo.nodeInfoList,X,{eventListenerHost:M.eventListenerHost,getModel:function(){var l={};return Object.assign({},swe(M),(l[M.as]=X.model[M.as],l[M.indexAs]=X.model[M.indexAs],l[M.itemsIndexAs]=X.model[M.indexAs],l))},
hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,methodInvocationRequirement:YCV,enabledSignal:M.stampingEnabled}).root;d={root:R,children:[],signalProxy:X};R=_.V(R.childNodes);for(var A=R.next();!A.done;A=R.next())d.children.push(A.value);R=(R=M.instances[N+1])?R.children[0]:M;(0,_.aj)((0,_.aj)(M).parentNode).insertBefore(d.root,R);M.instances[N]=d},swe=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var d={},N;
for(N in M)M.hasOwnProperty(N)&&(d[N]=M[N]);return d}};
QY.prototype.itemForElement=function(M){var d=this,N=this.instances.find(function(R){return R.children.includes(M)});
if(N)return qF(this.parentSignalProxy.owner,function(){return N.signalProxy.getWithPath([d.as])})};
QY.prototype.indexForElement=function(M){var d=this.instances.findIndex(function(N){return N.children.includes(M)});
return d>=0?d:void 0};
_.Hm.Object.defineProperties(QY.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var M=this;return qF(this.parentSignalProxy.owner,function(){return Qwe(M).getWithPath([])})},
set:function(M){q3V(this,M)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.Hm.Object.defineProperties(QY,{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",QY);var PQ3,ogd;_.ql=new _.x5("STATE_STORE_TOKEN");PQ3=new _.x5("SELECT_TOKEN");ogd=new _.x5("DISPATCH_TOKEN");var qCZ={getSelectFn:function(){var M;return(M=_.h().resolve(_.CF(PQ3)))!=null?M:wSr},
getDispatchFn:function(){var M;return(M=_.h().resolve(_.CF(ogd)))!=null?M:_.r4().dispatch.bind(_.r4())},
getAppStore:function(){return _.h().resolve(_.ql)}},pSA,QlS=!1;var OzL=void 0;var rJo=function(){};
rJo.prototype.hasAttribute=function(M){if(M==="dir")return!1;if(M==="disable-upgrade"){var d,N;return(N=(d=this.hostElement)==null?void 0:d.hasAttribute("disable-upgrade"))!=null?N:!1}throw Error("Sg`"+M);};
rJo.prototype.attributeChangedCallbackWrapper=function(M,d,N){if(M==="disable-upgrade"&&this.__isUpgradeDisabled&&N===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var R;((R=this.hostElement)!=null?R:this).isConnected&&this.connectedCallback()}else d===N||this.__isReflecting||this.attributeChangedCallback(M,d,N)};
rJo.prototype.getExtraMethodsToForward=function(){for(var M=this,d=[],N=_.V(K93),R=N.next(),X={};!R.done;X={tagName$jscomp$52:void 0,name$jscomp$533:void 0},R=N.next())X.name$jscomp$533=R.value,R=void 0,X.name$jscomp$533==="_setPendingProperty"?(X.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),R=function(A){return function(l,k,T){VE(A.tagName$jscomp$52,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return M._setPendingProperty(l,k,T)}}(X)):R=function(A){return function(){return M[A.name$jscomp$533].apply(M,
_.wu(_.wH.apply(0,arguments)))}}(X),d.push([X.name$jscomp$533,
R]);return d};
for(var yeL=V3z(AJC((0,_.p7)(rJo))),zzL=["disabled","disable-upgrade"],yJt=(0,_.p7)(function(){}),JJm=new Set(Object.getOwnPropertyNames(yJt.prototype)),izA=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.wu(JJm))),ezS=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),K93=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),cJV=new Set([].concat(_.wu(ezS),_.wu(K93),_.wu(JJm))),S3m=_.V(cJV),zFC=S3m.next();!zFC.done;zFC=S3m.next())AzA.add(zFC.value);var n7A={created:function(){CDZ(this);this.initializeInjection()}};var xdi=!1,Hu=window.ShadyDOM,XLA=["appendChild","insertBefore","removeChild","replaceChild"],RFZ=[Node];Hu&&RFZ.push(Hu.Wrapper);var Btp,kAZ,ggv={};var f6=new Set,n6="",W9j="";var iu,L6=new Set;var O8Z=new Set("context didCallReady is info params signalProxy".split(" ")),swp="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),PQZ="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var b8o=Nw({entities:qYA}),eFJ=new nh(b8o);var Ih=function(){return _.MS.apply(this,arguments)||this};
_.v(Ih,_.MS);_.Hm.Object.defineProperties(Ih.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return eFJ}}});
Ih=_.G([_.d4()],Ih);_.vA=[gb.prototype,Ih.prototype];_.On={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var M=this,d={};setTimeout(function(){var N;return _.YP((N=M.hostElement)!=null?N:M,"yt-live-chat-add-tooltip-target",d)},0);
this.handler_=d.handler},
detached:function(){if(this.handler_){var M;this.handler_.removeElementFromSupportingTooltips((M=this.hostElement)!=null?M:this)}this.handler_=null}}};_.xQ=new _.x5("ICON_MANAGER_TOKEN");var H83=[48,20,18,16,15,13,12],xWp=new Map,t3N=new Set,i8r=new Set,L92=new Set,ngi=new Set,f2q=new Set,a2i=new Promise(function(M){var d=!1,N=!1,R=!1,X=[],A=function(l){if("detail"in l)if(l=l.detail,l.name==="yt-icons")GAA(l),d=!0;else if(l.name==="yt-sys-icons")GAA(l),N=!0;else{var k;((k=l.name)==null?0:k.includes("yt-sys-icons"))&&l.size!==24&&(GAA(l,!0),X.push(l.size),X.length===H83.length&&(R=!0))}d&&N&&R&&(window.removeEventListener("iron-iconset-added",A),M())};
window.addEventListener("iron-iconset-added",A)}),uG6=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"]]);_.jV={};_.jV.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.HD,computeHref_:function(M,d){d=d===void 0?!1:d;if(!M||M.commandExecutorCommand)return null;var N=uQi(M,d);return d||N!==null?N?_.Q("enable_polymer_resin")?_.gH(N).toString():N:null:(_.vh(new _.WJ("computeHref was null",this.is,M)),null)},
computeOptionalHref_:function(M){return this.computeHref_(M,!0)},
computeNofollow_:function(M){return M?Hqi(M)?"nofollow":null:null},
computeIcon_:function(M){return M&&M.iconType?_.C6(M.iconType):""},
resolveCommand:function(M,d,N){d=d===void 0?{}:d;return _.Zc(M,this.hostElement,d,N===void 0?!1:N)}};var i8J,sn;_.ngL={};i8J=null;
sn={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_=Sbv(this.viewroot));_.vu(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var M=this;this.unobserve_();if(_.Q("kevlar_vimio_use_shared_monitor"))dqZ(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 d=[];this.visibilityOptionVisible_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&d.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=d}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Y3N(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var M=_.jM(this.parentNode,function(N){var R,X=(R=N.polymerController)!=null?R:N;return!!X.getVisibilityObserverForChild&&X.getVisibilityObserverForChild()},!0);
if(M){var d;this.localVisibilityObserver_=((d=M.polymerController)!=null?d:M).getVisibilityObserverForChild()}else i8J||(i8J=Sbv()),this.localVisibilityObserver_=i8J;return this.localVisibilityObserver_},visibilityCallback:function(M){M?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.Q("kevlar_use_vimio_behavior")||(sn={});sn&&!_.Q("kevlar_use_vimio_behavior")&&(delete sn.attached,delete sn.detached);_.ngL.YtVisibilityObserverBehavior=[sn];var f2z={};f2z.YtVisualElementBehavior=[_.ngL.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.Q("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.Q("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var M=this.getScreenLayer&&this.getScreenLayer(),d=this.getVisibilityLogger();d&&d.reportShown(this,void 0,M)}},
onHidden:function(){if(_.Q("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.Q("kevlar_vimio_use_shared_monitor")){var M=this.getScreenLayer&&this.getScreenLayer(),d=this.getVisibilityLogger();d&&d.reportHidden(this,void 0,M)}},
getVisibilityLogger:function(){return _.Q("kevlar_use_vimio_behavior")?_.Mx():null},
shouldSkipLogging:function(){if(_.rK("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var M=this.getParentRenderer&&this.getParentRenderer();if(!M)return!1;var d,N=(d=M.polymerController)!=null?d:M;if(!N.data)return!1;M=this.data.trackingParams;M=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:M;var R;d=(R=N.data)==null?void 0:R.trackingParams;var X,A;d=((X=N.data)==null?0:X.loggingDirectives)?(A=N.data)==null?void 0:A.loggingDirectives.trackingParams:d;return M&&d&&M===
d}}];var Fjq=new Map,Vu;var BvZ=function(M){this.layer=M},sc=function(M){return M.layer!==void 0?M.layer:M.parent?sc(M.parent):M.layer=0};var kK2;_.E={};kK2=0;_.E.YtRendererBehavior=[_.jV.YtComponentBehavior,f2z.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_:_.Q("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var M,d;(d=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||d.removeEventListener("scroll",_.ux(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Rjr(this.hostElement);CD3(_.Nl(),this.hostElement);ie.delete(this.hostElement)},
registerRenderer:function(M){var d;((d=M.polymerController)!=null?d:M).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(M),this.markDirty())},
unregisterRenderer_:function(M){this.useVimio_||(this.childCache_.delete(M),this.markDirty())},
attached:function(){var M=this,d=this.getParentRenderer();if(d){var N,R,X;(R=(N=(X=d.polymerController)!=null?X:d).registerRenderer)==null||R.call(N,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var A,l;(l=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||l.addEventListener("scroll",_.ux(this,this.onScroll))}_.IQ.addJob(function(){AEp(M.hostElement)},8);
N=new BvZ(this.screenLayer||void 0);(d=fb(d))&&d.layerNode&&(N.parent=d.layerNode);d={};LEZ(this.hostElement,(d.isRenderer=!0,d.layerNode=N,d[P5]=this.data,d))},
getParentRenderer:function(){for(var M=this.hostElement.parentNode,d,N;M&&((d=fb(M))==null||!d.isRenderer)&&!((N=M.polymerController)!=null?N:M).isRenderer_;)M=M.parentNode||M.host;return M},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.Q("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.KF("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.Q("debug_web_ve_data")&&this.data.trackingParams){var M="";try{M=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(N){_.qZ(N)}if(M){var d=AX2(M,1);d!==void 0&&(this.hostElement.dataset.veIndex=String(d));M=AX2(M,2);
M!==void 0&&(this.hostElement.dataset.ve=String(M))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.Q("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.At(this.data.loggingDirectives.trackingParams)),this.visualElement=_.dk(_.Nx(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var M=this.data.targetId;_.Yt3(_.Nl(),M,this.hostElement)}else CD3(_.Nl(),this.hostElement)},
onScroll:function(){var M=Date.now();M-this.lastHandledScroll_<50||(this.lastHandledScroll_=M,this.markDirty())},
markDirty:function(){_.Q("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():TAv(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var M=this.getParentRenderer();if(M&&(M=fb(M))&&M.layerNode)return sc(M.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.wu(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++)this.sendImpression(this.data.impressionEndpoints[M]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(M){M.clickTrackingParams&&delete M.clickTrackingParams;var d,N;(M==null?0:(d=M.commandMetadata)==null?0:(N=d.webCommandMetadata)==null?0:N.sendPost)?_.dU(this.hostElement,[M,{impression:!0}]):_.Ni(this.hostElement,[M],this.hostElement)},
logExplicitClick:function(M){var d=_.Ou(this.getScreenLayer());if(d){var N,R=(N=M.polymerController)!=null?N:M;M=R.visualElement;R=R.trackingParams||R.clickTrackingParams;!M&&R&&(M=_.At(R));M&&_.eD(d,M)}}}];var L9L={},PA=function(){return _.MS.apply(this,arguments)||this};
_.v(PA,_.MS);PA.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
PA.prototype.onPdgItemBehaviorClick=PA.prototype.onPdgItemBehaviorClick;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PA.prototype,"data",void 0);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],PA.prototype,"onPdgItemBehaviorClick",null);PA=_.G([_.d4()],PA);L9L.YtPdgLiveChatItemBehavior=[PA.prototype,_.E.YtRendererBehavior];var t3I;var GAt;_.oh={};_.oh.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var rb=function(){var M=iM.apply(this,arguments)||this;M.switchTemplateAtRegistration=!1;return M};
_.v(rb,iM);rb.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||wWq(this),_.t1r(this,"doRender"),this.doRender())};
rb.prototype.debounceRender=function(){this.templatingFn&&_.OH(this,"doRender",this.doRender)};
rb.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.qZ(Error("bh"))};
rb.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
rb=_.G([o_i()],rb);var a2d=rb;var UWL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,K$={},Q6A=(K$[1]={filterString:null,isUnwrappable:null,unwrap:null},K$[2]={filterString:function(M,d,N){return CO(N)},
isUnwrappable:function(M){return M instanceof vQ},
unwrap:function(M){return jd(M)}},K$[3]={filterString:function(M,d,N){return UWL.test(N)?N:DW.toString()},
isUnwrappable:function(M){return ly(M)},
unwrap:function(M){return _.$8(M)}},K$[4]={filterString:function(){return DW.toString()},
isUnwrappable:function(M){return M instanceof NO},
unwrap:function(M){return _.XC(M).toString()}},K$[5]={filterString:function(M,d,N){return N},
isUnwrappable:function(M){return typeof M==="string"},
unwrap:function(M){return M.toString()}},K$[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(M){return M instanceof _.KS},
unwrap:function(M){return J_(M)}},K$[8]={filterString:function(M,d,N){N=String(N).toLowerCase();
return mUS(M,d,N)?N:"zClosurez"},
isUnwrappable:null,unwrap:null},K$[10]={filterString:null,isUnwrappable:null,unwrap:null},K$);fa[Oo["default"]]=InN;var vJN=[];var iDA=j62("A"),fi2=j62("BUTTON"),Bi=j62("DIV"),LRi=j62("LABEL");(function(){var M=zT;zT=function(d){M==null||M(d);kj(function(){for(var N=0;N<d.length;N++)O0L(d[N])})}})();var yY=function(){var M=_.MS.apply(this,arguments)||this;M.hasUnmounted=!1;return M};
_.v(yY,_.MS);_.F=yY.prototype;_.F.beforeRegister=function(){var M=this.doIdomRender;this.templatingFn?_.qZ(Error("ah")):(this.templatingFn=M,this.switchTemplateAtRegistration=!0,hjZ(this))};
_.F.attached=function(){};
_.F.detached=function(){O0L(this.hostElement)};
_.F.renderIdom=function(){throw Error("dh");};
_.F.doIdomRender=function(){var M=this;lMr(this.hostElement,function(){M.renderIdom()})};
yY=_.G([_.d4()],yY);var uGo=[a2d.prototype,yY.prototype];var CQI,xWe=function(){return CQI!==void 0?CQI:CQI=document.createElement("template")};
document.head.appendChild(xWe().content);var Y3I;var Z8m,Ego=function(){return Z8m!==void 0?Z8m:Z8m=document.createElement("template")};
document.head.appendChild(Ego().content);var MTL;var dqg=document.head,NAd=dqg.appendChild,RjJ;if(MTL===void 0){var XWz=document.createElement("template");_.P(XWz,"\x3c!--css-build:shady--\x3e");XWz.content.insertBefore(Ego().content.cloneNode(!0),XWz.content.firstChild);MTL=XWz}RjJ=MTL;NAd.call(dqg,RjJ.content);var Fjz,AEe=function(){return Fjz!==void 0?Fjz:Fjz=document.createElement("template")};
document.head.appendChild(AEe().content);var VTI;var lng=document.head,$qJ=lng.appendChild,BAJ;if(VTI===void 0){var kKL=document.createElement("template");_.P(kKL,"\x3c!--css-build:shady--\x3e");kKL.content.insertBefore(AEe().content.cloneNode(!0),kKL.content.firstChild);VTI=kKL}BAJ=VTI;$qJ.call(lng,BAJ.content);var TAm=document.head,DqI=TAm.appendChild,gJm;if(Y3I===void 0){var WjV=document.createElement("template");_.P(WjV,"\x3c!--css-build:shady--\x3e");WjV.content.insertBefore(xWe().content.cloneNode(!0),WjV.content.firstChild);Y3I=WjV}gJm=Y3I;DqI.call(TAm,gJm.content);var wWz,pWd=function(){return wWz!==void 0?wWz:wWz=document.createElement("template")};
document.head.appendChild(pWd().content);var mqd;_.Pz=new _.x5("DARK_THEME_TOKEN");var pZS=new _.x("accessibilityProperties");var wZN=new _.x("layoutProperties");var mKZ=new _.x("imageType");var hjg={};if("ytAttributedStringLinkHoverColor"in hjg)throw Error("gh`ytAttributedStringLinkHoverColor");(function(M,d){hjg[M]="value"in d&&"unit"in d?Kjp(M,d):function(N){try{return d(N)}catch(R){throw Error("eh`"+M+"`"+R.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Q6t=function(M){var d=this;this.holdTime=M===void 0?500:M;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(N){var R=new CustomEvent("LONG_PRESS"),X;(X=N.changedTouches[0].target)==null||X.dispatchEvent(R)};
this.ontouchstart=function(N){d.longPressTimeout=_.m$(_.IQ,function(){d.onlongpress(N);d.longPressOccurred=!0},d.holdTime)};
this.ontouchmove=function(){_.IQ.cancelJob(d.longPressTimeout);d.longPressTimeout=NaN;d.longPressOccurred=!1;d.moveOccurred=!0};
this.ontouchend=function(N){if(d.longPressTimeout&&!d.longPressOccurred&&!d.moveOccurred){var R;(R=N.changedTouches[0].target)==null||R.dispatchEvent(new Event("click"))}_.IQ.cancelJob(d.longPressTimeout);d.longPressTimeout=NaN;d.longPressOccurred=!1;d.moveOccurred=!1}};var Z0S=function(M,d){Q6t.call(this,d);var N=this;this.callback=M;this.onlongpress=function(R){var X;(X=N.callback)==null||X.call(N,R)}};
_.v(Z0S,Q6t);var EJZ=function(M,d){var N=Object.assign({},d);M=_.V(new Map([["ontouchstart",M.ontouchstart],["ontouchend",M.ontouchend],["ontouchmove",M.ontouchmove]]));for(var R=M.next(),X={};!R.done;X={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},R=M.next()){var A=_.V(R.value);R=A.next().value;A=A.next().value;X.eventName$jscomp$87=R;X.eventHandler$jscomp$3=A;d[X.eventName$jscomp$87]=function(l){return function(k){var T;(T=N[l.eventName$jscomp$87])==null||T.call(N,k);(0,l.eventHandler$jscomp$3)(k)}}(X)}};_.xV=new _.x5("COMMAND_HANDLER_TOKEN");var JE6=new _.x("parallelCommand");var zjv=new _.x("performOnceCommand");var S6r=new _.x("serialCommand");var b02=void 0;var q6L=function(){this.data=[]};
q6L.prototype.push=function(M){this.data.push(M)};var Z$={};_.d0(Z$,void 0,"sgPmTd");_.d0(null,void 0,"jypsq");var RB6=new q6L;var GKZ=[C2m,xpV,YSo,EiV,ZZ3,uiz,MJe,deL];var gmi=new _.x("bracketTextDecorator");var sz=new _.x("highlightTextDecorator");_.rk=new _.x5("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var $Ki=function(){},InI;
(InI=window.requestIdleCallback)==null||InI.bind(window);var kWv={calledOnce:!1,state:"visible"},BXZ={calledOnce:!1,state:"hidden"};var Twp=new _.x5("ICON_RENDERER_TOKEN"),vJI=new _.x5("ICON_WIZ_COMPONENT_TOKEN");_.Fc=_.SG(function(M){var d=M.icon;var N=M.active;var R=M.className;var X=M.style;var A=M.dataSelected;var l=M.dataDisabled;var k=M.role;var T=M.animateIcon;var W=M.themeOverride;var w=M.ariaHidden;var p=M.ariaExpanded;var m=M.ariaLabel;var I=M.id;var O=M.size;var y=M.iconFilter;return _.g(_.kV,{cond:d,then:function(){var c=_.h().resolve(vJI);return _.g(c,{icon:d,dataSelected:A,dataDisabled:l,animateIcon:T,themeOverride:W,ariaExpanded:p,id:I,active:N,size:O,role:k,className:R,ariaHidden:w,ariaLabel:m,
style:function(){return X!=null&&X()||O==null||!O()?X==null?void 0:X():"width: "+(O==null?void 0:O())+"px;height: "+((O==null?void 0:O())+"px;")},
iconFilter:y})}})},"b");
_.Fc.idomCompat=!0;var S5i=window.devicePixelRatio||1;var HmA=new Map([["yt_outline_bag_black_24","bag"]]);var JK=function(M){var d=this;this.margin=.1;this.whenInViewportWithMargin=M;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){d.requestScan()});
window.addEventListener("touchend",function(){d.requestScan()});
window.addEventListener("updateui",function(){d.requestScan()});
var N=new _.ua((0,_.gx)(this.requestScan,this),100);window.addEventListener("scroll",function(){N.fire()},!0);
window.addEventListener("resize",(0,_.gx)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){d.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.gx)(this.requestScan,this))};
JK.prototype.observe=function(M){this.observationTargets.includes(M)||this.observationTargets.push(M)};
JK.prototype.unobserve=function(M){this.observationTargets=this.observationTargets.filter(function(d){return d!==M})};
JK.prototype.requestScan=function(){var M=this;this.scanRequested||(kj(function(){O0C(M)}),this.scanRequested=!0)};
var O0C=function(M){var d=(1+M.margin)*(document.documentElement.clientHeight||window.innerHeight);M.observationTargets=M.observationTargets.filter(function(N){var R=N.getBoundingClientRect();(R=d>R.top&&!!R.height)&&M.whenInViewportWithMargin(N);return!R&&N.parentNode});
M.scanRequested=!1};
JK.prototype.disconnect=function(){this.observationTargets=[]};var j6L,PEg;j6L=_.V(_.d0(Lpq(),void 0,"O3X2wd"));_.s6d=j6L.next().value;PEg=j6L.next().value;window.addEventListener("resize",function(){PEg(Lpq())});var oJJ={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},rEt=void 0,Kje=window.innerWidth,yEd=window.innerHeight;window.addEventListener("resize",function(){rEt=void 0});var JEo;if("IntersectionObserver"in window)JEo=aNj();else{if(rEt===void 0){var cE3;cE3="matchMedia"in window?window.matchMedia(oJJ.landscape+","+oJJ.portrait).matches:void 0;rEt=cE3!==void 0?cE3:Kje>=930&&yEd>=550||Kje>=550&&yEd>=930}JEo=rEt?{observe:function(M){kj(function(){var d;(d=M.onViewportEntered)==null||d.call(M)})},
unobserve:function(){}}:new JK(function(M){kj(function(){var d;
(d=M.onViewportEntered)==null||d.call(M)})})}var tL2=JEo;var S6J=_.SG(function(M){var d=!1,N=_.e5(function(R){_.mF(function(){d=!0;R.onload=null})});
_.Wg(function(){var R,X=(R=M.data)==null?void 0:R.call(M),A,l=(A=M.getSrc)==null?void 0:A.call(M).cb,k;R=(k=M.config)==null?void 0:k.call(M);if(k=N.value){ueN(k,R);var T;UK2(k,X||null,function(W,w){if(!d)return l?l(W,w):W},R,(T=M.lazy)==null?void 0:T.call(M))}});
return _.g("img",{el:N})},"c");
S6J.idomCompat=!0;_.Jt=_.SG(function(M){var d=function(){var N,R=M.data(),X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i,vj,Pj,sS,tL,b2,Hj,LZ;var w3={contentMode:(X=M.contentMode)==null?void 0:X.call(M),loadedClass:(A=M.loadedClass)==null?void 0:A.call(M),isPreloaded:(l=M.isPreloaded)==null?void 0:l.call(M),notifyOnLoaded:(k=M.notifyOnLoaded)==null?void 0:k.call(M),notifyOnUnloaded:(T=M.notifyOnUnloaded)==null?void 0:T.call(M),preferredThumbnail:(W=M.preferredThumbnail)==null?void 0:W.call(M),preserveHeight:(w=M.preserveHeight)==
null?void 0:w.call(M),preserveWidth:(p=M.preserveWidth)==null?void 0:p.call(M),objectPosition:(m=M.objectPosition)==null?void 0:m.call(M),targetWidth:(I=M.targetWidth)==null?void 0:I.call(M),targetHeight:(O=M.targetHeight)==null?void 0:O.call(M),shouldShowPlaceholder:(y=M.shouldShowPlaceholder)==null?void 0:y.call(M),useWidth:(c=M.useWidth)==null?void 0:c.call(M),alt:(e=M.alt)==null?void 0:e.call(M),className:(t=M.className)==null?void 0:t.call(M),onerror:M.onerror,onload:M.onload,style$:((C=M.style$)==
null?void 0:C.call(M))||((U=M.style)==null?void 0:U.call(M)),color:(Fi=M.color)==null?void 0:Fi.call(M),width:(Y=M.width)==null?void 0:Y.call(M),height:($i=M.height)==null?void 0:$i.call(M),"aria-hidden$":(Hj=(vj=M["aria-hidden$"])==null?void 0:vj.call(M))!=null?Hj:(Pj=M.ariaHidden)==null?void 0:Pj.call(M),draggable:(sS=M.draggable)==null?void 0:sS.call(M),"data-disabled$":(LZ=(tL=M["data-disabled$"])==null?void 0:tL.call(M))!=null?LZ:(b2=M.dataDisabled)==null?void 0:b2.call(M)};return Y5j(R,w3,(N=
M.hideOn404)==null?void 0:N.call(M))};
return _.g(_.pF,null,_.g(_.gK,{when:function(){var N;return((N=d())==null?void 0:N.type)==="image"}},function(){return _.g(S6J,{data:function(){return d().image},
getSrc:{cb:function(N,R){var X=d().image.sources,A=d().config.isPreloaded,l=d().config.useWidth,k=d().config.targetWidth,T=d().config.targetHeight,W=d().config.preferredThumbnail;return _.zE6(R,X,A,l,k,T,W)||""}},
config:function(){var N=d().config,R;for(R in N)N[R]===void 0&&delete N[R];return N},
lazy:M.renderLazy})}),_.g(_.gK,{when:function(){var N;
return((N=d())==null?void 0:N.type)==="icon"}},function(){return _.g(_.Fc,{icon:function(){return d().iconName},
role:function(){return d().config.role},
className:function(){return d().config.className},
style:function(){return d().config.style$+";width: "+(d().config.width+"px;height: ")+(d().config.height+"px;color: ")+(d().config.color+";")},
ariaLabel:function(){return d().config["aria-label$"]},
ariaHidden:function(){return d().config["aria-hidden$"]},
dataDisabled:function(){return d().config["data-disabled$"]}})}))},"d");
_.Jt.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var zjm=function(M){return function(d){return _.g(jqj,null,function(){var N=d.data(),R=_.QJ(d.config);return _.g(na,null,function(){return void M(N,R)})})}}(NjZ),M7Z=_.SG(function(M){var d=function(R){var X,A=_.Zmi(function(m){X=hl(function(){for(var I=_.V(w()),O=I.next();!O.done;O=I.next()){O=RSN(O.value);
O=typeof O==="string"?document.createTextNode(O):O;if(!(O instanceof Node)){I=new _.WJ("Part is not a node",O,typeof O);_.qZ(I);break}m.appendChild(O)}})}),l=SC(function(){return Qyr(R())},{isEqual:Em2}),k=_.Jy(M.config),T=function(){var m,I=l();
return!((m=k())==null||!m.ariaLabel)||!(I.commandRuns&&I.commandRuns.length!==0||I.paragraphStyleRuns&&I.paragraphStyleRuns.length!==0)},W=SC(k,{isEqual:FWj}),w=function(){var m=hEA(l(),W());
INA(m,W());return l().content?omZ(l().content,m).parts:[]},p=!0;
_.Wg(function(){l();W();if(p)p=!1;else{var m=w();Promise.resolve().then(function(){var I=A.value;if(I){I.innerText="";var O;(O=X)==null||O();X=_.hA(I,function(){return _.g(X7A,{parts:m})})}})}});
return _.g("span",{el:A,class:function(){return l()&&XZ2(l(),k())},
dir:function(){var m;return((m=k())==null?0:m.userInput)?"auto":void 0},
"aria-label":function(){var m;return T()?(m=k())==null?void 0:m.ariaLabel:void 0},
role:function(){return T()?"text":void 0}})},N;
return((N=M.config)==null?0:N.renderedFromFormattedString)?d(M.text):_.g(_.kV,{cond:M.text,then:d})},"e");
M7Z.idomCompat=!0;_.lG=_.SG(function(M){var d=_.Jy(M.text),N=AGi(M);M.renderedFromFormattedString!==void 0&&(N.renderedFromFormattedString=!0);return _.Q("attr_string_reactive")?_.g(M7Z,{text:d,config:N}):_.g(_.kV,{cond:function(){var R;return d()&&((R=Qyr(d()))==null?void 0:R.content)},
then:function(){return _.g(zjm,{data:M.text,config:N})},
debugInstance:"Apcuac"})},"f");
_.lG.idomCompat=!0;var lPN=function(M,d,N){d=d===void 0?"unknown":d;N=N===void 0?{}:N;_.WJ.call(this,M+" ("+d+")",Object.assign({},{name:"YtWcwError",tagName:d},N));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(lPN,_.WJ);_.WWZ=new WeakMap;_.gUZ=!1;var Dkj,w7Z,Bjr,TjN;_.cA=Symbol("ih");_.bI=Symbol("jh");Dkj=Symbol("kh");w7Z=new Set(Object.getOwnPropertyNames(Element.prototype));Bjr=!_.Q("web_wcw_disable_component_function_named_child_props");TjN=Symbol("lh");var b0L=_.SG(function(M){return _.g("yt-attributed-string",{"aria-label":M.ariaLabel,hidden:M.hidden,id:M.id,class:M.className,"force-default-style":M.forceDefaultStyle},_.g(_.lG,{text:M.data,ariaLabel:M.ariaLabel,ellipsisTruncate:M.ellipsisTruncate,isOverlay:M.isOverlay,linkInheritColor:M.linkInheritColor,noPreWrap:M.noPreWrap,noWrap:M.noWrap,userInput:M.userInput,noEndpoints:M.noEndpoints,headerRuns:M.headerRuns}))},"g");
_.Q("web_wiz_attributed_string")&&_.eC(b0L,"yt-attributed-string",{props:{ariaHidden:_.cA,ariaLabel:_.cA,className:_.cA,ellipsisTruncate:_.cA,isOverlay:_.cA,linkInheritColor:_.cA,noEndpoints:_.cA,noStyleRuns:_.cA,noLinkColor:_.cA,noPreWrap:_.cA,noWrap:_.cA,skipOnClick:_.cA,userInput:_.cA,headerRuns:_.cA,id:_.cA,data:_.cA,hidden:_.cA,forceDefaultStyle:_.cA,text:_.bI,stopPropagation:_.bI,disableUpgrade:_.bI,disable:_.bI,slot:_.bI}});var SV=function(){return _.n.apply(this,arguments)||this};
_.v(SV,_.n);SV.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},NjZ(this.data,this.config))};
_.G([_.S(uGo),_.a("design:type",Object)],SV.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SV.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SV.prototype,"ariaLabel",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"disable",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"ellipsisTruncate",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"isOverlay",void 0);
_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"linkInheritColor",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"noPreWrap",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"noWrap",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"userInput",void 0);_.G([_.H(),_.a("design:type",Boolean)],SV.prototype,"noEndpoints",void 0);_.G([_.H(),_.a("design:type",Array)],SV.prototype,"headerRuns",void 0);
SV=_.G([_.w4({is:"yt-attributed-string",disableElementRegistration:!0})],SV);
_.Q("web_wiz_attributed_string")||_.L(SV,"yt-attributed-string",function(){if(mqd===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
M.content.insertBefore(pWd().content.cloneNode(!0),M.content.firstChild);mqd=M}M=mqd;return M},{mode:2});var ejV,H0C,vUv;ejV=function(){this.firstThumbnailLoaded=!1};
_.nJC=function(){H0C||(H0C=new ejV);return H0C};
vUv=function(M){var d=_.nJC();d.firstThumbnailLoaded||(d.firstThumbnailLoaded=!0,_.v1("ftl",M))};
ejV.prototype.reset=function(){this.firstThumbnailLoaded=!1};var mki=0,IPi=new WeakMap,Q5Z=0,iI=new Set;var i0o,fnz=function(){return i0o!==void 0?i0o:i0o=document.createElement("template")};
document.head.appendChild(fnz().content);var LjJ;var PZi,rGi,zn;_.tt=_.Np.caches;zn=function(){};
zn.prototype.open=function(M){return _.tt.open(tTV(M))};
zn.prototype.has=function(M){return _.tt.has(tTV(M))};
zn.prototype.delete=function(M){return _.tt.delete(tTV(M))};
zn.prototype.match=function(M,d){var N=this,R,X,A,l,k,T;return _.B(function(W){switch(W.nextAddress){case 1:return _.D(W,N.keys(),2);case 2:R=W.yieldResult,X=_.V(R),A=X.next();case 3:if(A.done){W.jumpTo(5);break}l=A.value;return _.D(W,N.open(l),6);case 6:return k=W.yieldResult,_.D(W,k.match(M,d),7);case 7:if(T=W.yieldResult)return W.return(T);A=X.next();W.jumpTo(3);break;case 5:return W.return()}})};
var KWr=function(){};
_.v(KWr,zn);var tTV=function(M){if(M.includes(":"))throw Error("oh`"+M);return M+":"+_.Ds("CacheStorage get")};
KWr.prototype.keys=function(){var M,d,N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1)return M=[],d=_.Ds("CacheStorage keys"),_.D(W,_.tt.keys(),2);N=W.yieldResult;R=_.V(N);for(X=R.next();!X.done;X=R.next())A=X.value,l=_.s5r(A),k=l.originalName,T=l.datasyncId,T===d&&M.push(k);return W.return(M)})};var bW=function(){var M=_.n.apply(this,arguments)||this;M.objectURL=null;M.loadTime=Infinity;return M};
_.v(bW,_.n);_.F=bW.prototype;_.F.renderIdom=function(){j5p(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&Cji(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.F.objectFitToContentMode=function(M){switch(M){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.F.logThumbnailFailureVe=function(){var M=_.Tx(197497);_.NT(_.Nx(),M);var d=_.Ou();d&&M&&d&&_.zR(d,[M])};
_.F.loadImageFromCacheIfExists=function(M){var d=this,N=M.target;(N==null?0:N.src)&&JG2(N.src).then(function(R){d.objectURL=_.WQ(R).toString();d.setSrc(N,d.objectURL)}).catch(function(){})};
_.F.onError=function(M){var d=this;if(_.Q("web_use_cache_for_image_fallback")){var N=M.target;N&&JG2(N.src).then(function(R){d.objectURL=_.WQ(R).toString();d.setSrc(N,d.objectURL)}).catch(function(){_.Q("kevlar_woffle_log_thumbnail_failure_ve")&&d.logThumbnailFailureVe();
_.Q("kevlar_woffle_fallback_image")&&d.setSrc(N,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.F.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.F.setConfig=function(){var M=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(d){M.loadImageFromCacheIfExists(d);M.revokeObjectURL();Or2(M.hostElement)},
onerror:function(d){M.onError(d)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.Q("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.F.setSrc=function(M,d){d&&(M.src=d)};
_.G([_.S(uGo),_.a("design:type",Object)],bW.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],bW.prototype,"alt",void 0);_.G([_.H(),_.a("design:type",Boolean)],bW.prototype,"ftlEligible",void 0);_.G([_.H(),_.a("design:type",Number)],bW.prototype,"height",void 0);_.G([_.H(),_.a("design:type",Boolean)],bW.prototype,"notifyOnLoaded",void 0);
_.G([_.H(),_.a("design:type",Boolean)],bW.prototype,"notifyOnUnloaded",void 0);_.G([_.H(),_.a("design:type",String)],bW.prototype,"objectFit",void 0);_.G([_.H(),_.a("design:type",String)],bW.prototype,"objectPosition",void 0);_.G([_.H(),_.a("design:type",String)],bW.prototype,"preferredThumbnail",void 0);_.G([_.H(),_.a("design:type",Boolean)],bW.prototype,"preserveHeight",void 0);_.G([_.H(),_.a("design:type",Boolean)],bW.prototype,"preserveWidth",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],bW.prototype,"useWidth",void 0);_.G([_.H({value:function(){return!_.KF("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.a("design:type",Boolean)],bW.prototype,"shouldRenderLazy",void 0);_.G([_.H(),_.a("design:type",Number)],bW.prototype,"width",void 0);bW=_.G([_.w4({is:"yt-image",disableElementRegistration:!0})],bW);
_.L(bW,"yt-image",function(){if(LjJ===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(fnz().content.cloneNode(!0),M.content.firstChild);
LjJ=M}M=LjJ;return M},{mode:2});var eV=function(){return _.n.apply(this,arguments)||this};
_.v(eV,_.n);eV.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var M=_.ht(this.data.onVisibleCommand);M&&this.ytComponentBehavior.resolveCommand(M)}};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],eV.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.oh.YtVisibilityBehavior),_.a("design:type",Object)],eV.prototype,"ytVisibilityBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eV.prototype,"data",void 0);eV=_.G([_.w4({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],eV);
_.L(eV,"yt-bumper-user-edu-content-view-model",function(){if(GAt===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;t3I===void 0&&(t3I=document.createElement("template"));var R=t3I;N.call(d,R.content.cloneNode(!0),M.content.firstChild);GAt=M}M=GAt;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var GKg;var ane,UqC=function(){if(ane!==void 0)return ane;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;GKg===void 0&&(GKg=document.createElement("template"));var R=GKg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return ane=M};var u2V;_.HA={};u2V=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"]);_.HA.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var M=this.getContext_();return M?M.getTaskManager():_.IQ},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var M=_.YP(this.hostElement,"yt-get-context-provider",{});M.detail&&M.detail.contextProvider?this.cachedProviderNode_=M.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return u2V.has(this.hostElement.localName)},
getNetworkManager:function(){var M=this.getContext_();if(M)return M.getNetworkManager()}};var Hrq,CEd,Y6d,xqC;_.n$=function(M){var d=CEd.get(M);if(d&&(d=d.pop()))return xqC++,d;Y6d++;try{var N=document.createElement(M)}catch(R){throw new _.WJ("ElementPool failed to create element",M,R.message);}return N};
Hrq=function(M){var d=M.is;if(d){var N=CEd.get(d);N||(N=[],CEd.set(d,N));var R=_.rK("ELEMENT_POOL_CONFIG")||{};N.length>=(R[d]!==void 0?R[d]:_.rK("ELEMENT_POOL_DEFAULT_CAP",0))||N.push(M)}else _.vh(new _.WJ("Element pool should only handle custom elements:",M.nodeName))};
CEd=new Map;Y6d=0;xqC=0;var Gr=new WeakMap,eSq=new WeakMap;var EJd;_.iW=function(M,d,N){N=N===void 0?_.Pa():N;this.JSC$11517_defaultPriority=M;this.signal=d;this.scheduler=N;this.nextJobDescriptor=0;this.JSC$11517_parkedJobs=[];this.scheduledJobs=new Map};
_.f$=function(M,d){if(d){var N=_.K4();M.signal&&!_.ym(N,M.signal)?(N.addListener(M.signal,function(){M.processSignal()}),M.JSC$11517_parkedJobs.push({job:d,
priority:void 0})):Z0V(M,d)}};
EJd=function(M,d){if(d!==M.JSC$11517_defaultPriority){M.JSC$11517_defaultPriority=d;for(var N=_.V(M.scheduledJobs.values()),R=N.next();!R.done;R=N.next())R=R.value,M.scheduler.cancelJob(R.jobId),R.jobId=M.scheduler.addJob(R.jobWrapper,d)}};
_.iW.prototype.flushJobs=function(){EJd(this,10);this.processSignal()};
_.iW.prototype.cancel=function(){for(var M=_.V(this.scheduledJobs),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;this.scheduler.cancelJob(N.jobId);this.scheduledJobs.delete(d)}this.JSC$11517_parkedJobs=[]};
_.iW.prototype.processSignal=function(){for(var M=_.V(this.JSC$11517_parkedJobs),d=M.next();!d.done;d=M.next())d=d.value,Z0V(this,d.job,d.priority);this.JSC$11517_parkedJobs=[]};
var Z0V=function(M,d,N){N=N||M.JSC$11517_defaultPriority;if(N===10)fq(d);else{var R=M.nextJobDescriptor++,X=function(){d();M.scheduledJobs.delete(R)},A=M.scheduler.addJob(X,N);
M.scheduledJobs.set(R,{jobWrapper:X,jobId:A,priority:N})}};_.aR(LWi);var t7A={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};vvL({beforeVisit:function(M){if(f6.has(M.type)){var d;(d=M.props).idomKey!=null||(d.idomKey=M.type)}else M.type.TAG_NAME&&(n6=M.type.TAG_NAME)},
afterRender:function(M,d){var N;n6=(N=d==null?void 0:d.type)!=null?N:""},
didPatch:function(){n6=""}});var MLo;_.L$={};MLo={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.L$.YtRendererstamperBehavior=[_.HA.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var M in this.stampDom){var d=this.stampDom[M];d&&d.id&&this.addReactiveSchema({type:"observe",method:{methodName:Sgi(d.id),args:[{type:"wildcard",path:M}]}})}else{(M=(this.constructor.generatedFrom||this).observers)||(M=[]);for(d in this.stampDom){var N=this.stampDom[d];N&&N.id&&M.push(Sgi(N.id)+"("+d+".*)")}this.constructor.generatedFrom.observers=M}},
addStampDomObserverFns_:function(){for(var M in this.stampDom){var d=this.stampDom[M];d.id?(this[Sgi(d.id)]=this.rendererStamperObserver_.bind(this,M,d.id),this.hasDataPath_[M]=!1):(d=new _.WJ("Bad rendererstamper config",this.is+":"+M),_.qZ(d))}},
rendererStamperObserver_:function(M,d,N){if(N.path==M){if(N.value===void 0&&!this.hasDataPath_[M])return;this.hasDataPath_[M]=N.value!==void 0}this.rendererStamperApplyChangeRecord_(M,d,N)},
rendererStamperApplyChangeRecord_:function(M,d,N){var R=this.renderJobsMap_[d],X=null;M==N.path?(N=N.value,_.CZ(N)||(N=N===void 0||N===null?[]:[N]),M=this.stampDom[M],M.mapping&&(X=this.stampDomArray_.bind(this,N,d,M.mapping,M.reuseComponents,M.events,M.stamperStableList)),R&&R.cancel(),N=M.usePageScheduler?this.getTaskManager():void 0,R||M.initialRenderPriority==void 0)?M.renderPriority==void 0||R||(R=new _.iW(M.renderPriority,M.waitForSignal,N),this.renderJobsMap_[d]=R):(R=new _.iW(M.initialRenderPriority,
M.waitForSignal,N),this.renderJobsMap_[d]=R,X=function(A,l){A();EJd(l,10)}.bind(this,X,R)):X=M+".splices"==N.path?this.stampDomArraySplices_.bind(this,M,d,N.value):this.forwardRendererStamperChanges_.bind(this,M,d,N);
R?_.f$(R,X):X()},
forwardRendererStamperChanges_:function(M,d,N){var R=N.path.slice(M.length+1),X=this.getStampContainer_(d),A=R.indexOf("."),l=R.substring(0,A),k=!1,T=0,W=parseInt(l,0);if(l[0]=="#"){k=parseInt(l.substring(1),0);W=this.get(M);var w=this.get([M,l]);W[k]==w?T=k:T=W.indexOf(w);k=!0}else isNaN(W)||(T=W,k=!0);k&&(R=R.substring(l.length+1),A=R.indexOf("."));l=_.Wl(X).children[T];var p;if(X=(p=l==null?void 0:l.polymerController)!=null?p:l)R="data"+R.slice(A),typeof X.notifyPath!=="function"?_.vh(new _.WJ("notifyPath missing",
this.is+": "+M+", "+d)):N.value?X.notifyPath(R,N.value):X.notifyPath(R)},
stampDomArraySplices_:function(M,d,N){if(N&&N.indexSplices){var R=this.getStampContainer_(d);if(R){for(var X=_.Wl(R),A=brZ(this.stampDom[M].reuseComponents),l=N.indexSplices.length,k=0;k<l;k++){for(var T=N.indexSplices[k],W=X.children[T.index],w=T.removed.length;w>0;w--)W&&W.parentElement&&(_.Wl(W.parentElement).removeChild(W),A&&Hrq(W),W=X.children[T.index]);w=this.stampDom[M].mapping;for(var p=T.index+T.addedCount,m=document.createDocumentFragment(),I=A,O=T.index;O<p;O++){var y=T.object[O],c=cGZ(w,
y);if(c){var e=w[c];y=y[c];c=this.getComponentName_(e,y);var t=W?Gr.has(W):!1;I&&W&&W.is==c&&t?(c=W,this.telemetry_.reuse++,W=W.nextElementSibling):I&&W&&t?(c=this.createComponent_(e,y,A),t=_.Wl(W).nextElementSibling,X.insertBefore(c,t),irr(this.is,X,W,A),W=t):(I=!1,c=this.createComponent_(e,y,A),m.appendChild(c));this.deferRenderStamperBinding_(c,e,y)}else e=new _.WJ("Unimplemented type",M,d,R.tagName,Object.keys(y)[0]),_.qZ(e)}X.insertBefore(m,W)}this.flushRenderStamperComponentBindings_();this.stampDom[M].events&&
_.YP(this.hostElement,"yt-rendererstamper-finished",{container:R})}else M=new _.WJ("Container object not found",d,this.hostElement?this.hostElement.is:""),_.qZ(M)}},
stampDomArray_:function(M,d,N,R,X,A){var l=this.getStampContainer_(d);if(l)if(d=_.Wl(l),R=brZ(R),M){var k=0,T=0,W;if(A=A===void 0?_.KF("STAMPER_STABLE_LIST",!1):A||!1)for(W=d.firstElementChild;W&&!Gr.has(W)&&M.length>T;){A=M[T];var w=cGZ(N,A);if(w){if(this.getComponentName_(N[w],A[w])!=W.is){var p=this.createComponent_(N[w],A[w],R),m=_.Wl(W).nextElementSibling;m?d.insertBefore(p,m):d.appendChild(p);irr(this.is,d,W,R);W=p}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(W,N[w],A[w]);k++;
T++;W=_.Wl(W).nextElementSibling}else T++}fPZ(this.is,d,k,R);k=W;if(M.length>T){A=document.createDocumentFragment();for(w=M.length;T<w;T++)if(p=M[T],m=cGZ(N,p))W=this.createComponent_(N[m],p[m],R),this.deferRenderStamperBinding_(W,N[m],p[m]),A.appendChild(W);k&&_.Wl(k).parentNode&&W&&!Gr.has(W)?d.insertBefore(A,k):d.appendChild(A)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();X&&_.YP(this.hostElement,"yt-rendererstamper-finished",{container:l})}else fPZ(this.is,d,0,
R);else M=new _.WJ("Container object not found",d,this.hostElement?this.hostElement.is:""),_.qZ(M)},
getStampContainer_:function(M){return this.$&&this.$[M]||_.K(this.hostElement).querySelector("#"+M)},
getComponentName_:function(M,d){return typeof M==="string"?M:M.matcher?M.matcher.call(this,d):M.component},
createComponent_:function(M,d,N){M=this.getComponentName_(M,d);try{var R=L6.has(M)||f6.has(M);if(N&&!R){var X=_.n$(M);try{_.UO(X)}catch(A){N="Failed to clear styles for "+M+".",A.message&&(N+=" Original error: "+A.message),_.vh(new _.WJ(N))}}else X=document.createElement(M)}catch(A){return X="YtRendererStamperBehavior failed to create "+M+".",A.message&&(X+=" Original description: "+A.message),A.message="YtRendererStamperBehavior failed to create element",_.OD(A,X),MLo.hasOwnProperty(M)?_.vh(A):_.qZ(A),
document.createElement("SPAN")}this.telemetry_.create++;return X},
deferRenderStamperBinding_:function(M,d,N){this.deferredBindingTasks_.push({component:M,typeOrConfig:d,data:N})},
flushRenderStamperComponentBindings_:function(){for(var M=0,d=this.deferredBindingTasks_.length;M<d;M++){var N=this.deferredBindingTasks_[M];if(!N)break;var R=void 0,X=void 0,A=void 0,l=void 0,k=N.component,T=N.typeOrConfig;N=N.data;var W=(l=k.polymerController)!=null?l:k;l=k.loggingStatus;try{l&&(l.isRendererStamper=!0);if(typeof T!=="string"){for(A in T.attributes)T.attributes[A]===!0?k.setAttribute(A,""):T.attributes[A]===!1?k.removeAttribute(A):k.setAttribute(A,T.attributes[A]);for(X in T.params)W[X]=
T.params[X],k!==W&&VE(k.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(R in T.properties){var w=T.properties[R];if(w){var p=zSi(w);W[R]=this.get(p);k!==W&&VE(k.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(R==="on-tap"||R==="on-click"){var m=this.get(p);k.addEventListener("click",m);eSq.set(k,{property:R,listener:{type:"element",eventName:"click",handler:m}})}}else{var I=new _.WJ("Undefined property binding",R);_.qZ(I)}}}if(T.classListBinding){var O=zSi(T.classListBinding),
y=O?this[O]:null;if(y)for(R=0;R<y.length;R++)_.t2(k,y[R],!0)}W.data=N}finally{l&&(l.isRendererStamper=!1)}if(R=Gr.get(k))k.hidden=!1,Gr.delete(k),_.IQ.cancelJob(R)}this.deferredBindingTasks_.length=0}}];_.tK={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(M){for(var d=_.ch.getInstance(),N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next()){var X=R.value;R=M[X];if(this&&this[R]){var A=d.actionRoutingMap.get(X);A||(A=new Map,d.actionRoutingMap.set(X,A));d.registerActionHandler(this,X,this[R].bind(this),A)}else X=Error("id"),X.params=R,_.yD(X)}},
unregisterActionMap:function(M){_.zi(_.ch.getInstance(),M,this)}}]};var uI=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var Uz;var Cq=new Map;var RQr=window.matchMedia("(forced-colors: active)").matches;var dKo;var NXL;var VeS=new _.x5("LOTTIE_LOADER_TOKEN");_.aR(lij);_.eC(_.SG(function(M){return _.g("ytd-lottie-player",{id:M.id,hidden:M.hidden,class:M.className,"aria-label":M.ariaLabel,style:"display: block;"},_.g(_.Yj,{data:M.data,animationName:function(){var d;return((d=M.data().animationConfig)==null?void 0:d.name)||""},
animationRef:function(){return M.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.cA,
id:_.cA,hidden:_.cA,className:_.cA,ariaLabel:_.cA}});var Gn=function(){var M=_.n.apply(this,arguments)||this;M.animationRef={};return M};
_.v(Gn,_.n);_.F=Gn.prototype;
_.F.handlePropertyChange=function(){var M=this.animatedIcon,d=this.active,N=this.isDarkTheme;if(M){var R=this.previousActive!==d;this.previousActive=d;this.animationRef.lottieEl?R&&this.toggleAnimation(d,M.totalFrames):d?this.initializeAnimationAsToggled(M.lottiePlayerProps,M.totalFrames):this.initializeAnimationAsUntoggled(M.lottiePlayerProps);M.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=M.type;this.lottiePlayerProps=this.computeLottiePlayerProps(M,N)}};
_.F.computeLottiePlayerProps=function(M,d){var N=this.deepCloneLottiePlayerProps(M);d?(d=M.nameDarkTheme,M=M.pathDarkTheme):(d=M.name,M=M.path);N.animationConfig.name=d;(d=Cq.get(M))?N.animationConfig.animationData=d:N.animationConfig.path=M;return N};
_.F.initializeAnimationAsToggled=function(M,d){M.animationConfig.initialSegment=[d-1,d]};
_.F.initializeAnimationAsUntoggled=function(M){M.animationConfig.initialSegment=void 0};
_.F.toggleAnimation=function(M,d){if(M){var N;(N=this.animationRef.lottieEl)==null||N.playSegments([0,d],!0)}else{var R;(R=this.animationRef.lottieEl)==null||R.playSegments([0,1],!0)}};
_.F.deepCloneLottiePlayerProps=function(M){var d=Object.assign({},M.lottiePlayerProps.animationConfig);M=Object.assign({},M.lottiePlayerProps);M.animationConfig=d;return M};
Gn.prototype.handlePropertyChange=Gn.prototype.handlePropertyChange;_.G([_.H(),_.a("design:type",Object)],Gn.prototype,"animatedIcon",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gn.prototype,"active",void 0);_.G([_.H(),_.a("design:type",Boolean)],Gn.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Gn.prototype,"animatedIconType",void 0);_.G([_.H(),_.a("design:type",Boolean)],Gn.prototype,"previousActive",void 0);
_.G([_.H(),_.a("design:type",Object)],Gn.prototype,"lottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],Gn.prototype,"animationRef",void 0);_.G([_.xB("animatedIcon","active","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gn.prototype,"handlePropertyChange",null);Gn=_.G([_.w4({is:"yt-animated-icon",disableElementRegistration:!0})],Gn);
_.L(Gn,"yt-animated-icon",function(){if(NXL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;dKo===void 0&&(dKo=document.createElement("template"));var R=dKo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);NXL=M}M=NXL;return M},{mode:2});var REC;var XZL;var kGi=_.SG(function(M){var d=_.Hh(),N=Ol(function(){return{value:null}});
_.mF(function(){var X;(X=N.value)==null||X.cancel()});
var R=_.Al(M.data,{equals:function(X,A){return X.iconName===A.iconName&&X.iconStyle===A.iconStyle&&X.iconSize===A.iconSize&&X.iconSetName===A.iconSetName&&X.iconSelected===A.iconSelected}},"aoiXAb");
_.Wg(function(){var X,A=(X=M.options)==null?void 0:X.call(M);BE6(d,N,R(),A)});
return _.g("span",{class:"yt-icon-shape",el:d})},"i");
kGi.idomCompat=!0;var qhA=["youtube_fill","youtube_outline"];var FpL=new _.IH({type:"iconset",value:void 0}),ah=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.iconName="";M.iconsetName="yt-icons";M.iconset=null;M.missingIconSet=!1;M.iconType=null;M.iconShapeDataSignal=_.d0(void 0,void 0,"RQ9kUb");M.renderingOptionsSignal=_.d0({iconWidth:"100%",iconHeight:"100%",iconFilter:M.iconFilter},void 0,"qtx8Ef");M.wizHasRendered=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(ah,_.n);_.F=ah.prototype;_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.F.handlePropertyChange=function(){var M=this,d,N,R,X,A,l,k,T,W,w,p;return _.B(function(m){switch(m.nextAddress){case 1:if(d=!M.icon&&!M.iconName||!M.isAttached)return m.return();N=M;R=N.icon;X=N.size;A=N.defaultToFilled;l=N.active;k=N.targetContainer;M.toggleContainerClass(k);_.Q("kevlar_use_wil_icons")&&R&&(T=H8Z(R),T.length?_.Q("kevlar_icon_type_fix_killswitch")?(W=T[1].toUpperCase(),M.iconType=rWt[W],M.iconType||(M.iconType=T[1])):M.iconType=T[1]:M.iconType=null);if(R){m.jumpTo(2);break}M.iconsetName=
"";M.iconName="";return _.D(m,M.renderIcon(k,R),3);case 3:return m.return();case 2:w=M.computeIcon(R);p=H8Z(w);p.length&&(M.iconsetName=p[0],M.iconName=p[1]);if(!_.Q("kevlar_use_wil_icons")){m.jumpTo(4);break}return _.D(m,M.getIconShapeData(),5);case 5:M.iconShapeData=m.yieldResult;case 4:if(M.shouldRenderIconShape(k)){m.jumpTo(6);break}return _.D(m,M.determineIconSet(w,l,A,X,k),6);case 6:return _.D(m,M.renderIcon(k,R),0)}})};
_.F.toggleContainerClass=function(M){M?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.F.computeIcon=function(M){return!_.Q("default_to_innertube_icon")||M.indexOf(":")>0?M:_.C6(M)};
_.F.determineIconSet=function(M,d,N,R){var X=this;return _.B(function(A){return A.nextAddress==1?_.Q("kevlar_system_icons")||_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.rK("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.D(A,X.switchToYtSysIconset(M,d,N,R),3):A.jumpTo(2):A.nextAddress!=2?A.return():_.D(A,X.useYtSysIconsetForMissingIcons(M,d,N,R),0)})};
_.F.switchToYtSysIconset=function(M,d,N,R){var X=this,A,l,k,T,W,w,p;return _.B(function(m){switch(m.nextAddress){case 1:if(!M||X.iconsetName!=="yt-icons"&&X.iconsetName!=="yt-sys-icons"){m.jumpTo(0);break}A=H8Z(M);l=A[1];l=_.CQN(l);_.Q("enable_polymer_icons_replace_underscores_dash")&&l.includes("_filled")&&(l=l.replace(/_filled/g,"-filled"));return _.D(m,uu(l,!0),3);case 3:return k=m.yieldResult,_.D(m,uu(l,!1),4);case 4:if((T=m.yieldResult)||d&&k)X.iconsetName="yt-sys-icons";X.iconName=X.getIconName(l,
d,N,T,k);if(R===24){m.jumpTo(0);break}W="yt-sys-icons"+R+":"+X.iconName;return _.D(m,uu(W,!1,!0),6);case 6:return w=m.yieldResult,_.D(m,uu(W,!0,!0),7);case 7:p=m.yieldResult;X.iconName=X.getIconName(l,d,N,w,p);if(!d&&w||d&&p)X.iconsetName="yt-sys-icons"+R;_.Vy(m)}})};
_.F.getIconName=function(M,d,N,R,X){M.includes("-filled")&&(M=M.replace("-filled",""));return X&&(d||N)?M+"-filled":M};
_.F.useYtSysIconsetForMissingIcons=function(M,d,N,R){var X=this,A,l;return _.B(function(k){if(k.nextAddress==1)return X.iconsetName!=="yt-icons"?k.jumpTo(0):_.D(k,uu(X.iconName,!1,!1,!0),3);if(k.nextAddress!=4)return A=k.yieldResult,_.D(k,uu(X.iconName,!1),4);l=k.yieldResult;if(A||!l)return k.jumpTo(0);X.iconsetName="yt-sys-icons";return _.D(k,X.switchToYtSysIconset(M,d,N,R),0)})};
_.F.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.F.getIconManager=function(){return _.B(function(M){try{return M.return(_.h().resolve(_.xQ))}catch(d){return M.return(new Promise(function(N){_.K4().parkOrScheduleJob(function(){N(_.h().resolve(_.xQ))},2,"ci")}))}})};
_.F.getIconShapeData=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1){if(!M.iconType)return k.return(void 0);d=M.iconType.toLowerCase();N=d.endsWith("_filled")||d.endsWith("-filled");return _.D(k,M.getIconManager(),2)}R=k.yieldResult;X=M.active||M.defaultToFilled||N?"youtube_fill":"youtube_outline";A={iconName:d,iconStyle:X,iconSize:M.size,iconSetName:M.iconsetName};l=!!R.resolveIcon(A);l||(A.iconSize=void 0,l=!!R.resolveIcon(A));!l&&N&&(A.iconName=d.substring(0,d.length-
7),A.iconSize=M.size,l=!!R.resolveIcon(A),l||(A.iconSize=void 0,l=!!R.resolveIcon(A)));l||(A.iconStyle=void 0,l=!!R.resolveIcon(A));l||_.vh(new _.WJ("Icon not supported",{iconName:A.iconName,iconStyle:A.iconStyle,iconSize:A.iconSize,iconType:d}));return k.return(l?A:void 0)})};
_.F.shouldRenderIconShape=function(M){if(!_.Q("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;M=this.getContainer(M);return!X8i(M,this.icon)};
_.F.renderIcon=function(M,d){var N=this,R,X,A,l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:if(d&&N.icon!==d)return p.return();R=N.getContainer(M);X=X8i(R,N.icon);if(N.shouldRenderIconShape(M)&&N.iconType)return N.applyIconShape(X,R),p.return();N.removeIconShape();if(!R)return p.return();N.iconName===""&&N.iconset&&R&&(N.removeStaticIcon(N.iconset,R),X&&N.removeAnimatedIcon(R));if(N.iconName===""&&N.iconset||!N.iconsetName||!FpL)return p.return();N.iconset=FpL.byKey(N.iconsetName);
if(!N.iconset)return N.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ux(N,N.onIconsetAdded)),p.return();N.missingIconSet&&(N.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ux(N,N.onIconsetAdded)));l=(A=X||N.isAnimatedIcon?NEZ(N.icon):void 0)&&!A.lazyLoad;T=A&&((k=A)==null?void 0:k.lazyLoad)&&(A.lottiePlayerProps.animationConfig.animationData?!0:Cq.get(N.isDarkTheme?A.pathDarkTheme:A.path)?!0:!1);if(l||T)return N.applyAnimatedIcon(R,A,N.iconset),p.return();if(T||
(W=A)==null||!W.lazyLoad){p.jumpTo(2);break}w=Aqv(A,N.isDarkTheme);N.applyStaticIcon(N.iconset,R,N.iconName,M,X);return _.D(p,w,3);case 3:return _.D(p,N.renderIcon(N.targetContainer,N.icon),4);case 4:return p.return();case 2:N.applyStaticIcon(N.iconset,R,N.iconName,M,X),_.Vy(p)}})};
_.F.getContainer=function(M){var d,N=(d=N16(this.hostElement))==null?void 0:d.host;d=!!N&&!!N.polymerController;if(!M||d)return M?this.getTargetContainer(M,N):this.hostElement};
_.F.getTargetContainer=function(M,d){var N=_.K(d).querySelector("#"+M);N||(M=new _.WJ("yt-icon container missing",d.is,M),_.qZ(M));return N};
_.F.applyStaticIcon=function(M,d,N,R,X){X&&this.removeAnimatedIcon(d);this.removeIconShape();X=X&&!!this.iconType&&!!this.iconShapeData&&_.Q("kevlar_use_wil_icons");try{X?this.applyIconShape(!1,d):M.applyIcon(d,N)}catch(A){this.handleError(A,R,d)}};
_.F.applyIconShape=function(M,d){this.iconset&&d&&(this.removeStaticIcon(this.iconset,d),M&&this.removeAnimatedIcon(d));M={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var N=_.V(this.iconShapeDataSignal);d=N.next().value;N=N.next().value;var R=_.V(this.renderingOptionsSignal),X=R.next().value;R=R.next().value;N(this.iconShapeData);R(M);if(!this.wizHasRendered)for(this.wizHasRendered=!0,M=_.V(TEi(d,X)).next().value;M.firstChild;)_.K(this.hostElement).appendChild(M.firstChild)};
_.F.removeIconShape=function(){if(_.Q("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.F.removeStaticIcon=function(M,d){M.removeIcon(d)};
_.F.applyAnimatedIcon=function(M,d,N){this.removeStaticIcon(N,M);this.removeIconShape();var R;N=this.animatedIconElement&&((R=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:R.type)===d.type;if(this.animatedIconElement&&N){this.animatedIconElement.polymerController.animatedIcon=d;var X;((X=this.animatedIconElement)==null?void 0:X.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(M),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=d,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.Q("kevlar_use_wil_icons")?M.insertBefore(this.animatedIconElement,M.childNodes[0]):(M=_.K(M),M.insertBefore(this.animatedIconElement,M.childNodes[0]))};
_.F.removeAnimatedIcon=function(M){_.Q("kevlar_use_wil_icons")?this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement):(M=_.K(M),this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.F.handleError=function(M,d,N){_.OD(M,this.iconName,d,N);d=X8i(N,this.icon);var R=!1;window.location.href.includes("JpymaW6Lh2w")?R=!0:N._svgIcon&&(N=(N=N._svgIcon.parentNode)?N.tagName:"unknown",_.OD(M,N),N==="YT-ICON"&&M.name==="NotFoundError"?R=!0:M.name==="NotFoundError"&&d&&(R=!0));R?_.vh(M):_.qZ(M)};
_.Hm.Object.defineProperties(ah,{template:{configurable:!0,enumerable:!0,get:function(){if(XZL===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;
REC===void 0&&(REC=document.createElement("template"));var R=REC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XZL=M}M=XZL;return M}}});
ah.prototype.handlePropertyChange=ah.prototype.handlePropertyChange;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ah.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",String)],ah.prototype,"icon",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ah.prototype,"active",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ah.prototype,"defaultToFilled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ah.prototype,"isAnimatedIcon",void 0);
_.G([_.H({value:24}),_.a("design:type",Number)],ah.prototype,"size",void 0);_.G([_.H({value:""}),_.a("design:type",String)],ah.prototype,"targetContainer",void 0);_.G([_.H(),_.a("design:type",Object)],ah.prototype,"animatedIconElement",void 0);_.G([_.H(),_.a("design:type",Object)],ah.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ah.prototype,"ariaHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],ah.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],ah.prototype,"role",void 0);_.G([_.H(),_.a("design:type",String)],ah.prototype,"style",void 0);_.G([_.H(),_.a("design:type",String)],ah.prototype,"iconFilter",void 0);_.G([_.xB("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],ah.prototype,"handlePropertyChange",null);
ah=_.G([_.w4({is:"yt-icon",noInjection:!0})],ah);var Aft;var VLd=function(){var M=document.body,d=M.appendChild;if(Aft===void 0){var N=document.createElement("template");_.P(N,'\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>');
Aft=N}N=Aft;d.call(M,N.content)};
document.body?VLd():window.addEventListener("DOMContentLoaded",VLd);var lNL,$Kd=function(){return lNL!==void 0?lNL:lNL=document.createElement("template")};
document.head.appendChild($Kd().content);var BXg,kWm=function(){return BXg!==void 0?BXg:BXg=document.createElement("template")};
document.head.appendChild(kWm().content);var TXd;_.TH=new _.x5("KEY_MANAGER_TOKEN");var p8S={duration:1E3,easing:"ease",fill:"forwards"};_.aR(w8N);var DKz=_.Ez(_.MN);_.aR(_.MN);_.VX=_.SG(function(M){var d=_.e5(M.ref),N=M.aTagConfig?M.aTagConfig:_.Al(function(){var A,l,k,T,W,w;var p=(w=_.ht((T=M.command)==null?void 0:T.call(M)))!=null?w:(W=M.command)==null?void 0:W.call(M);return _.qx({innertubeCommand:p,skipOnClick:(A=M.skipOnClick)==null?void 0:A.call(M),stopPropagation:(l=M.dangerousStopPropagation)==null?void 0:l.call(M),defaultTarget:(k=M.target)==null?void 0:k.call(M)})||{}},void 0,"gnrRge");
_.Wg(function(){d.value._data=N()._data;d.value.params=N().params});
var R=_.dT(function(A){var l,k;return void((k=(l=N()).onpointerdown)==null?void 0:k.call(l,A))}),X=_.dT(function(A){var l,k;
return void((k=(l=N()).onclick)==null?void 0:k.call(l,A))});
return _.g("a",{el:d,href:function(){return N().href$},
rel:function(){return N().rel$},
class:function(){var A,l;return(l=N().className)!=null?l:(A=M.className)==null?void 0:A.call(M)},
style:function(){var A;if((A=M.style)==null?0:A.call(M))return M.style();var l;return((l=M.disabled)==null?0:l.call(M))?"pointer-events:none":""},
"aria-haspopup":function(){return!!N()["aria-haspopup$"]},
"force-new-state":NN(function(){return N()["force-new-state$"]}),
title:NN(function(){var A,l;return(l=N().title$)!=null?l:(A=M.title)==null?void 0:A.call(M)}),
role:NN(function(){return N().role$}),
target:NN(function(){return N().target$}),
dir:NN(function(){var A;return((A=M.dir)==null?0:A.call(M))?M.dir():N().dir}),
tabindex:function(){var A;return N().tabindex$?Number(N().tabindex$):(A=M.tabIndex)==null?void 0:A.call(M)},
"aria-hidden":function(){var A,l;return(l=N()["aria-hidden$"])!=null?l:(A=M.ariaHidden)==null?void 0:A.call(M)},
"aria-label":function(){var A,l;return(l=N()["aria-label$"])!=null?l:(A=M.ariaLabel)==null?void 0:A.call(M)},
"aria-current":M.ariaCurrent,"aria-labelledby":M.ariaLabelledby,"aria-describedby":M.ariaDescribedby,"aria-selected":M.ariaSelected,"tab-identifier":M.tabIdentifier,"on:pointerdown":R,"on:click":X},M.children)},"j");var gmd=function(M,d){this.fillAnimation=new Animation(QsA(M),document.timeline);this.strokeAnimation=new Animation(qU2(d),document.timeline)};
gmd.prototype.play=function(){var M,d;(d=(M=this.fillAnimation).play)==null||d.call(M);var N,R;(R=(N=this.strokeAnimation).play)==null||R.call(N)};
gmd.prototype.cancel=function(){var M,d;(d=(M=this.fillAnimation).cancel)==null||d.call(M);var N,R;(R=(N=this.strokeAnimation).cancel)==null||R.call(N)};_.$F=_.SG(function(M){var d=M.model;var N=M.pointerDownEvent;var R=M.pointerUpEvent;var X=M.pointerLeaveEvent;M=_.e5();var A=_.Xc({"border-radius":function(){return d().borderRadius}}),l=_.e5(),k=_.e5(),T=_.V(_.Rq(function(){return(R==null?0:R())||(X==null?0:X())?!1:!(N==null||!N())||!1})),W=T.next().value,w=T.next().value,p=void 0,m=function(){!p&&k.value&&l.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(p=new gmd(k.value,l.value));
var t;(t=p)==null||t.play()},I=function(){var t;
(t=p)==null||t.cancel()},O=function(){var t;
(t=p)==null||t.cancel()};
_.Wg(function(){(R==null?0:R())&&m()});
_.Wg(function(){(N==null?0:N())&&I()});
_.Wg(function(){(X==null?0:X())&&O()});
T=_.dT(function(){m();w(!1)});
var y=_.dT(function(){I();w(!0)}),c=_.dT(function(){O();
w(!1)});
_.mF(function(){if(p){var t;(t=p)==null||t.cancel();p=void 0}});
var e={};W=_.xj("yt-spec-touch-feedback-shape",function(){return vLA(d().color)},(e["yt-spec-touch-feedback-shape--focused"]=function(){return!!d().focused&&!d().disabled},e["yt-spec-touch-feedback-shape--circular"]=function(){return!!d().circular},e["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!d().isExtended},e["yt-spec-touch-feedback-shape--down"]=W,e["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!d().triggerEvents},e));
return _.g("yt-touch-feedback-shape",{style:_.Xc({"border-radius":"inherit"})},_.g("div",{el:M,class:W,style:_.Xc({"margin-top":function(){return d().customTopExtend?"-"+d().customTopExtend+"px":void 0}}),
"on:mousedown":y,"on:mouseup":T,"on:pointerleave":c,"on:touchstart":y,"on:touchend":T,"aria-hidden":!0},_.g("div",{class:"yt-spec-touch-feedback-shape__stroke",style:A,el:l}),_.g("div",{class:"yt-spec-touch-feedback-shape__fill",style:A,el:k})))},"k");
_.$F.idomCompat=!0;var WpL={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 Un=_.gZ();Un=Un.toLowerCase();if(_.T6(Un,"android")){var wZI=Un.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);wZI&&parseFloat(wZI[1])<100||Un.match("("+Object.keys(WpL).join("|")+")")};var pZV=_.SG(function(M){return _.g(_.kV,{cond:M.aTagConfig,then:function(d){return _.g(_.VX,{aTagConfig:d,disabled:M.disabled,className:M.className,style:M.style,title:M.title,ariaLabel:M.ariaLabel,ariaCurrent:function(){var N,R;return((N=M.toggleable)==null?void 0:N.call(M))&&((R=M.toggled)==null?void 0:R.call(M))}},M.children)},
else:function(){return _.g("button",{"on:click":_.dT(function(d){var N;return(N=M.onClick)==null?void 0:N.call(M,d)}),
class:M.className,title:M.title,style:M.style,disabled:M.disabled,"aria-pressed":function(){var d,N;return((d=M.toggleable)==null?0:d.call(M))?!((N=M.toggled)==null||!N.call(M)):void 0},
"aria-label":M.ariaLabel,"aria-disabled":M.visiblyDisabled,"aria-hidden":M.ariaHidden,tabindex:M.tabIndex},M.children)}})},"l"),hEt=_.SG(function(M){var d=M.data;
var N=M.hasIconLeading;var R=M.hasIconLeadingTrailing;var X=M.hasIconTrailing;var A=M.iconButton;var l=M.iconClassName;var k=M.secondaryIconClassName;var T=M.icon;var W=M.secondaryIcon;var w=M.textContentClassName;return _.g(uW,{className:"",style:"display: inherit; justify-content: center"},_.g(_.kV,{cond:function(){return T&&(N()||R()||(A==null?void 0:A()))},
then:function(){return _.g(uW,null,_.g("div",{class:l,"aria-hidden":"true"},T==null?void 0:T()))}}),_.g(_.kV,{cond:function(){return(d().buttonText||d().animatedTextProps||d().formattedButtonText)&&!(A==null?0:A())},
then:function(){return _.g(uW,null,_.g(mKd,{className:w,iconPosition:function(){return d().iconPosition},
text:function(){return d().buttonText},
oneOffCustomTextWrap:function(){return d().oneOffCustomTextWrap},
formattedButtonText:function(){return d().formattedButtonText},
animatedTextProps:function(){return d().animatedTextProps}}))}}),_.g(_.kV,{cond:X,
then:function(){return _.g(uW,null,_.g("div",{class:l},T==null?void 0:T()))}}),_.g(_.kV,{cond:R,
then:function(){return _.g(uW,null,_.g("div",{class:k},W==null?void 0:W()))}}),_.g(_.kV,{cond:function(){return!d().disabled&&!0},
then:function(){return _.g(_.$F,{model:function(){return{color:PHq(d())}}})}}))},"m"),mKd=_.SG(function(M){var d=function(){var N,R;
return((N=M.iconPosition)==null?void 0:N.call(M))==="icon-with-label"||((R=M.oneOffCustomTextWrap)==null?void 0:R.call(M))};
return _.g("div",{class:M.className,"aria-hidden":function(){var N,R,X;return((N=M.ariaHidden)==null?void 0:N.call(M))&&(!((R=M.animatedTextProps)==null||!R.call(M))||!((X=M.formattedButtonText)==null||!X.call(M)))}},_.g(_.pF,null,_.g(_.gK,{when:function(){var N;
return(N=M.animatedTextProps)==null?void 0:N.call(M)}},function(){return _.g(DKz,{numberText:function(){return M.animatedTextProps().numberText},
numberValue:function(){return M.animatedTextProps().numberValue},
heightPx:function(){return M.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return M.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return M.animatedTextProps().shouldAnimate},
forceRollUp:function(){return M.animatedTextProps().forceRollUp}})}),_.g(_.gK,{when:function(){var N;
return(N=M.formattedButtonText)==null?void 0:N.call(M)}},function(){return _.g(_.lG,{text:function(){return Object.assign({},M.formattedButtonText(),{lineBreakMode:d()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":M.formattedButtonText().lineBreakMode,
alignment:d()?"TEXT_ALIGNMENT_CENTER":M.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!d()}})}),_.g(_.Wy,null,function(){return M.text})))},"n"),QyJ=_.SG(function(M){return _.g(_.kV,{cond:M.hasLabel,
then:function(){var d;return _.g("label",{class:M.className},M.children,(d=M.textContent)==null?void 0:d.call(M))},
else:function(){return M.children}})},"o"),uW=_.SG(function(M){return M.children},"p");var QqZ=i_("stamper-context");_.aR(HDi);var CX=_.SG(function(M){var d=M.data;var N=M.icon;var R=M.iconName;var X=M.secondaryIcon;var A=M.secondaryIconName;var l=M.focusedOverride;zQA();var k=OD2(d),T=k.size,W=k.style;M=k.disabled;var w=k.onTap,p=k.alignByText,m=k.aTagConfig,I=k.customColors,O=k.segmentedPosition,y=k.toggled,c=k.toggleable,e=k.accessibilityLabel,t=k.onToggle,C=k.iconPosition,U=k.oneOffCustomTextWrap,Fi=k.disableTextEllipsis,Y=k.disableBackdropFilter,$i=k.tooltipText,vj=k.ariaHidden,Pj=k.tabIndex,sS=k.buttonText,tL=k.formattedButtonText,
b2=k.animatedTextProps,Hj=ssN(d,N,X,R,A,l),LZ=Hj.type;N=Hj.shouldFocus;R=Hj.hasIconLeading;X=Hj.hasIconTrailing;A=Hj.hasIconLeadingTrailing;var w3=Hj.hasIconOnly;l=Hj.hasIconOnly40;var XY=Hj.hasIconWithLabel;k=Hj.iconButton;var jJ=Hj.visiblyDisabled,Ne=Hj.overrideSmallSizeIcon,Vz=Hj.iconToRender;Hj=Hj.secondaryIconToRender;var oI={},$d={};return _.g(QyJ,{className:_.xj("yt-spec-button-shape-with-label",(oI["yt-spec-button-shape-with-label--is-overlay"]=function(){return W()==="overlay"||W()==="overlay-dark"},
oI)),
hasLabel:XY,textContent:function(){return _.g(mKd,{text:sS,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:U,iconPosition:C,formattedButtonText:tL,animatedTextProps:b2})}},_.g(pZV,{aTagConfig:m,
className:_.xj("yt-spec-button-shape-next",function(){return rqj(LZ())},function(){return jJ()?void 0:KRN(W())},function(){return yqv(T())},($d["yt-spec-button-shape-next--disabled"]=jJ,$d["yt-spec-button-shape-next--focused"]=N,$d["yt-spec-button-shape-next--icon-trailing"]=X,$d["yt-spec-button-shape-next--icon-leading"]=R,$d["yt-spec-button-shape-next--icon-leading-trailing"]=A,$d["yt-spec-button-shape-next--icon-button"]=function(){return w3()||XY()},$d["yt-spec-button-shape-next--icon-only-default"]=
l,$d["yt-spec-button-shape-next--align-by-text"]=p,$d["yt-spec-button-shape-next--segmented-start"]=function(){return O()==="start"},$d["yt-spec-button-shape-next--segmented-end"]=function(){return O()==="end"},$d["yt-spec-button-shape-next--override-small-size-icon"]=Ne,$d["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=U,$d["yt-spec-button-shape-next--disable-text-ellipsis"]=Fi,$d["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=function(){return!Y()&&oLN()},$d)),
style:function(){return cq2(I()).style},
onClick:function(CJ){w==null||w(CJ);c()&&(t==null||t(CJ))},
disabled:M,ariaLabel:e,toggleable:c,toggled:y,title:function(){var CJ;return(CJ=$i())!=null?CJ:""},
visiblyDisabled:jJ,ariaHidden:vj,tabIndex:Pj},_.g(hEt,{data:d,hasIconLeading:R,hasIconLeadingTrailing:A,hasIconTrailing:X,iconButton:k,icon:Vz,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:Hj})))},"q");
CX.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var q5m=_.SG(function(M){var d=M.data;var N=M.id;var R=M.hidden;var X=M.className;var A=M.icon;var l=M.secondaryIcon;var k=M.iconName;var T=M.secondaryIconName;M=_.V(_.d0(!1,void 0,"ikxyhf"));var W=M.next().value,w=M.next().value,p=function(){var I=_.h().resolve(_.CF(_.TH));I&&w(I.isKeyBoardInUse())},m=function(){w(!1)};
M=_.e5(function(I){if(_.h().resolve(_.CF(_.TH)))return I.addEventListener("focusin",p),I.addEventListener("focusout",m),function(){I.removeEventListener("focusin",p);I.removeEventListener("focusout",m)}});
return _.g("yt-button-shape",{el:M,id:N,class:X,hidden:R},_.g(_.kV,{cond:d,then:function(){return _.g(CX,{data:d,icon:A,secondaryIcon:l,iconName:k,secondaryIconName:T,focusedOverride:W})}}))},"r");
_.Q("web_wiz_button_shape")&&_.eC(q5m,"yt-button-shape",{props:{data:_.cA,id:_.cA,hidden:_.cA,className:_.cA,icon:_.bI,secondaryIcon:_.bI,iconName:_.cA,secondaryIconName:_.cA},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var C$=function(){var M=_.n.apply(this,arguments)||this;M.keyboardFocused=!1;return M};
_.v(C$,_.n);C$.prototype.onFocus=function(){var M=_.h().resolve(_.CF(_.TH));M&&(this.keyboardFocused=M.isKeyBoardInUse())};
C$.prototype.onBlur=function(){this.keyboardFocused=!1};
C$.prototype.renderIdom=function(){var M=this;if(this.data){var d=AI(this.data,!!this.iconName),N=Jqj(this.data),R=function(){var A;DH("yt-icon",{icon:M.iconName,active:(A=M.data)==null?void 0:A.toggled,size:d,style:"width: "+d+"px; height: "+d+"px;",iconFilter:N},Jl)},X=function(){var A;
DH("yt-icon",{icon:M.secondaryIconName,active:(A=M.data)==null?void 0:A.toggled,size:d,style:"width: "+d+"px; height: "+d+"px;",iconFilter:N},Jl)};
this.data.focused=this.keyboardFocused;_.Q("web_reactive_button_shape_in_c3po")?Kq(CX)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):GG2(this.data,R,X);_.YP(this.hostElement,"yt-renderidom-finished")}};
_.Hm.Object.defineProperties(C$,{template:{configurable:!0,enumerable:!0,get:function(){if(TXd===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(kWm().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore($Kd().content.cloneNode(!0),M.content.firstChild);TXd=M}M=TXd;return M}}});
C$.prototype.onBlur=C$.prototype.onBlur;C$.prototype.onFocus=C$.prototype.onFocus;_.G([_.S(uGo),_.a("design:type",Object)],C$.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],C$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],C$.prototype,"iconName",void 0);_.G([_.H(),_.a("design:type",String)],C$.prototype,"secondaryIconName",void 0);_.G([_.H(),_.a("design:type",Object)],C$.prototype,"keyboardFocused",void 0);
_.G([_.C3("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C$.prototype,"onFocus",null);_.G([_.C3("focusout"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C$.prototype,"onBlur",null);C$=_.G([_.w4({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.Q("web_wiz_button_shape")})],C$);_.eC(_.SG(function(M){function d(){N().seconds&&A(M4A({seconds:Number(N().seconds)-Date.now()/1E3}))}
var N=M.targetTimestamp;M=M.className;var R=_.V(_.d0("",void 0,"U1Q8Ae")),X=R.next().value,A=R.next().value;_.QD(function(){d();var l=setInterval(function(){d()},1E3);
_.mF(function(){clearInterval(l)})});
return _.g("yt-countdown",{class:_.xj("ytCountDownHost",M)},_.g("div",null,X))},"s"),"yt-countdown",{props:{targetTimestamp:_.cA,
className:_.bI}});_.o0=_.SG(function(M){var d=M.data;var N=M.className;var R=M.style;var X=M.useOutlinedIcon;var A=M.buttonOverrides;var l=M.animatedTextProps;var k=M.onClick;var T=_.e5(function(c){return function(){CD3(_.Nl(),c)}}),W=function(){return d().iconName},w,p=(w=_.h().resolve(_.CF(_.Pz)))==null?void 0:w(),m=function(){var c=d();
var e=A==null?void 0:A(),t=l==null?void 0:l();if(c){var C=ulN(c.type);var U=!!c.title||!!c.titleFormatted;var Fi=!(!c.iconName&&!c.iconImage);U=Fi&&!U?"icon-only":Fi?c.iconTrailing||c.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;U==="icon-only-40"&&(C="text");var Y,$i=(Y=e==null?void 0:e.disabled)!=null?Y:c.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||c.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";Y=Object;Fi=Y.assign;var vj=c.title,Pj=c.titleFormatted;t=t&&t.numberText&&
!isNaN(Number(t.numberValue))?t:void 0;var sS=c.accessibilityText,tL=UAi(c.style),b2=CHi(c.state),Hj=xAL(c.buttonSize),LZ=aiZ(c,T,$i,k);$i=$i&&!c.onDisabledTap;var w3=_.qx({elementsCommand:c.onTap,forceNewState:!0});w3=IA(w3)?w3:void 0;var XY=c.customFontColor,jJ=c.customBackgroundColor;var Ne=c.customBorderColor;var Vz=c.customDarkThemeFontColor,oI=c.customDarkThemeBackgroundColor,$d=c.customDarkThemeBorderColor;XY=p&&Vz?Vz:XY;jJ=p&&oI?oI:jJ;Ne=p&&$d?$d:Ne;Ne={color:XY?_.ml(XY):void 0,backgroundColor:jJ?
_.ml(jJ):void 0,borderColor:Ne?_.ml(Ne):void 0};c=Fi.call(Y,{},{buttonText:vj,formattedButtonText:Pj,animatedTextProps:t,accessibilityLabel:sS,style:tL,type:C,state:b2,size:Hj,iconPosition:U,onTap:LZ,disabled:$i,aTagConfig:w3,customColors:Ne,tooltipText:c.tooltip},e)}else c={style:"mono",type:"text",state:"active",size:"M"};c.focused=y();return c},I=function(){return AI(m(),!!d().iconName)};
M=_.V(_.d0(!1,void 0,"JjUrEe"));w=M.next().value;var O=M.next().value,y=w;M=_.dT(function(){var c=_.h().resolve(_.CF(_.TH));c&&O(c.isKeyBoardInUse());return!1});
w=_.dT(function(){O(!1);return!1});
_.Wg(function(){var c,e=_.q(d==null?void 0:(c=d())==null?void 0:c.onVisible,_.mX);e&&_.Qu(e,{disableClickTracking:!0})});
_.IJ(function(){T.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var c=d().targetId;c&&_.Yt3(_.Nl(),c,T.value)});
return _.g("button-view-model",{el:T,class:_.xj("yt-spec-button-view-model",N),"on:focusin":M,"on:focusout":w},_.g(_.kV,{cond:function(){return d().iconImage?{sources:[d().iconImage]}:void 0},
then:function(c){return _.g(CX,{data:m,icon:function(){return _.g(_.Jt,{data:c,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.g(CX,{data:m,icon:function(){return _.g(_.Fc,{icon:W,active:function(){return(X==null?0:X())?!1:m().toggled},
animateIcon:function(){var c;return!!(R==null?0:(c=R())==null?0:c.animateIcon)},
size:I})}})}}))},"t");
_.o0.idomCompat={callbacks:{onClick:!0}};_.eC(_.SG(function(M){return _.g("yt-button-view-model",{id:M.id,class:_.xj(M.scopingClassName,M.classes),icon:function(){var d;return(d=M.icon)==null?void 0:d.call(M)},
"dialog-dismiss":function(){var d;return((d=M.dialogDismiss)==null?0:d.call(M))?"":void 0}},_.g(_.o0,{data:function(){var d;
return(d=M.data)==null?void 0:d.call(M)},
className:function(){var d;return(d=M.className)==null?void 0:d.call(M)},
style:function(){var d;return(d=M.style)==null?void 0:d.call(M)},
useOutlinedIcon:function(){var d;return(d=M.useOutlinedIcon)==null?void 0:d.call(M)},
buttonOverrides:function(){var d;return(d=M.buttonOverrides)==null?void 0:d.call(M)},
animatedTextProps:function(){var d;return(d=M.animatedTextProps)==null?void 0:d.call(M)},
onClick:function(d){var N;return(N=M.onClick)==null?void 0:N.call(M,d)}}))},"u"),"yt-button-view-model",{props:{data:_.cA,
className:_.cA,style:_.cA,useOutlinedIcon:_.cA,buttonOverrides:_.cA,animatedTextProps:_.cA,onClick:_.bI,scopingClassName:_.cA,id:_.cA,icon:_.cA,dialogDismiss:_.cA,classes:_.cA}});var xH=function(){var M=_.n.apply(this,arguments)||this;M.isGoalActive=!0;return M};
_.v(xH,_.n);xH.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
xH.prototype.progressBarChanged=function(){var M=_.K(this.hostElement).querySelector("#progress-bar-progress"),d,N,R,X=(R=Number((d=this.creatorGoalState)==null?void 0:d.currentGoalCount)/Number((N=this.creatorGoalState)==null?void 0:N.totalGoalCount)*100)!=null?R:0,A;M.style.width=((A=Math.min(X,100))!=null?A:0)+"%"};
xH.prototype.goalStateChanged=function(){var M;this.isGoalActive=((M=this.creatorGoalState)==null?void 0:M.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var d;M={"--yt-progress-bar-color":DqN((d=this.creatorGoalState)==null?void 0:d.progressBarColor)};_.UO(this.hostElement,M)};
xH.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Hm.Object.defineProperties(xH.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var M;return this.isGoalActive&&!((M=this.creatorGoalState)==null||!M.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.endTimestampMs){var d;M=Number((d=this.creatorGoalState)==null?void 0:d.endTimestampMs)/1E3;return{seconds:String(M)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.themedTargetImage){var d;M=_.q((d=this.creatorGoalState)==null?void 0:d.themedTargetImage,QhV);return this.isAppDarkTheme()?M==null?void 0:M.imageDark:M==null?void 0:M.imageLight}}}});
_.Hm.Object.defineProperties(xH,{template:{configurable:!0,enumerable:!0,get:function(){return UqC()}}});
xH.prototype.goalStateChanged=xH.prototype.goalStateChanged;xH.prototype.progressBarChanged=xH.prototype.progressBarChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],xH.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xH.prototype,"ytRendererBehavior",void 0);
_.G([_.H({selectorArgs:["data.creatorGoalEntityKey"],selector:function(M,d){return _.Rz(M.entities,"creatorGoalEntity",d)}}),
_.a("design:type",Object)],xH.prototype,"creatorGoalState",void 0);_.G([_.H(),_.a("design:type",Object)],xH.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],xH.prototype,"isGoalActive",void 0);_.G([_.z("creatorGoalState","isGoalActive"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xH.prototype,"shouldShowCountdown",null);_.G([_.z("creatorGoalState"),_.a("design:type",Object),_.a("design:paramtypes",[])],xH.prototype,"endTimestamp",null);
_.G([_.z("creatorGoalState"),_.a("design:type",Object),_.a("design:paramtypes",[])],xH.prototype,"targetIconThemedImage",null);_.G([_.xB("creatorGoalState.currentGoalCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xH.prototype,"progressBarChanged",null);_.G([_.xB("creatorGoalState.creatorGoalState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xH.prototype,"goalStateChanged",null);
xH=_.G([_.w4({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],xH);_.L(xH,"yt-creator-goal-progress-flow-view-model",function(){return UqC()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var INt;var vmC;var YH=function(){return _.n.apply(this,arguments)||this};
_.v(YH,_.n);YH.prototype.attached=function(){var M,d,N;if(this==null?0:(M=this.data)==null?0:(d=M.pdgPurchasedBumperLoggingDirectives)==null?0:(N=d.loggingDirectives)==null?0:N.trackingParams){var R,X,A;ELi(this==null?void 0:(R=this.data)==null?void 0:(X=R.pdgPurchasedBumperLoggingDirectives)==null?void 0:(A=X.loggingDirectives)==null?void 0:A.trackingParams)}};
YH.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],YH.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],YH.prototype,"data",void 0);YH=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],YH);
_.L(YH,"yt-live-chat-item-bumper-view-model",function(){if(vmC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;INt===void 0&&(INt=document.createElement("template"));var R=INt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vmC=M}M=vmC;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Omd;var jyo;_.ci=function(M,d){this.data=M;this.actions=d;this.data=M;this.actions=d};
_.jm=function(){};_.Zp={};_.Zp.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(M,d){MuN(this.hostElement,M,d)},
getNavigationEndpointPopupAction:function(M){return d_Z(M,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(M,d){NMr(this.hostElement,M,d,this.openPopupConfig)}};var TMN=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.En={};
_.En.YtEndpointBehavior=[_.Zp.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.rK("openPopupConfig");(this.useClickHandler=_.KF("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(M){Fwr(this.hostElement,M,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(M){var d=this.hostElement,N=this.openPopupConfig,R=this.disableCommandHandlerOverride;R=R===void 0?!1:R;var X=RWZ(M);if(X){X.href&&qX(X.href);var A=M.detail;var l=A.sourceEvent;A=A.preventer;l=l.button!==void 0?l.button===0&&!DM(l):A?!DM(A):!0;X.data&&l&&XRA(d,X,M,N,R)}},
onEndpointTouchEnd_:function(M){DM(M)||RWZ(M)&&M.preventDefault()},
onEndpointTapStart_:function(M){BMj(M)}}];var D_S="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Wwv=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var sy3={};sy3.YtPlaintextBehavior=[_.pG,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(M){M.preventDefault();M=M.clipboardData.getData("text/plain");document.execCommand("insertText",!1,M)},
preventRichTextFormatting_:function(M){_.T7&&(M=M.detail.keyboardEvent,M.stopImmediatePropagation(),M.preventDefault())}}];var PjJ;var omd;var Mh=function(){var M=_.n.apply(this,arguments)||this;M.ignoreShadyDom=!1;M.hasChange_=!1;M.hasSetTitle_=!1;M.useIOObserverForVisibilityLogging_=_.Q("kevlar_use_vimio_behavior")&&_.rK("INNERTUBE_CLIENT_NAME")==="WEB";M.ytFormattedStringObserverHandlerKeys_=void 0;return M};
_.v(Mh,_.n);_.F=Mh.prototype;_.F.created=function(){this.useIOObserverForVisibilityLogging_=_.Q("kevlar_use_vimio_behavior")&&_.rK("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.F.ready=function(){_.rK("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_()};
_.F.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.F.detached=function(){this.unobserveIOObservers_()};
_.F.clearContents_=function(){for(var M=this.getRoot(),d=M.lastChild;d&&d.tagName!=="STYLE";){try{M.removeChild(d)}catch(N){break}d=M.lastChild}};
_.F.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var M=_.V(this.ytFormattedStringObserverHandlerKeys_),d=M.next();!d.done;d=M.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(d.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.F.resetForAttributedString=function(){var M=this.getRoot();!M.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),M.appendChild(this.ytAttributedStringElementRef))};
_.F.resetForFormattedString=function(){var M=this.getRoot(),d=M.querySelector("yt-attributed-string");d&&(this.ytAttributedStringElementRef=M.removeChild(d))};
_.F.textChanged=function(){this.textChanged_(this.text)};
_.F.textChanged_=function(M){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!M||!M.runs&&!M.simpleText;if(_.Q("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var d=this.hostElement.firstChild;d&&d.nodeName==="FONT";){var N=d;d=d.nextSibling;this.hostElement.removeChild(N)}d=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
N=M.simpleText;var R;!N&&((R=M.runs)==null?void 0:R.length)===1&&this.isSimpleString_(M.runs[0])&&(N=M.runs[0].text);N!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.rK("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(N!==void 0){try{d.textContent=N}catch(X){}d.textContent||(this.isEmpty=!0)}else M=M.runs,N!==void 0&&(M=[{text:N}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),M&&this.updateText_(M),
d.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.F.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)};
_.F.computeAriaLabel_=function(M){return M};
_.F.computeEllipsisTruncateStyling=function(M,d){return M&&!d};
_.F.computeUseAttributedString=function(M){return _.Q("web_replace_formatted_with_attributed_string")&&rEA(M)&&!this.disableAttributedString&&!this.enableContentEditable};
_.F.setNodeStyle_=function(M,d){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.Q("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?d.removeAttribute("dir"):d.setAttribute("dir","auto");d.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");d.style.color="";var N=null;this.noStyles||(M.bold&&(d.classList.add("bold"),N="bold"),M.deemphasize&&(d.classList.add("deemphasize"),N="deemphasize"),M.italics&&d.classList.add("italic"),
M.strikethrough&&d.classList.add("strikethrough"),M.errorUnderline&&(d.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),M.bracket&&d.classList.add("bracket"),M.textColor&&(d.style.color=_.p3(M.textColor)));N!==d.getAttribute("style-target")&&(N?d.setAttribute("style-target",N):d.removeAttribute("style-target"))};
_.F.setUpVisibilityLogging_=function(M,d){var N=this;this.setNodeTrackingParams_(M,d);var R;((R=d.data)==null?0:R.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(M=this.ytRendererBehavior.visibilityObserver.observe(d,function(X){var A=N.ytRendererBehavior.getVisibilityLogger();A&&A.reportShown(X)},this.ytRendererBehavior.visibilityOptionVisible_),d=this.ytRendererBehavior.visibilityObserver.observe(d,function(X){var A=N.ytRendererBehavior.getVisibilityLogger();
A&&A.reportHidden(X)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(M),this.ytFormattedStringObserverHandlerKeys_.push(d))};
_.F.setNodeTrackingParams_=function(M,d){d.data||(d.data={});if((M=M.loggingDirectives?M.loggingDirectives.trackingParams:null)||d.data.trackingParams)d.data.trackingParams=M};
_.F.computeHasLinkOnly_=function(M){return!(!M||M.length!==1||this.noEndpoints||!M[0].navigationEndpoint)};
_.F.getRoot=function(){var M=this.buildScopeDomOptions();return this.enableContentEditable?_.K(_.K(this.hostElement,M).querySelector("[contenteditable]")):_.K(this.hostElement,M)};
_.F.fixContenteditableScope=function(){var M=function(d){d&&(d.nodeType===1&&d.classList&&(d.classList.add("style-scope"),d.classList.add("yt-formatted-string")),d.childNodes&&d.childNodes.forEach(function(N){M(N)}))};
M(this.getRoot())};
_.F.updateText_=function(M){for(var d=M.length,N=this.getRoot(),R=N.firstChild;R&&R.nodeName==="STYLE";)R=R.nextSibling;for(var X=0;X<d&&R;){var A=M[X],l=_.Q("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)if(R.nodeName==="#text"){R.textContent!=l&&(R.textContent=l);X++;R=R.nextSibling;continue}else break;if(_.q(A,wk))break;else if(!this.noEndpoints&&A.navigationEndpoint){if(R.nodeName!=="A")break;this.setDataOnAnchor_(R,
A.navigationEndpoint)}else if(R.nodeName!=="SPAN")break;this.setNodeStyle_(A,R);this.setUpVisibilityLogging_(A,R);R.textContent!=l&&(R.textContent=l);X++;R=R.nextSibling}if(R)for(A=N.lastChild,R=X?R.previousSibling:null;A&&A!=R;){try{N.removeChild(A)}catch(k){break}A=N.lastChild}X!==d&&this.addTextNodes_(M,X)};
_.F.addTextNodes_=function(M,d){for(var N=document.createDocumentFragment(),R=M.length;d<R;d++){var X=M[d],A=_.Q("remove_cr_char")&&X.text?X.text.replace("\r",""):X.text;if(this.isSimpleString_(X)&&!this.useMixedDirectionFormattedStrings)N.appendChild(document.createTextNode(A));else{var l=_.q(X,wk);if(l){if(l.image){var k=document.createElement("img");l.isCustomEmoji||k.classList.add("small-emoji");k.classList.add("emoji");l.isCustomEmoji&&(k.dataset.emojiId=l.emojiId);k.src=_.Hz(l.image.thumbnails,
this.emojiSize);(X=this.get("image.accessibility.accessibilityData.label",l))?k.alt=X:l.shortcuts&&l.shortcuts.length>0?k.alt=l.shortcuts[0]:l.emojiId&&(k.alt=l.emojiId);N.appendChild(k);this.hasEmoji=!0}}else!this.noEndpoints&&X.navigationEndpoint?(k=document.createElement("a"),k.classList.add("yt-simple-endpoint"),k.setAttribute("spellcheck","false"),this.setDataOnAnchor_(k,X.navigationEndpoint)):k=document.createElement("span"),this.setNodeStyle_(X,k),this.setUpVisibilityLogging_(X,k),k.appendChild(document.createTextNode(A)),
N.appendChild(k)}}this.getRoot().appendChild(N)};
_.F.isSimpleString_=function(M){return(this.noEndpoints||!M.navigationEndpoint)&&!_.q(M,wk)&&(this.noStyles||!(M.bold||M.deemphasize||M.italics||M.strikethrough||M.errorUnderline||M.bracket||M.textColor))&&!M.loggingDirectives};
_.F.getRawText=function(){return _.HD(this.text)};
_.F.getFirstRunText=function(){var M;if(((M=this.text)==null?0:M.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.F.setFirstRunText=function(M){var d;((d=this.text)==null?0:d.runs)&&this.text.runs[0]&&(this.text.runs[0].text=M,this.textChanged_(this.text))};
_.F.setDataOnAnchor_=function(M,d){var N=this;!_.Q("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(d)||this.isSignalServiceEndpoint_(d)?(M.onclick=this.serviceEndpointHandler_(d),IO(M,"#")):bqr({text:this.text,command:d},function(){CIj(M,d,N.target)})};
_.F.isServiceEndpoint_=function(M){var d;return!((d=_.q(M==null?void 0:M.commandMetadata,_.an))==null||!d.sendPost)};
_.F.isSignalServiceEndpoint_=function(M){return!!_.q(M,_.A$)};
_.F.serviceEndpointHandler_=function(M){var d=this;return function(N){_.dU(d.hostElement,[M]);N.preventDefault()}};
_.F.overrideAriaLabelChanged_=function(){var M=this.getRoot();this.enableContentEditable&&M&&M.setAttribute("aria-label",this.overrideAriaLabel)};
_.F.enableContentEditableChanged_=function(){var M=this,d=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),d=_.K(this.hostElement,d),!d.lastChild||d.lastChild instanceof HTMLElement&&d.lastChild.id!=="contenteditable-root"){var N=document.createElement("div");N.id="contenteditable-root";N.setAttribute("contenteditable","true");N.setAttribute("dir","auto");N.onfocus=function(){M.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
d.appendChild(N);this.overrideAriaLabel&&N.setAttribute("aria-label",this.overrideAriaLabel)}}else N=_.L3(this.hostElement).firstChild,N instanceof HTMLElement&&N.id==="contenteditable-root"&&_.K(this.hostElement,d).removeChild(N)};
_.F.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.F.getNodesForVisibilityLogging_=function(){return _.Ai(this.getRoot().childNodes,function(M){var d;return!((d=M.data)==null||!d.trackingParams)})};
_.F.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.F.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(d){M.reportShown(d)})}};
_.F.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(d){M.reportHidden(d)})}};
_.Hm.Object.defineProperties(Mh.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.Q("enable_mixed_direction_formatted_strings")}}});
Mh.prototype.enableContentEditableChanged_=Mh.prototype.enableContentEditableChanged_;Mh.prototype.overrideAriaLabelChanged_=Mh.prototype.overrideAriaLabelChanged_;Mh.prototype.ellipsisTruncateChanged_=Mh.prototype.ellipsisTruncateChanged_;Mh.prototype.textChanged=Mh.prototype.textChanged;_.G([_.S(sy3.YtPlaintextBehavior),_.a("design:type",Object)],Mh.prototype,"ytPlaintextBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Mh.prototype,"text",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"noEndpoints",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"noStyles",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mh.prototype,"isDarkTheme",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Mh.prototype,"splitLines",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mh.prototype,"forceDefaultStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mh.prototype,"ellipsisTruncate",void 0);_.G([_.H(),_.a("design:type",Object)],Mh.prototype,"ignoreShadyDom",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.a("design:type",Boolean)],Mh.prototype,"ellipsisTruncateStyling",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.a("design:type",String)],Mh.prototype,"ariaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mh.prototype,"isEmpty",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.a("design:type",Boolean)],Mh.prototype,"hasLinkOnly_",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"hasEmoji",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"disableAttributedString",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"isOverlay",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"linkInheritColor",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"noPreWrap",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"userInput",void 0);_.G([_.H({value:16}),_.a("design:type",Number)],Mh.prototype,"emojiSize",void 0);_.G([_.H(),_.a("design:type",String)],Mh.prototype,"target",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"enableContentEditable",void 0);_.G([_.H(),_.a("design:type",String)],Mh.prototype,"overrideAriaLabel",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"respectHtmlDir",void 0);_.G([_.H(),_.a("design:type",Boolean)],Mh.prototype,"respectLangDir",void 0);_.G([_.z("plaintextOnly"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Mh.prototype,"useMixedDirectionFormattedStrings",null);_.G([_.H({computed:"computeUseAttributedString(text)"}),_.a("design:type",Boolean)],Mh.prototype,"useYtAttributedString",void 0);
_.G([_.xB("text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mh.prototype,"textChanged",null);_.G([_.xB("ellipsisTruncate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mh.prototype,"ellipsisTruncateChanged_",null);_.G([_.xB("overrideAriaLabel"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mh.prototype,"overrideAriaLabelChanged_",null);
_.G([_.xB("enableContentEditable"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mh.prototype,"enableContentEditableChanged_",null);Mh=_.G([_.w4({is:"yt-formatted-string",disableElementRegistration:!0})],Mh);
_.L(Mh,"yt-formatted-string",function(){if(omd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;PjJ===void 0&&(PjJ=document.createElement("template"));var R=PjJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);omd=M}M=omd;return M});var rfL;var KpC;var yfg;var Jfo;var dQ=function(){var M=_.n.apply(this,arguments)||this;M.focused=!1;M.disabled=!1;M.isOverlay=!1;return M};
_.v(dQ,_.n);dQ.prototype.triggerDown=function(){if(!this.disabled){_.t2(this.hostElement,"down",!0);var M;(M=this.currentAnimation)==null||M.cancel()}};
dQ.prototype.triggerUp=function(){if(!this.disabled){_.t2(this.hostElement,"down",!1);var M=this.fillElement;var d=this.strokeElement;typeof GroupEffect==="function"?(M=new GroupEffect([QsA(M),qU2(d)]),M=new Animation(M,document.timeline)):M=new gmd(M,d);this.currentAnimation=M;var N;(N=this.currentAnimation)==null||N.play()}};
_.G([_.Z3(".stroke"),_.a("design:type",HTMLElement)],dQ.prototype,"strokeElement",void 0);_.G([_.Z3(".fill"),_.a("design:type",HTMLElement)],dQ.prototype,"fillElement",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],dQ.prototype,"focused",void 0);_.G([_.H(),_.a("design:type",Object)],dQ.prototype,"disabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],dQ.prototype,"isOverlay",void 0);dQ=_.G([_.w4({is:"yt-interaction",disableElementRegistration:!0})],dQ);
_.L(dQ,"yt-interaction",function(){if(Jfo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yfg===void 0&&(yfg=document.createElement("template"));var R=yfg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Jfo=M}M=Jfo;return M},{mode:2});var Nh=function(){return _.n.apply(this,arguments)||this};
_.v(Nh,_.n);_.F=Nh.prototype;_.F.ready=function(){var M=this,d=_.K(this.hostElement).querySelector("#button");d.addEventListener("focus",function(){D03||(D03=new T$o);M.keyboardFocused=D03.isKeyBoardInUse()});
d.addEventListener("blur",function(){M.keyboardFocused=!1;M.rippleUp_()})};
_.F.computeTabIndex_=function(M){return M?-1:0};
_.F.computeButtonAriaPressed_=function(M){if(this.toggleable)return M?"true":"false"};
_.F.rippleDown_=function(){_.K(this.hostElement).querySelector("#interaction").triggerDown()};
_.F.rippleUp_=function(){_.K(this.hostElement).querySelector("#interaction").triggerUp()};
_.F.onPressedChanged_=function(){var M=_.L3(_.K(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.L3(_.K(this.hostElement).querySelector("#button")).children[0];M&&(M.active=this.pressed)};
Nh.prototype.onPressedChanged_=Nh.prototype.onPressedChanged_;Nh.prototype.rippleUp_=Nh.prototype.rippleUp_;Nh.prototype.rippleDown_=Nh.prototype.rippleDown_;_.G([_.H(),_.a("design:type",String)],Nh.prototype,"label",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Nh.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Boolean)],Nh.prototype,"pressed",void 0);_.G([_.H(),_.a("design:type",Object)],Nh.prototype,"toggleable",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Nh.prototype,"untabbable",void 0);_.G([_.H(),_.a("design:type",Boolean)],Nh.prototype,"keyboardFocused",void 0);_.G([_.C3("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nh.prototype,"rippleDown_",null);_.G([_.C3("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nh.prototype,"rippleUp_",null);
_.G([_.xB("pressed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nh.prototype,"onPressedChanged_",null);Nh=_.G([_.w4({is:"yt-icon-button",disableElementRegistration:!0})],Nh);
_.L(Nh,"yt-icon-button",function(){if(KpC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rfL===void 0&&(rfL=document.createElement("template"));var R=rfL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);KpC=M}M=KpC;return M},{mode:2});var cfI=_.a1(["aria-"]),Rd={};Rd.YtRenderButtonBehavior=[_.E.YtRendererBehavior,_.En.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!!_.h().resolve(_.CF(_.TH))&&_.Q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var M=this.computeHref_(this.endpoint,!0);M?IO(this.elements_.endpoint,M):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){M=this.buttonClass.split(" ");M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,_.t2(this.hostElement,d,!0),this.elements_.button&&_.t2(this.elements_.button,d,!0),this.elements_.text&&_.t2(this.elements_.text,d,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(M=null,this.buttonAccessibility&&(M=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=M:M?_.by([_.a2(cfI)],this.elements_.button,"aria-label",M):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var M=_.h().resolve(_.CF(_.TH));M&&(this.keyboardFocused=M.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.n$("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,_.Wl(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Wl(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(M,d){if(d)for(M=d.split(" "),M=_.V(M),d=M.next();!d.done;d=M.next())d=d.value,_.t2(this.hostElement,d,!1),this.elements_.button&&_.t2(this.elements_.button,d,!1),this.elements_.text&&_.t2(this.elements_.text,d,!1)},
buttonIconChanged_:function(M){this.elements_.icon?M?(this.elements_.icon.icon=M,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Wl(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Gu(this.hostElement,"is-paper-button-with-icon",!1)):M&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.Wl(this.elements_.button).appendChild(this.elements_.icon):_.Wl(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Gu(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(M){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,M){var d=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(M){case "yt_icon_button_with_label":d=!0;_.t2(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();M=_.Wl(this.elements_.button).firstElementChild;
this.elements_.icon=M;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Wl(this.elements_.endpoint).appendChild(this.elements_.button);_.Wl(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.n$("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;_.Wl(this.elements_.button).appendChild(this.elements_.text);_.Wl(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":d=!0,this.elements_.button=this.getYtIconButton_(),M=_.Wl(this.elements_.button).firstElementChild,this.elements_.icon=M,this.setIconActive_(this.elements_.icon),
_.Wl(this.elements_.endpoint).appendChild(this.elements_.button)}_.Gu(this.hostElement,"is-icon-button",d);_.Gu(this.hostElement,"is-paper-button",!d);_.Gu(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 N;_.K((N=this.container.hostElement)!=null?N:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Wl(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(M){if(M!=void 0||this.disabled)this.disabled=M,this.elements_.button&&(this.elements_.button.disabled=M)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(M){_.Q("kevlar_system_icons")&&M&&this.data&&(this.data.isSelected!==void 0?M.active=this.data.isSelected:this.data.isToggled!==void 0&&(M.active=this.data.isToggled))},
observeBasicPalette_:function(M){_.Wi(this.hostElement,M)},
disabledChanged_:function(M){this.data&&this.set("data.isDisabled",M)},
onYtButtonTap_:function(M){if(this.disabled)M.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.dU(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(M=this.disableCommandHandlerOverride,!this.data||!this.data.command||M||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.Q("handle_service_request_actions")||_.dU(this.hostElement,[this.serviceEndpoint]),
_.YP(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.Q("handle_service_request_actions")?(M=[],this.serviceEndpoint&&M.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&M.push(this.data.command),M.length&&_.Ni(this.hostElement,M,this.hostElement)):this.data&&this.data.command&&(M=this.data.command,M.accountUnlinkCommand||M.accountLinkCommand||M.insertAdCommand||M.insertHighlightMarkerCommand||
M.createLivestreamHighlightClipCommand||M.getVideoUploadFeedbackCommand||M.musicDeletePrivatelyOwnedEntityCommand||M.ypcCancelRecurrenceEndpoint||M.getMultiSelectCommandEndpoint?_.dU(this.hostElement,[M]):_.Ni(this.hostElement,[M],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var M,d=_.K((M=this.container.hostElement)!=null?M:this.container);d.lastChild&&d.lastChild.tagName!="STYLE";)try{d.removeChild(d.lastChild)}catch(N){break}},
getYtIconButton_:function(){var M=this.reuseEnabled_()?_.n$("yt-icon-button"):document.createElement("yt-icon-button"),d=_.Wl(M).firstElementChild;if(d&&d.is!="yt-icon"){for(d=_.Wl(M);d.lastChild;)d.removeChild(d.lastChild);d=null}d||(d=this.getIcon_(),this.setIconActive_(d),_.Wl(M).appendChild(d));return M},
reuseEnabled_:function(){return _.Q("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.n$("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.n$("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.S5d={};
_.S5d.YtButtonBehavior=[Rd.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var M=this.data;M&&(this._setEndpoint(this.computeEndpoint_(M)),this._setServiceEndpoint(this.computeServiceEndpoint_(M)),this._setCommand(this.computeCommand_(M)),this._setButtonIcon(this.computeButtonIcon_(M)),this._setButtonText(this.computeButtonText_(M,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(M)),this._setButtonTooltip(this.computeTooltip_(M)),this._setButtonClass(this.computeButtonClass_(M)),this._setIconPositionType(this.computeIconPositionType_(M)),this.updateRenderedElements())},
setPressedState:function(M){var d;if((d=this.elements_)==null?0:d.button)this.elements_.button.pressed=!!M},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeEndpoint_:function(M){var d=M&&M.navigationEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.url"),R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:M&&M.command&&M.command.modalEndpoint?M.command:N&&!R&&M.command?M.command:null},
computeServiceEndpoint_:function(M){var d=M&&M.serviceEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:N&&M.command?M.command:null},
computeCommand_:function(M){return M&&M.command||null},
computeButtonIcon_:function(M){return M&&M.icon&&M.icon.iconType?_.C6(M.icon.iconType):null},
computeButtonText_:function(M,d){return!d&&M&&M.text||null},
computeAccessibility_:function(M){return this.get("accessibilityData.accessibilityData",M)||M&&M.accessibility||(M&&M.text?{label:this.getSimpleString(M.text)}:null)},
computeTooltip_:function(M){return M?M.isDisabled&&M.disabledTooltip||M.tooltip||null:null},
computeButtonClass_:function(M){var d=M&&M.style?M.style.toLowerCase().replace(/_/g,"-")+" ":"";d+=M&&M.size?M.size.toLowerCase().replace(/_/g,"-")+" ":"";M.colorData&&M.colorData.basicColorPaletteData&&M.colorData.basicColorPaletteData.borderColor&&(d+="palette-with-border");return d.trim()}}];var wT={};var zEo;var bmL;var eEe,Hmt=function(){return eEe!==void 0?eEe:eEe=document.createElement("template")};
document.head.appendChild(Hmt().content);var nmL;var im3,fNd=function(){return im3!==void 0?im3:im3=document.createElement("template")};
document.head.appendChild(fNd().content);var Lpz;var tLL,GWo=function(){return tLL!==void 0?tLL:tLL=document.createElement("template")};
document.head.appendChild(GWo().content);var aNV;var UKL=document.head,ueI=UKL.appendChild,Cjd;if(aNV===void 0){var xKm=document.createElement("template");_.P(xKm,"\x3c!--css-build:shady--\x3e");xKm.content.insertBefore(GWo().content.cloneNode(!0),xKm.content.firstChild);aNV=xKm}Cjd=aNV;ueI.call(UKL,Cjd.content);var Y5V=document.head,ZmL=Y5V.appendChild,EmL;if(Lpz===void 0){var M7g=document.createElement("template");_.P(M7g,"\x3c!--css-build:shady--\x3e");M7g.content.insertBefore(fNd().content.cloneNode(!0),M7g.content.firstChild);Lpz=M7g}EmL=Lpz;ZmL.call(Y5V,EmL.content);var dkg=document.head,Njg=dkg.appendChild,RSI;if(nmL===void 0){var X7t=document.createElement("template");_.P(X7t,"\x3c!--css-build:shady--\x3e");X7t.content.insertBefore(Hmt().content.cloneNode(!0),X7t.content.firstChild);nmL=X7t}RSI=nmL;Njg.call(dkg,RSI.content);var FWV;_.pO("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");FWV=_.Q("web_button_rework")&&_.KF("BUTTON_REWORK")||_.Q("web_button_rework_with_live");_.Xn=function(){return _.n.apply(this,arguments)||this};
_.v(_.Xn,_.n);_.Xn.prototype.created=function(){this.openPopupConfig=_.rK("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Xn.prototype.onYtNavigate_=function(M){var d=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(this.ytOpenPopupBehavior.openPopup(d),M.stopPropagation(),M.preventDefault())};
_.Hm.Object.defineProperties(_.Xn,{template:{configurable:!0,enumerable:!0,get:function(){if(bmL===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;zEo===void 0&&(zEo=document.createElement("template"));var R=zEo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);bmL=M}M=bmL;return M}}});
_.Xn.prototype.onYtNavigate_=_.Xn.prototype.onYtNavigate_;_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],_.Xn.prototype,"ytOpenPopupBehavior",void 0);_.G([_.S(_.S5d.YtButtonBehavior),_.a("design:type",Object)],_.Xn.prototype,"ytButtonBehavior",void 0);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],_.Xn.prototype,"onYtNavigate_",null);
_.Xn=_.G([_.w4({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:FWV})],_.Xn);var AGL;var V7t=_.Q("web_button_rework")&&_.KF("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),Fn=function(){var M=_.n.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.skipCommandHandling=!1;M.alignByText=!1;M.fitToVisibleBounds=!0;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};M.onTap=function(d){_.YP(M.hostElement,"yt-service-request-sent-button-renderer",d)};
return M};
_.v(Fn,_.n);_.F=Fn.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.F.onClick=function(M){var d,N=this.disabled||((d=this.data)==null?void 0:d.isDisabled);d=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");N&&d&&M.stopPropagation()};
_.F.computeIcon=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType;if(N)return _.C6(N)};
_.F.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.F.handleUpdateButtonAction=function(M){M=_.q(M,Fkz);var d=_.q(M==null?void 0:M.updatedButton,_.K9);if(this.data&&M&&d){var N=this.data;N.targetId&&M.targetId&&N.targetId===M.targetId&&(this.data=d)}};
_.Hm.Object.defineProperties(Fn.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var M=this;if(this.data){var d=qBL({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.YP(M.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.YP(M.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});d.alignByText=this.alignByText;return d}}}});
_.Hm.Object.defineProperties(Fn,{template:{configurable:!0,enumerable:!0,get:function(){if(AGL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');AGL=M}M=AGL;return M}}});
Fn.prototype.onClick=Fn.prototype.onClick;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Fn.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Fn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"isPressed",void 0);
_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"forceIconOnly",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"forceModernIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"skipCommandHandling",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"alignByText",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"buttonTooltipPosition",void 0);
_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"fitToVisibleBounds",void 0);_.G([_.H({computed:"computeTooltip(data)"}),_.a("design:type",Object)],Fn.prototype,"tooltip",void 0);_.G([_.H(),_.a("design:type",Object)],Fn.prototype,"overrides",void 0);_.G([_.H(),_.a("design:type",Boolean)],Fn.prototype,"disabled",void 0);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Fn.prototype,"onClick",null);
_.G([_.z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fn.prototype,"computedButtonShape",null);Fn=_.G([_.w4({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!V7t,cssBuildOptOut:!0}),_.w4({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!V7t,cssBuildOptOut:!0})],Fn);var lPI;var $ko;var As=function(){var M=_.n.apply(this,arguments)||this;M.empty_=!0;M.loadTime=Infinity;M.pendingPaint=!1;M.hasChange_=!1;M.oldThumbnail_=null;M.oldDelayedSrc_="";M.objectURL_=null;return M};
_.v(As,_.n);_.F=As.prototype;_.F.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.F.ready=function(){var M=this.shouldShowPlaceholder_();_.t2(this.hostElement,"no-transition",!0);M&&this.hostElement.classList.add("with-placeholder")};
_.F.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.F.isThumbPreloaded_=function(M){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",M)};
_.F.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||BjJ};
_.F.computeThumbnailSrc_=function(M){return M&&M.thumbnails?_.Hz(M.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.F.computeAlt_=function(){var M=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&M||""};
_.F.thumbnailChanged_=function(){var M=_.V([this.thumbnail,this.oldThumbnail_]),d=M.next().value;M=M.next().value;this.oldThumbnail_=d;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(M=this.computeThumbnailSrc_(M),this.computeThumbnailSrc_(d)===M))return;_.Q("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(d)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):d&&_.KF("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.bM(this,this.onReload_):_.bM(this,this.onShow_):this.resetImage_();d&&(this.hostElement.style.opacity=""+d.opacity)}};
_.F.delayedSrcChanged_=function(){var M=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===M||this.resetImage_()};
_.F.setSrc_=function(M){M?(_.K(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.K(this.hostElement).querySelector("#img").src=M):(_.K(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.F.resetImage_=function(){j5p(this.hostElement);this.empty_=!0;this.setSrc_(BjJ);this.ytRendererBehavior.invalidate(!1)};
_.F.observePlaceholderColor_=function(){var M=this.thumbnail&&this.thumbnail.placeholderColor;M?this.hostElement.style.backgroundColor=_.p3(M):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.F.onLoad_=function(){_.K(this.hostElement).querySelector("#img").src&&_.K(this.hostElement).querySelector("#img").src!==BjJ&&(Or2(this.hostElement),this.notifyOnLoaded&&_.YP(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.F.onError_=function(){var M=this;if(_.Q("web_use_cache_for_image_fallback"))JG2(_.K(this.hostElement).querySelector("#img").src).then(function(d){M.objectURL_=_.WQ(d).toString();M.setSrc_(M.objectURL_)}).catch(function(){_.Q("kevlar_woffle_fallback_image")&&M.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.F.onPrescanVisible=function(){this.onShow_()};
_.F.onVisible=function(){if(_.Q("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.F.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var M=this.computeSrc_();M!==_.K(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))}};
_.F.onReload_=function(){this.empty_=!1;var M=this.computeSrc_();M!==_.K(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))};
_.F.shouldShowPlaceholder_=function(){return _.Q("kevlar_thumbnail_bg")};
As.prototype.observePlaceholderColor_=As.prototype.observePlaceholderColor_;As.prototype.delayedSrcChanged_=As.prototype.delayedSrcChanged_;As.prototype.thumbnailChanged_=As.prototype.thumbnailChanged_;_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],As.prototype,"alt",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],As.prototype,"ariaHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],As.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],As.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],As.prototype,"id",void 0);_.G([_.S(_.oh.YtVisibilityBehavior),_.a("design:type",Object)],As.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",String)],As.prototype,"delayedSrc",void 0);
_.G([_.H(),_.a("design:type",Object)],As.prototype,"thumbnail",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],As.prototype,"loaded",void 0);_.G([_.H(),_.a("design:type",Boolean)],As.prototype,"notifyOnLoaded",void 0);_.G([_.H(),_.a("design:type",Number)],As.prototype,"height",void 0);_.G([_.H(),_.a("design:type",Number)],As.prototype,"width",void 0);_.G([_.H({value:function(){return"width"}}),
_.a("design:type",String)],As.prototype,"dimension",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],As.prototype,"fit",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],As.prototype,"fitHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],As.prototype,"fitWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],As.prototype,"objectFit",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],As.prototype,"objectPosition",void 0);_.G([_.H(),_.a("design:type",String)],As.prototype,"preferredThumbnail",void 0);_.G([_.H({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.a("design:type",String)],As.prototype,"alt_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],As.prototype,"sharedTooltipText",void 0);
_.G([_.H(),_.a("design:type",Boolean)],As.prototype,"ftlEligible",void 0);_.G([_.H({value:void 0}),_.a("design:type",String)],As.prototype,"observeHiddenOption",void 0);_.G([_.H({value:"observe_once"}),_.a("design:type",String)],As.prototype,"observePrescanOption",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],As.prototype,"roundedContainer",void 0);
_.G([_.NS("thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],As.prototype,"thumbnailChanged_",null);_.G([_.NS("delayedSrc"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],As.prototype,"delayedSrcChanged_",null);_.G([_.xB("thumbnail.placeholderColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],As.prototype,"observePlaceholderColor_",null);
As=_.G([_.w4({is:"yt-img-shadow",disableElementRegistration:!0})],As);var BjJ=_.KF("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.ty()(As,"yt-img-shadow",function(){if($ko===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;lPI===void 0&&(lPI=document.createElement("template"));var R=lPI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);$ko=M}M=$ko;return M},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var yFj;_.Vs=new _.x5("SCREEN_MANAGER_TOKEN");yFj=new _.x5("LOG_INITIAL_SCREEN_TOKEN");_.I0=_.SG(function(M){function d($i){return _.q($i,_.QM)}
function N(){var $i=R().isTogglingDisabled||m()?y():!y();c($i);t(!1);if(!R().isTogglingDisabled){var vj;(vj=l)==null||vj(!!$i)}var Pj;((Pj=A)==null?0:Pj())||_.FD(_.h().resolve(_.Vs),R().trackingParams);var sS;if(!$i||!d(R().defaultButtonViewModel)||(sS=A)!=null&&sS()){var tL;!d(R().toggledButtonViewModel)||((tL=A)==null?0:tL())||_.FD(_.h().resolve(_.Vs),d(R().toggledButtonViewModel).trackingParams)}else _.FD(_.h().resolve(_.Vs),d(R().defaultButtonViewModel).trackingParams)}
var R=M.data,X=M.buttonShapeOverrides,A=M.disableExplicitClickLogging,l=M.onToggle,k=M.style,T=M.useOutlinedIcon,W=M.className,w=function(){var $i,vj;return y()?($i=M.animatedTextPropsToggled)==null?void 0:$i.call(M):(vj=M.animatedTextPropsDefault)==null?void 0:vj.call(M)},p=_.Al(function(){return w()?Object.assign({},w(),{shouldAnimate:e()}):void 0},void 0,"ZKEa0b"),m=function(){var $i;
return(($i=Fi())==null?void 0:$i.isToggled)!==void 0},I=_.V(_.Rq(function(){var $i,vj,Pj;
return m()?($i=Fi())==null?void 0:$i.isToggled:(Pj=X==null?void 0:(vj=X())==null?void 0:vj.toggled)!=null?Pj:R().isToggled})),O=I.next().value;
I=I.next().value;var y=O,c=I;I=_.V(_.Rq(function(){var $i,vj;return($i=M.animatedTextPropsToggled)==null?void 0:(vj=$i.call(M))==null?void 0:vj.shouldAnimate}));
O=I.next().value;I=I.next().value;var e=O,t=I;O=_.V(_.d0(!1,void 0,"S11hid"));var C=O.next().value,U=O.next().value,Fi=_.hI(function($i){var vj;a:{var Pj=R().entityKey,sS=R().toggledStateEntitySelectorType;if(sS&&Pj)switch(sS){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var tL;$i=(tL=_.Rz($i.entities,"sfvAudioItemCurrentlyPlayingEntity",Pj))!=null?tL:void 0;tL=(vj=$i==null?void 0:$i.sfvAudioItemPlaybackState)!=null?vj:void 0;if(tL==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){vj={isToggled:!0};
break a}if(tL){vj={isToggled:!1};break a}break;default:_.vh(new _.WJ("Error: entitySelectorType defined but not matched in selector.",$i,sS))}vj=void 0}return vj});
O=_.dT(function(){var $i=_.h().resolve(_.CF(_.TH));$i&&U($i.isKeyBoardInUse());return!1});
I=_.dT(function(){U(!1);return!1});
var Y=function(){return Object.assign({},X==null?void 0:X(),{onToggle:N,toggleable:!0,toggled:y(),focused:C()})};
return _.g("toggle-button-view-model",{"on:focusin":O,"on:focusout":I,class:W},_.g(_.kV,{cond:function(){return y()?d(R().toggledButtonViewModel):d(R().defaultButtonViewModel)},
then:function($i){return _.g(_.o0,{data:$i,className:W,style:k,useOutlinedIcon:T,buttonOverrides:Y,animatedTextProps:p})}}))},"v");
_.I0.idomCompat={callbacks:{onToggle:!0}};_.eC(_.SG(function(M){return _.g("yt-toggle-button-view-model",{class:function(){var d;return(d=M.scopingClassName)==null?void 0:d.call(M)}},_.g(_.I0,{data:function(){var d;
return(d=M.data)==null?void 0:d.call(M)},
buttonShapeOverrides:function(){var d;return(d=M.overrides)==null?void 0:d.call(M)},
animatedTextPropsDefault:function(){var d;return(d=M.animatedTextPropsDefault)==null?void 0:d.call(M)},
animatedTextPropsToggled:function(){var d;return(d=M.animatedTextPropsToggled)==null?void 0:d.call(M)},
disableExplicitClickLogging:function(){var d;return(d=M.disableExplicitClickLogging)==null?void 0:d.call(M)},
onToggle:function(d){var N;return(N=M.onToggle)==null?void 0:N.call(M,d)},
style:function(){var d;return(d=M.style)==null?void 0:d.call(M)},
useOutlinedIcon:function(){var d;return(d=M.useOutlinedIcon)==null?void 0:d.call(M)},
className:function(){var d;return(d=M.className)==null?void 0:d.call(M)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.cA,
buttonShapeOverrides:_.cA,overrides:_.cA,animatedTextPropsDefault:_.cA,animatedTextPropsToggled:_.cA,disableExplicitClickLogging:_.cA,onToggle:_.bI,style:_.cA,useOutlinedIcon:_.cA,className:_.cA,scopingClassName:_.cA}});var ln=function(){return _.n.apply(this,arguments)||this};
_.v(ln,_.n);ln.prototype.onTap=function(M){M.stopPropagation();M=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.v5("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M})):this.ytLiveChatReduxBehavior.dispatch(_.la("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M}))};
_.Hm.Object.defineProperties(ln.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.q(this.data.toggleButton,_.qH),d;if(Number(((d=this.likeCountState)==null?void 0:d.likeCountIfIndifferentNumber)||"0")===0){var N;d=((N=this.data.likeCountPlaceholder)==null?void 0:N.content)||""}else{var R,X,A;d=((R=this.likeCountState)==null?void 0:(X=R.likeCountIfIndifferent)==null?void 0:X.content)||((A=this.data.likeCountPlaceholder)==null?void 0:A.content)||""}var l,k;N=((l=this.likeCountState)==null?void 0:(k=
l.likeCountIfLiked)==null?void 0:k.content)||"1";l=_.q(M.toggledButtonViewModel,_.QM);return Object.assign({},M,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.q(M.defaultButtonViewModel,_.QM),{title:d})},toggledButtonViewModel:{buttonViewModel:Object.assign({},l,{title:N})}})}}}});
ln.prototype.onTap=ln.prototype.onTap;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],ln.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ln.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.likeCountEntityKey"],selector:ICi}),_.a("design:type",Object)],ln.prototype,"likeCountState",void 0);_.G([_.H({selectorArgs:["data.engagementStateKey"],selector:YUq}),_.a("design:type",Object)],ln.prototype,"engagementState",void 0);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ln.prototype,"isLiked",null);
_.G([_.z("data","likeCountState","isLiked"),_.a("design:type",Object),_.a("design:paramtypes",[])],ln.prototype,"toggleButton",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ln.prototype,"onTap",null);ln=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],ln);
_.L(ln,"yt-live-chat-like-button-view-model",function(){if(jyo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Omd===void 0&&(Omd=document.createElement("template"));var R=Omd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);jyo=M}M=jyo;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var kgo;var TjI;var $y=function(){return _.n.apply(this,arguments)||this};
_.v($y,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$y.prototype,"data",void 0);$y=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],$y);
_.L($y,"yt-live-chat-paid-message-footer-renderer",function(){if(TjI===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;kgo===void 0&&(kgo=document.createElement("template"));var R=kgo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);TjI=M}M=TjI;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var DkV;var gU3;var WW3;var w73,p7d=function(){if(w73!==void 0)return w73;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;WW3===void 0&&(WW3=document.createElement("template"));var R=WW3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return w73=M};var BG=function(){return _.n.apply(this,arguments)||this};
_.v(BG,_.n);BG.prototype.onTap=function(M){M.stopPropagation()};
_.Hm.Object.defineProperties(BG.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.q(this.data.replyButton,_.QM),d,N,R,X,A,l,k,T=Number(((d=this.replyCountState)==null?void 0:d.replyCountNumber)||"0")===0?(N=this.data)==null?void 0:(R=N.replyCountPlaceholder)==null?void 0:R.content:((X=this.replyCountState)==null?void 0:(A=X.replyCount)==null?void 0:A.content)||((l=this.data)==null?void 0:(k=l.replyCountPlaceholder)==null?void 0:k.content)||"",W;return Object.assign({},
M,{title:T,accessibilityText:(W=this.replyCountState)==null?void 0:W.replyButtonAccessibilityText})}}}});
_.Hm.Object.defineProperties(BG,{template:{configurable:!0,enumerable:!0,get:function(){return p7d()}}});
BG.prototype.onTap=BG.prototype.onTap;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],BG.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],BG.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BG.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.replyCountEntityKey"],selector:function(M,d){return _.Rz(M.entities,"replyCountEntity",d)}}),
_.a("design:type",Object)],BG.prototype,"replyCountState",void 0);_.G([_.z("data","replyCountState"),_.a("design:type",Object),_.a("design:paramtypes",[])],BG.prototype,"buttonViewModel",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],BG.prototype,"onTap",null);BG=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],BG);
_.L(BG,"yt-live-chat-reply-button-view-model",function(){return p7d()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var mkL;var hSm;var ky=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel="";return M};
_.v(ky,_.n);
ky.prototype.dataChanged=function(){for(var M=(0,_.aj)(_.K(this.hostElement).querySelector("#image"));M.firstChild;)M.removeChild(M.firstChild);if(this.data)if(this.data.icon){var d=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(d.polymerController.icon="yt-sys-icons:shield-filled",d.polymerController.defaultToFilled=!0):d.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();M.appendChild(d)}else if(this.data.customThumbnail){d=document.createElement("img");
var N=_.p7i(this.data.customThumbnail.thumbnails,16);N?(d.src=N,M.appendChild(d),d.setAttribute("alt",this.hostElement.ariaLabel||"")):_.vh(new _.WJ("Could not compute URL for thumbnail",this.data.customThumbnail))}};
ky.prototype.identity=function(M){return M};
ky.prototype.computeType=function(M){return aT(M||void 0)};
ky.prototype.dataChanged=ky.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],ky.prototype,"data",void 0);_.G([_.H({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.a("design:type",Object)],ky.prototype,"ariaLabel",void 0);_.G([_.H({computed:"computeType(data)",reflectToAttribute:!0}),_.a("design:type",String)],ky.prototype,"type",void 0);
_.G([_.H({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.a("design:type",String)],ky.prototype,"sharedTooltipText",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("live_chat_enable_new_moderator_badge")}}),
_.a("design:type",Boolean)],ky.prototype,"enableNewModeratorBadge",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ky.prototype,"dataChanged",null);ky=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],ky);
_.L(ky,"yt-live-chat-author-badge-renderer",function(){if(hSm===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;mkL===void 0&&(mkL=document.createElement("template"));var R=mkL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);hSm=M}M=hSm;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Q53;var qgV;var Tc=function(){return _.n.apply(this,arguments)||this};
_.v(Tc,_.n);_.F=Tc.prototype;_.F.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"}}}}};
_.F.computeBadgesInsideChip=function(M){return M?M.filter(function(d){return aT(d.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.F.computeBadgesOutsideChip=function(M){return this.prependChatBadges||!M?[]:M.filter(function(d){d=aT(d.liveChatAuthorBadgeRenderer);return d!=="verified"&&d!=="owner"})};
_.F.computeBadgesBeforeChip=function(M){return this.prependChatBadges&&M?M.filter(function(d){d=aT(d.liveChatAuthorBadgeRenderer);return d!=="verified"&&d!=="owner"}):[]};
_.F.computeIsHighlighted=function(M,d){var N=!!K9Z(M,"owner"),R=!!K9Z(M,"verified");M=!!K9Z(M,"moderator");return(N||R&&!M)&&!d};
_.F.computeAuthorType=function(M){return rJ6(M)};
_.F.computeAuthorClass=function(M,d){return d?(M?M+" ":"")+"single-line":M};
_.F.onSeedColorChanged=function(){_.Q("live_chat_author_name_color_usernames")||_.Q("live_chat_seed_color_usernames")||_.Q("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):_.Q("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Tc.prototype.onSeedColorChanged=Tc.prototype.onSeedColorChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Tc.prototype,"authorName",void 0);_.G([_.H(),_.a("design:type",Array)],Tc.prototype,"authorBadges",void 0);
_.G([_.H({computed:"computeAuthorType(authorBadges)"}),_.a("design:type",String)],Tc.prototype,"authorType",void 0);_.G([_.H({computed:"computeAuthorClass(authorType, singleLine)"}),_.a("design:type",String)],Tc.prototype,"authorClass",void 0);_.G([_.H({computed:"computeBadgesInsideChip(authorBadges)"}),_.a("design:type",Array)],Tc.prototype,"badgesInsideChip",void 0);_.G([_.H({computed:"computeBadgesOutsideChip(authorBadges)"}),_.a("design:type",Array)],Tc.prototype,"badgesOutsideChip",void 0);
_.G([_.H({computed:"computeBadgesBeforeChip(authorBadges)"}),_.a("design:type",Array)],Tc.prototype,"badgesBeforeChip",void 0);_.G([_.H({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Tc.prototype,"isHighlighted",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Tc.prototype,"singleLine",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Tc.prototype,"disableHighlighting",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Tc.prototype,"dashboardMoneyFeed",void 0);_.G([_.H({value:_.Q("live_chat_prepend_badges"),reflectToAttribute:!0}),_.a("design:type",Boolean)],Tc.prototype,"prependChatBadges",void 0);_.G([_.H(),_.a("design:type",String)],Tc.prototype,"authorNameColor",void 0);_.G([_.Z3("#author-name"),_.a("design:type",HTMLDivElement)],Tc.prototype,"username",void 0);
_.G([_.xB("authorNameColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tc.prototype,"onSeedColorChanged",null);Tc=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Tc);
_.L(Tc,"yt-live-chat-author-chip",function(){if(qgV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Q53===void 0&&(Q53=document.createElement("template"));var R=Q53;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qgV=M}M=qgV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var IPd;var vUm;var Dd=function(){var M=_.n.apply(this,arguments)||this;M.debounceCommand=_.m2(function(d){M.ytComponentBehavior.resolveCommand(d)},1500);
return M};
_.v(Dd,_.n);Dd.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var M=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",d,N,R=this.isHearted?(d=this.data)==null?void 0:d.unheartCommand:(N=this.data)==null?void 0:N.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.v5("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:M}));(M=_.ht(R))&&this.debounceCommand(M)}};
_.Hm.Object.defineProperties(Dd.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M,d;if(!((M=this.data)==null?0:(d=M.creatorThumbnail)==null?0:d.sources))return{};M={thumbnails:[]};d={};d.url=this.data.creatorThumbnail.sources[0].url;M.thumbnails.push(d);return M}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.engagementState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((N=this.engagementState)==null?void 0:N.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}}});
Dd.prototype.onTap=Dd.prototype.onTap;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Dd.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],Dd.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dd.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.engagementStateKey"],selector:YUq}),_.a("design:type",Object)],Dd.prototype,"engagementState",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Dd.prototype,"thumbnailDetails",null);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dd.prototype,"isHearted",null);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dd.prototype,"isEditable",null);
_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dd.prototype,"showCreatorView",null);_.G([_.z("data","engagementState"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Dd.prototype,"showButton",null);_.G([_.z("data","isHearted"),_.a("design:type",String),_.a("design:paramtypes",[])],Dd.prototype,"label",null);_.G([_.z("data","isHearted"),_.a("design:type",Object),_.a("design:paramtypes",[])],Dd.prototype,"heartHoverText",null);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dd.prototype,"onTap",null);Dd=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Dd);
_.L(Dd,"yt-live-chat-creator-heart-view-model",function(){if(vUm===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;IPd===void 0&&(IPd=document.createElement("template"));var R=IPd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vUm=M}M=vUm;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var gQ=function(M,d){this.serviceId=new TKV(M,d)};
gQ.prototype.toString=function(){return this.serviceId.toString()};var OrL=function(){this.internalMap={}};
_.F=OrL.prototype;_.F.contains=function(M){return Object.prototype.hasOwnProperty.call(this.internalMap,M)};
_.F.get=function(M){if(this.contains(M))return this.internalMap[M]};
_.F.set=function(M,d){this.internalMap[M]=d};
_.F.getKeys=function(){return Object.keys(this.internalMap)};
_.F.remove=function(M){delete this.internalMap[M]};var pV=function(){this.mappings=new OrL;this.errorCallbacks=new Set};
pV.prototype.getModuleId=function(M){return M.serviceId.getModuleId()};
pV.prototype.get=function(M){var d=this.mappings.get(M.toString());return j5e(this,d,M)};
pV.prototype.getMultipleAsync=function(){var M=_.wH.apply(0,arguments),d=this,N=M.map(function(T){return d.getModuleId(T)}),R=M.map(function(T){return d.mappings.get(T.toString())}).filter(function(T){return T});
if(R.length===M.length)return _.RD(R.map(function(T,W){return j5e(d,T,M[W])}));
var X=h8().loadMultiple(N);R=_.qc(N.map(function(T){return X[T]}));
var A=document.hidden,l=-1,k=_.ZR("get_async_timeout_ms",-1);k>-1&&(l=setTimeout(function(){_.vh(new _.WJ("Module timeout.",N,A,document.hidden))},k));
return _.Ie(R.then(function(){return M.map(function(T){return j5e(d,d.mappings.get(T.toString()),T)})}).thenCatch(function(T){for(var W=_.V(d.errorCallbacks),w=W.next();!w.done;w=W.next())w=w.value,w(T);
throw T;}),function(){clearTimeout(l)})};
pV.prototype.registerService=function(M,d){this.mappings.set(M.toString(),{type:"mapping",value:d});return M};
var j5e=function(M,d,N){switch(d.type){case "mapping":return d.value;case "factory":return d=d.value(),M.mappings.set(N.toString(),{type:"mapping",value:d}),d;default:return _.RC(d)}};
pV.prototype.onLoadError=function(M){var d=this;this.errorCallbacks.add(M);return function(){d.errorCallbacks.delete(M)}};
_.mq=new pV;var s5J=function(){};
_.F=s5J.prototype;
_.F.JSC$11783_getRequest=function(M,d,N){d=d===void 0?{}:d;N=N===void 0?W7J:N;var R=d;if(this.isNavigationCommand()){var X,A=(X=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:X.url;R=_.Spq(M.clickTrackingParams,!0,!1,A,this.JSC$11783_getClientScreen(R))}else R=_.Spq(M.clickTrackingParams,!1,this.includeCsn);R={context:R};if(X=this.getExtension(M))return this.JSC$11783_buildRequest(R,X,d),X=this.getApiUrl(M),A=Object.assign({},{command:M},this.getRequestConfig(M,d)),R={input:X,requestShell:eE(X),
innerTubeRequest:R,config:A},R.config.authStrategy?R.config.authStrategy.identity=N:R.config.authStrategy={identity:N},(M=this.JSC$11783_getRequestKey(M,d))&&!R.config.requestKey&&(R.config.requestKey=M),R;M=new _.WJ("Error: Failed to create Request from Command.",M);_.qZ(M)};
_.F.getApiUrl=function(M){var d=_.fh(this.getApiPaths(M)),N;(M=(N=_.q(M.commandMetadata,_.an))==null?void 0:N.apiUrl)&&(d=M);return AWi(F8r(d))};
_.F.isNavigationCommand=function(){return!1};
_.F.JSC$11783_getClientScreen=function(){};
_.F.JSC$11783_getRequestKey=function(){};
_.F.getRequestConfig=function(){};
_.Hm.Object.defineProperties(s5J.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var hs=function(){};
_.v(hs,s5J);hs.prototype.JSC$11790_getStoreKey=function(){};
hs.prototype.JSC$11783_getRequestKey=function(M,d){d=d===void 0?{}:d;return this.JSC$11790_getStoreKey(M,d)};var Qs=function(){};
_.v(Qs,hs);Qs.prototype.JSC$11783_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:eE("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Qs.prototype.getApiPaths=function(){return[]};
Qs.prototype.getExtension=function(){};
Qs.prototype.JSC$11783_buildRequest=function(){};var PZL={},oUz=(PZL.GET_DATASYNC_IDS=Iq(Qs),PZL);var rGd,KWJ,yGI,PDe,qh,Sgd,c1I,cGd,JGL;rGd="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");KWJ=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Pi=function(M,d,N,R,X,A,l,k,T){this.endpointMap=M;this.networkManager=d;this.authService=N;this.responseProcessorMap=R;this.innertubeResponseStore=X;this.contextProcessors=A;this.asyncContextProcessors=l;this.localInnertubeRouter=k;this.requestSequencer=T;this.inflightRequests=new Map;M.signalEndpointMap||(M.signalEndpointMap={});M.signalEndpointMap=Object.assign({},oUz,M.signalEndpointMap)};
yGI=function(M,d,N,R,X,A,l,k,T){if(_.Pi.instance!==void 0){if(R=_.Pi.instance,M=[M!==R.endpointMap,d!==R.networkManager,N!==R.authService,X!==R.innertubeResponseStore,A!==R.contextProcessors,l!==R.asyncContextProcessors,k!==R.localInnertubeRouter],M.some(function(W){return W}))throw new _.WJ("InnerTubeTransportService is already initialized",M);
}else _.Pi.instance=new _.Pi(M,d,N,R,X,A,l,k,T)};
_.rT=function(M,d,N){var R=R===void 0?W7J:R;var X=c1I(M,d);return X?new _.Xy(function(A,l){var k,T,W,w,p;return _.B(function(m){switch(m.nextAddress){case 1:return _.D(m,X,2);case 2:k=m.yieldResult;T=k.JSC$11783_getRequest(d,N,R);if(!T){l(new _.WJ("Error: Failed to build request for command.",d));m.jumpTo(0);break}qX(T.input);w=((W=T.requestShell)==null?void 0:W.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){p=JGL(T.config,w);m.jumpTo(4);break}return _.D(m,cGd(T.config,w),5);case 5:p=
m.yieldResult;case 4:A(Sgd(M,T,p)),_.Vy(m)}})}):_.cl(new _.WJ("Error: No request builder found for command.",d))};
PDe=function(M,d,N,R){var X=X===void 0?W7J:X;var A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y;return _.B(function($i){switch($i.nextAddress){case 1:A=jpL(d,M.endpointMap);if(!A)throw new _.WJ("Error: No streaming request builder found for command",d);l=A.JSC$11783_getRequest(d,N,X);if(!l)throw new _.WJ("Failed to build YtRequest for streaming Command",d);if((k=M.localInnertubeRouter)==null||!k.shouldPreferLocalResponse(l.input,l.innerTubeRequest)){$i.jumpTo(2);break}return _.D($i,M.localInnertubeRouter.localInnertubeResponse(l.input,
l.innerTubeRequest),3);case 3:return T=$i.yieldResult,W={},T.playerResponse&&(qh(M,T.playerResponse,l),W.player=T.playerResponse,(w=R)==null||w(W,T)),T.watchNextResponse&&(qh(M,T.watchNextResponse,l),W.content=T.watchNextResponse,(p=R)==null||p(W,T)),$i.return(W);case 2:I=((m=l.requestShell)==null?void 0:m.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){O=JGL(l.config,I);$i.jumpTo(4);break}return _.D($i,cGd(l.config,I),5);case 5:O=$i.yieldResult;case 4:return e=(c=(y=l.requestShell)==null?
void 0:y.headers)!=null?c:{},l.requestShell=Object.assign({},l.requestShell,{headers:Object.assign({},e,O)}),t=Object.assign({},l.requestShell),C=JSON.stringify(l.innerTubeRequest),l.requestShell.method==="POST"&&(t=Object.assign({},t,{body:C})),U=function(vj,Pj){qh(M,Pj.playerResponse||Pj.watchNextResponse||Pj.reelItemWatchResponse||Pj.reelWatchSequenceResponse,l);R==null||R(vj,Pj)},Fi={},_.D($i,zSd(M.networkManager,l.input,t,U),6);
case 6:return Fi=$i.yieldResult,((Y=l.config)==null?0:Y.responseTick)&&_.v1(l.config.responseTick),$i.return(Fi)}})};
_.Pn=function(M,d,N,R,X){X=X===void 0?{authStrategy:{identity:W7J}}:X;var A=A===void 0?!0:A;var l=function(){};
l=IBp(QUj(N));d.context||(d.context=_.Spq(R,A));return new _.Xy(function(k){var T,W,w,p,m;return _.B(function(I){if(I.nextAddress==1)return T=F8r(N),W=_.bX(T),M.authService.syncHeaders?(w=JGL(X,W),I.jumpTo(2)):_.D(I,cGd(X,W),3);I.nextAddress!=2&&(w=I.yieldResult);p=AWi(F8r(N));m={input:p,requestShell:eE(p),innerTubeRequest:d,config:X};k(Sgd(M,m,w,l));_.Vy(I)})})};
qh=function(M,d,N){var R;if(d&&!(d==null?0:(R=d.sequenceMetaData)==null?0:R.skipProcessing)&&M.responseProcessorMap){R=_.V(rGd);for(var X=R.next();!X.done;X=R.next())X=X.value,M.responseProcessorMap[X]&&M.responseProcessorMap[X].handleResponse(d,N)}};
Sgd=function(M,d,N,R){R=R===void 0?function(){}:R;
var X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i,vj,Pj,sS,tL,b2,Hj,LZ,w3,XY,jJ,Ne,Vz,oI,$d,CJ,xd,Vq,uL,fg,M9;return _.B(function(OV){switch(OV.nextAddress){case 1:l=(X=d.config)==null?void 0:(A=X.storeStrategy)==null?void 0:A.storeKey;if(!(l&&M.innertubeResponseStore&&M.innertubeResponseStore.has(l))||((k=d.config)==null?0:(T=k.storeStrategy)==null?0:T.disableCache)){OV.jumpTo(2);break}return _.D(OV,M.innertubeResponseStore.get(l),3);case 3:if((W=OV.yieldResult)&&!W.isExpired())return OV.return(Promise.resolve(_.Vr(W)));
case 2:if(!((w=d)==null?0:(p=w.innerTubeRequest)==null?0:p.context)){OV.jumpTo(4);break}m=d.innerTubeRequest.context;if(!(M.asyncContextProcessors&&M.asyncContextProcessors.length>0)){OV.jumpTo(5);break}I=[];O=_.V(M.asyncContextProcessors);for(y=O.next();!y.done;y=O.next())c=y.value,e=c.processContext(d),e.wrappedPromise_&&I.push(e.wrappedPromise_);if(!(I.length>0)){OV.jumpTo(5);break}return _.D(OV,Promise.all(I),5);case 5:t=_.V(M.contextProcessors||[]),C=t.next();case 8:if(C.done){OV.jumpTo(4);break}U=
C.value;return _.D(OV,U.processContext(m),9);case 9:C=t.next();OV.jumpTo(8);break;case 4:if((Fi=M.localInnertubeRouter)==null||!Fi.shouldPreferLocalResponse(d.input,d.innerTubeRequest)){OV.jumpTo(12);break}return _.D(OV,M.localInnertubeRouter.localInnertubeResponse(d.input,d.innerTubeRequest),13);case 13:return Y=OV.yieldResult,qh(M,Y,d),OV.return(Y);case 12:return(Pj=(vj=d.config)==null?void 0:vj.requestKey)&&M.inflightRequests.has(Pj)?$i=M.inflightRequests.get(Pj):(sS=JSON.stringify(d.innerTubeRequest),
Hj=(b2=(tL=d.requestShell)==null?void 0:tL.headers)!=null?b2:{},d.requestShell=Object.assign({},d.requestShell,{headers:Object.assign({},Hj,N)}),LZ=Object.assign({},d.requestShell),d.requestShell.method==="POST"&&(LZ=Object.assign({},LZ,{body:sS})),((w3=d.config)==null?0:w3.requestTick)&&_.v1(d.config.requestTick),XY=function(){return M.networkManager.fetch(d.input,LZ,d.config)},$i=M.requestSequencer?brd(M.requestSequencer,d,XY):XY(),Pj&&M.inflightRequests.set(Pj,$i)),_.D(OV,$i,14);
case 14:if((jJ=OV.yieldResult)&&"error"in jJ&&((Ne=jJ)==null?0:(Vz=Ne.error)==null?0:Vz.details))for(oI=jJ.error.details,$d=_.V(oI),CJ=$d.next();!CJ.done;CJ=$d.next())xd=CJ.value,(Vq=xd["@type"])&&KWJ.indexOf(Vq)>-1&&(delete xd["@type"],jJ=xd);Pj&&M.inflightRequests.has(Pj)&&M.inflightRequests.delete(Pj);((uL=d.config)==null?0:uL.responseTick)&&_.v1(d.config.responseTick);if(jJ||(fg=M.localInnertubeRouter)==null||!fg.canProvideFallbackResponse(d.input,d.innerTubeRequest)){OV.jumpTo(15);break}return _.D(OV,
M.localInnertubeRouter.localFallbackInnertubeResponse(d.input,d.innerTubeRequest),16);case 16:jJ=OV.yieldResult;case 15:return qh(M,jJ,d),((M9=d.config)==null?0:M9.processorTick)&&_.v1(d.config.processorTick),R(),OV.return(jJ||void 0)}})};
_.oq=function(M,d){return OBZ(d,M.endpointMap)};
c1I=function(M,d){M=spr(d,M.endpointMap);if(M!==void 0)return Promise.resolve(M)};
cGd=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1){X=(N=M)==null?void 0:(R=N.authStrategy)==null?void 0:R.sessionIndex;var k=_.RD(sDL({sessionIndex:X}));return _.D(l,k,2)}A=l.yieldResult;return l.return(Promise.resolve(Object.assign({},PNr(d),A)))})};
JGL=function(M,d){var N;M=M==null?void 0:(N=M.authStrategy)==null?void 0:N.sessionIndex;N=sDL({sessionIndex:M});return Object.assign({},PNr(d),N)};var eSz,Hrz,nUV,irJ,fPd,LWd,aPC,Uk3,Ob,ujL,CZL,Ggd,xkg;eSz=0;Hrz=/tone[1-5]/;nUV=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");irJ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
fPd=Number.MAX_SAFE_INTEGER;LWd=RegExp("\ufe0f","g");_.Id=function(M){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;M&&_.t7t(this,M)};
_.t7t=function(M,d){try{_.Am(d,{context:M,onSuccess:function(R,X){Array.isArray(X)?M.load(X):(R=new _.WJ("Emoji manager JSON response was not an array!",{response:X}),_.qZ(R))},
onError:function(R){R=new _.WJ("Failed to retrieve emoji manager initial JSON data!",{url:d,statusCode:d2(R).toString()});_.vh(R)}})}catch(R){var N=new _.WJ("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:d});
_.vh(N)}};
_.Id.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Id.prototype.load=function(M,d){if(d)if(M.length)M=M.concat(d.emojis);else{this.emojis=d.emojis;this.emojiMap=d.emojiMap;this.emojiShortcutMap=d.emojiShortcutMap;this.emojiShortcutCharMap=Ggd(d);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=d.emojiRegex;return}this.emojis=[].concat(_.wu(new Set(this.emojis.concat(M))));this.hasInitializedShortcutCharMap=!1;M=Array(this.emojis.length);for(d=0;d<this.emojis.length;d++){var N=this.emojis[d];if(N.emojiId){this.emojiMap[N.emojiId]=N;this.emojiMap[N.emojiId].index=
d;for(var R=0;N.shortcuts&&R<N.shortcuts.length;R++)this.emojiShortcutMap[N.shortcuts[R].toLocaleLowerCase()]=N;M[d]=N.isCustomEmoji&&N.shortcuts?N.shortcuts[0]:N.emojiId}}M.sort(function(X,A){return A.length-X.length});
if(M.length)try{this.emojiRegex=new RegExp(M.join("|").replace("*","\\*"),"gi")}catch(X){this.emojiRegex=/$./}else this.emojiRegex=/$./};
aPC=function(M,d){d=_.V(d);for(var N=d.next();!N.done;N=d.next()){var R=N.value;if(R.emojiId&&M.emojiMap[R.emojiId]){N=Object.assign({},M.emojiMap[R.emojiId],R);M.emojiMap[R.emojiId]=N;var X=void 0;N.index&&((X=M.emojis[N.index])==null?void 0:X.emojiId)===R.emojiId&&(M.emojis[N.index]=N);R=void 0;if((R=N.shortcuts)==null?0:R.length)for(M.hasInitializedShortcutCharMap=!1,R=_.V(N.shortcuts),X=R.next();!X.done;X=R.next())M.emojiShortcutMap[X.value.toLocaleLowerCase()]=N}}};
Uk3=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,_.mT.getInstance(),2);if(R.nextAddress!=3)return(d=R.yieldResult)?_.D(R,d.get("ytlc-emoji-pref"),3):R.return();(N=R.yieldResult)&&aPC(M,Object.keys(N).map(function(X){return{emojiId:X,stickyPrefId:N[X]}}).filter(function(X){return!!X.emojiId&&!!X.stickyPrefId}));
_.Vy(R)})};
_.vG=function(M,d,N){return(M=M.emojiMap[d])&&(!M.isLocked||N!==void 0&&N)?M:void 0};
Ob=function(M,d,N){N=_.vG(M,d,N===void 0?!1:N);var R=d.match("\u200d");N&&M.skinTone!==0&&(M=(R==null?void 0:R.length)===1?_.vG(M,d.replace("\u200d",nUV[M.skinTone]+"\u200d")):_.vG(M,d+nUV[M.skinTone]))&&(N=M);return N};
ujL=function(M,d){var N=M.emojiMap[d];return(N==null?0:N.stickyPrefId)?M.emojiMap[N.stickyPrefId]:Ob(M,d)};
_.Tf=function(M,d){M=M.emojiShortcutMap[d.toLocaleLowerCase()];return!M||M.isLocked?null:M};
CZL=function(M,d,N){return Ggd(M,N===void 0?!1:N)[d]||{}};
Ggd=function(M,d){d=d===void 0?!1:d;if(!M.hasInitializedShortcutCharMap){M.hasInitializedShortcutCharMap=!0;for(var N=0;N<M.emojis.length;N++){var R=M.emojis[N];if(!(R.isLocked||d&&R.isCustomEmoji&&R.emojiId&&!M.pickerCustomEmojiIds.includes(R.emojiId)))for(var X=0;R.shortcuts&&X<R.shortcuts.length;X++){var A=R.shortcuts[X];A.startsWith(":_")&&R.isCustomEmoji&&(M.emojiShortcutCharMap[":_"]==null&&(M.emojiShortcutCharMap[":_"]=Object.create(null)),M.emojiShortcutCharMap[":_"][A]=R);if(!(A.length<3||
!R.isCustomEmoji&&Hrz.test(A))){var l=A.substr(0,3).toLocaleLowerCase();M.emojiShortcutCharMap[l]==null&&(M.emojiShortcutCharMap[l]=Object.create(null));M.emojiShortcutCharMap[l][A]=R}}}}return M.emojiShortcutCharMap};
_.Id.prototype.createEmoji=function(M,d){d=d===void 0?!0:d;var N=document.createElement("img");M.isCustomEmoji||N.classList.add("small-emoji");N.classList.add("emoji");N.classList.add("yt-formatted-string");N.src=M.image?_.Hz(M.image.thumbnails,this.emojiSize)||"":"";var R=void 0;M.image&&M.image.accessibility&&M.image.accessibility.accessibilityData&&(R=M.image.accessibility.accessibilityData.label);N.alt=R?R:(M.isCustomEmoji&&M.shortcuts?M.shortcuts[0]:M.emojiId)||"";M.isCustomEmoji&&(N.dataset.emojiId=
M.emojiId);_.lb&&(N.setAttribute("contenteditable","false"),N.setAttribute("unselectable","on"));d&&(M.shortcuts&&M.shortcuts.length&&N.setAttribute("shared-tooltip-text",M.shortcuts[0]),N.id="emoji-"+eSz++);return N};
_.Id.prototype.createDocumentFragment=function(M,d,N,R){d=d===void 0?!1:d;N=N===void 0?!0:N;R=R===void 0?!1:R;M=M.replace(LWd,"");for(var X=document.createDocumentFragment(),A=0,l,k=0;(l=this.emojiRegex.exec(M))!=null;){var T=_.vG(this,l[0])||_.Tf(this,l[0]);!T||T.isCustomEmoji&&!d||(T=this.createEmoji(T,N),A!==l.index&&X.appendChild(document.createTextNode(M.substring(A,l.index))),X.appendChild(T),A=l.index+l[0].length,k++)}if(!R||k)return X.appendChild(document.createTextNode(M.substr(A))),X};
xkg=function(M,d,N){var R,X,A,l,k,T,W,w,p;return _.B(function(m){if(m.nextAddress==1){if(!d.emojiId||!M.emojiMap[d.emojiId])return m.return();R=Object.assign({},M.emojiMap[d.emojiId],{stickyPrefId:N});M.emojiMap[d.emojiId]=R;d.index&&((X=M.emojis[d.index])==null?void 0:X.emojiId)===d.emojiId&&(M.emojis[d.index]=R);if((A=d.shortcuts)==null?0:A.length)for(M.hasInitializedShortcutCharMap=!1,l=_.V(d.shortcuts),k=l.next();!k.done;k=l.next())T=k.value,M.emojiShortcutMap[T.toLocaleLowerCase()]=R;return _.D(m,
_.mT.getInstance(),2)}if(m.nextAddress!=4)return(W=m.yieldResult)?_.D(m,W.get("ytlc-emoji-pref"),4):m.jumpTo(0);p=(w=m.yieldResult)!=null?w:{};p[d.emojiId]=N;return _.D(m,W.set("ytlc-emoji-pref",p,fPd),0)})};
_.j$=new _.Id;var EUt;_.sb={};
EUt={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.Q("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:_.Q("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 Sp(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var M=_.K(this.hostElement||this).querySelector("#inline-action-button-container");M&&M.setAttribute("aria-hidden","true");this.menuButton=_.K(this.hostElement).querySelector("#menu-button")},
attached:function(){var M=this.menuButton;M&&(M.addEventListener("focusin",_.ux(this,this.onMenuButtonFocus_)),M.addEventListener("focusout",_.ux(this,this.onMenuButtonBlur_)))},
detached:function(){var M=this.menuButton;M&&(M.removeEventListener("focusin",_.ux(this,this.onMenuButtonFocus_)),M.removeEventListener("focusout",_.ux(this,this.onMenuButtonBlur_)))},
identity:_.z6,truthy:function(M){return!!M},
computeTimestampString:function(M){return M?M.timestampText?this.getSimpleString(M.timestampText):this.TIME_FORMATTER.format(new Date(M.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(M){return _.Q("live_chat_whole_message_clickable")&&M},
computeMenuVisible_:function(M,d){return M||d},
computeHasInlineActionButtons:function(M){if(!M)return!1;var d,N;return!((d=M.inlineActionButtons)==null||!d.length)||!((N=M.additionalInlineActionButtons)==null||!N.length)},
createDocumentFragmentFromString:function(M){var d=_.j$.createDocumentFragment.bind(_.j$),N;if((N=this.participantsManager)==null||!N.viewerRegex)return d(M);N=document.createDocumentFragment();for(var R=0,X;(X=this.participantsManager.viewerRegex.exec(M))!=null;){if(X.index>0){var A=":"+X[0]+":";if((_.vG(_.j$,A)||_.Tf(_.j$,A))&&M.indexOf(A)===X.index-1)continue}N.appendChild(d(M.substring(R,X.index)));R=document.createElement("span");R.appendChild(d(X[0]));R.classList.add("mention");N.appendChild(R);
R=X.index+X[0].length}N.appendChild(d(M.substring(R)));return N},
createDocumentFragment:function(M){var d=document.createDocumentFragment();if(M.simpleText)return d.appendChild(this.createDocumentFragmentFromString(M.simpleText)),d;if(!M.runs)return d;for(var N=0;N<M.runs.length;N++){var R=M.runs[N];if(R.emoji)d.appendChild(_.j$.createEmoji(R.emoji));else if(R.text)if(R.navigationEndpoint){var X=document.createElement("a");X.classList.add("yt-simple-endpoint");CIj(X,R.navigationEndpoint);_.K(X).appendChild(this.createDocumentFragmentFromString(R.text));d.appendChild(X)}else d.appendChild(this.createDocumentFragmentFromString(R.text))}return d},
hasModerationOverlayVisible:function(){var M;return((M=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:M.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(M){M.composedPath().some(function(d){return(d=d instanceof Element?d:null)?d.tagName&&(d.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||d.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.Q("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(M)},
colorFromDecimal:function(M){return DqN(M)},
markAsDeleted:function(M,d){this.set("data.deletedStateMessage",M);this.set("data.showOriginalContentMessage",d)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(M){if(this.data.contextMenuEndpoint){var d=_.h().resolve(_.Tu),N=this.data.contextMenuEndpoint,R;(R=_.Pi.instance)&&_.oq(R,N)?(d=Ygz(d,N),R=_.Pn(R,{},d)):R=_.Zrt(d,N);R.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);M&&M.stopPropagation()}},
handleGetContextMenuResponse_:function(M){var d=_.Pi.instance;d&&_.oq(d,{liveChatEndpoint:{}})||(M=M.response);M.liveChatItemContextMenuSupportedRenderers&&M.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(M.liveChatItemContextMenuSupportedRenderers.menuRenderer);M.actions&&_.ZI(this.hostElement,"yt-live-chat-actions",[M.actions])},
handleGetContextMenuError:function(M){if(M instanceof Error||M instanceof Object||M instanceof String)var d=M;_.qZ(new _.WJ("Error encountered calling GetLiveChatItemContextMenu",d))},
showContextMenu_:function(M){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:M}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.YP(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.YP(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.sb.YtLiveChatItemBehavior=[EUt,_.jV.YtComponentBehavior,_.Zp.YtOpenPopupBehavior];_.PG=function(){};var MeJ;var dAL;var NE3;var RQJ;var od=function(){var M=_.n.apply(this,arguments)||this;M.active=!1;M.identity=_.z6;return M};
_.v(od,_.n);od.prototype.dataChanged=function(){this.active=!1};
od.prototype.onClick=function(){_.YP(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
od.prototype.dataChanged=od.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],od.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],od.prototype,"active",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],od.prototype,"dataChanged",null);od=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],od);
_.L(od,"yt-live-chat-text-input-field-suggestion",function(){if(RQJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;NE3===void 0&&(NE3=document.createElement("template"));var R=NE3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);RQJ=M}M=RQJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});_.rQ=function(M,d,N){return CustomEvent.call(this,M,{detail:{value:d,path:N}})||this};
_.v(_.rQ,CustomEvent);_.KV=function(){var M=_.n.apply(this,arguments)||this;M.viewerName=null;M.actionMap={"yt-live-chat-actions":"onChatMessage_"};M.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];M.PARTICIPANT_TIME_USEC_=3E8;return M};
_.v(_.KV,_.n);_.F=_.KV.prototype;_.F.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.F.addParticipant=function(M){var d=_.qSS(this.participants,M,function(R,X){R=R[Object.keys(R)[0]];X=X[Object.keys(X)[0]];R=String(_.HD(R.authorName)).toLowerCase();X=String(_.HD(X.authorName)).toLowerCase();return R<X?-1:R==X?0:1}.bind(this));
if(d>=0){var N=this.participants[d];N[Object.keys(N)[0]].timestampUsec&&this.splice("participants",d,1,M)}else this.splice("participants",-d-1,0,M);M=M[Object.keys(M)[0]];d=_.HD(M.authorName).toLocaleLowerCase();N=d.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(N)||(this.allParticipantsCharMap_[N]={});this.allParticipantsCharMap_[N][d]=M};
_.F.getAuthorsFromPrefix=function(M){return this.allParticipantsCharMap_.hasOwnProperty(M)?this.allParticipantsCharMap_[M]:null};
_.F.computeViewerRegex_=function(M){if(!M)return null;M=M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.Q("enable_web_yt_handles")||_.Q("enable_live_chat_yt_handles")?new RegExp("([#]"+M.replace(/ /g,"\\s*")+"|^"+M.replace(/ /g,"\\s*")+"$|^"+M.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+M.replace(/ /g,"\\s*")+"$|(?<=\\s)"+M.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+M.replace(/ /g,"\\s*")+"|^"+M.replace(/ /g,"\\s*")+"$|^"+M.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+M.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+M.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.F.checkForStaleParticipants_=function(){var M=this;this.trimOldParticipants_();this.asyncHandle_&&n1j(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.vu(function(){M.checkForStaleParticipants_()},3E4))};
_.F.onChatMessage_=function(M){var d=this,N=Date.now()*1E3;M.forEach(function(R){if(R=_.q(R,SKI)){R=R.item;var X=Object.keys(R)[0];d.SUPPORTED_ITEM_TYPES_.indexOf(X)!=-1&&R[X].timestampUsec>=N-d.PARTICIPANT_TIME_USEC_&&d.addParticipant(R)}},this);
this.checkForStaleParticipants_()};
_.F.trimOldParticipants_=function(){for(var M=Date.now()*1E3,d=this.participants.length-1;d>=0;d--){var N=this.participants[d];N=N[Object.keys(N)[0]];N.timestampUsec&&N.timestampUsec<M-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",d,1)}};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],_.KV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],_.KV.prototype,"viewerName",void 0);_.G([_.H({computed:"computeViewerRegex_(viewerName)"}),_.a("design:type",Object)],_.KV.prototype,"viewerRegex",void 0);_.G([_.H({value:function(){return[]},
notify:!0}),_.a("design:type",Array)],_.KV.prototype,"participants",void 0);_.KV=_.G([_.w4({is:"yt-live-chat-participants-manager",noInjection:!0})],_.KV);var X8d=/.*([:@#].*?)$/,ys=/\u00a0/g,FRe=String.fromCharCode(160),Aqm={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"},Js=function(){var M=_.n.apply(this,arguments)||this;M.disabled=!1;M.liveChatRichMessageInput=null;M.messageInput=null;M.isValidWithNoInputText=!1;M.suggestions=[];M.emojiManager=_.j$;M.inputMethodEditorActive=
!1;M.suggestionIndex=-1;M.JSC$11838_lastSuggestionRange=null;return M};
_.v(Js,_.n);_.F=Js.prototype;_.F.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.F.attached=function(){_.$h&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.F.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.F.dataChanged=function(){if(!this.ignoreColorMapping){var M=!1,d={},N;for(N in Aqm)this.data&&this.data.hasOwnProperty(N)&&(d[Aqm[N]]=this.colorFromDecimal(this.data[N]),M=!0);M&&_.UO(this.hostElement,d)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.F.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.F.colorFromDecimal=function(M){M=Math.floor(Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
_.F.preventDrag=function(M){M.dataTransfer&&(M.dataTransfer.dropEffect="none");M.preventDefault()};
_.F.preventResize=function(M){M.returnValue=!1};
_.F.onInputChange=function(){var M=this.characterCount,d=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&d&&d.remove();if(!d&&this.characterCount>this.maxCharacterLimit){var N=window.getSelection();if(N){var R=N.getRangeAt(0);N.removeAllRanges();N.addRange(R)}}if(N=this.getCurrentRange())R=this.calculateTextBeforeRange(N),this.completeEmojisInRange(N,R,!0)||this.updateSuggestions(N,R);R=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(R);
_.YP(this.hostElement,"yt-live-chat-message-input-change",R);d&&this.characterCount===0&&d.remove();N&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>M):N&&!N.collapsed&&N.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(M=this.input.childNodes.length-1;M>=0;M--)this.input.childNodes[M].nodeName==="BR"&&this.input.childNodes[M].remove()};
_.F.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.F.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var M=this.getCurrentRange();M&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.F.mergeOverflowText=function(M){if(M){var d=document.createRange();d.selectNodeContents(M);d=d.extractContents();this.input.insertBefore(d,M)}};
_.F.checkRangeAtEndOfInput=function(){var M=this.getCurrentRange();if(M){var d=_.K(this.hostElement).querySelector("#overflow-text"),N=document.createRange();d&&d.previousSibling?d.previousSibling instanceof HTMLImageElement?N.selectNode(d.previousSibling):N.selectNodeContents(d.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?N.selectNode(this.input.lastChild):N.selectNodeContents(this.input.lastChild));N.collapse(!1);return N.isPointInRange(M.startContainer,
M.startOffset)}return!1};
_.F.handleOverflowText=function(M){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var d=_.K(this.hostElement).querySelector("#overflow-text"),N=this.getCurrentRange();this.input.normalize();M=this.checkRangeAtEndOfInput()&&M;this.mergeOverflowText(d);for(var R,X=0,A=0,l,k=this.input.childNodes,T=0;T<k.length;T++){var W=k[T];W instanceof Text?(A+=W.textContent.length,A>this.maxCharacterLimit&&(R=W,X=this.maxCharacterLimit+W.textContent.length-A)):W instanceof HTMLImageElement&&
(R=void 0,A=W.dataset.emojiId&&((R=this.data)==null?0:R.emojiCharacterCount)?A+this.data.emojiCharacterCount:A+W.alt.length,R=this.input,X=T);if(A>this.maxCharacterLimit&&R){l=document.createRange();l.collapse(!1);d?(A=this.input.lastChild.previousSibling,A instanceof Text?l.setEnd(this.input.lastChild.previousSibling,A.textContent.length):A instanceof HTMLImageElement&&l.setEnd(this.input,this.input.childNodes.length-1)):l.selectNodeContents(this.input);l.setStart(R,X);break}}l&&(R=!1,N&&(M=l.isPointInRange(N.startContainer,
N.startOffset-1)),d||(d=document.createElement("span"),d.id="overflow-text",d.textContent="",d.setAttribute("contenteditable","true"),_.K(_.K(this.hostElement).querySelector("#input")).appendChild(d),R=!0),d&&(N=l.extractContents(),d.insertBefore(N,d.firstChild),M&&d.firstChild&&(N=document.createRange(),R?N.setStartAfter(d.lastChild):N.setStartAfter(d.firstChild),N.collapse(!0),d=window.getSelection(),d.removeAllRanges(),d.addRange(N))))}};
_.F.checkForDuplicateSpans=function(){for(var M=0;M<this.input.childNodes.length;M++){var d=this.input.childNodes[M];if(d.nodeName==="SPAN"){var N=document.createRange();N.selectNodeContents(d);N=N.extractContents();this.input.insertBefore(N,d);d.remove()}}this.handleOverflowText(!0)};
_.F.getCurrentRange=function(){var M=window.getSelection();return M&&M.rangeCount?M.getRangeAt(0).cloneRange():null};
_.F.getInputRange=function(){var M=this.getCurrentRange();if(M){for(var d=M.commonAncestorContainer,N=!1,R=_.K(this.hostElement).querySelector("#input");d;){if(d===R){N=!0;break}d=d.parentNode}N||(M=null)}M||(M=this.getRangeAtEnd());return M};
_.F.getRangeAtEnd=function(){var M=document.createRange(),d=_.K(this.hostElement).querySelector("#input").lastChild;!d||d.nodeName!=="#text"&&d.nodeName!=="SPAN"?(M.selectNodeContents(_.K(this.hostElement).querySelector("#input")),M.collapse(!1)):d.nodeName==="#text"?M.setStart(d,d.textContent.length):M.setStart(d,d.childNodes.length);return M};
_.F.getSuggestions=function(M){var d=[],N=M.substring(0,3),R=CZL(_.j$,N,!0);if(R)for(var X in R)if(X.toLocaleLowerCase().indexOf(M)===0){var A=R[X];if(A&&A.emojiId){if(A=ujL(_.j$,A.emojiId)){var l=void 0,k=void 0,T=void 0,W=void 0,w=((l=A.image)==null?0:(k=l.accessibility)==null?0:(T=k.accessibilityData)==null?0:T.label)||A.isCustomEmoji?(W=A.shortcuts)==null?void 0:W[0]:A.emojiId;d.push({suggestion:{emoji:!0,image:A.image,alt:w,text:X,textToInsertWhenSelected:A.isCustomEmoji?X:w}})}if(d.length>=
64)break}}if(!this.participantsManager)return null;R=_.Q("enable_web_yt_handles")||_.Q("enable_live_chat_yt_handles");if(N.indexOf("@")===0||N.indexOf("#")===0)if(X=N.charAt(0),M=M.substring(1),N=R&&N.indexOf("@")===0?N.substring(0,2):N.substring(1),N=this.participantsManager.getAuthorsFromPrefix(N))for(var p in N)if(p.indexOf(M)===0||R&&p.indexOf(X+M)===0)if(A=N[p],l=_.HD(A.authorName),d.push({suggestion:{author:!0,authorType:X,image:A.authorPhoto,alt:l,text:l}}),d.length>=64)break;return d?d.sort(function(m,
I){return I.suggestion.text<m.suggestion.text?-1:I.suggestion.text===m.suggestion.text?0:1}):null};
_.F.insertSuggestion=function(M){var d=_.Q("enable_web_yt_handles")||_.Q("enable_live_chat_yt_handles")?M.text+FRe:M.authorType+M.text+FRe;M.emoji?this.insertTextAtRange(this.JSC$11838_lastSuggestionRange,M.textToInsertWhenSelected||""):M.author&&this.insertTextAtRange(this.JSC$11838_lastSuggestionRange,d)};
_.F.updateSuggestionsAtCaret=function(){var M=this.getCurrentRange();M&&this.updateSuggestions(M,this.calculateTextBeforeRange(M))};
_.F.offsetStartOfRangeBy=function(M,d){for(;d>0;)if(M.startOffset-d>=0){M.setStart(M.startContainer,M.startOffset-d);break}else{d=M.startContainer instanceof HTMLImageElement?d-M.startContainer.alt.length:d-M.startOffset;var N=M.startContainer.previousSibling;if(!N){M.setStart(M.startContainer,0);break}if(_.Q("live_chat_require_space_for_autocomplete_emoji")){var R=void 0,X=void 0;M.setStart(N,((R=N)==null?void 0:(X=R.textContent)==null?void 0:X.length)||0)}else M.setStart(N,N.childNodes.length||
0)}};
_.F.updateSuggestions=function(M,d){var N=this;this.JSC$11838_lastSuggestionRange&&(this.JSC$11838_lastSuggestionRange.detach(),this.JSC$11838_lastSuggestionRange=null);if((d=X8d.exec(d))&&d.length&&(d=d[d.length-1].toLocaleLowerCase(),d.length>2&&(this.offsetStartOfRangeBy(M,d.length),this.JSC$11838_lastSuggestionRange=M,(M=this.getSuggestions(d))&&M.length))){this.suggestions=M;_.bM(this,function(){_.K(N.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.F.completeEmojisInRange=function(M,d,N){var R=d.replace(/[\s\xa0]+$/,"");d=d.length-R.length;R=R.split(" ");R=R[R.length-1].trim().toLocaleLowerCase();var X=R.lastIndexOf(":");if(N&&!d&&X!==R.length-1)return!1;X!==-1&&(N=R.lastIndexOf(":",X-1),N!==-1&&(R=R.substring(N)));if((N=_.Tf(_.j$,R))&&N.emojiId){N=ujL(_.j$,N.emojiId)||null;this.offsetStartOfRangeBy(M,R.length+d);var A,l,k,T;R=(((A=N)==null?0:A.isCustomEmoji)?(l=N)==null?void 0:(k=l.shortcuts)==null?void 0:k[0]:(T=N)==null?void 0:T.emojiId)||
"";d&&(R+=FRe);this.insertTextAtRange(M,R);this.dropdown.opened=!1;return!0}return!1};
_.F.onSuggestion=function(M){this.insertSuggestion(M.detail);this.dropdown.opened=!1};
_.F.onKeyPress=function(M){M.keyCode===13&&(M.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.YP(this.hostElement,"yt-live-chat-send-message"))};
_.F.completeEmojis=function(){var M=document.createRange(),d=_.K(this.hostElement).querySelector("#input").lastChild;d?M.setStart(d,d.childNodes.length):(M.selectNodeContents(_.K(this.hostElement).querySelector("#input")),M.collapse(!1));this.completeEmojisInRange(M,this.calculateTextBeforeRange(M),_.Q("live_chat_require_space_for_autocomplete_emoji"))};
_.F.maybePreventTextFormatting=function(M){!_.T7||!M.ctrlKey&&!M.metaKey||M.keyCode!==66&&M.keyCode!==73||(M.stopImmediatePropagation(),M.preventDefault())};
_.F.onKeyDown=function(M){this.maybePreventTextFormatting(M);if(this.dropdown.opened)switch(M.keyCode){case 27:this.dropdown.opened=!1;M.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;M.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.F.onKeyUp=function(M){switch(M.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.lb)this.onInputChange()};
_.F.changeSuggestionIndex=function(M){if(this.dropdown.opened){var d=_.K(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<d.children.length&&(d.children[this.suggestionIndex].active=!1);var N=this.suggestions.length;this.suggestionIndex=(M+N)%N;M=d.children[this.suggestionIndex];M.active=!0;d.scrollTop=M.offsetTop}};
_.F.onInputPaste=function(M){M.preventDefault();(M=M.clipboardData)&&M.types&&(M=M.getData("text/plain")||"",M=M.replace(/\n/g,""),this.insertText(M));(M=this.getCurrentRange())&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.F.onFocus=function(){this._setFocused(!0)};
_.F.onBlur=function(){this._setFocused(!1)};
_.F.insertText=function(M){this.insertTextAtRange(this.getInputRange(),M)};
_.F.insertTextAtRange=function(M,d){if(M&&(M.collapsed||M.deleteContents(),d=_.j$.createDocumentFragment(d,!0,!1))){for(var N=_.V((d==null?void 0:d.childNodes)||[]),R=N.next();!R.done;R=N.next()){R=R.value;var X=void 0,A=void 0,l=void 0,k=void 0,T=void 0;(l=(X=window)==null?void 0:(A=X.ShadyCSS)==null?void 0:A.ScopingShim)==null||(T=(k=l).scopeNode)==null||T.call(k,R,this.hostElement.localName)}N=d.lastChild;M.insertNode(d);this.focused||this.input.focus();if(this.focused){M=M.cloneRange();M.selectNodeContents(N);
M.collapse(!1);if(d=window.getSelection())d.removeAllRanges(),d.addRange(M);M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}M=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(M);_.YP(this.hostElement,"yt-live-chat-message-input-change",M)}};
_.F.setLiveChatRichMessageInput=function(M){_.K(_.K(this.hostElement).querySelector("#input")).textContent="";if(M&&M.textSegments){for(var d=0;d<M.textSegments.length;d++){var N=M.textSegments[d];N.text?_.K(_.K(this.hostElement).querySelector("#input")).appendChild(_.j$.createDocumentFragment(N.text,!0,!1)):N.emojiId&&(N=_.vG(_.j$,N.emojiId))&&_.K(_.K(this.hostElement).querySelector("#input")).appendChild(_.j$.createEmoji(N,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.F.setText=function(M){this.setLiveChatRichMessageInput(M?{textSegments:[{text:M}]}:null)};
_.F.calculateTextBeforeRange=function(M){var d="",N=M.startContainer;if(N&&N instanceof Text){var R;d=((R=N.textContent)==null?void 0:R.substring(0,M.startOffset))||"";N=N.previousSibling}for(;N&&N instanceof Text;)d=N.textContent+d,N=N.previousSibling;return d.replace(ys," ")};
_.F.calculateLiveChatRichMessageInput=function(){for(var M=[],d="",N=_.K(_.K(this.hostElement).querySelector("#input")).childNodes,R=0;R<N.length;R++){var X=N[R];X instanceof Text?d+=X.textContent:X instanceof HTMLImageElement&&(X.dataset.emojiId?(d&&(M.push({text:d.replace(ys," ")}),d=""),M.push({emojiId:X.dataset.emojiId})):d+=X.alt)}d&&M.push({text:d.replace(ys," ")});if(N=_.K(this.hostElement).querySelector("#overflow-text")){d="";N=N.childNodes;for(R=0;R<N.length;R++)X=N[R],X instanceof Text?
d+=X.textContent:X instanceof HTMLImageElement&&(X.dataset.emojiId?(d&&(M.push({text:d.replace(ys," ")}),d=""),M.push({emojiId:X.dataset.emojiId})):d+=X.alt);d&&M.push({text:d.replace(ys," ")})}return{textSegments:M}};
_.F.computeCharacterCount=function(M){if(!M||!M.textSegments)return 0;for(var d=0,N=0;N<M.textSegments.length;N++){var R=M.textSegments[N];if(R.text)d+=R.text.length;else if(R.emojiId){var X=void 0;if((X=this.data)==null?0:X.emojiCharacterCount)d+=this.data.emojiCharacterCount;else{var A=X=void 0,l=void 0;d+=((A=_.vG(_.j$,(X=R)==null?void 0:X.emojiId))==null?void 0:(l=A.shortcuts)==null?void 0:l[0].length)||0}}}return d};
_.F.characterCountChanged=function(){_.YP(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.F.focusedChanged=function(){this.hostElement.dispatchEvent(new _.rQ("focused-changed",this.focused))};
_.F.focus=function(){this.setFocus(!1)};
_.F.focusAtEnd=function(){this.setFocus(!0)};
_.F.setFocus=function(M){M=M?this.getRangeAtEnd():this.getInputRange();_.K(this.hostElement).querySelector("#input").focus();var d=window.getSelection();d&&(d.removeAllRanges(),d.addRange(M))};
_.F.insertEmoji=function(M){var d,N=((M==null?0:M.isCustomEmoji)?(d=M.shortcuts)==null?void 0:d[0]:M==null?void 0:M.emojiId)||"";this.insertText(N)};
_.F.computeText=function(M){if(!M||!M.textSegments)return"";for(var d="",N=0;N<M.textSegments.length;N++){var R=M.textSegments[N];if(R.text)d+=R.text;else if(R.emojiId){var X=void 0,A=void 0,l=void 0;d+=((A=_.vG(_.j$,(X=R)==null?void 0:X.emojiId))==null?void 0:(l=A.shortcuts)==null?void 0:l[0])||""}}return d};
_.F.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Hm.Object.defineProperties(Js.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
Js.prototype.focusedChanged=Js.prototype.focusedChanged;Js.prototype.characterCountChanged=Js.prototype.characterCountChanged;Js.prototype.onSuggestion=Js.prototype.onSuggestion;Js.prototype.onMessageSet=Js.prototype.onMessageSet;Js.prototype.dataChanged=Js.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Js.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Js.prototype,"disabled",void 0);_.G([_.z("disabled"),_.a("design:type",Number),_.a("design:paramtypes",[])],Js.prototype,"inputTabIndex",null);_.G([_.z("data.maxCharacterLimit"),_.H({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],Js.prototype,"maxCharacterLimit",null);
_.G([_.z("liveChatRichMessageInput"),_.H({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],Js.prototype,"characterCount",null);_.G([_.z("maxCharacterLimit, characterCount"),_.H({readOnly:!0,notify:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],Js.prototype,"remainingCharacterCount",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Js.prototype,"isChatMessageInput",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Js.prototype,"inputExpanded",void 0);_.G([_.H({readOnly:!0,notify:!0}),_.a("design:type",Object)],Js.prototype,"liveChatRichMessageInput",void 0);_.G([_.H(),_.a("design:type",Object)],Js.prototype,"messageInput",void 0);_.G([_.H(),_.a("design:type",Boolean)],Js.prototype,"ignoreColorMapping",void 0);_.G([_.z("characterCount"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Js.prototype,"hasText",null);
_.G([_.H(),_.a("design:type",Object)],Js.prototype,"isValidWithNoInputText",void 0);_.G([_.z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.H(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Js.prototype,"isInputValid",null);_.G([_.H({readOnly:!0,value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Js.prototype,"focused",void 0);_.G([_.H(),_.a("design:type",Array)],Js.prototype,"suggestions",void 0);
_.G([_.H(),_.a("design:type",_.Id)],Js.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",_.KV)],Js.prototype,"participantsManager",void 0);_.G([_.H(),_.a("design:type",Boolean)],Js.prototype,"noUnderline",void 0);_.G([_.H(),_.a("design:type",Object)],Js.prototype,"inputMethodEditorActive",void 0);_.G([_.Z3("#dropdown"),_.a("design:type",Object)],Js.prototype,"dropdown",void 0);_.G([_.Z3("#input"),_.a("design:type",HTMLElement)],Js.prototype,"input",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"dataChanged",null);_.G([_.xB("messageInput"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"onMessageSet",null);_.G([_.C3("yt-live-chat-select-suggestion"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Js.prototype,"onSuggestion",null);
_.G([_.xB("characterCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"characterCountChanged",null);_.G([_.xB("focused"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Js.prototype,"focusedChanged",null);Js=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Js);
_.VeV=_.L(Js,"yt-live-chat-text-input-field-renderer",function(){if(dAL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;MeJ===void 0&&(MeJ=document.createElement("template"));var R=MeJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);dAL=M}M=dAL;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var cG=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={style:"overlay",type:"filled"};M.allowAnimations=!1;M.modern=_.Q("web_button_rework_with_live");M.noPadding=!1;return M};
_.v(cG,_.n);_.F=cG.prototype;_.F.shouldSupportInlineActionButtons=function(){return!0};
_.F.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"}}}}};
_.F.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.F.attached=function(){this.allowAnimations=!1};
_.F.dataChanged=function(){if(this.data){var M={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.UO(this.hostElement,M);this.allowAnimations=!0}};
_.F.messageChanged=function(){var M,d=(M=this.data)==null?void 0:M.message;M=_.K(_.K(this.hostElement).querySelector("#message"));M.textContent="";d&&M.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(d))};
_.F.computeShowOnlyHeader=function(M,d){return!M||M.pdgLikeButton||M.replyButton||M.buyFlowButton?!1:this.isEmpty(M,d)&&!M.footer};
_.F.computeShowFooterDivider=function(M,d,N){return M?!!M.footer&&!this.isEmpty(M,d)&&!N:!1};
_.F.computeIsUserEditable=function(M){return!!M.inputField};
_.F.computeHasHeartButton=function(M){return(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.F.computeNoveltyImage=function(M){if(M.headerOverlayImage&&M.headerOverlayImage.thumbnails.length){var d=M.headerOverlayImage.thumbnails[0],N,R;if((N=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(R=N.loggingDirectives)==null?0:R.trackingParams){var X,A;ELi((X=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(A=X.loggingDirectives)==null?void 0:A.trackingParams)}return d.width||0}return 0};
_.F.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.F.inputFocus=function(){var M=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");M&&M.focus()};
_.F.inputInsertEmoji=function(M){var d=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");d&&d.insertEmoji(M)};
_.F.inputMessage=function(){var M=_.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),d;return M&&((d=this.data)==null?0:d.inputField)?(M.completeEmojis(),_.OL(M.liveChatRichMessageInput)):null};
_.F.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.F.isEmpty=function(M,d){return M?M.empty||!(M.message||M.inputField||d):!0};
_.F.onLowerBuyButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.buyButton,_.K9);d&&d.trackingParams&&!Wjj(d.command)&&(M=_.At(d.trackingParams))&&(d=_.Ou())&&_.eD(d,M)};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.Hm.Object.defineProperties(cG.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
cG.prototype.isDeletedChanged=cG.prototype.isDeletedChanged;cG.prototype.messageChanged=cG.prototype.messageChanged;cG.prototype.dataChanged=cG.prototype.dataChanged;_.G([_.S(L9L.YtPdgLiveChatItemBehavior),_.a("design:type",Object)],cG.prototype,"ytPdgLiveChatItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],cG.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],cG.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cG.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:YUq}),_.a("design:type",Object)],cG.prototype,"engagementState",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.a("design:type",Boolean)],cG.prototype,"isUserEditable",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.a("design:type",Boolean)],cG.prototype,"hasHeartButton",void 0);_.G([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.a("design:type",Boolean)],cG.prototype,"showOnlyHeader",void 0);
_.G([_.H({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.a("design:type",Boolean)],cG.prototype,"showFooterDivider",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],cG.prototype,"allowAnimations",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],cG.prototype,"dashboardMoneyFeed",void 0);_.G([_.H({computed:"computeNoveltyImage(data)"}),_.a("design:type",Number)],cG.prototype,"noveltyWidth",void 0);
_.G([_.H({computed:"computeAuthorPhotoSize(data)"}),_.a("design:type",Number)],cG.prototype,"authorPhotoSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],cG.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],cG.prototype,"noPadding",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cG.prototype,"dataChanged",null);
_.G([_.xB("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cG.prototype,"messageChanged",null);_.G([_.z("data","dashboardMoneyFeed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],cG.prototype,"hideLowerBumper",null);_.G([_.xB("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cG.prototype,"isDeletedChanged",null);
cG=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],cG);
_.L(cG,"yt-live-chat-paid-message-renderer",function(){if(gU3===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;DkV===void 0&&(DkV=document.createElement("template"));var R=DkV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);gU3=M}M=gU3;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var liV;var $Ag;var S$=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.v(S$,_.MS);S$.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.rK("openPopupConfig")};
_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],S$.prototype,"ytOpenPopupBehavior",void 0);S$=_.G([_.d4()],S$);_.zc=[_.Zp.YtOpenPopupBehavior,S$.prototype];var BEo;var yX=[_.F8,vsz,_.Pq,_.A2,_.nL,_.cYe,_.$B,_.tHL,_.yr,uvZ];_.Q("web_watch_get_updated_metadata_response_processing")&&yX.push(_.lYL);_.Q("web_continuation_response_processing")&&yX.push(_.qN);var FKN=new _.x5("RESPONSE_RECEIVED_COMMANDS"),tuv=new _.x5("RESPONSE_RECEIVED_COMMANDS");var bB2="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),zWv=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],SBi=["GET_UNSEEN_NOTIFICATION_COUNT"];var bn=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;M.serviceEndpointHandlers=[];return M};
_.v(bn,_.MS);bn.prototype.created=function(){var M=this;this.endpointHandlerActionMap={"yt-service-request":function(d,N,R,X){var A;return cxZ(M.hostElement,d,N,R,X,M.serviceEndpointHandlers,(A=M.onEntitiesUpdated)==null?void 0:A.bind(M))}}};
bn.prototype.attached=function(){_.S5(_.ch.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
bn.prototype.detached=function(){_.zi(_.ch.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
bn=_.G([_.d4()],bn);_.kGL=[bn.prototype];var TEd,DAm=function(){return TEd!==void 0?TEd:TEd=document.createElement("template")};
document.head.appendChild(DAm().content);var gLV;var WRL=document.head,w8I=WRL.appendChild,p8V;if(gLV===void 0){var mAt=document.createElement("template");_.P(mAt,"\x3c!--css-build:shady--\x3e");mAt.content.insertBefore(DAm().content.cloneNode(!0),mAt.content.firstChild);gLV=mAt}p8V=gLV;w8I.call(WRL,p8V.content);var hQL,Qst=function(){return hQL!==void 0?hQL:hQL=document.createElement("template")};
document.head.appendChild(Qst().content);var qUL;var Iio=document.head,vLt=Iio.appendChild,ODL;if(qUL===void 0){var jsV=document.createElement("template");_.P(jsV,"\x3c!--css-build:shady--\x3e");jsV.content.insertBefore(Qst().content.cloneNode(!0),jsV.content.firstChild);qUL=jsV}ODL=qUL;vLt.call(Iio,ODL.content);var ssI;_.pO("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.pO("sharingRendererButtons","buttonRenderer","ytd-button-renderer");ssI=_.Q("web_button_rework")&&_.KF("BUTTON_REWORK")||_.Q("web_button_rework_with_live");_.e$=function(){var M=_.n.apply(this,arguments)||this;M.isPressed=!1;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return M};
_.v(_.e$,_.n);_.F=_.e$.prototype;_.F.created=function(){this.showTooltips=!0};
_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.onHintIdChanged=function(){var M=this,d,N,R=(d=this.ytButtonBehavior.data)==null?void 0:(N=d.hint)==null?void 0:N.hintRenderer;if(R&&R.hintId){d=_.Eu(this.hostElement,"yt-get-opened-popups-action");d=(d&&d.length===1?d[0]:[]).length>0;var X=null;R.hintId!=="sponsor-pre-purchase"||d?R.hintId.startsWith("sponsor-post-purchase")&&!d?X=V1J("membership-manage"):R.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!d&&(X=V1J("membership-freebie-join")):X=V1J("membership-join");X&&_.IQ.addLowPriorityJob(function(){for(var A=
_.V(X),l=A.next();!l.done;l=A.next())M.ytComponentBehavior.resolveCommand(l.value)})}};
_.F.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.F.onYtNavigate=function(M){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(d))};
_.F.onYtServiceRequestSent=function(M,d){this.handleServiceRequestActions(d);_.YP(this.hostElement,"yt-service-request-sent-button-renderer")};
_.F.onServiceRequestCompleted=function(M,d){this.handleServiceRequestActions(d);_.YP(this.hostElement,"yt-service-request-completed-button-renderer")};
_.F.updateButton=function(M){var d;if(M=(d=_.q(M,Fkz))==null?void 0:d.updatedButton)this.ytButtonBehavior.data=_.q(M,_.K9)};
_.F.handleUpdateButtonAction=function(M){var d=this.ytButtonBehavior.data;d.targetId&&M.updateButtonAction.targetId&&d.targetId===M.updateButtonAction.targetId&&this.updateButton(M)};
_.F.handleServiceRequestActions=function(M){if(M=M.actions)for(var d=0;d<M.length;d++)this.updateButton(M[d])};
_.Hm.Object.defineProperties(_.e$,{template:{configurable:!0,enumerable:!0,get:function(){if(BEo===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);BEo=M}M=BEo;return M}}});
_.e$.prototype.onServiceRequestCompleted=_.e$.prototype.onServiceRequestCompleted;_.e$.prototype.onYtServiceRequestSent=_.e$.prototype.onYtServiceRequestSent;_.e$.prototype.onYtNavigate=_.e$.prototype.onYtNavigate;_.e$.prototype.onPressedStateChanged=_.e$.prototype.onPressedStateChanged;_.e$.prototype.onHintIdChanged=_.e$.prototype.onHintIdChanged;_.G([_.H(),_.a("design:type",Object)],_.e$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],_.e$.prototype,"isPressed",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],_.e$.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.S5d.YtButtonBehavior),_.a("design:type",Object)],_.e$.prototype,"ytButtonBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],_.e$.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],_.e$.prototype,"ytComponentBehavior",void 0);
_.G([_.S(Rd.YtRenderButtonBehavior),_.a("design:type",Object)],_.e$.prototype,"ytRenderButtonBehavior",void 0);_.G([_.xB("data.hint.hintRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],_.e$.prototype,"onHintIdChanged",null);_.G([_.xB("isPressed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],_.e$.prototype,"onPressedStateChanged",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],_.e$.prototype,"onYtNavigate",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],_.e$.prototype,"onYtServiceRequestSent",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],_.e$.prototype,"onServiceRequestCompleted",null);_.e$=_.G([_.f({is:"ytd-button-renderer",disableElementRegistration:ssI})],_.e$);var HG=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.v(HG,_.n);_.F=HG.prototype;_.F.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"}}}}};
_.F.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.F.dataChanged=function(){if(this.data&&this.data.sticker){var M=_.Hz(this.data.sticker.thumbnails,this.stickerWidth);M||_.YBp(M).thenCatch(function(){_.vh(new _.WJ("Failed to load Super Sticker with url",M))})}};
_.F.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)?32:40};
_.F.computeIsV2Style=function(M){return(M==null?0:M.isV2Style)?!0:!1};
_.F.onStickerLoaded=function(M){var d,N,R;(d=_.cN(M))==null||(N=d.parentNode)==null||(R=N.classList)==null||R.add("sticker-loaded")};
_.F.computeNoveltyImageWidth=function(M){var d,N;if(M==null?0:(d=M.headerOverlayImage)==null?0:(N=d.thumbnails)==null?0:N.length){d=M.headerOverlayImage.thumbnails[0];var R,X;if((R=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(X=R.loggingDirectives)==null?0:X.trackingParams){var A,l;ELi((A=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(l=A.loggingDirectives)==null?void 0:l.trackingParams)}return d.width||0}return 0};
_.F.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.F.updateStickerStyles=function(){var M=this.data;M&&(M={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.authorNameTextColor)},
_.UO(this.hostElement,M))};
_.F.onBuyButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.buyButton,_.K9);d&&!Wjj(d.command)&&this.ytRendererBehavior.logExplicitClick(d)};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.Hm.Object.defineProperties(HG.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
HG.prototype.updateStickerStyles=HG.prototype.updateStickerStyles;HG.prototype.isDeletedChanged=HG.prototype.isDeletedChanged;HG.prototype.onStickerLoaded=HG.prototype.onStickerLoaded;HG.prototype.dataChanged=HG.prototype.dataChanged;_.G([_.S(L9L.YtPdgLiveChatItemBehavior),_.a("design:type",Object)],HG.prototype,"ytPdgLiveChatItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],HG.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],HG.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HG.prototype,"data",void 0);
_.G([_.H({computed:"computeAuthorPhotoSize(data)"}),_.a("design:type",Number)],HG.prototype,"authorPhotoSize",void 0);_.G([_.H(),_.a("design:type",Boolean)],HG.prototype,"isDeleted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],HG.prototype,"dashboardMoneyFeed",void 0);_.G([_.H({computed:"computeNoveltyImageWidth(data)"}),_.a("design:type",Number)],HG.prototype,"noveltyWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],HG.prototype,"modern",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.a("design:type",Boolean)],HG.prototype,"isV2Style",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HG.prototype,"dataChanged",null);_.G([_.C3("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],HG.prototype,"onStickerLoaded",null);
_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],HG.prototype,"stickerWidth",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],HG.prototype,"stickerHeight",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],HG.prototype,"hasHeartButton",null);_.G([_.z("data","dashboardMoneyFeed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],HG.prototype,"hideLowerBumper",null);
_.G([_.xB("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HG.prototype,"isDeletedChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HG.prototype,"updateStickerStyles",null);HG=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],HG);
_.L(HG,"yt-live-chat-paid-sticker-renderer",function(){if($Ag===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;liV===void 0&&(liV=document.createElement("template"));var R=liV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);$Ag=M}M=$Ag;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var PHz;var oLI;var rqV,KRI=function(){return rqV!==void 0?rqV:rqV=document.createElement("template")};
document.head.appendChild(KRI().content);var yqm,JqV=function(){return yqm!==void 0?yqm:yqm=document.createElement("template")};
document.head.appendChild(JqV().content);var cqL;var SUI,zQt=function(){return SUI!==void 0?SUI:SUI=document.createElement("template")};
document.head.appendChild(zQt().content);var bDI;var eQz=document.head,HDL=eQz.appendChild,nLC;if(bDI===void 0){var iDt=document.createElement("template");_.P(iDt,"\x3c!--css-build:shady--\x3e");iDt.content.insertBefore(zQt().content.cloneNode(!0),iDt.content.firstChild);bDI=iDt}nLC=bDI;HDL.call(eQz,nLC.content);var fiL=document.head,LRd=fiL.appendChild,teV;if(cqL===void 0){var nV=document.createElement("template");_.P(nV,"\x3c!--css-build:shady--\x3e");nV.content.insertBefore(JqV().content.cloneNode(!0),nV.content.firstChild);nV.content.insertBefore(KRI().content.cloneNode(!0),nV.content.firstChild);cqL=nV}teV=cqL;LRd.call(fiL,teV.content);var fV=function(){var M=_.MS.apply(this,arguments)||this;M.focusedIndex=0;M.verticalOffset=0;M.verticalAlign="top";M.dynamicAlign=!0;return M};
_.v(fV,_.MS);fV.prototype.emojiUrl=function(M){M=_.vG(this.emojiManager,M);if(!M)return"";var d;M=(d=M.image)==null?void 0:d.thumbnails;return _.Hz(M,24)||""};
var GGL=function(M){var d;M.emojiVariants&&(d=M.data)!=null&&d.target&&_.bM(M,function(){M.set("verticalOffset",-1*M.hostElement.clientHeight);var N=_.K(M.hostElement).querySelector("img");N&&N.focus()})};
_.F=fV.prototype;_.F.onKeyboardEnter=function(){};
_.F.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.F.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.F.onKeyDown=function(M){switch(M.keyCode){case 13:this.onKeyboardEnter();M.preventDefault();break;case 40:this.changeFocus(1);M.preventDefault();break;case 38:this.changeFocus(-1);M.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.F.onYtEmojiSelect=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return R=(N=d.data)==null?void 0:N.emoji,l=((X=R)==null?void 0:X.stickyPrefId)||((A=R)==null?void 0:A.emojiId),T=(k=M.detail)==null?void 0:k.emojiId,l&&T&&l!==T?_.D(w,(W=d.emojiManager)==null?void 0:xkg(W,R,T),2):w.return();_.ZI(d.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[R,T]);_.Vy(w)})};
_.F.changeFocus=function(M){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+M+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(M=_.K(this.hostElement).querySelector("#variants"))&&M.children[this.focusedIndex].focus())};
_.Hm.Object.defineProperties(fV.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
fV.prototype.onYtEmojiSelect=fV.prototype.onYtEmojiSelect;fV.prototype.onKeyDown=fV.prototype.onKeyDown;fV.prototype.onEmojiVariantsChanged=fV.prototype.onEmojiVariantsChanged;fV.prototype.onVerticalOffsetOrPositionTargetChanged=fV.prototype.onVerticalOffsetOrPositionTargetChanged;_.G([_.S(_.fG),_.a("design:type",Object)],fV.prototype,"ironOverlayBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.Id)],fV.prototype,"emojiManager",void 0);
_.G([_.H(),_.a("design:type",Object)],fV.prototype,"emojiVariants",void 0);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"focusedIndex",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fV.prototype,"positionTarget",null);_.G([_.H({reflectToAttribute:!0}),_.z("verticalOffset","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fV.prototype,"isPositioned",null);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"verticalOffset",void 0);
_.G([_.H(),_.a("design:type",Object)],fV.prototype,"verticalAlign",void 0);_.G([_.H(),_.a("design:type",Object)],fV.prototype,"dynamicAlign",void 0);_.G([_.xB("verticalOffset","positionTarget"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.G([_.xB("emojiVariants"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fV.prototype,"onEmojiVariantsChanged",null);
_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],fV.prototype,"onKeyDown",null);_.G([_.C3("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype",Promise)],fV.prototype,"onYtEmojiSelect",null);fV=_.G([_.d4()],fV);var aid=[fV.prototype];var UAL;var ulI;var CHL=/medium-light|medium-dark|light|medium|dark/,xAC=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,YUz=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),LV=function(){var M=_.n.apply(this,arguments)||this;M.userSelection={left:null,right:null};M.scrollAction="lock";M.isEmojiDraftInProgress=!1;return M};
_.v(LV,_.n);_.F=LV.prototype;_.F.onClick=function(M){M=_.cN(M);M instanceof HTMLImageElement&&this.selectOrUpdateEmoji(M)};
_.F.selectOrUpdateEmoji=function(M){var d=M.getAttribute("selection");d&&(d==="default"?_.YP(this.hostElement,"yt-emoji-select",_.vG(this.emojiManager,M.id)):d==="left"?this.userSelection=Object.assign({},this.userSelection,{left:M.src}):d==="right"?this.userSelection=Object.assign({},this.userSelection,{right:M.src}):d==="user"&&this.userSelection.left&&this.userSelection.right&&_.YP(this.hostElement,"yt-emoji-select",_.vG(this.emojiManager,M.id)))};
_.F.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.F.onMultiSelectorThumbnailRowChanged=function(){var M,d,N;((M=this.data)==null?0:(d=M.emoji)==null?0:(N=d.multiSelectorThumbnailRow)==null?0:N.length)&&this.openSelector()};
_.F.getThumbnailFromEmojiRow=function(M){var d,N;return(M==null?void 0:(d=M.thumbnails)==null?void 0:(N=d[0])==null?void 0:N.url)||""};
_.F.getEmojiAltTextForPartialSelector=function(M){var d;return((d=this.getThumbnailFromEmojiRow(M).match(xAC))==null?void 0:d[0])||""};
_.F.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.F.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.F.getRowSelection=function(M){return["left","right"][M]};
_.F.getIdFromComposedEmoji=function(M){return(M==null?void 0:M.emojiId)||""};
_.F.getEmojiFromPartialSelections=function(M,d){if(!M&&!d)return null;var N,R,X=(N=this.data)==null?void 0:(R=N.emoji)==null?void 0:R.variantIds;if(!X||!X.length)return null;var A;M=(A=M.match(CHL))==null?void 0:A[0];var l;d=(l=d.match(CHL))==null?void 0:l[0];if(!M||!d)return null;var k=YUz.get(M);l=YUz.get(d);if(k===l){l=Array.from(YUz.values()).filter(function(W){return W!==k}).join("|");
var T=new RegExp("^((?!("+l+")).)*"+k+"$")}else T=new RegExp(k+".*"+l);return(X=X.find(function(W){return T.test(W)}))&&_.vG(this.emojiManager,X)||null};
_.F.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var M,d=this.ytEmojiSelectorBehavior.emojiUrl(((M=this.data.emoji)==null?void 0:M.emojiId)||"");_.K(this.hostElement).querySelector('[selection="user"]').src.includes(d)||(this.isEmojiDraftInProgress=!0)}};
_.F.onDomChange=function(){GGL(this.ytEmojiSelectorBehavior)};
_.F.getFocusableElements=function(){return _.K(this.hostElement).querySelectorAll("img").filter(function(M){return M.getAttribute("role")==="option"})};
_.F.changeFocus=function(M){var d=this.getFocusableElements();d!=null&&d.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+M+d.length)%d.length,this.ytEmojiSelectorBehavior.focusedIndex<d.length&&(M=d[this.ytEmojiSelectorBehavior.focusedIndex])&&M.focus())};
_.F.onKeyboardEnter=function(){var M=this.getFocusableElements();M!=null&&M.length&&(M=M[this.ytEmojiSelectorBehavior.focusedIndex])&&M instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(M),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Hm.Object.defineProperties(LV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;return this.emojiManager&&((d=this.data)==null?0:(N=d.emoji)==null?0:(R=N.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(X){return!!X&&_.vG(M.emojiManager,X)}).filter(function(X){return!!X}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var M,d=(M=this.userSelection)==null?void 0:M.left,N;M=(N=this.userSelection)==null?void 0:N.right;return d&&M?this.getEmojiFromPartialSelections(d,M):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.composedEmojiSelection)==null?0:M.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var d;M=(d=this.userSelection)==null?void 0:d.left;var N;d=(N=this.userSelection)==null?void 0:N.right;if(!M&&!d){var R;return this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"")}return M&&!d?M:!M&&d?d:""}}});
LV.prototype.onMultiSelectorThumbnailRowChanged=LV.prototype.onMultiSelectorThumbnailRowChanged;LV.prototype.onClick=LV.prototype.onClick;_.G([_.S(_.fG),_.a("design:type",Object)],LV.prototype,"ironOverlayBehavior",void 0);_.G([_.S(aid),_.a("design:type",Object)],LV.prototype,"ytEmojiSelectorBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.Id)],LV.prototype,"emojiManager",void 0);
_.G([_.H(),_.a("design:type",Object)],LV.prototype,"userSelection",void 0);_.G([_.H(),_.a("design:type",Object)],LV.prototype,"scrollAction",void 0);_.G([_.H(),_.a("design:type",Object)],LV.prototype,"isEmojiDraftInProgress",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],LV.prototype,"emojiVariants",null);_.G([_.z("data","userSelection"),_.a("design:type",Object),_.a("design:paramtypes",[])],LV.prototype,"composedEmojiSelection",null);
_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],LV.prototype,"onClick",null);_.G([_.xB("data.emoji.multiSelectorThumbnailRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],LV.prototype,"onMultiSelectorThumbnailRowChanged",null);_.G([_.z("data","userSelection","composedEmojiSelection"),_.a("design:type",String),_.a("design:paramtypes",[])],LV.prototype,"draftEmojiUrl",null);
LV=_.G([_.w4({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],LV);
_.L(LV,"yt-emoji-multi-person-selector",function(){if(ulI===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;UAL===void 0&&(UAL=document.createElement("template"));var R=UAL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ulI=M}M=ulI;return M},{mode:2});var ZDd;var ELL;var ts=function(){var M=_.n.apply(this,arguments)||this;M.tooltip_=null;return M};
_.v(ts,_.n);_.F=ts.prototype;_.F.dataChanged_=function(){var M;if((M=this.data)==null?0:M.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.K(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.aj)(this.tooltip_).textContent=this.data.tooltip};
_.F.computeTargetId=function(){var M;return((M=this.data)==null?void 0:M.targetId)||""};
_.F.computeId_=function(M){return M};
_.F.computeIcon_=function(M){return _.C6(M)};
_.F.onTap_=function(){this.active=!this.active;_.YP(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.F.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("active-changed",this.active))};
_.Hm.Object.defineProperties(ts.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)return this.data.icon.iconType==="SUPER_STICKER";var N,R;return((N=this.data)==null?void 0:(R=N.icon)==null?void 0:R.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
ts.prototype.activeChangedForBinding=ts.prototype.activeChangedForBinding;ts.prototype.dataChanged_=ts.prototype.dataChanged_;_.G([_.S(_.On.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],ts.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ts.prototype,"data",void 0);_.G([_.H({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.a("design:type",String)],ts.prototype,"id",void 0);
_.G([_.H({computed:"computeTargetId(data.targetId)"}),_.a("design:type",String)],ts.prototype,"targetId",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ts.prototype,"active",void 0);_.G([_.H({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.a("design:type",String)],ts.prototype,"icon",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"dataChanged_",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ts.prototype,"iconFilled",null);_.G([_.xB("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ts.prototype,"activeChangedForBinding",null);ts=_.G([_.w4({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],ts);
_.L(ts,"yt-emoji-picker-category-button-renderer",function(){if(ELL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ZDd===void 0&&(ZDd=document.createElement("template"));var R=ZDd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ELL=M}M=ELL;return M},{mode:2});var MuI;var d_d;var Gc=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};M.JSC$11903_ignoreNextFocus_=!1;M.longPressTimeoutId=-1;return M};
_.v(Gc,_.n);_.F=Gc.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.F.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.Nx(),d=0;d<this.emoji.length;d++){var N={veType:88013,elementIndex:d},R=this.emoji[d];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(N=_.dk(M,N))&&(R.visualElement=N)}};
_.F.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.F.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.F.emojiSkinToneChanged_=function(M){this.skinTone=M};
_.F.dataChanged=function(){this.data&&this.data.emojiData&&aPC(this.emojiManager,this.data.emojiData)};
_.F.emojiUrl=function(M){M=this.getEmoji(M);if(!M)return"";var d;M=(d=M.image)==null?void 0:d.thumbnails;return _.Hz(M,24)||""};
_.F.emojiAlt=function(M){var d=this.get("image.accessibility.accessibilityData.label",M);return d?d:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.F.emojiAriaLabel=function(M){return M.shortcuts?M.shortcuts[0]:""};
_.F.emojiAriaSelected=function(M,d,N){return M&&N==d?"true":"false"};
_.F.getEmoji=function(M){if(this.emojiManager)return this.shouldUseStickyPreferences?ujL(this.emojiManager,M):Ob(this.emojiManager,M)};
_.F.computeId_=function(M){return M.categoryId||""};
_.F.computeEmoji=function(M){var d=this;return this.emojiManager?M.emojiIds?M.emojiIds.map(function(N){return N?_.vG(d.emojiManager,N):null}).filter(ZBq):M.emojiData?M.emojiData.map(function(N){var R=!!N.emojiId&&_.vG(d.emojiManager,N.emojiId);
return R?Object.assign({},R,N):null}).filter(ZBq):[]:[]};
_.F.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.F.computeAriaLabel_=function(M){return _.HD(M)};
_.F.computeAriaActivedescendant_=function(M,d){return M&&M[d]?M[d].emojiId||"":""};
_.F.handleLongPressEmojiWithVariants=function(M,d){this.changeFocusToEmoji(M.emojiId,!1);this.openVariantSelector(M,d)};
_.F.onMouseDown=function(M){var d=this;this.hostElement!==document.activeElement&&(this.JSC$11903_ignoreNextFocus_=!0);if(M.button===0){var N=_.cN(M);if(N instanceof HTMLImageElement){var R=_.K(this.hostElement).querySelector("#repeat").itemForElement(N);this.emojiContainsVariants(R)&&(this.longPressTimeoutId=setTimeout(function(){d.handleLongPressEmojiWithVariants(R,N)},500))}}};
_.F.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.F.onFocus=function(){this.JSC$11903_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11903_ignoreNextFocus_=!1};
_.F.onBlur_=function(){this.showFocus=!1};
_.F.emojiContainsVariants=function(M){return!!(M&&M.variantIds&&M.variantIds.length)};
_.F.onClick=function(M){clearTimeout(this.longPressTimeoutId);M=_.cN(M);if(M instanceof HTMLImageElement){var d=M.id;this.changeFocusToEmoji(d,!1);var N=this.getEmoji(d),R;if(R=this.shouldUseStickyPreferences&&this.emojiContainsVariants(N)){var X;R=!((X=this.emojiManager.emojiMap[d])!=null&&X.stickyPrefId)}R?(X=_.K(this.hostElement).querySelector("#repeat").itemForElement(M),this.openVariantSelector(X,M)):_.YP(this.hostElement,"yt-emoji-select",N)}};
_.F.isActiveEmojiWithVariants=function(M,d){return M&&d?d.stickyPrefId?M===d.stickyPrefId:M===d.emojiId:!1};
_.F.onCloseEmojiVariantSelector=function(M){this.activeEmojiWithVariantsId===M&&(this.activeEmojiWithVariantsId="")};
_.F.onMouseOver_=function(M){M=_.cN(M);M instanceof HTMLImageElement&&_.YP(this.hostElement,"yt-emoji-hover",_.vG(this.emojiManager,M.id))};
_.F.changeFocus_=function(M,d){this.focusedIndex=(this.focusedIndex+M+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(M=this.emoji[this.focusedIndex],d&&(this.showFocus=!0,_.K(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.YP(this.hostElement,"yt-emoji-hover",M)))};
_.F.changeFocusToEmoji=function(M,d){if(M){var N=this.emoji.findIndex(function(R){return R.emojiId===M});
N!==-1&&this.changeFocus_(N-this.focusedIndex,d)}};
_.F.onKeyDown_=function(M){switch(M.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var d=this.emoji[this.focusedIndex];if(d&&d.emojiId){if(this.emojiContainsVariants(d)){var N=_.K(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(d,N)}else _.YP(this.hostElement,"yt-emoji-select",Ob(this.emojiManager,d.emojiId)),this.hostElement.focus();M.preventDefault()}}break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),M.preventDefault()}};
_.F.onEmojiStickyPreferenceChanged=function(M,d){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&M.emojiId&&M.variantIds&&M.variantIds.includes(d)&&this.activeEmojiWithVariantsId!==d&&this.setStickyEmojiPreference(M.emojiId,d)};
_.F.openVariantSelector=function(M,d){this.activeEmojiWithVariantsId=M.stickyPrefId||M.emojiId||"";_.YP(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:M,target:d})};
_.F.setStickyEmojiPreference=function(M,d){if(this.data){var N=this.emoji.findIndex(function(X){return X.emojiId===M});
if(N!==-1){var R=this.emoji[N];R.stickyPrefId=d;this.set("emoji."+N,Object.assign({},R));this.activeEmojiWithVariantsId=d}}};
Gc.prototype.onKeyDown_=Gc.prototype.onKeyDown_;Gc.prototype.onMouseOver_=Gc.prototype.onMouseOver_;Gc.prototype.onClick=Gc.prototype.onClick;Gc.prototype.onBlur_=Gc.prototype.onBlur_;Gc.prototype.onFocus=Gc.prototype.onFocus;Gc.prototype.onMouseUp=Gc.prototype.onMouseUp;Gc.prototype.onMouseDown=Gc.prototype.onMouseDown;Gc.prototype.dataChanged=Gc.prototype.dataChanged;Gc.prototype.disableIncrementalLoadingChanged_=Gc.prototype.disableIncrementalLoadingChanged_;Gc.prototype.emojiManagerChanged_=Gc.prototype.emojiManagerChanged_;
Gc.prototype.emojiChanged_=Gc.prototype.emojiChanged_;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Gc.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Gc.prototype,"data",void 0);_.G([_.H({computed:"computeId_(data)"}),_.a("design:type",String)],Gc.prototype,"id",void 0);_.G([_.H({computed:"computeEmoji(data)"}),_.a("design:type",Array)],Gc.prototype,"emoji",void 0);_.G([_.H(),_.a("design:type",Number)],Gc.prototype,"skinTone",void 0);
_.G([_.H(),_.a("design:type",_.Id)],Gc.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Boolean)],Gc.prototype,"disableIncrementalLoading",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],Gc.prototype,"focusedIndex",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gc.prototype,"showFocus",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.a("design:type",Object)],Gc.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.a("design:type",Object)],Gc.prototype,"ariaActivedescendant",void 0);_.G([_.H({value:60}),_.a("design:type",Number)],Gc.prototype,"domRepeatTargetFramerate",void 0);_.G([_.H({value:1}),_.a("design:type",Number)],Gc.prototype,"domRepeatInitialCount",void 0);_.G([_.H({value:""}),_.a("design:type",String)],Gc.prototype,"activeEmojiWithVariantsId",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Gc.prototype,"shouldUseStickyPreferences",void 0);_.G([_.xB("emoji"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"emojiChanged_",null);_.G([_.xB("emojiManager"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"emojiManagerChanged_",null);
_.G([_.xB("disableIncrementalLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"disableIncrementalLoadingChanged_",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"dataChanged",null);_.G([_.C3("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],Gc.prototype,"onMouseDown",null);
_.G([_.C3("mouseup"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"onMouseUp",null);_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"onFocus",null);_.G([_.C3("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gc.prototype,"onBlur_",null);
_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Gc.prototype,"onClick",null);_.G([_.C3("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Gc.prototype,"onMouseOver_",null);_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Gc.prototype,"onKeyDown_",null);
Gc=_.G([_.w4({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Gc);
_.L(Gc,"yt-emoji-picker-category-renderer",function(){if(d_d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;MuI===void 0&&(MuI=document.createElement("template"));var R=MuI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);d_d=M}M=d_d;return M},{mode:2});var NMJ;var RW3;var XRt;var FwJ;var ad=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.getFormattedStringRawText=_.HD;M.JSC$11909_ignoreNextFocus_=!1;return M};
_.v(ad,_.n);_.F=ad.prototype;_.F.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")};
_.F.emojiUrl=function(M){var d,N;M=(d=Ob(this.emojiManager,M,!0))==null?void 0:(N=d.image)==null?void 0:N.thumbnails;return _.Hz(M,24)||""};
_.F.emojiAlt=function(M){var d=this.get("image.accessibility.accessibilityData.label",M);return d?d:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.F.emojiId=function(M){return"emoji"+M};
_.F.computeId_=function(M){return M.categoryId||""};
_.F.computeAriaActivedescendant_=function(M){return this.emoji&&M<this.emoji.length?this.emojiId(M):""};
_.F.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.Nx(),d=0;d<this.emoji.length;d++){var N={veType:88013,elementIndex:d},R=this.emoji[d];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(N=_.dk(M,N))&&(R.visualElement=N)}};
_.F.computeEmoji_=function(M){var d=this;return this.emojiManager?M.emojiIds.map(function(N){return _.vG(d.emojiManager,N,!0)}).filter(EIS):[]};
_.F.titleOffsetChanged_=function(){var M=this.hostElement.getBoundingClientRect(),d=_.K(this.hostElement).querySelector("#title").getBoundingClientRect();M=Math.max(0,Math.min(this.titleOffset,M.height-d.height));_.K(this.hostElement).querySelector("#title").style.top=M+"px"};
_.F.onEmojiMouseOver_=function(M){_.YP(this.hostElement,"yt-emoji-hover",M.model.item)};
_.F.onEmojiTap_=function(M){this.data.command&&(M=Vu6(_.h().resolve(_.CF(yc)),this.data.command,M),_.YP(this.hostElement,"yt-navigate",M))};
_.F.emojiAriaLabel=function(M){return M.shortcuts[0]};
_.F.emojiAriaSelected=function(M,d,N){return M&&N==d?"true":"false"};
_.F.changeFocus_=function(M,d){var N=this.emoji.length;this.focusedIndex=(this.focusedIndex+M+N)%N;M=this.emoji[this.focusedIndex];if(d){var R;(R=_.K(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||R.scrollIntoView(!1);_.YP(this.hostElement,"yt-emoji-hover",M)}};
_.F.onMouseDown_=function(){this.JSC$11909_ignoreNextFocus_=!0};
_.F.onFocus_=function(){this.JSC$11909_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11909_ignoreNextFocus_=!1};
_.F.onBlur_=function(){this.showFocus=!1};
_.F.onKeyDown_=function(M){switch(M.keyCode){case 13:this.onEmojiTap_(M);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),M.preventDefault()}};
ad.prototype.onKeyDown_=ad.prototype.onKeyDown_;ad.prototype.onBlur_=ad.prototype.onBlur_;ad.prototype.onFocus_=ad.prototype.onFocus_;ad.prototype.onMouseDown_=ad.prototype.onMouseDown_;ad.prototype.onEmojiTap_=ad.prototype.onEmojiTap_;ad.prototype.titleOffsetChanged_=ad.prototype.titleOffsetChanged_;ad.prototype.emojiChanged_=ad.prototype.emojiChanged_;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],ad.prototype,"data",void 0);_.G([_.H({computed:"computeId_(data)"}),_.a("design:type",String)],ad.prototype,"id",void 0);_.G([_.H({computed:"computeEmoji_(data)"}),_.a("design:type",Array)],ad.prototype,"emoji",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],ad.prototype,"titleOffset",void 0);_.G([_.H({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.a("design:type",Object)],ad.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.a("design:type",Object)],ad.prototype,"ariaActivedescendant",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ad.prototype,"showFocus",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],ad.prototype,"focusedIndex",void 0);_.G([_.H(),_.a("design:type",_.Id)],ad.prototype,"emojiManager",void 0);
_.G([_.xB("emoji"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ad.prototype,"emojiChanged_",null);_.G([_.xB("titleOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ad.prototype,"titleOffsetChanged_",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ad.prototype,"onEmojiTap_",null);
_.G([_.C3("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ad.prototype,"onMouseDown_",null);_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ad.prototype,"onFocus_",null);_.G([_.C3("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ad.prototype,"onBlur_",null);
_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ad.prototype,"onKeyDown_",null);ad=_.G([_.w4({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],ad);
_.L(ad,"yt-emoji-picker-upsell-category-renderer",function(){if(FwJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;XRt===void 0&&(XRt=document.createElement("template"));var R=XRt;N.call(d,R.content.cloneNode(!0),M.content.firstChild);FwJ=M}M=FwJ;return M},{mode:2});var AxJ;var Vuo;var Ub=function(){var M=_.n.apply(this,arguments)||this;M.scrollAction="lock";M.verticalAlign="top";return M};
_.v(Ub,_.n);_.F=Ub.prototype;_.F.onClick=function(M){M=_.cN(M);M instanceof HTMLImageElement&&_.YP(this.hostElement,"yt-emoji-select",_.vG(this.emojiManager,M.id))};
_.F.openSelector=function(){this.ironOverlayBehavior.open()};
_.F.onDomChange=function(){GGL(this.ytEmojiSelectorBehavior)};
_.F.computeIsFamilySelector=function(M){var d;return(M==null?void 0:(d=M.emoji)==null?void 0:d.emojiId)==="\ud83d\udc6a"};
_.F.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var M=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];M&&M.emojiId&&(_.YP(this.hostElement,"yt-emoji-select",_.vG(this.emojiManager,M.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Hm.Object.defineProperties(Ub.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;return this.emojiManager&&((d=this.data)==null?0:(N=d.emoji)==null?0:(R=N.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(X){return!!X&&_.vG(M.emojiManager,X)}).filter(function(X){return!!X}):[]}}});
Ub.prototype.onClick=Ub.prototype.onClick;_.G([_.S(_.fG),_.a("design:type",Object)],Ub.prototype,"ironOverlayBehavior",void 0);_.G([_.S(aid),_.a("design:type",Object)],Ub.prototype,"ytEmojiSelectorBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ub.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.Id)],Ub.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],Ub.prototype,"scrollAction",void 0);_.G([_.H(),_.a("design:type",Object)],Ub.prototype,"verticalAlign",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.a("design:type",Boolean)],Ub.prototype,"isFamilySelector",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ub.prototype,"emojiVariants",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],Ub.prototype,"onClick",null);Ub=_.G([_.w4({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Ub);
_.L(Ub,"yt-emoji-variant-selector",function(){if(Vuo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;AxJ===void 0&&(AxJ=document.createElement("template"));var R=AxJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Vuo=M}M=Vuo;return M},{mode:2});var lCJ=/:/g,$_d=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],un=function(){var M=_.n.apply(this,arguments)||this;M.emojiVariantSelector=null;M.emojiMultiPersonSelector=null;M.identity=_.z6;M.lastAnimationTime_=0;M.animationStart_=null;M.animationEnd_=null;return M};
_.v(un,_.n);_.F=un.prototype;
_.F.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}}};
_.F.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.j$)};
_.F.attached=function(){_.lb&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Uk3(this.emojiManager)};
_.F.dataChanged=function(){var M;if((M=this.data)==null?0:M.categories){M=this.emojiManager;var d=this.getCustomEmojiIds();M.pickerCustomEmojiIds=[].concat(_.wu(irJ),_.wu(d))}};
_.F.getCustomEmojiIds=function(){var M,d=(M=this.data.categories)==null?void 0:M.find(function(A){var l;return((l=A.emojiPickerCategoryRenderer)==null?void 0:l.categoryId)&&$_d.includes(A.emojiPickerCategoryRenderer.categoryId)}),N;
M=(N=this.data.categories)==null?void 0:N.find(function(A){return A.emojiPickerUpsellCategoryRenderer});
var R,X;return[d==null?void 0:(R=d.emojiPickerCategoryRenderer)==null?void 0:R.emojiIds,M==null?void 0:(X=M.emojiPickerUpsellCategoryRenderer)==null?void 0:X.emojiIds].flat().filter(function(A){return!!A})};
_.F.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.F.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.F.updateCategoriesAndPlaceholderInternal=function(M,d){var N=this;M&&d&&(this.categories=M.categories||[],this.categoryButtons=M.categoryButtons||[],this.resetPlaceholder(),this.search="",_.vu(function(){N.updateButtons_()}))};
_.F.computeId_=function(M){return M.id||""};
_.F.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(M){return M.emojiPickerCategoryRenderer&&M.emojiPickerCategoryRenderer.emojiData}):!1};
_.F.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.F.onShowEmojiVariantSelector=function(M){var d=M.detail.emojiData;d.variantIds&&d.variantIds.length&&(d.multiSelectorThumbnailRow&&d.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:d,target:M.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:d,target:M.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.F.onIronOverlayClosed=function(M){var d=ujL(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");d&&M.composedPath&&(M.composedPath().includes(_.K(this.hostElement).querySelector("#emoji-variant-selector"))||M.composedPath().includes(_.K(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ZI(this.hostElement,"yt-close-emoji-variant-selector",[d.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.F.onEmojiVariantSelectorMouseup=function(M){var d=M.target.firstChild;this.variantSelectorOpened&&d&&_.vu(function(){d.noCancelOnOutsideClick=!1},100)};
_.F.onEmojiVariantSelectorMousedown=function(M){M=M.target.firstChild;this.variantSelectorOpened&&M&&(M.noCancelOnOutsideClick=!1)};
_.F.onSelectCategory_=function(M){var d=this.search!="";this.search="";for(var N=_.K(this.hostElement).querySelector("#categories").children,R=0;R<N.length;R++){var X=N[R];if(X.id==M.detail.categoryId){d?(_.K(this.hostElement).querySelector("#categories").scrollTop=X.offsetTop,this.updateButtons_()):(this.animationStart_=_.K(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=X.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.F.onEmojiHover_=function(M){this.placeholder=M.detail.shortcuts?M.detail.shortcuts[0]:""};
_.F.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.F.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.F.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.F.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.F.computeSearchCategory_=function(M){M=M.replace(lCJ,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();M=M.split(" ");for(var d=[],N=this.emojiManager.emojis,R=0;R<N.length;R++){var X=N[R];if(X.searchTerms)for(var A=0;A<X.searchTerms.length;A++){for(var l=X.searchTerms[A].toLocaleLowerCase(),k=!1,T=0;T<M.length;T++)if(l.indexOf(M[T])!=-1){k=!0;break}if(k&&(!X.isCustomEmoji||!X.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(X.emojiId))){d.push(X.emojiId);
break}}}return{categoryId:-1,emojiIds:d}};
_.F.computeSearchEmptyMessage_=function(M,d){return M&&d&&d.emojiIds&&d.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.F.computeSearching_=function(M){return this.emojiManager&&M.replace(lCJ,"").length>1};
_.F.computeSkinToneHidden=function(){var M;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((M=this.data)==null||!M.hideSkinTonePicker)};
_.F.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.F.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.F.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.F.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.F.selectSkinTone_=function(M){M=Number(M.target.getAttribute("tone"));this.set("emojiManager.skinTone",M);_.ZI(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[M]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.F.skinToneChanged_=function(){_.K(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var M=_.K(this.hostElement).querySelector("#dropdown-content").children,d=0;d<M.length;d++)d===this.skinTone?M[d].setAttribute("selected",""):M[d].removeAttribute("selected")};
_.F.animateScroll_=function(M){this.lastAnimationTime_||(this.lastAnimationTime_=M);M-=this.lastAnimationTime_;M<200?(_.K(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*M/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.K(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.F.searchChanged_=function(){this.updateButtons_()};
_.F.updateButtons_=function(){var M=null;if(!this.search)for(var d=_.K(this.hostElement).querySelector("#categories").scrollTop,N=_.K(this.hostElement).querySelector("#categories").children,R=0;R<N.length;R++){var X=N[R];X.offsetTop<=d&&(M=X.id)}d=_.K(this.hostElement).querySelector("#category-buttons").children;for(N=0;N<d.length;N++)R=d[N],R.active=R.id===M};
un.prototype.searchChanged_=un.prototype.searchChanged_;un.prototype.skinToneChanged_=un.prototype.skinToneChanged_;un.prototype.onEmojiHover_=un.prototype.onEmojiHover_;un.prototype.onSelectCategory_=un.prototype.onSelectCategory_;un.prototype.onShowEmojiVariantSelector=un.prototype.onShowEmojiVariantSelector;un.prototype.updateCategoriesAndPlaceholder_=un.prototype.updateCategoriesAndPlaceholder_;un.prototype.dataChanged=un.prototype.dataChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],un.prototype,"data",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],un.prototype,"categories",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],un.prototype,"categoryButtons",void 0);_.G([_.H({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.a("design:type",Boolean)],un.prototype,"disableScroll",void 0);_.G([_.H({computed:"computeId_(data)",reflectToAttribute:!0}),_.a("design:type",String)],un.prototype,"id",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],un.prototype,"selected",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],un.prototype,"disableIncrementalLoading",void 0);_.G([_.H(),_.a("design:type",String)],un.prototype,"placeholder",void 0);_.G([_.H({value:""}),_.a("design:type",String)],un.prototype,"search",void 0);_.G([_.H({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.a("design:type",Boolean)],un.prototype,"searching",void 0);_.G([_.H({computed:"computeSearchCategory_(search)"}),_.a("design:type",Object)],un.prototype,"searchCategory",void 0);
_.G([_.H({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.a("design:type",Object)],un.prototype,"searchEmptyMessage",void 0);_.G([_.H({computed:"identity(emojiManager.skinTone)"}),_.a("design:type",Number)],un.prototype,"skinTone",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],un.prototype,"skinToneOpened",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],un.prototype,"variantSelectorOpened",void 0);
_.G([_.H({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.a("design:type",Boolean)],un.prototype,"skinToneHidden",void 0);_.G([_.H(),_.a("design:type",_.Id)],un.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],un.prototype,"emojiVariantSelector",void 0);_.G([_.H(),_.a("design:type",Object)],un.prototype,"emojiMultiPersonSelector",void 0);
_.G([_.H({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.a("design:type",Boolean)],un.prototype,"shouldUseStickyPreferences",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],un.prototype,"dataChanged",null);_.G([_.xB("data","selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],un.prototype,"updateCategoriesAndPlaceholder_",null);
_.G([_.C3("yt-show-emoji-variant-selector"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],un.prototype,"onShowEmojiVariantSelector",null);_.G([_.C3("yt-emoji-picker-select-category"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],un.prototype,"onSelectCategory_",null);_.G([_.C3("yt-emoji-hover"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],un.prototype,"onEmojiHover_",null);
_.G([_.xB("skinTone"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],un.prototype,"skinToneChanged_",null);_.G([_.xB("search"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],un.prototype,"searchChanged_",null);un=_.G([_.w4({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],un);
_.L(un,"yt-emoji-picker-renderer",function(){if(RW3===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;NMJ===void 0&&(NMJ=document.createElement("template"));var R=NMJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);RW3=M}M=RW3;return M},{mode:2});var CV=function(){var M=_.n.apply(this,arguments)||this;M.emojiManager=_.j$;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.selectedIndex=1;M.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return M};
_.v(CV,_.n);_.F=CV.prototype;_.F.handleEmojiCustomizationVisible=function(M){this.emojiPickerRenderer.selected=M;this.selectedIndex=1;M?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.F.emojiCustomizationSetChanged=function(){var M;(M=this.data)!=null&&M.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.AC(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.F.updateSaveButtonState=function(M){var d;(d=this.data)!=null&&d.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.la("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:M}))};
_.F.emojiUrl=function(M){M=_.vG(this.emojiManager,M);if(!M)return"";var d;M=(d=M.image)==null?void 0:d.thumbnails;return _.Hz(M,24)||""};
_.F.emojiAlt=function(M){var d=_.vG(this.emojiManager,M);if(!d)return M;var N,R,X,A=(d==null?void 0:(N=d.image)==null?void 0:(R=N.accessibility)==null?void 0:(X=R.accessibilityData)==null?void 0:X.label)||"";return A?A:d.isCustomEmoji?d.shortcuts[0]:d.emojiId||M};
_.F.emojiAriaLabel=function(M){var d,N;return((d=_.vG(this.emojiManager,M))==null?void 0:(N=d.shortcuts)==null?void 0:N[0])||M};
_.F.onEmojiClick=function(M){M.model.index!==0&&(this.selectedIndex=M.model.index)};
_.F.onEmojiSelect=function(M){M=M.detail;var d,N;((d=this.data)==null?0:d.emojiCustomizationSetEntityKey)&&((N=this.emojiCustomizationSet)==null?0:N.emojiId)&&M.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.la("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)}))};
_.F.canEditEmoji=function(M,d,N){M=M.indexOf(d);return M===N||M===0||N===0?!1:!0};
_.F.getUpdatedEmojiIdList=function(M,d,N){var R=M.indexOf(d);M=[].concat(_.wu(M));R>=0&&(M[R]=M[N]);M[N]=d;return M};
_.Hm.Object.defineProperties(CV,{template:{configurable:!0,enumerable:!0,get:function(){if(oLI===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;PHz===void 0&&(PHz=document.createElement("template"));var R=PHz;N.call(d,R.content.cloneNode(!0),M.content.firstChild);oLI=M}M=oLI;return M}}});
CV.prototype.onEmojiSelect=CV.prototype.onEmojiSelect;_.G([_.S(_.vA),_.a("design:type",Object)],CV.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],CV.prototype,"ytActionHandlerBehavior",void 0);_.G([_.Z3("yt-emoji-picker-renderer"),_.a("design:type",Object)],CV.prototype,"emojiPickerRenderer",void 0);
_.G([_.H({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(M,d){return _.Rz(M.entities,"emojiCustomizationSetEntity",d)},
observer:"emojiCustomizationSetChanged"}),_.a("design:type",Object)],CV.prototype,"emojiCustomizationSet",void 0);_.G([_.H(),_.a("design:type",Object)],CV.prototype,"originalEmojiSet",void 0);_.G([_.H(),_.a("design:type",_.Id)],CV.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],CV.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CV.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],CV.prototype,"selectedIndex",void 0);
_.G([_.C3("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],CV.prototype,"onEmojiSelect",null);CV=_.G([_.w4({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],CV);var BMV;var k0z;var TMI;var D_V;var xy=function(){var M=_.n.apply(this,arguments)||this;M.authorBadges=[];return M};
_.v(xy,_.n);_.F=xy.prototype;_.F.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.F.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]]"}}}}}};
_.F.dataChanged=function(){var M=rJ6(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",M)};
_.F.updateMessage=function(){var M=this.data.message,d=_.K(_.K(this.hostElement).querySelector("#message"));d.textContent="";M&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.F.shouldSupportWholeItemClick=function(){return!0};
_.F.onShowOriginalClick=function(M){M.preventDefault();this.showOriginal=!0};
_.F.computeShowBar=function(M,d,N){return M&&d||N};
_.F.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.F.computeAuthorIsOwner=function(M){return!!K9Z(M.authorBadges,"owner")};
_.F.computeAuthorNameColor=function(M){var d;if(_.Q("live_chat_author_name_color_usernames")&&(M==null?0:(d=M.authorName)==null?0:d.simpleText))return _.b86(_.eFr(M.authorName.simpleText));if(_.Q("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.b86(_.UH(M.authorSeedColorArgb));if(_.Q("live_chat_colored_usernames"))return"#cc0000";var N;return _.Q("live_chat_simple_color_usernames")&&(M==null?0:(N=M.authorName)==null?0:N.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.UH(M.authorUsernameColorDark):_.UH(M.authorUsernameColorLight):""};
xy.prototype.updateMessage=xy.prototype.updateMessage;xy.prototype.dataChanged=xy.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],xy.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xy.prototype,"data",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"showOriginal",void 0);_.G([_.H({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"isDimmed",void 0);_.G([_.H({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"showBar",void 0);
_.G([_.H({computed:"computeAuthorBadges(data)"}),_.a("design:type",Array)],xy.prototype,"authorBadges",void 0);_.G([_.H({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"authorIsOwner",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"inCollapsedBanner",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"inBanner",void 0);
_.G([_.H({value:_.Q("live_chat_hide_avatars"),reflectToAttribute:!0}),_.a("design:type",Boolean)],xy.prototype,"avatarHidden",void 0);_.G([_.H({computed:"computeAuthorNameColor(data)"}),_.a("design:type",String)],xy.prototype,"authorNameColor",void 0);_.G([_.H(),_.a("design:type",_.KV)],xy.prototype,"participantsManager",void 0);_.G([_.H({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.a("design:type",Object)],xy.prototype,"filledButtonOverrides",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xy.prototype,"dataChanged",null);_.G([_.xB("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xy.prototype,"updateMessage",null);xy=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],xy);
_.L(xy,"yt-live-chat-text-message-renderer",function(){if(D_V===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;TMI===void 0&&(TMI=document.createElement("template"));var R=TMI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);D_V=M}M=D_V;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Yy=function(){var M=_.n.apply(this,arguments)||this;M.tonalButtonOverrides={type:"tonal",style:"overlay"};return M};
_.v(Yy,_.n);
Yy.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]]"}}}}}};
Yy.prototype.shouldSupportInlineActionButtons=function(){return!0};
Yy.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Hm.Object.defineProperties(Yy.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],Yy.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yy.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.KV)],Yy.prototype,"participantsManager",void 0);
_.G([_.H(),_.a("design:type",Object)],Yy.prototype,"tonalButtonOverrides",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.infoDialogButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yy.prototype,"hasInfoDialogButton",null);Yy=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Yy);
_.L(Yy,"yt-live-chat-auto-mod-message-renderer",function(){if(k0z===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;BMV===void 0&&(BMV=document.createElement("template"));var R=BMV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);k0z=M}M=k0z;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var gId;var Wwm;var wRd;var Zd=function(){return _.n.apply(this,arguments)||this};
_.v(Zd,_.n);_.G([_.H(),_.a("design:type",Object)],Zd.prototype,"data",void 0);Zd=_.G([_.f({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Zd);
_.L(Zd,"ytd-factoid-renderer",function(){if(wRd!==void 0)return wRd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wRd=M},{mode:1});var Eb=function(){return _.n.apply(this,arguments)||this};
_.v(Eb,_.n);Eb.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.G([_.H(),_.a("design:type",Object)],Eb.prototype,"data",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);Eb=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Eb);
_.L(Eb,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Wwm===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;gId===void 0&&(gId=document.createElement("template"));var R=gId;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Wwm=M}M=Wwm;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var pRg;var m_C;var M1=function(){return _.n.apply(this,arguments)||this};
_.v(M1,_.n);M1.prototype.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],M1.prototype,"menuFocused",void 0);_.G([_.H(),_.a("design:type",Object)],M1.prototype,"data",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],M1.prototype,"ytLiveChatItemBehavior",void 0);M1=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],M1);
_.L(M1,"yt-live-chat-donation-announcement-renderer",function(){if(m_C===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;pRg===void 0&&(pRg=document.createElement("template"));var R=pRg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);m_C=M}M=m_C;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var hWo;var QpJ,qBC=function(){if(QpJ!==void 0)return QpJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;hWo===void 0&&(hWo=document.createElement("template"));var R=hWo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return QpJ=M};var dh=function(){return _.n.apply(this,arguments)||this};
_.v(dh,_.n);_.Hm.Object.defineProperties(dh,{template:{configurable:!0,enumerable:!0,get:function(){return qBC()}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dh.prototype,"data",void 0);dh=_.G([_.w4({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],dh);_.L(dh,"yt-live-chat-empty-feed-view-model",function(){return qBC()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ICL;var vIo;var N1=function(){return _.n.apply(this,arguments)||this};
_.v(N1,_.n);N1.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"}}}}}};
_.Hm.Object.defineProperties(N1.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var M,d;return{runs:[{text:(M=this.data)==null?void 0:(d=M.channelName)==null?void 0:d.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var M=[],d;if((d=this.data)==null||!d.channelBadges)return M;var N;d=_.V((N=this.data)==null?void 0:N.channelBadges);for(N=d.next();!N.done;N=d.next()){N=_.q(N.value,aVd);var R=void 0,X=void 0;if((R=N)==null?0:(X=R.badgeImage)==null?0:X.sources)R=void 0,X={liveChatAuthorBadgeRenderer:{tooltip:N.tooltip,accessibility:{accessibilityData:{label:(R=_.q(N.rendererContext,_.H5))==null?void 0:R.label}}}},N.badgeImage.sources[0].clientResource?X.liveChatAuthorBadgeRenderer.icon=
{iconType:N.badgeImage.sources[0].clientResource.imageName}:X.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:N.badgeImage.sources},M.push(X)}return M}}});
_.G([_.H(),_.a("design:type",Object)],N1.prototype,"data",void 0);_.G([_.z("data.channelName"),_.a("design:type",Object),_.a("design:paramtypes",[])],N1.prototype,"channelName",null);_.G([_.z("data.channelBadges"),_.a("design:type",Array),_.a("design:paramtypes",[])],N1.prototype,"channelBadges",null);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);
N1=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],N1);
_.L(N1,"yt-live-chat-identity-view-model",function(){if(vIo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ICL===void 0&&(ICL=document.createElement("template"));var R=ICL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vIo=M}M=vIo;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var OBd;var jpC;var spJ;var PNJ;var Rk=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;M.supportsInlineActionButtons=!0;return M};
_.v(Rk,_.n);Rk.prototype.ready=function(){var M;((M=document.querySelector("yt-live-chat-app"))==null?0:M.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Rk.prototype.dataChanged=function(M){var d=(0,_.aj)(_.K(this.hostElement).querySelector("#detail-text"));d.textContent="";(M==null?0:M.detailText)&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M.detailText))};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],Rk.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],Rk.prototype,"data",void 0);
_.G([_.H({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.a("design:type",Object)],Rk.prototype,"hidden",void 0);Rk=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Rk);
_.L(Rk,"yt-live-chat-legacy-paid-message-renderer",function(){if(PNJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;spJ===void 0&&(spJ=document.createElement("template"));var R=spJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);PNJ=M}M=PNJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var oIL;var rxd;var KwV={},XB=function(){return _.MS.apply(this,arguments)||this};
_.v(XB,_.MS);XB.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
XB.prototype.onLiveChatMembershipItemBehaviorClick=XB.prototype.onLiveChatMembershipItemBehaviorClick;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XB.prototype,"data",void 0);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],XB.prototype,"onLiveChatMembershipItemBehaviorClick",null);XB=_.G([_.d4()],XB);
KwV.YtLiveChatMembershipItemBehavior=[XB.prototype,_.E.YtRendererBehavior];var FB=function(){var M=_.n.apply(this,arguments)||this;M.supportsInlineActionButtons=!0;M.hasPrimaryHeaderText=!1;M.showOnlyHeader=!1;M.authorBadges=[];M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.v(FB,_.n);_.F=FB.prototype;_.F.shouldSupportInlineActionButtons=function(){return!0};
_.F.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.F.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.F.messageChanged=function(){var M=this.data.message,d=(0,_.aj)(_.K(this.hostElement).querySelector("#message"));d.textContent="";M&&d.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.F.computeHasPrimaryHeaderText=function(M){return!(!M||!M.headerPrimaryText)};
_.F.computeShowOnlyHeader=function(M,d){return this.isMessageEmpty(M,d)};
_.F.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.F.isMessageEmpty=function(M,d){return!M||M.empty?!0:!M.message&&!M.inputField&&!d};
_.F.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.F.getInputElement=function(){return _.K(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.F.inputFocus=function(){var M=this.getInputElement();M&&M.focus()};
_.F.inputInsertEmoji=function(M){var d=this.getInputElement();d&&d.insertEmoji(M)};
_.F.inputMessage=function(){var M=this.getInputElement();return M&&this.data.inputField?(M.completeEmojis(),_.OL(M.liveChatRichMessageInput)):null};
_.F.onFooterButtonClick=function(){this.data.footerButton&&_.YP(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.F.shouldSupportWholeItemClick=function(){return!0};
FB.prototype.isDeletedChanged=FB.prototype.isDeletedChanged;FB.prototype.messageChanged=FB.prototype.messageChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],FB.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(KwV.YtLiveChatMembershipItemBehavior),_.a("design:type",Object)],FB.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FB.prototype,"data",void 0);_.G([_.H({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.a("design:type",Object)],FB.prototype,"hasPrimaryHeaderText",void 0);_.G([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.a("design:type",Object)],FB.prototype,"showOnlyHeader",void 0);
_.G([_.H({computed:"computeAuthorBadges(data)"}),_.a("design:type",Array)],FB.prototype,"authorBadges",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],FB.prototype,"modern",void 0);_.G([_.xB("data.message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FB.prototype,"messageChanged",null);_.G([_.xB("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FB.prototype,"isDeletedChanged",null);
FB=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],FB);
_.L(FB,"yt-live-chat-membership-item-renderer",function(){if(rxd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;oIL===void 0&&(oIL=document.createElement("template"));var R=oIL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rxd=M}M=rxd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var yxL;var Jxo;var AN=function(){return _.n.apply(this,arguments)||this};
_.v(AN,_.n);AN.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AN.prototype,"data",void 0);AN=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],AN);
_.L(AN,"yt-live-chat-mode-change-message-renderer",function(){if(Jxo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yxL===void 0&&(yxL=document.createElement("template"));var R=yxL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Jxo=M}M=Jxo;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var cxd;var SBd;var V$=function(){return _.n.apply(this,arguments)||this};
_.v(V$,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],V$.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],V$.prototype,"data",void 0);V$=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],V$);
_.L(V$,"yt-live-chat-moderation-message-renderer",function(){if(SBd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;cxd===void 0&&(cxd=document.createElement("template"));var R=cxd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);SBd=M}M=SBd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var zWm;var bBL;var l$=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework");return M};
_.v(l$,_.n);l$.prototype.onClick=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var d;_.YQ.instance.resolveCommand((d=this.data)==null?void 0:d.onClickCommand)}};
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],l$.prototype,"modern",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],l$.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],l$.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],l$.prototype,"data",void 0);l$=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],l$);
_.L(l$,"yt-live-chat-offer-click-count-message-renderer",function(){if(bBL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;zWm===void 0&&(zWm=document.createElement("template"));var R=zWm;N.call(d,R.content.cloneNode(!0),M.content.firstChild);bBL=M}M=bBL;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var eWV;var $0=function(){return _.n.apply(this,arguments)||this};
_.v($0,_.n);_.G([_.H(),_.a("design:type",Object)],$0.prototype,"data",void 0);$0=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],$0);
_.L($0,"yt-live-chat-placeholder-item-renderer",function(){if(eWV===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);eWV=M}M=eWV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var HBV;var nIJ;var iBt=new Sp(7),Bk=function(){var M=_.n.apply(this,arguments)||this;M.data={};return M};
_.v(Bk,_.n);Bk.prototype.dataChanged=function(){var M;((M=this.data)==null?0:M.class)&&_.t2(this.hostElement,this.data.class,!0);var d;((d=this.oldData)==null?0:d.class)&&_.t2(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Bk.prototype.computeTimestampString=function(M){return iBt.format(new Date(M/1E3))};
Bk.prototype.dataChanged=Bk.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],Bk.prototype,"data",void 0);_.G([_.H({computed:"computeTimestampString(data.timestampUsec)"}),_.a("design:type",String)],Bk.prototype,"timestampString",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bk.prototype,"dataChanged",null);Bk=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Bk);
_.L(Bk,"yt-live-chat-server-error-message",function(){if(nIJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;HBV===void 0&&(HBV=document.createElement("template"));var R=HBV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);nIJ=M}M=nIJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var fCV;var LwV;var k0=function(){var M=_.n.apply(this,arguments)||this;M.defaultToFilledIcon=!1;return M};
_.v(k0,_.n);k0.prototype.computeHasPrimaryColorIcon=function(M){return M==="SPARK"||M==="SPONSORSHIP_STAR"};
k0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],k0.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],k0.prototype,"defaultToFilledIcon",void 0);_.G([_.H(),_.a("design:type",Object)],k0.prototype,"data",void 0);
_.G([_.H({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.a("design:type",Boolean)],k0.prototype,"hasPrimaryColorIcon",void 0);k0=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],k0);
_.L(k0,"yt-live-chat-viewer-engagement-message-renderer",function(){if(LwV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;fCV===void 0&&(fCV=document.createElement("template"));var R=fCV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);LwV=M}M=LwV;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var tum;var T1=function(){var M=_.n.apply(this,arguments)||this;M.modernUpdate=!1;M.buttonStyle="overlay";M.buttonType="filled";return M};
_.v(T1,_.n);T1.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
T1.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],T1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],T1.prototype,"modernUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],T1.prototype,"buttonStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],T1.prototype,"buttonType",void 0);
T1=_.G([_.f({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],T1);
_.L(T1,"ytd-ad-hover-text-button-renderer",function(){if(tum!==void 0)return tum;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return tum=M},{mode:1});var G0z;var Dh=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={size:"XS"};M.modern=_.Q("web_button_rework");return M};
_.v(Dh,_.n);Dh.prototype.onHelpTap=function(M){this.data&&this.data.informationDialog&&(_.YP(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),M.preventDefault(),M.stopPropagation())};
_.G([_.H(),_.a("design:type",Object)],Dh.prototype,"buttonOverrides",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dh.prototype,"modern",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dh.prototype,"data",void 0);Dh=_.G([_.f({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Dh);
_.L(Dh,"ytd-live-chat-purchased-product-message-renderer",function(){if(G0z!==void 0)return G0z;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return G0z=M},{mode:1});var aCz;var U_L;var gh=function(){var M=_.n.apply(this,arguments)||this;M.isContainerDeleted=!1;return M};
_.v(gh,_.n);gh.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
gh.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))};
gh.prototype.isContainerDeletedChanged=gh.prototype.isContainerDeletedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],gh.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],gh.prototype,"isContainerDeleted",void 0);
_.G([_.H(),_.a("design:type",String)],gh.prototype,"deletedStateMessage",void 0);_.G([_.xB("isContainerDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gh.prototype,"isContainerDeletedChanged",null);gh=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],gh);
_.L(gh,"ytd-sponsorships-live-chat-header-renderer",function(){if(U_L!==void 0)return U_L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return U_L=M},{mode:1});var Wk=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.v(Wk,_.n);Wk.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]]"}}}}}};
Wk.prototype.onCtaButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.optInPrompt,_.K9);if(M=this.maybeGetButtonCommand(d)){var N;(N=_.Nx())==null||N.clickCommand(M)}};
Wk.prototype.maybeGetButtonCommand=function(M){return!M||!M.command||_.q(M.command,hHt)===void 0&&_.q(M.command,mTI)===void 0?null:M.command};
Wk.prototype.shouldHideOptinPrompt=function(M,d){return!M||d};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],Wk.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wk.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Wk.prototype,"modern",void 0);Wk=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Wk);
_.L(Wk,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(aCz!==void 0)return aCz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return aCz=M},{mode:1});var uvd;var wh=function(){return _.n.apply(this,arguments)||this};
_.v(wh,_.n);wh.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
wh.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))};
wh.prototype.isDeletedChanged=wh.prototype.isDeletedChanged;_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],wh.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wh.prototype,"data",void 0);_.G([_.xB("isDeleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wh.prototype,"isDeletedChanged",null);wh=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],wh);
_.L(wh,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(uvd!==void 0)return uvd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return uvd=M},{mode:1});var pf=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return M};
_.v(pf,_.n);_.F=pf.prototype;
_.F.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"}}}};
_.F.handleLiveChatAction=function(M){_.q(M,bUJ)?this.handleMarkChatItemAsDeletedAction(_.q(M,bUJ)):_.q(M,zwd)&&this.handleRemoveChatItemAction(_.q(M,zwd))};
_.F.handleLiveChatActions=function(M){M.forEach(this.handleLiveChatAction,this)};
_.F.handleMarkChatItemAsDeletedAction=function(M){var d=this,N;((N=this.data)==null?0:N.items)&&this.data.items.forEach(function(R,X){var A=Object.keys(R)[0];Object.values(R)[0].id===M.targetItemId&&d.markAsDeleted("data.items",X,A,M.deletedStateMessage,M.showOriginalContentMessage)})};
_.F.handleRemoveChatItemAction=function(M){var d=this,N;((N=this.data)==null?0:N.items)&&this.data.items.forEach(function(R,X){Object.values(R)[0].id===M.targetItemId&&d.splice("data.items",X,1)})};
_.F.markAsDeleted=function(M,d,N,R,X){M=[M,d,N].join(".");this.set(M+".deletedStateMessage",R);this.set(M+".showOriginalContentMessage",X)};
_.G([_.H(),_.a("design:type",Object)],pf.prototype,"data",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],pf.prototype,"ytActionHandlerBehavior",void 0);pf=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],pf);
_.L(pf,"yt-live-chat-item-display-list-renderer",function(){if(jpC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;OBd===void 0&&(OBd=document.createElement("template"));var R=OBd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);jpC=M}M=jpC;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var CNL;var x_I,YBe=function(){if(x_I!==void 0)return x_I;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;CNL===void 0&&(CNL=document.createElement("template"));var R=CNL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return x_I=M};var m4=function(){var M=_.n.apply(this,arguments)||this;M.isHeader=!1;return M};
_.v(m4,_.n);m4.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Hm.Object.defineProperties(m4,{template:{configurable:!0,enumerable:!0,get:function(){return YBe()}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],m4.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m4.prototype,"isHeader",void 0);m4=_.G([_.w4({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],m4);_.L(m4,"yt-live-chat-item-display-renderer",function(){return YBe()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ZBz,EIV,X4V,RbL;
ZBz={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}};EIV={home:"eohps",search:"eosps",watch:"eowps"};_.Mod=["watch","search","home"];
_.hN=function(){this.JSC$12020_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12020_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.rK("PRECONSTRUCTION_DELAY",0);this.signals_=_.K4();this.targetPage_=""};
_.hN.prototype.init=function(M,d){M=M===void 0?"":M;d=d===void 0?null:d;if(this.JSC$12020_isInitialized_)this.abort();else if(this.JSC$12020_isInitialized_=!0,M&&_.dYd(this,M),d){var N=_.ym(this.signals_,"pcl")?0:10,R=function(){for(var X=0,A;A=_.Mod[X++];)A!=M&&A!=d&&this.pendingPages_.push(A);_.NNV(this)}.bind(this);
this.signals_.parkOrScheduleJob(R,N,"pcl")}};
_.hN.prototype.abort=function(){this.fragmentJobId_&&(_.IQ.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);RbL(this)};
_.dYd=function(M,d){M.JSC$12020_isInitialized_&&!M.targetPage_&&(M.targetPage_=d,X4V(M,d),M.isInitialPass_=!1,X4V(M,d),M.signals_.processSignal(EIV[M.targetPage_]),RbL(M),_.NNV(M))};
_.NNV=function(M){M.pendingPages_.length&&!M.pagePreparerJobId_&&(M.pagePreparerJobId_=_.gL(_.IQ,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.dYd(this,this.pendingPages_.shift())}.bind(M),M.DEFAULT_DELAY_))};
X4V=function(M,d){if(d=ZBz[d])for(var N in d){var R=!1,X=N;N.charAt(0)=="~"&&(R=!0,X=N.substring(1));var A=d[N];A=typeof A=="object"?A:{count:A};d[N]=A;A.componentName=X;A.count>0&&(M.isInitialPass_?R||M.isSeenDuringInitialPass_[X]||(M.JSC$12020_queue_.push({componentName:X,count:1,signals:A.signals}),M.isSeenDuringInitialPass_[X]=!0,A.count--):M.JSC$12020_queue_.push(A))}};
RbL=function(M){M.JSC$12020_queue_.length=0;M.targetPage_="";M.isInitialPass_=!0;M.signals_.processSignal("eop")};
_.hN.getInstance=function(){return _.FU(_.hN)};var FBJ=function(){this.signals=_.K4();this.init()};
FBJ.prototype.startPreconstruction=function(){_.hN.getInstance().init(_.KF("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
FBJ.prototype.init=function(){Avz(this);window.Polymer&&M5e&&wGv();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var M=_.Np.ytcsi;if(M&&M.gt&&(M=M.gt())&&M.tick&&(M.tick.aft>0||M.tick.pbs>0)&&(_.KF("IS_HOMEPAGE_COLD")||_.KF("IS_RESULTS_PAGE_COLD")||_.KF("IS_WATCH_PAGE_COLD"))){Vot(this);break a}mrq(BYp,this.onNotifications,this)}};
var Avz=function(M){var d=function(){M.signals.processSignal("dl")};
document.readyState==="complete"?(_.Sx(Error("uh"),"WARNING"),d()):_.YO2(window,"load",d)};
FBJ.prototype.onNotifications=function(M){M.timer||(_.KF("IS_HOMEPAGE_COLD")||_.KF("IS_RESULTS_PAGE_COLD")||_.KF("IS_WATCH_PAGE_COLD"))&&Vot(this)};
var Vot=function(M){M.signals.parkOrScheduleJob(function(){M.signals.processSignal("eocs")},10,"eor")};
new FBJ;var Q$,q1=function(){return _.MS.apply(this,arguments)||this};
_.v(q1,_.MS);_.F=q1.prototype;_.F.enableActiveViewMeasurement=function(M){if(this.isActiveViewEnabled(M)){var d=this.getUrlPrefixesFromCommand(M.viewableCommands);M=this.getUrlPrefixesFromCommand(M.endOfSessionCommands);Q$||(Q$=new GyZ(this.getVersion()));aZ2(Q$,this.hostElement);UjS(Q$,this.hostElement,d,M)}};
_.F.stopActiveViewMeasurement=function(){Q$&&aZ2(Q$,this.hostElement)};
_.F.isActiveViewEnabled=function(M){return!!M&&(this.hasAtLeastOneUrl(M.viewableCommands)||this.hasAtLeastOneUrl(M.endOfSessionCommands))};
_.F.hasAtLeastOneUrl=function(M){return!!M&&M.length>0&&M[0].loggingUrls!=null&&M[0].loggingUrls.length>0};
_.F.getVersion=function(){var M=_.rK("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(M==null?void 0:M.length)===2?M[1]:null};
_.F.getUrlPrefixesFromCommand=function(M){if(!M)return[];var d=[];M=_.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,N.loggingUrls){N=_.V(N.loggingUrls);for(var R=N.next();!R.done;R=N.next())R=R.value,R.baseUrl&&d.push(R.baseUrl)}return d};
q1=_.G([_.d4()],q1);var Ik=[q1.prototype];var vk=function(){return _.MS.apply(this,arguments)||this};
_.v(vk,_.MS);_.Hm.Object.defineProperties(vk.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.Q("enable_entity_store_from_dependency_injection")?_.r4():_.iY()}}});
vk=_.G([_.d4()],vk);_.Op=[gb.prototype,vk.prototype];var l9e=["ytd-rich-shelf-renderer"],jQ=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;M.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";M.followUpDialogPromise=null;M.followUpDialogPromiseResolve=null;M.followUpDialogPromiseReject=null;return M};
_.v(jQ,_.MS);_.F=jQ.prototype;_.F.dismissibleItemIsDismissedChanged_=function(M){_.Q("kevlar_fluid_dismiss")&&(M?_.YP(this.hostElement,"yt-dismissible-item-dismissed"):_.YP(this.hostElement,"yt-dismissible-item-undismissed"))};
_.F.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.F.dismissibleItemReset_=function(){var M=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.Xy(function(d,N){M.followUpDialogPromiseResolve=d;M.followUpDialogPromiseReject=N});
_.YP(this.hostElement,"yt-enable-lockup-interaction")};
_.F.dismissibleItemOnYtServiceRequestSent_=function(M,d){d.actions&&this.dismissibleItemProcessActions(d.actions,M)};
_.F.dismissibleItemOnRequestSent=function(M){if(_.Q("web_button_rework"))for(var d=_.V(M.detail),N=d.next();!N.done;N=d.next()){var R=void 0;(N=(R=_.q(N.value,_.A$))==null?void 0:R.actions)&&this.dismissibleItemProcessActions(N,M)}};
_.F.dismissibleItemOnCommandSent=function(M,d){d&&this.dismissibleItemProcessActions(d,M)};
_.F.setAndGetDismissedContentId=function(M){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+M};
_.F.replayDismissAction=function(M){this.dismissibleItemProcessActions([M])};
_.F.dismissibleItemProcessActions=function(M,d){for(var N=0;N<M.length;N++){var R=M[N],X=void 0;((X=_.q(R,_.XP))==null?0:X.commands)&&this.dismissibleItemProcessActions(_.q(R,_.XP).commands,d);if(_.q(R,_.p9)){if(X=_.q(R,_.p9),!X.replaceParentSection||l9e.includes(this.hostElement.nodeName.toLowerCase()))_.Q("web_see_fewer_shorts_reactive_dismissal")&&X.groupDismissal&&MoZ(this,X.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(X),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.la("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:R})),R=void 0,(R=d)==null||R.stopPropagation()}else if(_.q(R,ak3))this.dismissibleItemHandleHideEnclosingAction_(),R=void 0,(R=d)==null||R.stopPropagation();else if(_.q(R,XXL))_.Q("web_see_fewer_shorts_reactive_dismissal")&&(R=_.q(R,XXL),X=void 0,((X=R)==null?0:X.targetGroupId)&&MoZ(this,{targetGroupId:R.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.la("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),R=void 0,(R=d)==null||R.stopPropagation();else if(_.q(R,_.A$))(R=_.q(R,_.A$).actions)&&_.Ni(this.hostElement,R,this.hostElement),R=void 0,(R=d)==null||R.stopPropagation();else{var A=X=void 0;((X=_.q(R,_.Ka))==null?void 0:X.signal)!=="TELL_US_WHY"||((A=_.q(R,_.Ka))==null?0:A.targetId)&&_.Q("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),R=void 0,(R=d)==null||R.stopPropagation())}}};
_.F.dismissibleItemOnYtServiceRequestCompleted_=function(M,d){var N=this.get("feedbackResponses.0.followUpDialog",d.data);N?this.followUpDialogPromiseResolve(N):d.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(d.actions,M)};
_.F.dismissibleItemHandleReplaceEnclosingAction_=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0;var d=null;(d=_.K(this.hostElement).querySelector("#dismissed"))&&_.bM(this,function(){_.Hf(d)});
_.YP(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.F.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.F.dismissibleItemHandleUndoFeedbackAction_=function(){_.YP(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.F.dismissibleItemHandleTellUsWhySignalAction_=function(){var M=this;this.followUpDialogPromise.then(function(d){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:d}})})};
jQ.prototype.dismissibleItemOnYtServiceRequestCompleted_=jQ.prototype.dismissibleItemOnYtServiceRequestCompleted_;jQ.prototype.dismissibleItemOnCommandSent=jQ.prototype.dismissibleItemOnCommandSent;jQ.prototype.dismissibleItemOnRequestSent=jQ.prototype.dismissibleItemOnRequestSent;jQ.prototype.dismissibleItemOnYtServiceRequestSent_=jQ.prototype.dismissibleItemOnYtServiceRequestSent_;jQ.prototype.dismissibleItemDataChanged_=jQ.prototype.dismissibleItemDataChanged_;
jQ.prototype.dismissibleItemIsDismissedChanged_=jQ.prototype.dismissibleItemIsDismissedChanged_;_.G([_.S(_.zc),_.a("design:type",Object)],jQ.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],jQ.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],jQ.prototype,"isDismissed",void 0);_.G([_.H(),_.a("design:type",Object)],jQ.prototype,"dismissedRenderer",void 0);
_.G([_.xB("isDismissed"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],jQ.prototype,"dismissibleItemIsDismissedChanged_",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jQ.prototype,"dismissibleItemDataChanged_",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],jQ.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.G([_.C3("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jQ.prototype,"dismissibleItemOnRequestSent",null);
_.G([_.C3("yt-dismissible-item-action"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Array]),_.a("design:returntype")],jQ.prototype,"dismissibleItemOnCommandSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],jQ.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);jQ=_.G([_.d4()],jQ);_.sp=[_.zc,_.Op,jQ.prototype];var Pk=function(){var M=_.MS.apply(this,arguments)||this;M.disableGridStateAware=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.currentGridClass="";return M};
_.v(Pk,_.MS);Pk.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.bM(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var M=this.gridStateAwareGetElement();_.t2(M,"grid",!0)}};
Pk.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Pk.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.K(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Pk.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var M="grid-disabled";else{M=_.kjd.getInstance();var d=this.get("pageSubtype");M=d&&loz.includes(d)?"grid-disabled":M.currentSnapState_?M.currentSnapState_.className:null}(d=this.gridStateAwareGetElement())&&M!==this.currentGridClass&&(M&&_.t2(d,M,!0),this.currentGridClass&&_.t2(d,this.currentGridClass,!1),this.currentGridClass=M)};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Pk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",String)],Pk.prototype,"gridStateAwareSizingElementSelector",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Pk.prototype,"disableGridStateAware",void 0);Pk=_.G([_.d4()],Pk);_.ok=[Pk.prototype,_.tK.YtActionHandlerBehavior];_.rh=new _.x5("GUIDE_TOKEN");var y$;_.Kf={};y$=function(){var M=_.MS.apply(this,arguments)||this;M.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return M};
_.v(y$,_.MS);_.F=y$.prototype;_.F.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.F.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var M=_.h().resolve(_.CF(_.rh));M&&(this.guidePersistentAndVisible=M.getGuidePersistentAndVisible(),this.activeEndpoint=M.getActiveEndpoint(),this.guideOpened=M.getGuideOpened(),this.miniGuideVisible=M.getMiniGuideVisible())};
_.F.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.F.handleGuideStateAction=function(M){this.guidePersistentAndVisible=M};
_.F.handleMiniGuideStateAction=function(M){this.miniGuideVisible=M};
_.F.handleGuideOpenedAction=function(M){this.guideOpened=M};
_.F.handleActiveEndpointAction=function(M){this.activeEndpoint=M};
y$.prototype.onActiveEndpointChange=y$.prototype.onActiveEndpointChange;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],y$.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],y$.prototype,"guidePersistentAndVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],y$.prototype,"miniGuideVisible",void 0);_.G([_.H(),_.a("design:type",Object)],y$.prototype,"activeEndpoint",void 0);
_.G([_.xB("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y$.prototype,"onActiveEndpointChange",null);_.G([_.H(),_.a("design:type",Boolean)],y$.prototype,"guideOpened",void 0);y$=_.G([_.d4()],y$);_.Kf.YtdGuideStateAwareBehavior=[];_.Kf.YtdGuideStateAwareBehavior.push(y$.prototype,_.tK.YtActionHandlerBehavior);var $Yz=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],JN=function(){var M=_.MS.apply(this,arguments)||this;M.hoverJobId=0;M.JSC$12051_touched=!1;return M};
_.v(JN,_.MS);_.F=JN.prototype;_.F.created=function(){this.useExpandableTooltip=!$Yz.includes(this.is)};
_.F.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.F.detached=function(){this.useExpandableTooltip=!1};
_.F.lockupOnDown=function(M){this.interactionElement&&!_.Sm(_.J2(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.F.lockupOnUp=function(M){this.interactionElement&&!_.Sm(_.J2(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.F.onTouchStart=function(){this.JSC$12051_touched=!0};
_.F.lockupOnMouseEnter=function(){var M=this,d=_.ZR("kevlar_lockup_hover_delay",-1);this.JSC$12051_touched&&d>=0?(_.IQ.cancelJob(this.hoverJobId),this.hoverJobId=_.IQ.addJob(function(){M.lockupIsHovered=!0},8,d),this.JSC$12051_touched=!1):this.lockupIsHovered=!0};
_.F.lockupOnMouseLeave=function(){this.hoverJobId&&(_.IQ.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.F.lockupOnPopupClosed=function(M,d){var N;((N=d.popupRenderer)==null?void 0:N.is)==="ytd-menu-popup-renderer"&&(M=d.popupRenderer.veData,d=_.Ou(),M&&d&&_.be(d,[M]))};
_.F.lockupOnLockupRequested=function(M){var d=M.detail.videoIds[0],N;M.detail&&d===((N=this.data)==null?void 0:N.videoId)&&(M.detail.returnValue=[this.data])};
_.F.lockupOnYtServiceRequestSent=function(M,d){if(M=d.actions)for(var N=0;N<M.length;N++){var R=M[N];if(R.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&d.ajaxPromise){var X=void 0,A=(X=_.q(d.endpoint,_.Pq))==null?void 0:X.playlistId;X=void 0;R=(X=R.removedVideoId)!=null?X:"";czL(_.cn(),R,A)}else R.action==="ACTION_REMOVE_VIDEO"&&d.ajaxPromise&&(A=void 0,R=(A=R.setVideoId)!=null?A:"",_.Sy3(_.cn(),R))}};
_.F.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.F.lockupOnLockupEnabled=function(){if(!this.$){var M=_.h().resolve(_.em).getCurrentPage(),d=this.getParentRenderer?this.getParentRenderer():void 0;_.vh(new _.WJ("component not ready",this.is,this.isAttached,M==null?void 0:M.is,d==null?void 0:d.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
JN.prototype.lockupOnLockupEnabled=JN.prototype.lockupOnLockupEnabled;JN.prototype.lockupOnLockupDisabled=JN.prototype.lockupOnLockupDisabled;JN.prototype.lockupOnYtServiceRequestSent=JN.prototype.lockupOnYtServiceRequestSent;JN.prototype.lockupOnLockupRequested=JN.prototype.lockupOnLockupRequested;JN.prototype.lockupOnPopupClosed=JN.prototype.lockupOnPopupClosed;JN.prototype.lockupOnMouseLeave=JN.prototype.lockupOnMouseLeave;JN.prototype.lockupOnMouseEnter=JN.prototype.lockupOnMouseEnter;
JN.prototype.onTouchStart=JN.prototype.onTouchStart;JN.prototype.lockupOnUp=JN.prototype.lockupOnUp;JN.prototype.lockupOnDown=JN.prototype.lockupOnDown;_.G([_.H(),_.a("design:type",Object)],JN.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],JN.prototype,"lockupIsHovered",void 0);_.G([_.H(),_.a("design:type",Boolean)],JN.prototype,"lockupTouchTriggered",void 0);_.G([_.H(),_.a("design:type",Boolean)],JN.prototype,"useExpandableTooltip",void 0);
_.G([_.Z3("#interaction"),_.a("design:type",Object)],JN.prototype,"interactionElement",void 0);_.G([_.C3("down"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],JN.prototype,"lockupOnDown",null);_.G([_.C3("up"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],JN.prototype,"lockupOnUp",null);
_.G([_.C3("touchstart"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JN.prototype,"onTouchStart",null);_.G([_.C3("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JN.prototype,"lockupOnMouseEnter",null);_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JN.prototype,"lockupOnMouseLeave",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],JN.prototype,"lockupOnPopupClosed",null);_.G([_.C3("yt-lockup-requested"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],JN.prototype,"lockupOnLockupRequested",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],JN.prototype,"lockupOnYtServiceRequestSent",null);_.G([_.C3("yt-disable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JN.prototype,"lockupOnLockupDisabled",null);
_.G([_.C3("yt-enable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JN.prototype,"lockupOnLockupEnabled",null);JN=_.G([_.d4()],JN);_.ck=[JN.prototype];_.BNo={YtdReduxBehavior:[]};_.BNo.YtdReduxBehavior.push.apply(_.BNo.YtdReduxBehavior,_.Op);var SQ=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;M.disableNowPlaying=!1;M.disableTooltips=!1;M.useHoveredProperty=!1;M.hovered=!1;M.isThumbnailHovered_=!1;M.addBackground=_.Q("kevlar_thumbnail_bg");M.nowPlaying=!1;M.disableRounding=!1;M.size="small";return M};
_.v(SQ,_.MS);_.F=SQ.prototype;_.F.computeThumbnailOverlaySidePanelWidth_=function(M,d){return M-d};
_.F.computeSize=function(M,d){if(!this.disableRounding){if(!M&&!d)return"small";M=Math.max(M||0,d||0);return M>=256?"large":M>=96?"medium":"small"}};
_.F.computeFinalHoveredState_=function(M,d,N){return this.nowPlaying?!1:_.Q("kevlar_thumbnail_fluid")&&M?d:N};
_.F.computeHoverOverlays_=function(M,d){return M&&d?d:void 0};
_.F.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.F.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.F.checkMiniplayer_=function(){var M;if(((M=this.data)==null?0:M.playlistSetVideoId)&&_.Q("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{M=_.$O();var d=M.currentEndpoint;!this.disableNowPlaying&&d&&_.q(d,_.nL)&&this.data?(d=_.q(d,_.nL),this.nowPlaying=this.data.playlistId?d.playlistId===this.data.playlistId:d.videoId===this.data.videoId,this.isVideoPlaying=M==null?void 0:M.isVideoPlaying):this.nowPlaying=!1}};
SQ.prototype.checkMiniplayer_=SQ.prototype.checkMiniplayer_;SQ.prototype.onMouseLeave_=SQ.prototype.onMouseLeave_;SQ.prototype.onMouseEnter_=SQ.prototype.onMouseEnter_;SQ.prototype.computeHoverOverlays_=SQ.prototype.computeHoverOverlays_;SQ.prototype.computeFinalHoveredState_=SQ.prototype.computeFinalHoveredState_;SQ.prototype.computeSize=SQ.prototype.computeSize;SQ.prototype.computeThumbnailOverlaySidePanelWidth_=SQ.prototype.computeThumbnailOverlaySidePanelWidth_;
_.G([_.S(_.Op),_.a("design:type",Object)],SQ.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],SQ.prototype,"height",void 0);_.G([_.H(),_.a("design:type",Boolean)],SQ.prototype,"bottomSidePanel",void 0);_.G([_.H(),_.a("design:type",Number)],SQ.prototype,"width",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"disableNowPlaying",void 0);
_.G([_.H({selector:_.vD}),_.a("design:type",Boolean)],SQ.prototype,"miniplayerIsActive",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"disableTooltips",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"useHoveredProperty",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"hovered",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"isThumbnailHovered_",void 0);
_.G([_.H({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.a("design:type",Boolean)],SQ.prototype,"finalHoveredState_",void 0);_.G([_.H({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.a("design:type",Number)],SQ.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SQ.prototype,"addBackground",void 0);
_.G([_.H({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.a("design:type",Object)],SQ.prototype,"hoverOverlays_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SQ.prototype,"nowPlaying",void 0);_.G([_.H(),_.a("design:type",Boolean)],SQ.prototype,"isVideoPlaying",void 0);_.G([_.H(),_.a("design:type",Object)],SQ.prototype,"disableRounding",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.a("design:type",Object)],SQ.prototype,"size",void 0);_.G([_.C3("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SQ.prototype,"onMouseEnter_",null);_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SQ.prototype,"onMouseLeave_",null);
_.G([_.xB("data","disableNowPlaying","miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SQ.prototype,"checkMiniplayer_",null);SQ=_.G([_.d4()],SQ);var kwV=[SQ.prototype];_.z1={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(M,d){return M+":"+_.d3(d)},
getPlayerListener_:function(M,d,N){M=this.getPlayerListenerKey_(M,d);d=this.playerListeners_.get(M);N&&this.playerListeners_.delete(M);return d},
savePlayerListener_:function(M,d){var N=d.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(M,d),N);return N},
listenToPlayerEvent:function(M,d,N){N=this.savePlayerListener_(d,N);M.addEventListener(d,N)},
listenToPlayerEvents:function(M,d){d.forEach(function(N,R){this.listenToPlayerEvent(M,R,N)}.bind(this))},
unlistenFromPlayerEvent:function(M,d,N){N=this.getPlayerListener_(d,N,!0);M.removeEventListener(d,N)},
unlistenFromPlayerEvents:function(M,d){d.forEach(function(N,R){this.unlistenFromPlayerEvent(M,R,N)}.bind(this))}}};
_.b$=function(){};_.TNI=new _.x5("PLAYER_API_TOKEN");var FBr=!1,$Yq,VoA=!1,kwS;var LO=function(M,d,N,R,X){_.DL.call(this);var A=this;this.playerId=d;this.webPlayerContextConfig=R;this.qx6=X;this.s1S=!1;this.api={};this.xqU=this.goa=null;this.mNA=new _.lk;this.oh={};this.bCD=this.uvq=this.elementId=this.djS=this.config=null;this.ywg=!1;this.gC=this.eGw=null;this.jSx={};this.vgl=["onReady"];this.lastError=null;this.gtu=NaN;this.bWx={};this.jzx=0;this.pj=this.targetElement=M;_.RW(this,this.mNA);DY3(this);N?this.jzx=setTimeout(function(){A.loadNewVideoConfig(N)},0):R&&(gAe(this),
WBz(this))};
_.v(LO,_.DL);LO.prototype.getId=function(){return this.playerId};
LO.prototype.loadNewVideoConfig=function(M){if(!this.isDisposed()){this.jzx&&(clearTimeout(this.jzx),this.jzx=0);var d=M||{};d instanceof GnV||(d=new GnV(d));this.config=d;this.setConfig(M);WBz(this);this.isReady()&&w43(this)}};
var gAe=function(M){var d;M.webPlayerContextConfig?d=M.webPlayerContextConfig.rootElementId:d=M.config.attrs.id;M.elementId=d||M.elementId;M.elementId==="video-player"&&(M.elementId=M.playerId,M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.playerId:M.config.attrs.id=M.playerId);var N;((N=M.pj)==null?void 0:N.id)===M.elementId&&(M.elementId+="-player",M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.elementId:M.config.attrs.id=M.elementId)};
LO.prototype.setConfig=function(M){this.djS=M;this.config=p4C(M);gAe(this);if(!this.uvq){var d;this.uvq=mYV(this,((d=this.config.args)==null?void 0:d.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var N;if((N=this.config)==null?0:N.attrs)M=this.config.attrs,(d=M.width)&&this.pj&&(this.pj.style.width=SI(Number(d)||d,!0)),(M=M.height)&&this.pj&&(this.pj.style.height=SI(Number(M)||M,!0))};
var w43=function(M){if(M.config&&M.config.loaded!==!0)if(M.config.loaded=!0,!M.config.args||M.config.args.autoplay!=="0"&&M.config.args.autoplay!==0&&M.config.args.autoplay!==!1){var d;M.api.loadVideoByPlayerVars((d=M.config.args)!=null?d:null)}else M.api.cueVideoByPlayerVars(M.config.args)},QaL=function(M){var d=!0,N=M.getPlayerElement();
N&&M.config&&(d=N.dataset.version===hbz(M));return d&&!!_.cy("yt.player.Application.create")},WBz=function(M){if(!M.isDisposed()&&!M.ywg){var d=QaL(M);
if(d&&(M.getPlayerElement()?"html5":null)==="html5")M.bCD="html5",M.isReady()||qxL(M);else if(I9d(M),M.bCD="html5",d&&M.gC&&M.targetElement)M.targetElement.appendChild(M.gC),qxL(M);else{M.config&&(M.config.loaded=!0);var N=!1;M.eGw=function(){N=!0;var R=vAz(M,"player_bootstrap_method")?_.cy("yt.player.Application.createAlternate")||_.cy("yt.player.Application.create"):_.cy("yt.player.Application.create");var X=M.config?p4C(M.config):void 0;R&&R(M.targetElement,X,M.webPlayerContextConfig,M.qx6);qxL(M)};
M.ywg=!0;d?M.eGw():(_.rB(hbz(M),M.eGw),(d=OPd(M))&&K8S(d||""),jam(M)&&!N&&_.fE("yt.player.Application.create",null))}}};
LO.prototype.getPlayerElement=function(){var M=_.fO(document,this.elementId);!M&&this.pj&&this.pj.querySelector&&(M=this.pj.querySelector("#"+this.elementId));return M};
var qxL=function(M){if(!M.isDisposed()){var d=M.getPlayerElement(),N=!1;d&&d.getApiInterface&&d.getApiInterface()&&(N=!0);if(N){M.ywg=!1;if(!vAz(M,"html5_remove_not_servable_check_killswitch")){var R;if((d==null?0:d.isNotServable)&&M.config&&(d==null?0:d.isNotServable((R=M.config.args)==null?void 0:R.video_id)))return}saC(M)}else M.gtu=setTimeout(function(){qxL(M)},50)}},saC=function(M){DY3(M);
M.s1S=!0;var d=M.getPlayerElement();if(d){M.goa=P4d(M,d,"addEventListener");M.xqU=P4d(M,d,"removeEventListener");var N=d.getApiInterface();N=N.concat(d.getInternalApiInterface());for(var R=M.api,X=0;X<N.length;X++){var A=N[X];R[A]||(R[A]=P4d(M,d,A))}}for(var l in M.oh)M.oh.hasOwnProperty(l)&&M.goa&&M.goa(l,M.oh[l]);w43(M);M.uvq&&M.uvq(M.api);M.mNA.publish("onReady",M.api)},P4d=function(M,d,N){var R=d[N];
return function(){var X=_.wH.apply(0,arguments);try{return M.lastError=null,R.apply(d,X)}catch(A){if(N!=="sendAbandonmentPing")throw A.params=N,M.lastError=A,X=new _.WJ("PlayerProxy error in method call",{error:A,method:N,playerId:M.playerId}),X.level="WARNING",X;}}},DY3=function(M){M.s1S=!1;
if(M.xqU)for(var d in M.oh)M.oh.hasOwnProperty(d)&&M.xqU(d,M.oh[d]);for(var N in M.bWx)M.bWx.hasOwnProperty(N)&&clearTimeout(Number(N));M.bWx={};M.goa=null;M.xqU=null;d=M.api;for(var R in d)d.hasOwnProperty(R)&&(d[R]=null);d.addEventListener=function(X,A){M.addEventListener(X,A)};
d.removeEventListener=function(X,A){M.removeEventListener(X,A)};
d.destroy=function(){M.dispose()};
d.getLastError=function(){return M.getLastError()};
d.getPlayerType=function(){return M.getPlayerType()};
d.getCurrentVideoConfig=function(){return M.djS};
d.loadNewVideoConfig=function(X){M.loadNewVideoConfig(X)};
d.isReady=function(){return M.isReady()}};
LO.prototype.isReady=function(){return this.s1S};
LO.prototype.addEventListener=function(M,d){var N=this;this.isDisposed();var R=mYV(this,d);R&&(_.i2(this.vgl,M)||this.oh[M]||(d=oAg(this,M),this.goa&&this.goa(M,d)),this.mNA.subscribe(M,R),M==="onReady"&&this.isReady()&&setTimeout(function(){R(N.api)},0))};
LO.prototype.removeEventListener=function(M,d){this.isDisposed()||(d=mYV(this,d))&&this.mNA.unsubscribe(M,d)};
var mYV=function(M,d){var N=d;if(typeof d==="string"){if(M.jSx[d])return M.jSx[d];N=function(){var R=_.wH.apply(0,arguments),X=_.cy(d);if(X)try{X.apply(_.Np,R)}catch(A){throw R=new _.WJ("PlayerProxy error when executing callback",{error:A}),R.level="ERROR",R;}};
M.jSx[d]=N}return N?N:null},oAg=function(M,d){var N=function(R){var X=function(){M.isDisposed();
if(!M.isDisposed())try{M.mNA.publish(d,R!=null?R:void 0)}catch(k){var l=new _.WJ("PlayerProxy error when creating global callback",{error:k.message,event:d,playerId:M.playerId,data:R,originalStack:k.stack,componentStack:k.componentStack});l.level="WARNING";throw l;}};
if(vAz(M,"web_player_publish_events_immediately"))X();else{var A=setTimeout(function(){X();_.wF.remove(M.bWx,String(A))},0);
_.wF.add(M.bWx,String(A),!0)}};
return M.oh[d]=N};
LO.prototype.getPlayerType=function(){return this.bCD||(this.getPlayerElement()?"html5":null)};
LO.prototype.getLastError=function(){return this.lastError};
var I9d=function(M){M.cancel();DY3(M);M.bCD=null;M.config&&(M.config.loaded=!1);var d=M.getPlayerElement();d&&(QaL(M)||!jam(M)?M.gC=d:(d&&d.destroy&&d.destroy(),M.gC=null));M.targetElement&&_.P6(M.targetElement)};
LO.prototype.cancel=function(){this.eGw&&_.E96(hbz(this),this.eGw);clearTimeout(this.gtu);this.ywg=!1};
LO.prototype.disposeInternal=function(){I9d(this);if(this.gC&&this.config&&this.gC.destroy)try{this.gC.destroy()}catch(d){var M=new _.WJ("PlayerProxy error during disposal",{error:d});M.level="ERROR";throw M;}this.jSx=null;for(M in this.oh)this.oh.hasOwnProperty(M)&&delete this.oh[M];this.djS=this.config=this.api=null;delete this.targetElement;delete this.pj;_.DL.prototype.disposeInternal.call(this)};
var jam=function(M){var d,N;M=(d=M.config)==null?void 0:(N=d.args)==null?void 0:N.fflags;return!!M&&M.indexOf("player_destroy_old_version=true")!==-1},hbz=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.jsUrl:(M=M.config.assets)?M.js:""},OPd=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.cssUrl:(M=M.config.assets)?M.css:""},vAz=function(M,d){if(M.webPlayerContextConfig)var N=M.webPlayerContextConfig.serializedExperimentFlags;
else{var R;if((R=M.config)==null?0:R.args)N=M.config.args.fflags}return(N||"").split("&").includes(d+"=true")},p4C=function(M){for(var d={},N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next()){R=R.value;
var X=M[R];d[R]=typeof X==="object"?_.wF.clone(X):X}return d};var w4Z={},WBq="player_uid_"+(Math.random()*1E9>>>0);var eQ=function(M,d,N,R,X,A){d=d===void 0?document.createElement("div"):d;this.webPlayerContextConfig=M;this.container=d;this.commandResolver=N;this.apiResolver=hbq();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.MX;R||A?rvL(this):KBd(this);this.pendingPlayerResponse=R;this.pendingWatchNextResponse=X;this.pendingPlayerVars=A;yvt(this)};
eQ.prototype.loadVideoWithPlayerResponse=function(M,d,N){this.loadVideo(M,d,N)};
eQ.prototype.loadVideoWithPlayerVars=function(M){return this.loadVideo(void 0,void 0,M)};
eQ.prototype.destroy=function(M){if(M=_.fO(document,M))M=WBq+"_"+_.d3(M),(M=w4Z[M])&&M.dispose()};
var cvL=function(M,d){var N;_.B(function(R){if(R.nextAddress==1)return M.pendingWatchNextResponse=d,M.synchronousApi?(N=M.synchronousApi,R.jumpTo(2)):_.D(R,M.api,3);R.nextAddress!=2&&(N=R.yieldResult);JvV(M,N);M.pendingWatchNextResponse&&(N.updateVideoData({raw_watch_next_response:M.pendingWatchNextResponse}),M.pendingWatchNextResponse=void 0);_.Vy(R)})},JvV=function(M,d){var N;
if(!(d==null?0:(N=d.isReady)==null?0:N.call(d))){var R;M=new _.WJ("playerApi is falsey",{synchronousApi:M.synchronousApi,apiResolved:M.apiResolver.resolved,playerApiUndefined:d===void 0,playerApiNull:d===null,playerApiReady:(d==null?void 0:(R=d.isReady)==null?void 0:R.call(d))===!0,playerApiMethods:d?Object.keys(d):[]});_.qZ(M)}},Sxe=function(M,d){if(typeof M[d]==="function")return M[d]()},zb3=function(M){var d=window,N,R=(N=d.ytplayer)==null?void 0:N.bootstrapPlayerContainer;
if((N=R==null?void 0:R.firstElementChild)&&_.HX(N,"html5-video-player")){var X,A,l=(X=d.ytplayer)==null?void 0:(A=X.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;X=M.webPlayerContextConfig.contextId;if(l&&l===X){R!==M.container&&(R=!1,Sxe(N,"getPlayerState")===2&&(R=!0),M.container.appendChild(N),R||Sxe(N,"playVideo"));var k;if((k=d.ytplayer)==null?0:k.bootstrapPlayerResponse)M.bootstrapPlayerResponse=d.ytplayer.bootstrapPlayerResponse}}},yvt=function(M){var d,N,R,X,A;
_.B(function(l){if(l.nextAddress==1)return M.pageReadyOrDataAvailable?l.jumpTo(2):_.D(l,M.pageReadyOrDataAvailableResolver.promise,2);if(l.nextAddress!=4)return!_.Q("kevlar_player_unified_player_loading")||Avq()&&l9p()?l.jumpTo(4):_.D(l,DYZ(),4);zb3(M);if(M.pendingPlayerResponse||M.pendingPlayerVars)d=gAp(M.pendingPlayerResponse,M.pendingWatchNextResponse,M.pendingPlayerVars),M.pendingPlayerResponse&&M.pendingPlayerResponse===M.bootstrapPlayerResponse&&(d.loaded=!0),M.bootstrapPlayerResponse=void 0;
N=mYS(M.container,d,M.webPlayerContextConfig);((R=d)==null?0:R.loaded)&&M.pendingWatchNextResponse?(cvL(M,M.pendingWatchNextResponse),M.pendingPlayerResponse=void 0,M.pendingPlayerVars=void 0):bPt(M);X=function(k){N.removeEventListener("onReady",X);M.synchronousApi=k;M.apiResolver.resolve(k)};
N.addEventListener("onReady",X);M.commandResolver!==void 0&&(A=M.commandResolver,N.addEventListener("innertubeCommand",function(k){A(k)}));
_.Vy(l)})};
eQ.prototype.loadVideo=function(M,d,N){var R=this,X,A,l,k,T,W,w,p,m;return _.B(function(I){if(I.nextAddress==1)return R.pendingPlayerResponse=M,R.pendingWatchNextResponse=d,R.pendingPlayerVars=N,rvL(R),R.synchronousApi?(X=R.synchronousApi,I.jumpTo(2)):_.D(I,R.api,3);I.nextAddress!=2&&(X=I.yieldResult);JvV(R,X);l=new Promise(function(O){A=O});
k=function(){var O=X.getPlayerResponse();O&&(X.removeEventListener("onVideoDataChange",k),A(O))};
X.addEventListener("onVideoDataChange",k);if(R.pendingPlayerResponse||R.pendingPlayerVars)R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse?(A(R.pendingPlayerResponse),R.pendingWatchNextResponse&&cvL(R,R.pendingWatchNextResponse)):(T=gAp(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),(m=(W=R.pendingPlayerResponse)==null?void 0:(w=W.playerConfig)==null?void 0:(p=w.playbackStartConfig)==null?void 0:p.startPaused)?X.cueVideoByPlayerVars(T.args):X.loadVideoByPlayerVars(T.args)),
bPt(R),R.bootstrapPlayerResponse=void 0;return I.return(l)})};
var KBd=function(M){if(document.readyState==="complete"||document.readyState==="interactive")rvL(M);else{var d=function(){document.removeEventListener("DOMContentLoaded",d);rvL(M)};
document.addEventListener("DOMContentLoaded",d)}},rvL=function(M){M.pageReadyOrDataAvailable=!0;
M.pageReadyOrDataAvailableResolver.resolve()},bPt=function(M){M.pendingPlayerResponse=void 0;
M.pendingWatchNextResponse=void 0;M.pendingPlayerVars=void 0};
_.Hm.Object.defineProperties(eQ.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Hk=function(M){oU.call(this,M===void 0?"document_active":M);var d=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(N){d.transition("document_disposed",{event:N})});
window.addEventListener("beforeunload",function(N){d.transition("document_disposed_preventable",{event:N})});
window.addEventListener("unload",function(N){d.transition("document_disposed",{event:N});d.hasRun=new Map})};
_.v(Hk,oU);
Hk.prototype.runPreventableDispose=function(M,d){if(!this.hasRun.get("document_disposed_preventable")){M(d==null?void 0:d.event);var N,R;if((d==null?0:(N=d.event)==null?0:N.defaultPrevented)||(d==null?0:(R=d.event)==null?0:R.returnValue)){d.event.returnValue||(d.event.returnValue=!0);d.event.defaultPrevented||d.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")};
Hk.prototype.runDispose=function(M,d){this.hasRun.get("document_disposed")?this.transition("document_active"):(M(d==null?void 0:d.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Hk.prototype.runFlush=function(M,d){M(d==null?void 0:d.event);this.transition("document_active")};
Hk.prototype.runActive=function(){};var nf=function(M){oU.call(this,M===void 0?"document_visibility_unknown":M);var d=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(N){document.visibilityState==="visible"?d.transition("document_visible",{event:N}):d.transition("document_hidden",
{event:N})});
_.Q("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(N){d.transition("document_backgrounded",{event:N})}),window.addEventListener("focus",function(N){d.transition("document_foregrounded",{event:N})}))};
_.v(nf,oU);nf.prototype.runVisible=function(M,d){M(d==null?void 0:d.event);_.Q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
nf.prototype.runHidden=function(M,d){M(d==null?void 0:d.event);_.Q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
nf.prototype.runBackgrounded=function(M,d){M(d==null?void 0:d.event)};
nf.prototype.runForegrounded=function(M,d){M(d==null?void 0:d.event)};var i$=function(){this.teardownLifecycle=new Hk;this.visibilityLifecycle=new nf};
i$.prototype.install=function(){var M=_.wH.apply(0,arguments),d=this;M.forEach(function(N){d.teardownLifecycle.install(N)});
M.forEach(function(N){d.visibilityLifecycle.install(N)})};var ff=function(){i$.call(this);var M={};this.install((M.document_disposed={callback:this.abortSlisAndFlush},M));_.Q("combine_ve_grafts")&&(M={},this.install((M.document_disposed={callback:this.flushInteractionLoggingAttachVes},M)));M={};this.install((M.flush_logs={callback:this.logFinalPayload},M));_.Q("web_log_cfg_cee_ks")||_.gL(_.IQ,eb3)};
_.v(ff,i$);var Qa2=function(){ff.loggingInstance||(ff.loggingInstance=new ff);return ff.loggingInstance};
ff.prototype.logFinalPayload=function(){if(_.Q("web_fp_via_jspb")){var M=new oCd,d=_.Ou();d&&_.VZ(M,1,d);d=_.Q("jspb_sparse_encoded_pivot")?new DS([{}]):new DS;_.EA(d,380,raJ,M);YKq("finalPayload",d);_.Q("web_fp_via_jspb_and_json")&&_.hQ("finalPayload",{csn:_.Ou()})}else _.hQ("finalPayload",{csn:_.Ou()})};
ff.prototype.abortSlisAndFlush=function(){oHV(zQ);b8!=null&&b8.flush()};
ff.prototype.flushInteractionLoggingAttachVes=function(){C$V(_.Nx())};
var eb3=function(){var M=_.rK("CLIENT_EXPERIMENT_EVENTS");if(M){var d=HZi();M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,d(N)&&_.hQ("genericClientExperimentEvent",{eventType:N});delete _.Py.CLIENT_EXPERIMENT_EVENTS}};var HPo={};
HPo.YtPlayerBehavior=[_.z1.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var M=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.MX;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;qxi(function(){M.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.qE(this,"pan-down"),_.Q("kevlar_pinch_fullscreen")&&_.Rh().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.Q("kevlar_pinch_fullscreen")&&_.Rh().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(M,d,N){var R=this;tI(this.useUnifiedPlayer_());if(this.mainAppPlayer_)tI(!1,"MainAppPlayer already created.");else{var X=_.Q("kevlar_player_container_query_killswitch")?this.$.container:_.K(this.hostElement).querySelector("#container");this.mainAppPlayer_=new eQ(this.getWebPlayerContextConfig_(),X,function(A){return _.Zc(A,R.hostElement)},M,d,N);
this.mainAppPlayer_.api.then(function(A){R.player_=A;R.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&UfV.resolve(A)})}},
loadVideoWithPlayerResponse:function(M,d){var N=this;if(this.useUnifiedPlayer_()){var R=this.watchNextData,X,A=(X=M.videoDetails)==null?void 0:X.videoId,l,k,T;(X=(l=this.watchNextData)==null?void 0:(k=l.currentVideoEndpoint)==null?void 0:(T=k.watchEndpoint)==null?void 0:T.videoId)&&A!=X&&(R=void 0,_.Q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(M,R,d):this.createMainAppPlayer_(M,R,d);this.mainAppPlayer_.api.then(function(){_.YP(N.hostElement,
"yt-player-updated")})}else this.update(NNS(M,d))},
loadVideoWithPlayerVars:function(M){var d=this;this.useUnifiedPlayer_()?(_.Q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(M):this.createMainAppPlayer_(void 0,void 0,M),this.mainAppPlayer_.api.then(function(){_.YP(d.hostElement,"yt-player-updated")})):this.update({args:M})},
update:function(M){var d=this;if(this.useUnifiedPlayer_())tI(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(M);var N=k_L(M.args);N&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==N&&Object.assign(M.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(M).then(function(R){_.YP(d.hostElement,"yt-player-updated",_.Q("kevlar_player_updated_obsolete_player_killswitch")?
R:void 0)})}_.IR(new _.WJ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.getPlayerPromise(),2);N=R.yieldResult;if(!N)throw Error("wh");M&&d.updatePlayerPlaylist_(M);_.Vy(R)})},
acquireApi_:function(M){var d=this;if(this.useUnifiedPlayer_())tI(!1,"Invalid method call in kevlar_unified_player.");else return _.IQ.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(tI(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(N){d.shouldAutoplay_(M)?N.loadVideoByPlayerVars(M.args):N.cueVideoByPlayerVars(M.args)})):this.initPlayerPromise_=this.initPlayerContainer_(M),this.initPlayerPromise_},
initPlayerContainer_:function(M){var d=this;if(this.useUnifiedPlayer_())tI(!1,"Invalid method call in kevlar_unified_player.");else return tI(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.vh(Error("xh")),tI(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.Q("kevlar_player_container_query_killswitch")?this.$.container:_.K(this.hostElement).querySelector("#container"),DYZ().then(function(){var N=d.initPlayer_(M);d.playerResolver_.resolve(N);
return N})},
onPlayerReady_:function(M,d){this.useUnifiedPlayer_()?tI(!1,"Invalid method call in kevlar_unified_player."):(M.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&UfV.resolve(M),d(M))},
maybeCallApiMethodOnElement_:function(M,d){if(typeof M[d]==="function")return M[d]()},
maybeAdoptBootstrapPlayer_:function(){var M=window,d,N=(d=M.ytplayer)==null?void 0:d.bootstrapPlayerContainer;if((d=N==null?void 0:N.firstElementChild)&&d.classList.contains("html5-video-player")){var R,X,A=(R=M.ytplayer)==null?void 0:(X=R.bootstrapWebPlayerContextConfig)==null?void 0:X.contextId;R=this.getWebPlayerContextConfig_().contextId;if(A&&A===R){N!==this.playerContainer_&&(N=!1,this.maybeCallApiMethodOnElement_(d,"getPlayerState")===2&&(N=!0),this.playerContainer_.appendChild(d),N||this.maybeCallApiMethodOnElement_(d,
"playVideo"));var l;if((l=M.ytplayer)==null?0:l.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=M.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(M){var d=this;if(this.useUnifiedPlayer_())tI(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(N){d.maybeAdoptBootstrapPlayer_();var R=M?Rb2(M):void 0;R&&R==d.bootstrapPlayerResponse_&&(M.loaded=!0);R=d.playerContainer_;var X=d.getWebPlayerContextConfig_();R=mYS(R,M,X);d.player_=R;d.onPlayerReadyEvent_=d.onPlayerReady_.bind(d,d.player_,N);d.player_.addEventListener("onReady",d.onPlayerReadyEvent_);d.player_.addEventListener("innertubeCommand",
d.onPlayerInnerTubeCommand_.bind(d))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(M){M.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(M){M.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var M=_.h().resolve(_.em).getCurrentPage();M&&M.getScrollTop()<=0?_.qE(this,"pan-down"):_.qE(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()||M.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()&&M.toggleFullscreen()})},
updatePlayerPlaylist_:function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1)return N=_.h().resolve(_.CF(_.oL)),R=!!(N&&N.playlistComponent&&N.playlistComponent.loopOn),_.D(A,d.getPlayerPromise(),2);var l=X=A.yieldResult,k=l.updatePlaylist,T=[];if(_.Q("kevlar_player_playlist_use_local_index")){var W,w;var p=(w=(W=M.localCurrentIndex)!=null?W:M.currentIndex)!=null?w:0}else{var m;p=(m=M.currentIndex)!=null?m:0}if(M.contents)for(W=0;W<M.contents.length;W++)if((w=M.contents[W])&&w.playlistPanelVideoRenderer)if(VVi(w)){w=
w.playlistPanelVideoRenderer;m="";w.shortBylineText&&(m=_.HD(w.shortBylineText));var I="";w.title?I=_.HD(w.title):w.unplayableText&&(I=_.HD(w.unplayableText));T.push({author:m,title:I,encrypted_id:w.videoId})}else W<p&&--p;k.call(l,{index:p,list:M.playlistId?M.playlistId:"",loop:R,playlist_title:M.title,playlist_length:T.length,video:T,fetch:0,external_list:"1",title:M.title?M.title:"",playlist_author:M.ownerName?_.HD(M.ownerName):void 0});_.Vy(A)})},
focusOnPlayer:function(){_.bM(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var M=this.playerContainer_.querySelector(".html5-video-player");M&&(_.nAL(_.h().resolve(_.gT)),M.focus())}})},
preparePlayer:function(){var M=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(d){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")d();else{var N=function(){document.removeEventListener("DOMContentLoaded",N);d()};
document.addEventListener("DOMContentLoaded",N)}})).then(function(){return DYZ()}).then(function(){M.initPlayerPromise_||M.preparePlayerJobId_||(M.preparePlayerJobId_=_.gL(_.IQ,function(){M.initPlayerPromise_||(M.initPlayerPromise_=M.initPlayerContainer_())}))}):_.IR(new _.WJ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(M){this.useUnifiedPlayer_()?tI(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(M)||(M.args.autoplay="0")},
shouldAutoplay_:function(M){if(this.useUnifiedPlayer_())tI(!1,"Invalid method call in kevlar_unified_player.");else{var d=this.get("args.el",M);return d&&d!="detailpage"&&this.isMiniplayerActive_()||d&&(d=="sponsorshipsoffer"||d=="handlesclaiming")&&this.get("args.autoplay",M)=="0"?!1:(M=Rb2(M))&&this.get("playerConfig.playbackStartConfig.startPaused",M)?!1:!0}},
isMiniplayerActive_:function(){return _.h().resolve(_.et).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var M=this.getPlayer();if(M){var d=M.getPlayerState();_.Q("kevlar_player_check_ad_state_on_stop")&&(d=M.getPlayerState(M.getPresentingPlayerType()));d!=5&&M.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(M,d,N){N=N===void 0?!1:N;var R=this,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return d||(d=R.hostElement),X=R.useUnifiedPlayer_()?!!R.mainAppPlayer_:!!R.initPlayerPromise_,X?_.D(T,R.getPlayerPromise(),2):(N?M.insertBefore(d,M.firstChild):M.appendChild(d),T.return());A=T.yieldResult;l=A.getPlayerState(A.getPresentingPlayerType());k=!1;if(l==-1||l==1||l==3)k=!0;N?M.insertBefore(d,M.firstChild):M.appendChild(d);k&&A.playVideo();A.setSize(NaN,NaN);_.Vy(T)})},
watchNextDataChanged_:function(M){var d=this;M&&(this.useUnifiedPlayer_()&&_.Q("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&cvL(this.mainAppPlayer_,M):this.getPlayerPromise().then(function(N){N.updateVideoData(d.computeWatchNextPlayerVars_(M))}))},
computeWatchNextPlayerVars_:function(M){if(this.useUnifiedPlayer_()&&_.Q("kevlar_unified_player_update_watch_next_killswitch"))tI(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:M}},
maybeSendAbandonmentPing_:function(){var M=this.getPlayer();M&&M.getPlayerState()!=5&&M.getPlayerState()!=0&&M.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var M=_.rK("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(M=Object.assign({},M),M.rootElementId=this.playerId);M.serializedExperimentIds&&M.serializedExperimentFlags||_.vh(Error("yh"));return M},
hasWebPlayerContextConfig_:function(){return!!_.rK("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(M){this.useUnifiedPlayer_()?tI(!1,"Invalid method call in kevlar_unified_player."):_.Zc(M,this.hostElement)},
useUnifiedPlayer_:function(){var M=_.Q("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.Q("kevlar_unified_player")||M}}];var iPt={};iPt.YtPlaylistPanelBehavior=[_.E.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(M){M=M.detail;if(M.actions.loop!=void 0||M.actions["yt-icons:loop"]!=void 0)this.loopOn=M.actions.loop||M.actions["yt-icons:loop"];if(M.actions.shuffle!=void 0||M.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=M.actions.shuffle||M.actions["yt-icons:shuffle"]},
setMenuData_:function(M){if(!M||!M.playlistButtons||M.isInfinite)return null;for(var d=M.playlistButtons.menuRenderer.topLevelButtons,N=d.length,R=0;R<N;R++)if(d[R].toggleButtonRenderer){var X=d[R].toggleButtonRenderer;X.defaultIcon.iconType=="LOOP"&&this.loopOn?X.isToggled=this.loopOn:X.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(X.isToggled=this.shuffleOn)}return M.playlistButtons}}];var f9C=function(M){UX.call(this,M,132);this.isDocument=M===document.documentElement};
_.v(f9C,UX);f9C.prototype.calculateScrollDelta=function(M,d,N){var R=0;M<d?R=M<d-100?-48:-8:M>d+N&&(R=M>d+N+100?48:8);return R};
f9C.prototype.JSC$9188_onMouseMove=function(M){this.isDocument||(M.clientX=M.event_.pageX,M.clientY=M.event_.pageY);UX.prototype.JSC$9188_onMouseMove.call(this,M)};var Lf=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;M.scrollElement=document.documentElement;M.JSC$12110_dragListGroup=null;M.dragScrollSupport=null;M.onDraggerCreated=function(d){var N=d.JSC$9184_dragger;N.scrollTarget_=M.scrollElement;d=d.draggerEl;N&&d.menuOpened&&N.setEnabled(!1)};
M.onDragStart=function(d){var N=d.draggerEl;d=d.currDragItem;var R=Object.assign({},d==null?void 0:d.data);R.trackingParams=void 0;N.data=R;N.style.position="absolute";N.style.width=(d==null?void 0:d.clientWidth)+"px";N.style.zIndex="2030";N.onDrag&&N.onDrag();_.Q("web_owner_document_fallback_killswitch")?(d=document.querySelector("ytd-app"))&&_.K(d).appendChild(N):(d=_.qy(N),(R=d.querySelector("ytd-app"))?_.K(R).appendChild(N):d.body.appendChild(N));M.dragScrollSupport=new f9C(M.scrollElement);M.dragScrollSupport.horizontalScrolling_=
!1;N=M.dragScrollSupport;N.constrainScroll_=!!N.margin_&&!1};
M.onDrop=function(d){M.handleDrop(d);M.dragScrollSupport&&(_.tw(M.dragScrollSupport),M.dragScrollSupport=null)};
M.onReorderableScroll=function(){if(M.JSC$12110_dragListGroup){var d=M.JSC$12110_dragListGroup;I33(d,d.currDragItem_)}};
return M};
_.v(Lf,_.MS);Lf.prototype.detached=function(){_.LBJ(this)};
_.LBJ=function(M){M.JSC$12110_dragListGroup&&(_.p2(M.JSC$12110_dragListGroup,DXd,M.onDragStart),_.p2(M.JSC$12110_dragListGroup,pNg,M.onDragStart),M.JSC$12110_dragListGroup.dispose(),M.JSC$12110_dragListGroup=null);M.dragScrollSupport&&(_.tw(M.dragScrollSupport),M.dragScrollSupport=null);M.scrollElement.removeEventListener("scroll",M.onReorderableScroll)};
_.toV=function(M,d,N,R){R=R===void 0?"":R;_.LBJ(M);N&&(M.scrollElement=N);M.JSC$12110_dragListGroup=new SP;M.JSC$12110_dragListGroup.hysteresisDistance_=2;hrd(M.JSC$12110_dragListGroup,d);M.JSC$12110_dragListGroup.draggerElClasses_=_.Xq("dragging").split(" ");R&&QjV(M.JSC$12110_dragListGroup,function(X){var A=X||document,l=null;A.getElementsByClassName?l=A.getElementsByClassName(R)[0]:l=WGC("*",R,X);return l||X});
_.lI(M.JSC$12110_dragListGroup,kuL,M.onDraggerCreated);_.lI(M.JSC$12110_dragListGroup,DXd,M.onDragStart);_.lI(M.JSC$12110_dragListGroup,pNg,M.onDrop);M.JSC$12110_dragListGroup.init();M.scrollElement.addEventListener("scroll",M.onReorderableScroll,{passive:!0})};
Lf.prototype.handleDrop=function(){};
_.Hm.Object.defineProperties(Lf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.G([_.H({value:100}),_.a("design:type",Number)],Lf.prototype,"scrollMargin",void 0);Lf=_.G([_.d4()],Lf);_.GwJ=[Lf.prototype];_.tN={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(M,d,N){var R=this.getClickTarget_(d);if(R&&this.isClickAllowed_(R)){d.preventDefault();M=(0,_.wF.unsafeClone)(M);var X=this.getContainerBoundingRect();d=this.getRelativeClickXy_(d,X);this.expandEndpointUrlMacros_(M,{NX:d[0],NY:d[1],NB:R.code});N&&this.truncateWebCommendMetadataUrl_(M);_.YP(this.hostElement,"yt-navigate",{endpoint:M})}},
getClickTarget_:function(M){if(!this.clickTargetMap)return null;M=_.J2(M)||[];M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;if(d===_.K(this.hostElement).querySelector("#menu"))break;if(d=this.clickTargetMap.get(d.id))return d}return null},
getRelativeClickXy_:function(M,d){var N=M.detail.x,R=M.detail.y;_.Q("use_on_click_for_desktop_display_ad")&&M.clientX!=null&&M.clientY!=null&&(N=M.clientX,R=M.clientY);M=Math.round(N-d.left);d=Math.round(R-d.top);return M<0||d<0?[null,null]:[M,d]},
getContainerBoundingRect:function(){return _.K(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(M,d){for(var N=_.V(M.loggingUrls||[]),R=N.next();!R.done;R=N.next())R=R.value,R.baseUrl&&(R.baseUrl=py(R.baseUrl,d));M.urlEndpoint&&M.urlEndpoint.url&&(M.urlEndpoint.url=py(M.urlEndpoint.url,d));M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url&&(M.commandMetadata.webCommandMetadata.url=py(M.commandMetadata.webCommandMetadata.url,d))},
truncateWebCommendMetadataUrl_:function(M){if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url){var d=M.commandMetadata.webCommandMetadata.url,N=d.indexOf("&pp=");if(N>0){var R=d.indexOf("&",N+1);M.commandMetadata.webCommandMetadata.url=R>N&&R<d.length?d.slice(0,N)+d.slice(R):d.slice(0,N)}}},
configureClickTargets:function(M,d,N){this.containerId=M;this.clickTargetMap=new Map;M=_.V(d);for(d=M.next();!d.done;d=M.next())if(d=d.value,d.location){var R=N.get(d.location);R&&(_.t2(_.K(this.hostElement).querySelector("#"+R),"yt-simple-endpoint",this.isClickAllowed_(d)),this.clickTargetMap.set(R,d))}},
isClickAllowed_:function(M){return M.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.G1={};
_.G1.YtLazyListBehavior=[_.HA.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var M=(this.constructor.generatedFrom||this).observers;M||(M=[]);M.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
M}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var M=this.renderElementsOutsideVisibleArea_;M&&(EJd(M,4),M.processSignal())},
deepLazyListObserver_:function(M){var d=this;if(M){var N=M.value||[];if(this.itemsPath==M.path){var R=this.nonDeferredItemCount;M=0;R>-1&&N.length>R&&(M=_.rK("REMAINING_DOVA_DEFERRED_CHUNKS",-1));M>0?(R>0&&(R=N.slice(0,R),this.setInitialItemsOnDataChanged(R)),(R=this.renderElementsOutsideVisibleArea_)?R.cancel():(R=this.renderElementsOutsideVisibleArea_=new _.iW(2,"eocs"),_.YO2(window,"scroll",function(){return d.renderDeferredElements()})),_.f$(R,function(){d.setInitialItemsOnDataChanged(N)}),_.oJ("REMAINING_DOVA_DEFERRED_CHUNKS",
M-1)):this.setInitialItemsOnDataChanged(N)}else if(this.itemsPath+".splices"==M.path)this.onItemsUpdated_(N);
else R="shownItems"+M.path.substr(this.itemsPath.length),this.useSignals&&R==="shownItems.length"||this.notifyPath(R,M.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(M){M&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(M),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(M){M=M.indexSplices;for(var d=0,N=M.length;d<N;d++){var R=M[d];if(R.index<this.shownCount&&(R.removed&&this.splice("shownItems",R.index,R.removed.length),R.addedCount)){var X=R.object.slice(R.index,R.index+R.addedCount);R=["shownItems",R.index,0];R.push.apply(R,X);this.splice.apply(this,R)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(M){this.cancelPendingTasks_();M||(M=[]);this.items_=M;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.KF("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.bM(this,this.tryRenderChunk_)))},
fillRange_:function(M,d){this.canShowMore&&this.items_&&(M=this.items_.slice(M,d),M.unshift("shownItems"),this.push.apply(this,M),this.shownCount=d,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var M=this;this.canShowMore&&_.OH(this,"renderChunk",function(){M.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.KF("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.kM(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var M=this.renderElementsOutsideVisibleArea_;M&&(M.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var M=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(M-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=M;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(M){return Math.ceil(1E3/M)},
onCanShowMoreUpdated_:function(M){this.data&&this.items_!==null&&(M?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(M){!this.shouldUseTaskManager()&&this.data&&(!M&&this.canShowMore?(_.t1r(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):M&&this.partiallyRenderedItems_.has(this.items_)&&(_.Q("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var u$;_.ak={};
u$=function(){var M=_.MS.apply(this,arguments)||this;M.atStart=!0;M.atEnd=!0;M.startIndex=0;M.endIndex=0;M.scrollCount=0;M.initialStartIndex=0;M.disableScrollEventListener=!1;M.useFloorScrolling=!1;M.isSearch=!1;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.disableWheelScroll=!1;M.centerListItems=!1;M.offset=0;M.minComponentWidth=0;M.marginWidthRight=0;M.marginWidthLeft=0;M.setButtonsStateRequested=!1;M.itemsVisibilityObserver=null;M.fullyVisibleItemsIndices=[];M.JSC$12121_onWheelScroll=function(d){if(M.isSearch&&
!M.disableWheelScroll&&_.Q("desktop_enable_dmpanel_wheel_scroll")){var N=d.shiftKey?Math.abs(d.deltaY)>Math.abs(d.deltaX)?d.deltaY:d.deltaX:d.deltaX;N!==0&&(d.preventDefault(),M.ytLazyListBehavior.fillRemainingListItems(),M.offset+=N,Up(M),M.reposition_())}};
M.onPointerDown=function(d){a93(M)&&(M.dragMouseStart=d.clientX,M.dragOffsetStart=M.offset,M.dragging=!0)};
M.onPointerMove=function(d){a93(M)&&M.dragging&&(M.ytLazyListBehavior.fillRemainingListItems(),M.offset=M.dragOffsetStart-(d.clientX-M.dragMouseStart),Up(M),M.reposition_())};
M.onPointerUp=function(){a93(M)&&(M.dragging=!1)};
return M};
_.v(u$,_.MS);var UYL=function(M){var d=_.K(M.hostElement).querySelector("#items").children;if(!d)return 0;var N=0;M=_.V(M.fullyVisibleItemsIndices);for(var R=M.next();!R.done;R=M.next())N+=d[R.value].clientWidth;return N},a93=function(M){return M.isSearch&&_.Q("desktop_enable_dmpanel_click_drag_scroll")};
u$.prototype.created=function(){this.cachedViewportWidth=_.rK("initialInnerWidth")||window.innerWidth;this.JSC$12121_cachedViewportHeight=_.rK("initialInnerHeight")||window.innerHeight;_.rK("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.oJ("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
u$.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Q("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();uuo(this)};
u$.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Q("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var M;(M=this.itemsVisibilityObserver)==null||M.disconnect();this.itemsVisibilityObserver=null;var d;(d=this.itemsObserver)==null||d.disconnect()};
var uuo=function(M){var d=_.K(M.hostElement).querySelector("#scroll-container");if(d){if(!M.itemsVisibilityObserver){var N=window.getComputedStyle(d).marginRight;M.itemsVisibilityObserver=new IntersectionObserver(function(R){C4V(M,R)},{root:d,
rootMargin:N,threshold:.98})}if(d=_.K(M.hostElement).querySelector("#items"))M.itemsObserver=new MpI(d,function(R){xYo(M,R)})}},xYo=function(M,d){Yx3(M)&&(Array.from(d.addedNodes).filter(function(N){return N.nodeType===Node.ELEMENT_NODE}).forEach(function(N){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.observe(N)}),Array.from(d.removedNodes).filter(function(N){return N.nodeType===Node.ELEMENT_NODE}).forEach(function(N){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.unobserve(N)}))},
C4V=function(M,d){var N=new Set(M.fullyVisibleItemsIndices);
d=_.V(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;var X=R.target.parentElement;X?(X=Array.from(X.children).indexOf(R.target),R.isIntersecting?N.add(X):N.has(X)&&N.delete(X)):_.vh(new _.WJ("Parent element not found",R.target.nodeName))}M.fullyVisibleItemsIndices=Array.from(N).sort(function(A,l){return A-l});
N.size===0?_.vh(new _.WJ("No visible entries in horizontal list")):(M.startIndex=M.fullyVisibleItemsIndices[0],M.endIndex=M.fullyVisibleItemsIndices[M.fullyVisibleItemsIndices.length-1])},Yx3=function(M){M.data?M=(M=M.data)&&M.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===M.itemSizeConstraint:!1:M=!1;
return M};
_.F=u$.prototype;_.F.addScrollEventListeners=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.style.touchAction="pan-y";M.addEventListener("wheel",this.JSC$12121_onWheelScroll);M.addEventListener("pointerdown",this.onPointerDown);M.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.F.removeScrollEventListeners=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.JSC$12121_onWheelScroll);M.removeEventListener("pointerdown",this.onPointerDown);M.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.F.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.bM(this,this.setStartIndex,[this.initialStartIndex])};
_.F.reposition_=function(){var M=_.rK("HTML_DIR")=="rtl"?"":"-",d=_.K(this.hostElement).querySelector("#items");d&&(d.style.transform="translateX("+M+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.F.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.bM(this,this.setButtonsState_))};
_.F.setButtonsState_=function(){this.setButtonsStateRequested=!1;var M=_.K(this.hostElement).querySelector("#items").firstElementChild;if(M){this.minComponentWidth||(this.minComponentWidth=ZPz(this,M));M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;var d=_.K(this.hostElement).querySelector("#items").clientWidth,N=this.get(this.ytLazyListBehavior.itemsPath,this);if(N){var R=Math.round(M/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+R,N.length)-1)}this.ytLazyListBehavior.canShowMore?d+this.minComponentWidth>=this.offset+M&&(this.atEnd=!1):this.atEnd=this.offset+M>=d-20?!0:!1;this.atStart=this.offset<=20}};
_.F.setStartIndex=function(M){if(!this.minComponentWidth){var d=_.K(this.hostElement).querySelector("#items").firstElementChild;if(!d)return;this.minComponentWidth=ZPz(this,d)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*M;Up(this);this.reposition_()};
_.F.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.lc();var M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;_.Q("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=ZPz(this,_.K(this.hostElement).querySelector("#items").firstElementChild));M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&EAI(this);this.offset+=Yx3(this)?
UYL(this):M*this.minComponentWidth;Up(this);this.reposition_();this.scrollCount++};
_.F.prevClick_=function(){var M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=Yx3(this)?UYL(this):this.minComponentWidth*this.scrollCount-1):this.offset-=Yx3(this)?UYL(this):M*this.minComponentWidth;this.centerListItems&&EAI(this);Up(this);this.reposition_()};
_.F.onIronResize_=function(){this.resizeSupportEnabled&&_.bM(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.F.onItemsTransitionEnd_=function(M){_.cN(M)===_.K(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.F.onChildElementFocus_=function(M){M=M.target.closest("#items > *");var d=_.K(this.hostElement).querySelector("#scroll-container");if(d.contains(M)){if(_.Q("web_horizontal_list_behavior_focus_killswitch"))if(M.offsetLeft<this.offset)this.offset=Math.abs(M.offsetLeft)<M.clientWidth?0:M.offsetLeft;else if(M.offsetLeft+M.clientWidth>this.offset+d.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.lc(),this.offset=M.offsetLeft+M.clientWidth-d.clientWidth;else return;else{var N=_.K(this.hostElement).querySelector("#items"),
R=_.rK("HTML_DIR")==="rtl",X=R?N.clientWidth-M.offsetLeft:M.offsetLeft;N=R?N.clientWidth-(M.offsetLeft+M.clientWidth):M.offsetLeft+M.clientWidth;var A=R?X>this.offset+d.clientWidth:X<this.offset,l=R?N<this.offset:N>this.offset+d.clientWidth,k=R?A:l;if(R?l:A)d=R?N:X,this.offset=Math.abs(d)<M.clientWidth?0:d;else if(k)this.ytLazyListBehavior.fillRemainingListItems(),_.lc(),this.offset=(R?X:N)-d.clientWidth;else return}Up(this);this.reposition_()}};
_.F.observeShownItems_=function(){this.reset()};
_.F.checkComponentWidthResize=function(){var M=_.K(this.hostElement).querySelector("#items").firstElementChild;M&&(M=ZPz(this,M),this.centerListItems||M!==this.minComponentWidth)&&(this.minComponentWidth=M,this.offset=M*this.scrollCount,this.centerListItems&&EAI(this),Up(this),this.reposition_())};
var ZPz=function(M,d){var N=window.getComputedStyle(d).marginRight;N=Math.floor(Number(N.replace("px","")));var R=window.getComputedStyle(d).marginLeft;R=Math.floor(Number(R.replace("px","")));M.centerListItems&&!M.marginWidthRight&&(M.marginWidthRight=N,M.marginWidthLeft=R);return M.resizeSupportEnabled?d.getBoundingClientRect().width+N:d.offsetWidth+N},Up=function(M){var d=_.K(M.hostElement).querySelector("#scroll-container").clientWidth,N=_.K(M.hostElement).querySelector("#items").clientWidth;
M.offset<0?M.offset=0:M.offset+d>=N&&(M.offset=N-d)},EAI=function(M){M.offset-=(_.K(M.hostElement).querySelector("#scroll-container").clientWidth+M.marginWidthRight-M.minComponentWidth)/2-M.marginWidthLeft};
_.Hm.Object.defineProperties(u$.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var M=_.rK("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(M==-1)M=this.JSC$12121_cachedViewportHeight,M=M>1320?5:M>1020?4:M>730?3:M>430?2:1;else if(M==0)return 0;_.oJ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",M-1);M=_.rK("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(M>-1)return M;M=this.cachedViewportWidth;M=M>1600?6:M>1400?5:M>1300?4:M>1090?5:M>870?4:M>660?3:2;_.oJ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
M);return M},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.Q("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
u$.prototype.observeShownItems_=u$.prototype.observeShownItems_;u$.prototype.onChildElementFocus_=u$.prototype.onChildElementFocus_;u$.prototype.onItemsTransitionEnd_=u$.prototype.onItemsTransitionEnd_;u$.prototype.onIronResize_=u$.prototype.onIronResize_;u$.prototype.prevClick_=u$.prototype.prevClick_;u$.prototype.nextClick_=u$.prototype.nextClick_;u$.prototype.setButtonsState_=u$.prototype.setButtonsState_;u$.prototype.requestButtonsStateUpdate_=u$.prototype.requestButtonsStateUpdate_;
u$.prototype.reposition_=u$.prototype.reposition_;u$.prototype.reset=u$.prototype.reset;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],u$.prototype,"ytLazyListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u$.prototype,"atStart",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u$.prototype,"atEnd",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"startIndex",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"endIndex",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],u$.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"scrollCount",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"initialStartIndex",void 0);
_.G([_.H(),_.a("design:type",Object)],u$.prototype,"disableScrollEventListener",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"supportComponentResize",void 0);_.G([_.H({value:function(){var M=this;return function(){return M.prevClick_()}}}),
_.a("design:type",Function)],u$.prototype,"boundPrevClick",void 0);_.G([_.H({value:function(){var M=this;return function(){return M.nextClick_()}}}),
_.a("design:type",Function)],u$.prototype,"boundNextClick",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"useFloorScrolling",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"dragging",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"dragMouseStart",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"dragOffsetStart",void 0);
_.G([_.H(),_.a("design:type",Object)],u$.prototype,"disableWheelScroll",void 0);_.G([_.H(),_.a("design:type",Object)],u$.prototype,"centerListItems",void 0);_.G([_.C3("iron-resize"),_.xB("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],u$.prototype,"onIronResize_",null);_.G([_.C3("transitionend"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],u$.prototype,"onItemsTransitionEnd_",null);
_.G([_.C3("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],u$.prototype,"onChildElementFocus_",null);_.G([_.xB("shownItems"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],u$.prototype,"observeShownItems_",null);u$=_.G([_.d4()],u$);_.ak.YtdHorizontalListBehavior=[];_.ak.YtdHorizontalListBehavior.push(_.sj,_.E.YtRendererBehavior,_.G1.YtLazyListBehavior,_.Kf.YtdGuideStateAwareBehavior,u$.prototype);var vAq=["APP_STATE","PI"];var MRg=_.a1(["about:blank"]),dtm={pushState:window.history.pushState,replaceState:window.history.replaceState};var Cf=function(M){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=M;this.internalPushState=M.pushState.bind(M);this.internalReplaceState=M.replaceState.bind(M)};
Cf.prototype.init=function(){this.initialized=!0};
Cf.prototype.pushState=function(M,d){this.initialized||this.init();this.internalPushState&&this.internalPushState(M,"",d)};
Cf.prototype.replaceState=function(M,d){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(M,"",d)};
Cf.prototype.getState=function(){return this.history&&this.history.state};var Ned=function(M){var d=function(){var N=M.apply(this,arguments)||this;N.boundHistoryPushState=!1;N.boundHistoryReplaceState=!1;N.debugInfo={};return N};
_.v(d,M);d.prototype.init=function(){var N=_.Vf("IFRAME");_.s0(N,_.u6(MRg));N.sandbox="allow-same-origin";N.style.display="none";this.iframe=N;document.body.appendChild(N);this.bindHistoryStateFunctions();M.prototype.init.call(this)};
d.prototype.bindHistoryStateFunctions=function(){var N=this,R=[],X;this.iframe&&((X=this.iframe.contentWindow)==null?0:X.history)&&(X=this.iframe.contentWindow.history)&&(R.push(X),Object.getPrototypeOf(X)&&R.push(Object.getPrototypeOf(X)));window.history&&R.push(window.history);X=window.history;Object.getPrototypeOf(X)&&R.push(Object.getPrototypeOf(X));R.push(dtm);X=function(l){for(var k=null,T=0;T<R.length;T++){var W=R[T][l];if(typeof W==="function"){k=W.bind(window.history);N.debugInfo[l]=T;break}}return k};
if(!this.boundHistoryReplaceState){var A=X("replaceState");A&&(this.internalReplaceState=A,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(X=X("pushState"))&&(this.internalPushState=X,this.boundHistoryPushState=!0)};
return d}(Cf),RPC=function(){return Ned.call(this,window.history)||this};
_.v(RPC,Ned);RPC.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var x0=function(M){this.browserHistory=M;this.initialized=!1};
x0.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
x0.prototype.pushState=function(M,d){this.initialized||this.init();this.browserHistory.pushState(M,d)};
x0.prototype.replaceState=function(M,d){this.initialized||this.init();this.browserHistory.replaceState(M,d)};
x0.prototype.handlePopstate=function(M){return M.state};_.Xez=function(M,d,N,R,X){this.endpoint=M;this.forward=d;this.historyEntry=N;this.JSC$26349_savedComponentState=R;this.legacyBorder=X===void 0?!1:X};var Fmt=function(M,d){this.rootData=M;this.scrollTop=d};var Oe=new _.x5("PAGE_REQUEST_TOKEN"),Odm=new _.x5("FETCH_PBJ_TOKEN");_.Y0=new _.x5("EPHEMERAL_STORE_TOKEN");_.Zh=function(M){this.data=Object.assign({},M);var d;(d=this.data.innertubeResponse)==null||delete d.frameworkUpdates};
_.Zh.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Gs)()};
_.Vr=function(M){return Object.assign({},M.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var ADI=function(){this.maxSize=100;this.timeToDataCache=new Map};
ADI.prototype.get=function(M){var d=this.timeToDataCache.get(M);d&&(this.timeToDataCache.delete(M),this.timeToDataCache.set(M,d));if(d&&d.rootData&&(_.Q("web_use_response_store_for_history_cache")||_.Q("mweb_use_new_history_manager"))){var N=_.h().resolve(_.Y0),R=VRz(d),X=!!R;if(R){if(R.content){var A=Ep(N,R.content);X&&A?d.rootData.response=_.Vr(A):X=!1}R.player&&(A=Ep(N,R.player),X&&A?d.rootData.playerResponse=_.Vr(A):X=!1);R.reelSequence&&(N=Ep(N,R.reelSequence),X&&N?d.rootData.reelWatchSequenceResponse=
_.Vr(N):X=!1)}X||(this.timeToDataCache.delete(M),d=void 0)}return d};
ADI.prototype.set=function(M,d){if(d.rootData&&(_.Q("web_use_response_store_for_history_cache")||_.Q("mweb_use_new_history_manager"))){var N=VRz(d),R=Object.assign({},d.rootData);N&&(N.content&&d.rootData.response&&(l8g(this,N.content,d.rootData.response),R.response=null),N.player&&d.rootData.playerResponse&&(l8g(this,N.player,d.rootData.playerResponse),R.playerResponse=null),N.reelSequence&&d.rootData.reelWatchSequenceResponse&&(l8g(this,N.reelSequence,d.rootData.reelWatchSequenceResponse),R.reelWatchSequenceResponse=
null));d=new Fmt(R,d.scrollTop)}this.timeToDataCache.has(M)?this.timeToDataCache.delete(M):this.timeToDataCache.size>=this.maxSize&&(N=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(N.value));this.maxSize!==0&&this.timeToDataCache.set(M,d)};
ADI.prototype.clear=function(){this.timeToDataCache.clear()};
var VRz=function(M){var d=_.h().resolve(_.CF(Oe)),N;if((N=M.rootData)==null?0:N.endpoint)return d==null?void 0:EXi(d,M.rootData.endpoint);var R;_.vh(new _.WJ("History snapshot response data does not contain endpoint",(R=M.rootData)==null?void 0:R.url));return null},l8g=function(M,d,N){if(M.maxSize>0){var R;
(M=(R=N.responseContext)==null?void 0:R.maxAgeSeconds)&&Number(M)>0&&(R=_.h().resolve(_.Y0),N=uG(N,M),R.put(d,new _.Zh(N)))}};var $td=function(M,d,N){this.endpoint=d;this.JSC$26354_savedComponentState=N===void 0?null:N;this.entryTime=M};var rvi=1;var Mf=function(M){var d=function(){var N=M.apply(this,[].concat(_.wu(_.wH.apply(0,arguments))))||this;N.historyEntryTime=0;N.historySnapshotCache=N.createHistoryCache();return N};
_.v(d,M);d.prototype.createHistoryCache=function(){return new ADI};
d.prototype.saveAndReplace=function(N,R,X){var A=window.location.href;var l=l===void 0?{}:l;var k=(k=this.browserHistory.getState())&&k.entryTime?k.entryTime:KBZ();N=this.createNewHistoryEntry(N,l,k);this.saveSnapshot(k,R,X);this.replaceState(N,A||window.location.href)};
d.prototype.saveAndPush=function(N,R,X,A,l){l=l===void 0?{}:l;this.saveSnapshot(this.historyEntryTime,X,A);X=this.historySnapshotCache;A=this.historyEntryTime;var k=X.timeToDataCache.keys();k=_.V(k);for(var T=k.next();!T.done;T=k.next())T=T.value,T>A&&X.timeToDataCache.delete(T);R=this.createNewHistoryEntry(R,l);this.pushState(R,N)};
d.prototype.saveSnapshot=function(N,R,X){this.historySnapshotCache.set(N,new Fmt(R,X))};
d.prototype.createNewHistoryEntry=function(N,R,X){X=X===void 0?KBZ():X;return new $td(X,N,R)};
d.prototype.handlePopstate=function(N){var R=M.prototype.handlePopstate.call(this,N),X=null,A=null,l=!1,k=null;R&&R.entryTime&&(k=this.historySnapshotCache.get(R.entryTime)||null,l=R.entryTime>this.historyEntryTime,this.historyEntryTime=R.entryTime,X=R.endpoint,A=R.JSC$26354_savedComponentState);this.handleHistoryCacheLoad(new _.Xez(X,l,k,A),N);return R};
d.prototype.pushState=function(N,R){Number(N==null?void 0:N.entryTime)>=0&&(this.historyEntryTime=N.entryTime);M.prototype.pushState.call(this,N,R)};
d.prototype.replaceState=function(N,R){Number(N==null?void 0:N.entryTime)>=0&&(this.historyEntryTime=N.entryTime);M.prototype.replaceState.call(this,N,R)};
d.prototype.handleHistoryCacheLoad=function(){};
return d}(x0),Bet=function(){var M=Mf.call(this,new RPC)||this;
M.dispatchElement=null;M.entryIndex=0;return M};
_.v(Bet,Mf);_.F=Bet.prototype;_.F.init=function(M){M=M===void 0?!0:M;Mf.prototype.init.call(this);this.initialized||(M||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.F.handlePopstate=function(M){var d=null;M.state||(d="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Mf.prototype.handlePopstate.call(this,M);var N=new CustomEvent("yt-history-pop",{cancelable:!0});_.ZI(this.dispatchElement,"yt-history-pop",[N,{errorMsg:d}]);_.Eu(this.dispatchElement,"yt-close-all-popups-action");if(!N.defaultPrevented){N=_.h().resolve(_.em);d=N.getCurrentData();var R=N.getCurrentPage();N=0;R?(R=_.ZI(this.dispatchElement,"yt-get-page-offset",
[R]),R.length>0&&(N=R[0])):_.vh(new _.WJ("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:d?d.page:"undefined"}));d&&(d.csn=_.Ou());this.saveSnapshot(this.historyEntryTime,d,N)}return Mf.prototype.handlePopstate.call(this,M)};
_.F.handleHistoryCacheLoad=function(M,d){M.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.V(_.Eu(this.dispatchElement,"yt-history-will-navigate",[d])).next().value||_.ZI(this.dispatchElement,"yt-history-load",[d,M]))};
_.F.pushState=function(M,d){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var N=new _.WJ("history.pushState is not a function",this.getDebugString());_.qZ(N)}Mf.prototype.pushState.call(this,M,d)};
_.F.replaceState=function(M,d){if(!this.browserHistory.boundHistoryReplaceState){var N=new _.WJ("history.replaceState is not a function",this.getDebugString());_.qZ(N)}Mf.prototype.replaceState.call(this,M,d)};
_.F.saveAndPush=function(M,d,N,R,X){X=X===void 0?{}:X;N&&(N.csn=_.Ou());Mf.prototype.saveAndPush.call(this,M,d,N,R,X)};
_.F.getDebugString=function(){var M=[];this.initialized&&M.push("i");this.browserHistory.boundHistoryReplaceState&&M.push("bhr");this.browserHistory.boundHistoryPushState&&M.push("bhs");"replaceState"in this.browserHistory.debugInfo&&M.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&M.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&M.push("ei:"+String(this.entryIndex));return M.join(",")};
_.d1=function(M,d){M.init(!0);var N=M.browserHistory.getState();M.replaceState(N,UL(d))};
Bet.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Nf=new _.x5("DESKTOP_HISTORY_MANAGER_TOKEN");var kdJ=[10,20,30,40,50,60],Rm=function(){this.currentPartitionIndex=0},Teo=function(M){efC({mainAppWeb:_.oj(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},DtI=function(M){efC({mainAppWeb:_.oj(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},gfV=function(M){return M.currentPartitionIndex>=0&&M.currentPartitionIndex<kdJ.length?kdJ[M.currentPartitionIndex]:-1},Wmt=function(M){return M.currentPartitionIndex>0&&M.currentPartitionIndex-1<kdJ.length?kdJ[M.currentPartitionIndex-1]:-1};
Rm.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var M=Wmt(this);M>0&&DtI(M);M=gfV(this);M>0&&Teo(M);weJ(this)}};
var weJ=function(M){var d=gfV(M);if(d>0){var N=Wmt(M);N<0&&(N=0);M.intervalId=_.IQ.addJob(function(){var R=Wmt(M);R>0&&DtI(R);R=gfV(M);R>0&&Teo(R);weJ(M)},3,(d-N)*6E4);
M.currentPartitionIndex+=1}else M.currentPartitionIndex=-1};var peJ=function(){this.skipNextNavigation=!1},mtL=function(M,d,N){if(!d)return!1;
if(M.skipNextNavigation)return M.skipNextNavigation=!1;if(_.q(N,_.JQ))return!1;var R,X,A;if((R=_.q(N,_.F8))==null?0:(X=R.browseEndpointContextSupportedConfigs)==null?0:(A=X.browseEndpointContextMainConfig)==null?0:A.skipConfirmation)return!1;var l;return((l=_.q(d.commandMetadata,_.an))==null?void 0:l.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
peJ.prototype.showConfirmationDialog=function(M,d){this.navigateParams=d;this.customConfirmationCommand?_.h().resolve(_.xV).resolveCommand(this.customConfirmationCommand):(d={openPopupAction:{popup:{confirmDialogRenderer:{title:_.ep(_.le("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.ep(_.le("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.ep(_.le("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.ep(_.le("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.ch.getInstance().triggerAction("yt-open-popup-action",d,M))};
peJ.prototype.cancelPendingNavigation=function(){var M;((M=this.navigateParams)==null?void 0:M.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var hPz=function(){},qaJ=function(M,d,N,R,X,A,l){N=N===void 0?{}:N;
l=l===void 0?{}:l;var k=_.E9.instance,T,W=(T=_.q(d,_.JQ))==null?void 0:T.url;return W?rFZ(k,W,N,window.location.href,function(w,p){Q9o(M,w,p,!1,!0,N,A,R)},function(){return!1}):i5(k,d,N,window.location.href,Vp(d),function(w,p){Q9o(M,w,p,!1,!0,N,A,R)},X,l)},Q9o=function(M,d,N,R,X,A,l,k){if(!M.JSC$12179_chunkHandler)if(N.page==="watch")if(X||R){if(_.Q("kevlar_continue_playback_without_player_response")){var T;
var W=(T=_.q(k,_.nL))==null?void 0:T.videoId}M.JSC$12179_chunkHandler=new Xse(_.nO,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:W},tempData:A},l)}else M.JSC$12179_chunkHandler=new ElC(_.nO);else N.page==="shorts"&&X&&!R?M.JSC$12179_chunkHandler=new RCJ(_.nO,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:A},l):M.JSC$12179_chunkHandler=new M1o(l);M.JSC$12179_chunkHandler.processChunk({endpoint:d,data:N});return M.JSC$12179_chunkHandler.aj.promise},
I8z=function(M,d,N,R,X){(N=_.HdL(N))&&Q9o(M,d,N,!1,!0,R,void 0,X)};var vfg=function(){this.pendingNavigationPromise=null};
_.F=vfg.prototype;_.F.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.F.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.F.addEventListener=function(){throw Error("zh");};
_.F.dispatchEvent=function(){throw Error("zh");};
_.F.removeEventListener=function(){throw Error("zh");};var OiL=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],X1=function(){_.mk.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];j9I(this)};
_.v(X1,_.mk);X1.prototype.verifyUser=function(){var M=j9I(this),d=M.logout;if(!M.sessionChange)return!0;this.dispatchEvent("ytsessionchange");d&&this.dispatchEvent("ytuserinvalid");return!1};
var j9I=function(M){var d=OiL.map(function(X){var A;return(A=_.BJ.get(X))!=null?A:""}),N=d.some(function(X,A){return M.sessionCookies&&M.sessionCookies[A]!==""&&X===""}),R=d.some(function(X,A){return M.sessionCookies&&M.sessionCookies[A]!==X});
M.sessionCookies=d;return{logout:N,sessionChange:R}};
X1.prototype.clearTimeout=function(){this.scheduledJobId&&(_.IQ.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var zbZ=new _.x5("POSTMESSAGE_TUNNEL_TOKEN");var Jvj=["/parent_tools","/file_download","/artist_roster"],HP6=[C2m,xpV,YSo,EiV,ZZ3,uiz,MJe,deL];var s9I=new _.x5("APP_ROOT");var F1=new _.x5("NAVIGATION_CONFIRMATION_SERVICE");var Plo="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),oft=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Ah=function(M,d){this.pendingNavigationPromise=null;this.JSC$12197_clientRoot=M;this.historyManager=d;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new hPz;this.debugString=M.is;M={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.S5(_.ch.getInstance(),M,this.JSC$12197_clientRoot)},cDV,Sad,zPJ,biJ,JDJ;
_.v(Ah,vfg);Ah.prototype.reload=function(){_.Ij(window.location.href)};
var foC=function(M){M.currentEndpoint&&_.q(M.currentEndpoint,_.$B)?M.reload():M.currentEndpoint&&M.navigate(M.currentEndpoint,!0,void 0,{disableCache:!0})};
Ah.prototype.navigate=function(M,d,N,R,X,A,l,k){d=d===void 0?!1:d;N=N===void 0?{}:N;R=R===void 0?{}:R;var T=_.h().resolve(F1),W;if(!l&&mtL(T,(W=this.currentEndpoint)!=null?W:void 0,M))return T.showConfirmationDialog(this.JSC$12197_clientRoot.parentElement,{endpoint:M,reload:d,params:N,tempData:R,requestType:X,createScreenConfig:A}),!1;var w=_.K4();_.ym(w,"eocs")||w.parkOrScheduleJob(function(){w.processSignal("eocs")},10,"eor");
l=Vp(M);T=R.autonav==="1";W=_.Ou();X1.instance||(X1.instance=new X1);var p=X1.instance.verifyUser(),m;if(_.Q("enable_dark_theme_only_on_shorts")){var I=document.documentElement.hasAttribute("dark"),O=_.OO(!0)==="USER_INTERFACE_THEME_DARK";if(l==="shorts"){if(!I)if(_.Q("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var y;_.Ij((y=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:y.url,void 0,void 0,window.top)}}else{var c;_.Ij(_.fF((c=_.q(M==null?
void 0:M.commandMetadata,_.an))==null?void 0:c.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.Q("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!I){var e;_.Ij(_.fF((e=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:e.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(O!==I){var t;_.Ij(_.fF((t=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:t.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(l==="watch"){if(rDV(_.h().resolve(_.et),
M)&&(p||_.Q("fix_miniplayer_navigation_killswitch")))return!1;_.Q("block_all_player_prefetch_requests")||(m=n1V(_.FU(_.Ml),M,T))}else{var C,U=(C=_.q(this.currentEndpoint,_.nL))==null?void 0:C.videoId;U&&_.mT.getInstance().then(function(tL){tL&&tL.set("yt-miniplayer-shown-video-id",U)})}m&&(N.frags=m.missingFragments_.join(","));
y=null;var Fi;c=(Fi=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:Fi.ignoreNavigation;if(!c)if(_.Q("kevlar_command_url")){var Y;y=(Y=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:Y.url}else y=_.epj(M,N);if(y&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&y==this.lastNavigationUrl)return _.qi({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.gz(on(),"CANCELLED")}y&&(this.lastNavigationUrl=y);Dh2();_.oJ("IS_HOMEPAGE_COLD",
!1);_.oJ("IS_RESULTS_PAGE_COLD",!1);_.oJ("IS_WATCH_PAGE_COLD",!1);M.loggingUrls&&M.loggingUrls.forEach(function(tL){tL.baseUrl&&_.Jk(tL.baseUrl)});
_.LBr(M,A?A.layer:0)&&_.Q("kevlar_flush_logs_on_away_navigation")&&_.Qc();if(nA2(M))return!1;OzC(l,X);if(!y)return c||_.vh(new _.WJ("Can't construct url for endpoint",M)),_.gz(on(),"FAILURE"),!1;_.yvA();Fi=M&&_.q(M,_.F8)&&_.q(M,_.F8).browseId.startsWith("UC");N=(Y=_.Q("enable_dark_theme_only_on_shorts")&&l==="shorts"?!1:_.j2()&&document.documentElement.hasAttribute("dark")!==_.vN())?{themeRefresh:1}:{};Y&&!_.Ts()&&_.OO()==="USER_INTERFACE_THEME_DARK"&&(N.theme="dark");Fi=Y||Kmm(y)&&!Fi&&!_.Q("kevlar_disable_url_allowlist");
p||(Fi=!0);if(Fi||_.rK("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var $i;var vj=($i=window.top)==null?void 0:$i.location.href}catch(tL){var Pj;vj=(Pj=tL)==null?void 0:Pj.message}_.vh(new _.WJ("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:vj}))}M=_.Q("kevlar_redirect_on_window_killswitch")?window.top:window;qX(y);_.Ij(_.fF(y,N),void 0,void 0,M);_.gz(on(),"ABORTED");return!1}_.Q("kevlar_early_popup_close")&&_.ZI(this.JSC$12197_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12179_chunkHandler=void 0;var sS;vj=Vp((sS=this.currentEndpoint)!=null?sS:void 0);(sS=l==="shorts"&&vj==="shorts")||_.gkZ();_.JA(NYi)("nr",void 0);T&&_.qi({webInfo:{navigationReason:"an"}});M.clickTrackingParams&&(R.itct=M.clickTrackingParams,R.csn=W);m1r(R);R.endpoint=JSON.stringify(M);_.Q("enable_unknown_lact_fix_on_html5")&&(_.h().resolve(_.gT),R.lact=_.aQ());_.wF.isEmpty(R)||_.tX(y,R);!_.Q("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(A=Object.assign({},{layer:0},A,{parentLayer:3}));this.pendingNavigationPromise=A=qaJ(this.pageFetcher,M,R,this.currentEndpoint,this.JSC$12197_isNetworkPromiseStale.bind(this),A,k);A=A.then(this.handleNavigateSuccess.bind(this,A,M,m,R),this.handleNavigateFail.bind(this,A,M));_.$O().navigationFinishPromise=A;d={endpoint:M,pageType:l,url:UL(y),reload:!!d,noProgressBar:_.Q("web_disable_page_navigation_progress")||sS};X&&(d.type=X);this.fireEvent("yt-navigate-start",d);m&&
I8z(this.pageFetcher,M,m,R,this.currentEndpoint);return!0};
Ah.prototype.JSC$12197_isNetworkPromiseStale=function(M){return M!=this.pendingNavigationPromise};
var yDg=function(M,d,N,R,X){var A=Vp(d);d={endpoint:d,pageType:A};X&&(d.errorMessage=X);_.vh(N);d.navigationDoneMs=_.v1("nd");d.navigationErrorReason=R;M.fireEvent("yt-navigate-error",d)};
Ah.prototype.handleNavigateFail=function(M,d,N){var R=void 0;N instanceof _.JX&&(R=N,zpL(N));if(this.JSC$12197_isNetworkPromiseStale(M))return _.cl(R);_.gz(on(),"FAILURE");yDg(this,d,N,"101");return _.cl(N)};
Ah.prototype.handleNavigateSuccess=function(M,d,N,R,X){if(this.JSC$12197_isNetworkPromiseStale(M))return _.RD();this.pendingNavigationPromise=null;if(!X)return d=new _.WJ("Missing data in response for navigation endpoint",d),_.cl(d);if(X.reload)return window.location.reload(!0),_.RD();N&&(M={},_.wF.extend(M,_.HdL(N),X),X=M);var A,l;N=(A=X)==null?void 0:(l=A.timing)==null?void 0:l.responseStart;N!=null&&_.v1("srt",N);_.v1("pdc");var k,T;A=(k=X)==null?void 0:(T=k.timing)==null?void 0:T.info;A!=null&&
(k=_.JA(_.A42)(A),_.qi(k));_.gz(on(),"SUCCESS");JDJ(this,d,X,1,R);return _.RD()};
var Kmm=function(M){var d=M;_.Q("kevlar_no_redirect_to_classic_2_ks")||(d=(new _.iX(M)).getPath());if(d==="/"||d==="/red")return!1;var N=!0;Plo.forEach(function(R){M.indexOf(R)===0&&(N=!1)});
oft.forEach(function(R){var X=R.url;_.Q(R.expFlag)&&M.indexOf(X)===0&&(N=!1)});
return N};
Ah.prototype.publishPageData=function(M){this.fireEvent("yt-page-data-fetched",{pageData:M})};
cDV=function(M,d,N,R,X,A){var l=null;d.page!=="watch"||R?d.filler||_.ZI(M.JSC$12197_clientRoot,"yt-stop-old-player",[d]):l=Q9o(M.pageFetcher,X,d,N,!1,A,void 0,M.currentEndpoint);if(l)return l.then(M.publishPageData.bind(M,d));M.publishPageData(d);return _.RD()};
Sad=function(M,d,N){var R=null;if(!N)return R=new _.WJ("Empty data",M.debugString,d);var X=N.response;if(!X)return R;var A={endpointType:Vp(d)||"unknown"};X.responseContext?(X=X.responseContext.errors)&&(R=new _.WJ("Errors in response context",M.debugString,d,X,A)):R=X.error||X.errorMetadata?new _.WJ("Errors in response",M.debugString,d,X.error,X.errorMetadata,A):new _.WJ("responseContext missing",M.debugString,d,Object.keys(X).sort().join(","),A);var l,k,T,W;if(M=N==null?void 0:(l=N.response)==null?
void 0:(k=l.responseContext)==null?void 0:(T=k.webResponseContextExtensionData)==null?void 0:(W=T.webResponseContextDebugData)==null?void 0:W.debugErrorMessages)for(l=0;l<M.length;l++);return R};
zPJ=function(M){var d,N,R,X;return M==null?void 0:(d=M.response)==null?void 0:(N=d.responseContext)==null?void 0:(R=N.errors)==null?void 0:(X=R.error)==null?void 0:X["0"]};
biJ=function(M,d){var N;if(N=d.url&&!d.url.startsWith("/clip"))N=d.url,N=!_.Q("webfe_parse_debug_param_in_resolveurl_service")&&M.searchDebugUrlMatcher.test(N)||nCS(N)?!0:!1;if(N)nCS(d.url)&&_.is(window.location.href).themeRefresh?(d=_.GD(d.url,"themeRefresh"),_.d1(M.historyManager,d)):d.url&&!P4Z(d.url)&&_.d1(M.historyManager,d.url);else if(d.endpoint){var R,X,A;(N=(R=d.endpoint)==null?void 0:(X=R.commandMetadata)==null?void 0:(A=X.webCommandMetadata)==null?void 0:A.url)&&!P4Z(N)&&_.d1(M.historyManager,
N);N&&d.url&&N!=d.url&&!d.url.match("playnext=1")&&new _.WJ("Response url mismatch in response data",M.debugString,N,d.url)}};
_.ePe=function(M,d,N,R,X,A,l,k){A=A===void 0?!1:A;var T=_.h().resolve(F1),W;if(!k&&mtL(T,(W=M.currentEndpoint)!=null?W:void 0,d))return T.showConfirmationDialog(M.JSC$12197_clientRoot.parentElement,{endpoint:d,data:N,navigationType:R,tempData:X,isMiniplayer:A,isForwardHistoryNavigation:l==null?void 0:l.forward}),_.RD();M.pageFetcher.JSC$12179_chunkHandler=void 0;return JDJ(M,d,N,R,X,A)};
JDJ=function(M,d,N,R,X,A){A=A===void 0?!1:A;M.isMiniplayerExpansion=A;var l=R===2;M.currentEndpoint=d;M.numNavigations++;M.numNavigations&&(F46.navigationCount=M.numNavigations);_.oJ("NUM_NAV",M.numNavigations);var k=Sad(M,d,N);if(k)return yDg(M,d,k,"102",zPJ(N)),_.cl(k);var T,W,w,p;k=N.rootVe||(N==null?void 0:(T=N.response)==null?void 0:(W=T.responseContext)==null?void 0:(w=W.webResponseContextExtensionData)==null?void 0:(p=w.ytConfigData)==null?void 0:p.rootVisualElementType);!l&&N&&biJ(M,N);var m,
I;T=N==null?void 0:(m=N.response)==null?void 0:(I=m.responseContext)==null?void 0:I.maxAgeSeconds;if(!l&&!isNaN(T)){var O;_.Q("kevlar_use_response_ttl_to_invalidate_cache")?O=(0,_.Gs)()+1E3*T:_.Q("kevlar_always_invalidate_cache")&&(O=0);isNaN(O)||(N.expirationTime=O)}_.Q("html5_enable_ssap_entity_id")&&l&&N.playerResponse&&(N.playerResponse.cacheMetadata={isCacheHit:!0});_.FU(_.Ml).prefetchCache_.clear();l||N.page!=="watch"||N.type!=="reduced"&&R!==1?R=cDV(M,N,l,!!A,d,X):(M.publishPageData(N),R=_.RD());
X=R.then(function(){var y=Vp(d);y={endpoint:d,pageType:y,fromHistory:l,response:N};y.navigationDoneMs=_.v1("nd");M.fireEvent("yt-navigate-finish",y)});
N.csn&&k&&N.clientSideGrafts&&R.then(M.attachClientSideGrafts.bind(M,N,_.vl()));return X};
_.F=Ah.prototype;_.F.attachClientSideGrafts=function(M,d){M.clientSideGrafts&&d&&M.clientSideGrafts.forEach(function(N){if(d&&N){var R=_.At(N);_.Q("combine_ve_grafts")?_.Nx().graftServerVe(N,d):_.c1(M.csn,d,R)}})};
_.F.handleSignalActionHistoryBack=function(){window.history.back()};
_.F.handleSignalActionCloseWindow=function(){window.close()};
_.F.handleSignalActionReloadPage=function(){this.reload()};
_.F.handleSignalActionSoftReloadPage=function(){foC(this)};
_.F.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.F.fireEvent=function(M,d){M=new CustomEvent(M,{bubbles:!0,cancelable:!1,composed:!0,detail:d});this.dispatchEvent(M)};
_.F.addEventListener=function(M,d){this.JSC$12197_clientRoot.addEventListener(M,d)};
_.F.dispatchEvent=function(M){return this.JSC$12197_clientRoot.dispatchEvent(M)};
_.F.removeEventListener=function(M,d){this.JSC$12197_clientRoot.removeEventListener(M,d)};
Ah[CU]=[s9I,_.Nf];_.nXN=new gQ("browse","h8y2qb");_.i_6=new gQ("search","JzFVk");_.f52=new gQ("shorts","xwEKAe");_.LVi=new gQ("watchFixie","nmfa2d");_.tfp=new gQ("watchFlexy","CF909");_.GEi=new gQ("watchGrid","Tm0L3c");_.a5Z=new gQ("watchLearningJourney","L3n37");var HiV;var V7=function(){return _.n.apply(this,arguments)||this};
_.v(V7,_.n);_.Hm.Object.defineProperties(V7,{template:{configurable:!0,enumerable:!0,get:function(){if(HiV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);HiV=M}M=HiV;return M}}});
_.G([_.S(HPo.YtPlayerBehavior),_.a("design:type",Object)],V7.prototype,"ytPlayerBehavior",void 0);V7=_.G([_.f({is:"ytd-player"})],V7);var nfL;var iiL;var f8I;var l1=function(){var M=_.n.apply(this,arguments)||this;M.forceModernIconButton=!1;M.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return M};
_.v(l1,_.n);l1.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]]"}}}}}};
l1.prototype.handleAccountLinkingStateChangedCommand=function(M){if(M=_.q(M,BGd)){var d,N=(d=this.data)==null?void 0:d.providerKey;d=M.providerKey;N&&d&&N.id===d.id&&N.subject===d.subject&&(M=M.linked,M!==void 0&&(this.set("data.linked",M),this.notifyPath("data.linked"),_.Q("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(M)))}};
l1.prototype.setPlayerAccountLinkState=function(M){var d=new QBZ;hlL(d,qwZ(new IJr,M));var N=_.nO();N&&N.getPlayerPromise().then(function(R){R.setAccountLinkState(_.UT(d.JSC$9958_serializeBinary(),4));R.updateAccountLinkingConfig(M)})};
l1.prototype.handleShowAccountLinkDialog=function(){var M=this.get("button.buttonRenderer.command");M&&_.FP([M],this.hostElement)};
_.Hm.Object.defineProperties(l1.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}}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.G([_.S([_.tK.YtActionHandlerBehavior]),_.a("design:type",Object)],l1.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],l1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],l1.prototype,"overrides",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],l1.prototype,"forceModernIconButton",void 0);_.G([_.H({value:"bottom"}),_.a("design:type",String)],l1.prototype,"buttonTooltipPosition",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],l1.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],l1.prototype,"disableTextTransform",void 0);
_.G([_.z("data","data.linked","data.isWarning"),_.a("design:type",Object),_.a("design:paramtypes",[])],l1.prototype,"button",null);l1=_.G([_.f({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],l1);
_.L(l1,"ytd-account-link-button-renderer",function(){if(f8I!==void 0)return f8I;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return f8I=M},{mode:1});var Lmd;var tRo=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],$2=function(){return _.n.apply(this,arguments)||this};
_.v($2,_.n);$2.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
$2.prototype.updateButtonActiveState=function(){var M=this,d=!!tRo.find(function(N){return M.currentState===N});
this.button&&(this.button.isPressed=d)};
_.Hm.Object.defineProperties($2.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.playlistLoopStateEntity)==null?void 0:M.state)||((d=this.data)==null?void 0:d.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=void 0,d;if(this.currentState&&((d=this.data)==null?0:d.states)){d=_.V(this.data.states);for(var N=d.next();!N.done;N=d.next()){N=_.q(N.value,_.rY3);var R=void 0;if(((R=N)==null?void 0:R.state)===this.currentState){M=N;break}}}return M}}});
$2.prototype.updateButtonActiveState=$2.prototype.updateButtonActiveState;_.G([_.S(_.Op),_.a("design:type",Object)],$2.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.C4S}),_.a("design:type",Object)],$2.prototype,"playlistLoopStateEntity",void 0);_.G([_.H(),_.a("design:type",Object)],$2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],$2.prototype,"forceIconOnly",void 0);_.G([_.Z3("ytd-button-renderer"),_.a("design:type",_.e$)],$2.prototype,"button",void 0);
_.G([_.z("data","playlistLoopStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],$2.prototype,"currentState",null);_.G([_.xB("currentButtonStateRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$2.prototype,"updateButtonActiveState",null);_.G([_.z("currentState"),_.a("design:type",Object),_.a("design:paramtypes",[])],$2.prototype,"currentButtonStateRenderer",null);
$2=_.G([_.f({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],$2);
_.L($2,"ytd-playlist-loop-button-renderer",function(){if(Lmd!==void 0)return Lmd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Lmd=M},
{mode:1});var GdV;var a8d=_.le("DOWNLOAD",{},"Download"),Utd=_.le("DOWNLOADING",{},"Downloading"),u9J=_.le("DOWNLOADED",{},"Downloaded"),Clm=_.le("RETRY",{},"Retry"),Bc=function(){var M=_.n.apply(this,arguments)||this;M.forceIconButton=!1;M.forceIconOnly=!1;M.overrides=!1;M.buttonTooltipPosition=!1;M.styleActionButton=!1;M.disableTextTransform=!1;M.downloadProgress=0;M.isDownloadComplete=!1;M.isHidden=!0;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return M};
_.v(Bc,_.n);_.F=Bc.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.dataChanged=function(){var M;(M=this.data)!=null&&M.text||(M=_.jp(_.iY().getState(),this.videoId),this.updateButtonState(M))};
_.F.computeVideoId=function(M){return M};
_.F.showHideButton=function(){this.updateButtonVisibility()};
_.F.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.F.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.F.updateButtonState=function(M){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Utd||!_.TL(M))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=a8d;var d="OFFLINE_DOWNLOAD";var N="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":M=Clm;d="OFFLINE_DOWNLOAD";N="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":M=u9J;d="OFFLINE_PIN";N="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":M=
Utd;d="OFFLINE_DOWNLOADING_ZERO";N="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":M=Clm;d="OFFLINE_DOWNLOAD";N="ACTION_RETRY";break;default:M=a8d,d="OFFLINE_DOWNLOAD",N="ACTION_ADD"}this.isVideoDeletedByUser&&(M=a8d,d="OFFLINE_DOWNLOAD",N="ACTION_ADD");var R=Object.assign({},this.data);R.text=_.ep(M);R.tooltip=M;R.icon={iconType:d};R.size="SIZE_DEFAULT";R.style="STYLE_DEFAULT";_.q(R.command,_.NH)&&(_.q(R.command,_.NH).action=N);this.set("data",R)}};
_.F.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?M="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var d;M!==((d=this.data.icon)==null?void 0:d.iconType)&&(d=Object.assign({},this.data),d.text=_.ep(Utd),d.tooltip=Utd,d.icon={iconType:M},_.q(d.command,_.NH)&&(_.q(d.command,_.NH).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",d))}};
Bc.prototype.updateProgress=Bc.prototype.updateProgress;Bc.prototype.onTransferStateChanged=Bc.prototype.onTransferStateChanged;Bc.prototype.showHideButton=Bc.prototype.showHideButton;Bc.prototype.dataChanged=Bc.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"forceIconButton",void 0);
_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"forceIconOnly",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"overrides",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"buttonTooltipPosition",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"styleActionButton",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"disableTextTransform",void 0);
_.G([_.H({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.a("design:type",String)],Bc.prototype,"videoId",void 0);_.G([_.H(),_.a("design:type",Object)],Bc.prototype,"data",void 0);_.G([_.H({selector:PD,selectorArgs:["videoId"]}),_.a("design:type",Object)],Bc.prototype,"downloadProgress",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"isDownloadComplete",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bc.prototype,"isHidden",void 0);_.G([_.H({selector:_.jp,selectorArgs:["videoId"]}),_.a("design:type",String)],Bc.prototype,"transferState",void 0);_.G([_.H({selector:_.C86,selectorArgs:["videoId"]}),_.a("design:type",Object)],Bc.prototype,"isVideoDeletedByUser",void 0);_.G([_.H({selector:tHi,selectorArgs:["videoId"]}),_.a("design:type",Object)],Bc.prototype,"offlineabilityState",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],Bc.prototype,"showTooltips",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Bc.prototype,"sendCommandWhenDisabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Bc.prototype,"disabled",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"dataChanged",null);
_.G([_.NS("offlineabilityState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"showHideButton",null);_.G([_.NS("transferState","isVideoDeletedByUser"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"onTransferStateChanged",null);_.G([_.NS("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bc.prototype,"updateProgress",null);
Bc=_.G([_.f({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Bc);
_.L(Bc,"ytd-download-button-renderer",function(){if(GdV!==void 0)return GdV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return GdV=M},{mode:2});var xtd;var YaJ,ZiL=function(){if(YaJ!==void 0)return YaJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return YaJ=M};var EfV=_.Q("web_button_rework")&&_.KF("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),MyL=_.ZR("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,k2=function(){var M=_.n.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.alignByText=!1;M.isShorts=!1;M.animatedText=!1;M.shouldAnimate=!1;M.JSC$12235_browserSupportsAnimation=_.Q("web_supports_animations_api");M.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};M.onTap=function(){var d;if((d=M.data)==null||!d.defaultNavigationEndpoint){var N;d=!((N=M.data)==null?0:N.isToggled);var R;if((R=M.data)==null||!R.preventAutoToggle){M.shouldAnimate=!1;M.disableTextUpdateJobId&&_.IQ.cancelJob(M.disableTextUpdateJobId);M.disableTextUpdateJobId=_.IQ.addLowPriorityJob(function(){M.disableTextUpdateJobId=void 0},MyL);
var X;M.set("data.isToggled",!((X=M.data)==null?0:X.isToggled));N=M.getInnertubeIcon();R={toggled:d,actions:{}};N&&(R.actions[N.toLowerCase()]=d);_.YP(M.hostElement,"yt-toggle-button",R)}}};
return M};
_.v(k2,_.n);_.F=k2.prototype;_.F.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.IQ.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.toggle=function(M){var d;this.set("data.isToggled",M!==void 0?M:!((d=this.data)==null?0:d.isToggled))};
_.F.handleUpdateToggleButtonStateCommand=function(M){if(this.data){M=_.q(M,Qee);var d,N,R,X=(d=this.data)==null?void 0:(N=d.toggleButtonSupportedData)==null?void 0:(R=N.toggleButtonIdData)==null?void 0:R.id;X&&M&&X===(M==null?void 0:M.buttonId)&&this.set("data.isToggled",M.toggled)}};
_.F.handleUpdateToggleButtonTextAction=function(M){if(this.data){M=_.q(M,Gqd);var d,N,R,X=(d=this.data)==null?void 0:(N=d.toggleButtonSupportedData)==null?void 0:(R=N.toggleButtonIdData)==null?void 0:R.id;X&&M&&X===(M==null?void 0:M.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=M.defaultNumericalValue,this.set("data.defaultText",M.defaultText),this.set("data.toggledText",M.toggledText),this.shouldAnimate=!1)}};
_.F.getInnertubeIcon=function(){var M=this.data;if(M){var d,N,R=((d=M.defaultIcon)==null?0:d.iconType)?(N=M.defaultIcon)==null?void 0:N.iconType:null,X,A;d=((X=M.toggledIcon)==null?0:X.iconType)?(A=M.toggledIcon)==null?void 0:A.iconType:R;return M.isToggled?d:R}};
_.F.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Hm.Object.defineProperties(k2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$12235_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var d=M.renderer;var N=M.element;var R=M.toggled;var X=M.onTapCallback;var A=M.commandClientArgs;var l=M.overrides;var k=M.forceIcon;var T=M.forceModernIconButton;var W=M.forceDisabled;var w=M.useAnimatedText;var p=M.animatedTextProps;M=EAN(d,R);k=!d.defaultIcon||!k&&d.defaultText?d.defaultIcon?"leading":void 0:T?"icon-only":"icon-only-40";k==="icon-only-40"&&(M.type="text");var m;T=Object;var I=T.assign,O;a:switch((O=
d.style)==null?void 0:O.styleType){case "STYLE_COMPACT_GRAY":O={size:"S"};break a;default:O={size:"M"}}var y=!!R;var c=(c=R&&d.toggledText||d.defaultText)?_.Wz(c):void 0;w?(w=_.HD(R&&d.toggledText||d.defaultText))&&p&&!isNaN(Number(p.numberValue))?(p.numberText=w,R&&(p.numberValue+=1),w=p):w=void 0:w=void 0;var e,t,C,U;var Fi=(p=((t=R?d.toggledAccessibilityData||((Fi=d.toggledText)==null?void 0:Fi.accessibility):d.accessibilityData||((e=d.defaultText)==null?void 0:e.accessibility))==null?void 0:(C=
t.accessibilityData)==null?void 0:C.label)||((U=d.accessibility)==null?void 0:U.label))?p:_.HD(R&&d.toggledText||d.defaultText);W=W===void 0?d.isDisabled:W;N=ZPq(d,R,X,N,A);R=YxZ(d,R);R!=null&&R.length?(R=_.qx({innertubeCommand:Ljr(R),forceNewState:!0}),R=IA(R)?R:void 0):R=void 0;d=I.call(T,{},M,O,{iconPosition:k},l,{focused:!1,toggled:y,toggleable:!0,formattedButtonText:c,animatedTextProps:w,accessibilityLabel:Fi,disabled:W,onTap:N,aTagConfig:R},wRZ((m=d.colorData)==null?void 0:m.basicColorPaletteData));
d.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(d.type="filled");return d}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.getInnertubeIcon();if(M)return _.C6(M)}}});
k2.prototype.resetAnimation=k2.prototype.resetAnimation;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],k2.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],k2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],k2.prototype,"isPressed",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"forceIconOnly",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"forceModernIconButton",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"alignByText",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"overrides",void 0);
_.G([_.H(),_.a("design:type",Boolean)],k2.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"isShorts",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"buttonTooltipPosition",void 0);_.G([_.H(),_.a("design:type",Object)],k2.prototype,"animatedText",void 0);_.G([_.H(),_.a("design:type",String)],k2.prototype,"textNumberValue",void 0);_.G([_.H({computed:"computeTooltip(data, data.isToggled)"}),_.a("design:type",Object)],k2.prototype,"tooltip",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],k2.prototype,"resetAnimation",null);_.G([_.z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.a("design:type",Object),_.a("design:paramtypes",[])],k2.prototype,"computedButtonShape",null);_.G([_.z("data.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],k2.prototype,"computedIcon",null);
k2=_.G([_.f({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],k2);EfV&&_.L(k2,"ytd-toggle-button-renderer",ZiL,{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var $tZ=[],BeA=!1;_.aR(DtN);var dDo,Nwz;dDo=_.SG(function(M){function d(W){var w;return _.B(function(p){if(p.nextAddress==1)return(w=!Nei(W,k())||!k().enabled)?p.jumpTo(2):_.D(p,VRq(),3);p.nextAddress!=2&&(w=p.yieldResult);if(w)return p.return();N();setTimeout(function(){l(!1)},1500);
_.Vy(p)})}
function N(){setTimeout(function(){l(!0);var W;(W=R.lottieEl)==null||W.goToAndPlay(0)},150)}
var R=_.EL(),X=_.V(_.d0(!1,void 0,"xffAp")),A=X.next().value,l=X.next().value,k=_.Jy(M.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.IJ(function(){var W,w;((W=M.settings)==null?void 0:(w=W.call(M))==null?void 0:w.uniqueId)==="this is not intended behavior"&&_.vh(new _.WJ("Smartimation Settings is undefined"))});
_.Wg(function(){k().experimentEnabled&&(k().enabled?RPL(d):(l(!1),Xeq(d)),_.mF(function(){Xeq(d)}))});
_.Wg(function(){k().timings.join("");k().experimentEnabled&&(FmA(k()),_.mF(function(){ADN(k())}))});
var T=_.Al(function(){return MRZ(R,k())},void 0,"d96jJc");
X={};return _.g("yt-smartimation",{class:_.xj(M.className,"smartimation",(X["smartimation--experiment-enabled"]=function(){return k().experimentEnabled},X["smartimation--active-border"]=A,X["smartimation--enable-masking"]=gfj(),X))},_.g(_.kV,{cond:function(){return k().experimentEnabled},
then:function(){return _.g("div",{class:"smartimation__border"},_.g(_.Yj,{className:"smartimation__border-gradient",data:T,animationName:function(){return T().animationConfig.name}}))}}),_.g("div",{class:"smartimation__content"},M.children))},"x");
_.EKN=_.Q("web_enable_sink_smartimations")?dDo:DtN;Nwz=_.Q("web_enable_sink_smartimations")?dDo:_.Ez(DtN);dDo.idomCompat=!0;_.Q("web_enable_sink_smartimations")?_.eC(Nwz,"yt-smartimation",{props:{className:_.cA,settings:_.cA}}):_.aA(_.EKN,"yt-smartimation",{propNames:["className","settings"]});var T4=function(){var M=_.n.apply(this,arguments)||this;M.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};M.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};M.shouldEnableSmartimation=!1;return M};
_.v(T4,_.n);T4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
T4.prototype.onDataChanged=function(){var M,d;this.shouldEnableSmartimation=(((M=this.data)==null?void 0:(d=M.timedAnimationData)==null?void 0:d.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
T4.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var M=_.q(this.data.likeButton,_.yP),d=_.q(this.data.dislikeButton,_.yP);return!!((M==null?0:M.isToggled)||(d==null?0:d.isToggled))};
T4.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]]"}}}}}};
_.Hm.Object.defineProperties(T4.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,d,N=((M=this.data)==null?void 0:(d=M.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"like-dislike",timings:N,enabled:this.shouldEnableSmartimation,experimentEnabled:N.length>0}}}});
T4.prototype.onDataChanged=T4.prototype.onDataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],T4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],T4.prototype,"likeButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],T4.prototype,"dislikeButtonOverride",void 0);
_.G([_.z("shouldEnableSmartimation"),_.a("design:type",Object),_.a("design:paramtypes",[])],T4.prototype,"smartimationSettings",null);_.G([_.xB("data"),_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],T4.prototype,"onDataChanged",null);T4=_.G([_.f({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],T4);
_.L(T4,"ytd-segmented-like-dislike-button-renderer",function(){if(xtd!==void 0)return xtd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return xtd=M},{mode:1});var RGJ;var XKd;(XKd=document.body)==null||XKd.setAttribute("rounded-container","");var FOg={};FOg.YtToggleButtonBehavior=[_.tK.YtActionHandlerBehavior,Rd.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var M=this.data.isToggled;if(!this.isModal_(M)){if(!this.data.preventAutoToggle){this.toggle();var d={toggled:this.data.isToggled,actions:{}};d.actions[this.buttonIcon]=this.data.isToggled;_.YP(this.hostElement,"yt-toggle-button",d)}d=this.data.defaultServiceEndpoint||null;var N=this.data.toggledServiceEndpoint||null;if(d&&N||d&&this.data.preventAutoToggle)M=M?N:d,d=this.disableCommandHandlerOverride,_.Q("killswitch_toggle_button_behavior_resolve_command")||d?_.dU(this.hostElement,
[M]):_.Zc(M,this.hostElement),_.YP(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:M})}},
stateChanged_:function(){var M=this.data;if(M){var d=M.isToggled;this._setEndpoint(this.computeEndpoint_(M));this._setServiceEndpoint(this.computeServiceEndpoint_(M));this._setButtonIcon(this.computeButtonIcon_(M,d));this._setButtonText(this.computeButtonText_(M,d));this._setButtonAccessibility(this.computeAccessibility_(M,d));this._setButtonTooltip(this.computeTooltip_(M,d));this._setButtonClass(this.computeButtonClass_(M,d));this._setIconPositionType(this.computeIconPositionType_(M));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=d):this.elements_.button.setAttribute("aria-pressed",d));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=d)}},
shouldSetIconActiveState_:function(){return _.Q("kevlar_system_icons")},
toggle:function(M){this.set("data.isToggled",M!==void 0?M:!this.data.isToggled);_.Q("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(M){if(M){var d,N;return!!((d=this.data)==null?0:(N=d.toggledServiceEndpoint)==null?0:N.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(M){return M&&M.defaultNavigationEndpoint||null},
computeButtonIcon_:function(M,d){var N=M&&M.defaultIcon?_.C6(M.defaultIcon.iconType):null;M=M&&M.toggledIcon?_.C6(M.toggledIcon.iconType):N;return d?M:N},
handleUpdateToggleButtonStateCommand_:function(M){M=M.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&this.toggle(M.toggled)},
computeButtonText_:function(M,d){return M?d&&M.toggledText||M.defaultText||null:null},
computeAccessibility_:function(M,d){return M?(d?this.get("toggledAccessibilityData.accessibilityData",M):this.get("accessibilityData.accessibilityData",M))||M.accessibility||null:null},
computeTooltip_:function(M,d){return M?d&&M.toggledTooltip||M.defaultTooltip||null:null},
computeButtonClass_:function(M,d){if(!M)return"";var N="",R=M.toggledStyle||M.style;if(d=d?R:M.style){d.styleType&&(d=d.styleType);try{N+=d.toLowerCase().replace(/_/g,"-")+" "}catch(X){_.OD(X,d,typeof d),_.vh(X)}}if(M=M.size){M.sizeType&&(M=M.sizeType);try{N+=M.toLowerCase().replace(/_/g,"-")+" "}catch(X){_.OD(X,M,typeof M),_.vh(X)}}return N.trim()},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeServiceEndpoint_:function(M){var d=M&&M.serviceEndpoint,N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return d?d:N&&M.command?M.command:null},
handleUpdateToggleButtonTextAction_:function(M){M=M.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&(this.set("data.defaultText",M.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",M.toggledText),this.notifyPath("data.toggledText"))}}];_.pO("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var AHt=_.Q("web_button_rework")&&_.KF("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),Dl=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.roundedContainer=!0;return M};
_.v(Dl,_.n);Dl.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Dl.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var M=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var d={toggled:!!this.data.isToggled,actions:{}};d.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var N,R;d.actions.playlistId=(N=this.data.defaultServiceEndpoint)==null?void 0:(R=N.playlistEditEndpoint)==null?void 0:R.playlistId;_.YP(this.hostElement,"yt-toggle-button",d)}(M=M?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(M)}};
Dl.prototype.onYtNavigate=function(M){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(d))};
_.Hm.Object.defineProperties(Dl,{template:{configurable:!0,enumerable:!0,get:function(){if(RGJ===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);RGJ=M}M=RGJ;return M}}});
Dl.prototype.onYtNavigate=Dl.prototype.onYtNavigate;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],Dl.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(FOg.YtToggleButtonBehavior),_.a("design:type",Object)],Dl.prototype,"ytToggleButtonBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Dl.prototype,"data",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Dl.prototype,"showTooltips",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dl.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dl.prototype,"roundedContainer",void 0);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Dl.prototype,"onYtNavigate",null);
Dl=_.G([_.f({is:"ytd-toggle-button-renderer",disableElementRegistration:AHt})],Dl);var VyJ;_.g1=new _.x5("PANEL_CONTROLLER_TOKEN");_.Wc=new _.x5("SHEET_CONTROLLER_TOKEN");_.w1=new _.x5("DIALOG_CONTROLLER_TOKEN");VyJ=new _.x5("DIALOG_CONTAINER_TOKEN");var vfZ=_.le("DOWNLOAD",{},"Download"),Oi2=_.le("DOWNLOADING",{},"Downloading"),j9N=_.le("DOWNLOADED",{},"Downloaded"),s9N=_.le("RETRY",{},"Retry");var lX3=_.SG(function(M){var d=SaZ,N=function(){return""},R=Kmv(M.data),X=yDZ(M.data),A=JDr(M.data),l=cDS(M.data);
d=function(){var k=M.data(),T=qar(k,R(),X(),A(),l()),W=!!k.videoId,w=T.text;return{title:W?w:void 0,tooltip:W?void 0:w,accessibilityText:w,onTap:T.onTap,iconName:T.iconType,style:k.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:T.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:k.buttonSize}};
N={};N=_.xj("ytDownloadButtonViewModelHost",(N.ytDownloadButtonViewModelIsHidden=function(){var k=M.data(),T=l();return k.playlistId||T()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||T()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},N));
return _.g("download-button-view-model",{class:N},_.g(_.o0,{data:d}))},"y");
lX3.idomCompat=!0;_.aR(ePp);_.aR(zPr);var BwI=_.SG(function(M){var d=M.backgroundLottieRef;var N=M.foregroundLottieRef;var R=M.children;var X=M.wrapperClass;var A=M.disableAnimation;M=function(){return(_.Q("web_animated_actions")||_.Q("web_animated_actions_v2"))&&!(A==null?0:A())};
return _.g("yt-animated-action",{class:_.xj("animated-action__container",X)},_.g("div",{class:"animated-action__content-with-background"},_.g(_.kV,{cond:M,then:function(){return _.g($Dm,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:d==null?void 0:d(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(HiS()?"dark":"light")+"_v5.json"}}}})}}),R),_.g(_.kV,{cond:M,
then:function(){return _.g($Dm,{lottiePlayerProps:function(){return{animationRef:N==null?void 0:N(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(HiS()?"dark":"light")+"_v4.json"}}}})}}))},"z");
BwI.idomCompat=!0;var WOZ=_.Q("web_enable_sink_animated_actions")?BwI:ePp,kvd=_.Q("web_enable_sink_animated_actions")?BwI:_.Ez(ePp),$Dm=_.SG(function(M){var d=M.wrapperClass;var N=M.lottieClass;var R=M.lottiePlayerProps;return _.g("div",{class:_.xj("animated-action__lottie",d),"aria-hidden":"true"},_.g(_.Yj,{className:N,data:R,animationName:function(){return R().animationConfig.name}}))},"A");var nf2={isOpen:!1};var f8N={isAllowed:!1};var tR6={errorMessage:"",title:"",privacy:"",isDisabled:!0};var a8i={isOpen:!1};var u9r={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Twe={response:void 0};var xtZ=function(M,d){M=M===void 0?Twe:M;switch(d.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},M,{response:d.payload});default:return M}};var DDV={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Yar=function(M,d){M=M===void 0?DDV:M;switch(d.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},M,{nextDisabled:d.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},M,{nextCommand:d.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},M,{footerSubmissionData:d.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},M,{isImpersonationValid:d.payload});default:return M}};var gKg={reportFormData:void 0,reportDetailsFormData:void 0};var Zi2=function(M,d){M=M===void 0?gKg:M;switch(d.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportFormData:d.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportDetailsFormData:d.payload});default:return M}};var WOd=void 0;_.Q("mweb_enable_redux_store_on_demand")||(WOd=new nh(EfS()));var gKZ=_.SG(function(M){M=_.cu(M,{themeOverride:void 0,animationRef:{}});var d=M.animatedIconType,N=M.active,R=M.themeOverride,X=M.animationRef;M=M.staticIconFn;var A=_.V(_.d0(void 0,void 0,"P5a72b")),l=A.next().value,k=A.next().value,T=function(){a:{var c=d();var e=R==null?void 0:R();var t;e=(e==null?void 0:e.useDarkTheme)||((t=_.h().resolve(_.CF(_.Pz)))==null?void 0:t());switch(c){case "LIKE":b:{WOd||(WOd=new nh(EfS()));if((c=Ygq(WOd.getState()))&&c.animationStyle)switch(c.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":c=
dD6({name:e?"valentines25_heart_dark":"valentines25_heart_light",path:e?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":c=dD6({name:e?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:e?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":c=
dD6({name:e?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:e?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}c=void 0}if(c){e=c;break a}e="animated_like_icon_"+(e?"dark_v4":"light_v4");e={lottiePlayerProps:{animationConfig:{name:e,path:My2("animated_like_icon",e),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":e={lottiePlayerProps:{animationConfig:{name:e?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(e?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}e=void 0}return e},W=function(){var c,e;
return(e=(c=T())==null?void 0:c.lottiePlayerProps.animationConfig.name)!=null?e:""},w=function(){if(T()){var c=T().lottiePlayerProps.animationConfig.path;
return Cq.get(c)||l()}};
A=_.V(_.d0(!1,void 0,"h6xR3c"));var p=A.next().value;A=A.next().value;var m=RGr(A),I=function(){var c=T(),e,t,C;return(C=c==null?void 0:(e=c.lottiePlayerProps.animationConfig)==null?void 0:(t=e.rendererSettings)==null?void 0:t.className)!=null?C:""},O=void 0,y=void 0;
_.Wg(function(){var c=T(),e=W(),t=w(),C=p(),U=N();if(c&&(y!==e&&(y=e,O=U,e=X(),m.animationConfig=c.lottiePlayerProps.animationConfig,m.animationRef=e,t&&(m.animationConfig.animationData=t,m.animationConfig.path=void 0),e=c.lottiePlayerProps.animationConfig.path,!Cq.get(e)&&c.lazyLoad&&e&&Nwq(e,k)),!(C||c.lazyLoad&&!t))){if(t=!X().lottieEl)U?(C=c.totalFrames,m.animationConfig.initialSegment=[C-1,C]):m.animationConfig.initialSegment=void 0;if(O!==U&&!t)if(t=X(),U){var Fi;(Fi=t.lottieEl)==null||Fi.playSegments([0,
c.totalFrames],!0)}else{var Y;(Y=t.lottieEl)==null||Y.playSegments([0,1],!0)}O=U}});
return _.g("animated-icon",{class:"ytAnimatedIconHost"},_.g(_.kV,{cond:function(){var c,e;return!((c=T())==null||!c.lottiePlayerProps.animationConfig.path||((e=T())==null?0:e.lazyLoad)&&!w()||p())},
then:function(){return _.g(_.Yj,{data:m,animationName:W,className:I,animationRef:X})},
else:M}))},"B");_.aR(wKq);var wKz,mDL;wKz=_.SG(function(M){var d=_.e5(),N=_.e5(),R=_.e5(),X=_.EL(),A=_.EL(),l=_.EL(),k=_.FT(_.xF,function(){return M.data().stateEntityStoreKey}),T=_.FT(toj,function(){var Ne,Vz;
return(Vz=(Ne=M.data().notificationStateEntityStoreKeys)==null?void 0:Ne.subsNotificationStateKey)!=null?Vz:""}),W=function(){return!M.data().enableSubscribeButtonPostClickAnimation},w=_.V(_.d0(0,void 0,"LZz2ld")),p=w.next().value,m=w.next().value;
w=_.V(_.d0(0,void 0,"DTJZzd"));var I=w.next().value,O=w.next().value;w=_.V(_.d0(!1,void 0,"vYdJ9e"));var y=w.next().value,c=w.next().value;w=_.V(_.d0(!1,void 0,"HsSmhb"));var e=w.next().value,t=w.next().value;w=_.V(_.d0(!1,void 0,"St29Yd"));var C=w.next().value,U=w.next().value,Fi;w=_.V(_.d0(!1,void 0,"p20o0d"));var Y=w.next().value,$i=w.next().value,vj=function(){t(!0);_.kM(_.IQ,function(){t(!1)},1500)};
_.Wg(function(){var Ne=e();MF(function(){Ne&&!W()&&k()&&IXv(X,A,l)})});
_.Wg(function(){var Ne=k();MF(function(){if(!W()&&Ne){var Vz;((Vz=M.animateWidth)==null?0:Vz.call(M))&&qJi(d.value,!!Ne.subscribed,p(),I());var oI,$d;((oI=Fi)==null?0:oI.subscribed)||!Ne.subscribed||Ne.key!==(($d=Fi)==null?void 0:$d.key)||vj();Fi=Ne}})});
w=_.Al(function(){var Ne,Vz,oI,$d=M.data(),CJ=!((Ne=k())==null||!Ne.subscribed);Ne=!((Vz=M.isOverlay)==null||!Vz.call(M));Vz=y()?d.value:void 0;var xd=(oI=T())==null?void 0:oI.state;oI=Y();QES($d,xd);return Ao({model:$d,subscribed:CJ,isOverlay:Ne,element:Vz,notificationState:xd,disableTextEllipsis:!0,focused:oI})},void 0,"xCVIse");
var Pj=function(){var Ne;if(!W()&&((Ne=M.animateWidth)==null?0:Ne.call(M))&&(N==null?0:N.value)&&(R==null?0:R.value)&&!C()){Ne=k();var Vz=_.V((Ne==null?0:Ne.subscribed)?[N,R]:[R,N]),oI=Vz.next().value;Vz=Vz.next().value;oI=Math.ceil(oI.value.getBoundingClientRect().width);Vz=Math.ceil(Vz.value.getBoundingClientRect().width);m(oI);O(Vz);qJi(d.value,!(Ne==null||!Ne.subscribed),oI,Vz);U(!0)}},sS=_.dT(function(Ne){Pj();
var Vz=k();Vz&&(Ne.detail.endpoint.subscribeEndpoint||Ne.detail.endpoint.unsubscribeEndpoint)&&mDi(d.value,!Vz.subscribed,Vz)}),tL=function(){var Ne=_.h().resolve(_.CF(_.TH));
Ne&&$i(Ne.isKeyBoardInUse())},b2=function(){$i(!1)};
_.bv("yt-player-subscribe",function(Ne){var Vz=k();Vz&&Ne===M.data().channelId&&mDi(d.value,!0,Vz)});
_.bv("yt-player-unsubscribe",function(Ne){var Vz=k();Vz&&Ne===M.data().channelId&&mDi(d.value,!1,Vz)});
_.bv("yt-update-subscribe-button-action",function(Ne){Ne=_.q(Ne,DDj);var Vz=k();Vz&&Ne&&Ne.channelId===M.data().channelId&&mDi(d.value,!!Ne.subscribed,Vz)});
_.IJ(function(){d.value&&(d.value.addEventListener("focusin",tL),d.value.addEventListener("focusout",b2));var Ne=_.gL(_.IQ,function(){Pj()});
c(!0);_.mF(function(){_.IQ.cancelJob(Ne);d.value&&(d.value.removeEventListener("focusin",tL),d.value.removeEventListener("focusout",b2))})});
var Hj=function(){var Ne,Vz,oI;if(oI=!((Ne=k())==null||!Ne.subscribed))Ne=!!M.data().disableNotificationBell,oI=(Vz=T())==null?void 0:Vz.state,oI=!Ne&&!!oI;return oI},LZ=function(){var Ne;
return!((Ne=k())==null?0:Ne.subscribed)},w3=function(){var Ne,Vz;
if(Vz=LZ()){Vz=!!M.data().disableNotificationBell;var oI=(Ne=T())==null?void 0:Ne.state;Vz=!Vz&&!!oI}return Vz},XY={},jJ={};
return _.g("yt-subscribe-button-view-model",{class:_.xj("yt-subscribe-button-view-model-wiz",(XY["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Ne,Vz;return!((Ne=k())==null||!Ne.subscribed)&&((Vz=M.animateWidth)==null?void 0:Vz.call(M))&&e()},XY["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Ne;
return!((Ne=k())==null?0:Ne.subscribed)&&M.data().hideWhenUnsubscribed},XY)),
el:d,"on:yt-service-request-sent":sS},_.g(kvd,{backgroundLottieRef:X,foregroundLottieRef:A,wrapperClass:_.xj("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(jJ["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Ne;return((Ne=M.animateWidth)==null?void 0:Ne.call(M))&&e()},jJ["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Ne;
return!((Ne=M.animateWidth)==null?0:Ne.call(M))},jJ)),
disableAnimation:W},_.g("div",{el:N,class:"yt-subscribe-button-view-model-wiz__container"},_.g(CX,{data:w,icon:function(){return _.g(_.kV,{cond:Hj,then:function(){var Ne=function(){var Vz;return pKZ((Vz=T())==null?void 0:Vz.state)};
return _.g(_.kV,{cond:function(){return W()||Ne()!=="NOTIFICATIONS_NONE"},
then:function(){return _.g(_.Fc,{icon:Ne})},
else:function(){return _.g(gKZ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:l})}})}})},
secondaryIconName:function(){return Hj()?"EXPAND":void 0}}))),_.g("div",{el:R,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.g(_.kV,{cond:function(){var Ne;return((Ne=M.animateWidth)==null?void 0:Ne.call(M))&&!W()&&!C()},
then:function(){return _.g(CX,{data:_.Al(function(){var Ne;return Ao({model:M.data(),subscribed:LZ(),isOverlay:!((Ne=M.isOverlay)==null||!Ne.call(M)),element:d.value,disableTextEllipsis:!0})},void 0,"dfYtSe"),
iconName:function(){var Ne;return w3()?pKZ((Ne=T())==null?void 0:Ne.state):void 0},
secondaryIconName:function(){return w3()?"EXPAND":void 0}})}})))},"C");
_.pK3=_.Q("web_enable_sink_yt_subscribe_button_view_model")?wKz:wKq;mDL=_.Q("web_enable_sink_yt_subscribe_button_view_model")?wKz:_.Ez(wKq);wKz.idomCompat=!0;var vK6=new _.x5("RENDERER_STAMPER_OPTIONS_TOKEN");var pX;_.w5=new EQd;pX=new Map;var nKp="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),fXi=["notificationTextRenderer","notificationMultiActionRenderer"],ilL="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
HlN=yHZ(function(M){return _.QJ(M==null?void 0:M.targetId)}).useUpdatableData;var eG2=0;_.ho.debugName="EjJbCe";var hGV=_.SG(function(M){var d=M.data;var N=_.FT(_.xF,function(){return d().subscriptionStateEntityKey});
return _.g(_.kV,{cond:function(){var R=d(),X=N();return!R.hideWhenUnsubscribed||(X==null?0:X.subscribed)?_.q(d().button,_.QM):void 0},
then:function(R){return _.g("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.g(_.o0,{data:R,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var Gvr=_.W5({buttonViewModel:_.o0,subscribeButtonViewModel:_.pK3,downloadButtonViewModel:lX3,toggleButtonViewModel:_.I0,subscribePlusButtonViewModel:hGV});_.aR(UDi);var QEV=_.SG(function(M){return _.g(_.ho,{data:function(){return M.actionRow().actions}},{buttonViewModel:function(d){var N=d.data;
return _.g(pW,{isRow:M.isRow,isIconOnlyButton:function(){return uki(N())},
useIntrinsicWidth:M.useIntrinsicWidth},_.g(_.o0,{data:N}))},
subscribeButtonViewModel:function(d){return _.g(pW,{isRow:M.isRow},_.g(mDL,{data:d.data,isOverlay:!1,animateWidth:function(){return!M.isRow()}}))},
downloadButtonViewModel:function(d){var N=d.data;return _.g(pW,{isRow:M.isRow,isIconOnlyButton:function(){return!!N().playlistId}},_.g(lX3,{data:N}))},
toggleButtonViewModel:function(d){var N=d.data;return _.g(pW,{isRow:M.isRow,isIconOnlyButton:function(){var R=N();return uki(_.q(R.isToggled?R.toggledButtonViewModel:R.defaultButtonViewModel,_.QM))}},_.g(_.I0,{data:N}))},
subscribePlusButtonViewModel:function(d){return _.g(pW,{isRow:M.isRow},_.g(hGV,{data:d.data}))}})},"E"),pW=_.SG(function(M){var d={};
return _.g("div",{class:_.xj("yt-flexible-actions-view-model-wiz__action",(d["yt-flexible-actions-view-model-wiz__action--row-action"]=M.isRow,d["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=M.useIntrinsicWidth,d["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,d["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=M.isIconOnlyButton,d))},M.children)},"F"),qJd=_.SG(function(M){var d=function(){var R;
return((R=M.layout)==null?void 0:R.call(M))===1},N={};
return _.g("yt-flexible-actions-view-model",{class:_.xj("yt-flexible-actions-view-model-wiz",M.className,(N["yt-flexible-actions-view-model-wiz--inline"]=function(){return!d()},N["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return M.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},N))},_.g(_.TN,{each:function(){return M.data().actionsRows||[]}},function(R){return _.g(_.kV,{cond:d,
then:function(){return _.g("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.g(QEV,{actionRow:R,isRow:d,useIntrinsicWidth:function(){return!!M.data().respectActionIntrinsicWidth}}))},
else:function(){return _.g(QEV,{actionRow:R,isRow:d})}})}))},"G"),IXm=_.Q("web_enable_sink_yt_flexible_actions_view_model")?qJd:UDi,mf=_.Q("web_enable_sink_yt_flexible_actions_view_model")?qJd:_.Ez(UDi);
qJd.idomCompat=!0;_.eC(mf,"yt-flexible-actions-view-model",{props:{data:_.cA,layout:_.cA,justifyContentOverride:_.cA,className:_.cA}});_.aR(CFj);var vKo,daZ;vKo=_.SG(function(M){var d=_.FT(QX,function(){var X;return(X=M.data().dislikeEntityKey)!=null?X:""}),N=_.Al(function(){var X=d();
return X?X.likeStatus==="DISLIKE":_.q(M.data().toggleButtonViewModel,_.qH).isToggled},void 0,"D8oIFb"),R=_.Al(function(){return Object.assign({},_.q(M.data().toggleButtonViewModel,_.qH),{isToggled:N()})},void 0,"shaCXe");
return _.g("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.g(_.I0,{data:R,buttonShapeOverrides:M.buttonShapeOverrideables,onToggle:function(X){var A=d();A&&X!==(A.likeStatus==="DISLIKE")&&A.key&&_.yE(_.v5("likeStatusEntity",A.key,{likeStatus:X?"DISLIKE":"INDIFFERENT",hadUserInteraction:X}))}}))},"H");
daZ=_.Q("web_enable_sink_dislike_button_view_model")?vKo:CFj;_.Old=_.Q("web_enable_sink_dislike_button_view_model")?vKo:_.Ez(CFj);vKo.idomCompat=!0;_.aR(YJ6);var jEg,MUp;jEg=_.SG(function(M){var d=_.Q("web_supports_animations_api"),N=SC(function(m){var I=W(),O,y=(I==null?void 0:(O=I.likeCountIfIndifferent)==null?void 0:O.content)!==m.numberText;if(k()||!y)return m;var c,e;return{numberText:(I==null?void 0:(c=I.likeCountIfIndifferent)==null?void 0:c.content)||"",numberValue:Number((e=I==null?void 0:I.likeCountIfIndifferentNumber)!=null?e:0),heightPx:36,shouldAnimate:!!I}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),R=SC(function(m){var I=W(),O,y=(I==null?void 0:(O=I.likeCountIfIndifferent)==null?void 0:O.content)!==m.numberText;if(k()||!y)return m;var c,e;return{numberText:(I==null?void 0:(c=I.likeCountIfLiked)==null?void 0:c.content)||"",numberValue:Number((e=I==null?void 0:I.likeCountIfLikedNumber)!=null?e:0),heightPx:36,shouldAnimate:!!I}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),X=_.V(_.d0(void 0,void 0,"T6jMHc")),A=X.next().value,l=X.next().value,k=A,T=_.FT(QX,function(){var m,I;return(I=(m=M.data())==null?void 0:m.likeStatusEntityKey)!=null?I:""}),W=_.FT(ICi,function(){var m,I;
return((m=M.likeCountEntity)==null?void 0:(I=m.call(M))==null?void 0:I.key)||""}),w=_.Al(function(){var m;
return((m=T())==null?void 0:m.likeStatus)==="LIKE"},void 0,"WxQBcd"),p=function(){var m;
return d&&!((m=M.likeCountEntity)==null||!m.call(M))};
return _.g("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.g(_.I0,{data:function(){var m=Object,I=m.assign,O;var y=_.q((O=M.data())==null?void 0:O.toggleButtonViewModel,_.qH);return I.call(m,{},y||{},{isToggled:w()})},
buttonShapeOverrides:M.buttonShapeOverrideables,animatedTextPropsDefault:function(){return p()?N():void 0},
animatedTextPropsToggled:function(){return p()?R():void 0},
onToggle:function(m){ZlL(m,T(),k(),l)},
style:function(){var m;return((m=M.disableIconAnimation)==null?0:m.call(M))?void 0:{animateIcon:"true"}}}))},"I");
MUp=_.Q("web_enable_sink_like_button_view_model")?jEg:YJ6;_.sEV=_.Q("web_enable_sink_like_button_view_model")?jEg:_.Ez(YJ6);_.aR(Nvv);var PFL=_.SG(function(M){var d=function(){return _.q(M.data().likeButtonViewModel,Oc)},N=function(){var X;
return((X=d())==null?void 0:X.likeStatusEntityKey)||""},R=_.Al(function(){var X,A;
var l=(A=_.FT(QX,N)())!=null?A:(X=d())==null?void 0:X.likeStatusEntity;X=M.data();var k;X=(X==null?void 0:(k=X.timedAnimationData)==null?void 0:k.animationTiming)||[];return{uniqueId:"like-dislike",timings:X,enabled:(l==null?void 0:l.likeStatus)==="INDIFFERENT"&&X.length>0,experimentEnabled:X.length>0}},void 0,"e1fsz");
return _.g("segmented-like-dislike-button-view-model",{class:_.xj("ytSegmentedLikeDislikeButtonViewModelHost",M.className),"button-renderer":!0},_.g(Nwz,{settings:R},_.g("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.g(_.kV,{cond:d,then:function(X){return _.g(_.sEV,{data:X,likeCountEntity:function(){return M.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.g(_.kV,{cond:function(){return _.q(M.data().dislikeButtonViewModel,jk)},
then:function(X){return _.g(_.Old,{data:X,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),oKe=_.Q("web_enable_sink_segmented_like_dislike_button_view_model")?PFL:Nvv;
PFL.idomCompat=!0;_.aA(oKe,"segmented-like-dislike-button-view-model",{propNames:["data"]});var lJi=0;_.eC(vrA,"account-link-button-view-model",{props:{data:_.cA,className:_.bI,setMinWidth:_.bI,forceIconOnly:_.bI}});_.pO("menuRenderer","menuRenderer","ytd-menu-renderer");
var rHC={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"}},
KOV=_.Q("web_fix_missing_action_buttons")?100:200,hh=function(){var M=_.n.apply(this,arguments)||this;M.safeArea=!_.Q("kevlar_flex_menu_safe_area_killswitch");M.tonalOverride=!1;M.threeDotSize="M";M.isOverlay=!1;M.useOverlayDark=!1;M.topLevelIconsOnly=!1;M.JSC$12384_lastWidth=0;M.maybeUpdateFlexibleMenu=function(){_.Q("web_fix_missing_action_buttons")?requestAnimationFrame(M.maybeUpdateFlexibleMenuImpl):M.maybeUpdateFlexibleMenuImpl()};
M.maybeUpdateFlexibleMenuImpl=function(){var d;if((d=M.data)!=null&&d.flexibleItems){M.maybeFlushDebouncer();d=M.hostElement.clientWidth;var N=d>M.JSC$12384_lastWidth,R,X=((R=M.topLevelButtonsContainer)==null?void 0:R.scrollHeight)||0,A;R=((A=M.flexibleItemButtonsContainer)==null?void 0:A.scrollHeight)||0;A=M.hostElement.scrollHeight>Math.max(X,R)+8;N?(M.resetFlexibleItems(),M.JSC$12384_lastWidth=M.hostElement.clientWidth,M.maybeUpdateFlexibleMenu()):A&&(M.shrinkFlexibleMenu(),M.JSC$12384_lastWidth=
d)}};
M.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){M.onOverflowTap()},
iconPosition:"icon-only",style:M.isOverlay?M.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:M.threeDotSize,state:"active",accessibilityLabel:M.computeAccessibilityLabel(M.data)},M.threeDotButtonOverride)};
M.onOverflowTap=function(){if(M.data.fetchMenuCommand)_.h().resolve(_.xV).resolveCommand(M.data.fetchMenuCommand,{form:{element:M.hostElement}});else if(M.data.isDisabled&&M.data.disabledCommand)_.Zc(M.data.disabledCommand,M.hostElement);else{var d=M.createMenuRendererVe(),N={items:M.items};M.data.menuPopupAccessibility&&(N.menuPopupAccessibility=M.data.menuPopupAccessibility);M.data.footer&&(N.footer=M.data.footer);d={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:N},veData:d}};_.h().resolve(_.Wc).openSheet({openPopupActionCommand:d},
M.hostElement)}};
return M};
_.v(hh,_.n);_.F=hh.prototype;_.F.updateButtonOverrides=function(){if(!_.Q("menu_renderer_label_update_upkillswitch")){var M=_.K(this.hostElement).querySelector("yt-button-view-model");M&&(M.buttonOverrides=this.buttonOverrides)}};
_.F.computeHasItems=function(){var M;return((M=this.topLevelButtonData)==null?void 0:M.length)||this.hasFlexibleItems};
_.F.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.F.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.UO(this.hostElement,{"--ytd-menu-renderer-button-color":_.p3(this.data.iconColor)}))};
_.F.onStamperFinished=function(){this.JSC$12384_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.F.setupFlexibleMenu=function(){var M=this,d;(d=this.data)!=null&&d.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.ua(this.maybeUpdateFlexibleMenu,KOV,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.F.maybeFlushDebouncer=function(){if(_.Q("web_replace_formatted_with_attributed_string")){var M;(M=this.topLevelButtons)==null||M.forEach(function(N){var R;(N=(R=N.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&Gjv(N)});
var d;(d=this.flexibleItemButtons)==null||d.forEach(function(N){var R;(N=(R=N.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&Gjv(N)})}};
_.F.resetFlexibleItems=function(){var M;if((M=this.data)!=null&&M.flexibleItems){_.Q("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var d;this.flexAsTopLevelButtons=(d=this.data.flexibleItems)==null?void 0:d.map(function(N){return _.q(N,_.P0g).topLevelButton});
_.Q("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.F.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.F.shrinkFlexibleMenu=function(){var M;(M=this.flexAsTopLevelButtons)!=null&&M.length&&(this.flexAsTopLevelButtons=[].concat(_.wu(this.flexAsTopLevelButtons.slice(0,-1))))};
_.F.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:rHC,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:rHC,events:!0}}};
_.F.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.F.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.F.detached=function(){this.icon="yt-icons:more_vert"};
_.F.computeTopLevelButtonData=function(M){if(!M)return[];var d;M=(d=M==null?void 0:M.topLevelButtons)!=null?d:[];return _.wF.unsafeClone([].concat(_.wu(M)))};
_.F.computeItems=function(M,d){if(!M)return[];var N=[];if(d){var R=(M.flexibleItems||[]).map(function(l){return _.q(l,_.P0g)});
R=_.V(R);for(var X=R.next();!X.done;X=R.next())X=X.value,d.includes(X.topLevelButton)||(X=X.menuItem)&&N.push(X)}var A;M=(A=M==null?void 0:M.items)!=null?A:[];return[].concat(_.wu(N),_.wu(M))};
_.F.computeMenuActive=function(M,d){return M||d};
_.F.onPopupOpened=function(){this.overlayOpen=!0;_.YP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.F.onPopupClosed=function(){this.overlayOpen=!1;_.YP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.F.onPopupCanceled=function(){this.overlayOpen=!1;_.YP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.F.computeAccessibilityLabel=function(M){return this.get("accessibility.accessibilityData.label",M)};
_.F.isHidden=function(M,d){return this.tonalOverride||!M?!0:M.fetchMenuCommand||M.isDisabled&&M.disabledCommand?!1:!(d==null?0:d.length)};
_.F.isModernOverflowHidden=function(M,d){return this.tonalOverride&&M?M.fetchMenuCommand?!1:!(d==null?0:d.length):!0};
_.F.createMenuRendererVe=function(){var M=this.data.trackingParams,d=_.Ou(),N=_.vl();return M&&d&&N?(M=_.At(M),N=_.Tx(7591),_.Q("combine_ve_grafts")?_.NT(_.Nx(),N,M):_.c1(d,M,N),N):null};
_.Hm.Object.defineProperties(hh.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.flexAsTopLevelButtons)==null||!M.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
hh.prototype.onPopupCanceled=hh.prototype.onPopupCanceled;hh.prototype.onPopupClosed=hh.prototype.onPopupClosed;hh.prototype.onPopupOpened=hh.prototype.onPopupOpened;hh.prototype.tonalOverrideChanged=hh.prototype.tonalOverrideChanged;hh.prototype.resetFlexibleItems=hh.prototype.resetFlexibleItems;hh.prototype.setupFlexibleMenu=hh.prototype.setupFlexibleMenu;hh.prototype.iconButtonColorChanged=hh.prototype.iconButtonColorChanged;hh.prototype.updateButtonOverrides=hh.prototype.updateButtonOverrides;
_.G([_.S(_.zc),_.a("design:type",Object)],hh.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#button-shape"),_.a("design:type",C$)],hh.prototype,"buttonShape",void 0);_.G([_.Z3("#button"),_.a("design:type",Object)],hh.prototype,"button",void 0);
_.G([_.H(),_.a("design:type",Object)],hh.prototype,"data",void 0);_.G([_.H({computed:"computeTopLevelButtonData(data)"}),_.a("design:type",Array)],hh.prototype,"topLevelButtonData",void 0);_.G([_.H(),_.a("design:type",Array)],hh.prototype,"flexAsTopLevelButtons",void 0);_.G([_.H({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.a("design:type",Array)],hh.prototype,"items",void 0);_.G([_.H({value:"yt-icons:more_vert"}),_.a("design:type",String)],hh.prototype,"icon",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hh.prototype,"safeArea",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.a("design:type",Boolean)],hh.prototype,"menuActive",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"menuFocused",void 0);_.G([_.H({value:"bottom"}),_.a("design:type",String)],hh.prototype,"buttonTooltipPosition",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"overlayOpen",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],hh.prototype,"forceIconButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"styleActionButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],hh.prototype,"disableTextTransformOnButtons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hh.prototype,"tonalOverride",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"threeDotSize",void 0);
_.G([_.H(),_.a("design:type",Object)],hh.prototype,"threeDotButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"isOverlay",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"useOverlayDark",void 0);_.G([_.H({computed:"computeButtonOverride(tonalOverride)"}),_.a("design:type",Object)],hh.prototype,"buttonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],hh.prototype,"hasCustomIconColor",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("flexAsTopLevelButtons"),_.a("design:type",Object),_.a("design:paramtypes",[])],hh.prototype,"hasFlexibleItems",null);_.G([_.H({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.a("design:type",Boolean)],hh.prototype,"hasItems",void 0);_.G([_.H(),_.a("design:type",Object)],hh.prototype,"topLevelIconsOnly",void 0);
_.G([_.xB("topLevelIconsOnly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"updateButtonOverrides",null);_.G([_.z("topLevelIconsOnly"),_.a("design:type",Object),_.a("design:paramtypes",[])],hh.prototype,"buttonOverrides",null);_.G([_.Z3("#top-level-buttons-computed"),_.a("design:type",HTMLElement)],hh.prototype,"topLevelButtonsContainer",void 0);_.G([_.EO(".top-level-buttons > *"),_.a("design:type",Array)],hh.prototype,"topLevelButtons",void 0);
_.G([_.Z3("#flexible-item-buttons"),_.a("design:type",HTMLElement)],hh.prototype,"flexibleItemButtonsContainer",void 0);_.G([_.EO("#flexible-item-buttons > *"),_.a("design:type",Array)],hh.prototype,"flexibleItemButtons",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"iconButtonColorChanged",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"setupFlexibleMenu",null);_.G([_.NS("topLevelIconsOnly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"resetFlexibleItems",null);_.G([_.xB("tonalOverride"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"tonalOverrideChanged",null);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"onPopupOpened",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"onPopupClosed",null);_.G([_.C3("yt-popup-canceled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hh.prototype,"onPopupCanceled",null);
_.L(hh,"ytd-menu-renderer",function(){if(iiL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);iiL=M}M=iiL;return M},{mode:_.G3("kevlar_poly_si_batch_j030")?1:2});var yH3;var JH3;_.a0=_.SG(function(M){var d=M.data;var N=function(){if(d().icon)a:{var R={iconName:d().icon};for(var X=_.h().resolve(_.xQ),A=_.V([12,24]),l=A.next();!l.done;l=A.next()){var k=l.value;l=Object.assign({},R,{iconStyle:"youtube_fill",iconSize:k});k=Object.assign({},R,{iconStyle:"youtube_outline",iconSize:k});if(X.resolveIcon(l)){R=l;break a}if(X.resolveIcon(k)){R=k;break a}}R=void 0}else R=void 0;return R};
M={};return _.g("badge-shape",{class:_.xj("badge-shape-wiz",function(){return sB2(d().type)},(M["badge-shape-wiz--overlay"]=function(){return d().isOverlay},M["badge-shape-wiz--ads-include-dot"]=function(){return d().adsIncludeDot},M["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(d().type){case 16:case 17:case 18:var R=!0;
break a;default:R=!1}return R},M["badge-shape-wiz--status-badge"]=function(){a:switch(d().type){case 11:case 12:case 13:case 14:case 15:var R=!0;
break a;default:R=!1}return R},M["badge-shape-wiz--no-text"]=function(){return!d().text},M["badge-shape-wiz--modern"]=function(){return d().modern},M)),
style:_.Xc({"background-color":function(){var R;return(R=d().customColors)==null?void 0:R.backgroundColor}}),
role:function(){return d().accessibilityText?"img":void 0},
"aria-label":function(){return d().accessibilityText}},_.g(_.kV,{cond:function(){return d().animation},
then:function(R){return _.g(_.Yj,{className:"badge-shape-wiz__icon",data:R,animationName:function(){return R().animationConfig.name||""}})}}),_.g(_.kV,{cond:function(){var R;
return N()&&!((R=d())==null?0:R.animation)},
then:function(){return _.g("div",{class:"badge-shape-wiz__icon"},_.g(kGi,{data:function(){return N()}}))}}),_.g("div",{class:"badge-shape-wiz__text"},function(){var R;
return(R=d())==null?void 0:R.text}))},"K");
_.a0.idomCompat=!0;_.eC(_.a0,"badge-shape",{props:{data:_.cA}});var Q7=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.animated=_.Q("animated_live_badge_icon");M.useBadgeShape=_.Q("web_badge_shape_defrag");return M};
_.v(Q7,_.n);_.F=Q7.prototype;_.F.addTooltips=function(){for(var M=_.K(this.hostElement).querySelectorAll(".badge"),d=0,N;N=M[d++];){var R=this.repeatElement.itemForElement(N);N=_.K(N);N.lastChild&&N.lastChild.is==="tp-yt-paper-tooltip"&&N.removeChild(N.lastChild);if(R=R.metadataBadgeRenderer&&R.metadataBadgeRenderer.tooltip){var X=_.n$("tp-yt-paper-tooltip");(0,_.aj)(X).textContent=R;X.setAttribute("position","top");N.appendChild(X)}}};
_.F.badgesChanged=function(){var M=this;_.K4().parkOrScheduleJob(function(){M.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.F.standaloneRoundedBadgeChanged=function(){var M=this.useRoundedBadge?this.useRoundedBadge:void 0;M&&(this.useRoundedBadge=M)};
_.F.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.F.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.F.computeStyle=function(M){_.Q("enable_html5_teal_ad_badge")&&M==="BADGE_STYLE_TYPE_AD"&&(M="badge-style-type-ad-alternate");_.Q("kevlar_ytb_live_badges")&&M==="BADGE_STYLE_TYPE_LIVE_NOW"&&(M="badge-style-type-live-now-alternate");return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeRole=function(M){return this.computeAriaLabel(M)?"img":"status"};
_.F.computeAriaLabel=function(M){var d;return(M==null?void 0:(d=M.accessibilityData)==null?void 0:d.label)||(M==null?void 0:M.label)};
_.F.computeBadgeShape=function(M){var d;if(M){var N,R=OnZ(M.style),X=jBL(M.style),A=M.label,l=((N=M.accessibilityData)==null?void 0:N.label)||M.label;M=(d=M.icon)==null?void 0:d.iconType;d={type:R,brNzRatingBadgeType:X,text:A,accessibilityText:l,icon:M!=="PREMIUM"?M:void 0}}else d={};return d};
_.F.updateComputedBadges=function(M,d,N){var R=this;(d=d?[d]:N?[N]:void 0)?this.computedBadges=d:this.computedBadges=M==null?void 0:M.filter(function(X){var A;if((A=X.metadataBadgeRenderer)==null?0:A.groups){A=!1;X=_.V(X.metadataBadgeRenderer.groups);for(var l=X.next();!l.done;l=X.next()){l=l.value;var k=void 0;A=A||((k=R.hiddenBadgeGroups)==null?void 0:k.includes(l))}return!A}return!0})};
_.F.useFilledIcons=function(M){return _.Q("kevlar_system_icons")&&(M==="AUDIO_BADGE"||M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE"||M==="SPONSORSHIP_STAR"||M==="PERSON_RADAR_FILLED"||M==="PERSON_RADAR")};
_.F.computeIcon=function(M){var d,N;M=M==null?void 0:(d=M.metadataBadgeRenderer)==null?void 0:(N=d.icon)==null?void 0:N.iconType;if(M!=="PREMIUM"&&M)return _.C6(M)};
_.F.computeStandaloneBadge=function(M){var d;M=M==null?void 0:(d=M.icon)==null?void 0:d.iconType;return M==="PREMIUM_STANDALONE"||M==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Q7.prototype.hiddenBadgeGroupsChanged=Q7.prototype.hiddenBadgeGroupsChanged;Q7.prototype.standaloneBadgeChanged=Q7.prototype.standaloneBadgeChanged;Q7.prototype.standaloneRoundedBadgeChanged=Q7.prototype.standaloneRoundedBadgeChanged;Q7.prototype.badgesChanged=Q7.prototype.badgesChanged;_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"hidden",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Q7.prototype,"componentBehavior",void 0);
_.G([_.H(),_.a("design:type",Array)],Q7.prototype,"badges",void 0);_.G([_.H(),_.a("design:type",Object)],Q7.prototype,"topStandaloneBadge",void 0);_.G([_.H(),_.a("design:type",Object)],Q7.prototype,"bottomStandaloneBadge",void 0);_.G([_.H(),_.a("design:type",Object)],Q7.prototype,"computedBadges",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"mediumFontAdBadge",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"useRoundedBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"largeFontAdBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"overlayAd",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"overlayPremium",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"noDotAdBadge",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"collectionTruncate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"isThumbnailBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Q7.prototype,"wrapBadges",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q7.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q7.prototype,"animated",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q7.prototype,"useBadgeShape",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],Q7.prototype,"hiddenBadgeGroups",void 0);_.G([_.Z3("#repeat"),_.a("design:type",T3)],Q7.prototype,"repeatElement",void 0);_.G([_.NS("badges"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"badgesChanged",null);
_.G([_.NS("useRoundedBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"standaloneRoundedBadgeChanged",null);_.G([_.NS("topStandaloneBadge","bottomStandaloneBadge"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"standaloneBadgeChanged",null);_.G([_.NS("hiddenBadgeGroups"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q7.prototype,"hiddenBadgeGroupsChanged",null);
Q7=_.G([_.f({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Q7);
var cHz=_.ty()(Q7,"ytd-badge-supported-renderer",function(){if(JH3===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);JH3=M}M=JH3;return M},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.G3("kevlar_poly_si_batch_j053")?1:2});var qf=function(){var M=_.n.apply(this,arguments)||this;M.iconType="STAR";M.standardizeIconSize=_.Q("kevlar_system_icons");M.mediaHoverOverlayInitialVisibility=_.Q("enable_top_landscape_image_button_command_web");M.noBottomMargin=!1;M.thumbnailObjectFit="CONTAIN";M.thumbnailFitHeight=!0;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.v(qf,_.n);_.F=qf.prototype;
_.F.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"}}}};
_.F.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",qf.JSC$12396_DEFAULT_CLICK_LOCATION_BEHAVIOR,qf.JSC$12396_CLICK_LOCATION_ID_MAP))};
_.F.onTap=function(M){if(!_.Q("use_on_click_for_desktop_display_ad"))this.onTapOrClick(M)};
_.F.onClick=function(M){if(_.Q("use_on_click_for_desktop_display_ad"))this.onTapOrClick(M)};
_.F.onTapOrClick=function(M){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,M,!1)};
_.F.updateMediaBackgroundImage=function(){var M=this.get("data.image.thumbnail.thumbnails");M&&(M=_.Hz(M,0))&&_.UO(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+M+")"})};
_.F.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var M=0;M<this.data.impressionEndpoints.length;M++){var d=this.data.impressionEndpoints[M];d.clickTrackingParams&&delete d.clickTrackingParams;_.h().resolve(_.xV).resolveCommand(d,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var N;((N=this.data)==null?0:N.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.F.handleMuteAd=function(){};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Hm.Object.defineProperties(qf.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.titleText)return"";var d;return _.le("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((d=this.data)==null?void 0:d.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
qf.prototype.onClick=qf.prototype.onClick;qf.prototype.onTap=qf.prototype.onTap;qf.prototype.dataChanged=qf.prototype.dataChanged;
qf.JSC$12396_CLICK_LOCATION_ID_MAP=_.Q("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"]]);
qf.JSC$12396_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.Q("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"}];_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.sp),_.a("design:type",Object)],qf.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],qf.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.S(Ik),_.a("design:type",Object)],qf.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S([_.tK.YtActionHandlerBehavior]),_.a("design:type",Object)],qf.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],qf.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],qf.prototype,"clickCommand",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],qf.prototype,"miniMode",void 0);_.G([_.H(),_.a("design:type",String)],qf.prototype,"iconType",void 0);_.G([_.z("data.titleText"),_.a("design:type",String),_.a("design:paramtypes",[])],qf.prototype,"titleAriaLabel",null);
_.G([_.z("data.rating"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getRating",null);_.G([_.z("data.price"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getPrice",null);_.G([_.z("data.thirdLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getThirdLine",null);_.G([_.z("data.fourthLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getFourthLine",null);
_.G([_.z("data.fifthLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"getFifthLine",null);_.G([_.z("getRating"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeRatingHidden",null);_.G([_.z("getPrice"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computePriceHidden",null);_.G([_.z("getThirdLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeThirdLineHidden",null);
_.G([_.z("getFourthLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeFourthLineHidden",null);_.G([_.z("getFifthLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeFifthLineHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.energyIcon"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"hasEnergyIcon",null);
_.G([_.z("computePriceHidden","computeRatingHidden"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"computeSecondaryTextHidden",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qf.prototype,"standardizeIconSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qf.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qf.prototype,"noBottomMargin",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.layout"),_.a("design:type",String),_.a("design:paramtypes",[])],qf.prototype,"layout",null);_.G([_.z("data.layout"),_.a("design:type",Object),_.a("design:paramtypes",[])],qf.prototype,"mediaThumbnailWidth",null);_.G([_.z("layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qf.prototype,"useRoundedBadge",null);_.G([_.H(),_.a("design:type",String)],qf.prototype,"thumbnailObjectFit",void 0);
_.G([_.H(),_.a("design:type",Object)],qf.prototype,"thumbnailFitHeight",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qf.prototype,"dataChanged",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],qf.prototype,"onTap",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],qf.prototype,"onClick",null);
qf=_.G([_.f({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],qf);
_.L(qf,"ytd-display-ad-renderer",function(){if(yH3!==void 0)return yH3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return yH3=M},{mode:1});var SJV;var zGV;var blV;var Ppv=new Map;var eGL=!1;var Im=function(){var M=_.n.apply(this,arguments)||this;M.DEFAULT_TOOLTIP_OFFSET="10";M.TOOLTIP_OFFSET_NO_BANNER="-8";M.badges=null;M.noEndpoints=!1;M.wrapText=!1;M.forceVerified=!1;M.tooltipPosition="top";M.compactStyle=!1;M.height=0;M.lineHeight=0;return M};
_.v(Im,_.n);_.F=Im.prototype;_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.F.attached=function(){var M=this;this.observer=new MutationObserver(function(d,N){M.handleResized();N.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.F.detached=function(){this.observer&&this.observer.disconnect()};
_.F.logTooltipEvent=function(){_.Q("kevlar_wiz_tooltip_event_killswitch")||eGL||(_.orZ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),eGL=!0)};
_.F.handleWindowResized=function(){this.handleResized()};
_.F.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")))};
_.F.onHeightChanged=function(){if(this.verified){var M=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.rK("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=M:this.textContainerEl.style.marginRight=M}};
_.F.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.rK("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.F.handleResized=function(){var M=this;this.verified&&_.IQ.addLowPriorityJob(function(){M.fitBackgroundToText();var d=getComputedStyle(M.hostElement).lineHeight;d&&(d=d.match(/\d+/))&&d.length&&(M.lineHeight=Number(d[0]));M.height=M.lineHeight&&!M.wrapText?M.lineHeight:M.textEl.offsetHeight})};
_.F.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var M=document.createRange(),d=_.K(this.textEl).children;d.length>0?M.selectNodeContents(d[0]):M.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(M.getBoundingClientRect().width)+"px"}};
_.F.computeChannelBadgeStyle=function(M){var d;if((M==null?0:(d=M.runs)==null?0:d.length)&&M.runs[0].textColor)return"--ytd-badge-icon-color:"+_.p3(M.runs[0].textColor)+";"};
_.Hm.Object.defineProperties(Im.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"?_.ep(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var M=this.get("badges.0.metadataBadgeRenderer.tooltip");if(M)return M}return _.HD(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Im.prototype.onLineHeightChanged=Im.prototype.onLineHeightChanged;Im.prototype.onHeightChanged=Im.prototype.onHeightChanged;Im.prototype.onChannelNameChanged=Im.prototype.onChannelNameChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Im.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"badges",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"channelName",void 0);
_.G([_.H(),_.a("design:type",Object)],Im.prototype,"noEndpoints",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"wrapText",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"forceVerified",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"tooltipPosition",void 0);_.G([_.H(),_.a("design:type",String)],Im.prototype,"tooltip",void 0);_.G([_.H(),_.a("design:type",Boolean)],Im.prototype,"hasChannelArt",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Im.prototype,"compactStyle",void 0);_.G([_.Z3("#text-container"),_.a("design:type",HTMLElement)],Im.prototype,"textContainerEl",void 0);_.G([_.Z3("#text"),_.a("design:type",Object)],Im.prototype,"textEl",void 0);_.G([_.Z3("#verified-tooltip"),_.a("design:type",HTMLElement)],Im.prototype,"verifiedTooltip",void 0);_.G([_.H(),_.a("design:type",Object)],Im.prototype,"height",void 0);
_.G([_.H(),_.a("design:type",Object)],Im.prototype,"lineHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("badges","forceVerified"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Im.prototype,"verified",null);_.G([_.z("badges","verified"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Im.prototype,"hideBadges",null);_.G([_.z("channelName"),_.a("design:type",Object),_.a("design:paramtypes",[])],Im.prototype,"formattedName",null);
_.G([_.z("badges","verified","formattedName"),_.a("design:type",String),_.a("design:paramtypes",[])],Im.prototype,"tooltipText",null);_.G([_.z("hasChannelArt"),_.a("design:type",String),_.a("design:paramtypes",[])],Im.prototype,"tooltipOffset",null);_.G([_.xB("channelName"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Im.prototype,"onChannelNameChanged",null);
_.G([_.xB("height"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Im.prototype,"onHeightChanged",null);_.G([_.xB("lineHeight","height"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Im.prototype,"onLineHeightChanged",null);Im=_.G([_.f({is:"ytd-channel-name",disableElementRegistration:!0})],Im);
_.L(Im,"ytd-channel-name",function(){if(blV!==void 0)return blV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return blV=M},{mode:_.G3("kevlar_poly_si_batch_j036")?1:2});var vc=function(){var M=_.n.apply(this,arguments)||this;M.standardizeIconSize=_.Q("kevlar_system_icons");M.enableModernCommentBadges=_.Q("enable_modern_comment_badges");return M};
_.v(vc,_.n);vc.prototype.basicPaletteChanged=function(){var M;(M=this.data.color)!=null&&M.basicColorPaletteData&&_.Wi(this.hostElement,this.data.color.basicColorPaletteData)};
vc.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var M,d=this.get("basicColorPaletteData.backgroundColor",(M=this.data)==null?void 0:M.color),N;M=this.get("basicColorPaletteData.foregroundTitleColor",(N=this.data)==null?void 0:N.color);N={};d?(d=_.p3(d),N["--ytd-author-comment-badge-background-color"]=d):(N["--ytd-author-comment-badge-icon-background-color"]="transparent",N["--ytd-author-comment-badge-background-color"]="transparent");M?(d=_.p3(M),N["--ytd-author-comment-badge-name-color"]=
d,N["--ytd-author-comment-badge-icon-color"]=d):N["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(N).length>0&&_.UO(this.hostElement,N)}};
vc.prototype.useFilledIcons=function(M){return _.Q("kevlar_system_icons")&&(M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE")};
_.Hm.Object.defineProperties(vc.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
vc.prototype.colorChanged=vc.prototype.colorChanged;vc.prototype.basicPaletteChanged=vc.prototype.basicPaletteChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vc.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],vc.prototype,"standardizeIconSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vc.prototype,"enableModernCommentBadges",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.authorUnifiedVerified"),_.a("design:type",Object),_.a("design:paramtypes",[])],vc.prototype,"verified",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],vc.prototype,"creator",null);_.G([_.xB("data.color.basicColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vc.prototype,"basicPaletteChanged",null);
_.G([_.xB("data.color"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vc.prototype,"colorChanged",null);vc=_.G([_.f({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],vc);
_.L(vc,"ytd-author-comment-badge-renderer",function(){if(zGV!==void 0)return zGV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zGV=M},{mode:1});var HlI;var Of=function(){return _.n.apply(this,arguments)||this};
_.v(Of,_.n);Of.prototype.computeThumbnailWidth=function(M){if(M==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Of.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],Of.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Of.prototype,"surface",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("enable_shrink_image_size_on_web_posts_singleton")}),_.a("design:type",Boolean)],Of.prototype,"searchSxsUx",void 0);Of=_.G([_.f({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Of);
_.L(Of,"ytd-backstage-image-renderer",function(){if(HlI!==void 0)return HlI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HlI=M},{mode:1});var nKe;var jY=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.selectedItemIndex=-1;return M};
_.v(jY,_.n);_.F=jY.prototype;_.F.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.F.computeIsImagePoll=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.F.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.F.thumbnailSrc=function(M){var d,N,R,X;return(M==null?0:(d=M.thumbnails)==null?0:(N=d[0])==null?0:N.url)?_.gH((R=M.thumbnails)==null?void 0:(X=R[0])==null?void 0:X.url):void 0};
_.F.progressWidth=function(M){return"width:"+(M?M*100:0)+"%;"};
_.F.textAreaWidth=function(M){return this.isImagePoll?null:"width:"+(M?M*100:0)+"%;"};
_.F.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.F.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var M=this.data.choices,d=0;d<M.length;d++)if(M[d].selected){this.selectedItemIndex=d;break}};
_.F.onPopupClosed=function(M,d){M=Number(this.pollVotes.selected);d.confirmed&&(this.selectChoice(M,!1),_.ZI(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.F.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.F.onYtCommentPollRevert=function(M,d){d&&(this.selectChoice(d.selectedChoiceIndex,!0),this.set("data.totalVotes",d.totalVotes))};
_.F.onYtServiceRequestSent=function(M,d){if(d.actions)for(M=0;M<d.actions.length;M++){var N=d.actions[M];_.q(N,qs)&&this.set("data.totalVotes",_.q(N,qs).totalVotes)}};
_.F.onYtServiceRequestCompleted=function(M){var d=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(d==="FEEDBACK_DESELECT"||d==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.YP(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.F.getEndpoint=function(M,d){return d===M?this.data.choices[d].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.F.selectChoice=function(M,d){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var N=0;N<this.data.choices.length;N++){var R;if(M===this.selectedItemIndex){var X=!1;var A=R=null}else R=(X=N===M)?this.data.choices[N].voteRatioIfSelected:this.data.choices[N].voteRatioIfNotSelected,A=X?this.data.choices[N].votePercentageIfSelected:this.data.choices[N].votePercentageIfNotSelected;this.set("data.choices."+N+".voteRatio",R);
this.set("data.choices."+N+".votePercentage",A);this.set("data.choices."+N+".selected",X)}d||(this.isLoading=!0,(d=this.getEndpoint(M,this.selectedItemIndex))&&_.h().resolve(_.xV).resolveCommand(d,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.Hm.Object.defineProperties(jY.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
jY.prototype.onYtServiceRequestCompleted=jY.prototype.onYtServiceRequestCompleted;jY.prototype.onYtServiceRequestSent=jY.prototype.onYtServiceRequestSent;jY.prototype.onYtCommentPollRevert=jY.prototype.onYtCommentPollRevert;jY.prototype.onPopupClosed=jY.prototype.onPopupClosed;jY.prototype.dataChanged=jY.prototype.dataChanged;_.G([_.S(_.GJ),_.a("design:type",Object)],jY.prototype,"paperItemBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],jY.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"isLoading",void 0);_.G([_.H({computed:"computeIsChannelOwner(data.choices)"}),_.a("design:type",Boolean)],jY.prototype,"isChannelOwner",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.a("design:type",Boolean)],jY.prototype,"isImagePoll",void 0);_.G([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.a("design:type",Boolean)],jY.prototype,"isTotalVotesDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"previousPollInfo",void 0);_.G([_.H(),_.a("design:type",Object)],jY.prototype,"selectedItemIndex",void 0);_.G([_.Z3("#poll-votes"),_.a("design:type",Object)],jY.prototype,"pollVotes",void 0);
_.G([_.z("isChannelOwner"),_.a("design:type",Object),_.a("design:paramtypes",[])],jY.prototype,"endpointStyle",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jY.prototype,"dataChanged",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],jY.prototype,"onPopupClosed",null);
_.G([_.C3("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],jY.prototype,"onYtCommentPollRevert",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],jY.prototype,"onYtServiceRequestSent",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],jY.prototype,"onYtServiceRequestCompleted",null);jY=_.G([_.f({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],jY);
_.L(jY,"ytd-backstage-poll-renderer",function(){if(nKe!==void 0)return nKe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return nKe=M},{mode:2});var ilC;var fXd={autoplay:!1,loop:!1},LOJ={simpleText:""},sf=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.usesPanelLockup=!1;M.selectedItemIndex=-1;M.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},fXd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});M.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},fXd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});M.correctnessAnimationProps=[];M.correctnessAnimationRefs=[];return M};
_.v(sf,_.n);_.F=sf.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.F.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.F.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.F.computeIsImageQuiz=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.F.onExplanationChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var M=this.data.choices;if(M){this.maybeInitializeQuizLotties(M);for(var d=0;d<M.length;d++)if(M[d].isSelected||this.isChannelOwner&&M[d].isCorrect){this.selectedItemIndex=d;return}this.selectedItemIndex=-1}}};
_.F.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var M=this.selectedItemIndex,d=Number(this.quizVotes.selected);this.selectChoice(d);this.sendVoteAction(d,M);this.quizVotes.selected=-1;var N;M=!((N=this.data)==null?0:N.enableAnimation);this.maybePlayAnswerAnimations(M)}};
_.F.onYtCommentPollRevert=function(M,d){d&&(this.selectChoice(d.selectedChoiceIndex),this.set("data.totalVotes",d.totalVotes))};
_.F.onYtServiceRequestSent=function(M,d){if(d.actions)for(M=_.V(d.actions),d=M.next();!d.done;d=M.next())(d=_.q(d.value,qs))&&this.set("data.totalVotes",d.totalVotes)};
_.F.onYtServiceRequestCompleted=function(M){var d=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(d==="FEEDBACK_DESELECT"||d==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.YP(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.F.getAnimationPropsForChoiceIndex=function(M,d){return d[M]};
_.F.maybePlayAnswerAnimations=function(M){M=M===void 0?!1:M;var d;if((d=this.data)!=null&&d.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){d=_.V(this.correctnessAnimationRefs);for(var N=d.next();!N.done;N=d.next()){var R=void 0,X=void 0;(R=N.value)==null||(X=R.lottieEl)==null||X.stop()}if(!(this.selectedItemIndex<0)){d=0;M&&(d=this.isCorrect?37:25);var A,l;(A=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(l=A.lottieEl)==null||l.goToAndPlay(M?d:0,!0);if(!(this.isCorrect||
(A=this.data.choices.findIndex(function(w){return w.isCorrect}),A<0))){var k,T;
(T=(k=this.correctnessAnimationRefs[A])==null?void 0:k.lottieEl)==null||T.goToAndPlay(37,!0);var W;k=(W=this.fadeContainers)==null?void 0:W.item(A);!M&&k&&this.fadeIn(k)}}}};
_.F.thumbnailSrc=function(M){var d,N,R,X;return(M==null?0:(d=M.thumbnails)==null?0:(N=d[0])==null?0:N.url)?_.gH((R=M.thumbnails)==null?void 0:(X=R[0])==null?void 0:X.url):void 0};
_.F.a11yVotedText=function(M,d){var N,R,X=((N=this.data)==null?void 0:(R=N.correctVotedText)==null?void 0:R.simpleText)||"",A,l;N=((A=this.data)==null?void 0:(l=A.votedText)==null?void 0:l.simpleText)||"";if(!d)return"";var k,T;if((k=this.data)==null?0:(T=k.choices)==null?0:T[M].isCorrect)return X;var W,w;return((W=this.data)==null?0:(w=W.choices)==null?0:w[M].isSelected)?N:""};
_.F.getEndpoint=function(M,d){return d===M?this.data.choices[M].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.F.sendVoteAction=function(M,d){if(M=this.getEndpoint(M,d))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(M)};
_.F.selectChoice=function(M){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var d=0;d<this.data.choices.length;d++)this.set("data.choices."+d+".isSelected",M===this.selectedItemIndex?!1:d===M);this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.F.maybeInitializeQuizLotties=function(M){var d=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=M.map(function(N){return{animationConfig:N.isCorrect?d.baseCorrectLottiePlayerAnimationConfig:d.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){d.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(N){return N.animationRef||{}})};
_.F.fadeIn=function(M){M.classList.add("fade-in");_.Lq(_.IQ,function(){M.classList.remove("fade-in")},900)};
_.Hm.Object.defineProperties(sf.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.Q("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.HD(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.choices)==null?void 0:d.some(function(N){return N.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?LOJ:this.data.choices[this.selectedItemIndex].explanation||LOJ}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
sf.prototype.onYtServiceRequestCompleted=sf.prototype.onYtServiceRequestCompleted;sf.prototype.onYtServiceRequestSent=sf.prototype.onYtServiceRequestSent;sf.prototype.onYtCommentPollRevert=sf.prototype.onYtCommentPollRevert;sf.prototype.dataChanged=sf.prototype.dataChanged;sf.prototype.onExplanationChanged=sf.prototype.onExplanationChanged;_.G([_.S(_.GJ),_.a("design:type",Object)],sf.prototype,"paperItemBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.HA.YtTaskEmitterBehavior),_.a("design:type",Object)],sf.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],sf.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],sf.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"usesPanelLockup",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.a("design:type",Boolean)],sf.prototype,"isChannelOwner",void 0);_.G([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.a("design:type",Boolean)],sf.prototype,"isTotalVotesDisabled",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.a("design:type",Boolean)],sf.prototype,"isImageQuiz",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"previousQuizInfo",void 0);_.G([_.H(),_.a("design:type",Object)],sf.prototype,"selectedItemIndex",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data","usesPanelLockup"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"shouldUseModernUi",null);
_.G([_.EO(".fade-container"),_.a("design:type",Object)],sf.prototype,"fadeContainers",void 0);_.G([_.H(),_.a("design:type",Array)],sf.prototype,"correctnessAnimationProps",void 0);_.G([_.z("explanation","showCorrectAnswer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"showExplanation",null);_.G([_.z("isChannelOwner","isAttempted"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"showCorrectAnswer",null);
_.G([_.z("isChannelOwner","isAttempted","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"isQuizAnsweringDisabled",null);_.G([_.z("isQuizAnsweringDisabled"),_.a("design:type",Object),_.a("design:paramtypes",[])],sf.prototype,"endpointStyle",null);_.G([_.z("data","selectedItemIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"isAttempted",null);
_.G([_.z("data","selectedItemIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],sf.prototype,"explanation",null);_.G([_.z("data","selectedItemIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sf.prototype,"isCorrect",null);_.G([_.Z3("ytd-expander"),_.a("design:type",Object)],sf.prototype,"expander",void 0);_.G([_.Z3("#quiz-votes"),_.a("design:type",Object)],sf.prototype,"quizVotes",void 0);
_.G([_.xB("explanation"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sf.prototype,"onExplanationChanged",null);_.G([_.xB("data","isChannelOwner"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sf.prototype,"dataChanged",null);_.G([_.C3("yt-comment-quiz-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sf.prototype,"onYtCommentPollRevert",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],sf.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],sf.prototype,"onYtServiceRequestCompleted",null);sf=_.G([_.f({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],sf);
_.L(sf,"ytd-backstage-quiz-renderer",function(){if(ilC!==void 0)return ilC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ilC=M},{mode:1});var tyd;var Pc=function(){return _.n.apply(this,arguments)||this};
_.v(Pc,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pc.prototype,"data",void 0);Pc=_.G([_.f({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Pc);
_.L(Pc,"ytd-post-uploaded-video-renderer",function(){if(tyd!==void 0)return tyd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return tyd=M},{mode:1});var GvJ;var om=function(){return _.n.apply(this,arguments)||this};
_.v(om,_.n);om.prototype.useFilledIcons=function(M){return M==="SPONSORSHIP_STAR"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],om.prototype,"data",void 0);om=_.G([_.f({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],om);
_.L(om,"ytd-sponsors-only-badge-renderer",function(){if(GvJ!==void 0)return GvJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return GvJ=M},{mode:1});var aXI;var r1=function(){return _.n.apply(this,arguments)||this};
_.v(r1,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],r1.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r1.prototype,"data",void 0);r1=_.G([_.f({is:"ytd-child-video-renderer",disableElementRegistration:!0})],r1);
_.L(r1,"ytd-child-video-renderer",function(){if(aXI!==void 0)return aXI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return aXI=M},{mode:1});var UDd;var ukL;var KW=function(){var M=_.n.apply(this,arguments)||this;M.size=0;M.enableWebModernCollectionsV2=_.Q("web_modern_collections_v2");M.fallbackImageSize={height:void 0,width:9999};M.webModernCollections=!1;return M};
_.v(KW,_.n);_.F=KW.prototype;_.F.computeBlurredImageSize=function(M){return M?{height:M*2,width:M*2}:this.fallbackImageSize};
_.F.computeImageSize=function(M){return M?{height:M,width:M}:this.fallbackImageSize};
_.F.computeObjectFit=function(M){return M?"FILL":"CONTAIN"};
_.F.computePreserve=function(M){return M?!0:!1};
_.F.setBackground=function(){var M,d;_.Q("web_modern_collections_v2")&&((M=this.data)==null?0:(d=M.thumbnail)==null?0:d.sampledThumbnailColor)&&(M=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+M.red+","+M.green+","+M.blue+",1)")};
KW.prototype.setBackground=KW.prototype.setBackground;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],KW.prototype,"watchFeedThumbnail",void 0);_.G([_.H(),_.a("design:type",Object)],KW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],KW.prototype,"size",void 0);
_.G([_.H({computed:"computeBlurredImageSize(size)"}),_.a("design:type",Object)],KW.prototype,"blurredImageSize",void 0);_.G([_.H({computed:"computeImageSize(size)"}),_.a("design:type",Object)],KW.prototype,"imageSize",void 0);_.G([_.H({computed:"computePreserve(size)"}),_.a("design:type",String)],KW.prototype,"preserve",void 0);_.G([_.H({computed:"computeObjectFit(size)"}),_.a("design:type",String)],KW.prototype,"objectFit",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],KW.prototype,"enableWebModernCollectionsV2",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],KW.prototype,"webModernCollections",void 0);_.G([_.xB("data.thumbnail.sampledThumbnailColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KW.prototype,"setBackground",null);KW=_.G([_.f({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],KW);
_.L(KW,"ytd-playlist-custom-thumbnail-renderer",function(){if(ukL!==void 0)return ukL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ukL=M},{mode:1});var CFV;var y7=function(){return _.n.apply(this,arguments)||this};
_.v(y7,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],y7.prototype,"width",void 0);y7=_.G([_.f({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],y7);
_.L(y7,"ytd-playlist-video-thumbnail-renderer",function(){if(CFV!==void 0)return CFV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return CFV=M},{mode:1});var xDV;var Jh=function(){return _.n.apply(this,arguments)||this};
_.v(Jh,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],Jh.prototype,"width",void 0);Jh=_.G([_.f({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Jh);
_.L(Jh,"ytd-show-custom-thumbnail-renderer",function(){if(xDV!==void 0)return xDV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return xDV=M},{mode:1});var YJo;var cc=function(){return _.n.apply(this,arguments)||this};
_.v(cc,_.n);cc.prototype.useFilledIcons=function(M){return M==="MUSIC"||M==="COURSE"};
cc.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=h2(this.overlayColor,"0.8");else if(this.overlayColor){var M=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+M.red+","+M.green+","+M.blue+",0.8)"}};
_.Hm.Object.defineProperties(cc.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)}}});
cc.prototype.overlayColorChanged=cc.prototype.overlayColorChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cc.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],cc.prototype,"overlayColor",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],cc.prototype,"overlayStyle",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],cc.prototype,"overlayTextStyle",null);_.G([_.xB("overlayColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cc.prototype,"overlayColorChanged",null);cc=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],cc);
_.L(cc,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(YJo!==void 0)return YJo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return YJo=M},{mode:1});var ZlC;var SY=function(){var M=_.n.apply(this,arguments)||this;M.active=!1;return M};
_.v(SY,_.n);SY.prototype.computeIsSpinnerHidden=function(M){return(M==null?void 0:M.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
SY.prototype.computeOverlayIcon=function(M){return(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SY.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],SY.prototype,"active",void 0);SY=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],SY);
_.L(SY,"ytd-thumbnail-overlay-downloading-renderer",function(){if(ZlC!==void 0)return ZlC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZlC=M},{mode:1});var EKI;var z4=function(){return _.n.apply(this,arguments)||this};
_.v(z4,_.n);_.Hm.Object.defineProperties(z4.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],z4.prototype,"data",void 0);_.G([_.z("data.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],z4.prototype,"text",null);z4=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],z4);
_.L(z4,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(EKI!==void 0)return EKI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return EKI=M},{mode:1});var MUe,dag=function(){if(MUe!==void 0)return MUe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return MUe=M};var b1=function(){return _.n.apply(this,arguments)||this};
_.v(b1,_.n);_.Hm.Object.defineProperties(b1,{template:{configurable:!0,enumerable:!0,get:function(){return dag()}}});
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],b1.prototype,"animateEqualizer",void 0);b1=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],b1);_.ty()(b1,"ytd-thumbnail-overlay-equalizer",function(){return dag()},{allowedProps:["animateEqualizer"],
mode:1});var Nvm;var eY=function(){var M=_.n.apply(this,arguments)||this;M.nowPlayingBadge=_.Q("web_now_playing_badge");M.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return M};
_.v(eY,_.n);eY.prototype.activeChanged=function(){var M=this;_.Q("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.bM(this,function(){_.YP(M.hostElement,"yt-playlist-lockup-now-playing-active",M)})};
eY.prototype.onMiniplayerPlayStateChanged=function(M){var d,N=(d=_.q(_.$O().currentEndpoint,_.nL))==null?void 0:d.videoId;this.isVideoPlaying=M&&(_.Q("web_limit_now_playing_animation_killswitch")||this.videoId===N)};
eY.prototype.activeChanged=eY.prototype.activeChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],eY.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eY.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],eY.prototype,"isVideoPlaying",void 0);_.G([_.H(),_.a("design:type",String)],eY.prototype,"videoId",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],eY.prototype,"equalizerOnly",void 0);_.G([_.H(),_.a("design:type",Boolean)],eY.prototype,"isActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eY.prototype,"nowPlayingBadge",void 0);_.G([_.xB("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eY.prototype,"activeChanged",null);
eY=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],eY);
_.L(eY,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Nvm!==void 0)return Nvm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Nvm=M},{mode:1});var RlC;var Hc=function(){return _.n.apply(this,arguments)||this};
_.v(Hc,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hc.prototype,"data",void 0);Hc=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Hc);
_.L(Hc,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(RlC!==void 0)return RlC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return RlC=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var XBV;var nW=function(){return _.n.apply(this,arguments)||this};
_.v(nW,_.n);nW.prototype.onDurationChanged=function(){var M,d;_.K(this.hostElement).querySelector("#progress").style.width=((d=(M=this.data)==null?void 0:M.percentDurationWatched)!=null?d:0)+"%"};
nW.prototype.onDurationChanged=nW.prototype.onDurationChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],nW.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],nW.prototype,"isLive",void 0);_.G([_.xB("data.percentDurationWatched"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nW.prototype,"onDurationChanged",null);
nW=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],nW);
_.L(nW,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(XBV!==void 0)return XBV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XBV=M},{mode:1});var FeL;var i1=function(){var M=_.n.apply(this,arguments)||this;M.bottomPanel=!1;M.richGridOverlay=!1;M.watchFeedOverlay=!1;M.isCompact=!1;return M};
_.v(i1,_.n);i1.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Hm.Object.defineProperties(i1.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType)==="PLAY_ALL"&&_.Q("kevlar_system_icons")}}});
i1.prototype.widthChanged=i1.prototype.widthChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],i1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],i1.prototype,"width",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"bottomPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"richGridOverlay",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"watchFeedOverlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],i1.prototype,"isCompact",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],i1.prototype,"isIconFilled",null);_.G([_.xB("width","watchFeedOverlay"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],i1.prototype,"widthChanged",null);
i1=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],i1);
_.L(i1,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(FeL!==void 0)return FeL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return FeL=M},{mode:1});var A0z;var VUt=["CLIP","SHORTS"],fW=function(){var M=_.n.apply(this,arguments)||this;M.animated=_.Q("animated_live_badge_icon");M.hasIcon=!1;M.updateTimerIntervalId=0;M.timeSinceLive=0;return M};
_.v(fW,_.n);_.F=fW.prototype;_.F.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.F.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.F.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.F.hasIconOrText=function(){var M,d;return!!(((M=this.data)==null?0:M.icon)||((d=this.data)==null?0:d.text))};
_.F.initializeLiveBadgeTimer=function(){var M=this,d,N=(d=this.liveBadgeData)==null?void 0:d.startTimestampSec;if(N&&this.canShowLiveBadgeTimer()){var R;d=Number((R=this.liveBadgeData)==null?void 0:R.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(N);this.updateTimerIntervalId=_.Rc(function(){M.canShowLiveBadgeTimer()?M.timeSinceLive++:(M.timeSinceLive=0,window.clearInterval(M.updateTimerIntervalId))},d)}else this.timeSinceLive=0};
_.F.canShowLiveBadgeTimer=function(){var M=Date.now(),d,N;return M<(Number((d=this.liveBadgeData)==null?void 0:d.endTimestampSec)-1)*1E3&&M>Number((N=this.liveBadgeData)==null?void 0:N.startTimestampSec)*1E3};
_.Hm.Object.defineProperties(fW.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data;var d=this.timeSinceLive;var N,R,X,A;a:{var l=M.style;if(l===void 0)l=16;else switch(l){case "LIVE":l=17;break a;default:l=16}}d={type:l,text:d?M4A({seconds:d}):_.HD(M.text),accessibilityText:(N=M.text)==null?void 0:(R=N.accessibility)==null?void 0:(X=R.accessibilityData)==null?void 0:X.label,icon:(A=M.icon)==null?void 0:A.iconType}}else d={};return d}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return VUt.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
fW.prototype.initializeLiveBadgeTimer=fW.prototype.initializeLiveBadgeTimer;fW.prototype.dataChanged=fW.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],fW.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fW.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],fW.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],fW.prototype,"animated",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.a("design:type",Boolean)],fW.prototype,"hideTimeStatus",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fW.prototype,"hasIcon",void 0);_.G([_.H(),_.a("design:type",Object)],fW.prototype,"timeSinceLive",void 0);_.G([_.z("data","timeSinceLive"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"badgeShapeData",null);
_.G([_.z("data","overlayType"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fW.prototype,"hideBadgeShape",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fW.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"overlayStyle",null);
_.G([_.z("data.liveBadgeData"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"liveBadgeData",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.type"),_.a("design:type",Object),_.a("design:paramtypes",[])],fW.prototype,"overlayType",null);_.G([_.z("overlayType","overlayStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fW.prototype,"useFilledIcon",null);
_.G([_.NS("liveBadgeData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fW.prototype,"initializeLiveBadgeTimer",null);fW=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],fW);
_.L(fW,"ytd-thumbnail-overlay-time-status-renderer",function(){if(A0z!==void 0)return A0z;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return A0z=M},{mode:_.G3("kevlar_poly_si_batch_j035")?1:2});var lJd;var LW=function(){return _.n.apply(this,arguments)||this};
_.v(LW,_.n);LW.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"}}}}};
LW.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(M){if(this.hasPlaybackProgressBar)return{percentDurationWatched:M.percentDurationWatched}};
LW.prototype.computeHasPlaybackProgressBar=function(M){return!!M.percentDurationWatched&&M.percentDurationWatched>0};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.a("design:type",Boolean)],LW.prototype,"hasPlaybackProgressBar",void 0);
LW=_.G([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],LW);
_.L(LW,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(lJd!==void 0)return lJd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lJd=M},{mode:1});var $a3;_.aR(y0i);var Bvg=_.SG(function(M){var d=M.data;var N=M.children;var R=function(){return!!d().doubleStack};
return _.g("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!d().experimentEnabled}},_.g(_.kV,{cond:d,
then:function(){return _.g("div",null,_.g(_.kV,{cond:R,then:function(){var X={};return _.g("div",{class:_.xj("collections-stack-wiz__collection-stack2",function(){return d().customClassName2ndStack},(X["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return d().enableResponsiveMode},X)),
style:_.Xc({"background-color":function(){return r0i(d())}})})}}),_.g("div",{class:_.xj("collections-stack-wiz__collection-stack1",function(){return d().customClassName1stStack},function(){return KeN(d().thumbnailSize?d().thumbnailSize:"medium")}),
style:_.Xc({"background-color":function(){return r0i(d())}})}),N)}}))},"L");_.eC(Bvg,"yt-collections-stack",{props:{data:_.cA}});var th=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};M.webModernCollections=!1;M.isSearch=!1;M.isDoubleStack=!1;M.thumbnailSize="medium";M.enableWebModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(th,_.n);_.F=th.prototype;
_.F.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]]"}}}}}};
_.F.getThumbnailDetails=function(M){if(M!=null&&M.thumbnailRenderer){var d=M.thumbnailRenderer,N;if((N=d.playlistVideoThumbnailRenderer)==null?0:N.thumbnail)return d.playlistVideoThumbnailRenderer.thumbnail;var R;if((R=d.playlistCustomThumbnailRenderer)==null?0:R.thumbnail)return d.playlistCustomThumbnailRenderer.thumbnail;M=M.thumbnailRenderer;var X;if((X=M.showCustomThumbnailRenderer)==null?0:X.thumbnail)return M.showCustomThumbnailRenderer.thumbnail}};
_.F.computeOverlayColor=function(M){var d,N;if((d=this.getThumbnailDetails(M))==null?0:(N=d.darkColorPalette)==null?0:N.section2Color)return this.getThumbnailDetails(M).darkColorPalette.section2Color;var R;return(R=this.getThumbnailDetails(M))==null?void 0:R.sampledThumbnailColor};
_.F.computeWebModernCollections=function(M){if(M==null||!M.thumbnailOverlays)return!1;M=_.V(M.thumbnailOverlays);for(var d=M.next();!d.done;d=M.next()){var N=void 0;if((N=d.value)==null?0:N.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.F.computeNavigationEndpoint=function(M){return XFZ(M==null?void 0:M.navigationEndpoint)};
_.Hm.Object.defineProperties(th.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:M==null?void 0:M.sampledThumbnailColor,vibrantColorPalette:M==null?void 0:M.vibrantColorPalette,darkColorPalette:M==null?void 0:M.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(kwV),_.a("design:type",Object)],th.prototype,"ytdThumbnailBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],th.prototype,"componentBehavior",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],th.prototype,"watchFeedThumbnail",void 0);_.G([_.H(),_.a("design:type",Number)],th.prototype,"customThumbnailSize",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],th.prototype,"hideAria",void 0);_.G([_.H(),_.a("design:type",Object)],th.prototype,"data",void 0);_.G([_.H({computed:"computeOverlayColor(data)"}),_.a("design:type",Object)],th.prototype,"overlayColor",void 0);
_.G([_.H({computed:"computeWebModernCollections(data)"}),_.a("design:type",Object)],th.prototype,"webModernCollections",void 0);_.G([_.H({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],th.prototype,"computedNavigationEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],th.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],th.prototype,"isDoubleStack",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],th.prototype,"thumbnailSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],th.prototype,"enableWebModernCollectionsV2",void 0);_.G([_.z("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],th.prototype,"collectionStack",null);th=_.G([_.f({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],th);
_.L(th,"ytd-playlist-thumbnail",function(){if($a3!==void 0)return $a3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return $a3=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var kpe;var G4=function(){var M=_.n.apply(this,arguments)||this;M.noEndpoints=!1;M.amsterdamPostMvp=_.Q("web_amsterdam_post_mvp_playlists");M.badges=[];M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.v(G4,_.n);_.F=G4.prototype;_.F.getMetadata=function(M){if(!M)return[];var d=[],N=M.shortViewCountText||M.viewCountText;N&&d.push(_.HD(N));M.publishedTimeText&&d.push(_.HD(M.publishedTimeText));M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&d.push(_.r5(_.HD(M.upcomingEventData.upcomingEventText),Number(M.upcomingEventData.startTime)));return d};
_.F.observeDataForBylineSeparator=function(){this.data&&_.t2(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.F.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.p3(this.metadataColor)};
_.F.getSimpleString=function(M){return _.HD(M)};
_.F.isBylineHidden=function(M){return this.noByline||!((M==null?0:M.longBylineText)||(M==null?0:M.shortBylineText))};
_.F.isMetadataHidden=function(M){var d;return((d=this.getMetadata(M))==null?void 0:d.length)===0};
_.F.isBylineMetadataSeparatorHidden=function(M){return this.isMetadataHidden(M)||!this.shouldShowVideoInfo};
_.F.isLongByline=function(M,d){return d&&!(M==null||!M.longBylineText)};
_.Hm.Object.defineProperties(G4.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var M;return this.amsterdamPostMvp&&!((M=this.data)==null||!M.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
G4.prototype.metadataColorChanged=G4.prototype.metadataColorChanged;G4.prototype.observeDataForBylineSeparator=G4.prototype.observeDataForBylineSeparator;_.G([_.S(_.Op),_.a("design:type",Object)],G4.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],G4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],G4.prototype,"noEndpoints",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"isSlimShort",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"radioMeta",void 0);_.G([_.H({selector:_.KX}),_.a("design:type",Object)],G4.prototype,"isGridViewEnabled",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"richMeta",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],G4.prototype,"amsterdamPostMvp",void 0);_.G([_.H(),_.a("design:type",Boolean)],G4.prototype,"noByline",void 0);
_.G([_.H({computed:"isLongByline(data, radioMeta)"}),_.a("design:type",Boolean)],G4.prototype,"longByline",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"truncateMetadataLine",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"miniMode",void 0);_.G([_.H(),_.a("design:type",Number)],G4.prototype,"metadataColor",void 0);_.G([_.H(),_.a("design:type",Array)],G4.prototype,"badges",void 0);
_.G([_.H({selector:_.jp,selectorArgs:["data.videoId"]}),_.a("design:type",String)],G4.prototype,"transferState",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"isDownloading",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],G4.prototype,"typographyBump",void 0);_.G([_.Z3("#metadata-line"),_.a("design:type",HTMLElement)],G4.prototype,"metadataLine",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],G4.prototype,"observeDataForBylineSeparator",null);_.G([_.xB("metadataColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],G4.prototype,"metadataColorChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],G4.prototype,"shouldShowVideoInfo",null);
_.G([_.z("badges"),_.a("design:type",String),_.a("design:paramtypes",[])],G4.prototype,"inlineBadgeClass",null);_.G([_.z("longByline"),_.a("design:type",String),_.a("design:paramtypes",[])],G4.prototype,"longBylineClass",null);_.G([_.z("data","longByline"),_.a("design:type",Object),_.a("design:paramtypes",[])],G4.prototype,"bylineText",null);_.G([_.z("isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],G4.prototype,"watchFeedBigThumbs",null);
G4=_.G([_.f({is:"ytd-video-meta-block",disableElementRegistration:!0})],G4);
_.L(G4,"ytd-video-meta-block",function(){if(kpe!==void 0)return kpe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return kpe=M},{mode:_.G3("kevlar_poly_si_batch_j080")?1:2});_.pO("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var am=function(){var M=_.n.apply(this,arguments)||this;M.displayItemCount=2;M.isBackstagePlaylist=!1;M.isPostCompactPlaylist=!1;M.shouldShowChannelThumbnail=!1;M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(am,_.n);_.F=am.prototype;_.F.computeFirstVideos=function(M,d){return M===void 0||d===void 0?[]:M.slice(0,d)};
_.F.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var M=this.data.thumbnailRenderer;M.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",M.playlistVideoThumbnailRenderer.thumbnail);M.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",M.playlistCustomThumbnailRenderer.thumbnail)}};
_.F.computeThumbnailHeight=function(M,d,N,R,X){return R?X==="BIG"?280:X==="MASSIVE"?337:234:N?240:d?72:M?118:138};
_.F.computeThumbnailWidth=function(M,d,N,R,X){return R?X==="MEDIUM"?450:X==="BIG"?500:X==="MASSIVE"?600:420:N?360:d?128:M?210:246};
_.F.computeUseBiggerThumbs=function(M){return M&&_.Q("enable_desktop_search_bigger_thumbs")};
_.F.computeShouldShowChannelThumbnail=function(M,d){return M&&!(d==null||!d.channelThumbnail)};
_.Hm.Object.defineProperties(am.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
am.prototype.dataChanged=am.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],am.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],am.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],am.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],am.prototype,"displayItemCount",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],am.prototype,"isBackstagePlaylist",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],am.prototype,"isPostCompactPlaylist",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],am.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.a("design:type",Boolean)],am.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],am.prototype,"biggerThumbsStyle",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],am.prototype,"isDownloads",void 0);_.G([_.H({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.a("design:type",Object)],am.prototype,"shouldShowChannelThumbnail",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],am.prototype,"useModernCollectionsV2",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],am.prototype,"dataChanged",null);_.G([_.z("isSearch"),_.a("design:type",String),_.a("design:paramtypes",[])],am.prototype,"stackThumbnailSize",null);am=_.G([_.f({is:"ytd-playlist-renderer",disableElementRegistration:!0})],am);
_.L(am,"ytd-playlist-renderer",function(){if(UDd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);UDd=M}M=UDd;return M},{mode:1});var TvL;var Da3;var Uf=function(){var M=_.n.apply(this,arguments)||this;M.collections=!!_.Q("web_modern_collections_v2");M.startX=0;return M};
_.v(Uf,_.n);Uf.prototype.onEndpointMouseDown=function(M){this.startX=M.clientX};
Uf.prototype.onEndpointClick=function(M){this.startX!==M.clientX&&(M.preventDefault(),M.stopPropagation())};
Uf.prototype.computeObjectFit=function(M){return M==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Uf.prototype.computeCardStyle=function(M){return M?M.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Hm.Object.defineProperties(Uf.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.collections&&((M=this.data)==null?void 0:(d=M.searchRefinementCardRendererStyle)==null?void 0:d.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}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Uf.prototype,"data",void 0);_.G([_.H({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.a("design:type",Number)],Uf.prototype,"objectFit",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.a("design:type",String)],Uf.prototype,"cardStyle",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],Uf.prototype,"roundContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Uf.prototype,"collections",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uf.prototype,"isAlbumCard",null);_.G([_.z("data","collections","isAlbumCard"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uf.prototype,"collectionStack",null);
Uf=_.G([_.f({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Uf);
_.L(Uf,"ytd-search-refinement-card-renderer",function(){if(Da3!==void 0)return Da3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Da3=M},{mode:1});var grI;var u1=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(u1,_.n);_.G([_.H(),_.a("design:type",Object)],u1.prototype,"data",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],u1.prototype,"componentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],u1.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],u1.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],u1.prototype,"miniMode",void 0);
u1=_.G([_.f({is:"ytd-game-details-renderer",disableElementRegistration:!0})],u1);
_.L(u1,"ytd-game-details-renderer",function(){if(grI!==void 0)return grI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return grI=M},{mode:1});var Wem;var wBL;var CW=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return M};
_.v(CW,_.n);_.F=CW.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.currentStateData=function(M){var d=M||this.data;return d&&d.states&&d.currentStateId!=null?d.states.find(function(N){return N.stateId===d.currentStateId})||null:null};
_.F.currentStateRendererData=function(M){return(M=this.currentStateData(M))&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.F.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())};
_.F.computeButtonIcon=function(M){M=this.currentStateRendererData(M);var d;return(M==null?0:(d=M.icon)==null?0:d.iconType)?M.icon.iconType.toLowerCase():null};
_.F.computeAccessibility=function(M){return(M=this.currentStateRendererData(M))&&M.accessibilityData?M.accessibilityData.accessibilityData||null:null};
_.F.computeButtonClass=function(M){var d=this.currentStateRendererData(M);if(!d)return"";M="";var N=d.style;N&&(M+=N.toLowerCase().replace(/_/g,"-")+" ");(d=d.size)&&(M+=d.toLowerCase().replace(/_/g,"-")+" ");return M.trim()};
_.F.computeServiceEndpoint=function(M){if(!M)return null;var d=M&&M.serviceEndpoint,N=this.get("command.commandMetadata.webCommandMetadata.sendPost",M);return d?d:N&&M.command?M.command:null};
_.F.computeBellMenuItemParams=function(M){var d;M=(d=_.q(M==null?void 0:M.command,_.XP))==null?void 0:d.commands;if(!M||M.length===0)return null;d=_.q(M[0],_.Iu);var N,R;return(d==null?0:(N=d.popup)==null?0:(R=N.menuPopupRenderer)==null?0:R.items)?d.popup.menuPopupRenderer.items.map(function(X){return X.menuServiceItemRenderer.trackingParams}):null};
_.F.handleBellMenuOpenSelectedAction=function(M){var d=M.trackingParams,N=this.computeBellMenuItemParams(this.data);this.data&&d&&N&&N.includes(d)&&this.ytRenderButtonBehavior._setButtonIcon(M.icon.iconType.toLowerCase())};
_.F.onYtServiceRequestCompleted=function(M,d){(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",d))&&this.set("data",M)};
_.F.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.F.resetState=function(){this.set("data.currentStateId",3)};
_.F.onYtButtonTapHandler=function(){if(this.data){var M=this.currentStateRendererData(this.data);M&&this.ytRendererBehavior.logExplicitClick(M)}};
CW.prototype.onYtServiceRequestError=CW.prototype.onYtServiceRequestError;CW.prototype.onYtServiceRequestCompleted=CW.prototype.onYtServiceRequestCompleted;CW.prototype.stateChanged=CW.prototype.stateChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(Rd.YtRenderButtonBehavior),_.a("design:type",Object)],CW.prototype,"ytRenderButtonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CW.prototype,"data",void 0);_.G([_.NS("data","data.currentStateId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CW.prototype,"stateChanged",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],CW.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],CW.prototype,"onYtServiceRequestError",null);CW=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],CW);
_.L(CW,"ytd-subscription-notification-toggle-button-renderer",function(){if(wBL!==void 0)return wBL;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return wBL=M},{mode:1});var pBL;var x2=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};M.tapHandler=function(){if(M.data){var d=M.currentStateRendererData();d&&M.ytRendererBehavior.logExplicitClick(d)}};
return M};
_.v(x2,_.n);_.F=x2.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.currentStateData=function(){var M=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(d){return d.stateId===M.data.currentStateId})||null:null};
_.F.currentStateRendererData=function(){var M=this.currentStateData();return M&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.F.computeAccessibilityLabel=function(){var M,d,N;return(M=this.currentStateRendererData())==null?void 0:(d=M.accessibilityData)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label};
_.F.computeBellMenuItemParams=function(){var M,d,N=(d=_.q((M=this.data)==null?void 0:M.command,_.XP))==null?void 0:d.commands;if(!N||N.length===0)return null;M=_.q(N[0],_.Iu);var R,X;return(M==null?0:(R=M.popup)==null?0:(X=R.menuPopupRenderer)==null?0:X.items)?M.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.F.handleBellMenuOpenSelectedAction=function(M){var d=M.trackingParams,N=this.computeBellMenuItemParams();if(this.data&&d&&N&&N.includes(d)&&(M==null||!M.isDisabled)){var R;((R=_.q(M.serviceEndpoint,_.A$))==null?void 0:R.signal)!=="CLIENT_SIGNAL"&&(this.icon=M.icon.iconType)}};
_.F.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.F.onYtServiceRequestCompleted=function(M,d){if(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",d))this.icon=void 0,this.set("data",M)};
_.F.onYtServiceRequestError=function(){this.icon=void 0};
_.Hm.Object.defineProperties(x2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data,d=this.textLabel,N=this.hostElement,R=this.computeAccessibilityLabel(),X=this.tapHandler,A=this.isOverlay?"overlay":"mono",l=(M==null?0:M.disableButton)?"disabled":"active";d=d?_.Wz(d):void 0;return{style:A,type:"tonal",state:l,size:"M",focused:!1,formattedButtonText:d,iconPosition:"leading-trailing",onTap:Swi(M,X,N),accessibilityLabel:R}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.currentStateRendererData(),d,N,R=(N=this.icon)!=null?N:M==null?void 0:(d=M.icon)==null?void 0:d.iconType;if(R)return _.C6(R)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.secondaryIcon)==null?void 0:d.iconType;if(N)return _.C6(N)}}});
x2.prototype.onYtServiceRequestError=x2.prototype.onYtServiceRequestError;x2.prototype.onYtServiceRequestCompleted=x2.prototype.onYtServiceRequestCompleted;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],x2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],x2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],x2.prototype,"textLabel",void 0);
_.G([_.H(),_.a("design:type",String)],x2.prototype,"icon",void 0);_.G([_.H(),_.a("design:type",Boolean)],x2.prototype,"isOverlay",void 0);_.G([_.z("data.*","textLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],x2.prototype,"computedButtonShape",null);_.G([_.z("data.*","icon"),_.a("design:type",Object),_.a("design:paramtypes",[])],x2.prototype,"computedIcon",null);_.G([_.z("data.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],x2.prototype,"computedSecondaryIcon",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],x2.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],x2.prototype,"onYtServiceRequestError",null);x2=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],x2);
_.L(x2,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(pBL!==void 0)return pBL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return pBL=M},{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var maJ;_.Q("web_enable_sink_animated_actions")?_.eC(kvd,"yt-animated-action",{props:{backgroundLottieRef:_.cA,foregroundLottieRef:_.cA,wrapperClass:_.cA,disableAnimation:_.cA},unsafeExternallySettableAttributes:new Set(["key"])}):_.aA(WOZ,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var Y2=function(){var M=_.n.apply(this,arguments)||this;M.animatedActionEnabled=_.Q("web_animated_actions");M.foregroundLottieRef={};M.backgroundLottieRef={};M.forceIconOnly=!1;M.showTextWhileAnimating=!1;M.keyboardFocused=!1;M.isAnimating=!1;M.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return M};
_.v(Y2,_.n);_.F=Y2.prototype;_.F.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.F.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]]"}}}}}};
_.F.attached=function(){this.keyboardFocused=!1};
_.F.onYtServiceRequestSent=function(M,d){(this.get("endpoint.subscribeEndpoint",d)||this.get("endpoint.unsubscribeEndpoint",d))&&this.updateSubscriptionState(!this.subscribed)};
_.F.onYtServiceRequestCompleted=function(M,d){(M=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",d.data))&&this.bellButton&&(this.bellButton.data=M)};
_.F.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.UO(this.hostElement)};
_.F.onPlayerSubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.F.onPlayerUnsubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||this.updateSubscriptionState(!1)};
_.F.handleUpdateSubscribeButtonAction=function(M){M=_.q(M,DDj);var d;M&&M.channelId===((d=this.data)==null?void 0:d.channelId)&&this.updateSubscriptionState(!!M.subscribed)};
_.F.computeButtonStyle=function(M){return this.get("style.styleType",M)||null};
_.F.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.F.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.F.updateSubscriptionState=function(M){if(M!==this.subscribed){this.set("data.subscribed",M);var d,N=(d=this.data)==null?void 0:d.subscribedEntityKey;N&&this.ytdReduxBehavior.dispatch(_.la("subscriptionStateEntity",N,{key:N,subscribed:M}));this.isCompactRed()||_.YP(this.hostElement,"yt-subscription-changed",M);M||(_.ZI(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!M),M&&this.hasBellButton&&this.startAnimation())}};
_.F.startAnimation=function(){var M=this;if(!this.isAnimating){var d=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var N;(N=this.backgroundLottieRef.lottieEl)==null||N.goToAndPlay(0);var R;(R=this.foregroundLottieRef.lottieEl)==null||R.goToAndPlay(0);_.IQ.addJob(function(){M.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.IQ.addJob(function(){M.updateContainerToFitContent(!!M.subscribed,!0)},2,1500);
_.IQ.addJob(function(){M.isAnimating=!1},2,d)}};
_.F.maybeAnimateBellIcon=function(){var M=_.L3(this.hostElement).querySelector("yt-animated-icon");if(M){var d;(d=M.animationRef.lottieEl)==null||d.goToAndPlay(0)}};
_.F.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.F.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.F.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var M;this.unsubscribedWidth=(M=this.subscribeButtonShape)==null?void 0:M.getBoundingClientRect().width}var d;this.subscribedWidth=(d=this.bellButton)==null?void 0:d.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.F.updateContainerToFitContent=function(M,d){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(M?(M=this.subscribedWidth,d=this.isAnimating&&!d,this.subscribedIconOnlyWidth===void 0||d||(M=this.subscribedIconOnlyWidth),this.hostElement.style.width=M+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.F.clearContainerSize=function(){this.hostElement.style.width=""};
_.F.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.F.maybeSetSubscribedButtonIconOnlyWidth=function(){var M=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var d;M.subscribedIconOnlyWidth=(d=M.bellButton)==null?void 0:d.getBoundingClientRect().width;requestAnimationFrame(function(){if(M.bellButton){var N;M.bellButton.textLabel=
(N=M.data)==null?void 0:N.subscribedButtonText}})})))};
_.Hm.Object.defineProperties(Y2.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var M;return(M=this.data)==null?void 0:M.subscribedButtonText}var d;return this.forceIconOnly?void 0:(d=this.data)==null?void 0:d.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,d,N=((M=this.data)==null?void 0:(d=M.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"subscribe",timings:N,enabled:N.length>0&&!this.subscribed,experimentEnabled:N.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!this.subscribed&&((M=this.data)==null?void 0:M.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var d=M.renderer;var N=M.element;var R=M.subscribed;var X=M.commandController;var A=M.isOverlay;M=M.config;var l=HnZ(d,R);A&&(l.style="overlay");A=Object;var k=A.assign,T;a:switch((T=d.style)==null?void 0:T.styleType){case "COMPACT_GRAY":case "COMPACT_RED":T={size:"S"};break a;default:T={size:"M"}}var W=elq(d,R);var w=
(w=R?d.subscribedButtonText:d.unsubscribedButtonText)?_.Wz(w):void 0;return k.call(A,{},l,T,{focused:!1,toggled:R,accessibilityLabel:W,formattedButtonText:w,onTap:bni(d,M,R,N,X)})}}}});
Y2.prototype.onMouseDown=Y2.prototype.onMouseDown;Y2.prototype.onDataChanged=Y2.prototype.onDataChanged;Y2.prototype.observedSubscribed=Y2.prototype.observedSubscribed;Y2.prototype.onYtServiceRequestCompleted=Y2.prototype.onYtServiceRequestCompleted;Y2.prototype.onYtServiceRequestSent=Y2.prototype.onYtServiceRequestSent;Y2.prototype.maybeUpdateBellButtonText=Y2.prototype.maybeUpdateBellButtonText;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Y2.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Y2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Y2.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.subscribedEntityKey"],selector:_.xF}),_.a("design:type",Object)],Y2.prototype,"subscriptionStateEntity",void 0);_.G([_.H({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"subscribed",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"branded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y2.prototype,"animatedActionEnabled",void 0);
_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"foregroundLottieRef",void 0);_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"backgroundLottieRef",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"overlayButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.a("design:type",Object)],Y2.prototype,"buttonStyle",void 0);_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"forceIconOnly",void 0);
_.G([_.H(),_.a("design:type",Object)],Y2.prototype,"showTextWhileAnimating",void 0);_.G([_.H({value:function(){return!!_.h().resolve(_.CF(_.TH))&&_.Q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.a("design:type",Boolean)],Y2.prototype,"useKeyboardFocused",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y2.prototype,"keyboardFocused",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y2.prototype,"isAnimating",void 0);_.G([_.z("data.notificationPreferenceButton.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"hasBellButton",null);
_.G([_.xB("subscribedButtonText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y2.prototype,"maybeUpdateBellButtonText",null);_.G([_.z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"subscribedButtonText",null);_.G([_.z("data.timedAnimationData.animationTiming","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"smartimationSettings",null);
_.G([_.H({reflectToAttribute:!0}),_.z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"subscribeButtonHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("subscribed","hasBellButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"subscribeButtonInvisible",null);
_.G([_.H({reflectToAttribute:!0}),_.z("subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"unsubscribeButtonHidden",null);_.G([_.Z3("ytd-subscription-notification-toggle-button-renderer-next"),_.a("design:type",Object)],Y2.prototype,"bellButton",void 0);_.G([_.Z3("#subscribe-button-shape"),_.a("design:type",HTMLElement)],Y2.prototype,"subscribeButtonShape",void 0);
_.G([_.z("overlayButton","subscribed","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Y2.prototype,"buttonShape",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],Y2.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],Y2.prototype,"onYtServiceRequestCompleted",null);
_.G([_.xB("subscribed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y2.prototype,"observedSubscribed",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y2.prototype,"onDataChanged",null);_.G([_.C3("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y2.prototype,"onMouseDown",null);
Y2=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Y2);
_.L(Y2,"ytd-subscribe-button-renderer",function(){if(maJ!==void 0)return maJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return maJ=M},{mode:1});var Zl=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(Zl,_.n);Zl.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zl.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zl.prototype,"isRichGrid",void 0);Zl=_.G([_.f({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Zl);
_.L(Zl,"ytd-game-card-renderer",function(){if(Wem!==void 0)return Wem;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Wem=M},{mode:1});var Ef={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.Q("defer_menus")&&!RzV?0:void 0,waitForSignal:"eocs"};var hlC;var QB3;var MM=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return M};
_.v(MM,_.n);_.F=MM.prototype;_.F.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.F.onSeriesReminderStateEntityChange=function(){var M,d,N;((M=this.eventReminderStateEntity)==null?0:M.key)&&((d=this.seriesReminderStateEntity)==null?void 0:d.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((N=this.eventReminderStateEntity)==null?void 0:N.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.la("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.F.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.F.onYtServiceRequestError=function(){var M;this.updateReminderStateEntitiesFromButtonState((M=this.data)==null?void 0:M.currentState)};
_.F.handleUpdateUpcomingEventReminderButtonStateCommand=function(M){if(M=_.q(M,q9m)){var d,N=(d=this.data)==null?void 0:d.targetId;N&&M.targetId===N&&_.vu(this.updateReminderStateEntitiesFromButtonState.bind(this,M.state))}};
_.F.getButtonStateFromReminderState=function(){var M;if(((M=this.seriesReminderStateEntity)==null?void 0:M.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var d;if(((d=this.eventReminderStateEntity)==null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var N,R;if(((N=this.seriesReminderStateEntity)==null?void 0:N.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((R=this.eventReminderStateEntity)==
null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var X;return(X=this.data)==null?void 0:X.currentState};
_.F.updateReminderStateEntitiesFromButtonState=function(M){if(M){switch(M){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":M="UPCOMING_EVENT_REMINDER_STATE_NONE";var d="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":M="UPCOMING_EVENT_REMINDER_STATE_SINGLE";d="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":M="UPCOMING_EVENT_REMINDER_STATE_NONE";d="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var N;
((N=this.eventReminderStateEntity)==null?0:N.key)&&this.ytdReduxBehavior.dispatch(_.la("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:M})));var R;((R=this.seriesReminderStateEntity)==null?0:R.key)&&this.ytdReduxBehavior.dispatch(_.la("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:d})))}};
_.Hm.Object.defineProperties(MM.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.getButtonStateFromReminderState(),d,N;if(M&&((d=this.data)==null?0:(N=d.states)==null?0:N.length))for(d=_.V(this.data.states),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if(((R=_.q(N,IYC))==null?void 0:R.state)===M)return _.q(N,IYC)}}}});
MM.prototype.onYtServiceRequestError=MM.prototype.onYtServiceRequestError;MM.prototype.onYtServiceRequestCompleted=MM.prototype.onYtServiceRequestCompleted;MM.prototype.onSeriesReminderStateEntityChange=MM.prototype.onSeriesReminderStateEntityChange;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],MM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],MM.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MM.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Gwr}),_.a("design:type",Object)],MM.prototype,"eventReminderStateEntity",void 0);
_.G([_.H({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(M,d){return _.Rz(M.entities,"sportsSeriesReminderStateEntity",d)}}),
_.a("design:type",Object)],MM.prototype,"seriesReminderStateEntity",void 0);_.G([_.z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],MM.prototype,"currentButtonStateRenderer",null);_.G([_.xB("seriesReminderStateEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MM.prototype,"onSeriesReminderStateEntityChange",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MM.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MM.prototype,"onYtServiceRequestError",null);MM=_.G([_.f({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],MM);
_.L(MM,"ytd-upcoming-event-reminder-button-renderer",function(){if(QB3!==void 0)return QB3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return QB3=M},{mode:1});var qwg;var dV=function(){return _.n.apply(this,arguments)||this};
_.v(dV,_.n);dV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Hm.Object.defineProperties(dV.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(_.Q("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dV.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],dV.prototype,"shelfDismissal",void 0);_.G([_.z("data.responseText"),_.a("design:type",Object),_.a("design:paramtypes",[])],dV.prototype,"text",null);
_.G([_.z("data.responseText"),_.a("design:type",Object),_.a("design:paramtypes",[])],dV.prototype,"textAriaLabel",null);dV=_.G([_.f({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],dV);
_.L(dV,"ytd-notification-multi-action-renderer",function(){if(qwg!==void 0)return qwg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qwg=M},{mode:1});var IJJ;var NM=function(){return _.n.apply(this,arguments)||this};
_.v(NM,_.n);NM.prototype.ready=function(){var M=this;_.K(this.hostElement).querySelector("#undo").addEventListener("tap",function(){M.onUndoTap()})};
NM.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NM.prototype,"data",void 0);NM=_.G([_.f({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],NM);
_.L(NM,"ytd-notification-text-renderer",function(){if(IJJ!==void 0)return IJJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return IJJ=M},{mode:1});var vrt;var Rr=function(){var M=_.n.apply(this,arguments)||this;M.mouseOverDelayJobId=0;M.fadeInImageDelayJobId=0;M.startTimeMs=-1;M.loadingStartTimeMs=-1;M.loadingEndTimeMs=-1;M.hasVideoPreview=!1;return M};
_.v(Rr,_.n);_.F=Rr.prototype;_.F.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.F.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.F.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.F.showThumbnail=function(){var M=this;this.csn=_.Ou();_.ON("fmth");_.IQ.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Lq(_.IQ,function(){M.loadingStartTimeMs=(0,_.Gs)();var d=_.K(M.hostElement).querySelector("#thumbnail");d.complete?M.displayMouseOverImage():d.addEventListener("load",_.ux(M,M.displayMouseOverImage))},150):_.t2(_.K(this.hostElement).querySelector("#play"),"show",!0)};
_.F.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.F.onTap=function(){this.removeVideoPreview()};
_.F.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var M=this.videoId,d=this.csn,N=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,R=this.startTimeMs,X=this.hasVideoPreview,A=_.At(this.trackingParams),l={isMovingThumbnail:X};X&&R>0&&(N>0&&(l.movingThumbnailLoadingDurationMs=Math.round(N)),l.durationHoveredMs=Math.round((0,_.Gs)()-R));M&&(l.videoId=M);_.H1(d,A,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:l});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.F.removeVideoPreview=function(){_.IQ.cancelJob(this.mouseOverDelayJobId);_.IQ.cancelJob(this.fadeInImageDelayJobId);var M=_.K(this.hostElement).querySelector("#thumbnail");_.t2(M,"fade-in",!1);M.removeEventListener("load",_.ux(this,this.displayMouseOverImage));M=_.K(this.hostElement).querySelector("#play");_.t2(M,"fade-in",!1);_.t2(M,"show",!1)};
_.F.displayMouseOverImage=function(){var M=_.K(this.hostElement).querySelector("#thumbnail"),d=_.K(this.hostElement).querySelector("#play");this.isImageAvailable(M)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Gs)(),this.startTimeMs=(0,_.Gs)(),this.fadeInImageDelayJobId=_.Lq(_.IQ,function(){_.t2(M,"fade-in",!0)},50)):_.t2(d,"fade-in",!0)};
_.F.computeThumbnail=function(M,d){var N;M&&M.movingThumbnailDetails&&M.movingThumbnailDetails.thumbnails&&d?N=_.Hz(M.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):N=d?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(N)return _.gH(N)};
_.F.isImageAvailable=function(M){return!(!M.src||M.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||M.naturalWidth===120)};
Rr.prototype.onTap=Rr.prototype.onTap;Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Rr.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rr.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Rr.prototype,"csn",void 0);_.G([_.H(),_.a("design:type",Object)],Rr.prototype,"trackingParams",void 0);
_.G([_.H(),_.a("design:type",String)],Rr.prototype,"videoId",void 0);_.G([_.H(),_.a("design:type",Boolean)],Rr.prototype,"isAttachedAndDataSet",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rr.prototype,"dataChanged",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rr.prototype,"onTap",null);Rr=_.G([_.f({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Rr);
_.L(Rr,"ytd-moving-thumbnail-renderer",function(){if(vrt!==void 0)return vrt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return vrt=M},{mode:1});var Ong;_.TM=function(M){this.hostElement=M;this.eventSink=null;this.eventList=[]};
_.TM.prototype.shouldForward=function(){var M,d;return(d=(M=this.eventSink)==null?void 0:M.isConnected)!=null?d:document.body.contains(this.eventSink)};
_.TM.prototype.start=function(M,d){this.eventSink&&this.stop();for(var N=0;N<M.length;N++)this.hostElement.addEventListener(M[N],_.ux(this,this.forwardEvent));var R;this.eventSink=(R=d.hostElement)!=null?R:d;this.eventList=M};
_.TM.prototype.stop=function(){for(var M=0;M<this.eventList.length;M++)this.hostElement.removeEventListener(this.eventList[M],_.ux(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.TM.prototype.forwardEvent=function(M,d){this.shouldForward()&&(M.stopPropagation(),this.eventSink instanceof Element?_.YP(this.eventSink,M.type,d):_.vh(new _.WJ("eventSink is not an element")))};_.Xr={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.TM(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(M,d){this.forwarder_.start(M,d)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Fr=function(){return _.n.apply(this,arguments)||this};
_.v(Fr,_.n);_.F=Fr.prototype;_.F.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=_.rK("HTML_DIR")==="rtl"?"right":"left"};
_.F.dataChanged=function(){this.popupOpen=!1};
_.F.computeAriaLabel=function(M){return _.q(M,exL).label};
_.F.onTap=function(M){M.stopPropagation();M.preventDefault();this.data.command&&_.h().resolve(_.xV).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.F.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.F.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Fr.prototype.onPopupClosed=Fr.prototype.onPopupClosed;Fr.prototype.onPopupOpened=Fr.prototype.onPopupOpened;Fr.prototype.onTap=Fr.prototype.onTap;Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Fr.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.oH),_.a("design:type",Object)],Fr.prototype,"ironButtonState",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Fr.prototype,"componentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Fr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:-1}),_.a("design:type",Number)],Fr.prototype,"tabindex",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.a("design:type",Object)],Fr.prototype,"ariaLabel",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Fr.prototype,"disableTooltips",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fr.prototype,"popupOpen",void 0);
_.G([_.H(),_.a("design:type",Element)],Fr.prototype,"eventSink",void 0);_.G([_.Z3("#tooltip"),_.a("design:type",Object)],Fr.prototype,"tooltip",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fr.prototype,"dataChanged",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Fr.prototype,"onTap",null);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fr.prototype,"onPopupOpened",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fr.prototype,"onPopupClosed",null);Fr=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Fr);
_.L(Fr,"ytd-thumbnail-overlay-button-renderer",function(){if(Ong!==void 0)return Ong;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Ong=M},{mode:1});var jBC;var Az=function(){return _.n.apply(this,arguments)||this};
_.v(Az,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Az.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"disableAnimation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"rounded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"transparentBackground",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Az.prototype,"noPadding",void 0);Az=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Az);
_.L(Az,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(jBC!==void 0)return jBC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jBC=M},{mode:1});var sBL;var V4=function(){return _.n.apply(this,arguments)||this};
_.v(V4,_.n);V4.prototype.computeIconPosition=function(M){return this.get("iconPosition",M)||null};
V4.prototype.computeIconStyle=function(M){return this.get("iconStyle",M)||null};
V4.prototype.computeIsIconStyleFilled=function(M){if(!M)return!1;var d;return M.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((d=M.icon)==null?void 0:d.iconType)==="ERROR_BLACK"};
_.G([_.H(),_.a("design:type",Object)],V4.prototype,"data",void 0);_.G([_.H({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.a("design:type",Object)],V4.prototype,"iconPosition",void 0);_.G([_.H({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.a("design:type",Object)],V4.prototype,"iconStyle",void 0);_.G([_.H({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],V4.prototype,"iconStyleFilled",void 0);
V4=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],V4);
_.L(V4,"ytd-thumbnail-overlay-icon-renderer",function(){if(sBL!==void 0)return sBL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return sBL=M},{mode:1});var Ppm;var lK=function(){return _.n.apply(this,arguments)||this};
_.v(lK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lK.prototype,"data",void 0);lK=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],lK);
_.L(lK,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Ppm!==void 0)return Ppm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ppm=M},{mode:1});var or3;var $l=function(){var M=_.n.apply(this,arguments)||this;M.isPreviewLoading=!1;return M};
_.v($l,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$l.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$l.prototype,"isPreviewLoading",void 0);$l=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],$l);
_.L($l,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(or3!==void 0)return or3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return or3=M},{mode:1});var r0d;var BI=function(){return _.n.apply(this,arguments)||this};
_.v(BI,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BI.prototype,"data",void 0);BI=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],BI);
_.L(BI,"ytd-thumbnail-overlay-pinking-renderer",function(){if(r0d!==void 0)return r0d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return r0d=M},{mode:1});var KeI;var kl=function(){var M=_.n.apply(this,arguments)||this;M.disableTooltips=!1;M.isLoading=!1;M.useExpandableTooltip=!1;M.toggled=!1;M.hovered=!1;M.mouseoverDelayJobId=0;M.toggleDelayJobId=0;M.expandAnimationDelayJobId=0;return M};
_.v(kl,_.n);_.F=kl.prototype;_.F.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");_.K(this.hostElement).querySelector("#tooltip").position=_.rK("HTML_DIR")==="rtl"?"right":"left"};
_.F.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.IQ.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.IQ.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.IQ.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.F.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.IQ.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.IQ.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.IQ.cancelJob(this.expandAnimationDelayJobId)};
_.F.computeIcon=function(M,d,N){return(M=N?d:M)&&M.iconType?_.C6(M.iconType):void 0};
_.F.computeAriaLabel=function(M,d,N){return _.q(N?d:M,exL).label};
_.F.computeTooltip=function(M,d,N){return N?d:M};
_.F.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.F.computeIconOnHover=function(M,d){if((M==null?0:M.iconType)&&!d)return _.C6(M.iconType)};
_.F.onTap=function(M){var d=this;M.stopPropagation();M.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(M),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Lq(_.IQ,function(){d.hovered=!1;d.data&&!d.data.toggledServiceEndpoint&&(d.expandAnimationDelayJobId=_.Lq(_.IQ,function(){d.set("data.isToggled",
!1)},200))},2E3))};
_.F.onMouseenter=function(){var M=this;this.mouseoverDelayJobId=_.Lq(_.IQ,function(){M.hovered=!0},300)};
_.F.onMouseleave=function(){_.IQ.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.F.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.F.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.F.onServiceRequestCompleted=function(M,d){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(d)||this.set("data.isToggled",!this.data.isToggled)};
_.F.serviceRequestWasSuccessful=function(M){return _.q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Pq)?M.data.status==="STATUS_SUCCEEDED":!0};
kl.prototype.onServiceRequestCompleted=kl.prototype.onServiceRequestCompleted;kl.prototype.onPopupClosed=kl.prototype.onPopupClosed;kl.prototype.onPopupOpened=kl.prototype.onPopupOpened;kl.prototype.onMouseleave=kl.prototype.onMouseleave;kl.prototype.dataChanged=kl.prototype.dataChanged;_.G([_.S(_.oH),_.a("design:type",Object)],kl.prototype,"ironButtonState",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],kl.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kl.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.a("design:type",Object)],kl.prototype,"ariaLabel",void 0);_.G([_.H(),_.a("design:type",Object)],kl.prototype,"disableTooltips",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kl.prototype,"popupOpen",void 0);_.G([_.H(),_.a("design:type",Object)],kl.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Element)],kl.prototype,"eventSink",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kl.prototype,"useExpandableTooltip",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.a("design:type",Object)],kl.prototype,"toggled",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kl.prototype,"hovered",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.a("design:type",Object)],kl.prototype,"iconOnHover",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"dataChanged",null);
_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"onMouseleave",null);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"onPopupOpened",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kl.prototype,"onPopupClosed",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],kl.prototype,"onServiceRequestCompleted",null);kl=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],kl);
_.L(kl,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(KeI!==void 0)return KeI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return KeI=M},{mode:_.G3("kevlar_poly_si_batch_j053")?1:2});var y0L;var J0I=_.SG(function(M){var d=M.data;var N=function(){return d().enableSegmentView};
return _.g("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.g(_.kV,{cond:N,then:function(){return _.g("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.g("div",{class:_.ZH("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+d().startPercent+"%"}}),_.g("div",{class:_.ZH("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+d().segmentDurationPercent+"%"}},_.g("div",{class:_.ZH("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.g("div",null," ",function(){return d().segmentLabel})),_.g("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.g("div",{class:_.ZH("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.g(_.kV,{cond:function(){return!N()&&d().startPercent},
then:function(){var R={};return _.g("div",{class:_.ZH("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(R.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.Q("web_enable_modern_progress_bar_overlay"),R))},_.g("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+d().startPercent+"%"}}))}}))},"M");
J0I.idomCompat=!0;var c0o=_.SG(function(M){var d=_.EL(),N=_.hI(function(X){var A,l,k;a:{var T=(A=M.data())==null?void 0:A.animationActivationTargetId;A=((l=M.data())==null?void 0:l.animationActivationEntityKey)||"";l=(k=M.data())==null?void 0:k.animationActivationEntitySelectorType;if(A&&T)switch(l){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":X=_.Rz(X.entities,"playerStateEntity",A);k=_.h().resolve(_.CF(_.et));T=!!(X&&X.videoId===T&&(k==null?0:k.isMiniplayerActive()));T={activated:T,playAnimation:T&&
X.playerState==="PLAYER_STATE_PLAYING"};break a}T=void 0}return T});
_.Wg(function(){var X;if((X=N())==null?0:X.activated){var A;if((A=N())==null?0:A.playAnimation){var l;(l=d.lottieEl)==null||l.goToAndPlay(0)}else{var k;(k=d.lottieEl)==null||k.goToAndStop(0)}}});
var R=function(){var X,A=!((X=N())==null||!X.activated);if(M.data()){X=M.data();var l=void 0;X.icon&&(l=Jf6(X.icon),l=nmi(l));var k=void 0,T;if((T=X.backgroundColor)==null?0:T.lightTheme){var W;k={backgroundColor:h2((W=X.backgroundColor)==null?void 0:W.lightTheme,"0.8")}}if(X.text||l||A){if(A&&X.lottieData&&d){W=X.lottieData;var w,p,m;T={animationConfig:{name:W.url,path:W.url,autoplay:(w=W.settings)==null?void 0:w.autoplay,loop:(m=(p=W.settings)==null?void 0:p.loop)!=null?m:!0},animationRef:d}}else T=
void 0;if(A)w=16;else b:switch(X.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":w=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":w=18;break b;default:w=16}A={type:w,text:A&&X.animatedText?X.animatedText:X.text,icon:l,customColors:k,animation:T}}else A=void 0}else A=void 0;return A};
return _.g("yt-thumbnail-badge-view-model",{class:_.xj("yt-thumbnail-badge-view-model-wiz",M.class)},_.g(_.kV,{cond:R,then:function(){return _.g(_.a0,{data:function(){return R()}})}}))},"N");var SwL=_.SG(function(M){var d={};return _.g("yt-thumbnail-bottom-overlay-view-model",{class:_.xj("ytThumbnailBottomOverlayViewModelHost",(d.ytThumbnailBottomOverlayViewModelHostBackground=function(){return M.data().enableGradientBackground},d))},_.g("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.g(_.ho,{data:function(){return M.data().progressBar}},{thumbnailOverlayProgressBarViewModel:J0I}),_.g(_.ho,{data:function(){return M.data().badge}},{thumbnailBadgeViewModel:function(N){return _.g(c0o,
{data:N.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.g(_.ho,{data:function(){return M.data().badges}},{thumbnailBadgeViewModel:function(N){return _.g(c0o,{data:N.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
SwL.idomCompat=!0;_.eC(SwL,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.bI}});var CpZ={calledOnce:!1,state:"visible"},xaL={calledOnce:!1,state:"hidden"};_.aR(ErL);var zl3=_.SG(function(M){var d=M.data;var N=M.className;M=M.alwaysShow;var R=_.e5();_.ek(R,function(){return d().rendererContext});
var X=_.inS(),A={};return _.g("thumbnail-hover-overlay-view-model",{el:R,class:_.xj("ytThumbnailHoverOverlayViewModelHost",N,(A.ytThumbnailHoverOverlayViewModelHostForceHover=M,A)),"aria-label":function(){var l;return(l=_.q(d().rendererContext,_.H5))==null?void 0:l.label},
role:function(){return _.Sk(d().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Sk(d().rendererContext)!==void 0?0:void 0},
"on:keypress":X},_.g("div",{class:_.xj("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(d().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var l="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:l="ytThumbnailHoverOverlayViewModelStyleCover"}return l})},_.g(_.kV,{cond:function(){return d().icon},
then:function(l){return _.g(_.Jt,{data:l,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.g(_.kV,{cond:function(){return d().text},
then:function(l){return _.g(_.lG,{text:l,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),bnd=_.Q("web_enable_sink_lockups_batch")?zl3:ErL,elz=_.Q("web_enable_sink_lockups_batch")?zl3:_.Ez(ErL);
zl3.idomCompat=!0;var ia=_.SG(function(M){var d=M.data;return _.g(_.ho,{data:function(){return d==null?void 0:d().overlays}},{thumbnailHoverOverlayViewModel:elz})},"Q");
ia.idomCompat=!0;var Hn3={};var nX=_.SG(function(M){var d=M.data;var N=M.image;var R=M.state;var X=M.iconType;var A=M.overlays;var l=M.isOverlay;var k=_.Hh();M=_.V(_.d0(!0,void 0,"xOB8yb"));var T=M.next().value,W=M.next().value,w=_.Jy(X,"LIVE");_.Wg(function(){var m=d();requestAnimationFrame(function(){if(k.value===null)var I=!0;else{var O=k.value;I=m.badgeText;var y=MWS(m.size);I in Hn3?O=Hn3[I]:(O=O.clientWidth,Hn3[I]=O);(I=O>y)?k.value.style.display="none":k.value.style.visibility="visible"}W(I)})});
var p=function(){var m={};return m["yt-spec-avatar-shape__image"]=!0,m["yt-spec-avatar-shape__image--ads-app"]=d().type===1,m};
X=_.dT(function(m){var I,O;return void((O=(I=d()).onTap)==null?void 0:O.call(I,m))});
return _.g("yt-avatar-shape",null,_.g("div",{class:function(){var m={};m=(m["yt-spec-avatar-shape"]=!0,m["yt-spec-avatar-shape__button"]=!0,m[NiA(d().size)]=!0,m["yt-spec-avatar-shape__button--tappable"]=!!d().onTap,m);var I=d().avatarButtonCustomClassName;I&&(m[I]=!0);return _.ZH(m)},
"on:click":X,"on:keydown":_.Jo(),"aria-label":function(){return d().onTap?d().accessibilityText:""},
role:function(){return d().onTap?"button":void 0},
tabindex:function(){return d().onTap?0:void 0}},_.g("div",{class:function(){var m,I=d(),O=R==null?void 0:R(),y=l==null?void 0:l(),c=!((m=I.decorations)==null||!m.includes(2)||I.size!=="medium"&&I.size!=="large"),e=I.size==="tiny"||I.size==="extra-small",t,C,U,Fi,Y={};
m=(Y["yt-spec-avatar-shape--live-ring"]=!!(((t=I.decorations)==null?0:t.includes(0))&&XHS(I.size)),Y["yt-spec-avatar-shape--stories-watched"]=c&&!(O==null||!O.storiesWatched),Y["yt-spec-avatar-shape--stories-unwatched"]=c&&!(O==null?0:O.storiesWatched),Y["yt-spec-avatar-shape--background-border"]=Fc6(I.decorations)&&!e,Y["yt-spec-avatar-shape--background-border-thin"]=Fc6(I.decorations)&&e,Y["yt-spec-avatar-shape__on-select-border"]=!((C=I.decorations)==null||!C.includes(4)),Y["yt-spec-avatar-shape__white-border"]=
!((U=I.decorations)==null||!U.includes(5)),Y["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((Fi=I.decorations)==null?0:Fi.includes(5))&&e),Y["yt-spec-avatar-shape--is-overlay"]=!!y,Y);return _.ZH(m)}},_.g("div",{class:function(){var m={};
m=(m[dJr(d().size)]=!0,m["yt-spec-avatar-shape--no-margin"]=Fc6(d().decorations),m);return _.ZH(m)}},_.g(_.Jt,{data:N,
alt:function(){return!d().onTap&&d().accessibilityText?d().accessibilityText:""},
targetWidth:function(){return R_Z(d().size)},
targetHeight:function(){return R_Z(d().size)},
className:function(){return _.ZH(p())}}),_.g(_.kV,{cond:function(){var m;
return((m=d().decorations)==null?void 0:m.includes(0))&&XHS(d().size)},
then:function(){return _.g("div",{class:function(){var m={};m=(m["yt-spec-avatar-shape__live-badge"]=!0,m["yt-spec-avatar-shape__live-badge--badge-small"]=d().size==="small",m["yt-spec-avatar-shape__live-badge--badge-medium"]=d().size==="medium"||d().size==="48",m["yt-spec-avatar-shape__live-badge--badge-large"]=d().size==="large",m["yt-spec-avatar-shape__live-badge--badge-extra-large"]=d().size==="extra-large"||d().size==="extra-extra-large"||d().size==="giant",m);return _.ZH(m)}},_.g(_.kV,{cond:function(){return d().badgeText},
then:function(m){return _.g("div",{class:"yt-spec-avatar-shape__badge-text",el:k},m)}}),_.g(_.kV,{cond:T,
then:function(){return _.g("div",{class:"yt-spec-avatar-shape__badge-icon"},_.g(_.Fc,{icon:w,size:function(){a:switch(d().size){case "extra-large":var m=16;break a;default:m=13}return m}}))}}))}}),_.g(_.kV,{cond:function(){var m,I;
return((m=d().decorations)==null?void 0:m.includes(1))||((I=d().decorations)==null?void 0:I.includes(0))&&!XHS(d().size)},
then:function(){return _.g("div",{class:function(){var m=d(),I,O,y={};var c=(y["yt-spec-avatar-shape__live-dot"]=!((I=m.decorations)==null||!I.includes(0)||XHS(m.size)),y["yt-spec-avatar-shape__new-content"]=!((O=m.decorations)==null||!O.includes(1)),y);return _.ZH(c)}})}}),_.ez(A,function(){return _.g("div",{class:function(){var m={};
m=Object.assign((m["yt-spec-avatar-shape__image-overlays"]=!0,m),p());return _.ZH(m)}},A==null?void 0:A())})))))},"R");
nX.idomCompat={callbacks:{overlays:!0}};var nrI=_.SG(function(M){function d(){N().endpoint&&_.vz(N().endpoint)}
var N=M.data;var R=M.decorations;var X=M.avatarButtonCustomClassName;var A=M.isOverlay;return _.g("avatar-view-model",null,_.g(_.kV,{cond:function(){return N().image},
then:function(l){return _.g(nX,{data:function(){return VW2({data:N(),onTap:N().endpoint?d:void 0,decorations:R==null?void 0:R(),badgeText:void 0,accessibilityText:N().accessibilityText,avatarButtonCustomClassName:X==null?void 0:X()})},
image:l,iconType:"RADAR_LIVE",overlays:function(){return _.g(ia,{data:N})},
isOverlay:A})}}))},"S");
nrI.idomCompat=!0;_.If=_.Q("mweb_enable_sink_avatar_view_model")||_.Q("web_enable_sink_avatars_batch")?nrI:leA;_.TS=_.Q("mweb_enable_sink_avatar_view_model")||_.Q("web_enable_sink_avatars_batch")?nrI:_.Ez(_.If);_.aR(leA);_.aR(Tii);var inV,fJJ;inV=_.SG(function(M){var d=M.data;M=M.className;var N=_.Hh(),R=function(){return _.q(d().avatar,_.fX)},X=_.Al(function(){var A,l=d(),k=R(),T=_.Sk(d().rendererContext),W=(A=N.value)!=null?A:void 0;
return k?BiZ({data:l,avatar:k,onTap:T,element:W}):{size:"medium"}},void 0,"v09a6");
return _.g("yt-decorated-avatar-view-model",{class:_.xj("yt-decorated-avatar-view-model-wiz",M),el:N},_.g(_.kV,{cond:function(){var A;return(A=R())==null?void 0:A.image},
then:function(A){return _.g(nX,{data:X,image:A,iconType:"RADAR_LIVE",overlays:function(){return _.g(ia,{data:R})}})}}))},"T");
fJJ=_.Q("web_enable_sink_avatars_batch")?inV:Tii;_.Dg=_.Q("web_enable_sink_avatars_batch")?inV:_.Ez(Tii);inV.idomCompat=!0;var wHN=_.W5({avatarViewModel:_.If,decoratedAvatarViewModel:fJJ});_.aR(pHZ);var LeJ;LeJ=_.SG(function(M){var d=_.e5(),N=function(){return d&&_.zH(M.data().rendererContext)};
_.ek(d,function(){return M.data().rendererContext});
var R=function(){var A=M.data().avatars,l,k;return(k=(l=(A==null?0:A[0])?_.q(A[0],_.fX):void 0)==null?void 0:l.avatarImageSize)!=null?k:"AVATAR_SIZE_UNKNOWN"},X={};
return _.g("yt-avatar-stack-view-model",{el:d,class:_.xj("yt-avatar-stack-view-model-wiz",M.className,(X["yt-avatar-stack-view-model-wiz--tappable"]=N,X["yt-avatar-stack-view-model-wiz--is-overlay"]=M.isOverlay,X["yt-avatar-stack-view-model-wiz--medium-text"]=M.useMediumText,X)),tabindex:function(){return N()?0:void 0},
role:function(){return N()?"link":void 0},
"aria-label":function(){var A,l;return(l=(A=_.q(M.data().rendererContext,_.H5))==null?void 0:A.label)!=null?l:""}},_.g(_.kV,{cond:function(){var A;
return M.data().avatars&&!((A=M.hideAvatar)==null?0:A.call(M))},
then:function(){return _.g("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.g(_.kV,{cond:function(){return M.data().decoratedText},
then:function(A){var l={};return _.g("div",{class:_.xj("yt-avatar-stack-view-model-wiz__text-container",(l["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS"},l["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var k;
return((k=M.isOverlay)==null?void 0:k.call(M))&&(R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS")},l)),
style:_.Xc({width:function(){return mJ6(R())+"px"},
height:function(){return mJ6(R())+"px"}})},_.g(_.lG,{text:A,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.g(_.ho,{data:function(){return M.data().avatars.slice().reverse()}},{avatarViewModel:function(A){return _.g("div",{class:function(){return h_2(R())}},_.g(_.TS,{data:A.data,
decorations:function(){var l;if((l=M.decorations)==null?0:l.call(M))l=M.decorations();else{l=M.data();var k=0;l.avatars&&(k+=l.avatars.length);l.decoratedText&&(k+=1);l=k>1?[3]:[]}return l},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:M.isOverlay}))},
decoratedAvatarViewModel:function(A){return _.g("div",{class:function(){return h_2(R())}},_.g(_.Dg,{data:A.data}))}}))}}),_.g(_.kV,{cond:function(){return M.data().text},
then:function(A){return _.g(_.lG,{text:A,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.tUL=_.Q("web_enable_sink_avatars_batch")?LeJ:pHZ;_.gV=_.Q("web_enable_sink_avatars_batch")?LeJ:_.Ez(pHZ);LeJ.idomCompat=!0;_.eC(_.SG(function(M){var d=M.data;var N=M.thumbnailSize;return _.g("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.g("div",{class:_.xj("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return QYZ(N==null?void 0:N())})},_.g(_.ho,{data:function(){return d().avatarStack}},{avatarStackViewModel:function(R){return _.g(_.gV,{data:R.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.cA,
thumbnailSize:_.cA}});_.aR(qE2);var Gpo=_.SG(function(M){M=_.cu(M,{hidden:!1});var d=M.data;return _.g("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:M.hidden},_.g(_.lG,{text:function(){return d().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(){return _.g(_.lG,{text:function(){return d().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),aJV=_.Q("web_enable_sink_lockups_batch")?Gpo:qE2,UaL=_.Q("web_enable_sink_lockups_batch")?Gpo:_.Ez(qE2);
Gpo.idomCompat=!0;_.Q("web_enable_sink_lockups_batch")?_.eC(UaL,"yt-thumbnail-overlay-title-view-model",{props:{data:_.cA,hidden:_.cA}}):_.aA(aJV,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var uaJ=_.SG(function(M){M=_.cu(M,{isClip:!1});var d=M.data,N=M.thumbnailSize,R={};return _.g("yt-thumbnail-overlay-badge-view-model",{class:_.xj("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(d().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var X="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:X="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return X},function(){return IeS(N==null?void 0:N())},(R["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
M.isClip,R))},_.g(_.ho,{data:function(){return d().thumbnailBadges}},{thumbnailBadgeViewModel:function(X){return _.g(c0o,{data:X.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
uaJ.idomCompat=!0;_.eC(uaJ,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.cA,thumbnailSize:_.cA,isClip:_.cA}});_.aR(voq);_.aA(voq,"yt-page-indicator-view-model",{propNames:["data"]});var WI=function(){var M=_.n.apply(this,arguments)||this;M.eventSink=function(){return M};
M.disableInteraction=!1;M.noRoundedCorners=!1;M.isPreviewLoading=!1;M.isOriginalAspectRatio=!1;M.computedObjectFit=!1;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return M};
_.v(WI,_.n);_.F=WI.prototype;
_.F.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:_.Q("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"}}};
_.F.onImageLoaded=function(){this.loaded=!0};
_.F.onImageUnloaded=function(){this.loaded=!1};
_.F.computeRichThumbnail=function(M,d,N,R){if(M&&d&&!R&&!_.Q("disable_moving_thumbs_handling")&&!N)return d};
_.F.computeImageWidth=function(M,d){return d||9999};
_.F.computeIsOriginalAspectRatio=function(M){return M};
_.F.computeIsLive=function(M){if(M==null?0:M.badges)for(var d=0;d<M.badges.length;d++){var N=M.badges[d];if(N.metadataBadgeRenderer&&N.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(M==null?0:M.thumbnailOverlays)for(d=0;d<M.thumbnailOverlays.length;d++)if(N=M.thumbnailOverlays[d],N.thumbnailOverlayTimeStatusRenderer&&N.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.F.computeObjectFit=function(M,d){return d||(M?"CONTAIN":"")};
_.F.computeNavigationEndpoint=function(M,d,N){return M?d:N};
_.F.computeHasClip=function(M){M=_.V(M||[]);for(var d=M.next();!d.done;d=M.next())if(d.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.F.computeOverlayColor=function(M){var d;return(M==null?0:(d=M.darkColorPalette)==null?0:d.section2Color)?M.darkColorPalette.section2Color:M==null?void 0:M.sampledThumbnailColor};
_.Hm.Object.defineProperties(WI.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return bG(this.width)}}});
WI.prototype.onImageUnloaded=WI.prototype.onImageUnloaded;WI.prototype.onImageLoaded=WI.prototype.onImageLoaded;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],WI.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(kwV),_.a("design:type",Object)],WI.prototype,"ytdThumbnailBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],WI.prototype,"componentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WI.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"circular",void 0);
_.G([_.H({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.a("design:type",Object)],WI.prototype,"richThumbnail",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.a("design:type",Boolean)],WI.prototype,"hasClip",void 0);_.G([_.H(),_.a("design:type",Object)],WI.prototype,"eventSink",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"queued",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"richGridThumbnail",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"useExpandableTooltip",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"useUntranslatedNavigationEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WI.prototype,"disableInteraction",void 0);
_.G([_.H({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.a("design:type",Object)],WI.prototype,"computedNavigationEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"nowPlayingEqualizerOnly",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"hidePlaybackStatus",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],WI.prototype,"objectFit",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WI.prototype,"noRoundedCorners",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WI.prototype,"watchFeedThumbnail",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WI.prototype,"isPreviewLoading",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.a("design:type",Object)],WI.prototype,"isOriginalAspectRatio",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.a("design:type",Object)],WI.prototype,"computedObjectFit",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.a("design:type",Boolean)],WI.prototype,"isLiveVideo",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],WI.prototype,"loaded",void 0);_.G([_.H({computed:"computeOverlayColor(data.thumbnail)"}),_.a("design:type",Object)],WI.prototype,"overlayColor",void 0);_.G([_.H({selector:_.y6j}),_.a("design:type",Boolean)],WI.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.H(),_.a("design:type",Number)],WI.prototype,"width",void 0);
_.G([_.z("inlinePreviewIsEnabled"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WI.prototype,"isPreviewDisabled",null);_.G([_.z("width"),_.a("design:type",String),_.a("design:paramtypes",[])],WI.prototype,"thumbnailSize",null);_.G([_.C3("image-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WI.prototype,"onImageLoaded",null);
_.G([_.C3("image-unloaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WI.prototype,"onImageUnloaded",null);WI=_.G([_.f({disableElementRegistration:!0,is:"ytd-thumbnail"})],WI);
var Cpd=_.ty()(WI,"ytd-thumbnail",function(){if(y0L===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);y0L=M}M=y0L;return M},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var PAZ=function(M){var d=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12666_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12666_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(N){xaC(d,N)};
this.onLockupMouseLeaveFn=function(N){N=N.relatedTarget;var R,X;((R=document.getElementsByTagName("ytd-video-preview"))==null?0:(X=R.item(0))==null?0:X.contains(N))||(d.terminateVideoPreview(),wV(d))};
this.onThumbnailMouseDownFn=function(){d.terminateVideoPreview();wV(d)};
this.onTouchStart=function(){d.JSC$12666_touched=!0};
this.mediaRenderer=M.mediaRenderer;this.thumbnailElement=M.thumbnailElement;this.lockupElement=M.lockupElement;this.videoPreviewOptsInput=M.videoPreviewOpts;Ywe(this);pN(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)):
_.vh(Error("Dh")):_.vh(Error("Eh")):Zne(this)},Mo=function(M){Zne(M);
var d;(d=M.lockupElement)==null||d.removeEventListener("mouseenter",M.onMouseMoveFn);var N;(N=M.lockupElement)==null||N.removeEventListener("mouseleave",M.onLockupMouseLeaveFn);var R;(R=M.lockupElement)==null||R.removeEventListener("touchstart",M.onTouchStart);var X;(X=M.thumbnailElement)==null||X.removeEventListener("mousedown",M.onThumbnailMouseDownFn);wV(M)},Ywe=function(M){M.inlinePreviewIsEnabledForUser=_.iY().getState().ui.inlinePreviewIsEnabled;
M.unsubscribeFromInlinePreviewIsEnabled=_.kO(_.iY(),_.y6j,function(d){(M.inlinePreviewIsEnabledForUser=d)||wV(M)});
M.JSC$12666_unsubscribeFromInlinePreviewIsActive=_.kO(_.iY(),_.K6i,function(d){(M.inlinePreviewIsActive=d)||wV(M)})},Zne=function(M){M.unsubscribeFromInlinePreviewIsEnabled();
M.unsubscribeFromInlinePreviewIsEnabled=function(){};
M.JSC$12666_unsubscribeFromInlinePreviewIsActive();M.JSC$12666_unsubscribeFromInlinePreviewIsActive=function(){}},xaC=function(M,d){d.buttons>0||(d=_.ZR("kevlar_lockup_hover_delay",-1),M.JSC$12666_touched&&d>=0?(_.IQ.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.Lq(_.IQ,function(){ErC(M)},d),M.JSC$12666_touched=!1):ErC(M))},MWV=function(M){M.videoPreviewJobId=_.Lq(_.IQ,function(){var d,N,R,X;
return _.B(function(A){if(A.nextAddress==1){if(!pN(M))return A.return();d=M.getVideoPreviewOpts();if(!d)return A.return();d.isAutoplay=!0;return(R=(N=_.Eu(M.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&N[0])?_.D(A,N[0],3):A.jumpTo(2)}A.nextAddress!=2&&(R=A.yieldResult===1);R&&jYv((X=M.mediaRenderer)==null?void 0:X.data);_.Vy(A)})})},ErC=function(M){!M.previewTriggered&&pN(M)&&(M.inlinePreviewIsActive&&M.terminateVideoPreview(),M.previewTriggered=!0,M.mediaRenderer.isInlinePreviewTriggered=
!0,_.IQ.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.Lq(_.IQ,function(){var d,N,R,X;
return _.B(function(A){if(A.nextAddress==1){if(!pN(M))return A.return();d=M.getVideoPreviewOpts();return d?(R=(N=_.Eu(M.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&N[0])?_.D(A,N[0],3):A.jumpTo(2):A.return()}A.nextAddress!=2&&(R=A.yieldResult===1);R&&jYv((X=M.mediaRenderer)==null?void 0:X.data);_.Vy(A)})}))};
PAZ.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var M,d;if((d=(M=this.videoPreviewOptsInput)==null?void 0:M.videoPreviewData)!=null)M=d;else if(M=this.mediaRenderer.data)if(OoN(M))M={inlinePlaybackEndpoint:_.ht(M.inlinePlayerData.onVisible),navigationEndpoint:_.ht(M.onTap),thumbnail:"image"in M?M.image:M.thumbnail,thumbnailOverlays:void 0,accessibilityText:sYr(M)};else if("multipleInlinePlaybackEndpoint"in M){var N=_.q(_.q(M.multipleInlinePlaybackEndpoint,H23),n9V);if(N!=
null&&N.playerDescriptors){d=[];N=_.V(N.playerDescriptors);for(var R=N.next();!R.done;R=N.next())R=R.value,d.push({inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:sYr(M)});M=d}else M=void 0}else M={inlinePlaybackEndpoint:M.inlinePlaybackEndpoint,navigationEndpoint:M.navigationEndpoint,thumbnail:M.thumbnail,thumbnailOverlays:M.thumbnailOverlays,accessibilityText:sYr(M)};else M=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:M,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var pN=function(M){var d;if(d=M.inlinePreviewIsEnabledForUser)d=(M=M.mediaRenderer.data)?"inlinePlaybackEndpoint"in M&&M.inlinePlaybackEndpoint||OoN(M)&&M.inlinePlayerData||"multipleInlinePlaybackEndpoint"in M&&M.multipleInlinePlaybackEndpoint?!0:!1:!1;return d};
PAZ.prototype.terminateVideoPreview=function(){_.ZI(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var wV=function(M){_.IQ.cancelJob(M.videoPreviewJobId);M.inlinePreviewIsActive=!1;M.previewTriggered=!1;M.mediaRenderer.isInlinePreviewTriggered=!1};var dJJ=_.a1(["#"]),mg=function(){var M=_.n.apply(this,arguments)||this;M.isDisabled=!1;return M};
_.v(mg,_.n);_.F=mg.prototype;_.F.configureRendererStamper=function(){return{"data.menu":Ef,"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"}}}};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.getMetadata=function(M){var d=[];if(M.metadataText&&Object.keys(M.metadataText).length>0){var N=this.ytRendererBehavior.getSimpleString(M.metadataText);M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&(N=_.r5(N,Number(M.upcomingEventData.startTime)));d.push(N)}else M.shortViewCountText&&d.push(this.ytRendererBehavior.getSimpleString(M.shortViewCountText)),M.publishedTimeText&&d.push(this.ytRendererBehavior.getSimpleString(M.publishedTimeText)),M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&
(N=this.ytRendererBehavior.getSimpleString(M.upcomingEventData.upcomingEventText),d.push(_.r5(N,Number(M.upcomingEventData.startTime))));return d};
_.F.calculateBylineText=function(M){return M.shortBylineText?M.shortBylineText:M.bylineText?M.bylineText:null};
_.F.calculateIsDisabled=function(M){return!!M.isDisabled};
_.F.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.pS(dJJ)};
_.F.onDetailsTap=function(M){var d=this.data&&this.data.navigationEndpoint;d&&!_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.Q("kevlar_grid_video_renderer_killswitch")?_.YP(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d))};
_.F.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12671_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:_.K(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.K(this.hostElement).querySelector("ytd-thumbnail")})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$12671_inlinePreviewHoverListener)==null||Mo(M)};
_.F.computeThumbnailWidth=function(M,d){return d&&d>0?d:M?360:210};
_.F.computeShowChannelThumbnail=function(M,d){var N;return d&&!!(M==null?0:(N=M.channelThumbnailSupportedRenderers)==null?0:N.channelThumbnailWithLinkRenderer)};
_.Hm.Object.defineProperties(mg.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$12671_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mg.prototype.dataChanged=mg.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],mg.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.ck),_.a("design:type",Object)],mg.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],mg.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mg.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],mg.prototype,"noEndpoints",void 0);_.G([_.H({computed:"calculateBylineText(data)"}),_.a("design:type",Object)],mg.prototype,"bylineText",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],mg.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],mg.prototype,"isDownloading",void 0);_.G([_.H({reflectToAttribute:!0,value:0}),_.a("design:type",Number)],mg.prototype,"width",void 0);_.G([_.H({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.a("design:type",Object)],mg.prototype,"isDisabled",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mg.prototype,"dataChanged",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mg.prototype,"isHovered",null);mg=_.G([_.f({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],mg);
_.L(mg,"ytd-grid-video-renderer",function(){if(hlC!==void 0)return hlC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hlC=M},{mode:_.G3("kevlar_poly_si_batch_j047")?1:2});var Nit;var hz=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.skipRoundingTop=!1;M.disableTopPadding=!1;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(hz,_.n);hz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
hz.prototype.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.sourceEndpoint;!_.Sm(_.J2(M),this.hostElement,["A".toString()])&&N&&_.YP(this.hostElement,"yt-navigate",{endpoint:N})};
_.Hm.Object.defineProperties(hz.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.paragraphMaxLines)!=null?d:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"showVerticalDividers",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"roundedContainer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"skipRoundingTop",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hz.prototype,"disableTopPadding",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],hz.prototype,"amsterdamEnabled",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"showMetadataAtTop",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"showMetadataBelowTitle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"hasMenu",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.truncateParagraphs"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"truncateParagraphs",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.paragraphMaxLines"),_.a("design:type",Number),_.a("design:paramtypes",[])],hz.prototype,"paragraphMaxLines",null);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.a("design:type",Object),_.a("design:paramtypes",[])],hz.prototype,"background",null);hz=_.G([_.f({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],hz);
_.L(hz,"ytd-info-panel-content-renderer",function(){if(Nit!==void 0)return Nit;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Nit=M},{mode:_.G3("kevlar_poly_si_batch_j076")?1:2});var R_d;var XHV;var Fco;var Aro;var Q4=function(){return _.n.apply(this,arguments)||this};
_.v(Q4,_.n);Q4.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q4.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],Q4.prototype,"style_",void 0);Q4=_.G([_.w4({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Q4);
_.L(Q4,"yt-channel-thumbnail-with-link-renderer",function(){if(Aro===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Fco===void 0&&(Fco=document.createElement("template"));var R=Fco;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Aro=M}M=Aro;return M},{mode:2});var qM=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(qM,_.n);qM.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"}}}};
qM.prototype.computeTitleStyle=function(M){return M||null};
qM.prototype.computeAvatarStyle=function(M){return M||null};
qM.prototype.computeShowNavigationButton=function(M,d){return!(M==null||!M.navigationButton||d)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.a("design:type",String)],qM.prototype,"titleStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.a("design:type",String)],qM.prototype,"avatarStyle",void 0);_.G([_.H(),_.a("design:type",Boolean)],qM.prototype,"hideNavigationButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],qM.prototype,"isModernSd",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qM.prototype,"modernTypography",void 0);
qM=_.G([_.f({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],qM);
_.L(qM,"ytd-rich-list-header-renderer",function(){if(XHV!==void 0)return XHV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XHV=M},{mode:_.G3("kevlar_poly_si_batch_j058")?1:2});var Ir=function(){return _.n.apply(this,arguments)||this};
_.v(Ir,_.n);Ir.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ir.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ir.prototype,"isSearch",void 0);Ir=_.G([_.f({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ir);
_.L(Ir,"ytd-preview-card-renderer",function(){if(R_d!==void 0)return R_d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return R_d=M},{mode:1});var VWL;var vI=function(){return _.n.apply(this,arguments)||this};
_.v(vI,_.n);vI.prototype.configureRendererStamper=function(){return{"data.menu":Ef}};
vI.prototype.dataChanged=function(){var M=this.get("colorExtractionPalette.section1Color",this.data);M=_.p3(M);_.UO(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":M})};
vI.prototype.computeCardStyle=function(M){return this.get("style.value",M)||null};
vI.prototype.dataChanged=vI.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],vI.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vI.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.a("design:type",String)],vI.prototype,"cardStyle",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vI.prototype,"dataChanged",null);vI=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],vI);
_.L(vI,"ytd-compact-channel-recommendation-card-renderer",function(){if(VWL!==void 0)return VWL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return VWL=M},{mode:1});var $JC;var Bi3;var Oy=function(){var M=_.n.apply(this,arguments)||this;M.alignAuto=!1;M.collapsed=!0;M.isToggled=!1;M.alwaysCollapsed=!1;M.canToggle=!0;M.collapsedHeight=80;M.disableToggle=!1;M.alwaysToggleable=!1;M.reversed=!1;M.shouldUseNumberOfLines=!1;M.recomputeOnResize=!1;M.canToggleJobId=0;M.lastReversed=!1;return M};
_.v(Oy,_.n);_.F=Oy.prototype;_.F.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.F.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.F.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var M=_.K(this.hostElement),d=M.childNodes,N=document.createDocumentFragment(),R=M.childNodes.length-1;R>=0;R--)_.K(N).appendChild(d[R]);_.Q("enable_shadydom_free_scoped_node_methods")?_.L3(this.hostElement).appendChild(N):M.appendChild(N)}};
_.F.ready=function(){var M=this;_.vu(function(){M.initChildrenObserver()},1)};
_.F.detached=function(){this.detachObserver()};
_.F.toggle=function(M,d){this.canToggle&&(this.isToggled=d,_.YP(this.hostElement,"yt-refit"),M&&M.stopPropagation())};
_.F.reset=function(){this.childrenChanged()};
_.F.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.F.computeIsMoreVisible=function(M,d){return M&&!d};
_.F.computeShouldUseNumberOfLines=function(M){try{return!!M&&window.CSS.supports("-webkit-line-clamp","1")}catch(d){}return!1};
_.F.computeIsLessVisible=function(M,d){return M&&d};
_.F.observeCollapsedHeightAndMaxLines=function(){var M=this.collapsedHeight,d=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.UO(this.hostElement,{"--ytd-expander-max-lines":""+d,"--ytd-expander-collapsed-height":""}):_.UO(this.hostElement,{"--ytd-expander-collapsed-height":M+"px","--ytd-expander-max-lines":""})};
_.F.handleMoreTap=function(M){this.disableToggle||(_.YP(this.hostElement,"yt-expander-more-tapped"),this.toggle(M,!0))};
_.F.handleLessTap=function(M){_.YP(this.hostElement,"yt-expander-less-tapped");this.toggle(M,!1)};
_.F.initChildrenObserver=function(){var M=this;this.observer=new MutationObserver(function(){M.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.F.childrenChanged=function(){var M=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){fq(function(){M.canToggleJobId=0;M.calculateCanCollapse()})}))};
_.F.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};
_.F.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.F.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("collapsed-changed",this.collapsed))};
_.F.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("is-toggled-changed",this.isToggled))};
_.F.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("can-toggle-changed",this.canToggle))};
_.Hm.Object.defineProperties(Oy.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Oy.prototype.canToggleChangedForBinding=Oy.prototype.canToggleChangedForBinding;Oy.prototype.isToggledChangedForBinding=Oy.prototype.isToggledChangedForBinding;Oy.prototype.collapsedChangedForBinding=Oy.prototype.collapsedChangedForBinding;Oy.prototype.observeCollapsedHeightAndMaxLines=Oy.prototype.observeCollapsedHeightAndMaxLines;Oy.prototype.onIronResize=Oy.prototype.onIronResize;Oy.prototype.reversedChanged=Oy.prototype.reversedChanged;Oy.prototype.toggledChanged=Oy.prototype.toggledChanged;
Oy.prototype.alwaysToggleableChanged=Oy.prototype.alwaysToggleableChanged;_.G([_.S(_.sj),_.a("design:type",Object)],Oy.prototype,"ironResizableBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oy.prototype,"alignAuto",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oy.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"isToggled",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"alwaysCollapsed",void 0);
_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"canToggle",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"collapsedHeight",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"disableToggle",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"alwaysToggleable",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"reversed",void 0);_.G([_.H(),_.a("design:type",Number)],Oy.prototype,"maxNumberOfLines",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.a("design:type",Object)],Oy.prototype,"shouldUseNumberOfLines",void 0);_.G([_.H(),_.a("design:type",Object)],Oy.prototype,"recomputeOnResize",void 0);_.G([_.Z3("#content"),_.a("design:type",HTMLDivElement)],Oy.prototype,"content",void 0);_.G([_.NS("alwaysToggleable"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"alwaysToggleableChanged",null);
_.G([_.NS("isToggled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"toggledChanged",null);_.G([_.z("canToggleJobId"),_.a("design:type",Object),_.a("design:paramtypes",[])],Oy.prototype,"isResetting",null);_.G([_.xB("reversed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"reversedChanged",null);
_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"onIronResize",null);_.G([_.xB("maxNumberOfLines","collapsedHeight"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"observeCollapsedHeightAndMaxLines",null);_.G([_.xB("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"collapsedChangedForBinding",null);
_.G([_.xB("isToggled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"isToggledChangedForBinding",null);_.G([_.xB("canToggle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oy.prototype,"canToggleChangedForBinding",null);Oy=_.G([_.f({disableElementRegistration:!0,is:"ytd-expander"})],Oy);
_.L(Oy,"ytd-expander",function(){if(Bi3!==void 0)return Bi3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Bi3=M},{mode:1});var jq=function(){return _.n.apply(this,arguments)||this};
_.v(jq,_.n);jq.prototype.computeIsCarousel=function(M){return!!M.isCarousel};
jq.prototype.observeLightsourcePalette=function(){var M,d=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;d&&_.Wi(this.hostElement,d)};
jq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
jq.prototype.observeLightsourcePalette=jq.prototype.observeLightsourcePalette;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jq.prototype,"data",void 0);_.G([_.H({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],jq.prototype,"isCarousel",void 0);
_.G([_.xB("data.vibrantsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jq.prototype,"observeLightsourcePalette",null);jq=_.G([_.f({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],jq);
_.L(jq,"ytd-media-upsell-renderer",function(){if($JC!==void 0)return $JC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" 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="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $JC=M},{mode:2});var kmz;var sy=function(){var M=_.n.apply(this,arguments)||this;M.JSC$12699_playerEvents=new Map;M.listeningToPlayer=!1;M.startX=0;M.active=!1;M.shouldShowButtons=_.Q("web_buttons_hidden_killswitch");M.isHighlighted=!1;M.useHighlightStyling=_.Q("web_enable_deeper_metadata_highlight_styling");M.modern=_.Q("kevlar_modern_sd");M.enableProblemWalkthrough=_.Q("problem_walkthrough_sd");return M};
_.v(sy,_.n);_.F=sy.prototype;
_.F.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}}}}}};
_.F.created=function(){this.JSC$12699_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.F.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ux(this,this.onRepeatButtonToggle));_.Q("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ux(this,this.onActiveUpdate))};
_.F.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ux(this,this.onRepeatButtonToggle));_.Q("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ux(this,this.onActiveUpdate))};
_.F.onDataChanged=function(){this.removePlayerListeners()};
_.F.onColorPaletteChange=function(){var M={},d;if(_.OO()==="USER_INTERFACE_THEME_DARK"&&((d=this.data)==null?0:d.darkColorPalette)){var N=this.data.darkColorPalette;M["--ytd-macro-markers-list-item-background-color"]=_.ml(this.get("section2Color",N))}else{var R;_.OO()==="USER_INTERFACE_THEME_LIGHT"&&((R=this.data)==null?0:R.lightColorPalette)&&(N=this.data.lightColorPalette,M["--ytd-macro-markers-list-item-background-color"]=_.ml(this.get("section3Color",N)))}N?(M["--ytd-macro-markers-list-item-title-color"]=
_.ml(this.get("primaryTitleColor",N)),M["--ytd-macro-markers-list-item-secondary-color"]=_.ml(this.get("secondaryTitleColor",N)),M["--ytd-macro-markers-list-item-timestamp-background-color"]=_.ml(this.get("section1Color",N)),this.customButtonProperties={customColors:{color:_.ml(this.get("primaryTitleColor",N))}},this.useColorSampling=!0):(M["--ytd-macro-markers-list-item-background-color"]="initial",M["--ytd-macro-markers-list-item-title-color"]="initial",M["--ytd-macro-markers-list-item-secondary-color"]=
"initial",M["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.UO(this.hostElement,M)};
_.F.onEndpointMouseDown=function(M){this.startX=M.clientX};
_.F.onEndpointClick=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1){if(d.startX!==M.clientX)return M.preventDefault(),A.return();d.data&&d.ytRendererBehavior.logExplicitClick(d.data);if(!d.seekWithAnimationOnClick)return A.jumpTo(0);if(M.button!==0||M.shiftKey||M.altKey||M.metaKey||M.ctrlKey||_.Sm(_.J2(M),d.hostElement,["BUTTON".toString()]))return A.return();M.stopPropagation();M.preventDefault();return d.data?_.D(A,_.iG().getPlayerPromise(),3):A.return()}N=A.yieldResult;
X=(R=_.q(d.data.onTap,_.nL))==null?void 0:R.startTimeSeconds;X!==void 0&&N.seekToTimeWithAnimation(X*1E3,_.HD(d.data.title));_.Vy(A)})};
_.F.computeLayout=function(M){return M};
_.F.computeIsHighlighted=function(M){return!!M};
_.F.computeCarouselType=function(M){return M};
_.F.hideModernCarousel=function(M){return this.modern&&this.hideThumbnail(M)};
_.F.hideThumbnail=function(M){return this.enableProblemWalkthrough&&M!==null&&M==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.F.onRepeatButtonToggle=function(M){var d=this;M.detail.toggled&&_.iG().getPlayerPromise().then(function(N){d.ytPlayerListenerBehavior.listenToPlayerEvents(N,d.JSC$12699_playerEvents);d.listeningToPlayer=!0})};
_.F.onLoopRangeChange=function(M){var d=_.K(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(d){var N=d.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",d.polymerController.data);if(N){var R=Number(N.endTimeMs);if(Number(N.startTimeMs)!==(M==null?void 0:M.startTimeMs)||R!==(M==null?void 0:M.endTimeMs))d.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.F.removePlayerListeners=function(){var M=this;this.listeningToPlayer&&_.iG().getPlayerPromise().then(function(d){M.ytPlayerListenerBehavior.unlistenFromPlayerEvents(d,M.JSC$12699_playerEvents);M.listeningToPlayer=!1})};
_.F.onActiveUpdate=function(M){this.active=M.detail.active};
sy.prototype.onColorPaletteChange=sy.prototype.onColorPaletteChange;sy.prototype.onDataChanged=sy.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],sy.prototype,"ytPlayerListenerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],sy.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],sy.prototype,"useCustomColors",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],sy.prototype,"shouldShowButtons",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.a("design:type",String)],sy.prototype,"layout",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.a("design:type",Object)],sy.prototype,"isHighlighted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"useHighlightStyling",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sy.prototype,"enableProblemWalkthrough",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.a("design:type",String)],sy.prototype,"carouselType",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],sy.prototype,"useColorSampling",void 0);_.G([_.H(),_.a("design:type",Boolean)],sy.prototype,"seekWithAnimationOnClick",void 0);_.G([_.H(),_.a("design:type",Object)],sy.prototype,"customButtonProperties",void 0);
_.G([_.Z3("#repeat-button"),_.a("design:type",HTMLElement)],sy.prototype,"repeatButton",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sy.prototype,"onDataChanged",null);_.G([_.xB("data.lightColorPalette","data.darkColorPalette"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sy.prototype,"onColorPaletteChange",null);
sy=_.G([_.f({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],sy);
_.L(sy,"ytd-macro-markers-list-item-renderer",function(){if(kmz!==void 0)return kmz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return kmz=M},{mode:1});var Tid;var DJV;var PI=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(PI,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PI.prototype,"modernTypography",void 0);_.G([_.H(),_.a("design:type",Object)],PI.prototype,"data",void 0);PI=_.G([_.f({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],PI);
_.L(PI,"ytd-title-and-button-list-header-renderer",function(){if(DJV!==void 0)return DJV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return DJV=M},{mode:1});var goL;var Wc3=new _.x5("BUTTON_RENDERER_WIZ_TOKEN"),wHI=new _.x5("BUTTON_RENDERER_TOKEN");_.or=_.SG(function(M){var d=_.h().resolve(_.CF(Wc3));if(d)return _.g(d,Object.assign({},M));var N=_.h().resolve(wHI);return N?_.g(jqj,null,function(){return _.g(na,null,function(){var R,X,A,l,k,T,W,w,p,m,I,O;return void N(M.data(),{onButtonClickCallback:M.onButtonClickCallback,shouldShowIcons:(R=M.shouldShowIcons)==null?void 0:R.call(M),icon:(X=M.icon)==null?void 0:X.call(M),processAllEndpoints:(A=M.processAllEndpoints)==null?void 0:A.call(M),preventDefault:(l=M.preventDefault)==null?void 0:l.call(M),
stopPropagation:(k=M.stopPropagation)==null?void 0:k.call(M),disableButtonRendererClickHandling:(T=M.disableButtonRendererClickHandling)==null?void 0:T.call(M),className:(W=M.className)==null?void 0:W.call(M),buttonOverrides:(w=M.buttonOverrides)==null?void 0:w.call(M),forceModernIconButton:(p=M.forceModernIconButton)==null?void 0:p.call(M),isSubscribe:(m=M.isSubscribe)==null?void 0:m.call(M),alignByText:(I=M.alignByText)==null?void 0:I.call(M),forceDisabled:(O=M.forceDisabled)==null?void 0:O.call(M)})})}):
_.g(_.GT,null)},"Y");
_.or.idomCompat=!0;var pH3=_.SG(function(M){var d=M.notification,N=_.Jy(M.useSquareAspectRatio,!1);return _.g(_.kV,{cond:function(){var R,X;return(R=d().responseText)==null?void 0:(X=R.runs)==null?void 0:X.length},
then:function(){var R={};return _.g("div",{class:_.xj("yt-mini-game-card-view-model__dismissed-card",(R["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!N()},R["yt-mini-game-card-view-model--dismissed-square-card"]=N,R))},_.g("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.g(_.kV,{cond:function(){return d().responseText.runs[0].text},
then:function(X){return _.g("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:X},X)}}),_.g(_.ho,{data:function(){return d().buttons}},{buttonRenderer:_.or,
buttonViewModel:_.o0})))}})},"Z");var voz=_.SG(function(M){M=_.cu(M,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var d=M.data,N=M.useFullWidth,R=M.isDesktopWeb,X=M.addSearchResultTopMargin,A=function(){return d().layout},l=function(){return d().title},k=function(){return d().genre},T=function(){return d().channelName},W=function(){return d().image},w=function(){return d().colorPalette},p=function(){return d().actionButton},m=function(){return d().overflowButton},I=function(){return d().avatar},
O=function(){var t={};
t=_.xj("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(t["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return R()},t));
return _.g("div",{class:t},_.g(mJo,{imageData:W,colorPalette:w}),_.g(h_L,{onTap:function(){return d().onTap},
imageData:W,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.g(_.kV,{cond:function(){return!R()},
then:function(){return _.g(_.GT,null,_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:m,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.g(rV,{actionButton:p}))}}))},y=function(){var t={};
t=_.xj((t["yt-mini-game-card-view-model--search-result-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!R()},t["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return X()},t));
return _.g("div",{class:t},O(),_.g(qEL,{description:function(){return d().description},
isDesktopWeb:R,title:l,genre:k,onTap:function(){return d().onTap},
actionButton:p,overflowButton:m,avatar:I,channelName:T}))},c=function(){var t=function(){var U;
return(U=d().entityRedesignExperiments)==null?void 0:U.changePlayablesLayoutWithCta},C={};
C=_.xj("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(C["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return t()},C["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return R()},C["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return R()&&d().width===135},C["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return R()},C["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!t()&&R()&&d().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--big-metadata-font"]=function(){return d().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--use-full-width"]=function(){return N()},C["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!p()},C));
return _.g("div",{class:C},_.g(_.kV,{cond:function(){return t()},
then:function(){return _.g(_.GT,null,_.g(IeV,{entityRedesignExperiments:function(){return d().entityRedesignExperiments},
colorPalette:w,isDesktopWeb:R,onTap:function(){return d().onTap},
accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
actionButton:p,imageData:W}),_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:m,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.g(_.kV,{cond:function(){return!!t()===!1&&p()},
then:function(){return _.g(rV,{actionButton:p})}}))},
else:function(){return _.g(_.GT,null,_.g(mJo,{imageData:W,colorPalette:w}),_.g(h_L,{onTap:function(){return d().onTap},
imageData:W,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:m,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}),_.g(rV,{actionButton:p}))}}))},e=function(){var t={};
t=_.xj("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(t["yt-mini-game-card-view-model--square-card-desktop"]=function(){return R()},t["yt-mini-game-card-view-model--use-full-width"]=function(){return N()},t));
return _.g("div",{class:t},_.g(h_L,{onTap:function(){return d().onTap},
imageData:W,accessibilityText:function(){return d().accessibilityText},
overlayBadgeText:function(){return d().overlayBadgeText},
iconName:function(){return d().iconName},
unplayableInlinePlaybackIconName:function(){return d().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.g(QYd,{layout:A,colorPalette:w,isDesktopWeb:R,overflowButton:m,avatar:I,onTap:function(){return d().onTap},
genre:k,title:l,channelName:T,entityRedesignExperiments:function(){return d().entityRedesignExperiments}}))};
return _.g("mini-game-card-view-model",{class:M.className},_.g(_.pF,null,_.g(_.gK,{when:function(){return A()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return c()}),_.g(_.gK,{when:function(){return A()==="MINI_APP_LAYOUT_SQUARE"}},function(){return e()}),_.g(_.gK,{when:function(){return A()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return y()})))},"$");
voz.idomCompat=!0;var rV=_.SG(function(M){var d=_.Jy(M.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.g(_.ho,{data:M.actionButton},{buttonViewModel:function(N){return _.g("div",{class:d},_.g(_.o0,{data:N.data}))}})},"aa"),h_L=_.SG(function(M){var d=M.onTap;
var N=M.imageData;var R=M.accessibilityText;var X=M.overlayBadgeText;var A=M.iconName;var l=M.unplayableInlinePlaybackIconName;M=M.isDesktopWeb;return _.g(_.VX,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:d},_.g(_.Jt,{data:N,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(R==null?void 0:R())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.g(OoI,{overlayBadgeText:X,iconName:A,unplayableInlinePlaybackIconName:l,isDesktopWeb:M}))},"ba"),OoI=_.SG(function(M){var d=M.overlayBadgeText;
var N=M.iconName;var R=M.unplayableInlinePlaybackIconName;var X=M.isDesktopWeb;return _.g("div",{class:"yt-mini-game-card-view-model__badge-container"},_.g(_.kV,{cond:N,then:function(A){return _.g("div",{class:"yt-mini-game-card-view-model__badge"},_.g("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.g(_.Fc,{icon:A,className:"yt-mini-game-card-view-model__icon"}),_.g("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},d)))}}),_.g(_.kV,{cond:function(){return!N()&&
d()},
then:function(){return _.g("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},d)}}),_.g(_.kV,{cond:function(){return R()&&X()},
then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.g(_.Fc,{icon:R,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),mJo=_.SG(function(M){var d=M.colorPalette;
var N=M.imageData;var R=function(){return d().vibrantColorPalette?d().vibrantColorPalette.section2Color:d().sectionTwoColor};
return _.g(_.GT,null,_.g("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Xc({"background-color":function(){return h2(R(),"1")}})}),_.g("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Xc({"background-image":function(){return"url("+N().sources[0].url+")"}})}),_.g("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Xc({background:function(){return"linear-gradient(180deg,\n    "+h2(R(),".8")+" 0%,\n    "+h2(R(),".4")+" 25%,\n    "+h2(d().vibrantColorPalette?d().vibrantColorPalette.section4Color:d().sectionFourColor,".8")+" 100%)"}})}))},"da"),QYd=_.SG(function(M){var d=M.layout;
var N=M.colorPalette;var R=M.overflowButton;var X=M.avatar;var A=M.onTap;var l=M.title;var k=M.channelName;var T=M.entityRedesignExperiments;var W=M.genre;var w=function(){var m;return d()!=="MINI_APP_LAYOUT_SQUARE"&&((m=N())==null?0:m.textPrimaryColor)?"color: "+h2(N().textPrimaryColor,".7"):""},p=function(){var m;
return T==null?void 0:(m=T())==null?void 0:m.changePlayablesLayoutWithCta};
return _.g("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.g(_.kV,{cond:X,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.ho,{data:X},{avatarViewModel:_.TS}))}}),_.g(_.VX,{command:A,
className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:l},l),_.g(_.kV,{cond:X,then:function(){return _.g("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.g("span",{class:"yt-mini-game-card-view-model__genre",title:k,style:w},k),_.g("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:w},W))},
else:function(){return _.g(_.kV,{cond:p,then:function(){return _.g("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)},
else:function(){return _.g("span",{class:"yt-mini-game-card-view-model__genre",title:W,style:w},W)}})}})),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.ho,{data:R},{buttonViewModel:function(m){var I=m.data;
return _.g(_.o0,{data:function(){return Object.assign({},I(),{customFontColor:p()?void 0:I().customFontColor})}})}})))},"ea"),IeV=_.SG(function(M){var d=M.entityRedesignExperiments;
var N=M.colorPalette;var R=M.isDesktopWeb;var X=M.onTap;var A=M.accessibilityText;var l=M.overlayBadgeText;var k=M.iconName;var T=M.unplayableInlinePlaybackIconName;var W=M.actionButton;M=M.imageData;var w=function(){var p;return d==null?void 0:(p=d())==null?void 0:p.changePlayablesLayoutWithCta};
return _.g("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.g(mJo,{imageData:M,colorPalette:N}),_.g(h_L,{onTap:X,imageData:M,accessibilityText:A,overlayBadgeText:l,iconName:k,unplayableInlinePlaybackIconName:T,isDesktopWeb:R}),_.g(_.kV,{cond:function(){return(w==null?void 0:w())&&(W==null?void 0:W())},
then:function(){return _.g(rV,{actionButton:W})}}))},"fa"),qEL=_.SG(function(M){var d=M.description;
var N=M.isDesktopWeb;var R=M.title;var X=M.genre;var A=M.onTap;var l=M.actionButton;var k=M.overflowButton;var T=M.avatar;M=M.channelName;var W={};W=_.xj("yt-mini-game-card-view-model--search-result-metadata-wrapper",(W["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=N,W["yt-mini-game-card-view-model--show-unplayable-on-hover"]=N,W["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!N()},W));
var w={};w=_.xj("yt-mini-game-card-view-model__search-result-info-row",(w["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!N()},w));
return _.g("div",{class:W},_.g("div",{class:w},_.g(_.VX,{command:A,className:"yt-mini-game-card-view-model__metadata-details"},_.g("h3",{class:"yt-mini-game-card-view-model__title",title:R},R),_.g("span",{class:"yt-mini-game-card-view-model__genre",title:X},X)),_.g(rV,{actionButton:l,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.g("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.g(_.ho,{data:k},{buttonViewModel:_.o0}))),_.g("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.g("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.g("div",{class:"yt-mini-game-card-view-model__avatar"},_.g(_.ho,{data:T},{avatarViewModel:function(p){var m=p.data;return _.g(_.TS,{data:function(){return Object.assign({},m(),{avatarImageSize:N()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.g(_.VX,{command:A,
className:"yt-mini-game-card-view-model__description"},_.g("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},M)),_.g(_.VX,{command:A,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.g("div",null)))),_.g(_.kV,{cond:N,then:function(){return _.g(_.VX,{command:A,className:"yt-mini-game-card-view-model__description"},d)}}))},"ga");var jYm={isAdsVideo:!0},sYJ={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},PAd={showPlayerControls:!1,videoPreviewDurationMs:15E3},vEi={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.Q("web_shorts_imp_fullwidth_killswitch")},ooL={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var KN=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;M.isRichGrid=!1;return M};
_.v(KN,_.n);_.F=KN.prototype;_.F.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.F.dismissibleItemOnYtServiceRequestSent=function(M,d){d.actions&&this.dismissibleItemProcessActions(M,d.actions)};
_.F.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.F.dismissibleItemProcessActions=function(M,d){for(var N=0;N<d.length;N++){var R=d[N];_.q(R,_.p9)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.q(R,_.p9)),M.stopPropagation())}};
_.F.dismissibleItemHandleReplaceEnclosingAction=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12731_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:ooL}))};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$12731_inlinePreviewHoverListener)==null||Mo(M)};
_.F.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.F.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var M=this.data.layout==="MINI_APP_LAYOUT_SQUARE";Kq(pH3)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:M===void 0?!1:M})}else Kq(voz)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
KN.prototype.experimentalPropertiesChanged=KN.prototype.experimentalPropertiesChanged;KN.prototype.dataChanged=KN.prototype.dataChanged;KN.prototype.dismissibleItemOnRequestSent=KN.prototype.dismissibleItemOnRequestSent;KN.prototype.dismissibleItemOnYtServiceRequestSent=KN.prototype.dismissibleItemOnYtServiceRequestSent;_.G([_.S(uGo),_.a("design:type",Object)],KN.prototype,"ytIdomTemplatingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KN.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],KN.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],KN.prototype,"isDismissed",void 0);_.G([_.H(),_.a("design:type",Object)],KN.prototype,"dismissedRenderer",void 0);_.G([_.Z3(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.a("design:type",HTMLElement)],KN.prototype,"thumbnailWrapper",void 0);
_.G([_.Z3("mini-game-card-view-model"),_.a("design:type",HTMLElement)],KN.prototype,"miniGameCardViewModel",void 0);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],KN.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.G([_.C3("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],KN.prototype,"dismissibleItemOnRequestSent",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KN.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],KN.prototype,"isRichGrid",void 0);_.G([_.xB("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],KN.prototype,"experimentalPropertiesChanged",null);
KN=_.G([_.w4({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],KN);
_.L(KN,"ytd-mini-game-card-view-model",function(){if(goL!==void 0)return goL;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return goL=M},{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var rrV;var KcL;var y4=function(){return _.nH.apply(this,arguments)||this};
_.v(y4,_.nH);y4.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
y4.prototype.getContinuationUrl=function(M){var d={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(d.itct=this.data.clickTrackingParams);return _.LF(M,d)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y4.prototype,"data",void 0);y4=_.G([_.w4({is:"yt-reload-continuation",noInjection:!0})],y4);var yrL;var JrV;var Jz=function(){var M=_.n.apply(this,arguments)||this;M.notificationData={};return M};
_.v(Jz,_.n);_.F=Jz.prototype;_.F.isMenuExpanded=function(M){return M&&M.length<=1?"undefined":"false"};
_.F.dataChanged_=function(){this.selected=void 0;var M=this.computeSelectedIndex_(this.data);M>=0&&(this.selected=M);M=this.data&&this.data.length>1;_.t2(this.hostElement,"has-items",M);_.K(this.hostElement).querySelector("#label").tabIndex=M?0:-1};
_.F.onDropdownOpen=function(){var M=_.Ou();if(this.parentTrackingParams&&this.data){var d=_.At(this.parentTrackingParams);this.data.forEach(function(N){M&&d&&N.trackingParams&&(N=_.At(N.trackingParams),_.c1(M,d,N),_.zR(M,[N]))})}else this.parentTrackingParams||_.vh(new _.WJ("No parent tracking params passed in for yt-dropdown-menu."))};
_.F.hasNotification=function(M){var d;if(M.targetId&&((d=this.notificationData)==null?0:d.targetId)){var N;return M.targetId===((N=this.notificationData)==null?void 0:N.targetId)}};
_.F.computeSelectedIndex_=function(M){if(M)for(var d=0,N=M.length;d<N;d++)if(M[d].selected)return d;return-1};
_.F.computeLabel_=function(M){return this.data&&M!=void 0?this.data[M].title:""};
_.F.computeShowIcon_=function(M,d){return!d&&!!M};
_.F.computeVerticalOffset_=function(M){return M?36:0};
_.F.computeEndpoint_=function(M){return M.endpoint||M.navigationEndpoint};
_.F.onLabelClick_=function(M){this.data&&this.data.length<=1?M.stopPropagation():this.menuExpanded="true"};
_.F.onIronActivate_=function(M){M=M.detail.item;var d=_.K(this.hostElement).querySelector("#repeat").itemForElement(M);if(d&&d.trackingParams){var N=_.Ou(),R=_.At(d.trackingParams);N&&_.eD(N,R)}if(d&&d.serviceEndpoint)_.Q("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(d.serviceEndpoint):_.dU(this.hostElement,[d.serviceEndpoint]),_.YP(this.hostElement,"yt-playlist-reloading");else a:{if((d=M.querySelector("yt-supported-renderers"))&&(d=
d.rendererElement)&&d.is=="yt-reload-continuation"){d.trigger();break a}(M=M.querySelector("yt-reload-continuation"))&&M.trigger()}};
_.F.onTap_=function(M){M.preventDefault()};
_.F.onItemTap_=function(M){this.ytEndpointBehavior.onEndpointTap_(M)};
_.F.onLinkFocus_=function(M){try{var d=M.target}catch(R){}if(d){var N=d.querySelector("tp-yt-paper-item");N&&_.OH(this,"focus",function(){N.focus()})}};
_.F.onMenuClose_=function(){this.menuExpanded="false"};
_.F.isLabelIconActive_=function(M){return M==="true"};
_.F.computeHasSubtitle_=function(M){return!!M};
_.F.computeHrefForItem_=function(M){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(M))};
_.F.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
Jz.prototype.onMenuClose_=Jz.prototype.onMenuClose_;Jz.prototype.onTap_=Jz.prototype.onTap_;Jz.prototype.onIronActivate_=Jz.prototype.onIronActivate_;Jz.prototype.onDropdownOpen=Jz.prototype.onDropdownOpen;Jz.prototype.dataChanged_=Jz.prototype.dataChanged_;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Jz.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],Jz.prototype,"ytEndpointBehavior",void 0);
_.G([_.H(),_.a("design:type",Array)],Jz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Jz.prototype,"parentTrackingParams",void 0);_.G([_.H(),_.a("design:type",Object)],Jz.prototype,"selected",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Jz.prototype,"useLabel",void 0);_.G([_.H(),_.a("design:type",String)],Jz.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Jz.prototype,"iconLabel",void 0);
_.G([_.H(),_.a("design:type",String)],Jz.prototype,"ariaLabel",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Jz.prototype,"disabled",void 0);_.G([_.H({computed:"isMenuExpanded(data)"}),_.a("design:type",String)],Jz.prototype,"menuExpanded",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Jz.prototype,"closeOnActivate",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("web_modern_buttons")}),_.a("design:type",Boolean)],Jz.prototype,"modernButtons",void 0);
_.G([_.H(),_.a("design:type",Object)],Jz.prototype,"notificationData",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jz.prototype,"dataChanged_",null);_.G([_.C3("paper-dropdown-open"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Jz.prototype,"onDropdownOpen",null);
_.G([_.C3("iron-activate"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Jz.prototype,"onIronActivate_",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Jz.prototype,"onTap_",null);_.G([_.C3("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Jz.prototype,"onMenuClose_",null);
Jz=_.G([_.w4({is:"yt-dropdown-menu",disableElementRegistration:!0})],Jz);
_.L(Jz,"yt-dropdown-menu",function(){if(JrV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yrL===void 0&&(yrL=document.createElement("template"));var R=yrL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JrV=M}M=JrV;return M},{mode:2});var cI=function(){var M=_.n.apply(this,arguments)||this;M.hasNotification=!1;return M};
_.v(cI,_.n);cI.prototype.computeId=function(M){return M};
cI.prototype.computeHorizontalAlign=function(M){return M?"right":"left"};
cI.prototype.computeAccessibilityLabel=function(M){var d,N;return((d=M.accessibility)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label)||null};
cI.prototype.notificationDataChanged=function(){var M;this.hasNotification=!!this.notificationData&&!((M=this.data)==null?0:M.icon)};
cI.prototype.notificationDataChanged=cI.prototype.notificationDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.On.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],cI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cI.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",String)],cI.prototype,"id",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],cI.prototype,"isRightAligned",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],cI.prototype,"disabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],cI.prototype,"closeOnActivate",void 0);_.G([_.H(),_.a("design:type",Object)],cI.prototype,"notificationData",void 0);_.G([_.H(),_.a("design:type",Object)],cI.prototype,"hasNotification",void 0);
_.G([_.xB("notificationData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cI.prototype,"notificationDataChanged",null);cI=_.G([_.w4({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],cI);
_.L(cI,"yt-sort-filter-sub-menu-renderer",function(){if(KcL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rrV===void 0&&(rrV=document.createElement("template"));var R=rrV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);KcL=M}M=KcL;return M},{mode:2});_.aR(rrj);
var crL=_.SG(function(M){var d=M.children;var N=M.className;var R=M.style;var X=M.role;var A=M.ariaSelected;var l=M.ariaLabel;var k=M.ariaHidden;var T=M.ariaLabelledby;var W=M.ariaDescribedby;var w=M.command;var p=M.elementsCommand;var m=M.forceNewState;var I=M.tabIdentifier;var O=M.target;var y=M.tabIndex;var c=M.stopPropagation;M=_.Al(function(){var e=_.qx({innertubeCommand:w==null?void 0:w(),elementsCommand:p==null?void 0:p(),forceNewState:m==null?void 0:m(),stopPropagation:(c==null?void 0:c())!==
!1});e||(e={});e["aria-hidden$"]=k==null?void 0:k();var t;e.tabindex$=(t=y==null?void 0:y())!=null?t:e.tabindex$;var C;e["force-new-state$"]=(C=m==null?void 0:m())!=null?C:e["force-new-state$"];var U;e.role$=(U=X==null?void 0:X())!=null?U:e.role$;var Fi;e["aria-hidden$"]=(Fi=k==null?void 0:k())!=null?Fi:e["aria-hidden$"];var Y;e.target$=(Y=O==null?void 0:O())!=null?Y:e.target$;return e},void 0,"SU0Mnc");
return _.g(_.VX,{aTagConfig:M,className:N,style:R,ariaLabel:l,ariaLabelledby:T,ariaDescribedby:W,ariaSelected:A,tabIdentifier:I},d)},"ha");var Kci=_.Q("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",SEV=_.Ez(yri);_.aR(yri);_.eC(SEV,"place-data-view-model",{props:{data:_.cA}});var z_g=new _.x5("INLINE_PLAYBACK_HOOK_TOKEN");var aei=function(M){this.setActiveSlideIndex=M;this.jobIds=[];this.isSlideshowPlaying=!1},uHZ=function(M){if(M.isSlideshowPlaying){M.isSlideshowPlaying=!1;
for(var d=M.jobIds,N=0,R=d.length;N<R;N++)_.IQ.cancelJob(d[N]);M.jobIds.length=0}},UJp=function(M,d){M.isSlideshowPlaying||(M.isSlideshowPlaying=!0,boL(M),e_V(M,d,0))},boL=function(M){_.Lq(_.IQ,function(){M.setActiveSlideIndex(0)},1)},e_V=function(M,d,N){M.jobIds.push(_.Lq(_.IQ,function(){var R=N<d-1?N+1:0;
M.setActiveSlideIndex(R);e_V(M,d,R)},1800))};var HoA=new _.x5("IMAGE_ON_LOAD_HANDLER_TOKEN");var Hot=_.SG(function(M){return _.g("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.g(_.kV,{cond:function(){var d;return(d=M.data())==null?void 0:d.thumbnail},
then:function(d){return _.g(_.Jt,{data:d,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.Sq=_.SG(function(M){var d=M.data;var N=M.lockupExperiments;M={};return _.g("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.g("div",{class:_.xj("ytThumbnailOverlayButtonViewModelButton",(M.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var R;return N&&((R=N())==null?void 0:R.useLegacySizedIconButton)},M))},_.g(_.ho,{data:function(){return d().overlayButton}},{buttonViewModel:function(R){return _.g(_.o0,{data:R.data,
buttonOverrides:function(){var X;return N&&((X=N())==null?0:X.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.Sq.idomCompat=!0;var no3=_.SG(function(M){var d=_.dT(function(N){N.preventDefault();return!1});
return _.g("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":d},_.g(_.ho,{data:function(){return M.data().buttons}},{toggleButtonViewModel:function(N){return _.g("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.g(_.I0,{data:N.data}))}}))},"ka");
no3.idomCompat=!0;var iod=_.SG(function(M){var d=function(){var N;return((N=_.q(M.data().rendererContext,_.H5))==null?void 0:N.label)||""};
return _.g("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.g(_.kV,{cond:function(){return M.data().image},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.g(_.Jt,{data:function(){return M.data().image},
alt:d}))}}),_.g(_.kV,{cond:function(){return M.data().text},
then:function(){return _.g("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return M.data().text})}}))},"la");var ioZ=_.W5({thumbnailOverlayTitleViewModel:aJV,thumbnailOverlayBadgeViewModel:uaJ,thumbnailBottomOverlayViewModel:SwL,thumbnailOverlayFullViewModel:iod,thumbnailOverlayButtonViewModel:_.Sq}),fe6=_.W5({thumbnailHoverOverlayViewModel:bnd,thumbnailHoverOverlayToggleActionsViewModel:no3}),LcZ=_.W5({animatedThumbnailOverlayViewModel:Hot});_.aR(tWS);var feo,Lcg;feo=_.SG(function(M){var d=[],N=function(){var m,I;return bG((m=M.width)==null?void 0:m.call(M),(I=M.height)==null?void 0:I.call(M))},R=_.h().resolve(_.CF(HoA)),X=_.e5(function(){d.push("elRef.value set");
var m;(m=M.playbackRef)==null||m.call(M,{thumbnailElRef:X,thumbnail:M.data().image,thumbnailOverlays:M.data().overlays,thumbnailSize:N()})});
_.IJ(function(){d.push("onInit");_.mF(function(){d.push("onCleanup")})});
var A=_.hI(cri),l=function(){var m,I;return(I=(m=M.aspectRatio)==null?void 0:m.call(M))!=null?I:0},k=function(){return(M.data().image?_.yfZ(M.data().image):l())<=1&&l()===0},T=function(){return k()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},W=function(){X.value||_.vh(new _.WJ("Thumbnail elRef.value is null",d.join("\n")));
R&&X.value&&R(X.value)},w=function(){var m,I;
return((m=M.hovered)==null?void 0:m.call(M))&&N()!=="large"&&((I=M.data().overlays)==null?void 0:I.some(function(O){return _.q(O,noZ)}))},p={};
return _.g("yt-thumbnail-view-model",{class:_.xj("yt-thumbnail-view-model",M.className,function(){return Gmq(l())},function(){var m,I;
a:{var O=N(),y=(m=M.disableRounding)==null?void 0:m.call(M);m=(I=M.isClip)==null?void 0:I.call(M);if(!y&&!m)switch(O){case "large":I="yt-thumbnail-view-model--large";break a;case "small":I="yt-thumbnail-view-model--small";break a;default:I="yt-thumbnail-view-model--medium";break a}I=void 0}return I},(p["yt-thumbnail-view-model--cinematic"]=k,p)),
style:_.Xc({"background-color":function(){var m,I=k()?(m=M.data().backgroundColor)==null?void 0:m.lightTheme:void 0;return I?h2(I,"1"):void 0}}),
el:X},_.g(_.kV,{cond:k,then:function(){return _.g("div",{class:"yt-thumbnail-view-model__blurred-image"},_.g(_.Jt,{data:function(){return M.data().image},
alt:"",contentMode:T,targetWidth:M.width,onload:W}))}}),_.g("div",{class:"yt-thumbnail-view-model__image"},_.g(_.Jt,{data:function(){return M.data().image},
alt:"",contentMode:T,targetWidth:M.width,onload:W}),null),_.g(_.ho,{data:function(){return w()?void 0:M.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:UaL,thumbnailOverlayBadgeViewModel:function(m){return _.g(uaJ,{data:m.data,thumbnailSize:N,isClip:M.isClip})},
thumbnailBottomOverlayViewModel:SwL,thumbnailOverlayFullViewModel:iod,thumbnailOverlayButtonViewModel:function(m){return _.g(_.Sq,{data:m.data,lockupExperiments:M.lockupExperiments})}}),_.g(_.ho,{data:function(){var m;
return((m=M.hovered)==null?0:m.call(M))?M.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(m){return _.g(elz,{data:m.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:no3}),_.g(_.ho,{data:function(){var m;return((m=M.hovered)==null?0:m.call(M))&&A()?M.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Hot}),_.g(_.kV,{cond:M.isClip,then:function(){return boi()}}))},"ma");
Lcg=_.Q("web_enable_sink_lockups_batch")?feo:tWS;_.zS=_.Q("web_enable_sink_lockups_batch")?feo:_.Ez(Lcg,{callbacks:{playbackRef:!0}});feo.idomCompat={callbacks:{playbackRef:!0}};var CA6=_.W5({thumbnailViewModel:Lcg});_.aR(xJ6);var tWV=_.SG(function(M){var d=_.V(_.d0(-1,void 0,"GEkecf")),N=d.next().value,R=d.next().value;_.IJ(function(){var X=new aei(R);UJp(X,M.data().thumbnails.length);_.mF(function(){uHZ(X)})});
return _.g("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.g(_.ho,{data:function(){return M.data().thumbnails}},{thumbnailViewModel:function(X,A){return _.g("div",{class:function(){var l=!M.data().primaryThumbnail,k=A(),T=N(),W=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
l&&k===0&&W.push("yt-collection-thumbnail-slideshow--first-slide");k<=T&&W.push("yt-collection-thumbnail-slideshow--show-slide");return W.join(" ")}},_.g(_.zS,{data:X.data,
disableRounding:M.disableRounding}))}}))},"na"),dP2=_.Q("web_enable_sink_lockups_batch")?tWV:xJ6,Gmz=_.Q("web_enable_sink_lockups_batch")?tWV:_.Ez(xJ6);
tWV.idomCompat=!0;var YEq=new _.x5("DWELL_DETECTOR_REGISTRY_TOKEN");var MKq=_.W5({thumbnailViewModel:Lcg});_.aR(NRv);var UJe=_.SG(function(M){var d=Eop(M.triggeringElement),N=function(){return!!M.data().primaryThumbnail};
return _.g("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.g(aeL,{stackEnabled:N,thumbnailSize:function(){var R,X;return bG((R=M.width)==null?void 0:R.call(M),(X=M.height)==null?void 0:X.call(M))},
doubleStack:M.doubleStack,stackColor:function(){return M.data().stackColor}},_.g("div",null,_.g(_.ho,{data:function(){return M.data().primaryThumbnail}},{thumbnailViewModel:function(R){var X={};
return _.g(_.zS,{data:R.data,width:M.width,height:M.height,aspectRatio:M.aspectRatio,disableRounding:M.disableRounding,className:_.xj((X["yt-collection-thumbnail-view-model--has-stacks"]=N,X)),hovered:M.hovered,playbackRef:M.playbackRef})}}),_.g(_.kV,{cond:function(){var R;
return d()&&((R=M.data().thumbnails)==null?void 0:R.length)},
then:function(){return _.g("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.g(Gmz,{data:M.data,disableRounding:function(){return!N()}}))}}))))},"oa"),uHd=_.Q("web_enable_sink_lockups_batch")?UJe:_.Ez(NRv,{callbacks:{playbackRef:!0}});
UJe.idomCompat={callbacks:{playbackRef:!0}};
var aeL=_.SG(function(M){var d=M.children;var N=M.stackEnabled;var R=M.thumbnailSize;var X=M.doubleStack;var A=M.stackColor;var l,k=(l=_.h().resolve(_.CF(_.Pz)))==null?void 0:l();return _.g(_.kV,{cond:N,then:function(){return _.g(Bvg,{data:function(){var T,W;return{experimentEnabled:!0,thumbnailSize:R(),doubleStack:X==null?void 0:X(),color:k?A==null?void 0:(T=A())==null?void 0:T.darkTheme:A==null?void 0:(W=A())==null?void 0:W.lightTheme,enableResponsiveMode:!1}}},d)},
else:function(){return d}})},"pa");var CAo=new _.x5("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var eq;_.bK={calledOnce:!0,state:"visible"};eq={calledOnce:!0,state:"hidden"};_.HI=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.className;var X=M.delayedClassName;M=M.animationEntityKey;var A=_.e5(),l=_.Jy(M,""),k=_.FT(CZi,l),T=function(){var Y,$i;return($i=(Y=k())==null?void 0:Y.value)!=null?$i:!1},W=function(){_.yE(_.la("booleanEntity",l(),{key:l(),
value:!0}));e=void 0};
M=_.V(_.Rq(T));var w=M.next().value,p=M.next().value;M=_.V(_.Rq(T));var m=M.next().value,I=M.next().value;M=_.V(_.Rq(function(){var Y;return T()?(Y=d().styleTransitionConfig)==null?void 0:Y.destinationStyle:void 0}));
var O=M.next().value,y=M.next().value,c=function(){var Y=Object.assign({},d(),O()&&{style:O()}),$i,vj,Pj=Y.label,sS=($i=Y.interaction)==null?void 0:(vj=$i.accessibility)==null?void 0:vj.label;$i=Y.iconImage?Y.label&&Y.label.content?Y.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Pj,accessibilityLabel:sS,style:A3q(Y.style),type:VKZ(Y.style),state:"active",size:FuZ(Y.size),iconPosition:$i,disabled:!1,aTagConfig:XE6(Y,N)}},e;
_.Gi(A,{visibilityCallback:function(Y){var $i,vj=($i=d().interaction)==null?void 0:$i.onFirstVisible;Y&&vj&&_.vz(vj)},
showOption:_.bK});var t=function(){return AI(c(),!!d().iconImage)};
R=_.xj(function(){return"ytwAdButtonViewModelHost"},function(){return d().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Y=!!d().delayedAppearanceConfig,$i=w();
return Y?$i?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Y=!!d().delayedAppearanceConfig,$i=m();
return Y?$i?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!d().delayedAppearanceConfig||w()?X==null?void 0:X():""},R!=null?R:"");
var C=function(){var Y,$i=(Y=d().delayedAppearanceConfig)==null?void 0:Y.delayedInvisibleSeconds;$i&&(e=_.kM(_.IQ,function(){p(!0);U()},$i*1E3))},U=function(){var Y,$i=(Y=d().delayedAppearanceConfig)==null?void 0:Y.delayedVisibleSeconds;
$i&&(e=_.kM(_.IQ,function(){I(!0);Fi()},$i*1E3))},Fi=function(){var Y,$i=(Y=d().styleTransitionConfig)==null?void 0:Y.styleTransitionSeconds,vj,Pj=(vj=d().styleTransitionConfig)==null?void 0:vj.destinationStyle;
$i&&Pj?e=_.kM(_.IQ,function(){y(Pj);W()},$i*1E3):W()};
_.IJ(function(){var Y;((Y=d().delayedAppearanceConfig)==null?0:Y.transitionDurationSeconds)&&A.value.style.setProperty("transition-duration",d().delayedAppearanceConfig.transitionDurationSeconds+"s");C()});
_.mF(function(){e&&_.IQ.cancelJob(e)});
return _.g("ad-button-view-model",{class:R,el:A},_.g(_.kV,{cond:c,then:function(){return _.g(CX,{data:c,icon:function(){return _.g(_.kV,{cond:function(){return d().iconImage},
then:function(Y){return _.g(_.Jt,{data:Y,alt:"",targetWidth:t,targetHeight:t,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var xJo=_.SG(function(M){var d=M.data;M=_.e5();_.Gi(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.vz(X)},
showOption:_.bK});return _.g("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:M},_.g("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.g(_.ho,{data:function(){return d().secondaryAdButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data})}})),_.g("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.g(_.ho,{data:function(){return d().primaryAdButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data})}})))},"ra");var YEz=_.SG(function(M){var d=function(){var N;return((N=M.data())==null?void 0:N.answers)||[]};
return _.g("yt-survey-icons",{class:"ytSurveyIconsHost"},_.g("div",{class:"ytSurveyIconsHeader"},_.g("div",{class:"ytSurveyIconsTitle"},function(){var N;return(N=M.data())==null?void 0:N.text}),_.g("div",null,_.g(CX,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var N;(N=M.onDismiss)==null||N.call(M)}}},
iconName:"DISMISSAL"}))),_.g("div",null,_.g("div",{class:"ytSurveyIconsAnswers"},_.g(_.TN,{each:function(){return d()},
keyBy:"INDEX"},function(N,R){return _.g("div",null,_.g(CX,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var X;(X=M.onSelect)==null||X.call(M,N(),R)}}},
icon:function(){return _.g(_.Fc,{icon:function(){var X,A;return(X=N())==null?void 0:(A=X.icon)==null?void 0:A.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.g("div",{class:"ytSurveyIconsAnswersText"},_.g("div",null,function(){return d().length?d()[0].text:""}),_.g("div",null,function(){return d().length?d()[d().length-1].text:""}))))},"sa");var ZoL=_.SG(function(M){var d=_.V(_.d0(!1,void 0,"s8HkOb")),N=d.next().value,R=d.next().value,X=_.FT(wB2,function(){var k;return(k=M.data().keys)==null?void 0:k.surveyEntityKey}),A=_.FT(pB2,function(){var k;
return(k=M.data().keys)==null?void 0:k.surveyStateEntityKey});
_.bv("ytd-slimline-survey-show-action",function(){R(!1)});
var l=function(){var k,T;var W=(k=A())==null?void 0:(T=k.questionStack)==null?void 0:T[0];if(W!==void 0){var w,p;return(w=X())==null?void 0:(p=w.questions)==null?void 0:p[W]}};
d={};return _.g("yt-slimline-survey-view-model",{class:_.xj("ytSlimlineSurveyViewModelHost",(d.ytSlimlineSurveyViewModelCollapsed=function(){return N()},d))},_.g("div",{class:"ytSlimlineSurveyViewModelContainer"},_.g(_.kV,{cond:function(){var k;
return((k=l())==null?void 0:k.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.g(YEz,{data:function(){return l()},
onSelect:function(k,T){var W,w;return _.B(function(p){R(!0);if(w=(W=M.data())==null?void 0:W.onSelectRating)_.vz(w),_.yE(E2J(T));_.Vy(p)})},
onDismiss:function(){R(!0)}})}})))},"ta");var Eoe=_.SG(function(M){return _.g("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.g(_.ho,{data:function(){var d;return(d=M.data())==null?void 0:d.attachments}},{flexibleActionsViewModel:function(d){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(mf,{data:d.data,
layout:function(){var N;return((N=M.lockupStyle())==null?void 0:N.arrangement)===1?0:1},
justifyContentOverride:function(){var N;return((N=M.lockupStyle())==null?void 0:N.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(d){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(ZoL,{data:d.data}))},
expandableMetadataViewModel:function(d){d=d.data;var N;return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},(N=_.h().resolve(_.CF(CAo)))==null?void 0:N({data:d}))},
adButtonGroupViewModel:function(d){return _.g("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.g(xJo,{data:d.data}))}}))},"ua");var DPv=_.ZR("rich_grid_min_item_width",310),k$6=_.ZR("rich_grid_max_item_width",500);var jbi=_.SG(function(M){var d=M.data;return _.g("br-nz-badge-shape",{class:_.xj(function(){return q76(d().brNzRatingBadgeType)}),
role:function(){return d().accessibilityText?"img":void 0},
"aria-label":function(){return d().accessibilityText}},function(){var N;
return(N=d())==null?void 0:N.text})},"va");_.aR(sbZ);var MKz,pOp;MKz=_.SG(function(M){var d=function(){var N=M.data(),R,X;return N?ORr(N,!((R=M.workaroundShortsIsThumbnailBadge)==null||!R.call(M)),(X=M.modern)==null?void 0:X.call(M)):void 0};
return _.g("yt-badge-view-model",{class:_.xj("yt-badge-view-model-wiz",M.class)},_.g(_.pF,null,_.g(_.gK,{when:function(){var N;return!((N=d())==null||!N.brNzRatingBadgeType)}},function(){return _.g(jbi,{data:function(){return d()}})}),_.g(_.gK,{when:function(){return!!d()&&!d().brNzRatingBadgeType}},function(){return _.g(_.a0,{data:function(){return d()}})})))},"wa");
pOp=_.Q("web_enable_sink_yt_badge_view_model")?MKz:sbZ;_.nN=_.Q("web_enable_sink_yt_badge_view_model")?MKz:_.Ez(sbZ);MKz.idomCompat=!0;var owq,Poi;owq=16/9;Poi=2/3;_.iK=_.SG(function(M){var d=M.data;var N=M.className;var R=M.imageSizeConfig;var X=M.notifyOnLoaded;M=_.e5();var A=function(){return d().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},l=function(){var w;
return _.zH((w=d())==null?void 0:w.rendererContext)},k={};
k=(k["yt-content-preview-image-view-model-wiz"]=!0,k["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return A()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k["yt-content-preview-image-view-model-wiz--tappable"]=function(){return l()},k);
var T=function(){var w,p;return(p=(w=_.q(d().rendererContext,_.H5))==null?void 0:w.label)!=null?p:""},W=function(){return Kuq(d())};
_.ek(M,function(){var w;return(w=d())==null?void 0:w.rendererContext});
return _.g("yt-content-preview-image-view-model",{el:M,role:function(){return l()?"link":void 0},
tabindex:function(){return l()?0:void 0},
class:_.xj(N,k,function(){var w=A();var p=R==null?void 0:R();w=w==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||w==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||w==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||w==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(p==null?void 0:p.size)!=null&&p.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(p==null?void 0:p.size)!=null&&p.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return w}),
style:function(){return r3j(A(),d().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",R==null?void 0:R(),y3Z(W()),d().layoutWidth,d().layoutHeight)}},_.g(_.kV,{cond:W,
then:function(w){return _.g(_.Jt,{data:w,alt:T,"data-disabled$":function(){return!T()},
notifyOnLoaded:X})}}),_.g(_.ho,{data:function(){var w;
return(w=d())==null?void 0:w.overlays}},{thumbnailHoverOverlayViewModel:elz,
thumbnailOverlayButtonViewModel:_.Sq}))},"xa");
_.iK.idomCompat=!0;var fN=_.SG(function(M){var d=M.data;var N=M.className;var R=M.useSmallLayout;var X=M.useMediumText;M=_.e5();var A={};X=(A["yt-attribution-view-model-wiz"]=!0,A["yt-attribution-view-model-wiz--medium-text"]=X,A);_.ek(M,function(){var l;return(l=d())==null?void 0:l.rendererContext});
return _.g("yt-attribution-view-model",{el:M,class:_.xj(N,X)},_.g(_.kV,{cond:function(){return _.zH(d().rendererContext)},
then:function(){return _.g("button",{class:"yt-attribution-view-model-wiz--tappable"},_.g(dPL,{data:d,useSmallLayout:R}))},
else:function(){return _.g(dPL,{data:d,useSmallLayout:R})}}))},"ya"),dPL=_.SG(function(M){var d=M.data;
var N=M.useSmallLayout;var R=function(){return{size:(N==null?0:N())?16:24}};
return _.g(_.GT,null,_.g(_.ho,{data:function(){return d().contentPreviewImage}},{contentPreviewImageViewModel:function(X){return _.g(_.iK,{data:X.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:R})}}),_.g(_.ho,{data:function(){return d().badge}},{badgeViewModel:function(X){return _.g(_.nN,{data:X.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.g(_.kV,{cond:function(){return d().text},
then:function(){return _.g(_.lG,{text:function(){return d().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.g(_.kV,{cond:function(){return d().suffix},
then:function(){return _.g(_.lG,{text:function(){return d().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
fN.idomCompat=!0;var HRZ=_.W5({avatarStackViewModel:_.tUL,badgeViewModel:pOp});_.aR(ffr);var NRm,RNo,XEo,Fud,A3z,VK3,lfd;NRm=_.SG(function(M){var d=M.delimiter;var N=M.max;var R=M.index;var X=M.isStandalone;return _.g(_.kV,{cond:function(){return N()-1>R()},
then:function(){var A={};return _.g("span",{class:_.xj("yt-content-metadata-view-model-wiz__delimiter",(A["yt-content-metadata-view-model-wiz__delimiter--standalone"]=X,A)),"aria-hidden":!0},d)}})},"Aa");
RNo=_.SG(function(M){var d=M.metadataPart;var N=M.maxLines;return _.g(_.lG,{text:function(){return d().text},
linkInheritColor:!0,className:function(){return Luv(N())},
userInput:!0})},"Ba");
XEo=_.SG(function(M){var d=M.metadataPart;var N=M.maxLines;return _.g(_.GT,null,_.g(_.kV,{cond:function(){return d().tooltip},
then:function(R){return _.g("span",{title:R,role:"tooltip"},_.g(RNo,{metadataPart:d,maxLines:N}))},
else:function(){return _.g(RNo,{metadataPart:d,maxLines:N})}}))},"Ca");
Fud=_.SG(function(M){var d=M.metadataPart;var N=M.isOverlay;var R=M.useMediumText;var X=M.hideAvatar;var A=function(){return d().maxLines!==void 0?d().maxLines:1};
return _.g(_.GT,null,_.g(_.ho,{data:function(){return d().avatarStack}},{avatarStackViewModel:function(l){return _.g(_.gV,{data:l.data,
isOverlay:N,useMediumText:R,hideAvatar:X})},
badgeViewModel:_.nN}),_.g(_.kV,{cond:function(){return d().text},
then:function(){return _.g(XEo,{metadataPart:d,maxLines:A})}}))},"Da");
A3z=_.SG(function(M){var d=M.metadataRow;var N=M.isInline;var R=M.delimiter;var X=M.isOverlay;var A=M.useMediumText;var l=M.extensions;var k=function(){var T;return c3i(l==null?void 0:(T=l())==null?void 0:T.lockupMetadata,d())};
M={};return _.g("div",{class:_.xj("yt-content-metadata-view-model-wiz__metadata-row",(M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=N,M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var T;return S7q(l==null?void 0:(T=l())==null?void 0:T.lockupMetadata,d())},M["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var T;
return!!(l==null?0:(T=l())==null?0:T.lockupMetadata)&&d().badges},M))},_.g(_.ho,{data:function(){return d().badges}},{badgeViewModel:function(T){return _.g("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.g(_.nN,{data:T.data}))}}),_.g(_.TN,{each:function(){return d().metadataParts||[]}},function(T,W){return _.g(_.GT,null,_.g(Fud,{metadataPart:T,
isOverlay:X,useMediumText:A,hideAvatar:k}),_.g(NRm,{delimiter:R,max:function(){return d().metadataParts.length},
index:W,isStandalone:!1}))}),_.g(_.kV,{cond:function(){return d().isSpacerRow&&!N()},
then:function(){return _.g("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
VK3=_.SG(function(M){var d=_.cu(M,{layout:0,isOverlay:!1});M=d.className;var N=d.data,R=d.layout,X=d.isOverlay,A=d.useMediumText,l=d.extensions;d=_.e5();var k=function(){return R()===0};
_.ek(d,function(){return N().rendererContext});
var T={};return _.g("yt-content-metadata-view-model",{class:_.xj(M,"yt-content-metadata-view-model-wiz",(T["yt-content-metadata-view-model-wiz--inline"]=k,T["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.zH(N().rendererContext)},T["yt-content-metadata-view-model-wiz--medium-text"]=A,T)),
el:d},_.g(_.TN,{each:function(){return N().metadataRows}},function(W,w){return _.g(_.GT,null,_.g(A3z,{metadataRow:W,
isInline:k,delimiter:function(){return N().delimiter},
isOverlay:X,useMediumText:A,extensions:l}),_.g(_.kV,{cond:function(){return k()&&!W.isSpacerRow},
then:function(){return _.g(NRm,{delimiter:function(){return N().delimiter},
max:function(){return N().metadataRows.length},
index:w,isStandalone:!0})}}))}))},"Fa");
lfd=_.Q("web_enable_sink_yt_content_metadata_view_model")?VK3:ffr;_.$P3=_.Q("web_enable_sink_yt_content_metadata_view_model")?VK3:_.Ez(ffr);VK3.idomCompat=!0;var afZ=_.W5({avatarViewModel:_.If,decoratedAvatarViewModel:fJJ,contentMetadataViewModel:lfd,buttonViewModel:_.o0,attributionViewModel:fN});_.aR(UPj);var BRe=_.SG(function(M){var d={};return _.g("yt-lockup-metadata-view-model",{class:_.xj("yt-lockup-metadata-view-model-wiz",function(){a:{var N=M.lockupStyle();if(N==null?0:N.isOverlay)N="yt-lockup-metadata-view-model-wiz--overlay";else switch(N==null?void 0:N.arrangement){case 1:N="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:N="yt-lockup-metadata-view-model-wiz--vertical"}}return N},function(){a:{var N=M.lockupStyle();
if(N==null?0:N.isTiny)N="yt-lockup-metadata-view-model-wiz--tiny";else switch(N==null?void 0:N.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":N="yt-lockup-metadata-view-model-wiz--compact";break a;default:N="yt-lockup-metadata-view-model-wiz--standard"}}return N},(d["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.isOverlay},d["yt-lockup-metadata-view-model-wiz--card"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.isCard},d["yt-lockup-metadata-view-model-wiz--centered"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.isCentered},d["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.typographyBump},d["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.useLegacyTypography},d["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var N;
return(N=M.lockupStyle())==null?void 0:N.useRichGridLegacyTypography},d))},_.g(_.ho,{data:function(){return M.data().image}},{avatarViewModel:function(N){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.g(_.TS,{data:N.data}))},
decoratedAvatarViewModel:function(N){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.g(_.Dg,{data:N.data}))}}),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.g("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var N;return(N=M.data().title)==null?void 0:N.content}},_.g(_.kV,{cond:function(){return M.data().title},
then:function(N){return _.g(_.VX,{command:M.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:M.lockupAccessibilityLabel},_.g(_.lG,{text:N}))}})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.g(_.ho,{data:function(){return M.data().metadata}},{contentMetadataViewModel:function(N){return _.g(_.$P3,{data:N.data,
layout:1,useMediumText:function(){var R,X;return((R=M.lockupStyle())==null?void 0:R.typographyBump)||((X=M.lockupStyle())==null?void 0:X.useRichGridLegacyTypography)},
extensions:function(){var R,X;return{lockupMetadata:{byline:{hideAvatar:((R=M.lockupStyle())==null?void 0:R.arrangement)===0,addPadding:((X=M.lockupStyle())==null?void 0:X.arrangement)===1}}}}})}})),_.g(_.ho,{data:function(){return M.data().attribution}},{attributionViewModel:function(N){return _.g("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.g(fN,{data:N.data,
useSmallLayout:!0}))}})),_.g("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.g(_.ho,{data:function(){return M.data().menuButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
buttonOverrides:function(){var R;return((R=M.lockupStyle())==null?0:R.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),k$o=_.Q("web_enable_sink_lockups_batch")?BRe:_.Ez(UPj);
BRe.idomCompat=!0;var TRg=_.SG(function(M){var d=_.e5();_.QD(function(){requestAnimationFrame(function(){_.Hf(d.value)})});
var N={},R={},X={};return _.g("notification-multi-action-renderer",{class:_.xj("ytNotificationMultiActionRendererHost",(N.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var A;return(A=M.useLegacyShelfStyle)==null?void 0:A.call(M)},N)),
el:d},_.g("span",{"aria-live":"polite",class:_.xj("ytNotificationMultiActionRendererTextContainer",(R.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var A;return(A=M.useLegacyShelfStyle)==null?void 0:A.call(M)},R))},_.g(_.lG,{text:function(){return M.data().responseText}})),_.g("div",{class:_.xj("ytNotificationMultiActionRendererButtonContainer",(X.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var A;
return(A=M.useLegacyShelfStyle)==null?void 0:A.call(M)},X))},_.g(_.ho,{data:function(){var A;
return(A=M.data().buttons)==null?void 0:A.map(function(l){if(l=l.buttonRenderer){var k,T=Object,W=T.assign,w=(k=l.icon)==null?void 0:k.iconType;k=(k=l.command||l.serviceEndpoint||l.navigationEndpoint)?{innertubeCommand:k}:void 0;l={buttonViewModel:W.call(T,{},{iconName:w,onTap:k,trackingParams:l.trackingParams,titleFormatted:l.text?_.Wz(l.text):void 0},u0Z(l))}}else l=void 0;return l}).filter(function(l){return!!l})}},{buttonViewModel:function(A,l){return _.g("div",null,_.g(_.o0,{data:A.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var k;return((k=M.useModernStyles)==null?0:k.call(M))?{type:l()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var DPm=_.SG(function(M){var d=_.e5();_.QD(function(){requestAnimationFrame(function(){_.Hf(d.value)})});
return _.g("notification-text-renderer",{el:d,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.g(_.lG,{text:function(){return M.data().successResponseText}}))},"Ia");_.gwJ=_.SG(function(M){var d=_.FT(xY6,function(){var R;return CoL((R=M.contentId)==null?void 0:R.call(M))}),N=function(){var R;
return _.q((R=d())==null?void 0:R.command,_.p9)};
return _.g(_.kV,{cond:function(){var R;if(!(R=N())){var X;R=_.q((X=d())==null?void 0:X.command,ak3)}return R},
then:function(){return _.g(_.kV,{cond:N,then:function(){var R={};return _.g("div",{class:_.xj("ytDismissibleItemReplacedContent",function(){var X;return xPi((X=M.aspectRatio)==null?void 0:X.call(M))})},_.g("div",{class:_.xj((R.ytDismissibleItemAspectRatioContainer=function(){var X;
return((X=M.aspectRatio)==null?void 0:X.call(M))!==void 0},R))},_.g(_.ho,{data:function(){var X;
return(X=N())==null?void 0:X.item}},{notificationMultiActionRenderer:function(X){return _.g(TRg,{data:X.data,
useModernStyles:M.useModernStyle,useLegacyShelfStyle:M.useLegacyShelfStyle})},
notificationTextRenderer:DPm})))}})},
else:M.children})},"Ja");_.WuV=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;M=_.Hh();var R=function(){var A;return((A=d().interaction)==null?0:A.onTap)?function(l){var k;RN6(l,(k=d().interaction)==null?void 0:k.onTap,N)}:void 0},X=function(){var A,l=d(),k=R(),T=(A=_.q(d().rendererContext,_.H5))==null?void 0:A.label;
a:switch(l.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":A=1;break a;default:A=0}return{size:Ew6(l.size),type:A,onTap:k,accessibilityText:T}};
_.Gi(M,{visibilityCallback:function(A){var l,k=(l=d().interaction)==null?void 0:l.onFirstVisible;A&&k&&_.vz(k)},
showOption:_.bK});return _.g("ad-avatar-view-model",{class:function(){var A;return((A=d().interaction)==null?0:A.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:M},_.g(_.kV,{cond:function(){return d().image},
then:function(A){return _.g(nX,{data:X,image:A})}}))},"Ka");_.LN=_.SG(function(M){M=_.cu(M,{hasDot:!1});var d=Object.assign({},M),N=M.data,R=M.hasDot;M=M.customCommandResolver;var X=(delete d.data,delete d.hasDot,delete d.customCommandResolver,d);d=function(){return N().style};
d!==void 0&&d!==null||_.Sx(Error("Fh"));d=_.e5();_.to(d,function(){return N().interaction},M);
return _.g("ad-badge-view-model",{class:_.xj(function(){var A;return((A=N().interaction)==null?0:A.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var A=X.adRenderingContextType();
N();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:d},_.g(_.a0,{data:function(){var A;N();return{type:2,text:(A=N().label)==null?void 0:A.content,adsIncludeDot:R(),isOverlay:N().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var wEd;_.tz=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.adRenderingContextType;M=_.e5();_.to(M,function(){return d().interaction},N);
_.Gi(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.vz(l)},
showOption:_.bK});return _.g("ad-details-line-view-model",{class:function(){var X;return((X=d().interaction)==null?0:X.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:M},_.g(_.kV,{cond:function(){return d().style},
then:function(X){return _.g(_.TN,{each:function(){var A;return((A=d())==null?void 0:A.attributes)||[]},
keyBy:"INDEX"},function(A){return _.g(wEd,{attribute:A,style:X,adRenderingContextType:function(){return R()}})})}}))},"Ma");
wEd=_.SG(function(M){var d=M.attribute;var N=M.style;var R=M.adRenderingContextType;return _.g(_.kV,{cond:function(){return d().text},
then:function(X){return _.g(_.lG,{text:X,className:function(){var A=R();N();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var pEI=_.SG(function(M){var d=M.data;var N=M.typographyBump;var R=function(){return d().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
M={};return _.g(_.GT,null,_.g("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.g(_.lG,{text:function(){return d().headline},
className:_.xj("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return R==null?void 0:R()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(N==null?void 0:N())&&!(R==null?0:R())},M)),
linkInheritColor:!0}),_.g(_.kV,{cond:function(){return d().description},
then:function(X){var A={};return _.g(_.lG,{text:X,className:_.xj("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(A.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return R==null?void 0:R()},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(N==null?void 0:N())&&!(R==null?0:R())},A)),
linkInheritColor:!0})}}),_.g("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.g(_.ho,{data:function(){return d().adBadge}},{adBadgeViewModel:function(X){return _.g(_.LN,{data:X.data,
hasDot:function(){return!!d().adDetailsLine},
adRenderingContextType:function(){return d().adRenderingContextType}})}}),_.g(_.ho,{data:function(){return d().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.g(_.tz,{data:X.data,
adRenderingContextType:function(){return d().adRenderingContextType}})}}))),_.g("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.g(_.ho,{data:function(){return d().menu}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
buttonOverrides:function(){a:switch(d().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var A="S";break a;default:A="M"}return{size:A}}})}})))},"Oa"),mPd=_.SG(function(M){var d=M.data;
var N=M.noBottomMargin;var R=M.useVideoLockupTopPadding;var X=M.typographyBump;M={};M=_.xj("ytwFeedAdMetadataViewModelHostMetadata",(M.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return N==null?void 0:N()},M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},M));
var A=function(){return d().adBadge};
A!==void 0&&A!==null||_.Sx(Error("Gh"));A={};var l={};return _.g(_.GT,null,_.g(_.kV,{cond:function(){return d().adAvatar},
then:function(){return _.g("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.g(_.ho,{data:function(){return d().adAvatar}},{adAvatarViewModel:function(k){return _.g(_.WuV,{data:k.data})}}))}}),_.g("div",{class:M},_.g("div",{class:_.xj("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return X==null?void 0:X()},A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(X==
null?void 0:X())&&_.Q("web_enable_typography_bump_v2")},A))},_.g(_.lG,{text:function(){return d().headline},
linkInheritColor:!0})),_.g(_.kV,{cond:function(){return d().description},
then:function(k){return _.g(_.lG,{text:k,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.g("div",{class:function(){return d().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.Q("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.g(_.ho,{data:function(){return d().adBadge}},
{adBadgeViewModel:function(k){return _.g(_.LN,{data:k.data,
hasDot:function(){return!!d().adDetailsLine},
adRenderingContextType:function(){return d().adRenderingContextType}})}}),_.g(_.ho,{data:function(){return d().adDetailsLine}},{adDetailsLineViewModel:function(k){return _.g(_.tz,{data:k.data,
adRenderingContextType:function(){return d().adRenderingContextType}})}})),_.g(_.kV,{cond:function(){return d().secondaryDescription},
then:function(k){return _.g(_.lG,{text:k,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.g("div",{class:_.xj("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(l.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},l))},_.g(_.ho,{data:function(){return d().menu}},{buttonViewModel:_.o0})))},"Pa"),hNg=_.SG(function(M){var d=M.data;
var N=M.noBottomMargin;var R=M.listenToTapEvent;var X=M.setTouchEndHandler;var A=M.useVideoLockupTopPadding;var l=M.typographyBump;var k=_.e5();_.to(k,function(){return d().interaction},void 0,function(){return R==null?void 0:R()});
M=_.V(_.d0(!1,void 0,"v9Bv8e"));var T=M.next().value,W=M.next().value;M=_.dT(function(){(X==null?0:X())&&!T()&&(k.value.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
_.Gi(k,{visibilityCallback:function(w){var p,m=(p=d().interaction)==null?void 0:p.onFirstVisible;w&&m&&_.vz(m)},
showOption:_.bK});return _.g("feed-ad-metadata-view-model",{class:function(){var w;return((w=d().interaction)==null?0:w.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:k,"on:touchend":M},_.g(_.pF,null,_.g(_.gK,{when:function(){return d().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.g(pEI,{data:d,
typographyBump:l})}),_.g(_.gK,{when:function(){return d().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.g(mPd,{data:d,
noBottomMargin:N,useVideoLockupTopPadding:A,typographyBump:l})})))},"Qa");var QbV;_.GS=_.SG(function(M){return _.g("yt-lockup-view-model",{class:_.xj(M.className)},_.g(_.gwJ,{contentId:function(){return M.data().contentId},
useModernStyle:!0,aspectRatio:function(){var d,N;return((d=M.containerType)==null?void 0:d.call(M))!==3?hNZ(M.data().contentType,(N=M.force16By9ThumbnailAspectRatio)==null?void 0:N.call(M)):void 0}},function(){return _.g(QbV,Object.assign({},M))}))},"Ra");
QbV=_.SG(function(M){M=_.cu(M,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var d=M.data,N=M.containerLayoutConfig,R=M.containerType,X=M.sizing,A=M.protectBackground,l=M.typographyBump,k=M.force16By9ThumbnailAspectRatio,T=M.thumbnailFixedWidth,W=M.thumbnailTargetWidth,w=M.lockupExperiments,p=M.elementsPerRow;
M=_.e5();_.ek(M,function(){var b2;return(b2=d())==null?void 0:b2.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var m=_.hI(SES),I=_.h().resolve(_.CF(z_g)),O=I?{}:void 0,y=function(){var b2,Hj,LZ;return(LZ=(Hj=_.q((b2=d())==null?void 0:b2.rendererContext,_.H5))==null?void 0:Hj.label)!=null?LZ:void 0},c=function(){var b2=N==null?void 0:N(),Hj;
if(b2==null?0:b2.containerType){var LZ=(Hj=d())==null?void 0:Hj.contentType;Hj=w();var w3=l(),XY=W(),jJ=A();b2=Object.assign({},QbS(wEZ(b2),gwr(b2.responsiveSize),w3,LZ,b2.force16By9ThumbnailAspectRatio,XY,jJ,Hj),{thumbnailFixedWidth:b2.contentPreviewWidth})}else b2=QbS(R(),X(),l(),(LZ=d())==null?void 0:LZ.contentType,k(),W(),A(),w());return b2};
I&&O&&I({enabled:function(){return m()},
itemPlaybackModel:function(){return d().itemPlayback},
thumbnailElRef:function(){return O.thumbnailElRef},
containerElRef:M,options:function(){var b2,Hj=(b2=_.q(d().metadata,PgL))==null?void 0:b2.endorsement;b2=O.thumbnailOverlays||[];Hj&&b2.push(Hj);var LZ,w3;return{thumbnail:O.thumbnail,thumbnailOverlays:b2,accessibilityText:y(),thumbnailSize:O.thumbnailSize,enableRounding:c().isCollection,containPlayerWithinThumbnail:c().isCollection,trackingParams:(LZ=_.q(d().rendererContext,_.NAi))==null?void 0:(w3=LZ.loggingDirectives)==null?void 0:w3.trackingParams}}});
var e=0;I=_.V(_.d0(!1,void 0,"HzAs3"));var t=I.next().value,C=I.next().value;I=_.V(_.d0(!1,void 0,"ujOXud"));var U=I.next().value,Fi=I.next().value;I=_.dT(function(){var b2=m()&&d().itemPlayback;U()?(_.IQ.cancelJob(e),e=_.IQ.addJob(function(){C(!b2)},8,32)):C(!b2);
return!0});
var Y=_.dT(function(){e&&(_.IQ.cancelJob(e),e=0);C(!1)});
_.mF(function(){e&&(_.IQ.cancelJob(e),e=0)});
var $i=ZR2(function(){Fi(!0)}),vj=$i.touchFeedbackEvents,Pj=$i.touchFeedbackOnPointerUp,sS=$i.touchFeedbackOnPointerDown;
$i=$i.touchFeedbackOnPointerLeave;var tL={};return _.g("div",{el:M,class:_.xj("yt-lockup-view-model-wiz",function(){a:{var b2=c();if(b2.isOverlay)b2="yt-lockup-view-model-wiz--overlay";else switch(b2.arrangement){case 1:b2="yt-lockup-view-model-wiz--horizontal";break a;default:b2="yt-lockup-view-model-wiz--vertical"}}return b2},function(){a:{var b2=c();
if(b2.isOverlay)b2="yt-lockup-view-model-wiz--overlay";else{switch(b2.collectionStackNumber){case 1:b2="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:b2="yt-lockup-view-model-wiz--collection-stack-2";break a}b2=void 0}}return b2},(tL["yt-lockup-view-model-wiz--card"]=function(){return c().isCard},tL["yt-lockup-view-model-wiz--compact"]=function(){return c().isTiny||c().sizing!=="STANDARD"},tL["yt-lockup-view-model-wiz--protect-background"]=A,tL["yt-lockup-view-model-wiz--add-margins"]=
function(){return c().addMarginForFullbleed},tL["yt-lockup-view-model-wiz--centered"]=function(){return c().isCentered},tL["yt-lockup-view-model-wiz--fullbleed"]=function(){return c().fullbleed},tL["yt-lockup-view-model-wiz--single-column-grid"]=function(){return p()===1&&R()===2},tL["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var b2;
return(b2=w())==null?void 0:b2.useRichGridLegacyMargin},tL)),
"on:mousedown":sS,"on:mouseleave":Y,"on:mouseup":Pj,"on:mouseover":I,"on:touchstart":sS,"on:touchend":Pj,"on:pointerleave":$i},_.g(_.VX,{command:function(){var b2;return _.Sk((b2=d())==null?void 0:b2.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return T()&&c().arrangement===1?"width: "+T():""}},_.g(_.ho,{data:function(){var b2;
return(b2=d())==null?void 0:b2.contentImage}},{thumbnailViewModel:function(b2){return _.g(_.zS,{data:b2.data,
aspectRatio:function(){return c().aspectRatio},
disableRounding:function(){return c().disableRounding},
width:W,hovered:t,isClip:function(){var Hj;return((Hj=d())==null?void 0:Hj.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:JrS(O),lockupExperiments:function(){return w()}})},
collectionThumbnailViewModel:function(b2){return _.g(uHd,{data:b2.data,aspectRatio:function(){return c().aspectRatio},
disableRounding:function(){return c().disableRounding},
width:W,doubleStack:function(){return c().collectionStackNumber===2},
hovered:t,playbackRef:JrS(O)})},
decoratedAvatarViewModel:_.Dg})),_.g("div",{class:"yt-lockup-view-model-wiz__metadata"},_.g(_.ho,{data:function(){var b2;return(b2=d())==null?void 0:b2.metadata}},{lockupMetadataViewModel:function(b2){return _.g(k$o,{data:b2.data,
lockupStyle:c,lockupCommand:function(){var Hj;return _.Sk((Hj=d())==null?void 0:Hj.rendererContext)},
lockupAccessibilityLabel:function(){return y()}})},
feedAdMetadataViewModel:function(b2){return _.g(hNg,{data:b2.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:l})}}),_.g(_.ho,{data:function(){var b2;
return(b2=d())==null?void 0:b2.attachmentSlot}},{lockupAttachmentsViewModel:function(b2){return _.g(Eoe,{data:b2.data,
lockupStyle:c})}})),_.g(_.$F,{model:function(){a:{switch(c().collectionStackNumber){case 1:var b2=8;
break a;case 2:b2=12;break a}b2=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:b2}},
pointerDownEvent:vj.pointerDownEvent,pointerUpEvent:vj.pointerUpEvent,pointerLeaveEvent:vj.pointerLeaveEvent}))},"Sa");
_.GS.idomCompat=!0;_.eC(_.GS,"yt-lockup-view-model",{props:{data:_.cA,containerLayoutConfig:_.cA,containerType:_.cA,sizing:_.cA,protectBackground:_.cA,typographyBump:_.cA,thumbnailFixedWidth:_.cA,thumbnailTargetWidth:_.cA,force16By9ThumbnailAspectRatio:_.cA,className:_.cA,lockupExperiments:_.cA,elementsPerRow:_.cA}});_.aR(Fo2);var kyr=_.W5({buttonViewModel:_.o0}),q7o=_.Ez($jj);_.aR($jj);_.aR(VAA);_.aR(lZL);_.eC(q7o,"yt-video-attribute-view-model",{props:{data:_.cA,className:_.cA}});var ar=function(){var M=_.n.apply(this,arguments)||this;M.useHighlightStyling=_.Q("web_enable_deeper_metadata_highlight_styling");M.isSearch=!1;M.JSC$12920_lastScrollContainerWidth=NaN;M.pageLoadingFromNavigation=!1;M.currentIndex=0;M.supportComponentResize=!1;return M};
_.v(ar,_.n);_.F=ar.prototype;
_.F.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}}}}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.ux(this,this.onPageChange))};
_.F.detached=function(){document.removeEventListener("yt-page-type-changed",_.ux(this,this.onPageChange))};
_.F.getItemsPath=function(){return"data.cards"};
_.F.onIronResize=function(){this.updateListStyles()};
_.F.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var M;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(M=this.data)==null?void 0:M.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.Q("problem_walkthrough_sd")&&!!this.centerItems};
_.F.computeCardListStyle=function(M){return M||null};
_.F.computeEmpty=function(M){return!this.get("cards.length",M)};
_.F.computeThumbnailStyle=function(M){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",M)||null};
_.F.computeHasSubtitle=function(M){return!!this.get("header.richListHeaderRenderer.subtitle",M)};
_.F.computeInitialCountNumber=function(M){return this.hasSquareMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.F.computeUseFloorScrolling=function(M){return M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.F.computeHasGameCard=function(M){return(M=this.get("cards",M))?M.some(function(d){return d.gameCardRenderer}):!1};
_.F.computeCenterHeaderTitle=function(M){return!(M==null||!M.centerHeaderTitle)};
_.F.computeHasPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.F.computeHasSquareMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.F.computeHasSkinnyWidthPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(d){return d.miniGameCardViewModel&&d.miniGameCardViewModel.width===135}):!1};
_.F.computeCenterItems=function(M){return!!M};
_.F.computeHasInfoPanel=function(M){var d;return M==null?void 0:(d=M.cards)==null?void 0:d.some(function(N){return N.infoPanelContentRenderer})};
_.F.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.F.getItemByIndex=function(M){var d=this.items.children;return d&&d.length>M?d[M]:void 0};
_.F.onPageChange=function(){var M=this;this.pageLoadingFromNavigation=!0;_.IQ.addJob(function(){M.pageLoadingFromNavigation=!1;_.Eu(M.hostElement,"yt-terminate-video-preview-action")},8)};
_.F.updateListStyles=function(){if(_.Q("problem_walkthrough_sd")&&this.JSC$12920_scrollContainer!==void 0){var M=this.JSC$12920_scrollContainer.clientWidth;M!==this.JSC$12920_lastScrollContainerWidth&&(this.JSC$12920_lastScrollContainerWidth=M,_.UO(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(M*.8,415)+"px"}),_.YP(this.hostElement,"iron-resize"))}};
_.Hm.Object.defineProperties(ar.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.Q("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return _.Q("kevlar_modern_sd")&&!!((M=this.data)==null?0:(d=M.cards)==null?0:(N=d[0])==null?0:N.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.cards)==null?0:(N=d[0])==null?0:N.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return _.Q("enable_desktop_amsterdam_info_panels")&&!!((M=this.data)==null?0:(d=M.cards)==null?0:(N=d[0])==null?0:N.infoPanelContentRenderer)}}});
ar.prototype.dataChanged=ar.prototype.dataChanged;ar.prototype.onIronResize=ar.prototype.onIronResize;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],ar.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.sp),_.a("design:type",Object)],ar.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ar.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ar.prototype,"useCustomColors",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ar.prototype,"useHighlightStyling",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.a("design:type",Object)],ar.prototype,"cardListStyle",void 0);_.G([_.H({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.a("design:type",Boolean)],ar.prototype,"empty",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasSubtitle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.a("design:type",Boolean)],ar.prototype,"thumbnailStyle",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasGameCard",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.a("design:type",Boolean)],ar.prototype,"centerHeaderTitle",void 0);
_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasPortraitMiniApp",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasSquareMiniApp",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.G([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.a("design:type",Boolean)],ar.prototype,"hasInfoPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ar.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ar.prototype,"inlineStructuredDescription",void 0);_.G([_.Z3("#scroll-container"),_.a("design:type",HTMLDivElement)],ar.prototype,"JSC$12920_scrollContainer",void 0);
_.G([_.H({computed:"computeInitialCountNumber(data.style.type)"}),_.a("design:type",Number)],ar.prototype,"initialCount",void 0);_.G([_.H({computed:"computeUseFloorScrolling(data.style.type)"}),_.a("design:type",Boolean)],ar.prototype,"useFloorScrolling",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.a("design:type",Boolean)],ar.prototype,"centerItems",void 0);_.G([_.H(),_.a("design:type",Object)],ar.prototype,"pageLoadingFromNavigation",void 0);
_.G([_.H(),_.a("design:type",Object)],ar.prototype,"currentIndex",void 0);_.G([_.H(),_.a("design:type",Number)],ar.prototype,"scrollCount",void 0);_.G([_.H(),_.a("design:type",Object)],ar.prototype,"supportComponentResize",void 0);_.G([_.Z3("#items"),_.a("design:type",HTMLDivElement)],ar.prototype,"items",void 0);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ar.prototype,"onIronResize",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ar.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.z("inlineStructuredDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"hideNavigationButton",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"modernChapters",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"hasVideoAttributeViewModels",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ar.prototype,"modernInfoPanels",null);ar=_.G([_.f({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],ar);
_.L(ar,"ytd-horizontal-card-list-renderer",function(){if(Tid!==void 0)return Tid;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Tid=M},{mode:_.G3("kevlar_poly_si_batch_j072")?1:2});_.aR(Dji);var IfJ=_.Ez(Dji);_.aA(Dji,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var Uy=function(){var M=_.n.apply(this,arguments)||this;var d,N;M.isExpanded=(N=(d=M.data)==null?void 0:d.isExpanded)!=null?N:!1;M.disableExpand=!1;M.showProminentLabel=!1;M.showRightSideLabel=!0;M.toggleExpandableContent=function(R){M.disableExpand||(R.stopPropagation(),_.zx(_.J2(R),M.hostElement,["info","expanded-subtitle"])||(M.isExpanded=!M.isExpanded,M.ytRendererBehavior.logExplicitClick(M.data),M.JSC$12932_cardList&&!_.Q("expandable_metadata_a11y_fix_ks")&&_.bM(M,function(){_.e6(M.hostElement)})))};
M.useSquareThumbnail=!1;M.startX=0;return M};
_.v(Uy,_.n);_.F=Uy.prototype;_.F.computeUseSquareThumbnail=function(){var M;return(M=this.data)==null?void 0:M.useSquareThumbnail};
_.F.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"}}}}};
_.F.dataChanged=function(){if(this.data){var M,d;this.isExpanded=(d=(M=this.data)==null?void 0:M.isExpanded)!=null?d:!1;var N,R,X,A;if(M=this.isDarkTheme()?(N=this.data)==null?void 0:(R=N.colorData)==null?void 0:R.darkColorPalette:(X=this.data)==null?void 0:(A=X.colorData)==null?void 0:A.lightColorPalette){var l,k;if((l=this.data)==null?0:(k=l.colorData)==null?0:k.vibrantColorPalette)M.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Wi(this.hostElement,M)}}};
_.F.isExpandedChanged=function(){this.isExpanded&&this.JSC$12932_cardList&&_.YP(this.JSC$12932_cardList,"iron-resize")};
_.F.computeIsExpanded=function(M){return!!M.isExpanded};
_.F.computeShowProminentLabel=function(M,d){var N;return!!(M==null?0:(N=M.header)==null?0:N.showLeadingCollapsedLabel)&&!d};
_.F.computeShowRightSideLabel=function(M,d){var N;return!(M==null?0:(N=M.header)==null?0:N.showLeadingCollapsedLabel)&&!d};
_.F.captureContentClick=function(M){if(!this.disableExpand)if(_.Q("expandable_metadata_fix_killswitch")){var d=M.target;_.net(d,"ytd-macro-markers-list-item-renderer")||M.stopPropagation();(d==null?void 0:d.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.zx(_.J2(M),this.hostElement,["items"])||_.Sm(_.J2(M),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.F.timestampClick=function(M){M.stopPropagation();var d,N;(M=(d=this.data)==null?void 0:(N=d.header)==null?void 0:N.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(M)};
_.F.onDown=function(M){M.stopPropagation();this.startX=M.detail?M.detail.x:0};
_.F.onUp=function(M){this.skipKeyInteraction(M)&&M.stopPropagation()};
_.F.skipKeyInteraction=function(M){var d=M.target;if((d==null?void 0:d.id)==="scroll-container"||(d==null?void 0:d.id)==="items"||M.detail&&M.detail.x!==this.startX)return!0;M=_.J2(M);M=_.V(M);for(d=M.next();!d.done;d=M.next()){d=d.value;if(d===this.hostElement)break;if(d.hasAttribute&&d.hasAttribute("skip-key-interaction"))return!0}return!1};
_.F.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Hm.Object.defineProperties(Uy.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.expandedContent,nk3)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.expandedContent,_.oOL)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.useCustomColors)&&!((d=this.data)==null||!d.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.header)==null?0:d.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.header)==null?0:d.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.header)==null?0:d.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Uy.prototype.onUp=Uy.prototype.onUp;Uy.prototype.onDown=Uy.prototype.onDown;Uy.prototype.isExpandedChanged=Uy.prototype.isExpandedChanged;Uy.prototype.dataChanged=Uy.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Uy.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Uy.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Uy.prototype,"isExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Uy.prototype,"disableExpand",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Uy.prototype,"isSearch",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Uy.prototype,"isWatch",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.a("design:type",Object)],Uy.prototype,"showProminentLabel",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.a("design:type",Object)],Uy.prototype,"showRightSideLabel",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"hasVideoSummary",null);_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"hasLockupViewModel",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","isWatch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"useCustomColors",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showInfoButton",null);_.G([_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showTimestamp",null);_.G([_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showExpandedSubtitle",null);
_.G([_.z("data","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Uy.prototype,"showThumbnail",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uy.prototype,"useVppShoppingDestinationStyle",null);_.G([_.H(),_.a("design:type",Object)],Uy.prototype,"toggleExpandableContent",void 0);_.G([_.Z3("ytd-horizontal-card-list-renderer"),_.a("design:type",Object)],Uy.prototype,"JSC$12932_cardList",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.a("design:type",Object)],Uy.prototype,"useSquareThumbnail",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uy.prototype,"dataChanged",null);_.G([_.xB("isExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uy.prototype,"isExpandedChanged",null);
_.G([_.C3("down"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Uy.prototype,"onDown",null);_.G([_.C3("up"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Uy.prototype,"onUp",null);Uy=_.G([_.f({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Uy);
_.L(Uy,"ytd-expandable-metadata-renderer",function(){if(TvL!==void 0)return TvL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return TvL=M},{mode:1});var vwd,ORJ=function(){if(vwd!==void 0)return vwd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" 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      <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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return vwd=M};_.pO("itemSectionRenderer","videoRenderer","ytd-video-renderer");var uK=function(){var M=_.n.apply(this,arguments)||this;M.disableExpand=!1;M.shouldShowChannelInfo=!1;M.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return M};
_.v(uK,_.n);_.F=uK.prototype;_.F.computeUseSearchUi=function(){var M,d;return this.isSearch||((M=this.data)==null?void 0:(d=M.style)==null?void 0:d.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.F.computeUseThreeLineTitle=function(){var M;return((M=this.data)==null?void 0:M.maxTitleLines)===3};
_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.Q("polymer_video_renderer_defer_menu")&&!RzV?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]]"}}}}}};
_.F.attached=function(){_.t2(this.hostElement,"blue-links",_.Q("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Gu(_.K(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),d;M&&((d=_.q(M.commandMetadata,_.vq))==null?0:d.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M);this.updateInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12937_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.JSC$12937_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$12937_inlinePreviewHoverListener)==null||Mo(M)};
_.F.onTextWrapperClick=function(M){var d,N,R=this.hideTranslation?(d=this.data)==null?void 0:d.untranslatedNavigationEndpoint:(N=this.data)==null?void 0:N.navigationEndpoint;d=_.zx(_.J2(M),this.hostElement,["expandable-metadata"]);!R||d&&!_.Q("expandable_metadata_fix_killswitch")||_.Sm(_.J2(M),this.hostElement,["A".toString(),"BUTTON".toString()])||_.YP(this.hostElement,"yt-navigate",{endpoint:R})};
_.F.computeThumbnailWidth=function(M,d,N,R,X){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:R?X==="MASSIVE"?600:X==="BIG"?500:X==="MEDIUM"?450:420:N?360:d?128:M?210:246};
_.F.computeUseBiggerThumbs=function(M){return M&&_.Q("enable_desktop_search_bigger_thumbs")};
_.F.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.F.computeVideoStyle=function(){if(_.Q("enable_video_style")){var M,d;return(M=this.data)==null?void 0:(d=M.style)==null?void 0:d.value}};
_.F.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.F.handleHideItemSectionVideosByIdCommand=function(M){var d;M=(d=_.q(M,$LI))==null?void 0:d.videoId;this.data&&this.data.videoId===M&&(this.isHidden=!0)};
_.F.getMetadataSnippetContainerClass=function(M){return M?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.F.computeTitleText=function(M,d,N){return M?N:d};
_.F.computeDescriptionSnippet=function(M,d,N){return M?N:d};
_.F.computeSnippetText=function(M,d,N){return M?N:d};
_.F.computeNavigationEndpoint=function(M,d){return M?d==null?void 0:d.untranslatedNavigationEndpoint:d==null?void 0:d.navigationEndpoint};
_.F.hideInlineTitleIcon=function(M,d){return M||!d};
_.Hm.Object.defineProperties(uK.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var M;return(M=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?M:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$12937_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Hm.Object.defineProperties(uK,{template:{configurable:!0,enumerable:!0,get:function(){return ORJ()}}});
uK.prototype.dataChanged=uK.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],uK.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],uK.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.ck),_.a("design:type",Object)],uK.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],uK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],uK.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isBackstageVideo",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isPostCompactVideo",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],uK.prototype,"isHistory",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isRichGridVideoPost",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isHidden",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],uK.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.a("design:type",Boolean)],uK.prototype,"useSearchUi",void 0);_.G([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.a("design:type",Boolean)],uK.prototype,"useThreeLineTitle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.a("design:type",Boolean)],uK.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.a("design:type",Object)],uK.prototype,"videoStyle",void 0);_.G([_.H({computed:"computeDisableExpand(videoStyle)"}),_.a("design:type",Object)],uK.prototype,"disableExpand",void 0);
_.G([_.H({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.a("design:type",Object)],uK.prototype,"shouldShowChannelInfo",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],uK.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.a("design:type",String)],uK.prototype,"inlineTitleIcon",void 0);_.G([_.H({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.a("design:type",Object)],uK.prototype,"computedNavigationEndpoint",void 0);_.G([_.H({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(M,d){return _.Rz(M.entities,"searchVideoResultEntity",d)}}),
_.a("design:type",Object)],uK.prototype,"searchVideoResultEntity",void 0);_.G([_.Z3("ytd-thumbnail"),_.a("design:type",HTMLElement)],uK.prototype,"thumbnail",void 0);_.G([_.Z3("#dismissible"),_.a("design:type",HTMLElement)],uK.prototype,"JSC$12937_dismissibleMedia",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uK.prototype,"dataChanged",null);
_.G([_.z("searchVideoResultEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uK.prototype,"hideTranslation",null);_.G([_.z("searchVideoResultEntity"),_.a("design:type",Array),_.a("design:paramtypes",[])],uK.prototype,"hiddenBadgeGroups",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uK.prototype,"isHovered",null);uK=_.G([_.f({is:"ytd-video-renderer",disableElementRegistration:!0})],uK);
_.L(uK,"ytd-video-renderer",function(){return ORJ()},{mode:_.G3("kevlar_poly_si_batch_j047")?1:2});var CN=function(){var M=_.n.apply(this,arguments)||this;M.editDialog=null;M.roundedContainer=!0;M.isLoading=!1;M.isRichGrid=!1;M.isRichGridRepost=!1;M.reduceSidePaddings=_.Q("reduce_side_paddings_in_shelf");M.JSC$12943_spinnerEl=null;return M};
_.v(CN,_.n);_.F=CN.prototype;
_.F.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"}}}};
_.F.contentTextChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){var M=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var d=0,N=this.data.actions&&this.data.actions.length;d<N;d++)this.openEditDialog(_.q(this.data.actions[d],JMd));if((d=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(d=this.get("buttonRenderer.hint.hintRenderer.hintId",d))&&d.startsWith("share-post-hint")){var R=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(R){_.ug.getInstance();var X=C4(_.ep(_.le("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.IQ.addLowPriorityJob(function(){_.Ni(M.hostElement,X,R)})}}}};
_.F.updatePoll=function(M){M>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.F.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12943_spinnerEl||(this.JSC$12943_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.hostElement).appendChild(this.JSC$12943_spinnerEl));this.JSC$12943_spinnerEl&&(this.JSC$12943_spinnerEl.active=this.isLoading)};
_.F.onYtNavigate=function(M){var d=this.get("updateCommentDialogEndpoint",M.detail.endpoint);d&&(this.openEditDialog(d),M.stopPropagation())};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.onYtCommentPollRevert=function(M,d){d&&this.updatePoll(d.selectedChoiceIndex)};
_.F.onYtServiceRequestSent=function(M,d){var N;d.endpoint&&(_.q(d.endpoint,E3g)||_.q(d.endpoint,Z9t)&&((N=_.q(d.endpoint,Z9t))==null||!N.clientActions))&&(this.isLoading=!0);if(d.actions)for(M=0;M<d.actions.length;M++)N=d.actions[M],_.q(N,qs)&&(N=this.get("updateBackstagePollAction.selectedChoiceIndex",N),N==void 0&&(N=-1),this.updatePoll(N))};
_.F.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.F.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.F.computeIsPostHidden=function(M,d){return!!M||d};
_.F.computeSurfaceType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.F.computeShowWithoutToolbar=function(M){return!M.actionButtons&&!M.actionMenu};
_.F.computePostAttachment=function(M){if(M.backstageAttachment){if(_.q(M.backstageAttachment,ocJ))return"poll";if(_.q(M.backstageAttachment,TJo))return"quiz";if(_.q(M.backstageAttachment,_.bGI))return"video";if(_.q(M.backstageAttachment,DmI))return"uploaded-videos";if(_.q(M.backstageAttachment,VIz))return M.contentText?"image":"image-only";if(_.q(M.backstageAttachment,l6I))return"playlist"}return"none"};
_.F.computePostTabIndex=function(M){return M?0:-1};
_.F.computeButtonTooltipPosition=function(M){return this.computeUsesCompactLockup(M)?"top":"bottom"};
_.F.computeHasText=function(M){return!(M==null||!M.contentText)};
_.F.onTap=function(M){var d,N;if(((d=this.data)==null?0:d.navigationEndpoint)&&((N=this.data)==null?void 0:N.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var R;((R=this.data)==null?0:R.navigationEndpoint)&&!_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Hm.Object.defineProperties(CN.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.ep("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,ocJ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,DmI))}}});
CN.prototype.onYtServiceRequestCompleted=CN.prototype.onYtServiceRequestCompleted;CN.prototype.onYtServiceRequestSent=CN.prototype.onYtServiceRequestSent;CN.prototype.onYtCommentPollRevert=CN.prototype.onYtCommentPollRevert;CN.prototype.onYtCommentboxDismiss=CN.prototype.onYtCommentboxDismiss;CN.prototype.onYtNavigate=CN.prototype.onYtNavigate;CN.prototype.isLoadingChanged=CN.prototype.isLoadingChanged;CN.prototype.dataChanged=CN.prototype.dataChanged;CN.prototype.contentTextChanged=CN.prototype.contentTextChanged;
_.G([_.S(_.sp),_.a("design:type",Object)],CN.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CN.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],CN.prototype,"editDialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"roundedContainer",void 0);_.G([_.H(),_.a("design:type",Object)],CN.prototype,"isLoading",void 0);_.G([_.H({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.a("design:type",String)],CN.prototype,"surface",void 0);
_.G([_.H({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CN.prototype,"usesCompactLockup",void 0);_.G([_.H({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CN.prototype,"showWithoutToolbar",void 0);_.G([_.H({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.a("design:type",String)],CN.prototype,"attachment",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"isRichGridRepost",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("use_better_post_dismissals")}),_.a("design:type",Boolean)],CN.prototype,"useBetterPostDismissals",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CN.prototype,"reduceSidePaddings",void 0);
_.G([_.H({computed:"computeHasText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CN.prototype,"hasText",void 0);_.G([_.Z3("#expander"),_.a("design:type",Object)],CN.prototype,"expander",void 0);_.G([_.Z3("#action-buttons"),_.a("design:type",Object)],CN.prototype,"actionButtons",void 0);_.G([_.Z3("#edit-dialog"),_.a("design:type",HTMLElement)],CN.prototype,"editDialogEl",void 0);
_.G([_.xB("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"contentTextChanged",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"dataChanged",null);_.G([_.xB("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"isLoadingChanged",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],CN.prototype,"onYtNavigate",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CN.prototype,"onYtCommentboxDismiss",null);_.G([_.C3("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],CN.prototype,"onYtCommentPollRevert",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],CN.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],CN.prototype,"onYtServiceRequestCompleted",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],CN.prototype,"voteCount",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],CN.prototype,"commentCount",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CN.prototype,"hasPoll",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],CN.prototype,"hasUploadedVideo",null);CN=_.G([_.f({is:"ytd-post-renderer",disableElementRegistration:!0})],CN);
_.L(CN,"ytd-post-renderer",function(){if(SJV!==void 0)return SJV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return SJV=M},{mode:1});var jbd;var sb3;var xl=function(){return _.n.apply(this,arguments)||this};
_.v(xl,_.n);xl.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],xl.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],xl.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xl.prototype,"data",void 0);
_.G([_.H({value:"$.items.children"}),_.a("design:type",String)],xl.prototype,"itemsPath",void 0);_.G([_.H({value:1}),_.a("design:type",Number)],xl.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",String)],xl.prototype,"surface",void 0);xl=_.G([_.f({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],xl);
_.L(xl,"ytd-post-multi-image-renderer",function(){if(sb3!==void 0)return sb3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return sb3=M},{mode:_.G3("kevlar_poly_si_batch_j079")?1:2});var PoL={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Yl=function(){var M=_.n.apply(this,arguments)||this;M.hasInlineCommentSection=!1;M.editDialog=null;M.isLoading=!1;M.shouldHideAuthor=!1;M.shouldShowVideoTime=!1;
M.isInEngagementPanel=!1;M.hideBorder=!1;M.usesFullLockup=!1;M.shouldShowMenuInCompactView=!1;M.JSC$12959_spinnerEl=null;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.v(Yl,_.n);_.F=Yl.prototype;_.F.configureRendererStamper=function(){return PoL};
_.F.computeIsPollHeaderEnabled=function(M){return(M==null?void 0:M.pollMetadataIcon)!=null};
_.F.getPublishTimeStampString=function(M,d){d=new Date((Number(d)-60*((new Date).getTimezoneOffset()-(new Date(Number(d)*1E3)).getTimezoneOffset()))*1E3);d=(new Sp(10)).format(d);if(M&&M.runs&&M.runs.length)for(var N=0;N<M.runs.length;N++)M.runs[N].text&&(M.runs[N].text=M.runs[N].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",d));return M};
_.F.created=function(){this.JSC$12959_spinnerEl=null};
_.F.contentTextChanged=function(){this.expander.reset()};
_.F.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var M;if((M=this.data)==null?0:M.actions){M=_.V(this.data.actions);for(var d=M.next();!d.done;d=M.next())this.openEditDialog(_.q(d.value,JMd))}};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){_.K(this.hostElement).querySelector("#action-buttons").reply()};
_.F.updatePoll=function(M,d){d&&this.set("data.pollMetadataVoteCountText",d);this.hasInlineCommentSection&&(M=M>=0,d=_.K(this.hostElement).querySelector("#action-buttons"),M?d.reply():d.hideReplyDialog())};
_.F.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12959_spinnerEl||(this.JSC$12959_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.hostElement).appendChild(this.JSC$12959_spinnerEl));this.JSC$12959_spinnerEl&&(this.JSC$12959_spinnerEl.active=this.isLoading)};
_.F.onYtNavigate=function(M){var d=this.get("updateCommentDialogEndpoint",M.detail.endpoint);d&&(this.openEditDialog(d),M.stopPropagation())};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.onYtCommentPollRevert=function(M,d){d&&this.updatePoll(d.selectedChoiceIndex,d.totalVotes)};
_.F.onYtServiceRequestSent=function(M,d){M.stopPropagation();M=_.q(d.endpoint,Z9t);if(_.q(d.endpoint,E3g)||M&&!M.clientActions)this.isLoading=!0;if(d.actions)for(M=0;M<d.actions.length;M++){var N=d.actions[M],R=_.q(N,qs);R&&(N=this.get("updateBackstagePollAction.selectedChoiceIndex",N),N===void 0&&(N=-1),this.updatePoll(N,R.totalVotes))}};
_.F.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.F.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogElement.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.F.computeIsBodyHidden=function(M,d){return!!M||d};
_.Hm.Object.defineProperties(Yl.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.pollMetadataIcon)==null?0:d.iconType)return _.C6(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.ep("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,ocJ))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,TJo))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,DmI))}}});
Yl.prototype.onYtServiceRequestCompleted=Yl.prototype.onYtServiceRequestCompleted;Yl.prototype.onYtServiceRequestSent=Yl.prototype.onYtServiceRequestSent;Yl.prototype.onYtCommentPollRevert=Yl.prototype.onYtCommentPollRevert;Yl.prototype.onYtCommentboxDismiss=Yl.prototype.onYtCommentboxDismiss;Yl.prototype.onYtNavigate=Yl.prototype.onYtNavigate;Yl.prototype.isLoadingChanged=Yl.prototype.isLoadingChanged;Yl.prototype.dataChanged=Yl.prototype.dataChanged;Yl.prototype.contentTextChanged=Yl.prototype.contentTextChanged;
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Yl.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yl.prototype,"rendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Yl.prototype,"rendererstamperBehavior",void 0);_.G([_.Z3("#contentTextExpander"),_.a("design:type",Object)],Yl.prototype,"expander",void 0);
_.G([_.Z3("#edit-dialog"),_.a("design:type",Element)],Yl.prototype,"editDialogElement",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"hasInlineCommentSection",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"editDialog",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"isLoading",void 0);
_.G([_.H({computed:"computeIsPollHeaderEnabled(data)"}),_.a("design:type",Boolean)],Yl.prototype,"isPollHeaderEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"shouldHideAuthor",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"shouldShowVideoTime",void 0);_.G([_.H(),_.a("design:type",Object)],Yl.prototype,"isInEngagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yl.prototype,"hideBorder",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yl.prototype,"usesFullLockup",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yl.prototype,"shouldShowMenuInCompactView",void 0);_.G([_.z("isInEngagementPanel"),_.a("design:type",Number),_.a("design:paramtypes",[])],Yl.prototype,"postTextMaxLines",null);_.G([_.z("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yl.prototype,"pollIcon",null);
_.G([_.xB("data.contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"contentTextChanged",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"dataChanged",null);_.G([_.xB("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"isLoadingChanged",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Yl.prototype,"onYtNavigate",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yl.prototype,"onYtCommentboxDismiss",null);_.G([_.C3("yt-comment-poll-revert"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Yl.prototype,"onYtCommentPollRevert",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],Yl.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Yl.prototype,"onYtServiceRequestCompleted",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yl.prototype,"voteCount",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yl.prototype,"commentCount",null);_.G([_.z("data.backstageAttachment"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yl.prototype,"hasPoll",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yl.prototype,"hasQuiz",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yl.prototype,"hasUploadedVideo",null);
Yl=_.G([_.f({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Yl);
_.L(Yl,"ytd-backstage-post-renderer",function(){if(jbd!==void 0)return jbd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jbd=M},{mode:1});var owz;var Zg=function(){var M=_.n.apply(this,arguments)||this;M.editDialog=null;M.showExpandButton=!1;M.isRichGrid=!1;M.usesFullLockup=!1;return M};
_.v(Zg,_.n);_.F=Zg.prototype;_.F.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"}}}};
_.F.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.F.computeShowExpandButton=function(M){return this.usesCompactLockup||M&&M.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.F.computeUsesCompactLockup=function(M){return!!M.condensedContent};
_.F.computeShowFullContentText=function(M){return!M};
_.F.onYtNavigate=function(M){M=this.get("updateCommentDialogEndpoint",M.detail.endpoint);this.openEditDialog(M)};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null};
_.F.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.repostEditDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.F.onTap=function(M){if(this.data){var d=null;this.usesCompactLockup&&!_.Sm(_.J2(M)||[],this.hostElement,["YT-IMG-SHADOW"])?d=this.get("navigationEndpoint",this.data):M.target===this.moreButtonEl&&(d=this.get("navigationEndpoint",M.target.data));d&&_.YP(this.hostElement,"yt-navigate",{endpoint:d})}};
Zg.prototype.onYtCommentboxDismiss=Zg.prototype.onYtCommentboxDismiss;Zg.prototype.onYtNavigate=Zg.prototype.onYtNavigate;Zg.prototype.dataChanged=Zg.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zg.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Zg.prototype,"editDialog",void 0);_.G([_.H({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Zg.prototype,"usesCompactLockup",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zg.prototype,"showExpandButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zg.prototype,"isRichGrid",void 0);
_.G([_.H({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Zg.prototype,"showFullContentText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Zg.prototype,"usesFullLockup",void 0);_.G([_.Z3("#more"),_.a("design:type",Object)],Zg.prototype,"moreButtonEl",void 0);_.G([_.Z3("#repost-content-text"),_.a("design:type",HTMLElement)],Zg.prototype,"repostContentTextEl",void 0);
_.G([_.Z3("#repost-edit-dialog"),_.a("design:type",HTMLElement)],Zg.prototype,"repostEditDialogEl",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zg.prototype,"dataChanged",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Zg.prototype,"onYtNavigate",null);
_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zg.prototype,"onYtCommentboxDismiss",null);Zg=_.G([_.f({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Zg);
_.L(Zg,"ytd-shared-post-renderer",function(){if(owz!==void 0)return owz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return owz=M},{mode:1});var r3V;var Kuz;var Ey=function(){return _.n.apply(this,arguments)||this};
_.v(Ey,_.n);Ey.prototype.attached=function(){var M=this;this.networkStatusManager||(this.networkStatusManager=new _.S6,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){M.onlineHandler()}))};
Ey.prototype.detached=function(){var M=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){M.onlineHandler()}),delete this.networkStatusManager)};
Ey.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ey.prototype,"data",void 0);Ey=_.G([_.f({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Ey);
_.L(Ey,"ytd-reload-page-button-renderer",function(){if(Kuz!==void 0)return Kuz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return Kuz=M},{mode:1});var y33={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"},M0=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(M0,_.n);_.F=M0.prototype;_.F.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.F.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.F.computeHasBodyText=function(M){return!!M.bodyText};
_.F.computeButtons=function(M){var d=[];M.ctaButton&&d.push(M.ctaButton);M.secondaryButton&&d.push(M.secondaryButton);return d};
_.F.computeRendererStyle=function(M){return M.style?M.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():M.icon?"":"no-icon"};
_.F.getIconName=function(M,d){d=d===void 0?!1:d;if(M===void 0)return"";M=this.get("icon.iconType",M);var N;_.Q("enable_hlp_client_icon_pick")?N=this.getThemedIcon(M,d):N=M;(d=y33[N])||(d="yt-icons");return[d,N].join(":")};
_.F.getThemedIcon=function(M,d){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(M)?d?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(M)?d?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":M};
_.F.isThumbnail=function(M){return!!M.thumbnail};
_.F.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M0.prototype,"data",void 0);
_.G([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],M0.prototype,"rendererStyle",void 0);_.G([_.H({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.a("design:type",String)],M0.prototype,"iconName",void 0);_.G([_.H({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],M0.prototype,"thumbnail",void 0);_.G([_.H({computed:"computeButtons(data)"}),_.a("design:type",Array)],M0.prototype,"buttons",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],M0.prototype,"isDarkTheme",void 0);_.G([_.H({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],M0.prototype,"hasBodyText",void 0);M0=_.G([_.f({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],M0);
_.L(M0,"ytd-background-promo-renderer",function(){if(r3V!==void 0)return r3V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return r3V=M},{mode:1});var J3C;var d$=function(){var M=_.n.apply(this,arguments)||this;M.collections=_.Q("web_modern_collections_v2");return M};
_.v(d$,_.n);_.Hm.Object.defineProperties(d$.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(A=X.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:this.collections}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],d$.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],d$.prototype,"collections",void 0);_.G([_.z("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],d$.prototype,"collectionStack",null);d$=_.G([_.f({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],d$);
_.L(d$,"ytd-compact-station-renderer",function(){if(J3C!==void 0)return J3C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return J3C=M},{mode:1});var c3L;var N0=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(N0,_.n);N0.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],N0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],N0.prototype,"isRichGrid",void 0);N0=_.G([_.f({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],N0);
_.L(N0,"ytd-grid-channel-renderer",function(){if(c3L!==void 0)return c3L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return c3L=M},{mode:1});var S7z;var RZ=function(){return _.n.apply(this,arguments)||this};
_.v(RZ,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RZ.prototype,"data",void 0);RZ=_.G([_.f({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],RZ);
_.L(RZ,"ytd-grid-movie-playlist-renderer",function(){if(S7z!==void 0)return S7z;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return S7z=M},{mode:1});var zNo;var X4=function(){var M=_.n.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.modernButtons=_.Q("web_modern_buttons");M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(X4,_.n);X4.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
X4.prototype.configureRendererStamper=function(){return{"data.menu":Ef}};
X4.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
X4.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.Q("woffle_playlist_renderer_killswitch")){var M,d=jLq(this.entityInfo,this.transferState,this.downloadProgress,(M=this.data)==null?void 0:M.playlistId,this.isOnline);M=d.viewPlaylistText;var N=d.badges;d=d.thumbnailOverlays;this.isDownloads=!!M||!!N;this.set("data.viewPlaylistText",M);N&&N.length>0&&this.set("data.badges",N);d&&d.length>0&&this.set("data.thumbnailOverlays",
d)}};
_.Hm.Object.defineProperties(X4.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.menu)}}});
X4.prototype.transferStateChanged=X4.prototype.transferStateChanged;X4.prototype.dataChanged=X4.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],X4.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],X4.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H({selector:_.i92,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],X4.prototype,"downloadProgress",void 0);_.G([_.H({selector:_.sW,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],X4.prototype,"transferState",void 0);_.G([_.H({selector:n3i,selectorArgs:["data.playlistId"]}),_.a("design:type",Object)],X4.prototype,"entityInfo",void 0);_.G([_.H({selector:c6j}),_.a("design:type",Boolean)],X4.prototype,"isOnline",void 0);
_.G([_.H(),_.a("design:type",Object)],X4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],X4.prototype,"downloadRenderData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],X4.prototype,"modernButtons",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],X4.prototype,"isDownloads",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],X4.prototype,"useModernCollectionsV2",void 0);
_.G([_.z("transferState"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],X4.prototype,"downloadState",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],X4.prototype,"menuHidden",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X4.prototype,"dataChanged",null);
_.G([_.NS("transferState","downloadProgress","isOnline"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X4.prototype,"transferStateChanged",null);X4=_.G([_.f({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],X4);
_.L(X4,"ytd-grid-playlist-renderer",function(){if(zNo!==void 0)return zNo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zNo=M},{mode:1});var bRV;var F4=function(){var M=_.n.apply(this,arguments)||this;M.collections=_.Q("web_modern_collections_v2");return M};
_.v(F4,_.n);F4.prototype.configureRendererStamper=function(){return{"data.menu":Ef,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Hm.Object.defineProperties(F4.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(A=X.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:this.collections}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],F4.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],F4.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F4.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],F4.prototype,"collections",void 0);_.G([_.z("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],F4.prototype,"collectionStack",null);F4=_.G([_.f({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],F4);
_.L(F4,"ytd-grid-radio-renderer",function(){if(bRV!==void 0)return bRV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bRV=M},{mode:1});var eNg;var A1=function(){var M=_.n.apply(this,arguments)||this;M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(A1,_.n);A1.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
A1.prototype.computeNavigationEndpoint=function(M){return XFZ(M==null?void 0:M.navigationEndpoint)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],A1.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],A1.prototype,"data",void 0);_.G([_.H({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],A1.prototype,"computedNavigationEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A1.prototype,"useModernCollectionsV2",void 0);A1=_.G([_.f({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],A1);
_.L(A1,"ytd-grid-show-renderer",function(){if(eNg!==void 0)return eNg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return eNg=M},{mode:1});var HR3;_.Vo=function(M){this.playerClient=M};
_.nw3=function(M,d,N){N=N===void 0?{}:N;return M.playerClient.setOption("ad",d,N)};
_.Vo.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Vo.prototype.executeCommand=function(M,d){this.getOptions().includes("executeCommand")?_.nw3(this,"executeCommand",{command:M,layoutId:d}):_.xM("Calling executeCommand when adModule is not loaded")};var lD=function(){return _.n.apply(this,arguments)||this};
_.v(lD,_.n);lD.prototype.getLayoutId=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
lD.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var M=_.nO(),d=this.getLayoutId(),N=this.data.clickthroughEndpoint;M&&d&&_.Q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.Vo(R)).executeCommand(N,d)}):_.YP(this.hostElement,"yt-navigate",{endpoint:N})}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lD.prototype,"data",void 0);lD=_.G([_.f({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],lD);
_.L(lD,"ytd-shopping-companion-item-renderer",function(){if(HR3!==void 0)return HR3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HR3=M},{mode:1});var iRV;var $1=function(){var M=_.n.apply(this,arguments)||this;M.isExpandableContent=!1;return M};
_.v($1,_.n);_.Hm.Object.defineProperties($1.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.price)||((d=this.data)==null?void 0:(N=d.dealsData)==null?void 0:N.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)!=null&&M.dealsData&&((d=this.data)==null||!d.priceReplacementText)){M=this.data.dealsData;var N,R,X;return((N=M.salesData)==null?void 0:N.originalPrice)||((R=M.priceDropData)==null?void 0:R.referencePrice)||((X=M.promotionData)==null?void 0:X.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var M,d;return(M=this.data)==null?void 0:(d=M.dealsData)==null?void 0:d.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$1.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$1.prototype,"isExpandableContent",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showCta",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"ctaText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"hasPriceTopPosition",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"hasPriceBottomPosition",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useNewStyle",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showPriceReplacementText",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"priceValue",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showDeal",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"showAffiliateDisclaimer",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useSaleStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useFromBrandCtaStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useFromVendorCtaStyle",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],$1.prototype,"useShoppingCollectionCtaStyle",null);$1=_.G([_.f({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],$1);
_.L($1,"ytd-vertical-product-card-renderer",function(){if(iRV!==void 0)return iRV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return iRV=M},{mode:1});var ffJ;var Bs=function(){return _.n.apply(this,arguments)||this};
_.v(Bs,_.n);Bs.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],Bs.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bs.prototype,"data",void 0);Bs=_.G([_.f({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Bs);
_.L(Bs,"ytd-grid-movie-renderer",function(){if(ffJ!==void 0)return ffJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ffJ=M},{mode:1});var Lum;var k1=function(){var M=_.n.apply(this,arguments)||this;M.rounded=!0;M.itemStyle="small-item";return M};
_.v(k1,_.n);k1.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,d,N,R,X=(d=_.q((M=this.data)==null?void 0:M.buttonCommand,_.G7J))==null?void 0:(N=d.item)==null?void 0:(R=N.notificationTextRenderer)==null?void 0:R.successResponseText;X&&_.gES(this.hostElement,X)}};
_.Hm.Object.defineProperties(k1.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.isProductPlaceholder)!==void 0&&((d=this.data)==null?void 0:d.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],k1.prototype,"rounded",void 0);_.G([_.H(),_.a("design:type",Object)],k1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],k1.prototype,"itemStyle",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasPrice",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasPriceReplacementText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasAdditionalFeesText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hasAffiliateDisclaimer",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"isProductPlaceholder",null);
_.G([_.H(),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"hideOpenInNewIcon",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],k1.prototype,"ariaLabel",null);k1=_.G([_.f({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],k1);
_.L(k1,"ytd-merch-shelf-item-renderer",function(){if(Lum!==void 0)return Lum;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Lum=M},{mode:1});var tKd=_.SG(function(M){var d=_.e5();_.ek(d,function(){return M.data().rendererContext});
return _.g("button-card-view-model",{el:d,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return M.data().title},
role:"button"},_.g(_.$F,{model:{}}),_.g("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.g("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.g(_.kV,{cond:function(){return M.data().image},
then:function(N){return _.g(_.Jt,{data:N,alt:function(){var R;return(R=M.data().title)!=null?R:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.g("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return M.data().title})))},"Ta");_.Q("web_button_view_model_wcw_registration_killswitch")||_.eC(tKd,"button-card-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){M=_.cu(M,{className:void 0});var d=M.data;M=M.className;var N=_.Al(function(){return d().onTapCommand},void 0,"NprDr");
return _.g("ytd-shopping-item-card",{class:_.xj("ytdShoppingItemCardHost",M)},_.g(_.VX,{command:N,className:"ytdShoppingItemCardHostLink"},_.g("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.g(_.ho,{data:function(){return d().thumbnailViewModel}},{thumbnailViewModel:function(R){return _.g(_.zS,{data:R.data,
aspectRatio:3})}})),_.g("div",null,_.g("p",{class:"ytdShoppingItemCardHostItemTitle"},_.g(_.lG,{text:function(){return d().itemTitle}})),_.g("p",{class:"ytdShoppingItemCardHostPrice"},_.g(_.lG,{text:function(){return d().priceOrStatus}})))))},"Ua"),"ytd-shopping-item-card",{props:{data:_.cA,
className:_.cA}});var YM=null,Woi={};var mjZ="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(" "),Tj={},h2A=(Tj.FEwhat_to_watch="home",Tj.FEhashtag="hashtag",Tj.FEtrending="trending",Tj.FEhistory="history",Tj.SPunlimited="premium",Tj.FEmemberships_and_purchases="paid_memberships",Tj.SPredeem_code="redeem",Tj.SPverify_location="locate",Tj.SPminor_moment="minor_moment",
Tj.FEmini_app_container="mini_app",Tj.FEnews_destination="news",Tj.SPopen_in_app="open_in_app",Tj.FEexplore="explore",Tj.FEsubscriptions="subscriptions",Tj.FEsfv_audio_pivot="sfv_audio_pivot",Tj.FEplaylist_aggregation="playlist_aggregation",Tj);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");_.RD("init");var G$z=function(){},CoC=_.SG(function(M){var d=M.data;
var N=M.inlineMetadata;var R=M.aspectRatio;var X=M.scrimStyle;var A=M.className;var l=M.useDefaultStyle;var k=new G$z,T=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=_.Al(function(){return(l==null?0:l())?T==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),w=_.Al(function(){return _.QJ(N)||W()||!1},void 0,"pcPnBf"),p=function(){return(X==null?void 0:X())!==void 0?X==null?void 0:X():1};
M=_.e5(function(C){k&&(k.hostElement=C,y())});
_.Gi(M,{visibilityCallback:function(C){var U=d().onFirstVisible;C&&U&&_.vz(U)},
showOption:{calledOnce:!0,state:"visible"}});A=_.xj("shortsLockupViewModelHost",A);var m=_.e5(),I={};I=_.xj(function(){return W(),"shortsLockupViewModelHostThumbnailContainer"},(I.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.QJ(R)===1},I.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.QJ(R)===2},I.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!W()},I.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.Q("web_shorts_2_by_3_lockups_study")&&!_.Q("desktop_search_enable_two_by_three_shorts_aspect_ratio")},I));
var O,y=function(){if(k){var C;(C=O)==null||Mo(C);var U;k.hostElement&&((U=k.data)==null?0:U.inlinePlayerData)&&(O=LX({mediaRenderer:k,lockupElement:k.hostElement,thumbnailElement:m.value,videoPreviewOpts:vEi}))}};
_.Wg(function(){k&&(k.data=d(),y())});
var c=_.Al(function(){return d().thumbnail},void 0,"FXJKOd"),e=_.Al(function(){return d().badge},void 0,"RHSDwe"),t=_.Al(function(){return d().onTap},void 0,"twXQme");
return _.g("ytm-shorts-lockup-view-model",{el:M,class:A},_.g(_.GT,null,_.g(_.VX,{command:t,className:_.xj("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!w()},
tabIndex:function(){return w()?0:-1}},_.g("div",{el:m,
class:I},_.g(_.kV,{cond:c,then:function(){return _.g(_.Jt,{data:function(){return c()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.g(_.kV,{cond:w,
then:function(){return _.g(afg,{data:d,scrimStyle:p,useDefaultStyle:l})}}),_.g(_.ho,{data:e},{badgeViewModel:function(C){return _.g(_.nN,{data:C.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.g(_.kV,{cond:function(){return w()&&d().menuOnTap},
then:function(){return _.g(UPV,{data:d,inlineMetadata:!0})}}),_.g(_.kV,{cond:function(){return!w()},
then:function(){return _.g(u0g,{data:d,useDefaultStyle:l})}})))},"Va"),afg=_.SG(function(M){var d=M.data;
var N=M.scrimStyle;var R=M.useDefaultStyle;var X=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",A=R&&_.Q("web_hide_primary_text_for_pivot_panel"),l=_.Al(function(){return(R==null?0:R())?X==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
M={};M=_.xj("shortsLockupViewModelHostInlineMetadata",(M.shortsLockupViewModelHostMetadataRounded=function(){return!l()},M.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(N==null?void 0:N())===3&&!_.Q("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(N==null?void 0:N())===3&&_.Q("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(N==null?void 0:N())===2||(N==null?void 0:
N())===4},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
var k={};return _.g("div",{class:M},_.g("h3",{class:_.xj("shortsLockupViewModelHostMetadataTitle",(k.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(N==null?void 0:N())===4},k)),
"aria-label":function(){return d().accessibilityText}},_.g(_.kV,{cond:function(){var T;
return!((T=d().overlayMetadata)==null||!T.primaryText)&&!A},
then:function(){return _.g(_.lG,{text:function(){var T;return(T=d().overlayMetadata)==null?void 0:T.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.g(_.kV,{cond:function(){var T;
return(T=d().overlayMetadata)==null?void 0:T.secondaryText},
then:function(){return _.g(xPd,{data:d,scrimStyle:N,className:void 0})}}))},"Wa"),u0g=_.SG(function(M){var d=M.data;
var N=M.useDefaultStyle;var R=_.Q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.Al(function(){return(N==null?0:N())?R==="SHORTS_LOCKUP_STYLE_SLIM":d().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
M=_.xj(function(){return X()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var A,l=_.dT(function(){var T;(T=A)==null||T.click();return!1}),k={};
return _.g("div",{class:M,"on:click":l},_.g("h3",{class:_.xj("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var T,W;return!((T=d().overlayMetadata)==null?0:(W=T.primaryText)==null?0:W.content)},k)),
"aria-label":function(){return d().accessibilityText}},_.g(_.VX,{ref:function(T){return void(A=T)},
command:function(){return d().onTap},
className:_.xj("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var T,W;return(T=d().overlayMetadata)==null?void 0:(W=T.primaryText)==null?void 0:W.content}},_.g(_.kV,{cond:function(){return!!d().overlayMetadata},
then:function(){return _.g(_.lG,{text:function(){var T;return(T=d().overlayMetadata)==null?void 0:T.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.g(_.kV,{cond:function(){var T;
return(T=d().overlayMetadata)==null?void 0:T.secondaryText},
then:function(){return _.g(xPd,{data:d,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.g(_.kV,{cond:function(){return d().menuOnTap},
then:function(){return _.g(UPV,{data:d,inlineMetadata:!1})}}))},"Xa"),xPd=_.SG(function(M){var d=M.data;
var N=M.scrimStyle;M=M.className;var R={};return _.g("div",{class:_.xj((R.shortsLockupViewModelHostMetadataSubhead=function(){return(N==null?void 0:N())!==4},R.shortsLockupViewModelHostMetadataSubheadNew=_.Q("enable_shorts_lockup_new_scrim"),R.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(N==null?void 0:N())===4},R),M),
"aria-hidden":"true"},_.g(_.lG,{text:function(){var X;return(X=d().overlayMetadata)==null?void 0:X.secondaryText},
noStyleRuns:!0}))},"Ya"),UPV=_.SG(function(M){var d=M.data;
var N=M.inlineMetadata;M={};M=_.xj((M.shortsLockupViewModelHostInlineMetadataMenu=function(){return N()},M.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!N()},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
return _.g("div",{class:M},_.g(CX,{data:function(){return{style:N()?"overlay":"mono",accessibilityLabel:d().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(R){R.preventDefault();R.stopPropagation();var X=_.qx({elementsCommand:d().menuOnTap,forceNewState:!0});if(X==null?0:X.onclick)X.onclick(R)}}},
iconName:"MORE_VERT"}))},"Za");var jVv=_.W5({badgeViewModel:pOp}),IZ6=function(){},Y7e=_.Ez(oEL),ZRL=_.SG(function(M){var d=M.data;
var N=M.inlineMetadata;var R=M.aspectRatio;var X=M.scrimStyle;var A=M.className;var l=M.useDefaultStyle;M=_.Al(function(){var T=d().entityId;return T?T.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var k=_.Q("web_shorts_lockup_view_model_sink")?CoC:Y7e;return _.g("ytm-shorts-lockup-view-model-v2",{class:_.xj("shortsLockupViewModelHost",A)},_.g(_.gwJ,{contentId:M,aspectRatio:function(){return(R==null?void 0:R())===1?1:(R==null?void 0:R())===2?2:4}},function(){return _.g(k,{data:d,
inlineMetadata:N,aspectRatio:R,scrimStyle:X,className:A,useDefaultStyle:l})}))},"$a");
_.aR(oEL);_.aR(OYq);_.aR(Pqi);_.aR(rpZ);_.aR(sVj);_.eC(ZRL,"ytm-shorts-lockup-view-model-v2",{props:{data:_.bI,inlineMetadata:_.bI,aspectRatio:_.bI,scrimStyle:_.bI,className:_.bI,useDefaultStyle:_.bI}});var Ewo=16/9*210,Do=function(){var M=_.n.apply(this,arguments)||this;M.isExpandableContent=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.buttonClasses=["arrow"];M.isSearch=!1;M.disableScrollEventListener=!1;M.containsLockup=!1;M.overrideArrowPositionForProductCard=!1;M.overrideArrowPositionForShoppingItemCard=!1;M.overrideArrowPositionForReelItems=!1;M.overrideArrowPositionForGridMovie=!1;M.overrideArrowPositionToCenter=!1;M.isSearchPostShelf=!1;M.overrideArrowPositionForMixedShelf=!1;M.overrideArrowPositionForMixedShelfShortsOnly=
!1;M.hasBigThumbsReelItems=!1;M.shouldUseMixedListHeight=!1;M.shouldUseShortsListHeight=!1;M.gridVideoWidth=0;M.isSearchVodShelf=!1;M.disableWheelScroll=!1;M.sizing="COMPACT";M.shortsLockupAspectRatio=0;return M};
_.v(Do,_.n);_.F=Do.prototype;
_.F.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]]"}}}}};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.Q("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.F.computeInitialCountNumber=function(M){if(!M)return 6;var d=M.items.some(function(A){return!!A.topicRecommendationsChipRenderer}),N=M.items.some(function(A){return!!A.displayAdRenderer}),R=this.computeShouldListItemsHaveEqualHeight(M),X=M.items.some(function(A){return!!A.gridPlaylistRenderer});
M=M.items.some(function(A){return!!A.shoppingItemCardViewModel});
return d?9:N?8:X||R?10:M?7:6};
_.F.computeContainsPost=function(M){return!!M&&!!M.items&&M.items.some(function(d){return!!d.postRenderer})};
_.F.computeContainsLockup=function(){if(_.Q("web_horizontal_list_lockup_arrow_killswitch"))return!1;var M,d;return(M=this.data)==null?void 0:(d=M.items)==null?void 0:d.some(function(N){return!!N.lockupViewModel})};
_.F.maybeUpdateLockupAspectRatio=function(){var M,d;if(this.computeContainsLockup()&&((M=this.data)==null?0:(d=M.items)==null?0:d.length)){var N;M=hNZ((N=this.data.items[0].lockupViewModel)==null?void 0:N.contentType,this.data.force16By9ThumbnailAspectRatio);N=dYZ(M);N=this.computeLockupWidth()/N;_.UO(this.hostElement,{"--yt-horizontal-list-content-height":N+"px"})}};
_.F.computeOverrideArrowPositionForProductCard=function(M){if(this.isExpandableContent)return!1;var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.verticalProductCardRenderer}))};
_.F.computeOverrideArrowPositionForShoppingItemCard=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.shoppingItemCardViewModel}))};
_.F.computeOverrideArrowPositionForReelItemRenderer=function(M){return this.containsReelItemRenderer(M)};
_.F.computeHasBigThumbsReelItems=function(M,d){return M&&this.containsReelItemRenderer(d)};
_.F.computeShouldListItemsHaveEqualHeight=function(M){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(M==null?void 0:M.itemSizeConstraint)};
_.F.computeShouldListItemsHaveShortsHeight=function(M){return this.computeShouldListItemsHaveEqualHeight(M)&&!this.containsGridVideoRenderer(M)};
_.F.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.F.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.F.containsReelItemRenderer=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!(!N.reelItemRenderer&&!N.shortsLockupViewModel)}))};
_.F.containsGridVideoRenderer=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.gridVideoRenderer||!!N.lockupViewModel}))};
_.F.computeContainsGridMovieRenderer=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){return!!N.gridMovieRenderer}))};
_.F.computeOverrideArrowPositionToCenter=function(M){return this.computeIsSearchPostShelf(M)};
_.F.computeIsSearchPostShelf=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){var R,X;return((X=(R=N.postRenderer)==null?void 0:R.surface)!=null?X:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.F.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(M){var d;return!!(M==null?0:(d=M.items)==null?0:d.some(function(N){var R,X,A;return((A=(R=N.backgroundPromoRenderer)==null?void 0:(X=R.style)==null?void 0:X.value)!=null?A:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.F.computeIsSearchVodShelf=function(M,d){return M&&this.containsGridVideoRenderer(d)};
_.F.computeDisableWheelScroll=function(M,d){return this.computeIsSearchVodShelf(M,d)};
_.F.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.F.computeShortsLockupAspectRatio=function(M){return M&&_.Q("web_shorts_2_by_3_lockups_no_search")&&!_.Q("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.F.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.UO(this.hostElement,{"--ytd-reel-item-thumbnail-height":Ewo+"px"})};
Do.prototype.dataChanged=Do.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],Do.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Do.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Do.prototype,"isExpandableContent",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"hideShelfHeader",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Array)],Do.prototype,"buttonClasses",void 0);_.G([_.H(),_.a("design:type",Object)],Do.prototype,"isSearch",void 0);
_.G([_.H(),_.a("design:type",Object)],Do.prototype,"disableScrollEventListener",void 0);_.G([_.H({computed:"computeInitialCountNumber(data)"}),_.a("design:type",Number)],Do.prototype,"initialCount",void 0);_.G([_.H({computed:"computeContainsPost(data)"}),_.a("design:type",Boolean)],Do.prototype,"supportComponentResize",void 0);_.G([_.H({computed:"computeContainsPost(data)"}),_.a("design:type",Boolean)],Do.prototype,"containsPost",void 0);
_.G([_.H({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"containsLockup",void 0);_.G([_.H({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Do.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.G([_.H({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForProductCard",void 0);_.G([_.H({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.G([_.H({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForReelItems",void 0);_.G([_.H({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForGridMovie",void 0);
_.G([_.H({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionToCenter",void 0);_.G([_.H({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"isSearchPostShelf",void 0);_.G([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.G([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.G([_.H({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"hasBigThumbsReelItems",void 0);
_.G([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"shouldUseMixedListHeight",void 0);_.G([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"shouldUseShortsListHeight",void 0);_.G([_.H({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"gridVideoWidth",void 0);
_.G([_.H({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"isSearchVodShelf",void 0);_.G([_.H({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.a("design:type",Object)],Do.prototype,"disableWheelScroll",void 0);_.G([_.H({computed:"computeSizing(isSearch)"}),_.a("design:type",Object)],Do.prototype,"sizing",void 0);
_.G([_.H({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.a("design:type",Object)],Do.prototype,"shortsLockupAspectRatio",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Do.prototype,"dataChanged",null);
_.L(Do,"yt-horizontal-list-renderer",function(){if(nfL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);nfL=M}M=nfL;return M},{mode:1});var MAd;var dj3=[10,12,14,16,18,20,24,28,32,36],Npz=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],g$=function(){var M=_.n.apply(this,arguments)||this;M.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";M.hideOverflow=!1;M.useRoboto=!1;M.fontClass="";M.overflown=!1;M.actionMap={"yt-window-resized":"resize"};return M};
_.v(g$,_.n);_.F=g$.prototype;
_.F.attached=function(){var M=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.bM(this,function(){M.resize()});
if(!_.lb){var d,N,R;(d=document)==null||(N=d.fonts)==null||(R=N.ready)==null||R.then(function(){M.resize()})}};
_.F.dataChanged=function(){this.resize()};
_.F.guideIsExpandedChanged=function(){this.resize()};
_.F.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var M=this.getMaxNumLines(),d=this.getMinFont(),N=this.getMaxFont(),R=this.useRoboto?dj3:Npz;for(R=R.filter(function(A){return A<=N&&A>=d});R.length>1;){var X=Math.floor(R.length/2);
this.updateFontSize(R[X]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=M)R=R.slice(X,R.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>M)R=R.slice(0,X);else break}this.updateFontSize(R[R.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(M)}};
_.F.handleOverflow=function(M){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>M&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",M.toString()))};
_.F.updateFontSize=function(M){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+M;this.textNode.classList.add(this.fontClass)};
_.F.getMaxFont=function(){var M=this.useRoboto?dj3:Npz;M=M[M.length-1];return this.maxFontSize&&this.maxFontSize<=M?this.maxFontSize:M};
_.F.getMinFont=function(){var M=(this.useRoboto?dj3:Npz)[0];return this.minFontSize&&this.minFontSize>=M?this.minFontSize:M};
_.F.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.F.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.F.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.HD(this.text).split("\n").length-1:Infinity};
_.F.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("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
g$.prototype.guideIsExpandedChanged=g$.prototype.guideIsExpandedChanged;g$.prototype.dataChanged=g$.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],g$.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],g$.prototype,"text",void 0);
_.G([_.H(),_.a("design:type",String)],g$.prototype,"fontFamily",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxWidth",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxHeight",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxFontSize",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"minFontSize",void 0);_.G([_.H(),_.a("design:type",Number)],g$.prototype,"maxLines",void 0);_.G([_.H(),_.a("design:type",Object)],g$.prototype,"hideOverflow",void 0);
_.G([_.H({selector:_.P8S}),_.a("design:type",Boolean)],g$.prototype,"guideIsExpanded",void 0);_.G([_.Z3("#container"),_.a("design:type",HTMLElement)],g$.prototype,"containerNode",void 0);_.G([_.Z3("#text"),_.a("design:type",HTMLElement)],g$.prototype,"textNode",void 0);_.G([_.NS("text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g$.prototype,"dataChanged",null);
_.G([_.NS("guideIsExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g$.prototype,"guideIsExpandedChanged",null);g$=_.G([_.f({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],g$);
_.L(g$,"yt-dynamic-sizing-formatted-string",function(){if(MAd!==void 0)return MAd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return MAd=M},{mode:1});var R2V;_.X23=function(M){_.Mp.call(this,M)};
_.v(_.X23,_.Mp);var FoL=function(M){_.Mp.call(this,M)};
_.v(FoL,_.X23);var Ws=function(){return _.n.apply(this,arguments)||this};
_.v(Ws,_.n);Ws.prototype.onTapSuspendedChannel=function(){var M;if((M=this.data)!=null&&M.serviceEndpoint){var d,N;(M=(N=_.q((d=this.data)==null?void 0:d.serviceEndpoint,_.JQ))==null?void 0:N.url)?_.Ij(M,void 0,void 0,window.top):(d=new FoL("Did not handle suspended account tap. No appealUrl."),_.qZ(d))}else d=new FoL("Did not handle suspended account tap. No serviceEndpoint."),_.qZ(d)};
Ws.prototype.onTap=function(){var M=this,d=_.Nx(),N,R=(N=_.dk(d,{veType:7116}))!=null?N:void 0;_.sL(d,{visualElement:R});_.Qp();this.saveRoleText();var X;if((X=this.data)==null?0:X.youtubeSuspended)this.onTapSuspendedChannel();else{var A=!1,l,k;(d=(k=_.q((l=this.data)==null?void 0:l.serviceEndpoint,_.FTg))==null?void 0:k.supportedTokens)&&d.forEach(function(T){if(T.accountSigninToken)if(A=!0,M.onAccountItemTap)M.onAccountItemTap(T.accountSigninToken.signinUrl);else _.Ij(T.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!A){if(l=this.get("serviceEndpoint",this.data))A=!0,this.ytComponentBehavior.resolveCommand(l);A||_.IR(new FoL("Did not handle account switch tap. No token."))}}};
Ws.prototype.saveRoleText=function(){if(this.data){var M=this.data,d=M.channelDelegationRole;if(d){var N,R=(N=_.q(M==null?void 0:M.serviceEndpoint,_.FTg))==null?void 0:N.supportedTokens;if(!R){var X,A,l,k;R=(X=_.q(M==null?void 0:M.serviceEndpoint,_.Iu))==null?void 0:(A=X.popup)==null?void 0:(l=A.confirmDialogRenderer)==null?void 0:(k=l.confirmButton)==null?void 0:k.buttonRenderer;var T;R=(T=_.q(R==null?void 0:R.command,_.XP))==null?void 0:T.commands;if(!R)return;var W;R=(W=_.q(R[1],_.FTg))==null?
void 0:W.supportedTokens}if(R){T=void 0;W=_.V(R);for(R=W.next();!R.done;R=W.next())if(R=R.value,R.datasyncIdToken){T=R.datasyncIdToken.datasyncIdToken;break}if(T){var w;a:{if(_.k1L()&&(W=_.hgA(T+"::pom"))){W=new VY(W);break a}W=void 0}(w=W)==null||w.set("role_text",d);if((OfZ?OfZ:window.location).href.indexOf("studio")!==-1&&(w=ThL())){W=w.src?(new URL(w.src)).origin:"*";var p;(p=w.contentWindow)==null||p.postMessage({action:"save_pom_role",datasyncId:T,roleText:d},W)}}}}}};
_.Hm.Object.defineProperties(Ws.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.accountPhoto)==null?void 0:d.thumbnails;return N&&N.length>0&&(N[0].height===36||N[0].height===48)?N[0].height:40}}});
Ws.prototype.onTap=Ws.prototype.onTap;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ws.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ws.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Function)],Ws.prototype,"onAccountItemTap",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Ws.prototype,"enableRingForActiveAccount",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],Ws.prototype,"thumbnailSize",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ws.prototype,"onTap",null);Ws=_.G([_.f({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Ws);
_.L(Ws,"ytd-account-item-renderer",function(){if(R2V!==void 0)return R2V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return R2V=M},{mode:1});var Apz;var w$=function(){return _.n.apply(this,arguments)||this};
_.v(w$,_.n);w$.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.h().resolve(_.xV).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],w$.prototype,"data",void 0);w$=_.G([_.f({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],w$);
_.L(w$,"ytd-identity-chip-renderer",function(){if(Apz!==void 0)return Apz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Apz=M},{mode:1});var VAt;var lZC;var $jV;var Bpg;var pd=function(){var M=_.n.apply(this,arguments)||this;M.richItemMinWidth=_.ZR("wn_grid_min_item_width",310);M.isShorts=!1;M.isWatchNext=!1;M.isExploreHub=!1;return M};
_.v(pd,_.n);_.Hm.Object.defineProperties(pd.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var M=[],d=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.UO(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var N;if(((N=this.data)==null?0:N.rows)&&d)for(d*=this.data.rows,N=0;N<d;N++)M.push({});return M}}});
_.G([_.S(_.Op),_.a("design:type",Object)],pd.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pd.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.Iz,value:3}),_.a("design:type",Number)],pd.prototype,"itemsPerRow",void 0);_.G([_.H({selector:_.suN,value:6}),_.a("design:type",Number)],pd.prototype,"slimItemsPerRow",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],pd.prototype,"richItemMinWidth",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],pd.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pd.prototype,"isShorts",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pd.prototype,"isWatchNext",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pd.prototype,"isExploreHub",void 0);
_.G([_.z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.a("design:type",Array),_.a("design:paramtypes",[])],pd.prototype,"cardItems",null);pd=_.G([_.f({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],pd);
_.kyJ=_.ty()(pd,"ytd-ghost-grid-renderer",function(){if(Bpg===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);Bpg=M}M=Bpg;return M},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.eC(_.SG(function(M){var d=_.cu(M,{numberOfComments:3}).numberOfComments,N=_.cu(M,{isInitialLoad:!1}).isInitialLoad,R=_.hI(_.OW),X=function(){return Math.min(Number(d==null?void 0:d())||20,20)};
return _.g("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.g(_.kV,{cond:function(){return(R==null?void 0:R())&&(N==null?void 0:N())},
then:function(){return _.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.g("div",{class:_.xj("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.g("div",{class:_.xj("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.g("div",{class:"ytGhostCommentsGhostCard"},_.g("div",{class:"ytGhostCommentsAvatar"},_.g("div",{class:"ytGhostCommentsCircle"})),_.g("div",{class:"ytGhostCommentsComments"},_.g("div",{class:"ytGhostCommentsMeta"},
_.g("div",{class:_.xj("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.g("div",{class:_.xj("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.g("div",{class:"ytGhostCommentsComments"},_.g(_.TN,{each:function(){return Array((X==null?void 0:X())||3)}},function(){return _.g("div",{class:"ytGhostCommentsGhostCard"},_.g("div",{class:"ytGhostCommentsAvatar"},_.g("div",{class:"ytGhostCommentsCircle"})),_.g("div",{class:"ytGhostCommentsHost"},_.g("div",{class:"ytGhostCommentsMeta"},
_.g("div",{class:_.xj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.g("div",{class:_.xj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.xj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:"ytGhostCommentsGhostLikeDislike"},_.g("div",{class:_.xj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.g("div",{class:_.xj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ab"),"yt-ghost-comments",{props:{numberOfComments:_.cA,
isInitialLoad:_.cA}});_.pO("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var mz=function(){var M=_.n.apply(this,arguments)||this;M.isOverridable=!1;M.spinnerActive=!1;M.showButton=!1;M.isCommentsSection=!1;M.isShortsGrid=!1;M.isShortsPage=!1;M.isWatchPage=!1;M.ghostCardExperimentEnabled=_.Q("show_ghost_comments_shorts_watch")||_.Q("show_ghost_comments_desktop_watch");M.originalShowButton=!1;M.endOfList=!1;return M};
_.v(mz,_.n);_.F=mz.prototype;_.F.resetIntersectionObserver=function(){var M;(M=this.observer)==null||M.disconnect();this.observer=void 0};
_.F.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var M,d;((M=this.data)==null?void 0:M.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((d=this.data)==null?0:d.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.F.initializeIntersectionObserver=function(){var M=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N.value.isIntersecting&&(M.triggerContinuation(),M.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.F.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.F.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var M;((M=this.data)==null?0:M.continuationEndpoint)&&(M=_.q(this.data.continuationEndpoint,_.qN))&&this.ytdReduxBehavior.dispatch(_.YS({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:M}}))};
_.F.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.F.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.F.onServiceRequestCompleted=function(M,d){if(!_.Q("kevlar_hide_spinner_on_empty_continuation_killswitch")){var N;(N=d.actions)!=null&&N.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.F.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.F.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.F.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.F.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var M=3;if(this.isShortsPage){var d,N,R;M=Math.floor(((((d=this.hostElement)==null?void 0:(N=d.parentElement)==null?void 0:(R=N.parentElement)==null?void 0:R.scrollHeight)||108)-108)/108);M=this.isInitialLoad?Math.max(M,3):3}d=[].concat(_.wu(this.hostElement.querySelectorAll("yt-ghost-comments")));d=_.V(d);for(N=d.next();!N.done;N=d.next())N=N.value,N.numberOfComments=M,N.isInitialLoad=this.isInitialLoad}};
_.F.detached=function(){this.resetIntersectionObserver()};
_.Hm.Object.defineProperties(mz.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.Q("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.Q("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
mz.prototype.numberOfGhostCommentsChanged=mz.prototype.numberOfGhostCommentsChanged;mz.prototype.continuationTriggerOffsetChanged=mz.prototype.continuationTriggerOffsetChanged;mz.prototype.showButtonChanged=mz.prototype.showButtonChanged;mz.prototype.onYtServiceRequestCompletedForButtonRenderer=mz.prototype.onYtServiceRequestCompletedForButtonRenderer;mz.prototype.onServiceRequestCompleted=mz.prototype.onServiceRequestCompleted;mz.prototype.onYtServiceRequestSentForButtonRenderer=mz.prototype.onYtServiceRequestSentForButtonRenderer;
mz.prototype.observeData=mz.prototype.observeData;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.oh.YtVisibilityBehavior),_.a("design:type",Object)],mz.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],mz.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"isOverridable",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"spinnerActive",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"showButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mz.prototype,"isCommentsSection",void 0);
_.G([_.H(),_.a("design:type",Object)],mz.prototype,"isShortsGrid",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.r6S}),_.a("design:type",Object)],mz.prototype,"isShortsPage",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.OW}),_.a("design:type",Object)],mz.prototype,"isWatchPage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mz.prototype,"ghostCardExperimentEnabled",void 0);_.G([_.H(),_.a("design:type",Number)],mz.prototype,"continuationTriggerOffset",void 0);
_.G([_.H(),_.a("design:type",Object)],mz.prototype,"endOfList",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],mz.prototype,"isInitialLoad",void 0);_.G([_.Z3("ytd-button-renderer"),_.a("design:type",_.e$)],mz.prototype,"buttonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],mz.prototype,"buttonOverrides",void 0);
_.G([_.H(),_.z("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.a("design:type",Object),_.a("design:paramtypes",[])],mz.prototype,"isShortsCommentsSection",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"observeData",null);
_.G([_.C3("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],mz.prototype,"onServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-completed-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.G([_.NS("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"showButtonChanged",null);
_.G([_.NS("continuationTriggerOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"continuationTriggerOffsetChanged",null);_.G([_.xB("isInitialLoad","isShortsPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mz.prototype,"numberOfGhostCommentsChanged",null);mz=_.G([_.f({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],mz);
_.L(mz,"ytd-continuation-item-renderer",function(){if($jV!==void 0)return $jV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return $jV=M},{mode:1});var Tpo;var h1=function(){var M=_.n.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;M.downloadedVideoPlaybackPosition=0;return M};
_.v(h1,_.n);h1.prototype.dataChanged=function(){var M;this.videoData=_.q((M=this.data)==null?void 0:M.renderer,cOV);this.transferStateChanged()};
h1.prototype.downloadProgressChanged=function(){if(this.entityInfo){var M=Object.assign({},this.videoData),d=sL6(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),N=d.publishedTimeText,R=d.badges;M.shortViewCountText=d.shortViewCountText;M.publishedTimeText=N;M.badges=R;this.set("videoData",M)}};
h1.prototype.transferStateChanged=function(){if(this.entityInfo){var M=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",d=_.TL(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!k$(this.entityInfo.policyEntity),N=Object.assign({},this.videoData),R=sL6(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),X=R.publishedTimeText,A=R.badges;N.shortViewCountText=
R.shortViewCountText;N.publishedTimeText=X;N.badges=A;N.isDisabled=d;N.isWatched=this.downloadedVideoPlaybackPosition>0;N.navigationEndpoint=d?void 0:NIq(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var l;M&&((l=this.videoData)==null?0:l.videoId)&&!_.Q("dl_resume_click_killswitch")&&(N.isDisabled=!1,N.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});N.thumbnailOverlays=O4N(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",N)}};
h1.prototype.transferStateChanged=h1.prototype.transferStateChanged;h1.prototype.downloadProgressChanged=h1.prototype.downloadProgressChanged;h1.prototype.dataChanged=h1.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h1.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],h1.prototype,"videoData",void 0);_.G([_.H({selector:PD,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"downloadProgress",void 0);_.G([_.H(),_.a("design:type",Number)],h1.prototype,"relativeDateReference",void 0);_.G([_.H({selector:_.jp,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"transferState",void 0);
_.G([_.H({selector:xsi,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"downloadState",void 0);_.G([_.H({selector:zK6,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"offlinePolicyAction",void 0);_.G([_.H({selector:b9i,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.G([_.H({selector:oz,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"downloadedVideoPlaybackPosition",void 0);_.G([_.H({selector:H9N,selectorArgs:["videoData.videoId"]}),_.a("design:type",Object)],h1.prototype,"entityInfo",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],h1.prototype,"isDownloading",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h1.prototype,"dataChanged",null);
_.G([_.NS("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h1.prototype,"downloadProgressChanged",null);_.G([_.NS("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h1.prototype,"transferStateChanged",null);
h1=_.G([_.f({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],h1);
_.L(h1,"ytd-downloaded-video-grid-video-renderer",function(){if(Tpo!==void 0)return Tpo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Tpo=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var Djd;var Qo=function(){};
Qo.prototype.resolve=function(M,d){var N=this;return _.B(function(R){return _.D(R,N.resolveCommand(M,d),0)})};var gEV,q0;gEV=yHZ(function(M){return M.targetId},{shouldPersist:!1});
q0=gEV.updateData;_.WoL=gEV.useUpdatableData;var w2d,p2z;w2d=yHZ(function(M){return M.targetId});
p2z=w2d.updateData;_.mjg=w2d.useUpdatableData;var h2t=Kor.bind(null,q0),QVL=Kor.bind(null,p2z);(function(M,d,N){var R=_.q(N==null?void 0:N.updatedRenderer,_.$mm);return R?M({targetId:d},function(){return R}):!1}).bind(null,q0);var IZ=function(){};
_.v(IZ,Qo);IZ.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,_.aCq);if(!d)return N.return();h2t(d.targetId,d);_.Vy(N)})};var Ot=function(){var M=_.MS.apply(this,arguments)||this;M.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return M};
_.v(Ot,_.MS);_.F=Ot.prototype;_.F.configureContinuationPathMap=function(){return{}};
_.F.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.F.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.F.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.F.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.F.handleAppendContinuationItemsAction=function(M){var d=_.q(M,_.L2d);if(this.data&&this.data.targetId&&d&&this.continuationPathMap&&d.targetId===this.data.targetId){var N=fH6(M);if((M=N&&this.continuationPathMap[N])&&N){N=this.get(M,this.data);var R;a:{for(R=0;R<N.length;R++){var X=N[R],A=void 0,l=!!_.q((A=_.q(X,jeL))==null?void 0:A.content,_.rOL);if(_.q(X,_.R1)||l)break a}R=N.length}M="data."+M;d.continuationItems?R===N.length-1?(this.pop(M),this.push.apply(this,[M].concat(_.wu(d.continuationItems)))):
R===N.length?this.push.apply(this,[M].concat(_.wu(d.continuationItems))):this.splice.apply(this,[M,R,1].concat(_.wu(d.continuationItems))):this.splice(M,R,1);(_.Q("web_enable_voting_animation")||_.Q("enable_music_web_cairo_voting_animation"))&&_.YP(this.hostElement,"yt-append-continuation-items-action-finished");_.YP(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.vh(new _.WJ("append continuation path does not exist",N))}};
_.F.handleReloadContinuationItemsCommand=function(M){var d=_.q(M,_.aCq);if(this.data&&d){if(_.Q("web_explore_hub")||_.Q("web_client_explore_hub")||_.Q("web_explore_hub_on_hover")||_.Q("web_client_explore_hub_on_hover"))try{_.h().resolve(IZ).resolveCommand(M)}catch(A){}if(this.data.targetId&&this.continuationPathMap&&d.targetId===this.data.targetId&&(!_.Q("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||d.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var N,R=(N=
d.slot)==null?void 0:N.replace("RELOAD_CONTINUATION_SLOT_","");N=(M=fH6(M)+"-"+(R==null?void 0:R.toLowerCase()))&&this.continuationPathMap[M];if(!N||!M||!R)_.vh(new _.WJ("reload continuation path does not exist",M));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(d)){if(d.replaceWithFirstItem){var X;this.set("data."+N,((X=d.continuationItems)==null?0:X.length)?d.continuationItems[0]:{})}else this.set("data."+N,d.continuationItems?d.continuationItems:
[]);this.continuationIsReloading=!1;_.YP(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.F.handleShowReloadUiCommand=function(M){M=_.q(M,RcC);var d;((d=this.data)==null?0:d.targetId)&&(M==null?0:M.targetId)&&M.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Ot.prototype.observeData=Ot.prototype.observeData;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Ot.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ot.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ot.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Ot.prototype,"continuationIsReloading",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ot.prototype,"observeData",null);Ot=_.G([_.d4()],Ot);_.j1=[_.jV.YtComponentBehavior,_.tK.YtActionHandlerBehavior,Ot.prototype];_.st={};_.st.YtNextContinuationBehavior=[_.HA.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",_.ux(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ux(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(M,d){M.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,d,{}):(M={locationRetrieved:function(N){this.makeNextContinuationRequest_(N,d,{})}.bind(this)},_.YP(this.hostElement,"yt-retrieve-location",M))},
makeNextContinuationRequest_:function(M,d,N){_.ON("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();M=d(M);var R;this.canUseContextualNetworkManager_()&&(R=this.getNetworkManager());R||(R=_.h().resolve(_.Tu));d=_.Pi.instance;if(_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&d){R=_.fh([M.startsWith("/")?M.substr(1):M]);var X,A;N=_.Pn(d,{},R,N==null?void 0:(X=N.context)==null?void 0:(A=X.clickTracking)==null?void 0:A.clickTrackingParams).then(function(l){return{response:l}})}else N=
this.nextContinuation.usePost?R.postData(M,N):R.fetchData(M);
N.then(this.updateNextContinuationData_.bind(this,M));this.pendingContinuationRequest_=N;this.startListeningForNavigate_()},
updateNextContinuationData_:function(M,d){var N=this;_.ON("ncl");this.pendingContinuationRequest_=void 0;if(d){var R={};this.nextContinuation&&(R=this.nextContinuation);if(d.response&&d.response.continuationContents&&d.response.continuationContents[R.continuationType]){M=d.response.continuationContents[R.continuationType];var X=R.header||"data.header",A=M[R.responseHeaderKey||"header"];A&&this.set(X,A);X=R.contentsArray||"data.contents";A=this.getContents_(M,R.responseContentsKey||"contents")||[];
this.pathExists_(X)?(A.unshift(X),this.push.apply(this,A)):this.set(X,A);A&&(yp6(_.Nx(),d.response,this.hostElement,function(l){_.ZI(N.hostElement,"yt-store-grafted-ve-action",[l])}),_.YP(this.hostElement,"yt-next-continuation-data-updated",{continuationData:d,
page:this,contentsArray:X}));this.set(R.continuationsArray||"data.continuations",M[R.responseContinuationsKey||"continuations"]||[])}else d.reload?_.vh(new _.WJ("Reloading from continuation is unsupported")):d.responseContext&&d.responseContext.errors||(delete d.xsrf_token,delete d.timing,delete d.endpoint,delete d.csn,d.responseContext&&delete d.responseContext.serviceTrackingParams,X={request:_.fF(M,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(d).sort()},d.response&&(X.responseContentKeys=
Object.keys(d.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(X.continuationType=this.nextContinuation.continuationType.substr(0,256)),d=new _.WJ("Malformed continuation",X),M.indexOf("/comment_service_ajax")==0?_.vh(d):_.qZ(d)),this.set(R.continuationsArray||"data.continuations",[])}else _.IR(new _.WJ("Missing continuation response",M))},
getContents_:function(M,d){d=d.split(".");return _.wF.getValueByKeys(M,d)},
pathExists_:function(M){var d=this;M=M.toString().split(".");for(var N=0;N<M.length;N++)if(d=d[M[N]],d===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var qvI;var IZo;var Ps=function(){var M=_.n.apply(this,arguments)||this;M.triggered_=!1;return M};
_.v(Ps,_.n);_.F=Ps.prototype;_.F.attached=function(){this.maybeTriggerAutoload()};
_.F.detached=function(){this.hasBeenTriggered_=!1};
_.F.onPrescanVisible=function(){this.onShow()};
_.F.onShow=function(){this.showButton||this.trigger()};
_.F.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.YP(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.F.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.F.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.F.computeLabel_=function(M,d){return M===void 0?null:M.label||!d?M.label:this.showMoreText_};
_.F.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.F.getContinuationUrl=function(M){var d={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(d.itct=this.data.clickTrackingParams);return _.LF(M,d)};
_.F.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Ps.prototype.showButtonChanged_=Ps.prototype.showButtonChanged_;Ps.prototype.observeData_=Ps.prototype.observeData_;_.G([_.S(_.oh.YtVisibilityBehavior),_.a("design:type",Object)],Ps.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ps.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"showButton",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"showIcon",void 0);_.G([_.H({computed:"computeLabel_(data, showButton)"}),_.a("design:type",Object)],Ps.prototype,"label",void 0);_.G([_.H({value:_.ep(_.le("SHOW_MORE",void 0,"Show More"))}),_.a("design:type",Object)],Ps.prototype,"showMoreText_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"spinnerActive_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Ps.prototype,"hasBeenTriggered_",void 0);
_.G([_.H({value:void 0}),_.a("design:type",String)],Ps.prototype,"observeVisibleOption",void 0);_.G([_.H({value:void 0}),_.a("design:type",String)],Ps.prototype,"observeHiddenOption",void 0);_.G([_.H({value:"observe_once"}),_.a("design:type",Object)],Ps.prototype,"observePrescanOption",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"observeData_",null);
_.G([_.xB("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ps.prototype,"showButtonChanged_",null);Ps=_.G([_.w4({is:"yt-next-continuation",disableElementRegistration:!0})],Ps);
_.L(Ps,"yt-next-continuation",function(){if(IZo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qvI===void 0&&(qvI=document.createElement("template"));var R=qvI;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IZo=M}M=IZo;return M},{mode:2});var vEL;var OYz;var oZ=function(){return _.n.apply(this,arguments)||this};
_.v(oZ,_.n);oZ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oZ.prototype,"data",void 0);oZ=_.G([_.w4({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],oZ);
_.L(oZ,"yt-music-pass-small-feature-info-renderer",function(){if(OYz===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vEL===void 0&&(vEL=document.createElement("template"));var R=vEL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OYz=M}M=OYz;return M},{mode:2});_.pO("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var r$=function(){var M=_.n.apply(this,arguments)||this;M.isCollapsible=!1;M.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return M};
_.v(r$,_.n);_.F=r$.prototype;_.F.computeIsCollapsible=function(M){return!!(((M==null?0:M.showMoreText)||(M==null?0:M.visibleRowCount))&&(M==null?0:M.isCollapsible))};
_.F.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"}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.F.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.F.onIronResize=function(){var M=this;_.OH(this,"updateGridInitItems",function(){M.maybeUpdateInitialItemsDisplayed()})};
_.F.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var M=this.getVisibleWidth();M!==0&&(M=Math.floor(M/214)*(this.data.visibleRowCount||2),M!==this.initialCount&&(this.initialCount=M,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.F.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.F.computeExpandVisible=function(M,d,N,R){return M&&d&&N&&!!R&&!!R.showMoreText};
_.F.computeShowMoreButton=function(M){return{text:M,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.F.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.F.initCollapsed=function(){var M=this;this.ytLazyListBehavior.canShowMore=!1;var d;(this.collapsed=!((d=this.data)==null||!d.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.bM(this,function(){_.Eu(M.hostElement,"yt-refit-popups-action")})};
_.F.fillRestIfNotCollapsible=function(){var M=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!M||this.ytLazyListBehavior.fillRemainingListItems()};
_.F.computeViewAllHidden=function(M,d){return M||!d.viewAllEndpoint};
r$.prototype.fillRestIfNotCollapsible=r$.prototype.fillRestIfNotCollapsible;r$.prototype.initCollapsed=r$.prototype.initCollapsed;r$.prototype.onIronResize=r$.prototype.onIronResize;r$.prototype.persistentGuideChanged=r$.prototype.persistentGuideChanged;_.G([_.S(_.sj),_.a("design:type",Object)],r$.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],r$.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],r$.prototype,"ytNextContinuationBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],r$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.j1),_.a("design:type",Object)],r$.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],r$.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Number)],r$.prototype,"initialCount",void 0);_.G([_.H({computed:"computeShowMoreButton(data.showMoreText)"}),_.a("design:type",Object)],r$.prototype,"showMoreButton",void 0);
_.G([_.H({computed:"computeIsCollapsible(data)"}),_.a("design:type",Object)],r$.prototype,"isCollapsible",void 0);_.G([_.Z3("#items"),_.a("design:type",HTMLElement)],r$.prototype,"items",void 0);_.G([_.NS("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"persistentGuideChanged",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"onIronResize",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"initCollapsed",null);_.G([_.NS("canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r$.prototype,"fillRestIfNotCollapsible",null);r$=_.G([_.f({is:"ytd-grid-renderer",disableElementRegistration:!0})],r$);
_.L(r$,"ytd-grid-renderer",function(){if(Djd!==void 0)return Djd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Djd=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var Kd=function(){return _.n.apply(this,arguments)||this};
_.v(Kd,_.n);
Kd.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"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kd.prototype,"data",void 0);Kd=_.G([_.f({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Kd);
_.L(Kd,"ytd-carousel-ad-renderer",function(){if(lZC!==void 0)return lZC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lZC=M},{mode:1});var jVm;var yo=function(){return _.n.apply(this,arguments)||this};
_.v(yo,_.n);_.F=yo.prototype;_.F.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"}}}};
_.F.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,yo.JSC$13135_CLICK_LOCATION_ID_MAP))};
_.F.onSitelinkTap=function(M){M.stopPropagation();var d,N,R=M==null?void 0:(d=M.model)==null?void 0:(N=d.item)==null?void 0:N.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,M,!1)};
_.F.onTap=function(M){var d=this.data&&this.data.content&&this.data.content.navigationEndpoint;d&&this.ytSparklesClickLocationBehavior.handleClick(d,M,!1)};
_.F.sendImpression=function(){if(this.data&&this.data.content)for(var M=_.V(this.data.content.impressionEndpoints||[]),d=M.next();!d.done;d=M.next()){d=_.V(d.value.loggingUrls||[]);for(var N=d.next();!N.done;N=d.next())N=N.value,N.baseUrl&&cf(N.baseUrl,N.attributionSrcMode)}};
yo.prototype.onTap=yo.prototype.onTap;yo.prototype.dataChanged=yo.prototype.dataChanged;yo.JSC$13135_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"]]);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],yo.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yo.prototype,"data",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yo.prototype,"dataChanged",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],yo.prototype,"onTap",null);yo=_.G([_.f({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],yo);
_.L(yo,"ytd-promoted-sparkles-text-search-renderer",function(){if(jVm!==void 0)return jVm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return jVm=M},{mode:1});var sVV;var J1=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.v(J1,_.n);_.F=J1.prototype;
_.F.configureRendererStamper=function(){return{"data.menu":{id:_.Q("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]]"}}}}}};
_.F.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.F.computeHasAdBadge=function(M){return!(M==null||!M.adBadge)};
_.F.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",J1.JSC$13144_DEFAULT_AD_BADGE_RENDERER),_.t2(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,J1.JSC$13144_CLICK_LOCATION_ID_MAP))};
_.F.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var M;(((M=this.data)==null?void 0:M.impressionCommands)||[]).forEach(function(d){d=_.V(d.loggingUrls||[]);for(var N=d.next();!N.done;N=d.next())N=N.value,N.baseUrl&&cf(N.baseUrl,N.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.F.onTap=function(M){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint,R;(d=(R=this.data)==null?void 0:R.thumbnailNavigationEndpoint)&&_.zx(_.J2(M),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(d,M,!1):N&&this.ytSparklesClickLocationBehavior.handleClick(N,M,!1)};
_.F.handleMuteAd=function(){this.collapsed=!0};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Hm.Object.defineProperties(J1.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
J1.prototype.dataChanged=J1.prototype.dataChanged;
J1.JSC$13144_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"]]);
J1.JSC$13144_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.le("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.G([_.S(Ik),_.a("design:type",Object)],J1.prototype,"ytdActiveViewBehavior",void 0);
_.G([_.S([_.tK.YtActionHandlerBehavior]),_.a("design:type",Object)],J1.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],J1.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],J1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],J1.prototype,"collapsed",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],J1.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],J1.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.a("design:type",Boolean)],J1.prototype,"fixAlignmentSmallScreens",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs_square")}}),
_.a("design:type",Boolean)],J1.prototype,"useBiggerThumbsSquare",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.mediaHoverOverlay"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"hideHoverOverlay",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"webSearchLayout",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"webSearchLayoutLandscape",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"webSearchLayoutSquare",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"sparklesCtaNoBackground",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.actionButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"hideActionButton",null);_.G([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.a("design:type",Object)],J1.prototype,"buttonOverride",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.a("design:type",Boolean)],J1.prototype,"hasNewAdBadge",void 0);_.G([_.z("data.promotedSparklesWebStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],J1.prototype,"useRoundedBadge",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],J1.prototype,"dataChanged",null);J1=_.G([_.f({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],J1);
_.L(J1,"ytd-promoted-sparkles-web-renderer",function(){if(sVV!==void 0)return sVV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return sVV=M},{mode:1});var PqL;var cs=function(){return _.n.apply(this,arguments)||this};
_.v(cs,_.n);_.F=cs.prototype;_.F.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]]"}}}}}};
_.F.computeShowCta=function(M){return!(M==null||!M.ctaRenderer)};
_.F.onCtaClick=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.ctaRenderer)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.F.onWatchButtonClick=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.watchButtonRenderer)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.F.onTap=function(){};
_.F.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",cs.JSC$13147_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",cs.JSC$13147_DEFAULT_CLICK_LOCATION_BEHAVIOR,cs.JSC$13147_CLICK_LOCATION_ID_MAP),this.thumbnail)){var M=this.thumbnail.getElementsByTagName("a");M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href")}};
_.F.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var M=_.V(this.data.impressionUrls),d=M.next();!d.done;d=M.next())d=d.value,jj2(d,PxA(d));this.data.impressionsFired=!0}};
_.F.maybeComputeHref=function(){return null};
_.F.computeIsShortDR=function(M){return!(M==null||!M.watchButtonRenderer)&&!(M==null||!M.ctaRenderer)&&!!this.enableShortDR};
_.F.computeIsNewUiOrShortDr=function(M){return!!this.enableUiUpdate||this.computeIsShortDR(M)};
_.F.computeIsNewUiAndNotShortDr=function(M){return!!this.enableUiUpdate&&!this.computeIsShortDR(M)};
_.F.computeHideAvatar=function(M){return!((M==null?0:M.channelThumbnail)&&this.computeIsNewUiOrShortDr(M))};
_.F.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;if(this.enableShortDR&&N&&(_.q(N,_.nL)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(N,M,!!_.q(N,_.nL)),M.stopPropagation();else if(N&&_.q(N,_.nL))this.ytSparklesClickLocationBehavior.handleClick(N,M,!0),M.stopPropagation();else if(N){var R,X;((R=this.data)==null?0:R.navigationEndpoint)&&((X=this.data)==null?0:X.adPlaybackContextParams)&&Qt6(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(N)}};
_.F.computeButtonOverride=function(M){if(this.computeIsNewUiOrShortDr(M))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.F.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.F.onThumbnailContainerClick=function(M){this.onClick(M)};
_.F.computeThumbnailWidth=function(M,d){return M?d==="MASSIVE"?600:d==="BIG"?500:d==="MEDIUM"?450:420:360};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
cs.prototype.dataChanged=cs.prototype.dataChanged;cs.prototype.onTap=cs.prototype.onTap;cs.JSC$13147_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.le("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};cs.JSC$13147_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
cs.JSC$13147_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"}];_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.G([_.S(Ik),_.a("design:type",Object)],cs.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],cs.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],cs.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cs.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],cs.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_video_display_compact_button_group_for_desktop_search")}}),
_.a("design:type",Boolean)],cs.prototype,"enableShortDR",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_vac_ui_update_for_desktop_search")}}),
_.a("design:type",Boolean)],cs.prototype,"enableUiUpdate",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],cs.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.a("design:type",Boolean)],cs.prototype,"showCta",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.a("design:type",Boolean)],cs.prototype,"isShortDr",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.a("design:type",Boolean)],cs.prototype,"isShortDrOrNewUi",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.a("design:type",Boolean)],cs.prototype,"isNewUiAndNotShortDr",void 0);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],cs.prototype,"buttonOverride",void 0);_.G([_.H({computed:"computeSecondaryButtonOverride(data)"}),_.a("design:type",Object)],cs.prototype,"secondaryButtonOverride",void 0);_.G([_.Z3("ytd-thumbnail"),_.a("design:type",HTMLElement)],cs.prototype,"thumbnail",void 0);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cs.prototype,"onTap",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cs.prototype,"dataChanged",null);cs=_.G([_.f({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],cs);
_.L(cs,"ytd-promoted-video-renderer",function(){if(PqL!==void 0)return PqL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return PqL=M},{mode:1});var oEC;var S1=function(){var M=_.n.apply(this,arguments)||this;M.useRoundedBadge=!0;M.sitelinkIds=[];return M};
_.v(S1,_.n);_.F=S1.prototype;
_.F.configureRendererStamper=function(){return{"data.menu":{id:_.Q("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]]"}}}}}};
_.F.dataChanged=function(){var M;(M=this.data)!=null&&M.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,S1.JSC$13154_CLICK_LOCATION_ID_MAP)};
_.F.onTap=function(M){var d,N=(d=this.data)==null?void 0:d.navigationCommand;N&&!_.zx(_.J2(M),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(N,M,!1)};
_.F.onSitelinkTap=function(M){var d,N,R=M==null?void 0:(d=M.model)==null?void 0:(N=d.item)==null?void 0:N.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,M,!1)};
_.F.configureSitelinkClickTargets=function(){var M=this,d,N,R=(d=this.data)==null?void 0:(N=d.clickLocationTargets)==null?void 0:N.find(function(X){return X.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
R&&_.K(this.hostElement).querySelectorAll(".sitelink").forEach(function(X){_.t2(X,"yt-simple-endpoint",!0);M.sitelinkIds.push(X.id);var A,l;(A=M.ytSparklesClickLocationBehavior)==null||(l=A.clickTargetMap)==null||l.set(X.id,R)})};
_.F.sendImpression=function(){var M,d,N=((M=this.data)==null?void 0:(d=M.impressionCommand)==null?void 0:d.loggingUrls)||[];M=_.V(N);for(d=M.next();!d.done;d=M.next())d=d.value,d.baseUrl&&cf(d.baseUrl,d.attributionSrcMode)};
_.F.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Hm.Object.defineProperties(S1.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
S1.prototype.onTap=S1.prototype.onTap;S1.prototype.dataChanged=S1.prototype.dataChanged;S1.JSC$13154_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"]]);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],S1.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S1.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S1.prototype,"showFavicon",null);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],S1.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],S1.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.a("design:type",Boolean)],S1.prototype,"enableThumbnailScalingFix",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S1.prototype,"dataChanged",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],S1.prototype,"onTap",null);S1=_.G([_.f({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],S1);
_.L(S1,"ytd-text-image-no-button-layout-renderer",function(){if(oEC!==void 0)return oEC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return oEC=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var rpg;var zj=function(){var M=_.n.apply(this,arguments)||this;M.isInlinePlaybackState=!1;M.uiUpdate=_.Q("web_modern_buttons");M.hideCta=_.Q("hide_cta_for_home_web_video_ads");M.noBottomMargin=!1;M.animateInTimeStamp=_.ZR("hide_cta_for_home_web_video_ads_animate_in_time");M.animateInCta=!1;M.isHovered=!1;M.player=null;M.JSC$13161_playerEvents=new Map;M.JSC$13161_preventProgressSaveTimer=null;M.delayedCtaJobId=null;return M};
_.v(zj,_.n);_.F=zj.prototype;_.F.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]]"}}}}}};
_.F.attached=function(){this.JSC$13161_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13161_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.Q("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.F.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13161_playerEvents)};
_.F.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",zj.JSC$13160_DEFAULT_CLICK_LOCATION_BEHAVIOR,zj.JSC$13160_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.F.hoverChanged=function(){var M=this;this.delayedCtaJobId&&(_.IQ.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.Q("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.kM(_.IQ,function(){M.buttonContainer.classList.add("show-delayed-buttons")},_.ZR("delayed_cta_on_web_delay_milliseconds")))};
_.F.setPlayer=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return(d=_.Eu(M.hostElement,"yt-get-inline-preview-player-action"))&&d[0]?_.D(N,d[0].getPlayerPromise(),3):N.jumpTo(0);M.player=N.yieldResult;M.ytPlayerListenerBehavior.listenToPlayerEvents(M.player,M.JSC$13161_playerEvents);_.Vy(N)})};
_.F.onPlaybackStart=function(){var M=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13161_preventProgressSaveTimer=_.Lq(_.IQ,function(){M.JSC$13161_preventProgressSaveTimer=null},1E4))};
_.F.onVideoProgress=function(M){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&M>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.F.resetPreventProgressSaveTimer=function(){_.IQ.cancelJob(this.JSC$13161_preventProgressSaveTimer);this.JSC$13161_preventProgressSaveTimer=null};
_.F.getSimpleString=function(M){return _.HD(M)};
_.F.onClick=function(M){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint,R;d=(R=this.data)==null?void 0:R.channelEndpoint;var X,A;(R=(A=_.q((X=this.data)==null?void 0:X.adCtaButton,_.K9))==null?void 0:A.command)&&_.zx(_.J2(M),this.hostElement,["call-to-action"])?_.Q("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(R,M,!1):d&&_.zx(_.J2(M),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(d,M,!1):!_.zx(_.J2(M),this.hostElement,["secondary-button"])&&N&&(_.Q("enable_short_dr_for_desktop_launchable")?(X=!!_.q(N,_.nL),this.isInlinePlaybackState&&X&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(N,M,X)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(N,M,!0)))}};
_.F.updateWatchEndpointStartTime=function(){var M,d;this.player&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&((d=this.data)==null?0:d.navigationEndpoint)&&!this.JSC$13161_preventProgressSaveTimer&&(M=Math.floor(this.player.getCurrentTime()),_.q(this.data.navigationEndpoint,_.nL).startTimeSeconds=M,_.q(this.data.inlinePlaybackEndpoint,_.nL).startTimeSeconds=M)};
_.F.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.F.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Hm.Object.defineProperties(zj.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Q("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.watchButton)&&!((d=this.data)==null||!d.adCtaButton)}}});
zj.prototype.hoverChanged=zj.prototype.hoverChanged;zj.prototype.dataChanged=zj.prototype.dataChanged;
zj.JSC$13160_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"]]);
zj.JSC$13160_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"}];
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],zj.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],zj.prototype,"ytSparklesClickLocationBehavior",void 0);
_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],zj.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"isInlinePlaybackState",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],zj.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"uiUpdate",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"hideCta",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"noBottomMargin",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"animateInCta",void 0);_.G([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.a("design:type",Object)],zj.prototype,"buttonOverride",void 0);
_.G([_.H({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.a("design:type",Object)],zj.prototype,"secondaryButtonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zj.prototype,"isHovered",void 0);_.G([_.Z3("#button-container"),_.a("design:type",HTMLElement)],zj.prototype,"buttonContainer",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],zj.prototype,"typographyBump",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zj.prototype,"typographyBumpV2",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zj.prototype,"dataChanged",null);_.G([_.xB("isHovered"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zj.prototype,"hoverChanged",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],zj.prototype,"isButtonGroup",null);zj=_.G([_.f({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],zj);
_.L(zj,"ytd-ad-inline-playback-meta-block",function(){if(rpg!==void 0)return rpg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return rpg=M},{mode:_.G3("kevlar_poly_si_batch_j065")?1:2});var KoJ;var bD=function(){var M=_.n.apply(this,arguments)||this;M.noBottomMargin=!1;M.isInlinePreviewTriggered=!1;M.JSC$13166_activeViewMeasurementDataResolver=_.KO();return M};
_.v(bD,_.n);_.F=bD.prototype;_.F.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$13166_activeViewMeasurementDataResolver.promise.then(function(d){M.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)});
_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){this.clearInlinePreviewHoverListeners();_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13166_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.JSC$13166_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jYm})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13166_inlinePreviewHoverListener)==null||Mo(M)};
_.F.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$13166_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",bD.JSC$13165_DEFAULT_CLICK_LOCATION_BEHAVIOR,bD.JSC$13165_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"));var d;if((d=this.data)==
null?0:d.hasAutoplay){var N;(N=this.JSC$13166_inlinePreviewHoverListener)==null||MWV(N)}};
_.F.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.F.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(N,M,!!_.q(N,_.nL));M.stopPropagation()}};
_.F.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.F.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.onImpression,_.XP))==null?void 0:N.commands;R&&(R.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;M.ytComponentBehavior.resolveCommand(X)}),this.data.impressionsFired=!0)}};
_.Hm.Object.defineProperties(bD.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13166_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
bD.prototype.onTypographyBumpChanged=bD.prototype.onTypographyBumpChanged;bD.prototype.onDataChanged=bD.prototype.onDataChanged;bD.JSC$13165_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);bD.JSC$13165_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"}];
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],bD.prototype,"ytComponentBehavior",void 0);_.G([_.S(Ik),_.a("design:type",Object)],bD.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],bD.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.ck),_.a("design:type",Object)],bD.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],bD.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],bD.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bD.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],bD.prototype,"noBottomMargin",void 0);
_.G([_.H(),_.a("design:type",Object)],bD.prototype,"isInlinePreviewTriggered",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],bD.prototype,"miniMode",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],bD.prototype,"typographyBump",void 0);_.G([_.Z3("ytd-thumbnail"),_.a("design:type",HTMLElement)],bD.prototype,"thumbnail",void 0);_.G([_.Z3("#dismissible"),_.a("design:type",HTMLElement)],bD.prototype,"JSC$13166_dismissibleMedia",void 0);
_.G([_.Z3("ytd-ad-inline-playback-meta-block"),_.a("design:type",HTMLElement)],bD.prototype,"adInlinePlaybackMetaBlock",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bD.prototype,"onDataChanged",null);_.G([_.NS("typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bD.prototype,"onTypographyBumpChanged",null);
_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],bD.prototype,"isHovered",null);bD=_.G([_.f({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],bD);
_.L(bD,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(KoJ!==void 0)return KoJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return KoJ=M},{mode:1});var ypo;var e1=function(){var M=_.n.apply(this,arguments)||this;M.isInlinePreviewTriggered=!1;M.JSC$13169_activeViewMeasurementDataResolver=_.KO();return M};
_.v(e1,_.n);_.F=e1.prototype;_.F.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$13169_activeViewMeasurementDataResolver.promise.then(function(d){M.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)})};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13169_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.JSC$13169_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:jYm})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13169_inlinePreviewHoverListener)==null||Mo(M)};
_.F.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$13169_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",e1.JSC$13168_DEFAULT_CLICK_LOCATION_BEHAVIOR,e1.JSC$13168_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"))};
_.F.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(N,M,!0);M.stopPropagation()}};
_.F.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.F.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.onImpression,_.XP))==null?void 0:N.commands;R&&(R.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;_.h().resolve(_.xV).resolveCommand(X,{form:{element:M.hostElement}})}),this.data.impressionsFired=!0)}};
_.Hm.Object.defineProperties(e1.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13169_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
e1.prototype.onDataChanged=e1.prototype.onDataChanged;e1.JSC$13168_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);e1.JSC$13168_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"}];_.G([_.S(Ik),_.a("design:type",Object)],e1.prototype,"ytdActiveViewBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],e1.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],e1.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],e1.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],e1.prototype,"isInlinePreviewTriggered",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],e1.prototype,"miniMode",void 0);_.G([_.Z3("ytd-thumbnail"),_.a("design:type",HTMLElement)],e1.prototype,"thumbnail",void 0);
_.G([_.Z3("#dismissible"),_.a("design:type",HTMLElement)],e1.prototype,"JSC$13169_dismissibleMedia",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e1.prototype,"onDataChanged",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],e1.prototype,"isHovered",null);e1=_.G([_.f({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],e1);
_.L(e1,"ytd-video-display-full-buttoned-renderer",function(){if(ypo!==void 0)return ypo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ypo=M},{mode:1});var F3=function(M,d,N,R){R=R===void 0?!1:R;_.Mp.call(this,M);this.adsClientErrorMessage=N;this.aggressivelySample=R;this.args=[];d&&this.args.push(d)};
_.v(F3,_.Mp);var Rf=function(M,d,N,R){R=R===void 0?!1:R;_.Mp.call(this,M);this.adsClientErrorMessage=N;this.aggressivelySample=R;this.args=[];d&&this.args.push(d)};
_.v(Rf,_.Mp);var JpJ=function(M){_.DL.call(this);var d=this;this.initializationFunction=M;this.instance=null;this.addOnDisposeCallback(function(){_.tw(d.instance);d.instance=null})};
_.v(JpJ,_.DL);JpJ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.xM("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var nES=function(){var M=new Map;[].forEach(function(d){M.set(d.JSC$26689_getType(),d)})};new Promise(function(){});var Svj=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"]]),Jpr=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"}]]),cpg=function(M){this.experimentApiProvider=M;M=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=M<.1};var Hs=function(M,d,N,R){_.DL.call(this);this.adsControlFlowEventListeners=d;this.adEventLogger=N;this.experimentApiProvider=R;this.adsControlFlowManagerHelper=M(this,this,this,this,this);_.RW(this,this.adsControlFlowManagerHelper);M=_.V(d);for(d=M.next();!d.done;d=M.next())_.RW(this,d.value)};
_.v(Hs,_.DL);var SvV=function(M,d,N,R){nd(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",d,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R);M=_.V(M.adsControlFlowEventListeners);for(R=M.next();!R.done;R=M.next())SvV(R.value,d,N)};
_.F=Hs.prototype;_.F.onOpportunityProcessedExternallyManaged=function(M,d,N,R){nd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",M,N,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)};
_.F.onSlotReceivedExternallyManaged=function(M,d){iD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M,d)};
_.F.onSlotEntered=function(M){if(fd(this.adsControlFlowManagerHelper,M)!=null){iD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",M);this.adsControlFlowManagerHelper.onSlotEntered(M);for(var d=_.V(this.adsControlFlowEventListeners),N=d.next();!N.done;N=d.next())N.value.onSlotEntered(M);if(fd(this.adsControlFlowManagerHelper,M)!=null&&fd(this.adsControlFlowManagerHelper,M).isOccupyingSlotType()&&Ld(this.adsControlFlowManagerHelper,M)&&!z2d(this.adsControlFlowManagerHelper,M)){var R;t1(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",M,(R=Ld(this.adsControlFlowManagerHelper,M))!=null?R:void 0);M=fd(this.adsControlFlowManagerHelper,M);M.slotLifecycleStage!=="entered"&&Gj(M.slot,M.slotLifecycleStage,"enterLayoutForSlot");M.slotLifecycleStage="rendering";M.registeredLayoutRenderingAdapter.startRendering(M.layout)}}};
_.F.onSlotExited=function(M){if(fd(this.adsControlFlowManagerHelper,M)!=null){iD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",M);this.adsControlFlowManagerHelper.onSlotExited(M);for(var d=_.V(this.adsControlFlowEventListeners),N=d.next();!N.done;N=d.next())N.value.onSlotExited(M);fd(this.adsControlFlowManagerHelper,M)!=null&&fd(this.adsControlFlowManagerHelper,M).markedForUnscheduleAfterOutboundAdapterRequests&&bY3(this,M)}};
_.F.onLayoutReceivedExternallyManaged=function(M,d,N){M.managerLayer!=="core"&&t1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",M,d,N)};
var e2L=function(M,d,N){if(fd(M.adsControlFlowManagerHelper,d)!=null){t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,N);M=_.V(M.adsControlFlowEventListeners);for(var R=M.next();!R.done;R=M.next())e2L(R.value,d,N)}};
Hs.prototype.onLayoutExited=function(M,d,N){if(fd(this.adsControlFlowManagerHelper,M)!=null){t1(this.adEventLogger,cpZ(N),M,d);this.adsControlFlowManagerHelper.onLayoutExited(M,d);for(var R=_.V(this.adsControlFlowEventListeners),X=R.next();!X.done;X=R.next())X.value.onLayoutExited(M,d,N);(N=Ld(this.adsControlFlowManagerHelper,M))&&d.layoutId===N.layoutId&&HYL(this,M)}};
Hs.prototype.disposeInternal=function(){var M=nEV(this.adsControlFlowManagerHelper);M=_.V(M);for(var d=M.next();!d.done;d=M.next())bY3(this,d.value);_.DL.prototype.disposeInternal.call(this)};
var bY3=function(M,d){if(fd(M.adsControlFlowManagerHelper,d)!=null)if(fd(M.adsControlFlowManagerHelper,d).JSC$26720_isSlotExitRequested()||fd(M.adsControlFlowManagerHelper,d).JSC$26720_isLayoutExitRequested())fd(M.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(fd(M.adsControlFlowManagerHelper,d).isOccupyingSlotType())fd(M.adsControlFlowManagerHelper,d).markedForUnscheduleAfterOutboundAdapterRequests=!0,HYL(M,d);else if(fd(M.adsControlFlowManagerHelper,d).JSC$26720_isSlotFillRequested())fd(M.adsControlFlowManagerHelper,
d).markedForUnscheduleAfterOutboundAdapterRequests=!0,fd(M.adsControlFlowManagerHelper,d)!=null&&(iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",d),d=fd(M.adsControlFlowManagerHelper,d),d.fulfillmentLifecycleStage="fill_cancel_requested",d.registeredFulfillmentAdapter.cancelSlotFilling());else{var N=Ld(M.adsControlFlowManagerHelper,d),R;M.experimentApiProvider.get();(R=_.Q("h5_enable_layout_unscheduling_events"))&&(N?iYV(M,d,N):_.xM(Error("Jh"),d,N,void 0,!1));iD(M.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",d);var X=fd(M.adsControlFlowManagerHelper,d),A=d.slotEntryTrigger,l=X.registeredSlotEntryTriggerAdapters.get(A.triggerId);l&&(l.unregisterTrigger(A),X.registeredSlotEntryTriggerAdapters.delete(A.triggerId));A=_.V(d.slotFulfillmentTriggers);for(l=A.next();!l.done;l=A.next()){l=l.value;var k=X.registeredFulfillmentTriggerAdapters.get(l.triggerId);k&&(k.unregisterTrigger(l),X.registeredFulfillmentTriggerAdapters.delete(l.triggerId))}A=_.V(d.slotExpirationTriggers);
for(l=A.next();!l.done;l=A.next())if(l=l.value,k=X.registeredExpirationTriggerAdapters.get(l.triggerId))k.unregisterTrigger(l),X.registeredExpirationTriggerAdapters.delete(l.triggerId);X.hasLayout()&&(A=X.layout,aZ(X,A.layoutExitNormalTriggers),aZ(X,A.layoutExitSkipTriggers),aZ(X,A.layoutExitMuteTriggers),aZ(X,A.layoutExitUserInputSubmittedTriggers),aZ(X,A.layoutExitUserCancelledTriggers));X.registeredFulfillmentAdapter=void 0;X.registeredSlotAdapter!=null&&(X.registeredSlotAdapter.release(),X.registeredSlotAdapter=
void 0);X.registeredLayoutRenderingAdapter!=null&&(X.registeredLayoutRenderingAdapter.release(),X.registeredLayoutRenderingAdapter=void 0);X=M.adsControlFlowManagerHelper;fd(X,d)&&(X=fZo(X,d.slotType+"_"+d.slotPhysicalPosition))&&X.delete(d.slotId);iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",d);M=_.V(M.adsControlFlowEventListeners);for(X=M.next();!X.done;X=M.next())X=X.value,X.onSlotUnscheduled(d),N&&!R&&iYV(X,d,N)}},iYV=function(M,d,N){t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
d,N);
t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",d,N);M=_.V(M.adsControlFlowEventListeners);for(var R=M.next();!R.done;R=M.next())R=R.value,N&&iYV(R,d,N)},HYL=function(M,d){if(fd(M.adsControlFlowManagerHelper,d)!=null&&fd(M.adsControlFlowManagerHelper,d).isOccupyingSlotType()){var N=Ld(M.adsControlFlowManagerHelper,d);
if(N&&z2d(M.adsControlFlowManagerHelper,d)){if(fd(M.adsControlFlowManagerHelper,d)!=null){var R=M.adEventLogger,X;var A=((X=Jpr.get("abandoned"))==null?void 0:X.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";t1(R,A,d,N);M=fd(M.adsControlFlowManagerHelper,d);M.slotLifecycleStage!=="rendering"&&Gj(M.slot,M.slotLifecycleStage,"exitLayout");M.slotLifecycleStage="rendering_stop_requested";M.registeredLayoutRenderingAdapter.stopRendering(N,"abandoned")}}else{iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
d);try{R=fd(M.adsControlFlowManagerHelper,d);if(!R)throw new Rf("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");R.slotLifecycleStage!=="enter_requested"&&R.slotLifecycleStage!=="entered"&&R.slotLifecycleStage!=="rendering"&&Gj(R.slot,R.slotLifecycleStage,"exitSlot");R.slotLifecycleStage="exit_requested";if(R.registeredSlotAdapter===void 0)throw R.slotLifecycleStage="scheduled",new Rf("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
R.registeredSlotAdapter.exit()}catch(l){l instanceof Rf&&l.adsClientErrorMessage?(Lot(M.adEventLogger,l.adsClientErrorMessage,d),_.xM(l,d,void 0,void 0,l.aggressivelySample)):(Lot(M.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",d),_.xM(l,d))}}}};var Ut=function(M,d,N,R,X,A){_.DL.call(this);this.registry=M;this.experimentApiProvider=A;this.slotMap=new Map};
_.v(Ut,_.DL);var fZo=function(M,d){return(M=M.slotMap.get(d))?M:new Map},fd=function(M,d){return fZo(M,d.slotType+"_"+d.slotPhysicalPosition).get(d.slotId)},nEV=function(M){var d=[];
M.slotMap.forEach(function(N){N=_.V(N.values());for(var R=N.next();!R.done;R=N.next())d.push(R.value.slot)});
return d};
Ut.prototype.onSlotEntered=function(M){M=fd(this,M);M.slotLifecycleStage!=="enter_requested"&&Gj(M.slot,M.slotLifecycleStage,"onSlotEntered");M.slotLifecycleStage="entered"};
var z2d=function(M,d){M=fd(M,d);return M.hasLayout()&&M.isRendering()},Ld=function(M,d){(M=fd(M,d))?M.hasLayout()&&!M.layout&&_.xM("Unexpected empty layout",d):_.xM("Unexpected undefined slotState",d);
return(M==null?void 0:M.layout)||null};
Ut.prototype.onSlotExited=function(M){M=fd(this,M);M.slotLifecycleStage!=="exit_requested"&&Gj(M.slot,M.slotLifecycleStage,"onSlotExited");M.slotLifecycleStage="scheduled"};
Ut.prototype.onLayoutExited=function(M,d){M=fd(this,M);M.isPrimaryLayout(d)&&(M.slotLifecycleStage!=="rendering_stop_requested"&&Gj(M.slot,M.slotLifecycleStage,"onLayoutExited"),M.slotLifecycleStage="entered")};
var aZ=function(M,d){d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=M.registeredLayoutExitTriggerAdapters.get(N.triggerId);R&&(R.unregisterTrigger(N),M.registeredLayoutExitTriggerAdapters.delete(N.triggerId))}},Gj=function(M,d,N){_.xM("Slot stage was "+d+" when calling method "+N,M)};var Gyg=function(M){_.DL.call(this);this.deps=M;this.JSC$13218_adsControlFlowManager=tAI(this)};
_.v(Gyg,_.DL);var tAI=function(M){var d=new Hs(function(N,R,X,A){return new Ut(M.deps.registry,N,R,X,A,M.deps.experimentApiProvider)},new Set(HY2(M.deps.registry).concat(M.deps.listeners)),M.deps.adEventLogger,M.deps.experimentApiProvider);
_.RW(M,d);return d};var aZL=function(M,d){_.DL.call(this);this.experimentApiProvider=M;this.eventLoggingSettingsProvider=d;this.eventCount=0};
_.v(aZL,_.DL);aZL.prototype.logEvent=function(M){nd(this,M)};
var iD=function(M,d,N,R){nd(M,d,void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,void 0,R)},t1=function(M,d,N,R,X){nd(M,d,void 0,void 0,void 0,N,R?R:void 0,void 0,void 0,N.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,void 0,X)},Lot=function(M,d,N){nd(M,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:d})},nd=function(M,d,N,R,X,A,l,k,T,W,w,p,m){m=m===void 0?0:m;
UjV(M.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+d,"slot:",A,"layout:",l,"ping:",k,"Opportunity:",{opportunityType:N,associatedSlotId:R,slotsFromOpportunity:X,triggerBundle:T,adSlotLoggingData:W,adLayoutLoggingData:w});try{var I=function(){M.experimentApiProvider.get();if(d!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){d||_.xM("Empty PACF event type",A,l);var O=M.eventLoggingSettingsProvider.get();var y;(y=O.alwaysIncludeDebugData)||(O.experimentApiProvider.get(),y=
!1);O=y;y={eventType:d,eventOrder:++M.eventCount};var c={};A&&(c.slotData=bYZ(O,A));if(l){var e={type:l.layoutType,controlFlowManagerLayer:Svj.get(l.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O&&(e.debugData={layoutId:l.layoutId});c.layoutData=e}k&&(c.pingData={pingDispatchStatus:k.dispatchStatus,serializedAdPingMetadata:k.ping.serializedAdPingMetadata,pingIndex:k.index});T&&(c.triggerData=z2Z(T.trigger,T.category));N&&(c.opportunityData=e22(O,N,R,X));y.adClientData=c;W&&(y.serializedSlotAdServingData=
W.serializedSlotAdServingDataEntry);w&&(y.serializedAdServingData=w.serializedAdServingDataEntry);p&&(y.errorInfo=p);_.hQ("adsClientStateChange",{adsClientEvent:y})}};
m&&m>0?_.gL(_.Pa(),function(){return I()},m):I()}catch(O){UjV(M.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.gL(_.Pa(),function(){_.xM(O instanceof Error?O:String(O),A,l,{pacf_message:"exception during pacf logging"})})}};var udV=function(M,d){aZL.call(this,M,d)};
_.v(udV,aZL);var CqL=function(){},UjV=function(M,d){return _.Q(d)};var Yvg=function(){var M=new xjz;this.JSC$13237_adsControlFlowManager=(new Gyg(M)).JSC$13218_adsControlFlowManager},xjz=function(){_.DL.call(this);
var M=this;this.experimentApiProvider=new JpJ(function(){return new CqL});
var d=new JpJ(function(){return new cpg(M.experimentApiProvider)});
this.adEventLogger=new udV(this.experimentApiProvider,d);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.v(xjz,_.DL);var ZYI=function(){},EEV,uD=function(){EEV||(EEV=new ZYI);
return EEV},Cd=function(M){if(!M.JSC$13248_externallyManagedSlotAdapterCallback){var d=(new Yvg).JSC$13237_adsControlFlowManager;
M.JSC$13248_externallyManagedSlotAdapterCallback=d}return M.JSC$13248_externallyManagedSlotAdapterCallback},MhI=function(M,d,N){var R=d.opportunityType,X=Error("Kh");
if(R!==void 0){var A=Cd(M);SvV(A,R,void 0,N)}else _.xM(X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});A=[];if(d.adSlotAndLayoutMetadata!==void 0){d=_.V(d.adSlotAndLayoutMetadata);for(var l=d.next();!l.done;l=d.next()){var k=l.value;if(l=k.adSlotMetadata)if(A.push(l),M.onSlotReceivedExternallyManaged(l,N),k.adLayoutMetadata){k=_.V(k.adLayoutMetadata);for(var T=k.next();!T.done;T=k.next())M.onLayoutReceivedExternallyManaged(l,T.value,N)}else N>0&&_.xM("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else N>0&&_.xM("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else N>0&&_.xM("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(R!==void 0)M.onOpportunityProcessedExternallyManaged(R,A,void 0,N);else _.xM(X,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
ZYI.prototype.onSlotReceivedExternallyManaged=function(M,d){M=X3(M);if(M instanceof Rf)_.xM(M,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Cd(this).onSlotReceivedExternallyManaged(M,d)};
ZYI.prototype.onLayoutReceivedExternallyManaged=function(M,d,N){M=X3(M);d=iYj(d);if(M instanceof Rf)_.xM(M,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(d instanceof F3)_.xM(d,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Cd(this).onLayoutReceivedExternallyManaged(M,d,N)};
ZYI.prototype.onOpportunityProcessedExternallyManaged=function(M,d,N,R){var X=[];d=_.V(d);for(var A=d.next();!A.done;A=d.next())A=X3(A.value),A instanceof Rf?_.xM(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):X.push(A);Cd(this).onOpportunityProcessedExternallyManaged(M,X,N,R)};
var dzC=function(M,d){d=X3(d);if(d instanceof Rf)_.xM(d,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var N=Cd(M);iD(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);N=_.V(N.adsControlFlowEventListeners);for(var R=N.next();!R.done;R=N.next())R=fd(R.value,d),R.slotLifecycleStage!=="not_scheduled"&&Gj(R.slot,R.slotLifecycleStage,"onSlotScheduled"),R.slotLifecycleStage="scheduled";M=Cd(M);iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",d);M=_.V(M.adsControlFlowEventListeners);
for(N=M.next();!N.done;N=M.next())N.value.onSlotEntered(d)}},Ndt=function(M,d){d=X3(d);
if(d instanceof Rf)_.xM(d,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var N=Cd(M);iD(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",d);N=_.V(N.adsControlFlowEventListeners);for(var R=N.next();!R.done;R=N.next())R.value.onSlotExited(d);M=Cd(M);iD(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",d);M=_.V(M.adsControlFlowEventListeners);for(N=M.next();!N.done;N=M.next())N.value.onSlotUnscheduled(d)}},ReL=function(M,d,N){d=X3(d);
N=iYj(N);if(d instanceof Rf)_.xM(d,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(N instanceof F3)_.xM(N,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var R=Cd(M);t1(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",d,N);R=_.V(R.adsControlFlowEventListeners);for(var X=R.next();!X.done;X=R.next())X.value.onLayoutScheduled(d,N);M=Cd(M);t1(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",d,N);M=_.V(M.adsControlFlowEventListeners);
for(R=M.next();!R.done;R=M.next())e2L(R.value,d,N)}},x1=function(M,d,N){d=X3(d);
N=iYj(N);if(d instanceof Rf)_.xM(d,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(N instanceof F3)_.xM(N,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var R=Cd(M);t1(R.adEventLogger,cpZ("normal"),d,N);R=_.V(R.adsControlFlowEventListeners);for(var X=R.next();!X.done;X=R.next())X.value.onLayoutExited(d,N,"normal");M=Cd(M);M=_.V(M.adsControlFlowEventListeners);for(R=M.next();!R.done;R=M.next())iYV(R.value,d,N)}};_.Y1=_.SG(function(M){var d=_.cu(M,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});M=Object.assign({},d);var N=d.data;d=d.customCommandResolver;var R=(delete M.data,delete M.customCommandResolver,M),X=_.e5();_.to(X,function(){return N().interaction},d,function(){var k;
return(k=R.listenToTapEvent)==null?void 0:k.call(R)});
_.Gi(X,{visibilityCallback:function(k){var T,W=(T=N().interaction)==null?void 0:T.onFirstVisible;k&&(W&&_.vz(W),R.setOnErrorHandler()&&fZ6(X))},
showOption:_.bK});M=_.V(_.d0(!1,void 0,"eiYvIe"));var A=M.next().value,l=M.next().value;M=_.dT(function(){var k;((k=R.setTouchEndHandler)==null?0:k.call(R))&&!A()&&(X.value.click(),l(!0),setTimeout(function(){l(!1)},100));
return!1});
return _.g("ad-image-view-model",{class:function(){var k,T=[((k=N().interaction)==null?0:k.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],W;((W=R.isGridViewEnabled)==null?0:W.call(R))&&T.push("ytwAdImageViewModelHostInGridView");return T.join(" ")},
el:X,"on:touchend":M},_.g("div",{class:"ytwAdImageViewModelHostImageContainer"},_.g(_.Jt,{data:function(){var k;return{sources:N().imageSources,contentMode:(k=N().imageProperties)==null?void 0:k.contentMode}},
alt:function(){var k,T;return((k=N().interaction)==null?void 0:(T=k.accessibility)==null?void 0:T.label)||""},
targetHeight:R.targetHeight,targetWidth:R.targetWidth,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,useWidth:R.useWidth,style:function(){var k,T;return"vertical-align: bottom;"+(((k=N().background)==null?0:k.color)?"background-color:"+_.p3((T=N().background)==null?void 0:T.color)+";":"")},
className:function(){return R.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var k,T;return(T=(k=R.setDraggable)==null?void 0:k.call(R))!=null?T:void 0}})))},"bb");var XrI=_.SG(function(M){var d=M.data,N=M.listenToTapEvent,R=_.e5();_.Q("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.to(R,function(){return d().interaction},void 0,function(){return N==null?void 0:N()});
_.Gi(R,{visibilityCallback:function(A){var l,k=(l=d().interaction)==null?void 0:l.onFirstVisible;A&&k&&_.vz(k)},
showOption:_.bK});M=_.dT(function(){if(_.Q("enable_web_home_top_landscape_image_layout_legacy_click_command")){var A,l=(A=d().interaction)==null?void 0:A.onTap;l&&_.YP(R.value,"yt-navigate",{endpoint:_.ht(l)})}});
var X=function(){};
return _.g("ad-button-hover-overlay-view-model",{"on:click":M,class:function(){var A;return((A=d().interaction)==null?0:A.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:R},function(){return _.Q("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.g(_.ho,{data:function(){return d().button}},{adButtonViewModel:function(A){return _.g(_.HI,{data:A.data,
customCommandResolver:X})}}):_.g(_.ho,{data:function(){return d().button}},{adButtonViewModel:_.HI})}())},"cb");var A9;_.eC(_.SG(function(M){var d=M.data;var N=_.e5();_.Q("stop_av_measurement_on_detach")&&_.mF(function(){lB(N)});
_.to(N,function(){return d().interaction},void 0,function(){return!0});
_.Gi(N,{visibilityCallback:function(l){if(l){var k;(l=(k=d().interaction)==null?void 0:k.onFirstVisible)&&_.vz(l);var T;if(k=(T=d().adLayoutData)==null?void 0:T.activeViewData)Va(N,k),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lB(N)})}else _.Q("stop_av_measurement_on_detach")&&lB(N)},
showOption:_.bK,hideOption:eq});M=_.V(_.d0(!1,void 0,"yzu6qe"));var R=M.next().value,X=M.next().value;M=_.dT(function(){X(!0)});
var A=_.dT(function(){X(!1)});
return _.g("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:N,"on:mouseenter":M,"on:mouseleave":A},_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Xc({"max-width":function(){return _.Q("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.g("div",{class:function(){var l;
a:{var k;switch((l=_.q(d().thumbnailImage,m6))==null?void 0:(k=l.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":l="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":l="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}l=void 0}return l}},_.g(_.ho,{data:function(){return d().thumbnailImage}},{adImageViewModel:function(l){return _.g(_.Y1,
{data:l.data,
listenToTapEvent:!0,setTouchEndHandler:_.Q("enable_top_landscape_image_experiment_dom_id_web")})}})),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.kV,{cond:function(){var l,k,T;
return(l=_.q(d().thumbnailImage,m6))==null?void 0:(k=l.imageProperties)==null?void 0:(T=k.overlayIcon)==null?void 0:T.iconImage},
then:function(l){return _.g(_.Jt,{data:l,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.g("div",{class:function(){return R()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.g(_.ho,{data:function(){return d().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(l){return _.g(XrI,
{data:l.data,
listenToTapEvent:!0})}}))),_.g("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.g(_.ho,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:function(l){return _.g(hNg,{data:l.data,
listenToTapEvent:!0,setTouchEndHandler:_.Q("enable_top_landscape_image_experiment_dom_id_web")})}})))},"db"),"compact-landscape-no-button-layout-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=_.e5();_.Q("stop_av_measurement_on_detach")&&_.mF(function(){lB(N)});
var R=_.hI(_.KX);_.to(N,function(){return d().interaction});
_.Gi(N,{visibilityCallback:function(W){if(W){var w;(W=(w=d().interaction)==null?void 0:w.onFirstVisible)&&_.vz(W);var p;if(w=(p=d().adLayoutData)==null?void 0:p.activeViewData)Va(N,w),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lB(N)})}else _.Q("stop_av_measurement_on_detach")&&lB(N)},
showOption:_.bK,hideOption:eq});var X=_.dT(function(W){var w,p,m=(w=_.q(d().adImage,m6))==null?void 0:(p=w.interaction)==null?void 0:p.onTap;m&&(_.Q("enable_square_image_components_ui_web_with_custom_event")?_.YP(N.value,"yt-navigate",{endpoint:_.ht(m)}):RN6(W,m))}),A=_.dT(function(){var W,w,p=(W=_.q(d().adButton,RvV))==null?void 0:(w=W.interaction)==null?void 0:w.onTap;
p&&_.YP(N.value,"yt-navigate",{endpoint:_.ht(p)})}),l=function(){};
M={};var k={},T={};return _.g("square-image-layout-view-model",{class:_.xj("ytwSquareImageLayoutViewModelHost",(M.ytwSquareImageLayoutViewModelHostColumn=R,M)),el:N},_.g("div",{class:_.xj("ytwSquareImageLayoutViewModelHostImage",(k.ytwSquareImageLayoutViewModelHostColumnImage=R,k))},function(){return _.Q("enable_square_image_components_ui_web_with_native_img")?_.g("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var W,w,p;return((W=_.q(d().adImage,m6))==null?void 0:(w=W.imageSources)==
null?void 0:(p=w[0])==null?void 0:p.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":X}):_.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(W){return _.g(_.Y1,{data:W.data,
isGridViewEnabled:R,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.g("div",{class:_.xj("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(T.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=R,T))},_.g(_.ho,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:hNg}),function(){return _.Q("enable_square_image_components_ui_web_with_float_button")?_.g("div",{"on:click":A},_.g(_.ho,{data:function(){return d().adButton}},
{adButtonViewModel:function(W){var w={};
return _.g(_.HI,{data:W.data,customCommandResolver:l,className:_.xj((w.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=R,w))})}})):_.g(_.ho,{data:function(){return d().adButton}},{adButtonViewModel:function(W){var w={};
return _.g(_.HI,{data:W.data,className:_.xj((w.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=R,w))})}})}()))},"eb"),"square-image-layout-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=M.noBottomMargin;var R=M.typographyBump;var X=_.e5();_.Q("stop_av_measurement_on_detach")&&_.mF(function(){lB(X)});
_.Q("enable_web_home_top_landscape_image_layout_level_click")&&_.to(X,function(){return d().interaction},void 0,function(){return!0});
M=function(){return d().interaction};
M!==void 0&&M!==null||_.Sx(Error("Lh"));_.Gi(X,{visibilityCallback:function(w){if(w){var p;(w=(p=d().interaction)==null?void 0:p.onFirstVisible)&&_.vz(w);var m;if(p=(m=d().adLayoutData)==null?void 0:m.activeViewData)Va(X,p),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lB(X)})}else _.Q("stop_av_measurement_on_detach")&&lB(X)},
showOption:_.bK,hideOption:eq});var A=function(){var w,p,m;return(w=_.q(d().thumbnailImage,m6))==null?void 0:(p=w.background)==null?void 0:(m=p.backgroundImageSource)==null?void 0:m.imageSources};
M=_.V(_.d0(!1,void 0,"GIwTMc"));var l=M.next().value,k=M.next().value;M=_.dT(function(){k(!0)});
var T=_.dT(function(){k(!1)}),W=function(){return l()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.g("top-landscape-image-layout-view-model",{class:function(){var w;return((w=d().interaction)==null?0:w.onTap)&&_.Q("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:X,"on:mouseenter":M,"on:mouseleave":T},_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.g(_.kV,{cond:function(){return A()&&A().length>0},
then:function(){return _.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Xc({top:"0","background-image":function(){return"url("+String(A()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.g(_.kV,{cond:function(){return!!d().adButtonHoverOverlay},
then:function(){return _.g("div",{class:W},_.g(_.ho,{data:function(){return d().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:XrI}))}}),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.g(_.ho,{data:function(){return d().thumbnailImage}},{adImageViewModel:function(w){return _.g(_.Y1,{data:w.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.Q("enable_web_home_top_landscape_image_layout_level_click")})}})),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.g(_.Jt,{data:{sources:[{clientResource:{imageName:_.Q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.g("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.g(_.ho,{data:function(){return d().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.g(hNg,{data:w.data,
noBottomMargin:function(){return N==null?void 0:N()},
listenToTapEvent:function(){return _.Q("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return R==null?void 0:R()}})}})))},"fb"),"top-landscape-image-layout-view-model",{props:{data:_.cA,
noBottomMargin:_.cA,typographyBump:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=M.typographyBump;var R=_.e5();_.Q("stop_av_measurement_on_detach")&&_.mF(function(){lB(R)});
_.Gi(R,{visibilityCallback:function(X){if(X){var A;(X=(A=d().interaction)==null?void 0:A.onFirstVisible)&&_.vz(X);var l;if(A=(l=d().adLayoutData)==null?void 0:l.activeViewData)Va(R,A),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lB(R)})}else _.Q("stop_av_measurement_on_detach")&&lB(R)},
showOption:_.bK,hideOption:eq});return _.g("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:R},_.g("div",null,_.g(_.ho,{data:function(){return d().videoLockup}},{lockupViewModel:function(X){return _.g(_.GS,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:N})}})))},"gb"),"video-display-button-group-layout-view-model",{props:{data:_.cA,
noBottomMargin:_.cA,typographyBump:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=M.typographyBump;var R=_.e5();_.Q("stop_av_measurement_on_detach")&&_.mF(function(){lB(R)});
_.Gi(R,{visibilityCallback:function(X){if(X){var A;(X=(A=d().interaction)==null?void 0:A.onFirstVisible)&&_.vz(X);var l;if(A=(l=d().adLayoutData)==null?void 0:l.activeViewData)Va(R,A),_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lB(R)})}else _.Q("stop_av_measurement_on_detach")&&lB(R)},
showOption:_.bK,hideOption:eq});return _.g("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:R},_.g("div",null,_.g(_.ho,{data:function(){return d().videoLockup}},{lockupViewModel:function(X){return _.g(_.GS,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:N})}})))},"hb"),"video-display-full-layout-view-model",{props:{data:_.cA,
noBottomMargin:_.cA,typographyBump:_.cA}});_.FUz=_.SG(function(M){var d=M.data;M=_.e5();return _.g("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:M},_.g(_.kV,{cond:function(){return d().imageBadge},
then:function(N){return _.g(_.Jt,{data:N,alt:""})}}))},"ib");var Anz=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;M=_.e5();_.to(M,function(){return d().interaction},N);
_.Gi(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.vz(A)},
showOption:_.bK});return _.g("carousel-ad-card-image-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
customCommandResolver:N})}}),_.g("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.g(_.ho,{data:function(){return d().badge}},{adCardBadgeViewModel:_.FUz})),_.g(_.$F,{model:{color:4}}))},"jb");var VhJ=_.SG(function(M){var d=_.V(_.d0(0,void 0,"o9Bzd")),N=d.next().value;d.next();var R=d.next().value,X=_.V(_.d0(!1,void 0,"KLdzYe"));d=X.next().value;var A=X.next().value,l;_.mF(function(){clearTimeout(l)});
X=_.dT(function(){var W;((W=M.animate)==null?0:W.call(M))?(A(!0),l=setTimeout(function(){A(!1);k()},200)):k();
return!1});
var k=function(){R(function(W){return(W+M.numShownItems())%M.data().length})},T={};
return _.g("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.g("div",{class:_.xj("ytwHorizontalCarouselCarouselWrapper")},_.g("div",{class:_.xj("ytwHorizontalCarouselCarouselInnerWrapper",(T.ytwHorizontalCarouselAnimating=d,T))},_.g(_.TN,{each:M.data,keyBy:"INDEX"},function(W,w){return _.g("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Xc({"flex-basis":function(){return"calc((100% - (8px * "+(M.numShownItems()-1)+")) / "+M.numShownItems()+")"},
order:function(){var p=w-N();p<0&&(p+=M.data().length);return p}})},M.children(W,w))}))),_.g("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":X},M.nextButton()))},"kb");var l_V=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.expansive;M=_.e5();_.Gi(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.vz(l)},
showOption:_.bK});return _.g("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:M},_.g(VhJ,{data:function(){var X;return((X=d())==null?void 0:X.carouselAdCards)||[]},
nextButton:function(){return _.g(_.ho,{data:function(){return d().nextButton}},{buttonViewModel:function(X){var A=X.data;
return _.g(_.o0,{data:function(){return(R==null?0:R())?Object.assign({},A(),{style:"mono"}):A()},
className:_.Q("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(X){return _.g(_.ho,{data:X},{carouselAdCardImageViewModel:function(A){return _.g(Anz,{data:A.data,customCommandResolver:N})}})}))},"lb");var $zd=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.className;var X=M.buttonClassName;var A=M.animationEntityKey;var l=M.expansive;return _.g("carousel-button-view-model",{class:_.xj("ytwCarouselButtonViewModelHost",R)},_.g(_.ho,{data:function(){return d().carousel}},{carouselAdCardCollectionViewModel:function(k){return _.g(l_V,{data:k.data,
customCommandResolver:N,expansive:l})}}),_.g(_.ho,{data:function(){return d().button}},{adButtonViewModel:function(k){var T=k.data;
return _.g(_.HI,{data:function(){return(l==null?0:l())?Object.assign({},T(),{style:"AD_BUTTON_STYLE_TONAL"}):T()},
className:X,customCommandResolver:N,animationEntityKey:A})}}))},"mb");_.Bdg=_.SG(function(M){var d=M.data;M=M.className;var N=_.e5();_.IJ(function(){var R;((R=d())==null?0:R.backgroundColor)&&N.value.setAttribute("data-background-color",String(d().backgroundColor))});
return _.g("pivot-button-view-model",{el:N,class:_.xj("ytwPivotButtonViewModelHost",M)},_.g(_.VX,{command:function(){var R=d();R=R.onClickCommand?_.ht(R.onClickCommand):R.contentDescription?_.tT(R.contentDescription):void 0;return R},
ariaLabel:function(){return d().contentDescription}},_.g(_.kV,{cond:function(){return d().thumbnail},
then:function(R){return _.g(_.Jt,{data:R,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.g(_.kV,{cond:function(){return d().icon},
then:function(R){return _.g(_.Fc,{icon:function(){return R().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"nb");_.kOe=_.SG(function(M){var d=M.data;var N=M.buttonShapeOverrideables;return _.g("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.g(_.ho,{data:function(){return d().buttonViewModels}},{buttonViewModel:function(R){return _.g(_.o0,{data:R.data,
buttonOverrides:N})},
likeButtonViewModel:function(R){return _.g(_.sEV,{data:R.data,buttonShapeOverrideables:N})},
dislikeButtonViewModel:function(R){return _.g(_.Old,{data:R.data,buttonShapeOverrideables:N})}}))},"ob");var Tdz=_.SG(function(M){var d=M.avatar;var N=M.headline;var R=M.badge;var X=M.description;var A=M.expansive;M={};return _.g("yt-ad-metadata-shape",{class:_.xj("ytAdMetadataShapeHost",(M.ytAdMetadataShapeHostLarge=A,M))},_.g("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.g(_.kV,{cond:d,then:function(l){return _.g(_.WuV,{data:function(){return(A==null?0:A())?Object.assign({},l(),{size:"AD_AVATAR_SIZE_MPLUS"}):l()}})}}),_.g("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.g(_.lG,{text:N,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.g(_.kV,{cond:R,then:function(l){return _.g(_.LN,{data:function(){return(A==null?0:A())?Object.assign({},l(),{style:"AD_BADGE_STYLE_STARK"}):l()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.g("h2",{class:"ytAdMetadataShapeHostDescription"},_.g(_.lG,{text:X,
linkInheritColor:!0})))},"pb");var Dzm=_.SG(function(M){var d=M.data;var N=M.onShow;var R=M.expansive;M=_.e5();_.to(M,function(){return d().interaction});
_.IJ(function(){var A,l=(A=d().animatedRenderingConfig)==null?void 0:A.delayedSecondsToVisible;if(l){var k=setTimeout(N,l*1E3);_.mF(function(){clearTimeout(k)})}});
var X={};return _.g("reels-ad-card-buttoned-view-model",{class:_.xj(function(){var A;return((A=d().interaction)==null?0:A.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(X.ytwReelsAdCardButtonedViewModelHostExpansive=R,X)),
el:M},_.g(Tdz,{avatar:function(){return _.q(d().avatar,dIL)},
headline:function(){return d().headline},
badge:function(){return _.q(d().adBadge,NlL)},
description:function(){return d().description},
expansive:R}),_.g(_.ho,{data:function(){return d().ctaButton}},{adButtonViewModel:function(A){var l=A.data;
return _.g(_.HI,{data:function(){return(R==null?0:R())?Object.assign({},l(),{style:"AD_BUTTON_STYLE_FILLED"}):l()}})}}))},"qb");var g6J=_.SG(function(M){var d=M.data;M=M.expansive;var N=_.e5();_.Q("web_ad_metadata_clickable")&&_.to(N,function(){return d().interaction});
var R={};R=_.ZH("ytwReelsAdMetadataViewModelHost",(R.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.Q("web_ad_metadata_clickable"),R));return _.g("reels-ad-metadata-view-model",{class:R,el:N},_.g(Tdz,{avatar:function(){return _.q(d().avatar,dIL)},
headline:function(){return d().headline},
badge:function(){return _.q(d().adBadge,NlL)},
description:function(){return d().description},
expansive:M}))},"rb");var WUV={iconPosition:"icon-with-label",size:"L"},wrt=_.SG(function(M){var d=M.data;M=M.overlayDensity;var N=_.e5(),R=_.Jy(M,0);_.Wg(function(){N.value.setAttribute("overlay-density",String(R()))});
var X=function(){var p;return(p=d().reelsAdCardButtonedEntityKey)!=null?p:""},A=function(){return X()+"/ad_button"},l=_.FT(CZi,X),k=function(){var p,m;
return(m=(p=l())==null?void 0:p.value)!=null?m:!1},T=_.hI(udj),W=function(){return Object.assign({},WUV,(T()||R()===2)&&{style:"overlay-dark"})};
M={};var w={};return _.g("reels-player-overlay-layout-view-model",{class:_.xj("ytwReelsPlayerOverlayLayoutViewModelHost",(M.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!d().extension},M.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},M)),
el:N},_.g("div",{class:_.xj("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(w.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},w))},_.g("div",{"aria-hidden":function(){return k()},
class:_.xj("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return k()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Xc({"transition-duration":function(){return YvZ(d())}})},_.g(_.ho,{data:function(){return d().adMetadata}},{reelsAdMetadataViewModel:function(p){return _.g(g6J,{data:p.data,
expansive:function(){return R()===1}})}}),_.g(_.kV,{cond:function(){return d().extension},
then:function(p){return _.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.g(_.ho,{data:p},{adButtonViewModel:function(m){return _.g(_.HI,{data:m.data,animationEntityKey:A,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(m){return _.g($zd,{data:m.data,animationEntityKey:A,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return R()===1}})}}))}})),_.g("div",{"aria-hidden":function(){return!k()},
class:_.xj("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return k()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Xc({"transition-duration":function(){return YvZ(d())}})},_.g(_.ho,{data:function(){return d().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(p){return _.g(Dzm,{data:p.data,
onShow:function(){_.yE(_.la("booleanEntity",X(),{key:X(),value:!0}))},
expansive:function(){return R()===1}})}}))),_.g("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.g(_.ho,{data:function(){return d().actions}},{reelActionBarViewModel:function(p){return _.g(_.kOe,{data:p.data,
buttonShapeOverrideables:W})}}),_.g(_.ho,{data:function(){return d().menu}},{buttonViewModel:function(p){return _.g(_.o0,{data:p.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},W(),{type:"tonal"})}})}}),_.g(_.ho,{data:function(){return d().pivotButton}},{pivotButtonViewModel:function(p){return _.g(_.Bdg,{data:p.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"sb");_.eC(wrt,"reels-player-overlay-layout-view-model",{props:{data:_.cA,overlayDensity:_.cA}});var Zo=function(){var M=_.n.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;return M};
_.v(Zo,_.n);_.F=Zo.prototype;
_.F.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.Q("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]]"}}}}}};
_.F.ready=function(){var M=this;qxi(function(){M.isAttached&&dW(M.JSC$13291_storedAdSlotMetadata,M.JSC$13291_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&x1(uD(),M.JSC$13291_storedAdSlotMetadata,M.JSC$13291_storedAdLayoutMetadata)})};
_.F.attached=function(){dW(this.JSC$13291_storedAdSlotMetadata,this.JSC$13291_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ReL(uD(),this.JSC$13291_storedAdSlotMetadata,this.JSC$13291_storedAdLayoutMetadata)};
_.F.detached=function(){dW(this.JSC$13291_storedAdSlotMetadata,this.JSC$13291_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&x1(uD(),this.JSC$13291_storedAdSlotMetadata,this.JSC$13291_storedAdLayoutMetadata)};
_.F.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.F.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13291_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13291_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13291_storedAdLayoutMetadata!==void 0&&this.JSC$13291_storedAdSlotMetadata!==void 0&&x1(uD(),this.JSC$13291_storedAdSlotMetadata,this.JSC$13291_storedAdLayoutMetadata),ReL(uD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13291_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13291_storedAdSlotMetadata=this.adSlotMetadata)};
_.Hm.Object.defineProperties(Zo.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
Zo.prototype.onAdMetadataChanged=Zo.prototype.onAdMetadataChanged;Zo.prototype.onTypographyBumpChanged=Zo.prototype.onTypographyBumpChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zo.prototype,"rendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"noBottomMargin",void 0);_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"overlayDensity",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Zo.prototype,"typographyBump",void 0);_.G([_.z("data.adLayoutMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zo.prototype,"adLayoutMetadata",null);_.G([_.H(),_.a("design:type",Object)],Zo.prototype,"adSlotMetadata",void 0);
_.G([_.Z3("ytd-video-display-full-buttoned-and-button-group-renderer"),_.a("design:type",HTMLElement)],Zo.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.G([_.xB("typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zo.prototype,"onTypographyBumpChanged",null);_.G([_.xB("adLayoutMetadata","adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Zo.prototype,"onAdMetadataChanged",null);
Zo=_.G([_.f({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Zo);
_.L(Zo,"ytd-in-feed-ad-layout-renderer",function(){if(VAt!==void 0)return VAt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return VAt=M},
{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var prJ;var mzo;var Et=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return M};
_.v(Et,_.n);_.F=Et.prototype;_.F.computeHasLiveDescription=function(M){return!(M==null||!M.liveDescription)};
_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.F.onYtToggleButton=function(M){var d,N=(d=this.data)==null?void 0:d.videoReminderEntityKey;N&&this.ytdReduxBehavior.dispatch(_.la("upcomingEventReminderStateEntity",N,{key:N,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.F.attached=function(){this.updateChannelBanner()};
_.F.dataChanged=function(){this.updateChannelBanner()};
_.F.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.q((M=this.data)==null?void 0:M.cta,_.yP)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.F.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var M=_.Hz(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);M&&(M.startsWith("//")&&(M="https:"+M),this.hostElement.classList.add("channel-banner"),_.UO(this.hostElement,{"--ytvmh-channel-banner":"url("+M+")"}))}else _.Q("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.F.onPlayerReady=function(){this.onIronResize()};
_.F.maybeFlushDebouncer=function(){_.Q("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(M){var d;M=(d=M.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0];Gjv(M==null?void 0:M.polymerController)})};
_.F.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var M=_.K(this.hostElement).querySelector("#live-description"),d;M&&((d=this.data)==null?0:d.shortLiveDescription)&&M.clientWidth<M.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Et.prototype.onIronResize=Et.prototype.onIronResize;Et.prototype.videoReminderStateChanged=Et.prototype.videoReminderStateChanged;Et.prototype.dataChanged=Et.prototype.dataChanged;Et.prototype.onYtToggleButton=Et.prototype.onYtToggleButton;_.G([_.S(_.sj),_.a("design:type",Object)],Et.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Et.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Et.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Et.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:Gwr}),_.a("design:type",Object)],Et.prototype,"videoReminderState",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("web_modern_buttons")}),_.a("design:type",Boolean)],Et.prototype,"rounded",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.a("design:type",Boolean)],Et.prototype,"hasLiveDescription",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.a("design:type",Boolean)],Et.prototype,"resizableAdBannerSafariFix",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("align_three_dot_menu_with_title_description")}),_.a("design:type",Boolean)],Et.prototype,"menuFix",void 0);_.G([_.EO("yt-formatted-string"),_.a("design:type",Array)],Et.prototype,"formattedStrings",void 0);_.G([_.Z3("#cta-button"),_.a("design:type",HTMLElement)],Et.prototype,"ctaButton",void 0);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Et.prototype,"onYtToggleButton",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Et.prototype,"dataChanged",null);_.G([_.xB("videoReminderState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Et.prototype,"videoReminderStateChanged",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Et.prototype,"onIronResize",null);
Et=_.G([_.f({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Et);
_.L(Et,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(mzo!==void 0)return mzo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return mzo=M},{mode:1});var heI;var Md=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.isLocked=!1;return M};
_.v(Md,_.n);_.F=Md.prototype;_.F.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.F.onExpandedChanged=function(){this.expanded&&_.Eu(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.F.onMouseOver=function(){this.maybeExpand()};
_.F.onTap=function(){this.maybeExpand()};
_.F.onExpandableTileExpanding=function(M){M!==this&&(this.expanded=!1)};
_.F.onExpandableTileLockAndCollapse=function(M){this.isLocked=!0;M!==this&&(this.expanded=!1)};
_.F.onExpandableTileUnlock=function(){this.isLocked=!1};
Md.prototype.onTap=Md.prototype.onTap;Md.prototype.onMouseOver=Md.prototype.onMouseOver;Md.prototype.onExpandedChanged=Md.prototype.onExpandedChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Md.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Md.prototype,"expanded",void 0);_.G([_.NS("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Md.prototype,"onExpandedChanged",null);_.G([_.C3("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Md.prototype,"onMouseOver",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Md.prototype,"onTap",null);
Md=_.G([_.f({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Md);
_.L(Md,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(heI!==void 0)return heI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return heI=M},{mode:1});var Qid;var dr=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={style:"overlay"};M.useYtdPlayer=_.Q("use_ytd_player_for_desktop_masthead");M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.playbackFinished=!1;M.JSC$13303_playerManager=null;M.JSC$13303_mastheadCounter=new RyC;return M};
_.v(dr,_.n);_.F=dr.prototype;_.F.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"}}}};
_.F.created=function(){this.JSC$13303_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13303_playerManager=new lW)};
_.F.ready=function(){var M=this;this.JSC$13303_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var d=_.K(this.hostElement).querySelector("#player");this.useYtdPlayer?d.style.display="none":(this.ytdPlayer.style.display="none",mdV(this.JSC$13303_playerManager,d,function(){M.onPlaybackEnded()}),_.K(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var N;
((N=M.data)==null?0:N.navigationEndpoint)&&_.YP(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})}))};
_.F.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13303_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.F.attached=function(){var M=this;_.vu(function(){M.maybePlayVideo()})};
_.F.maybePlayVideo=function(){var M=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13303_playerManager.playVideo(),this.getPlayerPromise().then(function(){M.JSC$13303_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.F.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13303_playerManager.stopVideo()};
_.F.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var M,d={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((M=this.data.playbackStartMs)!=null?M:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else QlV(this.JSC$13303_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(hzz(this.JSC$13303_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.F.getPlayerPromise=function(){return this.JSC$13303_playerManager.getPlayerPromise()};
_.F.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$13303_playerManager.mute():this.JSC$13303_playerManager.unMute()};
_.F.onYtNavigate=function(M){var d=skS(M.detail.endpoint),N=P$N(this.data.clickthroughReportingData);d&&N&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=N:_.tX(d,N,30))};
_.F.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.F.onExpandedChanged=function(){this.expanded?(_.Eu(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.F.onMouseOver=function(){this.maybeExpand()};
_.F.onTap=function(){this.maybeExpand()};
_.F.onExpandableTileExpanding=function(M){M!==this&&(this.stopVideo(),this.expanded=!1)};
_.F.onExpandableTileLockAndCollapse=function(M){M!==this&&(this.isLocked=!0,this.expanded=!1)};
_.F.onExpandableTileUnlock=function(){this.isLocked=!1};
_.F.lockAndCollapseExpandableTiles=function(){_.ZI(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.F.unlockExpandableTiles=function(){_.ZI(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.F.setupYtdPlayer=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.ytdPlayer.getPlayerPromise(),2);d=N.yieldResult;d.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
d.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
_.Vy(N)})};
_.F.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var d=M.getCurrentTime(),N,R,X=d+((R=(N=this.data)==null?void 0:N.playbackDurationMs)!=null?R:0)/1E3;M.addCueRange("playback",d,X);this.JSC$13303_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.F.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.F.toggleMute=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.ytdPlayer.getPlayerPromise(),2);N=R.yieldResult;M?N.mute():N.unMute();_.Vy(R)})};
dr.prototype.onTap=dr.prototype.onTap;dr.prototype.onMouseOver=dr.prototype.onMouseOver;dr.prototype.onExpandedChanged=dr.prototype.onExpandedChanged;dr.prototype.onYtNavigate=dr.prototype.onYtNavigate;dr.prototype.onYtToggleButton=dr.prototype.onYtToggleButton;dr.prototype.dataChanged=dr.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],dr.prototype,"expanded",void 0);_.G([_.H(),_.a("design:type",Object)],dr.prototype,"buttonOverrides",void 0);
_.G([_.H(),_.a("design:type",Object)],dr.prototype,"useYtdPlayer",void 0);_.G([_.Z3("#ytd-player"),_.a("design:type",Object)],dr.prototype,"ytdPlayer",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"dataChanged",null);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dr.prototype,"onYtToggleButton",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dr.prototype,"onYtNavigate",null);_.G([_.NS("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"onExpandedChanged",null);_.G([_.C3("mouseover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"onMouseOver",null);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dr.prototype,"onTap",null);dr=_.G([_.f({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],dr);
_.L(dr,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Qid!==void 0)return Qid;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Qid=M},{mode:1});var q2I;var Nd=function(){return _.n.apply(this,arguments)||this};
_.v(Nd,_.n);Nd.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Nd.prototype.onShow=function(){var M=_.K(this.hostElement).querySelector("#live-description"),d;M&&((d=this.data)==null?0:d.shortLiveDescription)&&M.clientWidth<M.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Nd.prototype.onYtToggleButton=function(M){var d,N=(d=this.data)==null?void 0:d.videoReminderEntityKey;N&&this.ytdReduxBehavior.dispatch(_.la("upcomingEventReminderStateEntity",N,{key:N,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Nd.prototype.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.q((M=this.data)==null?void 0:M.cta,_.yP)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Nd.prototype.videoReminderStateChanged=Nd.prototype.videoReminderStateChanged;Nd.prototype.onYtToggleButton=Nd.prototype.onYtToggleButton;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Nd.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Nd.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:Gwr}),_.a("design:type",Object)],Nd.prototype,"videoReminderState",void 0);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Nd.prototype,"onYtToggleButton",null);_.G([_.xB("videoReminderState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nd.prototype,"videoReminderStateChanged",null);
Nd=_.G([_.f({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Nd);
_.L(Nd,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(q2I!==void 0)return q2I;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return q2I=M},{mode:_.G3("kevlar_poly_si_batch_j065")?1:2});var I_V;var Rl=function(){var M=_.n.apply(this,arguments)||this;M.useYtdPlayer=_.Q("use_ytd_player_for_desktop_masthead");M.buttonOverrides={style:"overlay"};M.JSC$13311_playerManager=null;M.JSC$13311_mastheadCounter=new RyC;M.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return M};
_.v(Rl,_.n);_.F=Rl.prototype;_.F.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"}}}};
_.F.created=function(){this.JSC$13311_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13311_playerManager=new lW)};
_.F.ready=function(){var M=this;this.JSC$13311_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var d;(d=this.embeddedPlayer)==null||d.remove()}else{var N;(N=this.ytdPlayer)==null||N.remove();mdV(this.JSC$13311_playerManager,this.embeddedPlayer,function(){M.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){M.data&&M.data.navigationEndpoint&&_.YP(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})})}};
_.F.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13311_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.F.dataChanged=function(){var M=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var d=!this.data.disableAutoPlayback,N,R={autoplay:d,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((N=this.data.playbackStartMs)!=null?N:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(d?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else QlV(this.JSC$13311_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(hzz(this.JSC$13311_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13311_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ZI(M.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");M.JSC$13311_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.F.getPlayerPromise=function(){return this.JSC$13311_playerManager.getPlayerPromise()};
_.F.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$13311_playerManager.mute():this.JSC$13311_playerManager.unMute()};
_.F.onYtNavigate=function(M){var d=skS(M.detail.endpoint),N=P$N(this.data.clickthroughReportingData);d&&N&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=N:_.tX(d,N,30))};
_.F.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13311_playerManager.stopVideo()};
_.F.setupYtdPlayer=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.ytdPlayer.getPlayerPromise(),2);d=N.yieldResult;d.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
d.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
_.Vy(N)})};
_.F.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var d=M.getCurrentTime(),N,R,X=d+((R=(N=this.data)==null?void 0:N.playbackDurationMs)!=null?R:0)/1E3;M.addCueRange("playback",d,X);_.ZI(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13311_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.F.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.F.toggleMute=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.ytdPlayer.getPlayerPromise(),2);N=R.yieldResult;M?N.mute():N.unMute();_.Vy(R)})};
_.Hm.Object.defineProperties(Rl.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M,d;if(!((M=this.data)==null?0:(d=M.accessibilityData)==null?0:d.label))return"Ad primary link";var N,R;return _.le("AD_TITLE",{title:(N=this.data)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label})}}});
Rl.prototype.onYtMastheadHidden=Rl.prototype.onYtMastheadHidden;Rl.prototype.onYtNavigate=Rl.prototype.onYtNavigate;Rl.prototype.onYtToggleButton=Rl.prototype.onYtToggleButton;Rl.prototype.dataChanged=Rl.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Rl.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rl.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Rl.prototype,"useYtdPlayer",void 0);_.G([_.Z3("ytd-toggle-button-renderer"),_.a("design:type",Object)],Rl.prototype,"muteButton",void 0);_.G([_.H(),_.a("design:type",Object)],Rl.prototype,"buttonOverrides",void 0);
_.G([_.z("data.accessibilityData.label"),_.a("design:type",String),_.a("design:paramtypes",[])],Rl.prototype,"titleAriaLabel",null);_.G([_.Z3("#replay-button"),_.a("design:type",Object)],Rl.prototype,"replayButton",void 0);_.G([_.Z3("#player-container"),_.a("design:type",Object)],Rl.prototype,"playerContainer",void 0);_.G([_.Z3("#player"),_.a("design:type",Object)],Rl.prototype,"embeddedPlayer",void 0);_.G([_.Z3("#ytd-player"),_.a("design:type",Object)],Rl.prototype,"ytdPlayer",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rl.prototype,"dataChanged",null);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Rl.prototype,"onYtToggleButton",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Rl.prototype,"onYtNavigate",null);
_.G([_.C3("yt-masthead-hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Rl.prototype,"onYtMastheadHidden",null);Rl=_.G([_.f({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Rl);
_.L(Rl,"ytd-video-masthead-ad-primary-video-renderer",function(){if(I_V!==void 0)return I_V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return I_V=M},{mode:2});var v6t;var XE=function(){var M=_.n.apply(this,arguments)||this;M.collapsed=!1;M.impressionResolver=_.KO();M.JSC$13315_activeViewMeasurementDataResolver=_.KO();M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.v(XE,_.n);_.F=XE.prototype;_.F.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"}}}};
_.F.ready=function(){var M=this;_.K(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){M.expandAd()});
this.hostElement.addEventListener("yt-action",function(d){if(d.detail.actionName==="yt-service-request"){var N=d.detail.args[1];N.videoMastheadAdMuteCommand&&(M.collapseAd(N.videoMastheadAdMuteCommand.encryptedMastheadId),d.stopPropagation())}})};
_.F.attached=function(){var M=this;_.vu(function(){M.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(d){if(!M.collapsed){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,cf(N.baseUrl,N.attributionSrcMode);M.data.impressionCommand=void 0}});
this.JSC$13315_activeViewMeasurementDataResolver.promise.then(function(d){M.ytdActiveViewBehavior.enableActiveViewMeasurement(d,15)});
_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.dataChanged=function(){var M;((M=this.data.impressionCommand)==null?0:M.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var d;((d=this.data)==null?0:d.activeView)&&this.JSC$13315_activeViewMeasurementDataResolver.resolve(this.data.activeView);(M=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(M.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.F.computeWidescreen=function(M){var d;return!!(M&&((d=_.q(M,xnz))==null?0:d.isWidescreen))};
_.F.computeExpandable=function(M){return!!(M&&M.length>0)};
_.F.onIronResize=function(){if(this.expandable){var M=_.K(this.hostElement).querySelector("#expandable-tile-container :first-child");M&&!M.expanded&&(M.expanded=!0)}};
_.F.handleMuteAd=function(){this.collapseAd(null)};
_.F.restoreCollapsedState=function(M){this.collapsed=_.kS().get("HIDDEN_MASTHEAD_ID")===M};
_.F.collapseAd=function(M){if(M){var d=_.kS();d.set("HIDDEN_MASTHEAD_ID",M);d.save()}(M=_.K(this.hostElement).querySelector("#video"))&&_.YP(M,"yt-masthead-hidden");this.collapsed=!0};
_.F.expandAd=function(){var M=_.kS();M.set("HIDDEN_MASTHEAD_ID",!1);M.save();location.reload()};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
XE.prototype.onIronResize=XE.prototype.onIronResize;XE.prototype.dataChanged=XE.prototype.dataChanged;_.G([_.S(_.sj),_.a("design:type",Object)],XE.prototype,"ironResizableBehavior",void 0);_.G([_.S(Ik),_.a("design:type",Object)],XE.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.ok),_.a("design:type",Object)],XE.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],XE.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.a("design:type",Boolean)],XE.prototype,"widescreen",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.a("design:type",Boolean)],XE.prototype,"expandable",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],XE.prototype,"collapsed",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XE.prototype,"dataChanged",null);
_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XE.prototype,"onIronResize",null);XE=_.G([_.f({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],XE);
_.L(XE,"ytd-video-masthead-ad-v3-renderer",function(){if(v6t!==void 0)return v6t;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return v6t=M},{mode:2});var FE=function(){return _.n.apply(this,arguments)||this};
_.v(FE,_.n);_.F=FE.prototype;_.F.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.F.ready=function(){var M=this;qxi(function(){M.isAttached&&dW(M.JSC$13320_storedAdSlotMetadata,M.JSC$13320_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&x1(uD(),M.JSC$13320_storedAdSlotMetadata,M.JSC$13320_storedAdLayoutMetadata)})};
_.F.attached=function(){dW(this.JSC$13320_storedAdSlotMetadata,this.JSC$13320_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ReL(uD(),this.JSC$13320_storedAdSlotMetadata,this.JSC$13320_storedAdLayoutMetadata)};
_.F.detached=function(){dW(this.JSC$13320_storedAdSlotMetadata,this.JSC$13320_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&x1(uD(),this.JSC$13320_storedAdSlotMetadata,this.JSC$13320_storedAdLayoutMetadata)};
_.F.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13320_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13320_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13320_storedAdLayoutMetadata!==void 0&&this.JSC$13320_storedAdSlotMetadata!==void 0&&x1(uD(),this.JSC$13320_storedAdSlotMetadata,this.JSC$13320_storedAdLayoutMetadata),ReL(uD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13320_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13320_storedAdSlotMetadata=this.adSlotMetadata)};
_.Hm.Object.defineProperties(FE.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
FE.prototype.onAdMetadataChanged=FE.prototype.onAdMetadataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],FE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],FE.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FE.prototype,"data",void 0);_.G([_.z("data.adLayoutMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],FE.prototype,"adLayoutMetadata",null);
_.G([_.H(),_.a("design:type",Object)],FE.prototype,"adSlotMetadata",void 0);_.G([_.xB("adLayoutMetadata","adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],FE.prototype,"onAdMetadataChanged",null);FE=_.G([_.f({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],FE);
_.L(FE,"ytd-page-top-ad-layout-renderer",function(){if(prJ!==void 0)return prJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return prJ=
M},{mode:_.G3("kevlar_poly_si_batch_j070")?1:2});var Ovz;var Ae=function(){var M=_.n.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;M.typographyBump=!1;return M};
_.v(Ae,_.n);_.F=Ae.prototype;
_.F.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.F.ready=function(){var M=this;qxi(function(){M.isAttached&&M.adSlotMetadata&&Ndt(uD(),M.adSlotMetadata)})};
_.F.attached=function(){if(this.adSlotMetadata){var M;if(this.adSlotMetadata===((M=this.data)==null?void 0:M.adSlotMetadata))dzC(uD(),this.adSlotMetadata);else{var d;_.vh(Error("Mh`"+this.adSlotMetadata+"`"+((d=this.data)==null?void 0:d.adSlotMetadata)))}}};
_.F.detached=function(){this.adSlotMetadata&&Ndt(uD(),this.adSlotMetadata)};
_.F.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.F.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Ndt(uD(),this.adSlotMetadata),dzC(uD(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Hm.Object.defineProperties(Ae.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.fulfillmentContent)==null?void 0:d.fulfilledLayout,_.Z5I),R;return(M=(R=_.q(N==null?void 0:N.renderingContent,Y1J))==null?void 0:R.layout)?M.toLowerCase().replace(/_/g,"-"):""}}});
Ae.prototype.onAdSlotMetadataChanged=Ae.prototype.onAdSlotMetadataChanged;Ae.prototype.onTypographyBumpChanged=Ae.prototype.onTypographyBumpChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ae.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ae.prototype,"rendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"noBottomMargin",void 0);_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"overlayDensity",void 0);_.G([_.H(),_.a("design:type",Object)],Ae.prototype,"typographyBump",void 0);_.G([_.Z3("ytd-in-feed-ad-layout-renderer"),_.a("design:type",HTMLElement)],Ae.prototype,"inFeedAdLayoutRenderer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Ae.prototype,"layout",null);_.G([_.xB("typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ae.prototype,"onTypographyBumpChanged",null);_.G([_.xB("data.adSlotMetadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ae.prototype,"onAdSlotMetadataChanged",null);
Ae=_.G([_.f({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Ae);
_.L(Ae,"ytd-ad-slot-renderer",function(){if(Ovz!==void 0)return Ovz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Ovz=M},{mode:_.G3("kevlar_poly_si_batch_j077")?
1:2});var jiJ;var V3=function(){return _.n.apply(this,arguments)||this};
_.v(V3,_.n);_.F=V3.prototype;_.F.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"}}}};
_.F.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&Qt6(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.F.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var M=_.V(this.data.impressionUrls),d=M.next();!d.done;d=M.next())d=d.value,jj2(d,PxA(d));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.F.attached=function(){var M=this;_.Q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&M.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.F.detached=function(){_.Q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Hm.Object.defineProperties(V3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
V3.prototype.dataChanged=V3.prototype.dataChanged;V3.prototype.onTap=V3.prototype.onTap;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.G([_.S(Ik),_.a("design:type",Object)],V3.prototype,"ytdActiveViewBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],V3.prototype,"ytdReduxBehavior",void 0);
_.G([_.H({selector:_.KX}),_.a("design:type",Object)],V3.prototype,"isGridViewEnabled",void 0);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],V3.prototype,"watchFeedBigThumbs",null);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],V3.prototype,"thumbnailWidth",null);_.G([_.H(),_.a("design:type",Object)],V3.prototype,"data",void 0);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V3.prototype,"onTap",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V3.prototype,"dataChanged",null);V3=_.G([_.f({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],V3);
_.L(V3,"ytd-compact-promoted-video-renderer",function(){if(jiJ!==void 0)return jiJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" 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-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" 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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jiJ=M},{mode:1});var si3;_.pO("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var lR=function(){return _.n.apply(this,arguments)||this};
_.v(lR,_.n);lR.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lR.prototype,"data",void 0);lR=_.G([_.f({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],lR);
_.L(lR,"ytd-search-pyv-renderer",function(){if(si3!==void 0)return si3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return si3=M},{mode:1});var Pim;_.pO("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var $7=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.JSC$13336_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.v($7,_.n);_.F=$7.prototype;
_.F.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}}};
_.F.onStampFinished=function(){this.JSC$13336_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.K(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");M?M.openDialog():this.JSC$13336_handleOpenPostCommentDialogActionAfterStamp=!0};
_.F.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.F.computeHideBorder=function(){return this.isInEngagementPanel};
_.F.computeIsCompact=function(){return this.isInEngagementPanel};
_.F.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.F.computeUsesFullLockup=function(){var M,d=(M=this.data)==null?void 0:M.post,N;M=(N=_.q(d,l0L))==null?void 0:N.surface;var R;N=(R=_.q(d,Blm))==null?void 0:R.originalPost;var X;if(R=M||((X=_.q(N,l0L))==null?void 0:X.surface))return!this.computeUsesCompactLockup(R)&&this.useUpdatedRepostUi;var A;return((A=_.q(d,Blm))==null?void 0:A.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Hm.Object.defineProperties($7.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var M,d;return((d=_.q((M=this.data)==null?void 0:M.post,l0L))==null?void 0:d.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useUpdatedRepostUi}}});
$7.prototype.onYtCommentModerationPanelEmpty=$7.prototype.onYtCommentModerationPanelEmpty;$7.prototype.onStampFinished=$7.prototype.onStampFinished;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],$7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$7.prototype,"roundedContainer",void 0);_.G([_.H({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$7.prototype,"hideBorder",void 0);_.G([_.H({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$7.prototype,"isCompact",void 0);
_.G([_.H({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.a("design:type",Boolean)],$7.prototype,"usesFullLockup",void 0);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$7.prototype,"onStampFinished",null);
_.G([_.C3("ytd-comment-moderation-panel-empty"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$7.prototype,"onYtCommentModerationPanelEmpty",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$7.prototype,"isInEngagementPanel",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$7.prototype,"useUpdatedRepostUi",null);
$7=_.G([_.f({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],$7);
_.L($7,"ytd-backstage-post-thread-renderer",function(){if(Pim!==void 0)return Pim;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Pim=M},{mode:1});var o6V;var BS=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(BS,_.n);BS.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
BS.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var M=this.data.thumbnail.thumbnails;this.isDarkTheme&&(M=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(M=_.Hz(M,24,void 0,"height"))?M:void 0}};
BS.prototype.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
BS.prototype.computeHasText=function(){var M;return!((M=this.data)==null||!M.text)};
_.Hm.Object.defineProperties(BS.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.gH(this.bannerImageUrl))+'");'}}});
BS.prototype.computeHasText=BS.prototype.computeHasText;BS.prototype.computeBannerImageUrl=BS.prototype.computeBannerImageUrl;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],BS.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],BS.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],BS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],BS.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],BS.prototype,"bannerImageUrl",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.a("design:type",Boolean)],BS.prototype,"hasText",void 0);_.G([_.xB("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BS.prototype,"computeBannerImageUrl",null);
_.G([_.xB("data.text"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BS.prototype,"computeHasText",null);_.G([_.z("bannerImageUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],BS.prototype,"bannerStyle",null);BS=_.G([_.f({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],BS);
_.L(BS,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(o6V!==void 0)return o6V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return o6V=M},{mode:1});var rnV;var k7=function(){return _.n.apply(this,arguments)||this};
_.v(k7,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],k7.prototype,"data",void 0);k7=_.G([_.f({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],k7);
_.L(k7,"ytd-backstage-zero-state-renderer",function(){if(rnV!==void 0)return rnV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return rnV=M},{mode:1});var KUI;var TZ=function(){return _.n.apply(this,arguments)||this};
_.v(TZ,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TZ.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],TZ.prototype,"icon",void 0);TZ=_.G([_.f({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],TZ);
_.L(TZ,"ytd-post-filter-zero-state-renderer",function(){if(KUI!==void 0)return KUI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return KUI=M},{mode:1});var yn3;var Jnt={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},DQ=function(){return _.n.apply(this,arguments)||this};
_.v(DQ,_.n);DQ.prototype.configureRendererStamper=function(){return Jnt};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],DQ.prototype,"rendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DQ.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],DQ.prototype,"icon",void 0);DQ=_.G([_.f({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],DQ);
_.L(DQ,"ytd-post-scheduling-zero-state-renderer",function(){if(yn3!==void 0)return yn3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return yn3=M},{mode:1});var cnd;var gr=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return M};
_.v(gr,_.n);gr.prototype.onTabsActivate=function(M){this.data&&this.data.tabs&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[M.detail.selected].navigationEndpoint})};
gr.prototype.shouldShowTotalCount=function(M){return M&&M.totalCount!==void 0};
gr.prototype.handleUpdatePostsTotalCountAction=function(M){var d=this.get(["data.tabs",1,"totalCount"]),N=this.get("updatePostsTotalCountAction.updateType",M);M=this.get("updatePostsTotalCountAction.number",M);d!==void 0&&N!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&M&&(N==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(d)+M):N==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(d)-M))};
_.Hm.Object.defineProperties(gr.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var M=0,d=this.data.tabs.length;M<d;M++)if(this.data.tabs[M].selected)return M;return 0}}});
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],gr.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gr.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gr.prototype,"data",void 0);_.G([_.z("data.tabs"),_.a("design:type",Number),_.a("design:paramtypes",[])],gr.prototype,"selected",null);gr=_.G([_.f({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],gr);
_.L(gr,"ytd-post-stream-filter-renderer",function(){if(cnd!==void 0)return cnd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return cnd=M},{mode:1});var S2o;var WS=function(){return _.n.apply(this,arguments)||this};
_.v(WS,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WS.prototype,"kevlarBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],WS.prototype,"data",void 0);WS=_.G([_.f({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],WS);
_.L(WS,"ytd-channel-age-gate-renderer",function(){if(S2o!==void 0)return S2o;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return S2o=M},{mode:1});var zeL;_.pO("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var wr=function(){var M=_.n.apply(this,arguments)||this;M.data=null;return M};
_.v(wr,_.n);wr.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Hm.Object.defineProperties(wr.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:(d=M.title)==null?0:(N=d.runs)==null?0:N.length)?147:160}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],wr.prototype,"imageSizePx",null);wr=_.G([_.f({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],wr);
_.L(wr,"ytd-channel-owner-empty-state-renderer",function(){if(zeL!==void 0)return zeL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return zeL=M},{mode:1});var bvz;var eeI;var pz=function(){var M=_.n.apply(this,arguments)||this;M.boundSubmitSearch=function(){M.submitSearch()};
M.boundClearSearch=function(){M.clearSearch()};
return M};
_.v(pz,_.n);_.F=pz.prototype;_.F.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]]"}}}}}};
_.F.toggleClearButton=function(){this.hideClearButton=AZj||!this.input.value};
_.F.submitOnEnterKeyUp=function(M){M.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.F.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.F.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.F.submit=function(){_.YP(this.hostElement,"search-query-changed",this.input.value)};
pz.prototype.toggleClearButton=pz.prototype.toggleClearButton;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],pz.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pz.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],pz.prototype,"hideClearButton",void 0);_.G([_.H(),_.a("design:type",Object)],pz.prototype,"boundSubmitSearch",void 0);_.G([_.H(),_.a("design:type",Object)],pz.prototype,"boundClearSearch",void 0);_.G([_.Z3("#input"),_.a("design:type",Object)],pz.prototype,"input",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pz.prototype,"toggleClearButton",null);
pz=_.G([_.f({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],pz);
_.L(pz,"ytd-channel-switcher-search-box-renderer",function(){if(eeI!==void 0)return eeI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return eeI=M},{mode:1});var Hvm;var mP=function(){var M=_.n.apply(this,arguments)||this;M.boundSubmit=function(){M.submit()};
return M};
_.v(mP,_.n);_.F=mP.prototype;_.F.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"}}}}};
_.F.ready=function(){var M=this;this.form.addEventListener("submit",function(d){return M.onSubmit(d)})};
_.F.onSubmit=function(M){M.preventDefault();return!1};
_.F.toggleClearButton=function(){this.hideClearButton=AZj||!this.input.value};
_.F.submitOnEnterKeyUp=function(M){M.keyCode===13&&this.submit()};
_.F.submit=function(){var M=this.data.endpoint,d=(0,_.wF.unsafeClone)(M);_.q(d,_.F8)?_.q(d,_.F8).query=this.input.value:_.q(d,_.A2)&&(_.q(d,_.A2).query=this.input.value);var N=_.q(d.commandMetadata,_.an);(N==null?0:N.url)?(N.url=_.oR(N.url,"query",this.input.value),_.YP(this.hostElement,"yt-navigate",{endpoint:d})):_.q(d,tSd)?(_.q(d,tSd).channelSwitcherQuery=this.input.value,_.h().resolve(_.xV).resolveCommand(d,{form:{element:this.hostElement}})):(M=Error("Nh`"+JSON.stringify(M)),_.qZ(M))};
_.F.getUrl=function(M){return this.get("commandMetadata.webCommandMetadata.url",M)};
mP.prototype.toggleClearButton=mP.prototype.toggleClearButton;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],mP.prototype,"hideClearButton",void 0);
_.G([_.H(),_.a("design:type",Object)],mP.prototype,"boundSubmit",void 0);_.G([_.Z3("#form"),_.a("design:type",HTMLFormElement)],mP.prototype,"form",void 0);_.G([_.Z3("#input"),_.a("design:type",Object)],mP.prototype,"input",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mP.prototype,"toggleClearButton",null);mP=_.G([_.f({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],mP);
_.L(mP,"ytd-search-box-renderer",function(){if(Hvm!==void 0)return Hvm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Hvm=M},{mode:2});var he=function(){var M=_.n.apply(this,arguments)||this;M.showSearchBox=!0;return M};
_.v(he,_.n);he.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],he.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],he.prototype,"showSearchBox",void 0);he=_.G([_.f({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],he);
_.L(he,"ytd-channel-switcher-header-renderer",function(){if(bvz!==void 0)return bvz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return bvz=M},{mode:1});var n6L;var ivm;var Q3=function(){var M=_.n.apply(this,arguments)||this;M.isDisplayed=!0;return M};
_.v(Q3,_.n);_.F=Q3.prototype;_.F.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.isDisplayed=!0};
_.F.computeType=function(M){return M||"UNKNOWN"};
_.F.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isDisplayed=!1};
_.F.onClose=function(){this.isDisplayed=!1};
Q3.prototype.onYtServiceRequestCompleted=Q3.prototype.onYtServiceRequestCompleted;Q3.prototype.dataChanged=Q3.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q3.prototype,"data",void 0);
_.G([_.H({computed:"computeType(data.type)",reflectToAttribute:!0}),_.a("design:type",String)],Q3.prototype,"type",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q3.prototype,"isDisplayed",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q3.prototype,"dataChanged",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Q3.prototype,"onYtServiceRequestCompleted",null);Q3=_.G([_.f({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Q3);
_.L(Q3,"ytd-alert-with-button-renderer",function(){if(ivm!==void 0)return ivm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ivm=M},{mode:1});var qd=function(){var M=_.n.apply(this,arguments)||this;M.noResult=!1;M.enableAlertBanner=!1;M.dismissedAlertBanner=!1;M.hideCreateChannelButton=!1;M.boundDismissAlertBanner=function(){M.dismissAlertBanner()};
M.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return M};
_.v(qd,_.n);_.F=qd.prototype;_.F.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.F.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.F.updateChannelSwitcherAction=function(M){var d;M=(d=_.q(M,O2g))==null?void 0:d.page;_.q(M,v9d)!==void 0&&(this.data=_.q(M,v9d))};
_.F.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]]"}}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.F.searchQueryChanged=function(M,d){if(this.data&&this.data.contents&&this.data.contents.length){M=[];var N=[];this.hideCreateChannelButton=this.noResult=!1;for(var R=document.querySelectorAll("ytd-account-item-renderer"),X=_.V(R),A=X.next();!A.done;A=X.next())A=A.value,N.push(A),A.style.display="block";this.resetRightBorder(N);if(d){this.hideCreateChannelButton=!0;for(N=1;N<this.data.contents.length;N++)if(A=this.data.contents[N],_.q(A,i5L)){var l=void 0,k=void 0;X=(l=_.q(A,i5L))==null?void 0:(k=
l.accountName)==null?void 0:k.simpleText;k=l=void 0;A=(l=_.q(A,i5L))==null?void 0:(k=l.channelHandle)==null?void 0:k.simpleText;(l=R[N-1])&&X&&_.Dv(X,d)?M.push(l):_.Q("enable_handle_search_on_channel_switcher")&&l&&A&&_.Dv(A.toString(),d.toString())?M.push(l):l.style.display="none"}M.length===0&&(this.noResult=!0);this.resetRightBorder(M)}}};
_.F.resetRightBorder=function(M){for(var d=0;d<M.length;d++)M[d].style.borderRight=!this.hideCreateChannelButton&&(d+2)%3===0||this.hideCreateChannelButton&&(d+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.F.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.F.setShowSearchBox=function(M){if(M&&M.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var d=0;d<M.contents.length;d++)_.q(M.contents[d],_.R1)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.F.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Hm.Object.defineProperties(qd.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.contents)}}});
qd.prototype.onContinuationItemsUpdated=qd.prototype.onContinuationItemsUpdated;qd.prototype.searchQueryChanged=qd.prototype.searchQueryChanged;qd.prototype.onDataChanged=qd.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],qd.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],qd.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"data",void 0);_.G([_.Z3("ytd-channel-switcher-header-renderer"),_.a("design:type",Object)],qd.prototype,"channelSwitcherHeaderRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"noResult",void 0);
_.G([_.H(),_.a("design:type",Object)],qd.prototype,"enableAlertBanner",void 0);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"dismissedAlertBanner",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qd.prototype,"hideCreateChannelButton",void 0);_.G([_.z("data.contents"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qd.prototype,"isLoading",null);_.G([_.H(),_.a("design:type",Object)],qd.prototype,"boundDismissAlertBanner",void 0);
_.G([_.H({computed:"computeButtonOverride()"}),_.a("design:type",Object)],qd.prototype,"buttonOverride",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qd.prototype,"onDataChanged",null);_.G([_.C3("search-query-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],qd.prototype,"searchQueryChanged",null);
_.G([_.C3("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],qd.prototype,"onContinuationItemsUpdated",null);qd=_.G([_.f({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],qd);
_.L(qd,"ytd-channel-switcher-page-renderer",function(){if(n6L!==void 0)return n6L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return n6L=M},{mode:1});var f_L;var LU3;var Il=function(){var M=_.n.apply(this,arguments)||this;M.images=[];M.selectedImageIndex=0;return M};
_.v(Il,_.n);_.F=Il.prototype;
_.F.ready=function(){_.lI(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.lI(this.JSC$13381_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.lI(this.JSC$13381_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.lI(this.JSC$13381_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.F.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.F.updateImageThumbnails=function(M){M=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:M.event_.detail});this.images.splice(this.selectedImageIndex,1,M);this.images=[].concat(_.wu(this.images))};
_.F.cancelImageRepositions=function(){this.selectedImageIndex=0;_.YP(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.F.saveImageRepositions=function(){this.selectedImageIndex=0;_.YP(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Hm.Object.defineProperties(Il.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var M=this;return(this.images||[]).map(function(d,N){return{image:d,selected:N===M.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("ytd-backstage-image-preview-renderer"),_.a("design:type",Object)],Il.prototype,"JSC$13381_imagePreviewContainer",void 0);_.G([_.Z3(".thumbnail-images-container"),_.a("design:type",HTMLElement)],Il.prototype,"thumbnailImagesContainer",void 0);_.G([_.H(),_.a("design:type",Array)],Il.prototype,"images",void 0);
_.G([_.H(),_.a("design:type",Object)],Il.prototype,"repositionInstructions",void 0);_.G([_.H(),_.a("design:type",Object)],Il.prototype,"selectedImageIndex",void 0);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],Il.prototype,"thumbnailRendererDatas",null);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Il.prototype,"selectedImageData",null);
Il=_.G([_.f({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Il);
_.L(Il,"ytd-backstage-multi-image-reposition-renderer",function(){if(LU3!==void 0)return LU3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return LU3=M},{mode:1});var vS=function(M,d){_.mk.call(this);this.uploadUrl=M;this.channelId=d;this.imagesUploadData=[]};
_.v(vS,_.mk);vS.prototype.getAllUploadStatuses=function(){var M=this,d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,thd(M),2);d=X.yieldResult;N=d.get("succeed");R=d.get("failed");return X.return(N.concat(R))})};
var a_z=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,thd(M),2);d=R.yieldResult;N=d.get("failed");N.length>0&&GOo(M,N);return R.return(M.getAllUploadStatuses())})},thd=function(M){var d,N,R,X,A,l,k;
return _.B(function(T){if(T.nextAddress==1)return d=new Map,_.D(T,Promise.allSettled(M.imagesUploadData.map(function(W){return W.uploadPromise})),2);
N=T.yieldResult;R=[];X=_.V(N);for(A=X.next();!A.done;A=X.next())l=A.value,l.status==="fulfilled"&&R.push(l.value);k=M.imagesUploadData.map(function(W){return W.image}).filter(function(W){return R.every(function(w){return w.id!==W.id})});
d.set("succeed",R);d.set("failed",k);return T.return(d)})},GOo=function(M,d){d=_.V(d);
for(var N=d.next();!N.done;N=d.next()){var R=M;N=N.value;UzL(R,N.id)>=0&&R.cancel(N.id);var X=new uAg(N),A=_.oho(R.uploadUrl,{"X-YouTube-ChannelId":R.channelId},N.imageBlob);X.transfer=A;X.uploadPromise=Cio(A,N);R.imagesUploadData.push(X);A.run()}};
vS.prototype.cancel=function(M){var d=UzL(this,M);d!==-1&&((d=this.imagesUploadData[d].transfer)&&d.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(N){return N.image.id!==M}))};
var UzL=function(M,d){return M.imagesUploadData.findIndex(function(N){return N.image.id===d})},Cio=function(M,d){return new Promise(function(N,R){M.listen("l",function(){var X=M.getResponseText();
X?(X=JSON.parse(X).encryptedBlobId,d.encryptedBlobId=X,N(d)):R("upload failed")});
M.listen("n",function(){R("upload failed")})})},uAg=function(M){this.image=M};var ZYN=function(M,d,N,R,X){this.id=M;this.imageBlob=d;this.localImageSrc=N;this.naturalWidth=R;this.naturalHeight=X;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 xz3=[".jpeg",".jpg",".png"],OC=function(){var M=_.n.apply(this,arguments)||this;M.showImagesPreview=!1;M.pollOptions=[];M.errorMessage="";M.optionPlaceholderText="";M.optionDefaultText="";M.JSC$13392_imageId=0;M.maxFileSizeMb=0;M.maxAspectRatio=0;M.invalidFileSizeError="";M.invalidAspectRatioError="";M.invalidFileTypeError="";M.imageSelector=new $3(null,"single_file",xz3);return M};
_.v(OC,_.n);_.F=OC.prototype;_.F.ready=function(){_.lI(this.imageSelector,"j",this.onImageSelect,!1,this);_.lI(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.lI(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.F.dataChanged=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.cellTemplate)==null?void 0:d.onEmptyCellTap,IAL);if(N&&N.uploadUrl&&N.channelId){var R;this.maxFileSizeMb=((R=N.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0;var X;this.maxAspectRatio=((X=N.imageValidationInfo)==null?void 0:X.allowedMaxAspectRatio)||0;var A;this.invalidFileSizeError=this.getSimpleString((A=this.data)==null?void 0:A.invalidFileSizeError);var l;this.invalidAspectRatioError=this.getSimpleString((l=this.data)==
null?void 0:l.invalidAspectRatioError);var k;this.invalidFileTypeError=this.getSimpleString((k=this.data)==null?void 0:k.invalidFileTypeError);this.uploadManager=new vS(N.uploadUrl,N.channelId)}};
_.F.onEditorInfoChange=function(){this.optionPlaceholderText=_.HD(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.HD(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.F.observeAddImageError=function(){this.errorMessage!==""&&_.YP(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.F.onPollOptionsChange=function(){for(var M=!1,d=[],N=0;N<this.pollOptions.length;N++){var R=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(N+1);this.pollOptions[N].placeholderText!==R?(M=!0,d.push(Object.assign({},this.pollOptions[N],{placeholderText:R}))):d.push(this.pollOptions[N])}M&&(this.pollOptions=d);this.isValid()?_.YP(this.hostElement,"yt-commentbox-post-enable"):_.YP(this.hostElement,"yt-commentbox-post-disable")};
_.F.createPollOptions=function(M){var d=[],N;M=(N=M==null?void 0:M.minPollOptions)!=null?N:0;for(N=0;N<M;N++)d.push(this.createPollOption());return d};
_.F.onImageSelect=function(M){var d=this,N,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1){if(d.selectedImageIndex===void 0)return T.jumpTo(0);N=M.files[0];d.errorMessage="";R=d.validateImage(N);if(R!=="")return d.errorMessage=R,T.return();X=new n9(d.maxAspectRatio,!1,!0);return _.D(T,X.transform(N),3)}if(T.nextAddress!=4)return A=T.yieldResult,A.transformedData?A.invalidAspectRatio?(d.errorMessage=d.invalidAspectRatioError,T.return()):_.D(T,EEj(d.JSC$13392_imageId,M.files[0],A.transformedData),
4):(d.errorMessage=d.invalidFileTypeError,T.return());l=T.yieldResult;d.JSC$13392_imageId++;GOo(d.uploadManager,[l]);k=Object.assign({},d.pollOptions[d.selectedImageIndex],{image:l});d.pollOptions.splice(d.selectedImageIndex,1,k);d.refreshPollOptions();_.YP(d.hostElement,"yt-backstage-poll-image-select");_.Vy(T)})};
_.F.validateImage=function(M){return M.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.F.refreshPollOptions=function(){this.pollOptions=[].concat(_.wu(this.pollOptions))};
_.F.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.wu(this.pollOptions),[this.createPollOption()]))};
_.F.onRemovePollOption=function(M){var d=this.pollOptions[M.model.index];d&&d.image&&this.uploadManager.cancel(d.image.id);this.pollOptions.splice(M.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.YP(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.F.onTextInput=function(){this.refreshPollOptions()};
_.F.onImageButtonClick=function(M){this.selectedImageIndex=M.model.index;this.imageSelector.click()};
_.F.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.F.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.F.saveImageRepositions=function(M){M=M.event_.detail;for(var d=0,N=[],R=_.V(this.pollOptions),X=R.next();!X.done;X=R.next())X=X.value,X.image!==void 0?(X=Object.assign({},X,{image:M[d]}),N.push(X),d++):N.push(X);this.showImagesPreview=!1;this.pollOptions=[].concat(_.wu(N))};
_.F.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var M=0,d=_.V(this.pollOptions),N=d.next();!N.done;N=d.next())if(N=N.value,N.optionText.trim()!==""||N.image!==void 0){if(!N.image||this.hasCustomOptionText&&N.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;M++}return M>=Number(this.editorInfo.minPollOptions)};
_.F.getAllUploadStatuses=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.uploadManager.getAllUploadStatuses(),2);d=A.yieldResult;N=_.V(d);for(R=N.next();!R.done;R=N.next())if(X=R.value,X.encryptedBlobId===void 0)return A.return(a_z(M.uploadManager));return A.return(d)})};
_.F.getPostCreateOptions=function(){for(var M=[],d=_.V(this.pollOptions),N=d.next();!N.done;N=d.next())N=N.value,N.image!==void 0&&M.push({text:this.hasCustomOptionText?N.optionText:N.placeholderText,image:N.image});return M};
_.F.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.F.createButtonRenderer=function(M,d){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleString(M)}},isDisabled:d}};
_.F.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.F.computeThumbnailRendererData=function(M){return M?{image:M,selected:!1}:void 0};
_.F.getSimpleString=function(M){return _.HD(M)};
_.F.updateOptionTextFromBinding=function(M){if(M.target){var d=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(M.target);if(d>=0){var N;this.pollOptions[d].optionText=(N=M.detail.value)!=null?N:""}}};
_.Hm.Object.defineProperties(OC.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.pollOptions.length<((d=(M=this.editorInfo)==null?void 0:M.maxPollOptions)!=null?d:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(M){return M.image}).map(function(M){return M.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.addOptionButtonText;return d?this.createButtonRenderer(d,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.repositionImagesButtonLabel;return d?this.createButtonRenderer(d,!this.hasImages):void 0}}});
OC.prototype.onPollOptionsChange=OC.prototype.onPollOptionsChange;OC.prototype.observeAddImageError=OC.prototype.observeAddImageError;OC.prototype.onEditorInfoChange=OC.prototype.onEditorInfoChange;OC.prototype.dataChanged=OC.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("ytd-backstage-multi-image-reposition-renderer"),_.a("design:type",Object)],OC.prototype,"imageRepositionContainer",void 0);
_.G([_.H(),_.a("design:type",Object)],OC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],OC.prototype,"editorInfo",void 0);_.G([_.H(),_.a("design:type",vS)],OC.prototype,"uploadManager",void 0);_.G([_.H(),_.a("design:type",Object)],OC.prototype,"showImagesPreview",void 0);_.G([_.H(),_.a("design:type",Array)],OC.prototype,"pollOptions",void 0);_.G([_.H(),_.a("design:type",Object)],OC.prototype,"errorMessage",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"dataChanged",null);_.G([_.NS("editorInfo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"onEditorInfoChange",null);_.G([_.xB("errorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"observeAddImageError",null);
_.G([_.NS("pollOptions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OC.prototype,"onPollOptionsChange",null);_.G([_.z("pollOptions","editorInfo"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"isAllowedToAddOption",null);_.G([_.z("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"hasImages",null);
_.G([_.z("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"imagesToReposition",null);_.G([_.z("pollOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"hasCustomOptionText",null);_.G([_.z("data","isAllowedToAddOption"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"addOptionButton",null);_.G([_.z("data","hasImages"),_.a("design:type",Object),_.a("design:paramtypes",[])],OC.prototype,"repositionImagesButton",null);
OC=_.G([_.f({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],OC);
_.L(OC,"ytd-backstage-image-poll-editor-renderer",function(){if(f_L!==void 0)return f_L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return f_L=M},{mode:2});var Y2t={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 ZvL;var jj=function(){var M=_.n.apply(this,arguments)||this;M.a11yConfig=Y2t;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.showPreviewContainer=!0;M.startPicker=!1;M.repositionOptional=!1;M.editOnlyMode=!1;M.savedImageDisplayOffsetTop=0;M.savedImageDisplayOffsetLeft=0;return M};
_.v(jj,_.n);_.F=jj.prototype;_.F.created=function(){_.b0.requestAvailability()};
_.F.ready=function(){};
_.F.onArrowKeysDown=function(M){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var d=0,N=0,R="";switch(M.detail.keyboardEvent.key){case "ArrowUp":MhN(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:d=this.imageHeight*.05*-1;break;case "ArrowDown":MhN(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
d=this.imageHeight*.05;break;case "ArrowLeft":MhN(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:N=this.imageWidth*.05*-1;break;case "ArrowRight":MhN(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:N=this.imageWidth*.05}R&&_.le(R)&&_.YP(this.hostElement,"iron-announce",{text:_.le(R)});if(N||d)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+d)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.le(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+N)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.le(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.YP(this.hostElement,"iron-announce",{text:M})}};
_.F.getPreviewPosition=function(M,d,N,R){return Math.round(100*(M+d*.5-N)/R)};
_.F.calculateDisplayPosition=function(){var M=this.imageData.naturalWidth,d=this.imageData.naturalHeight;this.displayScale=Math.max(200/M,200/d);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var N=M*this.displayScale*this.imageData.previewCoordinates.left,R=d*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=d>M?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-N;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=M>d?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-R;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=M*this.displayScale;this.imageHeight=d*this.displayScale};
_.F.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.F.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.F.getSignedPosition=function(M,d,N){return d==="X"&&_.rK("HTML_DIR")==="rtl"?N==="-"?M+"px":M*-1+"px":N==="-"?M*-1+"px":M+"px"};
_.F.pickerMove=function(M){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var d=this.pickerOffsetX-M.clientX,N=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
N)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-d))}};
_.F.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.F.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var M=this.generateCropPreview();M&&_.YP(this.hostElement,"ytd-backstage-image-preview-coordinates-update",M)};
_.F.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.YP(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.F.deleteImage=function(){_.YP(this.hostElement,"ytd-backstage-image-preview-delete")};
_.F.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.F.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var M=this.generateCropPreview();M&&_.YP(this.hostElement,"ytd-backstage-image-preview-coordinates-save",M)};
_.F.getPreviewOffset=function(M,d,N){return d&&M?(N==="X"&&_.rK("HTML_DIR")==="rtl"?300/d*M:300/d*M*-1)+"px":"0px"};
_.F.getSimpleText=function(M){return M?_.HD(M):""};
_.F.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}};
_.Hm.Object.defineProperties(jj.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.le(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.le(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.le(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.le(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.instruction)==null?void 0:(d=M.previewInstruction)==null?void 0:d.editButtonLabel;return N?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X=this.editOnlyMode?(M=this.instruction)==null?void 0:(d=M.editInstruction)==null?void 0:d.saveImagesButtonLabel:(N=this.instruction)==null?void 0:(R=N.editInstruction)==null?void 0:R.saveButtonLabel;return X?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:X,accessibilityData:{accessibilityData:{label:this.getSimpleText(X)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.instruction)==null?void 0:(d=M.previewInstruction)==null?void 0:d.deleteButtonLabel;return N?{size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.instruction)==null?void 0:(d=M.editInstruction)==null?void 0:d.cancelButtonLabel;M=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return N?{style:M,size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleText(N)}}}: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"}}});
jj.prototype.onEditOnlyModeUpdate=jj.prototype.onEditOnlyModeUpdate;jj.prototype.onImageChange=jj.prototype.onImageChange;_.G([_.H(),_.a("design:type",ZYN)],jj.prototype,"imageData",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"instruction",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"a11yConfig",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"imageHeight",void 0);
_.G([_.H(),_.a("design:type",Number)],jj.prototype,"displayScale",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"imageDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"imageDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"pickerDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"pickerDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"showPreviewContainer",void 0);
_.G([_.H(),_.a("design:type",Object)],jj.prototype,"startPicker",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"pickerOffsetX",void 0);_.G([_.H(),_.a("design:type",Number)],jj.prototype,"pickerOffsetY",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"repositionOptional",void 0);_.G([_.H(),_.a("design:type",Object)],jj.prototype,"editOnlyMode",void 0);_.G([_.Z3("#picker-container"),_.a("design:type",HTMLElement)],jj.prototype,"JSC$13405_pickerContainer",void 0);
_.G([_.Z3("#picker"),_.a("design:type",HTMLElement)],jj.prototype,"picker",void 0);_.G([_.Z3("#preview-clipper"),_.a("design:type",HTMLElement)],jj.prototype,"previewClipper",void 0);_.G([_.Z3("#image-in-picker-background"),_.a("design:type",HTMLImageElement)],jj.prototype,"JSC$13405_imageInBackground",void 0);_.G([_.Z3("#image-in-picker"),_.a("design:type",HTMLImageElement)],jj.prototype,"JSC$13405_imageInPicker",void 0);
_.G([_.Z3("#image-in-preview-clipper"),_.a("design:type",HTMLImageElement)],jj.prototype,"JSC$13405_imageInPreviewClipper",void 0);_.G([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"altLabelForImage",null);_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Number),_.a("design:paramtypes",[])],jj.prototype,"pickerSize",null);
_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"imageOrientationStyle",null);_.G([_.z("instruction"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"editButton",null);_.G([_.z("instruction","editOnlyMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"saveButton",null);_.G([_.z("instruction"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"deleteButton",null);
_.G([_.z("instruction","editOnlyMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],jj.prototype,"cancelButton",null);_.G([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.a("design:type",Number),_.a("design:paramtypes",[])],jj.prototype,"cropOffsetTop",null);_.G([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.a("design:type",Number),_.a("design:paramtypes",[])],jj.prototype,"cropOffsetLeft",null);
_.G([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"pickerBackgroundStyle",null);_.G([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"pickerDisplayStyle",null);_.G([_.z("cropOffsetLeft","cropOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"imageInPickerStyle",null);
_.G([_.z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"previewClipperStyle",null);_.G([_.NS("imageData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jj.prototype,"onImageChange",null);_.G([_.NS("editOnlyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jj.prototype,"onEditOnlyModeUpdate",null);
_.G([_.z("showPreviewContainer"),_.a("design:type",String),_.a("design:paramtypes",[])],jj.prototype,"pickerModeStyle",null);jj=_.G([_.f({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],jj);
_.L(jj,"ytd-backstage-image-preview-renderer",function(){if(ZvL!==void 0)return ZvL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZvL=M},{mode:1});var E6C;var M0m={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 d63;var N7t;var sC=function(){var M=_.n.apply(this,arguments)||this;M.a11yConfig=M0m;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.cropCoordinatesSaved=!1;M.previewSize=0;M.startPicker=!1;M.repositionOptional=!1;return M};
_.v(sC,_.n);_.F=sC.prototype;_.F.created=function(){_.b0.requestAvailability()};
_.F.ready=function(){};
_.F.onArrowKeysDown=function(M){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var d=0,N=0,R="";switch(M.detail.keyboardEvent.key){case "ArrowUp":dzL(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:d=this.imageHeight*.05*-1;break;case "ArrowDown":dzL(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
d=this.imageHeight*.05;break;case "ArrowLeft":dzL(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:N=this.imageWidth*.05*-1;break;case "ArrowRight":dzL(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:N=this.imageWidth*.05}R&&_.le(R)&&_.YP(this.hostElement,"iron-announce",{text:_.le(R)});if(N||d)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+d)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.le(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+N)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.le(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.YP(this.hostElement,"iron-announce",{text:M})}};
_.F.getPreviewPosition=function(M,d,N,R){return Math.round(100*(M+d*.5-N)/R)};
_.F.displayImage=function(){var M=this.JSC$13416_pickerContainer.getBoundingClientRect().width,d=this.JSC$13416_pickerContainer.getBoundingClientRect().height,N=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),R=this.JSC$13416_imageInBackground.naturalWidth,X=this.JSC$13416_imageInBackground.naturalHeight;this.displayScale=Math.max(N/R,N/X);this.imageWidth=R*this.displayScale;this.imageHeight=X*this.displayScale;this.pickerDisplayOffsetLeft=(M-N)/2;this.pickerDisplayOffsetTop=
(d-N)/2;this.imageDisplayOffsetLeft=X>R?this.pickerDisplayOffsetLeft:(M-this.imageWidth)/2;this.imageDisplayOffsetTop=R>X?this.pickerDisplayOffsetTop:(d-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.F.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13416_imageInBackground.src=this.imageData.toString(),this.JSC$13416_imageInPicker.src=this.imageData.toString(),this.JSC$13416_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.F.getSignedPosition=function(M,d,N){return d==="X"&&_.rK("HTML_DIR")==="rtl"?N==="-"?M+"px":M*-1+"px":N==="-"?M*-1+"px":M+"px"};
_.F.pickerMove=function(M){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var d=this.pickerOffsetX-M.clientX,N=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
N)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-d))}};
_.F.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.F.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.F.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.YP(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.F.getPreviewOffset=function(M,d,N,R){return d&&M&&N?(R==="X"&&_.rK("HTML_DIR")==="rtl"?N/d*M:N/d*M*-1)+"px":"0px"};
_.F.getSimpleText=function(M){return M?_.HD(M):""};
_.F.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var M=this.cropOffsetTop/this.imageHeight,d=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,N=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,R=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.K(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.YP(this.hostElement,"yt-img-crop-coordinates-update",{top:M,right:d,bottom:N,left:R})}};
_.Hm.Object.defineProperties(sC.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.le(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.le(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.le(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.le(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var M,d=(M=this.learnMore.runs[0])==null?void 0:M.navigationEndpoint,N;return((N=_.q(d,_.JQ))==null?void 0:N.url)||void 0}}}});
sC.prototype.onImageDataChange=sC.prototype.onImageDataChange;_.G([_.H(),_.a("design:type",Object)],sC.prototype,"imageData",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"instruction",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"a11yConfig",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"imageHeight",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"displayScale",void 0);
_.G([_.H(),_.a("design:type",Object)],sC.prototype,"imageDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"imageDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"pickerDisplayOffsetTop",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"pickerDisplayOffsetLeft",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"cropCoordinatesSaved",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"previewSize",void 0);
_.G([_.H(),_.a("design:type",Object)],sC.prototype,"startPicker",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"pickerOffsetX",void 0);_.G([_.H(),_.a("design:type",Number)],sC.prototype,"pickerOffsetY",void 0);_.G([_.H(),_.a("design:type",Object)],sC.prototype,"repositionOptional",void 0);_.G([_.Z3("#picker-container"),_.a("design:type",HTMLElement)],sC.prototype,"JSC$13416_pickerContainer",void 0);_.G([_.Z3("#picker"),_.a("design:type",HTMLElement)],sC.prototype,"picker",void 0);
_.G([_.Z3("#image-in-picker-background"),_.a("design:type",HTMLImageElement)],sC.prototype,"JSC$13416_imageInBackground",void 0);_.G([_.Z3("#image-in-picker"),_.a("design:type",HTMLImageElement)],sC.prototype,"JSC$13416_imageInPicker",void 0);_.G([_.Z3("#image-in-preview-clipper"),_.a("design:type",HTMLImageElement)],sC.prototype,"JSC$13416_imageInPreviewClipper",void 0);_.G([_.Z3("#full-image-as-preview"),_.a("design:type",HTMLImageElement)],sC.prototype,"imageAsPreview",void 0);
_.G([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"altLabelForImage",null);_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Number),_.a("design:paramtypes",[])],sC.prototype,"pickerSize",null);_.G([_.z("imageHeight","imageWidth"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"imageOrientationStyle",null);
_.G([_.z("instruction.previewInstruction.editButtonLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"editButton",null);_.G([_.z("instruction.editInstruction.saveButtonLabel"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"saveButton",null);_.G([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.a("design:type",Number),_.a("design:paramtypes",[])],sC.prototype,"cropOffsetTop",null);
_.G([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.a("design:type",Number),_.a("design:paramtypes",[])],sC.prototype,"cropOffsetLeft",null);_.G([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"pickerBackgroundStyle",null);_.G([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"pickerDisplayStyle",null);
_.G([_.z("cropOffsetLeft","cropOffsetTop"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"imageInPickerStyle",null);_.G([_.z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"previewClipperStyle",null);_.G([_.xB("imageData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sC.prototype,"onImageDataChange",null);
_.G([_.z("cropCoordinatesSaved"),_.a("design:type",String),_.a("design:paramtypes",[])],sC.prototype,"pickerModeStyle",null);_.G([_.z("instruction.editInstruction.learnMore"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"learnMore",null);_.G([_.z("learnMore"),_.a("design:type",Object),_.a("design:paramtypes",[])],sC.prototype,"learnMoreUrl",null);sC=_.G([_.w4({is:"yt-img-crop-picker",disableElementRegistration:!0})],sC);
_.L(sC,"yt-img-crop-picker",function(){if(N7t===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;d63===void 0&&(d63=document.createElement("template"));var R=d63;N.call(d,R.content.cloneNode(!0),M.content.firstChild);N7t=M}M=N7t;return M},{mode:2});var PS=function(){var M=_.n.apply(this,arguments)||this;M.errorMessage="";M.hasPreview=!1;M.isBackstagePost=!1;M.dismissButtonOverrides={size:"XS"};return M};
_.v(PS,_.n);_.F=PS.prototype;_.F.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"}}}};
_.F.detached=function(){this.removeOverlay()};
_.F.setPreview=function(M){_.K(this.hostElement).querySelector("#preview-picker").imageData=M;this.hasPreview=!0;_.YP(this.hostElement,"yt-backstage-image-select-preview")};
_.F.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var M=_.K(this.hostElement).querySelector("#dropzone");M.classList.remove("dragover");M.classList.remove("error");_.YP(this.hostElement,"yt-backstage-image-select-cancel")};
_.F.setupOverlay=function(){var M=this.imageUploadEndpoint;this.removeOverlay();if(M&&M.imageValidationInfo){var d=_.K(this.hostElement).querySelector("#dropzone"),N=_.K(this.hostElement).querySelector("#select");this.overlay=new f9(M.uploadUrl,M.channelId,M.imageValidationInfo.maxFileSizeMb,M.imageValidationInfo.allowedMaxAspectRatio,d,N,!0);_.lI(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.lI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.lI(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.lI(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.lI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.F.removeOverlay=function(){this.overlay&&(_.p2(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.p2(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.p2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.p2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.p2(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.F.onDragOver=function(M){var d=_.K(this.hostElement).querySelector("#dropzone");_.t2(d,"dragover",M.value)};
_.F.onPreview=function(M){this.setPreview(M.value)};
_.F.onImageError=function(M){if(M.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var d;M=(d=this.data)==null?void 0:d.fileSizeError}else if(M.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var N;M=(N=this.data)==null?void 0:N.invalidError}else if(M.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var R;M=(R=this.data)==null?void 0:R.invalidAspectRatioError}else return;this.errorMessage=_.HD(M);_.K(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.F.onImageAlert=function(M){this.onImageError(M)};
_.F.uploadPromise=function(){var M=this,d=this.overlay&&this.overlay.uploadPromise();if(d)return d.catch(function(){throw Error(M.data?_.HD(M.data.uploadFailureError):"");})};
_.Hm.Object.defineProperties(PS.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)return _.C6(this.data.icon.iconType)}}});
PS.prototype.setupOverlay=PS.prototype.setupOverlay;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],PS.prototype,"rendererStamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"imageUploadEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"errorMessage",void 0);
_.G([_.H(),_.a("design:type",f9)],PS.prototype,"overlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PS.prototype,"hasPreview",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PS.prototype,"isBackstagePost",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"selectionCancel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"previewCancel",null);
_.G([_.z("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],PS.prototype,"icon",null);_.G([_.H(),_.a("design:type",Object)],PS.prototype,"dismissButtonOverrides",void 0);_.G([_.xB("imageUploadEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PS.prototype,"setupOverlay",null);PS=_.G([_.f({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],PS);
_.L(PS,"ytd-backstage-image-select-renderer",function(){if(E6C!==void 0)return E6C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return E6C=M},{mode:1});var Rot;var XOo;var ol=function(){var M=_.n.apply(this,arguments)||this;M.selected=!1;return M};
_.v(ol,_.n);_.F=ol.prototype;_.F.computeSelected=function(M){return M==null?void 0:M.selected};
_.F.computeTransform=function(M,d,N){var R,X,A=(X=(R=this.imageContainer)==null?void 0:R.getBoundingClientRect())!=null?X:{width:0,height:0};R=Math.max(A.width/d,A.height/N);N=N*R*M.top;return"translateX("+this.getSignedPosition(d*R*M.left,"X","-")+") translateY("+this.getSignedPosition(N,"Y","-")+")"};
_.F.getSignedPosition=function(M,d,N){return d==="X"&&_.rK("HTML_DIR")==="rtl"?N==="-"?M+"px":M*-1+"px":N==="-"?M*-1+"px":M+"px"};
_.F.onClick=function(){var M;_.YP(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(M=this.data)==null?void 0:M.image)};
_.F.onKeyPress=function(M){if(M.keyCode===13)this.onClick()};
_.Hm.Object.defineProperties(ol.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.image)==null?void 0:d.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.image){var d;M=(d=this.data)==null?void 0:d.image;return M.previewCoordinates.top!==0||M.previewCoordinates.left!==0?(d=this.computeTransform(M.previewCoordinates,M.naturalWidth,M.naturalHeight),M.naturalHeight>=M.naturalWidth?"width:inherit;transform:"+d+";":"height:inherit;transform:"+d+";"):M.naturalHeight>=M.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ol.prototype.onKeyPress=ol.prototype.onKeyPress;_.G([_.Z3(".image-container"),_.a("design:type",HTMLElement)],ol.prototype,"imageContainer",void 0);_.G([_.H(),_.a("design:type",Object)],ol.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.a("design:type",Object)],ol.prototype,"selected",void 0);_.G([_.z("data.image"),_.a("design:type",Object),_.a("design:paramtypes",[])],ol.prototype,"thumbnailUrl",null);
_.G([_.z("data.image","data.image.previewCoordinates"),_.a("design:type",Object),_.a("design:paramtypes",[])],ol.prototype,"thumbnailStyle",null);_.G([_.C3("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ol.prototype,"onKeyPress",null);ol=_.G([_.f({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ol);
_.L(ol,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(XOo!==void 0)return XOo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return XOo=M},{mode:2});var rr=function(M,d,N){N=N===void 0?!1:N;_.mk.call(this);var R=this;this.dropZoneOverlay=new l8(M);this.selectOverlay=N?new $3(d,"multiple_file",["image/*"]):new $3(d,"single_file",["image/*"]);this.handler=new _.a_(this);_.RW(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(d,"click",function(){R.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.v(rr,_.mk);rr.prototype.onChange=function(M){var d;(d=M.files)!=null&&d.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:M.files}))};var Kz=function(){var M=_.n.apply(this,arguments)||this;M.addImageErrorMessage="";M.errorMessage="";M.images=[];M.selectedImageIndex=0;M.modern=_.Q("web_modern_buttons");M.maxNumImagesPerPost=_.ZR("max_num_images_per_post_web_ui");M.JSC$13431_imageId=0;return M};
_.v(Kz,_.n);_.F=Kz.prototype;_.F.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.YP(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.F.observeDragToReorder=function(){var M=this;if(this.showImagesPreview){var d,N=g1m(_.ug.getInstance(),(d=this.data)==null?void 0:d.dragToReorderTooltip);_.IQ.addLowPriorityJob(function(){_.Ni(M.hostElement,N,M.thumbnailDragDropArea)})}};
_.F.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}}};
_.F.computeThumbnail=function(M){return(M==null?void 0:M.localImageSrc)||void 0};
_.F.onRendererstamperFinished=function(){_.toV(this.ytReorderableBehavior,_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.F.handleDrop=function(M){var d=M.currDragItem;if(d!=null&&d.data){M=this.images[this.selectedImageIndex];var N=d.data.image,R=this.images.indexOf(N)||0;d=_.er(d.parentNode.children,d);this.images.splice(R,1);this.images.splice(d,0,N);this.images=[].concat(_.wu(this.images));this.selectedImageIndex=this.images.indexOf(M)}};
_.F.setUpImagePicker=function(){var M=this.imageUploadEndpoint;M&&M.imageValidationInfo&&(this.uploadManager=new vS(M.uploadUrl,M.channelId),this.initialPicker||(this.initialPicker=new rr(this.dropzone,this.selectLink,!0),_.lI(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new rr(this.addImageButtonContainer,this.addImageSelectButton),_.lI(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.lI(this.JSC$13431_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.lI(this.JSC$13431_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.lI(_.K(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.F.detached=function(){this.initialPicker&&(_.p2(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.p2(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.F.onInitialSelectImages=function(M){var d=this;return _.B(function(N){return _.D(N,d.onSelectImages(M,!1),0)})};
_.F.onAddImage=function(M){var d=this;return _.B(function(N){return _.D(N,d.onSelectImages(M,!0),0)})};
_.F.onSelectImages=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y;return _.B(function($i){switch($i.nextAddress){case 1:d?N.addImageErrorMessage="":(N.images=[],N.errorMessage="");R=M.detail;X=N.validateImages([].concat(_.wu(R)));if(X!=="")return d?N.addImageErrorMessage=X:N.errorMessage=X,$i.return();A=[].concat(_.wu(R)).map(function(vj){return(new n9(N.maxAspectRatio,!1,!0)).transform(vj)});
return _.D($i,Promise.allSettled(A),2);case 2:l=$i.yieldResult,k=_.V(l.entries()),T=k.next();case 3:if(T.done){$i.jumpTo(5);break}W=T.value;w=_.V(W);p=w.next().value;m=w.next().value;I=p;O=m;if(O.status!=="fulfilled"){e=c=y=void 0;d?N.addImageErrorMessage=_.HD((y=N.data)==null?void 0:y.invalidError):N.errorMessage=N.errorMessage===""?_.HD((c=N.data)==null?void 0:c.invalidError):_.HD((e=N.data)==null?void 0:e.multiFileError);$i.jumpTo(4);break}t=O.value;t.cropped&&_.YP(N.hostElement,"yt-backstage-multi-image-cropped");
if(t.invalidAspectRatio){Fi=U=C=void 0;d?N.addImageErrorMessage=_.HD((C=N.data)==null?void 0:C.invalidAspectRatioError):N.errorMessage=N.errorMessage===""?_.HD((U=N.data)==null?void 0:U.invalidAspectRatioError):_.HD((Fi=N.data)==null?void 0:Fi.multiFileError);$i.jumpTo(4);break}return _.D($i,EEj(N.JSC$13431_imageId,M.detail[I],t.transformedData),8);case 8:Y=$i.yieldResult,N.images.push(Y),N.JSC$13431_imageId++;case 4:T=k.next();$i.jumpTo(3);break;case 5:if(N.errorMessage!==""||N.addImageErrorMessage!==
"")return $i.return();d?GOo(N.uploadManager,[N.images[N.images.length-1]]):GOo(N.uploadManager,N.images);N.images=[].concat(_.wu(N.images));N.selectedImageIndex=d?Math.max(N.images.length-1,0):0;_.YP(N.hostElement,"yt-backstage-multi-image-select");_.Vy($i)}})};
_.F.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.F.validateImages=function(M){if(M.length>this.maxNumImagesPerPost){var d;return _.HD((d=this.data)==null?void 0:d.multiImageExceedMaxImageCountError)}var N=1048576*this.maxFileSizeMb;M=M.filter(function(A){return A.size>N}).length;
if(M===0)return"";var R,X;M=M>1?(R=this.data)==null?void 0:R.multiFileError:(X=this.data)==null?void 0:X.fileSizeError;return _.HD(M)};
_.F.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.wu(this.images));this.selectedImageIndex=0};
_.F.repositionImage=function(M){this.images[this.selectedImageIndex].previewCoordinates=M.event_.detail;this.images=[].concat(_.wu(this.images))};
_.F.getAllUploadStatuses=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.uploadManager.getAllUploadStatuses(),2);d=A.yieldResult;N=_.V(d);for(R=N.next();!R.done;R=N.next())if(X=R.value,X.encryptedBlobId===void 0)return A.return(a_z(M.uploadManager));return A.return(d)})};
_.F.hasImages=function(){return this.images.length>0};
_.F.cancel=function(){for(var M=this.uploadManager,d=_.V(M.imagesUploadData),N=d.next();!N.done;N=d.next())M.cancel(N.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.YP(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Hm.Object.defineProperties(Kz.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.imageUploadEndpoint)==null?void 0:(d=M.imageValidationInfo)==null?void 0:d.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.imageUploadEndpoint)==null?void 0:(d=M.imageValidationInfo)==null?void 0:d.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var M,d;if((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)return _.C6(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var M=this;return(this.images||[]).map(function(d,N){return{renderer:{image:d,selected:N===M.selectedImageIndex}}})}}});
Kz.prototype.setUpImagePicker=Kz.prototype.setUpImagePicker;Kz.prototype.onRendererstamperFinished=Kz.prototype.onRendererstamperFinished;Kz.prototype.observeDragToReorder=Kz.prototype.observeDragToReorder;Kz.prototype.observeAddImageError=Kz.prototype.observeAddImageError;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Kz.prototype,"rendererStamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.GwJ),_.a("design:type",Object)],Kz.prototype,"ytReorderableBehavior",void 0);_.G([_.Z3("#dropzone"),_.a("design:type",HTMLElement)],Kz.prototype,"dropzone",void 0);_.G([_.Z3("#select-link"),_.a("design:type",HTMLElement)],Kz.prototype,"selectLink",void 0);_.G([_.Z3("#thumbnail-drag-drop-area"),_.a("design:type",HTMLElement)],Kz.prototype,"thumbnailDragDropArea",void 0);_.G([_.Z3("#add-image-button-container"),_.a("design:type",HTMLElement)],Kz.prototype,"addImageButtonContainer",void 0);
_.G([_.Z3("#add-image-button"),_.a("design:type",HTMLElement)],Kz.prototype,"addImageSelectButton",void 0);_.G([_.Z3("#image-preview-container"),_.a("design:type",Object)],Kz.prototype,"JSC$13431_imagePreviewContainer",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"addImageErrorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"errorMessage",void 0);
_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"imageUploadEndpoint",void 0);_.G([_.H(),_.a("design:type",Array)],Kz.prototype,"images",void 0);_.G([_.H(),_.a("design:type",rr)],Kz.prototype,"initialPicker",void 0);_.G([_.H(),_.a("design:type",rr)],Kz.prototype,"addImagePicker",void 0);_.G([_.H(),_.a("design:type",vS)],Kz.prototype,"uploadManager",void 0);_.G([_.H(),_.a("design:type",Object)],Kz.prototype,"selectedImageIndex",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kz.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kz.prototype,"maxNumImagesPerPost",void 0);_.G([_.z("imageUploadEndpoint"),_.a("design:type",Number),_.a("design:paramtypes",[])],Kz.prototype,"maxAspectRatio",null);_.G([_.z("imageUploadEndpoint"),_.a("design:type",Number),_.a("design:paramtypes",[])],Kz.prototype,"maxFileSizeMb",null);
_.G([_.z("data.icon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"dropIcon",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"selectionCancel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"previewCancel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"dataForAddImageButton",null);
_.G([_.z("errorMessage"),_.a("design:type",String),_.a("design:paramtypes",[])],Kz.prototype,"dropzoneClass",null);_.G([_.z("images"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Kz.prototype,"showImagesPreview",null);_.G([_.z("images"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Kz.prototype,"containMaxImages",null);_.G([_.xB("addImageErrorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"observeAddImageError",null);
_.G([_.xB("showImagesPreview"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"observeDragToReorder",null);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kz.prototype,"selectedImageData",null);_.G([_.z("images","selectedImageIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],Kz.prototype,"thumbnailRenderers",null);
_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"onRendererstamperFinished",null);_.G([_.xB("imageUploadEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kz.prototype,"setUpImagePicker",null);Kz=_.G([_.f({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Kz);
_.L(Kz,"ytd-backstage-multi-image-select-renderer",function(){if(Rot!==void 0)return Rot;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Rot=M},{mode:1});var Fbo;var APd;var V0J;var y3=function(){var M=_.n.apply(this,arguments)||this;M.boundCaptureFocus=function(d){M.onCaptureFocus(d)};
return M};
_.v(y3,_.n);_.F=y3.prototype;_.F.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.F.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.F.onCaptureFocus=function(M){_.J2(M).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.F.getIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.F.onSelect=function(){var M;if((M=this.data)==null?0:M.onSelectCommand)if(_.Q("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var d;((d=_.q(this.data.onSelectCommand.commandMetadata,_.an))==null?0:d.url)?_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.h().resolve(_.xV).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Hm.Object.defineProperties(y3.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.HD(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}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y3.prototype,"data",void 0);_.G([_.Z3("#item"),_.a("design:type",HTMLElement)],y3.prototype,"item",void 0);_.G([_.z("data.label"),_.a("design:type",String),_.a("design:paramtypes",[])],y3.prototype,"label",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],y3.prototype,"value",null);y3=_.G([_.f({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],y3);
_.L(y3,"ytd-privacy-dropdown-item-renderer",function(){if(V0J!==void 0)return V0J;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return V0J=M},{mode:1});var Je=function(){var M=_.n.apply(this,arguments)||this;M.value="";M.label="";M.disabled=!1;return M};
_.v(Je,_.n);_.F=Je.prototype;_.F.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"}}}};
_.F.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.F.dataChanged=function(){this.reset()};
_.F.valueChanged=function(){var M;if(this.value&&(M=this.data)!=null&&M.entries){M=_.V(this.data.entries);for(var d=M.next();!d.done;d=M.next())if((d=this.getRendererForEntry(d.value))&&this.getItemRendererValue(d)===this.value){this.label=this.ytComponentBehavior.getSimpleString(d.label);break}}};
_.F.setInitialLabel=function(){if(this.data&&this.data.entries)for(var M=_.V(this.data.entries),d=M.next();!d.done;d=M.next())if(d=this.getRendererForEntry(d.value)){if(d.isSelected){this.label=this.ytComponentBehavior.getSimpleString(d.label);break}this.data.label&&(this.label=this.data.label)}};
_.F.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var M=_.V(this.data.entries),d=M.next();!d.done;d=M.next()){d=this.getRendererForEntry(d.value);var N=void 0;if((N=d)==null?0:N.isSelected)return this.getItemRendererValue(d)||-1}return-1};
_.F.getItemRendererValue=function(M){return"stringValue"in M||"int32Value"in M?M.stringValue||M.int32Value||null:null};
_.F.getRendererForEntry=function(M){return M.dropdownItemRenderer||M.privacyDropdownItemRenderer||M.navigationDropdownItemRenderer||null};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("value-changed",this.value))};
_.F.updateValueFromBinding=function(M){this.value=M.detail.value};
Je.prototype.valueChangedForBinding=Je.prototype.valueChangedForBinding;Je.prototype.valueChanged=Je.prototype.valueChanged;Je.prototype.dataChanged=Je.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Je.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Je.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Je.prototype,"value",void 0);_.G([_.H(),_.a("design:type",Object)],Je.prototype,"label",void 0);_.G([_.Z3("#entries"),_.a("design:type",Object)],Je.prototype,"entries",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Je.prototype,"disabled",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Je.prototype,"dataChanged",null);
_.G([_.NS("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Je.prototype,"valueChanged",null);_.G([_.xB("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Je.prototype,"valueChangedForBinding",null);Je=_.G([_.f({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Je);
_.L(Je,"ytd-flat-dropdown-renderer",function(){if(APd!==void 0)return APd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return APd=M},{mode:1});var lU3;var cS=function(){var M=_.n.apply(this,arguments)||this;M.quizOptions=[];M.explanationPlaceholderText="";M.optionPlaceholderText="";M.correctAnswerIndex=-1;M.isMarkAnswerTooltipShown=!1;M.timer=0;return M};
_.v(cS,_.n);_.F=cS.prototype;_.F.dataChanged=function(){this.optionPlaceholderText=_.HD(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.HD(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.F.onMarkCorrectAnswer=function(M){var d,N=((d=this.quizOptions[this.correctAnswerIndex])==null?void 0:d.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[M.model.index]=Object.assign({},this.quizOptions[M.model.index],{explanationText:N,isCorrect:!0});this.correctAnswerIndex=M.model.index;this.quizOptions=[].concat(_.wu(this.quizOptions))};
_.F.updatePlaceholderTexts=function(){for(var M=!1,d=[],N=0;N<this.quizOptions.length;N++){var R=this.optionPlaceholderText+" "+(N+1),X=void 0;((X=this.quizOptions[N])==null?void 0:X.placeholderText)!==R?(M=!0,d.push(Object.assign({},this.quizOptions[N],{placeholderText:R}))):d.push(this.quizOptions[N])}M&&(this.quizOptions=d);this.isValid()?_.YP(this.hostElement,"yt-commentbox-post-enable"):_.YP(this.hostElement,"yt-commentbox-post-disable")};
_.F.getSimpleString=function(M){return _.HD(M)};
_.F.createQuizOptions=function(M){var d=[],N;M=(N=M==null?void 0:M.minQuizOptions)!=null?N:0;for(N=0;N<M;N++)d.push(this.createQuizOption());return d};
_.F.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.wu(this.quizOptions),[this.createQuizOption()]))};
_.F.onInput=function(){this.quizOptions=[].concat(_.wu(this.quizOptions))};
_.F.onExplanationInput=function(){_.YP(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.F.onRemoveQuizOption=function(M){this.quizOptions.splice(M.model.index,1);M.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:M.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.wu(this.quizOptions));this.quizOptions.length===0&&_.YP(this.hostElement,"yt-quiz-attachment-dismiss")};
_.F.updateHintRenderer=function(){var M=this;clearTimeout(this.timer);this.timer=setTimeout(function(){M.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.F.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var M=0,d=0,N=_.V(this.quizOptions),R=N.next();!R.done;R=N.next()){R=R.value;var X=void 0;if(((X=R.optionText)==null?void 0:X.trim())!==""||R.isCorrect){R.isCorrect&&d++;X=void 0;if(this.hasCustomOptionText&&((X=R.optionText)==null?void 0:X.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;M++}}return M>=
Number(this.editorInfo.minQuizOptions)&&d===1};
_.F.getPostCreateOptions=function(){for(var M=[],d=_.V(this.quizOptions),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;((R=N.optionText)==null?void 0:R.trim())!==""&&M.push({pollOption:{text:N.optionText,explanation:N.explanationText},isCorrect:N.isCorrect})}return M};
_.F.getExplanationText=function(){var M;return((M=this.quizOptions[this.correctAnswerIndex])==null?void 0:M.explanationText)||""};
_.F.maybeDisplayMarkAnswerEduToolTip=function(){var M,d,N,R,X,A,l;this.shouldShowMarkAnswerTooltip()&&((M=this.editorInfo)==null?0:(d=M.markAnswerButton)==null?0:(N=d.buttonRenderer)==null?0:(R=N.hint)==null?0:(X=R.hintRenderer)==null?0:(A=X.content)==null?0:(l=A.bubbleHintRenderer)==null?0:l.text)&&(_.ug.getInstance(),M=C4(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(M==null?void 0:M.length)>0&&this.optionSelectors&&_.Zc(M[0],this.optionSelectors[0]))};
_.F.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var M=0,d=_.V(this.quizOptions),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;((R=N.optionText)==null?void 0:R.trim())!==""&&M++;if(N.isCorrect)return!1}return M<2?!1:!0};
_.F.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.F.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.F.updateOptionTextFromBinding=function(M){if(M.target){var d=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(M.target);if(d>=0){var N;this.quizOptions[d].optionText=(N=M.detail.value)!=null?N:""}}};
_.Hm.Object.defineProperties(cS.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.editorInfo)==null?void 0:(d=M.addOptionButton)==null?void 0:d.buttonRenderer;N&&(N.style="STYLE_SUGGESTIVE",N.size="SIZE_SMALL",N.isDisabled=!this.isAllowedToAddOption);return(N==null?0:N.text)?N:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.quizOptions.length<((d=(M=this.editorInfo)==null?void 0:M.maxQuizOptions)!=null?d:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(M){var d;return(d=M.optionText)==null?void 0:d.trim()})}}});
cS.prototype.updatePlaceholderTexts=cS.prototype.updatePlaceholderTexts;cS.prototype.dataChanged=cS.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],cS.prototype,"editorInfo",void 0);_.G([_.H(),_.a("design:type",Array)],cS.prototype,"quizOptions",void 0);_.G([_.H(),_.a("design:type",Object)],cS.prototype,"explanationPlaceholderText",void 0);_.G([_.EO(".option-selector-button"),_.a("design:type",Array)],cS.prototype,"optionSelectors",void 0);
_.G([_.NS("editorInfo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cS.prototype,"dataChanged",null);_.G([_.z("editorInfo","isAllowedToAddOption","quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],cS.prototype,"addAnswerButton",null);_.G([_.z("editorInfo","quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],cS.prototype,"isAllowedToAddOption",null);
_.G([_.NS("quizOptions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cS.prototype,"updatePlaceholderTexts",null);_.G([_.z("quizOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],cS.prototype,"hasCustomOptionText",null);cS=_.G([_.f({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],cS);
_.L(cS,"ytd-backstage-quiz-editor-renderer",function(){if(lU3!==void 0)return lU3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lU3=M},{mode:2});var $6L;var B7o=(h9.FIRSTDAYOFWEEK+1)%7;var kFV;var T7o=[],D6L=0,guI=0;D6L=0;guI=24;if(.25*(guI-D6L)<0)kFV=[];else{for(var Wbd=D6L;Wbd<guI;Wbd+=.25)T7o.push(Wbd);kFV=T7o}var wOV=kFV.map(function(M){M=M*60*60;return{secondsSinceMidnight:M,text:(new Sp(7)).format(new Date(0,0,0,0,0,M))}});var pOe;var Sj=function(){var M=_.n.apply(this,arguments)||this;M.skipNextOpenDialog=!1;M.errorMessage="";return M};
_.v(Sj,_.n);_.F=Sj.prototype;_.F.attached=function(){var M=this,d=new MutationObserver(function(){M.JSC$13474_calendarMain.scrollHeight>0&&(d.disconnect(),M.calendarConfig&&M.calendarConfig.selectedDate&&M.scrollToDate())});
d.observe(this.JSC$13474_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){d.disconnect()},1E3)};
_.F.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.F.onDateTextChange=function(){if(this.calendarConfig){var M=this.validateDateText();M.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(M.details)):this.textbox.setAttribute("invalid","")}};
_.F.handleDayClick=function(M){M.model.day.date&&(this.commitDate(M.model.day.date),this.dialog.close())};
_.F.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var M=BdZ(this.calendarConfig.selectedDate,this.renderData);M!==void 0&&this.JSC$13474_calendarMain.scrollToIndex(M)}};
_.F.scrollToNextMonth=function(){this.JSC$13474_calendarMain.scrollToIndex(this.JSC$13474_calendarMain.firstVisibleIndex+1)};
_.F.scrollToPrevMonth=function(){this.JSC$13474_calendarMain.firstVisibleIndex===0&&this.JSC$13474_calendarMain.scrollTo(0,0);this.JSC$13474_calendarMain.scrollToIndex(this.JSC$13474_calendarMain.firstVisibleIndex-1)};
_.F.onFormSubmit=function(M){M.preventDefault();this.calendarConfig&&(M=this.validateDateText(),M.isValid&&(this.commitDate(M.details),this.dialog.close()))};
_.F.onEscOrClickingOutside=function(M){M=M.detail.path&&!!M.detail.path.length&&M.detail.path[0];if(M.classList.contains("ytd-calendar-date-picker")){M===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var d=0;d<this.dropdownButton.children.length;d++)this.dropdownButton.children[d]===M&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}M=this.textbox.value!==this.dateText;d=this.validateDateText();M&&d.isValid&&this.commitDate(d.details);this.dialog.close();this.textbox.value=
this.dateText};
_.F.commitDate=function(M){this.calendarConfig&&(this.set("calendarConfig.selectedDate",M),_.YP(this.hostElement,"ytd-calendar-date-selected",M))};
_.F.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var M=this.textbox.value;var d=new Date;M=(new rnS(2)).parse(M,d,{validate:!0})===M.length?l_j(d):void 0;if(!M)return this.errorMessage=_.le("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};d=this.calendarConfig.start;var N=this.calendarConfig.end;if(Rei(M,d))return this.errorMessage=_.le("ENTER_DATE_OR_LATER",{allowed_date:Vhr(d)}),{isValid:!1,details:void 0};if(Rei(N,M))return this.errorMessage=
_.le("ENTER_DATE_OR_EARLIER",{allowed_date:Vhr(N)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:M}};
_.Hm.Object.defineProperties(Sj.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Vhr(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var M=this.calendarConfig,d=[],N=0;N<7;N++)d.push(h9.NARROWWEEKDAYS[(N+B7o)%7]);N=[];for(var R=new Date(M.start.year,M.start.month);R.getFullYear()<M.end.year||R.getFullYear()===M.end.year&&R.getMonth()<=M.end.month;){var X=N,A=X.push,l=R.getFullYear(),k=R.getMonth(),T=M,W=void 0,w=[],p=Object.freeze({extraCssClass:"invisible",debugClass:""}),m=new Date(l,k),I=l_j(m);m=m.getDay();for(var O=l_j(new Date);I.month===
k;){m!==B7o&&W||(W=Array.from({length:7}).fill(p),w.push(W));var y={date:{year:l,month:k,day:I.day},extraCssClass:"",debugClass:""};T.selectedDate&&y.date&&NdA(y.date,T.selectedDate)&&(y.extraCssClass+=" selected");if(Rei(I,T.start)||Rei(T.end,I))y.extraCssClass+=" disabled";NdA(I,O)&&(y.extraCssClass+=" today");y.extraCssClass=y.extraCssClass.trim();W[(m-B7o+7)%7]=y;I=FUq(I);m=(m+1)%7}A.call(X,{weeks:w,monthLabel:h9.SHORTMONTHS[k]+" "+l,year:l,month:k,monthLabelExtraCssClass:w[0][2]===p?"shift-down-label":
""});R.setMonth(R.getMonth()+1)}return{months:N,daysOfWeekLabel:d}}}}});
Sj.prototype.onEscOrClickingOutside=Sj.prototype.onEscOrClickingOutside;Sj.prototype.scrollToDate=Sj.prototype.scrollToDate;_.G([_.H(),_.a("design:type",Object)],Sj.prototype,"calendarConfig",void 0);_.G([_.H(),_.a("design:type",Object)],Sj.prototype,"skipNextOpenDialog",void 0);_.G([_.H(),_.a("design:type",Object)],Sj.prototype,"errorMessage",void 0);_.G([_.Z3("#textbox"),_.a("design:type",HTMLInputElement)],Sj.prototype,"textbox",void 0);
_.G([_.Z3("#calendar-dialog"),_.a("design:type",Object)],Sj.prototype,"dialog",void 0);_.G([_.Z3("#calendar-main"),_.a("design:type",Object)],Sj.prototype,"JSC$13474_calendarMain",void 0);_.G([_.Z3("#date-picker"),_.a("design:type",HTMLElement)],Sj.prototype,"dropdownButton",void 0);_.G([_.z("calendarConfig.selectedDate"),_.a("design:type",String),_.a("design:paramtypes",[])],Sj.prototype,"dateText",null);
_.G([_.z("calendarConfig","calendarConfig.selectedDate"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sj.prototype,"renderData",null);_.G([_.xB("renderData","calendarConfig.selectedDate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sj.prototype,"scrollToDate",null);_.G([_.C3("iron-overlay-canceled"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Sj.prototype,"onEscOrClickingOutside",null);
Sj=_.G([_.w4({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Sj);
_.L(Sj,"ytd-calendar-date-picker",function(){if(pOe!==void 0)return pOe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pOe=M},{mode:2});var m6V=_.le("UTC_OFFSET_FORMAT",{utc_offset:(new Sp("Z")).format(new Date)}),hoo=(new Date).getTimezoneOffset()*-60,QMJ=new Date,qGJ,IUV=cD(QMJ.getTimezoneOffset());qGJ=c2J(zrL(IUV,QMJ));var vud=_.le("LOCAL_TIME_GMT_LABEL",{gmt_text:qGJ.replace("+0","+").replace("-0","-").replace(":00","")}),zZ=function(){var M=_.n.apply(this,arguments)||this;M.selectedTimeIndex=0;M.selectedTimezoneIndex=0;M.timeOfDayOptions=wOV;return M};
_.v(zZ,_.n);_.F=zZ.prototype;_.F.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var M=Anq();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=M,this.selectedTimeIndex=0;else{var d=$zi(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},M,{selectedDate:d.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(N){return N.secondsSinceMidnight===d.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.F.onDatePicked=function(M){this.selectedDate=M.detail};
_.F.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.YP(this.hostElement,"ytd-date-time-selection-cancelled")};
_.F.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var M=this.selectedDate;M=new Date(M.year,M.month,M.day);_.YP(this.hostElement,"ytd-date-time-selection-update",Math.floor(M.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+M.getTimezoneOffset()*60))}};
_.F.getTimezoneFormat=function(M){return M.localizedDisplayText?M.localizedDisplayText:_.le("TIMEZONE_FORMAT",{utc_offset_text:""+M.localizedUtcOffset,city_name:""+M.localizedName})};
_.F.updateSelectedTimeIndexFromBinding=function(M){this.selectedTimeIndex=M.detail.value};
_.F.updateSelectedTimezoneIndexFromBinding=function(M){this.selectedTimezoneIndex=M.detail.value};
_.Hm.Object.defineProperties(zZ.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data.timezoneOptions;var d={name:"Etc/Unknown",localizedName:_.le("LOCAL_TIME_LABEL"),localizedUtcOffset:m6V,utcOffsetSec:""+hoo,localizedDisplayText:vud};M?M.length&&M[0].name!==d.name&&(M[0].localizedDisplayText||(d.localizedDisplayText=""),M.unshift(d)):M=[d];return M}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
zZ.prototype.onDateTimeTimezoneChange=zZ.prototype.onDateTimeTimezoneChange;zZ.prototype.onDatePicked=zZ.prototype.onDatePicked;zZ.prototype.updateDefaultSelectedValue=zZ.prototype.updateDefaultSelectedValue;_.G([_.H(),_.a("design:type",Object)],zZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],zZ.prototype,"calendarConfig",void 0);_.G([_.H(),_.a("design:type",Object)],zZ.prototype,"selectedDate",void 0);_.G([_.H(),_.a("design:type",Object)],zZ.prototype,"selectedTimeIndex",void 0);
_.G([_.H(),_.a("design:type",Object)],zZ.prototype,"selectedTimezoneIndex",void 0);_.G([_.Z3("#time-listbox"),_.a("design:type",Object)],zZ.prototype,"timeListBox",void 0);_.G([_.Z3("#timezone-listbox"),_.a("design:type",Object)],zZ.prototype,"timezoneListBox",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zZ.prototype,"rendererStamperBehavior",void 0);_.G([_.z("data.timezoneOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],zZ.prototype,"timeZones",null);
_.G([_.NS("data","timeZones"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zZ.prototype,"updateDefaultSelectedValue",null);_.G([_.z("selectedTimezoneIndex","timeZones"),_.a("design:type",Object),_.a("design:paramtypes",[])],zZ.prototype,"selectedTimezone",null);_.G([_.z("selectedTimeIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],zZ.prototype,"selectedTime",null);
_.G([_.C3("ytd-calendar-date-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zZ.prototype,"onDatePicked",null);_.G([_.xB("selectedTimezone","selectedTime","selectedDate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zZ.prototype,"onDateTimeTimezoneChange",null);zZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],zZ);
_.L(zZ,"ytd-date-time-picker-renderer",function(){if($6L!==void 0)return $6L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" 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="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return $6L=M},{mode:1});var OTo;var bR=function(){var M=_.n.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.dismissTapHandler()};
M.dismissButtonOverrides={size:"XS"};return M};
_.v(bR,_.n);bR.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}}}}}};
bR.prototype.dismissTapHandler=function(){_.YP(this.hostElement,"yt-backstage-attachment-dismissed")};
bR.prototype.computeAttachmentType=function(M){return M?M.backstageImageRenderer?"image":M.videoRenderer?"video":"none":"none"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bR.prototype,"attachmentPreview",void 0);_.G([_.H(),_.a("design:type",Object)],bR.prototype,"dismissButton",void 0);_.G([_.H(),_.a("design:type",Object)],bR.prototype,"boundOnTapDismissButton",void 0);
_.G([_.H(),_.a("design:type",Object)],bR.prototype,"dismissButtonOverrides",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.a("design:type",String)],bR.prototype,"attachmentType",void 0);bR=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],bR);
_.L(bR,"ytd-backstage-dismissable-attachment",function(){if(OTo!==void 0)return OTo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return OTo=M},{mode:1});var jML;var ej=function(){var M=_.n.apply(this,arguments)||this;M.selectedVideoId=void 0;M.picker=void 0;M.dismissButtonOverrides={size:"XS"};M.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return M};
_.v(ej,_.n);_.F=ej.prototype;_.F.onServiceRequestCompleted=function(M){M.stopPropagation()};
_.F.handleAddVideoPreviewAction=function(M){M=this.get("addVideoPreviewAction",M);this.onGetVideoPreviewSuccess(M)};
_.F.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}}}}}};
_.F.onLaunchVideoPicker=function(M){var d=this,N=_.HD(this.get("addVideoLinkAction.title",M)),R=this.get("addVideoLinkAction.onePickHostId",M);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",M);R&&(this.picker||(N=_.JAV(_.KqZ(R).setTitle(N).addView(oVd()).addView(Psd()),function(X){d.onPickVideo(X)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",M)||N.addView("youtube"),this.picker=N.build()),this.picker.setVisible(!0))};
_.F.onPickVideo=function(M){if(M)if(M.action==="cancel")_.YP(this.hostElement,"yt-video-link-button-cancel");else if(M.action==="picked"){M=M.docs;if(!M||M.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(M=(M==null?0:M.length)?M[0]:void 0)?M.id:void 0;this.setVideoPreview()}};
_.F.setVideoPreview=function(){var M=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){M.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.F.onGetVideoPreviewSuccess=function(M){if(M&&M.videoPreview&&M.cancelButton)this.videoPreview=M.videoPreview,this.cancelButton=M.cancelButton,_.YP(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.F.onGetVideoPreviewError=function(){this.cancel()};
_.F.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.YP(this.hostElement,"yt-video-link-cancel")};
_.F.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
ej.prototype.onServiceRequestCompleted=ej.prototype.onServiceRequestCompleted;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ej.prototype,"videoPreview",void 0);_.G([_.H(),_.a("design:type",Object)],ej.prototype,"cancelButton",void 0);_.G([_.H(),_.a("design:type",Object)],ej.prototype,"getVideoPreviewCommand",void 0);_.G([_.H(),_.a("design:type",Object)],ej.prototype,"dismissButtonOverrides",void 0);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ej.prototype,"onServiceRequestCompleted",null);ej=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],ej);
_.L(ej,"ytd-backstage-video-link-attachment",function(){if(jML!==void 0)return jML;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jML=M},{mode:1});var sMd;var PwL;var oud;var te=function(){return _.n.apply(this,arguments)||this};
_.v(te,_.n);te.prototype.dataChanged=function(){this.active=!1};
te.prototype.onTap=function(){_.YP(this.hostElement,"yt-select-emoji-suggestion",this.data)};
te.prototype.identity=function(M){return M};
_.Hm.Object.defineProperties(te.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;if((M=this.data)==null?0:(d=M.image)==null?0:(N=d.thumbnails)==null?0:(R=N[0])==null?0:R.url)return M=this.data.image.thumbnails[0].url,M.startsWith("data:image/svg+xml")?VL(M):_.gH(M)}}});
te.prototype.dataChanged=te.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],te.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],te.prototype,"active",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],te.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],te.prototype,"imageSrc",null);
te=_.G([_.f({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],te);
_.L(te,"ytd-emoji-suggestion",function(){if(oud!==void 0)return oud;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return oud=M},{mode:1});var rPL=/.*([:@#].*?)$/,GZ=function(){var M=_.n.apply(this,arguments)||this;M.suggestions=[];M.suggestionIndex=-1;M.JSC$13502_lastSuggestionRange=null;return M};
_.v(GZ,_.n);_.F=GZ.prototype;_.F.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.F.getSuggestions=function(M){var d=[],N=CZL(this.emojiManager,M.substr(0,3));if(N)for(var R in N)if(R.toLocaleLowerCase().indexOf(M)===0){var X=N[R];if(X&&X.emojiId){X=Ob(this.emojiManager,X.emojiId);var A=void 0,l=void 0,k=void 0,T=void 0,W=((A=X)==null?0:A.isCustomEmoji)?(l=X)==null?void 0:(k=l.shortcuts)==null?void 0:k[0]:(T=X)==null?void 0:T.emojiId;A=void 0;d.push({suggestion:{image:(A=X)==null?void 0:A.image,alt:W,text:R}});if(d.length>=64)break}}return d?d.sort(function(w,p){return p.suggestion.text<
w.suggestion.text?-1:p.suggestion.text===w.suggestion.text?0:1}):null};
_.F.insertSuggestion=function(M){_.YP(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13502_lastSuggestionRange,text:M.alt});this.dropdown.opened=!1};
_.F.updateSuggestionsAtCaret=function(M){this.updateSuggestions(M,this.retrieveTextBeforeRange(M))};
_.F.offsetStartOfRangeBy=function(M,d){M.startOffset>=d&&M.setStart(M.startContainer,M.startOffset-d)};
_.F.updateSuggestions=function(M,d){var N=this;this.JSC$13502_lastSuggestionRange&&(this.JSC$13502_lastSuggestionRange.detach(),this.JSC$13502_lastSuggestionRange=null);if((d=rPL.exec(d))&&d.length&&(d=d[d.length-1].toLocaleLowerCase(),d.length>2||d===":_")&&(this.offsetStartOfRangeBy(M,d.length),this.JSC$13502_lastSuggestionRange=M,(M=this.getSuggestions(d))&&M.length)){this.suggestions=M;_.bM(this,function(){N.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.F.onKeyDown=function(M){if(this.dropdown.opened)switch(M.key){case "Escape":this.dropdown.opened=!1;M.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);M.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.F.onKeyUp=function(M,d){switch(M.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(d);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(d)}};
_.F.onKeyPress=function(M){M.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),M.preventDefault())};
_.F.changeSuggestionIndex=function(M){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(M+this.suggestions.length)%this.suggestions.length,M=this.dropdownContent.children[this.suggestionIndex],M.active=!0,this.dropdownContent.scrollTop=M.offsetTop)};
_.F.retrieveTextBeforeRange=function(M){var d=M.startContainer;return d&&d.nodeType===Node.TEXT_NODE?d.textContent.substr(0,M.startOffset):""};
GZ.prototype.onKeyPress=GZ.prototype.onKeyPress;GZ.prototype.onKeyUp=GZ.prototype.onKeyUp;GZ.prototype.onKeyDown=GZ.prototype.onKeyDown;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Array)],GZ.prototype,"suggestions",void 0);_.G([_.H(),_.a("design:type",_.Id)],GZ.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Number)],GZ.prototype,"verticalSuggestionsOffset",void 0);
_.G([_.Z3("#dropdown"),_.a("design:type",Object)],GZ.prototype,"dropdown",void 0);_.G([_.Z3("#dropdown-content"),_.a("design:type",HTMLDivElement)],GZ.prototype,"dropdownContent",void 0);_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],GZ.prototype,"onKeyDown",null);_.G([_.C3("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent,Range]),_.a("design:returntype")],GZ.prototype,"onKeyUp",null);
_.G([_.C3("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],GZ.prototype,"onKeyPress",null);GZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-emoji-input"})],GZ);
_.L(GZ,"ytd-emoji-input",function(){if(PwL!==void 0)return PwL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return PwL=M},{mode:2});var KbV;var al=function(){var M=_.n.apply(this,arguments)||this;M.hasMaxOptions=!1;return M};
_.v(al,_.n);_.F=al.prototype;_.F.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.F.setPrefilledChoices=function(M){var d=this;this.set("pollOptions",[]);var N;for(N=0;N<Math.min(M.length,this.data.maxPollOptions);N++)this.push("pollOptions",M[N].substring(0,this.data.maxPollOptionChars));for(;N<this.data.minPollOptions;N++)this.push("pollOptions","");this.hasMaxOptions=N>=this.data.maxPollOptions;_.bM(this,function(){for(var R=d.pollOptions,X=_.K(d.hostElement).querySelectorAll(".poll-option-input"),A=0;A<X.length;A++)X[A].value=R[A]})};
_.F.focusChanged=function(){_.UO(this.hostElement)};
_.F.onInput=function(){var M=this;_.OH(this,"onInput",function(){M.isValid()?_.YP(M.hostElement,"yt-commentbox-post-enable"):_.YP(M.hostElement,"yt-commentbox-post-disable")},300)};
_.F.setPollOptions=function(){var M=[],d,N=((d=this.data)==null?0:d.minPollOptions)?this.data.minPollOptions:0;for(d=0;d<N;d++)M.push("");return M};
_.F.addPollOption=function(){var M=this;_.YP(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.IQ.addLowPriorityJob(function(){var d;(d=_.K(M.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||d.focus()})};
_.F.onRemovePollOption=function(M){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.YP(this.hostElement,"yt-poll-attachment-dismiss")):(M=this.repeat.indexForElement(M.target.parentNode),M!==null&&(this.splice("pollOptions",M,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.YP(this.hostElement,"yt-commentbox-post-enable"))))};
_.F.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.F.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var M=0,d=this.pollOptions.length;M<d;M++)if(this.pollOptions[M].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.F.getPollOptions=function(){return this.pollOptions};
_.F.setPollOptionsFromInputs=function(){for(var M=_.K(this.hostElement).querySelectorAll(".poll-option-input"),d=0;d<M.length;d++)this.pollOptions[d]=M[d].value.trim()};
_.F.clearPollOptions=function(){var M=_.K(this.hostElement).querySelectorAll(".poll-option-input");M=_.V(M);for(var d=M.next();!d.done;d=M.next())d.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.F.getSimpleString=function(M){return _.HD(M)};
_.F.updateValueFromBinding=function(M){if(M.target&&this.pollOptions){var d=Array.from(_.K(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(M.target);if(d>=0){var N;this.pollOptions[d]=(N=M.detail.value)!=null?N:"";this.notifyPath("pollOptions."+d)}}};
al.prototype.dataChanged=al.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],al.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],al.prototype,"pollOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],al.prototype,"hasMaxOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],al.prototype,"enableCreationBox",void 0);
_.G([_.Z3("#repeat"),_.a("design:type",T3)],al.prototype,"repeat",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],al.prototype,"dataChanged",null);al=_.G([_.f({disableElementRegistration:!0,is:"ytd-poll-attachment"})],al);
_.L(al,"ytd-poll-attachment",function(){if(KbV!==void 0)return KbV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return KbV=M},{mode:2});var yPz;var JPd;var cPo;var SGm;var UC=function(){return _.n.apply(this,arguments)||this};
_.v(UC,_.n);_.Hm.Object.defineProperties(UC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UC.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],UC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],UC.prototype,"focused",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("focused"),_.a("design:type",Object),_.a("design:paramtypes",[])],UC.prototype,"ariaSelected",null);UC=_.G([_.w4({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],UC);
_.L(UC,"yt-user-mention-suggestion-renderer",function(){if(SGm===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;cPo===void 0&&(cPo=document.createElement("template"));var R=cPo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);SGm=M}M=SGm;return M},{mode:2});var zoJ;var bTV;var uR=function(){var M=_.n.apply(this,arguments)||this;M.focusedSuggestionIndex=-1;return M};
_.v(uR,_.n);_.F=uR.prototype;_.F.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.F.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.F.setFocusedSuggestionIndex=function(M){!this.data||!this.data.suggestions||M<0||M>=this.data.suggestions.length||(this.focusedSuggestionIndex=M,M=this.getSuggestionId(M),this._setFocusedSuggestionId(M))};
_.F.advanceSuggestion=function(M){this.focusedSuggestionIndex===-1||M!==-1&&M!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+M),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.F.ensureSuggestionVisible=function(M){M=this.getSuggestionId(M);M=_.K(this.hostElement).querySelector("[id="+M+"]");M!=null&&(M.offsetTop<this.hostElement.scrollTop?M.scrollIntoView(!0):M.offsetTop+M.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&M.scrollIntoView(!1))};
_.F.getSuggestionId=function(M){return"user-mention-suggestion-"+M};
_.F.onSuggestionTap=function(M){var d=_.q(M.model.item,pnL);this.ytRendererBehavior.logExplicitClick(d);_.YP(this.hostElement,"yt-user-mention-suggestion-selected",{data:d,index:M.model.index})};
_.F.onSuggestionMouseMove=function(M){M.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(M.model.index)};
_.F.isSuggestionFocused=function(M,d){return M===d};
_.F.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.F.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("focused-suggestion-id-changed",this.focusedSuggestionId))};
uR.prototype.focusedSuggestionIdChangedForBinding=uR.prototype.focusedSuggestionIdChangedForBinding;uR.prototype.onDomChange=uR.prototype.onDomChange;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uR.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],uR.prototype,"focusedSuggestionIndex",void 0);_.G([_.H({readOnly:!0}),_.a("design:type",String)],uR.prototype,"focusedSuggestionId",void 0);
_.G([_.C3("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uR.prototype,"onDomChange",null);_.G([_.xB("focusedSuggestionId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uR.prototype,"focusedSuggestionIdChangedForBinding",null);uR=_.G([_.w4({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],uR);
_.L(uR,"yt-user-mention-suggestions-dropdown",function(){if(bTV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;zoJ===void 0&&(zoJ=document.createElement("template"));var R=zoJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);bTV=M}M=bTV;return M},{mode:2});var Cz=function(){var M=_.n.apply(this,arguments)||this;M.suggestionsResponse=null;M.activeMention=null;M.selectionChangeListener=M.onSelectionChange.bind(M);M.handlesEnabled=_.Q("enable_handles_in_mention_suggest_posts");M.handlesInMentionSuggestionsEnabled=_.Q("handles_in_mention_suggest_posts");M.zeroPrefixMentionSuggestionEnabled=_.Q("enable_zero_prefix_mention_suggestion_web");M.pendingQuery=null;M.flowNonce=null;return M};
_.v(Cz,_.n);_.F=Cz.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.F.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.F.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.F.hasSuggestions=function(M){return!!(M&&M.suggestions&&M.suggestions.length>0)};
_.F.onInput=function(){var M=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var d=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),N=this.activeMention.JSC$9140_getText().slice(-1)===" ",R=this.activeMention.JSC$9140_getText().slice(-2,-1)===" ",X="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9140_getText().slice(-2,-1))>=
0;X=this.zeroPrefixMentionSuggestionEnabled&&X;if(this.activeMention.isCollapsed()||(d||R||X)&&N)this.cancelActiveMention();else{var A=this.activeMention.JSC$9140_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.OH(this,"requestSuggestions",function(){M.requestSuggestions(A)},100)}}}};
_.F.onServiceRequestSent=function(M){M.stopPropagation()};
_.F.onServiceRequestCompleted=function(M){M.stopPropagation();M=M.detail.data;M.query&&(!this.pendingQuery||this.pendingQuery!==M.query)||!this.zeroPrefixMentionSuggestionEnabled&&M.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=M,this.hasSuggestions(M)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.F.onServiceRequestError=function(M){M.stopPropagation()};
_.F.onUserMentionSuggestionSelected=function(M){this.selectSuggestion(M.detail.data,M.detail.index)};
_.F.onSelectionChange=function(){if(this.activeMention){var M=_.gW(),d=this.activeMention.JSC$9140_containsRange(M);M=M&&this.containsHelper(this.dropdown,M.getContainer());d||M||this.cancelActiveMention()}};
_.F.containsHelper=function(M,d){var N;if(((N=window.ShadyDOM)==null?void 0:N.noPatch)===!0)return M.contains(d);for(;d;){if(d===M)return!0;d=d instanceof ShadowRoot?d.host:d.parentNode}return!1};
_.F.maybeStartSuggest=function(){var M=_.gW();if(M&&M.isCollapsed()){var d=M.JSC$9140_getStartNode(),N=M.JSC$9140_getStartOffset();if(d instanceof Text&&!(N<1)){var R=d.textContent;!(R=R&&R.charAt(N-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(R)<0||(this.activeMention=_.JV(d,N-1,M.JSC$9140_getEndNode(),M.JSC$9140_getEndOffset()),this.flowNonce=Qb(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.F.updateActiveMention=function(){if(this.activeMention){var M=_.gW();M&&M.isCollapsed()&&(this.activeMention=_.JV(this.activeMention.JSC$9140_getStartNode(),this.activeMention.JSC$9140_getStartOffset(),M.JSC$9140_getEndNode(),M.JSC$9140_getEndOffset()))}};
_.F.requestSuggestions=function(M){if(this.activeMention){var d={suggestions_query:M};this.pendingQuery=M;_.dU(this.hostElement,[this.suggestionsEndpoint,d])}};
_.F.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()};
_.F.focusPreviousSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),M.preventDefault())};
_.F.focusNextSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),M.preventDefault())};
_.F.selectFocusedSuggestion=function(M){if(this.hasSuggestions(this.suggestionsResponse)){var d=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.q(d,pnL)&&(this.selectSuggestion(_.q(d,pnL),this.dropdown.focusedSuggestionIndex),M.preventDefault())}};
_.F.selectSuggestion=function(M,d){if(M){var N=this.activeMention;if(N){var R=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&M.handle?_.yR(R,"\u00a0\u2068@"+M.handle+"\u2069\u00a0"):this.handlesEnabled?_.yR(R,"\u00a0"+M.displayName+"\u00a0"):_.yR(R,"\u00a0@"+M.displayName+"\u00a0");IO(R,"/channel/"+M.channelId);R.classList.add("yt-formatted-string","yt-simple-endpoint");R.setAttribute("spellcheck","false");N.isCollapsed()||N.JSC$9140_removeContents();N.insertNode(R,!0);M=document.createTextNode(" ");
R.parentNode.insertBefore(M,R.nextSibling);window.getSelection().collapse(M,1);d={suggestionSelected:{suggestionIndex:d}};if(this.zeroPrefixMentionSuggestionEnabled){var X;d.suggestionSelected.isZeroPrefix=((X=this.suggestionsResponse)==null?void 0:X.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",d);this.cancelActiveMention();_.YP(this.hostElement,"yt-mention-inserted")}}};
_.F.getPositionTarget=function(M){return M&&M.getBrowserRangeObject()};
_.F.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.F.onFocusedSuggestionIdChanged=function(M){var d=_.n2S(this.hostElement)[0];d&&(M.detail.value?d.setAttribute("aria-activedescendant",M.detail.value):d.removeAttribute("aria-activedescendant"))};
_.F.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.F.logGELEvent=function(M,d){M={eventType:M,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};d&&(M=Object.assign(M,d));_.hQ("userMentionAutoCompleteBoxEvent",M)};
Cz.prototype.onDomChange=Cz.prototype.onDomChange;Cz.prototype.onUserMentionSuggestionSelected=Cz.prototype.onUserMentionSuggestionSelected;Cz.prototype.onServiceRequestError=Cz.prototype.onServiceRequestError;Cz.prototype.onServiceRequestCompleted=Cz.prototype.onServiceRequestCompleted;Cz.prototype.onServiceRequestSent=Cz.prototype.onServiceRequestSent;Cz.prototype.onInput=Cz.prototype.onInput;_.G([_.S(_.pG),_.a("design:type",Object)],Cz.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Cz.prototype,"suggestionsEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],Cz.prototype,"suggestionsResponse",void 0);_.G([_.H(),_.a("design:type",Object)],Cz.prototype,"activeMention",void 0);_.G([_.Z3("#dropdown"),_.a("design:type",Object)],Cz.prototype,"dropdown",void 0);_.G([_.Z3("#iron-dropdown"),_.a("design:type",Object)],Cz.prototype,"ironDropdown",void 0);
_.G([_.C3("input"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Cz.prototype,"onInput",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onServiceRequestError",null);_.G([_.C3("yt-user-mention-suggestion-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onUserMentionSuggestionSelected",null);
_.G([_.C3("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Cz.prototype,"onDomChange",null);Cz=_.G([_.w4({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Cz);
_.L(Cz,"yt-user-mention-autosuggest-input",function(){if(JPd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yPz===void 0&&(yPz=document.createElement("template"));var R=yPz;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JPd=M}M=JPd;return M},{mode:2});var x7=null;
_.kQ({is:"ytd-commentbox",_template:function(){if(sMd!==void 0)return sMd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return sMd=M},
behaviors:[_.Igv.YtHostElementBehavior,_.pG,_.tK.YtActionHandlerBehavior,_.jV.YtComponentBehavior,_.L$.YtRendererstamperBehavior,_.BNo.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(M,d){return _.Rz(M.entities,"aadcGuidelinesStateEntityPayload",d)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(M,d){return _.Rz(M.entities,"commentboxStateEntity",d)},
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 _.j$}},
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:_.Q("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.Q("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",_.ux(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(M){this.fire(M?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(M){this.set("submitButtonDisabled",void 0);this.clear();M&&this.computeIsEmojiButtonDisplayed_(M)&&(M=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&M.updateEmojiCategories()},
observePrefilledImage_:function(M,d,N){this.isValidPrefilledImage_(M,d,N)&&(this.prefilledAttachment_="image",this.prefilledImageData_=d,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(M,d){this.isValidPrefilledVideo_(M,d)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(M){M&&M.pollData&&M.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(M.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.lc();this.focus()},
detached:function(){document.removeEventListener("tap",_.ux(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var d=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(d,M);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var M=_.gW();if(M){M=M.getBrowserRangeObject();for(var d=M.commonAncestorContainer;d;){if(d===this.getEditableTextArea_())return M;d=d.parentNode}}M=this.getEditableTextArea_();M=_.y0(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,d,N){(d=this.emojiManager.createDocumentFragment(d,!0,!1,N===void 0?!0:N))&&d.childNodes.length!==0&&(M.collapsed||M.deleteContents(),N=d.lastChild,M.insertNode(d),_.dXd(N).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var M=_.gW();if(M){var d=M.JSC$9140_getStartNode(),N=M.JSC$9140_getEndNode();if(kOp(d)&&kOp(N)){var R=M.JSC$9140_getStartOffset(),X;if(_.kh&&d.nodeType===Node.ELEMENT_NODE&&(X=_.wPm(d)))_.y0(X,0).select();else{X=kD(d)?d:_.jM(d,kD);var A=kD(N)?N:_.jM(N,kD);if(X||A)if(M.isCollapsed()){if(d.nodeType===Node.TEXT_NODE){M=!0;R===d.length&&(M=!1);if(x7==="end"||x7==="right")M=!1;d=d.parentNode;M=[].concat(_.wu(d.parentNode.childNodes)).indexOf(d)+(M?0:1);_.y0(d.parentNode,M).select()}}else X?
X.previousSibling&&X.previousSibling.length>0?_.JV(N,M.JSC$9140_getEndOffset(),X.previousSibling,X.previousSibling.length-1).select():(d=document.createTextNode("\u200b"),X.parentNode.insertBefore(d,X),_.JV(N,M.JSC$9140_getEndOffset(),d,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.JV(d,M.JSC$9140_getStartOffset(),A.nextSibling,1).select():(N=document.createTextNode("\u200b"),A.parentNode.insertBefore(N,A.nextSibling),_.JV(d,M.JSC$9140_getStartOffset(),N,N.length).select()));x7=null}}else x7=
null}else x7=null},
leftKeyPressed_:function(){x7="left"},
rightKeyPressed_:function(){x7="right"},
endKeyPressed_:function(){x7="end"},
maybeDeleteChip_:function(){var M=prr(!0);if(M){var d=_.gW(),N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();_.sY(N,d,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=prr(!1);if(M){var d=_.gW(),N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();_.sY(N,d,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var d=_.gW();if(d.isCollapsed()){var N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();var R=mz6(N,d,!0);R&&(_.sY(N,d,R,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var d=_.gW();if(d.isCollapsed()){var N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();var R=mz6(N,d,!1);R&&(_.sY(N,d,R,R.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onTap_:function(M){if(!M.defaultPrevented&&(M.currentTarget.tagName==="YTD-COMMENTBOX"&&kD(M.target)&&M.preventDefault(),this.isEmojiPickerDisplayed)){var d=this.$$("#emojis"),N=this.$$("#emoji-button"),R=this.getEditableTextArea_();if((M=M.path?M.path:M.composedPath&&M.composedPath())&&!M.includes(d)&&!M.includes(R)&&!M.includes(N))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(M,d,N){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&d!==void 0&&d.encryptedBlobId!==null&&d.sourceExternalVideoId!==null&&N!==void 0&&N.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(M,d){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!d&&!!d.videoRenderer&&!!d.videoRenderer.videoId},
isValidPrefilledAttachment_:function(M,d,N){return this.isValidPrefilledImage_(M,d,N)||this.isValidPrefilledVideo_(M,N)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.Q("enable_multi_image_post_creation")){var M=this.$$("ytd-backstage-multi-image-select-renderer");M&&M.hasImages()&&M.cancel()}else(M=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&M.cancel();(M=this.$["poll-attachment"])&&this.hasPoll_&&M.clearPollOptions();(M=this.$["image-poll-attachment"])&&this.hasImagePoll_&&M.resetPollOptions();(M=this.$["quiz-attachment"])&&this.hasQuiz_&&M.resetQuizOptions();
(M=this.$["video-link-attachment"])&&this.hasVideo_&&M.cancel();(M=this.$["access-restrictions-selector"].firstElementChild)&&M.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.K(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.K(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(M,d){M=Dzv(M,this.emojiManager,d).cloneNode(!0);for(d=M.firstChild;d;)if(d.nodeType!==1)d=d.nextSibling;else switch(d.tagName){case "BR":var N=_.jI();_.OJd(N,d);d=N.nextSibling;break;case "DIV":(N=d.lastChild)&&d.nextSibling&&_.rl(_.jI(),N);d.previousSibling&&(d.previousSibling.nodeType===1||d.previousSibling.nodeType===3&&!d.previousSibling.textContent.endsWith("\n"))&&_.ox(_.jI(),d);N&&N.nodeName==="BR"&&_.l_(N);N=d;d.hasChildNodes()?(d=d.firstChild,
_.jCL(N)):(d=d.nextSibling,_.l_(N));break;default:d=d.nextSibling}return heN(M)},
onAddImageError_:function(M){M.stopPropagation();this.errorMessage_=_.ep(M.detail)},
setTextAreaValue_:function(M){M||(M="");var d=this.getEditableFormattedString_();d.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});d.text=M},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();x7=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.y0(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.rK("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),d=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",d)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var M;return WkZ((M=this.$["quiz-attachment"])==null?void 0:M.getExplanationText())||WkZ(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var d=this.getInputRange_();d&&(M=this.emojiInput.retrieveTextBeforeRange(d))}this.insertText_(M,!0);this.updateCharCount_();this.setSubmitButton_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(M){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(M)},
onPasteEmoji_:function(M){M.preventDefault();M.stopImmediatePropagation();M=M.clipboardData.getData("text/plain");this.insertText_(M,!1,!1)},
insertText_:function(M,d,N){d=d===void 0?!1:d;N=N===void 0?!0:N;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(d&&this.emojiInput.offsetStartOfRangeBy(R,M.length),this.insertTextWithEmojis_(R,M,N),Tdq(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,M),this.updateSuggestionOffset_(R)))}},
setSubmitButton_:function(){if(this.data){var M=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",d=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(M||d){var N=this.getTextAreaValue().trim();d=N===this.previousText_;N=!N||this.aboveCharLimit_;M&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(N=this.aboveCharLimit_);this.submitButtonDisabled=
d||N||!this.getTextLength();M&&_.Q("enable_post_scheduling")&&(this.submitButtonDisabled=d&&!this.scheduledPublishTimeSec_||N)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.HD,computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computeFooterMessageClass_:function(M,d){return d?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(M,d){return d?d:M},
computeFooterMessageHidden_:function(M,d){return!d&&!M},
computePlaceholderText_:function(M,d,N){return(N==="video"||N==="image")&&(M==null?0:M.prefilledPlaceholderText)?M==null?void 0:M.prefilledPlaceholderText:d==="poll"||d==="image-poll"?M==null?void 0:M.pollPostPlaceholderText:d==="quiz"?M==null?void 0:M.quizPostPlaceholderText:d==="image"?M==null?void 0:M.imagePostPlaceholderText:M==null?void 0:M.placeholderText},
computeHideAttachmentButtons_:function(M,d,N,R){return M===void 0?!1:R&&this.getSimpleString(R)===this.getSimpleString(M.rateLimitErrorMessage)?!0:d!=="none"||N!=="none"||!M.videoLinkButton&&!M.pollButton&&!M.imagePollButton&&!M.quizButton&&!M.imageButton},
computeHideDismissableAttachment_:function(M){return M!=="image"&&M!=="video"},
computeHasVideo_:function(M){return M==="video"},
computeHasImage_:function(M){return M==="image"},
computeHasPoll_:function(M){return M==="poll"},
computeHasImagePoll_:function(M){return M==="image-poll"},
computeHasQuiz_:function(M){return M==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(M){return M&&M.backstageAttachment?M.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!M.backstageAttachment.quizRenderer&&!M.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(M){if(this.isValidPrefilledAttachment_(M.purpose,M.prefilledImageData,M.backstageAttachment))return M.backstageAttachment},
computeEditAttachment_:function(M){if(this.computePrefilledContent_(M)===void 0)return M.backstageAttachment},
computeAuthorThumbnailDimension_:function(M,d){return M&&!d?24:40},
computeImageUploadEndpoint_:function(M){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",M)},
computeRateLimitErrorCommands_:function(M){var d,N;return M==null?void 0:(d=M.advancedTierFeatures)==null?void 0:(N=d.rateLimit)==null?void 0:N.rateLimitCommands},
computeIsBackstageComment_:function(M){return!(!M||M!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)||this.get("replyButton.buttonRenderer.serviceEndpoint",M)||this.get("postButton.buttonRenderer.serviceEndpoint",M)},
computeSubmitButtonOverride:function(){if(_.Q("web_modern_buttons")){var M,d;return{segmentedPosition:this.dropdownSchedulePanel_||!((M=this.data)==null?0:(d=M.postOptionsMenu)==null?0:d.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.Q("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(M,d){M=this.get("submitButton.buttonRenderer",M)||this.get("replyButton.buttonRenderer",M)||this.get("postButton.buttonRenderer",M);d&&(M=d);M&&(M=Object.assign({},M),M.serviceEndpoint=void 0,M.isDisabled=this.submitButtonDisabled);return M},
computeHasExternalLinksAccess_:function(M){if(_.Q("enable_rfa_external_links")){var d,N,R;return(R=M==null?void 0:(d=M.advancedTierFeatures)==null?void 0:(N=d.externalLinks)==null?void 0:N.allowExternalLinks)!=null?R:!0}return!0},
computeIsEmojiButtonDisplayed_:function(M){return M.emojiButton&&M.emojiPicker&&M.emojiPicker.emojiPickerRenderer&&M.emojiPicker.emojiPickerRenderer.categories?M.emojiPicker.emojiPickerRenderer.categories.find(function(d){return d.emojiPickerCategoryRenderer?d.emojiPickerCategoryRenderer.emojiIds&&d.emojiPickerCategoryRenderer.emojiIds.length>0:d.emojiPickerUpsellCategoryRenderer?d.emojiPickerUpsellCategoryRenderer.emojis&&d.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(M){return M.charLimit?M.charLimit:null},
computeDropdownSchedulingPanel_:function(M,d){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&d)return d},
computeInlineSchedulingPanel_:function(M,d){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&d)return d},
computeHideAuthorThumbnail_:function(M,d){return M||this.computeUseIdentityChip_(d)},
computeHideIdentityChipRenderer_:function(M,d){return M||!this.computeUseIdentityChip_(d)},
computeUseIdentityChip_:function(M){return!!M&&!!M.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(M){var d,N,R,X;(M==null?0:(d=M.detail)==null?0:(N=d.endpoint)==null?0:N.ypcGetOffersEndpoint)||(M==null?0:(R=M.detail)==null?0:(X=R.endpoint)==null?0:X.ypcOffersEndpoint)?(M.stopPropagation(),_.dU(this,[M.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(M.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(M){this.addedAttachment="video";this.selectedVideoId_=M.detail.videoId},
commentboxStateEntityChanged_:function(M){var d=this;(M==null?void 0:M.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(M==null?void 0:M.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){d.focus()})},
onYtServiceRequestSent_:function(M,d){if(d.actions)for(M=_.V(d.actions),d=M.next();!d.done;d=M.next())d.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(M){this.isLoading=!1;var d=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",M),N,R,X,A=M==null?void 0:(N=M.detail)==null?void 0:(R=N.data)==null?void 0:(X=R.actionResult)==null?void 0:X.commentboxStateEntityKey;if(d)this.errorMessage_=d;else if(A){var l;this.dismissData_=M==null?void 0:(l=M.detail)==null?void 0:l.data;this.commentboxStateKey_=A}else{this.clear();var k;this.fire("yt-commentbox-dismiss",M==null?void 0:(k=M.detail)==
null?void 0:k.data)}},
onYtServiceRequestError_:function(M){M.stopPropagation();this.isLoading=!1;var d,N;if(((d=this.data)==null?void 0:d.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((N=this.data)==null?void 0:N.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(d=this.get("detail.error.args",M)||[],d.length>1&&d[1].message){this.handlePostsServiceRequestError_(d[1].message);return}(M=this.get("detail.error.message",M))?this.errorMessage_=this.data.errorMessage||_.ep(M):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(M){if(_.Q("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var d=_.V(this.rateLimitErrorCommands),N=d.next();!N.done;N=d.next())if(N=N.value,N.errorLabel===M){_.Zc(N.command,this.hostElement);return}this.errorMessage_=_.ep(M)},
submitIfNotBackstagePost_:function(M){if(!this.isBackstagePost)this.onSubmit_(M)},
onSubmit_:function(M){var d=this,N,R,X,A,l,k,T,W,w,p,m,I,O,y,c;return _.B(function(e){switch(e.nextAddress){case 1:M.stopPropagation();if(!d.serviceEndpoint||!d.isValidInput_())return e.return();if(d.shouldShowPostAadcNotice_())return d.showPostAadcNotice_(),e.return();if(d.shouldShowCommentAadcNotice_())return d.showCommentAadcNotice_(),e.return();if(!(d.$$("ytd-backstage-multi-image-select-renderer")&&d.hasImage_&&_.Q("enable_multi_image_post_creation"))){e.jumpTo(2);break}N=d.$$("ytd-backstage-multi-image-select-renderer");
return _.D(e,N.getAllUploadStatuses(),3);case 3:R=e.yieldResult;if(!R)return e.return();X=_.V(R);for(A=X.next();!A.done;A=X.next())if(l=A.value,l.encryptedBlobId===void 0)return d.isLoading=!1,T=k=void 0,d.errorMessage_=(T=(k=d.imageUploadEndpoint_)==null?void 0:k.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?T:null,e.return();return e.return(d.submitForm_(void 0,void 0,void 0,void 0,N.images,d.taggedVideoId_));case 2:if(!d.hasImagePoll_||!d.$["image-poll-attachment"]){e.jumpTo(4);
break}return _.D(e,d.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:W=e.yieldResult;if(!W)return e.return();w=_.V(W);for(p=w.next();!p.done;p=w.next())if(m=p.value,!m.encryptedBlobId)return d.isLoading=!1,I=void 0,d.errorMessage_=(I=d.data.errorMessage)!=null?I:null,e.return();case 4:y=(O=d.$$("ytd-backstage-image-select-renderer"))&&O.uploadPromise(),c=d.getSharedPostId_(),y?y.then(function(){d.submitForm_.apply(d,_.wu(_.wH.apply(0,arguments)))}).catch(function(t){d.isLoading=!1;
d.errorMessage_=_.ep(t.message)}):d.selectedVideoId_?d.submitForm_(void 0,d.selectedVideoId_):d.prefilledAttachment_==="image"?d.submitForm_(d.prefilledImageData_.encryptedBlobId,void 0,void 0,d.prefilledImageData_.sourceExternalVideoId,void 0,d.taggedVideoId_):d.prefilledAttachment_==="video"?d.submitForm_(void 0,d.data.backstageAttachment.videoRenderer.videoId):c?d.submitForm_(void 0,void 0,c):d.taggedVideoId_!==void 0?d.submitForm_(void 0,void 0,void 0,void 0,void 0,d.taggedVideoId_):d.submitForm_(),
_.Vy(e)}})},
openSchedulingPanel:function(M){M&&M.scheduleButton&&M.scheduleButton.buttonRenderer&&(this.scheduleButton_=M.scheduleButton.buttonRenderer);M&&M.dateTimePicker&&this.set("data.schedulingDateTimePicker",M.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(M){M.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(M){M.stopPropagation();M.detail.alertMessage&&(this.alertMessage_=M.detail.alertMessage)},
onImageSelected_:function(M){M.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(M){M.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(M.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(M){var d=this.$["video-link-attachment"];d&&d.onLaunchVideoPicker(M)},
onAttachmentDismiss_:function(M){M.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.Q("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.Q("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var M;if(this.addedAttachment==="image-poll"&&((M=this.$["image-poll-attachment"])==null||!M.isValid()))return!1;var d;if(this.addedAttachment==="quiz"&&((d=this.$["quiz-attachment"])==null||!d.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;M=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(M=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")M=!0;return M||!!this.getTextAreaValue().trim()},
submitForm_:function(M,d,N,R,X,A){var l=this.getTextAreaValue().trim(),k={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&l===this.previousText_&&(l=void 0);l!==void 0&&(k.comment_text=l);this.isLoading=!0;A!=void 0&&(k.tagged_video_id=A);M?(k.image_blob_id=M,this.imagePreviewCoordinates_&&(k.image_preview_coordinates=this.imagePreviewCoordinates_)):d?k.attached_video_id=d:N?k.shared_post_id=N:X&&X.length>0&&(k.images_data=X.map(function(T){return{encryptedBlobId:T.encryptedBlobId,
previewCoordinates:T.previewCoordinates}}));
R&&(k.source_video_id=R);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(k.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(k.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(k.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.Q("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(k.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.Q("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(k.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.dU(this,[this.serviceEndpoint,k])},
onIsInputFocusChanged_:function(M,d){M?this.fire("yt-autonav-pause-focus"):d!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var d=this.getEditableTextArea_();[].concat(_.wu(M.dataTransfer.items)).forEach(function(N){N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(R){d.appendChild(document.createTextNode(R))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
computeSubmitButtonClass_:function(M,d){return!d||M?"":"with-options"},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.K(this.emojiInput).querySelector("#dropdown")){var d=this.getEditableTextArea_().getBoundingClientRect().bottom,N=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(d-N)+5;d=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-d;_.K(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(M){if(_.Q("enable_post_scheduling")&&this.data&&this.data.purpose){M=M.detail;if(Math.floor(Date.now()/1E3)>=M)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var d=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(d)||d!==M?this.scheduledPublishTimeSec_=M:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=M;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var M=["image-button","image-poll-button","poll-button"];_.Q("enable_quiz_creation")&&M.push("quiz-button");_.Q("auto_convert_posts_video_tag")||M.push("video-link-button");return M},
getButtonRenderer:function(M,d){if(M)switch(d){case "video-link-button":var N;return((N=M.videoLinkButton)==null?void 0:N.buttonRenderer)||void 0;case "image-button":var R;return((R=M.imageButton)==null?void 0:R.buttonRenderer)||void 0;case "poll-button":var X;return((X=M.pollButton)==null?void 0:X.buttonRenderer)||void 0;case "image-poll-button":var A;return((A=M.imagePollButton)==null?void 0:A.buttonRenderer)||void 0;case "quiz-button":var l;return((l=M.quizButton)==null?void 0:l.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var M;return(M=this.data)==null||!M.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var M,d;return!((M=this.data)==null||!M.openAadcDialog)&&!((d=this.aadcGuidelinesState_)==null||!d.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.rK("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var M;((M=this.data)==null?0:M.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Pf("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(M){M.clickTrackingParams&&_.Nx().clickCommand(M);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ZI(this,"yt-close-popup-action")},
onHideIdentityChip:function(M){var d;this.set("data.placeholderText",(d=M.hideIdentityChipAction)==null?void 0:d.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Y7=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;M.modern=_.Q("web_modern_buttons");M.roundedContainer=!0;M.dropdownButtonOverride=_.Q("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;M.inPopupContainer=!1;M.isCommentboxLoading=!1;var d=["image-button","image-poll-button","poll-button"];_.Q("enable_quiz_creation")&&d.push("quiz-button");_.Q("auto_convert_posts_video_tag")||d.push("video-link-button");M.attachmentButtonIds=d;M.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return M};
_.v(Y7,_.n);_.F=Y7.prototype;_.F.computeButtonOverride=function(){var M;return((M=this.data)==null?0:M.postOptionsMenu)&&_.Q("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.F.configureRendererStamper=function(){var M={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.Q("auto_convert_posts_video_tag")||(M["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return M};
_.F.ready=function(){var M=this,d=_.K(this.hostElement).querySelector("#placeholder-area"),N=function(R){M.onOpen(R)};
d.addEventListener("tap",N);d.addEventListener("keypress",N)};
_.F.showButtonEduTooltip=function(){var M,d,N,R,X,A,l;if(_.Q("enable_quiz_creation")&&((M=this.data)==null?0:(d=M.quizButton)==null?0:(N=d.buttonRenderer)==null?0:(R=N.hint)==null?0:(X=R.hintRenderer)==null?0:(A=X.content)==null?0:(l=A.bubbleHintRenderer)==null?0:l.text)&&(_.ug.getInstance(),M=C4(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(M==null?void 0:
M.length)>0)){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.quizButton}});return}var k;if((k=this.data)==null?0:k.imagePollButtonTooltip)if(_.ug.getInstance(),k=C4(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(k==null?void 0:k.length)>0){this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.imagePollButton}});return}var T;_.Q("enable_multi_image_post_creation")&&
((T=this.data)==null?0:T.multiImageButtonTooltip)&&(_.ug.getInstance(),T=C4(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(T==null?void 0:T.length)>0&&this.ytComponentBehavior.resolveCommand(T[0],{form:{element:this.imageButton}}))};
_.F.onCreatePollAction=function(M){_.q(M,K2J)&&(this.JSC$13557_commentbox.addedAttachment="poll",this.openDialog())};
_.F.onAddVideoLinkAction=function(M){if(_.q(M,rMm))this.JSC$13557_commentbox.onAddVideoLink(M)};
_.F.onShowSchedulingPanelCommand=function(M){(M=_.q(M,F2V))&&this.openSchedulingPanel(M)};
_.F.onCreateImagePollCommand=function(M){_.q(M,BJg)&&(this.JSC$13557_commentbox.openImagePollComponent(),this.openDialog())};
_.F.onCreateQuizCommand=function(M){_.q(M,kJe)&&(this.JSC$13557_commentbox.openQuizComponent(),this.openDialog())};
_.F.openSchedulingPanel=function(M){_.Q("enable_post_scheduling")&&(this.openDialog(),this.JSC$13557_commentbox.openSchedulingPanel(M))};
_.F.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.JSC$13557_commentbox.clear(),this.closeDialog())};
_.F.onOpen=function(M){M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||(this.data.prepareAccountEndpoint?_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.F.onYtCommentboxDismiss=function(){this.closeDialog()};
_.F.onYtCommentboxLoadingStart=function(M){M.stopPropagation();this.isCommentboxLoading=!0};
_.F.onYtCommentboxLoadingEnd=function(M){M.stopPropagation();this.isCommentboxLoading=!1};
_.F.onYtVideoLinkButtonCancel=function(M){M.stopPropagation();this.onOpen(M)};
_.F.onYtVideoLinkSelected=function(M){M.stopPropagation();this.onOpen(M)};
_.F.onIronSelect=function(M){M.stopPropagation();M.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=M.detail.item.value&&(this.accessRestriction?(this.accessRestriction=M.detail.item.value,this.onOpen(M)):this.accessRestriction=M.detail.item.value)};
_.F.onYtNavigate=function(M){this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(this.JSC$13557_commentbox.addedAttachment="image",this.JSC$13557_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.F.onRequestSent=function(M){if(_.Q("web_button_rework"))for(var d=_.V(M.detail),N=d.next();!N.done;N=d.next())_.q(N.value,IAL)&&(this.JSC$13557_commentbox.addedAttachment="image",this.JSC$13557_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.F.openDialog=function(){this.JSC$13557_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13557_commentbox.focus()};
_.F.onPopupClosed=function(){_.ug.getInstance()};
_.F.computeCreationDisabled=function(M){return!!M};
_.F.computeIsCreationDialog=function(M){return!!M&&M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.F.computeDisabledPostButton=function(M){if(!M)return null;M.isDisabled=!0;return M};
_.F.computeIsCreationDialogWithHeader=function(M){return!this.inPopupContainer&&!!M&&!!M.authorText&&M.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.F.computeIsHeaderHidden=function(M,d){return!M||d};
_.F.computeDropdownRendererClasses=function(M){return M?["text-secondary-style"]:[]};
_.F.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var M=_.K(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;M&&M.reset()};
Y7.prototype.onPopupClosed=Y7.prototype.onPopupClosed;Y7.prototype.onRequestSent=Y7.prototype.onRequestSent;Y7.prototype.onYtNavigate=Y7.prototype.onYtNavigate;Y7.prototype.onIronSelect=Y7.prototype.onIronSelect;Y7.prototype.onYtVideoLinkSelected=Y7.prototype.onYtVideoLinkSelected;Y7.prototype.onYtVideoLinkButtonCancel=Y7.prototype.onYtVideoLinkButtonCancel;Y7.prototype.onYtCommentboxLoadingEnd=Y7.prototype.onYtCommentboxLoadingEnd;Y7.prototype.onYtCommentboxLoadingStart=Y7.prototype.onYtCommentboxLoadingStart;
Y7.prototype.onYtCommentboxDismiss=Y7.prototype.onYtCommentboxDismiss;Y7.prototype.showButtonEduTooltip=Y7.prototype.showButtonEduTooltip;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Y7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Y7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"isOpen",void 0);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],Y7.prototype,"buttonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"modern",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"roundedContainer",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"dropdownButtonOverride",void 0);_.G([_.H({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.a("design:type",Boolean)],Y7.prototype,"creationDisabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Y7.prototype,"enableCreationBox",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.a("design:type",Boolean)],Y7.prototype,"isCreationDialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Y7.prototype,"inPopupContainer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.a("design:type",Boolean)],Y7.prototype,"isCreationDialogWithHeader",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"accessRestriction",void 0);
_.G([_.H({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.a("design:type",Array)],Y7.prototype,"dropdownRendererClasses",void 0);_.G([_.H(),_.a("design:type",Object)],Y7.prototype,"isCommentboxLoading",void 0);_.G([_.H(),_.a("design:type",Array)],Y7.prototype,"attachmentButtonIds",void 0);_.G([_.Z3("#image-button"),_.a("design:type",HTMLElement)],Y7.prototype,"imageButton",void 0);
_.G([_.Z3("#image-poll-button"),_.a("design:type",HTMLElement)],Y7.prototype,"imagePollButton",void 0);_.G([_.Z3("#quiz-button"),_.a("design:type",HTMLElement)],Y7.prototype,"quizButton",void 0);_.G([_.Z3("#commentbox"),_.a("design:type",Object)],Y7.prototype,"JSC$13557_commentbox",void 0);_.G([_.xB("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y7.prototype,"showButtonEduTooltip",null);
_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtCommentboxDismiss",null);_.G([_.C3("yt-commentbox-loading-start"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtCommentboxLoadingStart",null);
_.G([_.C3("yt-commentbox-loading-end"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtCommentboxLoadingEnd",null);_.G([_.C3("yt-video-link-button-cancel"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtVideoLinkButtonCancel",null);
_.G([_.C3("yt-video-link-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtVideoLinkSelected",null);_.G([_.C3("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onIronSelect",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onYtNavigate",null);
_.G([_.C3("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Y7.prototype,"onRequestSent",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Y7.prototype,"onPopupClosed",null);Y7=_.G([_.f({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Y7);
_.L(Y7,"ytd-backstage-post-dialog-renderer",function(){if(Fbo!==void 0)return Fbo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Fbo=M},{mode:1});var eom;var HTV;var ZQ=function(){return _.n.apply(this,arguments)||this};
_.v(ZQ,_.n);_.F=ZQ.prototype;_.F.computeHeartButtonStyle=function(M){return(M==null?0:M.styleType)?M.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.F.onYtButtonTap=function(){if(this.data.isEnabled){var M=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(M=this.getEndpoint(M))&&_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})}else(M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(M)};
_.F.toggle=function(M){this.set("data.isHearted",M!==void 0?M:!this.data.isHearted)};
_.F.getEndpoint=function(M){var d,N=(d=this.data)==null?void 0:d.heartEndpoint,R;d=(R=this.data)==null?void 0:R.unheartEndpoint;if(N&&d)return M?d:N};
_.F.computeButtonAccessibility=function(M,d){var N,R,X=M==null?void 0:(N=M.heartedAccessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label,A,l;M=M==null?void 0:(A=M.unheartedAccessibility)==null?void 0:(l=A.accessibilityData)==null?void 0:l.label;return d?X:M};
_.Hm.Object.defineProperties(ZQ.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var M;return _.Q("kevlar_system_icons")&&!((M=this.data)==null||!M.isHearted)}}});
ZQ.prototype.onYtButtonTap=ZQ.prototype.onYtButtonTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],ZQ.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZQ.prototype,"data",void 0);_.G([_.z("data.isHearted"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZQ.prototype,"heartTooltip",null);
_.G([_.z("data.isHearted"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ZQ.prototype,"iconFilled",null);_.G([_.H({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.a("design:type",String)],ZQ.prototype,"buttonAccessibility",void 0);_.G([_.H({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],ZQ.prototype,"heartButtonStyle",void 0);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZQ.prototype,"onYtButtonTap",null);ZQ=_.G([_.f({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],ZQ);
_.L(ZQ,"ytd-creator-heart-renderer",function(){if(HTV!==void 0)return HTV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HTV=M},{mode:1});var EC=function(){var M=_.n.apply(this,arguments)||this;M.hasCreatorReply=!1;M.buttonOverrides={size:"S",iconPosition:"icon-only"};M.replyButtonOverrides={size:"S",type:"text"};M.forceIconButton=!_.Q("web_modern_buttons");M.modern=_.Q("web_modern_buttons");M.buttonTooltipPosition="bottom";M.systemIcons=_.Q("kevlar_system_icons");M.replyDialog=null;return M};
_.v(EC,_.n);_.F=EC.prototype;
_.F.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]]"}}}}}};
_.F.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.F.dataChange=function(){this.replyDialog&&_.K(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var M,d,N;this.isLiked=this.systemIcons&&!!((M=this.data)==null?0:(d=M.likeButton)==null?0:(N=d.toggleButtonRenderer)==null?0:N.isToggled)};
_.F.computeShowVoteCountBeginning=function(M,d){return M===void 0||d===void 0?!0:M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.F.computeShowVoteCountEnd=function(M,d){return M===void 0||d===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.F.computeShowCommentCount=function(M,d){return M===void 0||d===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!d&&this.ytRendererBehavior.getSimpleString(d)!=="0"};
_.F.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.F.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.F.showReplyDialog=function(M){M&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.K(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=M,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.F.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.F.onRequestSent=function(M){if(_.Q("web_button_rework")){M=_.V(M.detail);for(var d=M.next();!d.done;d=M.next())(d=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",d.value))&&this.showReplyDialog(d)}};
_.F.onYtNavigate=function(M){var d,N;(M=(d=_.q(M.detail.endpoint,_.O7m))==null?void 0:(N=d.dialog)==null?void 0:N.commentReplyDialogRenderer)&&this.showReplyDialog(M)};
_.F.onYtServiceRequestSent=function(M,d){M.stopPropagation();if(d.actions)for(M=0;M<d.actions.length;M++){var N=_.q(d.actions[M],cMm);N&&this.handleUpdateCommentVoteAction(N)}};
_.F.handleUpdateCommentVoteAction=function(M){this.voteCount=M.voteCount||_.ep("0");M.voteStatus==="LIKE"?this.JSC$13568_ytdDislikeToggleButtonRenderer.toggle(!1):M.voteStatus==="DISLIKE"?this.JSC$13568_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13568_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13568_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.F.computeReplyButtonHidden=function(M){return M};
_.F.computeReplyButtonBeginning=function(M){return(M==null?0:M.replyButton)&&M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.F.computeReplyButtonEnd=function(M){return(M==null?0:M.replyButton)&&M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.F.computeActionButtonStyle=function(M){return(M==null?0:M.style)?M.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.F.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.F.onYtToggleButton=function(M){var d,N;this.isLiked=this.systemIcons&&!!((d=M.detail)==null?0:(N=d.actions)==null?0:N.like)};
EC.prototype.onYtToggleButton=EC.prototype.onYtToggleButton;EC.prototype.onButtonTooltipPositionChanged=EC.prototype.onButtonTooltipPositionChanged;EC.prototype.onYtServiceRequestSent=EC.prototype.onYtServiceRequestSent;EC.prototype.onYtNavigate=EC.prototype.onYtNavigate;EC.prototype.onRequestSent=EC.prototype.onRequestSent;EC.prototype.onYtCommentboxDismiss=EC.prototype.onYtCommentboxDismiss;EC.prototype.dataChange=EC.prototype.dataChange;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"voteCount",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"commentCount",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"replyThumbnail",void 0);
_.G([_.H(),_.a("design:type",Object)],EC.prototype,"hasCreatorReply",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EC.prototype,"enableCreationBox",void 0);_.G([_.H({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],EC.prototype,"actionButtonsStyle",void 0);_.G([_.H({computed:"computeReplyButtonBeginning(data)"}),_.a("design:type",Object)],EC.prototype,"replyButtonBeginning",void 0);
_.G([_.H({computed:"computeReplyButtonEnd(data)"}),_.a("design:type",Object)],EC.prototype,"replyButtonEnd",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"buttonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"replyButtonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"forceIconButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EC.prototype,"useCommentIcon",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],EC.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Object)],EC.prototype,"buttonTooltipPosition",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],EC.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EC.prototype,"isLiked",void 0);_.G([_.Z3("ytd-button-renderer"),_.a("design:type",Object)],EC.prototype,"ytdReplyButtonRenderer",void 0);
_.G([_.Z3("#like-button"),_.a("design:type",Object)],EC.prototype,"JSC$13568_ytdLikeToggleButtonRenderer",void 0);_.G([_.Z3("#dislike-button"),_.a("design:type",Object)],EC.prototype,"JSC$13568_ytdDislikeToggleButtonRenderer",void 0);_.G([_.Z3("#reply-dialog"),_.a("design:type",HTMLElement)],EC.prototype,"replyDialogElement",void 0);_.G([_.Z3("#reply-button"),_.a("design:type",HTMLElement)],EC.prototype,"replyButtonElement",void 0);
_.G([_.Z3("#reply-button-end"),_.a("design:type",HTMLElement)],EC.prototype,"replyButtonEndElement",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EC.prototype,"dataChange",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onYtCommentboxDismiss",null);
_.G([_.C3("yt-service-request-sent-button-renderer"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onRequestSent",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onYtNavigate",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],EC.prototype,"onYtServiceRequestSent",null);_.G([_.xB("buttonTooltipPosition"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EC.prototype,"onButtonTooltipPositionChanged",null);
_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],EC.prototype,"onYtToggleButton",null);EC=_.G([_.f({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],EC);
_.L(EC,"ytd-comment-action-buttons-renderer",function(){if(eom!==void 0)return eom;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return eom=M},{mode:1});var num;var MW=function(){return _.n.apply(this,arguments)||this};
_.v(MW,_.n);MW.prototype.focus=function(){_.K(this.hostElement).querySelector("#commentbox").focus()};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],MW.prototype,"zeroStepChannelCreationRenderer",void 0);MW=_.G([_.f({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],MW);
_.L(MW,"ytd-comment-dialog-renderer",function(){if(num!==void 0)return num;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return num=M},{mode:1});var iTL;var dt=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={size:"S",iconPosition:"icon-only"};M.replyButtonOverrides={size:"S",type:"text"};return M};
_.v(dt,_.n);_.F=dt.prototype;_.F.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.F.detached=function(){this.replyBox&&this.replyBox.remove()};
_.F.showReplyDialog=function(M){if(M){var d=this.replyBox;d||(d=document.createElement("ytd-comment-reply-dialog-renderer"),d.id="replybox",_.K(this.replyDialogDiv).appendChild(d));d.data=M;this.replyDialogDiv.hidden=!1;d.openDialog()}};
_.F.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.F.onYtServiceRequestSent=function(M,d){M.stopPropagation();if(d.actions)for(var N=0;N<d.actions.length;N++){var R=_.q(d.actions[N],cMm);R?this.handleUpdateCommentVoteAction(R):M.target===this.heartButton&&this.toggleHeartState()}};
_.F.handleUpdateCommentVoteAction=function(M){var d;(d=this.toolbarState)!=null&&d.key&&this.ytdReduxBehavior.dispatch(_.v5("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:M.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":M.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.F.toggleHeartState=function(){var M;(M=this.toolbarState)!=null&&M.key&&this.ytdReduxBehavior.dispatch(_.v5("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Hm.Object.defineProperties(dt.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return(((M=this.toolbarState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(d=this.toolbarData)==null?void 0:d.likeCountLiked:(N=this.toolbarData)==null?void 0:N.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand)!==void 0&&!_.Q("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d=_.q((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.mX),N,R,X,A,l,k,T,W,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((N=this.toolbarSharedData)==null||!N.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:d!=null?d:_.q((X=this.toolbarSurface)==null?void 0:X.likeCommand,_.mX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.q((A=this.toolbarSurface)==null?void 0:A.unlikeCommand,_.mX),defaultCommand:this.isVisiblyDisabled?_.q((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.mX):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.likeInactiveTooltip,toggledTooltip:(T=this.toolbarData)==null?void 0:T.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(W=this.toolbarData)==null?void 0:W.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d=_.q((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.mX),N,R,X,A,l,k,T,W,w,p;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((N=this.toolbarSharedData)==null||!N.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.q((X=this.toolbarSurface)==null?void 0:X.dislikeCommand,_.mX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:d!=null?d:_.q((A=this.toolbarSurface)==null?void 0:A.undislikeCommand,_.mX),defaultCommand:this.isVisiblyDisabled?_.q((l=this.toolbarSurface)==null?void 0:l.commentDisabledActionCommand,_.mX):void 0,defaultTooltip:(k=this.toolbarData)==null?void 0:k.dislikeInactiveTooltip,toggledTooltip:(T=this.toolbarData)==null?void 0:
T.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(W=this.toolbarSharedData)==null?void 0:W.dislikeReplyButtonA11y:(w=this.toolbarSharedData)==null?void 0:w.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(p=this.toolbarSharedData)==null?void 0:p.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;if(((M=this.toolbarState)==null?void 0:M.heartState)!==void 0&&((d=this.toolbarState)==null?void 0:d.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((N=this.toolbarState)==null?void 0:N.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var R,X,A,l,k,T,W,w,p,m,I,O,y,c;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(R=this.toolbarData)==null?void 0:R.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((l=this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.q((T=this.toolbarSurface)==null?void 0:T.heartCommand,
_.mX),unheartEndpoint:this.isVisiblyDisabled?void 0:_.q((W=this.toolbarSurface)==null?void 0:W.unheartCommand,_.mX),disabledEndpoint:this.isVisiblyDisabled?_.q((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.mX):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(p=this.toolbarData)==null?void 0:p.heartActiveTooltip,unheartedTooltip:(m=this.toolbarData)==null?void 0:m.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((I=
this.toolbarState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(O=this.toolbarSharedData)==null?void 0:O.unheartButtonA11y:(y=this.toolbarSharedData)==null?void 0:y.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(c=this.toolbarSharedData)==null?void 0:c.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.toolbarSurface)==null||!M.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(M=this.commentStrings)==null?void 0:M.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.q((d=this.toolbarSurface)==null?void 0:d.replyCommand,_.mX),command:this.isVisiblyDisabled?_.q((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.mX):void 0}}}});
dt.prototype.onYtServiceRequestSent=dt.prototype.onYtServiceRequestSent;dt.prototype.hideReplyDialogDiv=dt.prototype.hideReplyDialogDiv;_.G([_.H(),_.a("design:type",Object)],dt.prototype,"commentStrings",void 0);_.G([_.H(),_.a("design:type",Boolean)],dt.prototype,"isReply",void 0);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"toolbarData",void 0);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"toolbarSharedData",void 0);
_.G([_.H(),_.a("design:type",String)],dt.prototype,"toolbarStateKey",void 0);_.G([_.H(),_.a("design:type",String)],dt.prototype,"toolbarSurfaceKey",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],dt.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],dt.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.Z3("#reply-dialog"),_.a("design:type",HTMLElement)],dt.prototype,"replyDialogDiv",void 0);_.G([_.Z3("#replybox"),_.a("design:type",Object)],dt.prototype,"replyBox",void 0);_.G([_.Z3("ytd-creator-heart-renderer"),_.a("design:type",Object)],dt.prototype,"heartButton",void 0);_.G([_.H({selector:function(M,d){return _.Rz(M.entities,"engagementToolbarStateEntityPayload",d)},
selectorArgs:["toolbarStateKey"]}),_.a("design:type",Object)],dt.prototype,"toolbarState",void 0);_.G([_.H({selector:a9Z,selectorArgs:["toolbarSurfaceKey"]}),_.a("design:type",Object)],dt.prototype,"toolbarSurface",void 0);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"buttonOverrides",void 0);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dt.prototype,"hideReplyDialogDiv",null);
_.G([_.z("toolbarData","toolbarState"),_.a("design:type",String),_.a("design:paramtypes",[])],dt.prototype,"likeCount",null);_.G([_.z("likeCount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"showLikeCount",null);_.G([_.z("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"isVisiblyDisabled",null);_.G([_.z("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"hasPrepareAccountCommand",null);
_.G([_.z("toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"likeToggleButtonRenderer",null);_.G([_.z("isReply","toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"dislikeToggleButtonRenderer",null);_.G([_.z("toolbarData","toolbarState","toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"creatorHeartSupportedRenderer",null);
_.G([_.z("toolbarSurface"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dt.prototype,"hasReplyCommand",null);_.G([_.z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.a("design:type",Object),_.a("design:paramtypes",[])],dt.prototype,"replyButtonRenderer",null);_.G([_.H(),_.a("design:type",Object)],dt.prototype,"replyButtonOverrides",void 0);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],dt.prototype,"onYtServiceRequestSent",null);dt=_.G([_.f({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],dt);
_.L(dt,"ytd-comment-engagement-bar",function(){if(iTL!==void 0)return iTL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return iTL=M},{mode:1});var fUo;var NW=function(){return _.n.apply(this,arguments)||this};
_.v(NW,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NW.prototype,"data",void 0);NW=_.G([_.f({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],NW);
_.L(NW,"ytd-comment-inline-thumbnail-renderer",function(){if(fUo!==void 0)return fUo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return fUo=M},{mode:1});var LbV;var Rw=function(){return _.n.apply(this,arguments)||this};
_.v(Rw,_.n);_.G([_.H(),_.a("design:type",Object)],Rw.prototype,"data",void 0);Rw=_.G([_.f({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Rw);
_.L(Rw,"ytd-comment-pause-composer-renderer",function(){if(LbV!==void 0)return LbV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return LbV=M},{mode:1});var t0t;var GFI;var XG=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;return M};
_.v(XG,_.n);_.F=XG.prototype;_.F.dataChanged=function(){this.isOpen=!1};
_.F.onTap=function(){this.data&&(this.data.navigationEndpoint?_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.F.focus=function(){this.JSC$13594_commentbox.focus()};
_.F.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.F.openDialog=function(){this.isOpen=!0;this.JSC$13594_commentbox.focus();this.JSC$13594_commentbox.maybeHeightChanged()};
XG.prototype.onYtCommentboxDismiss=XG.prototype.onYtCommentboxDismiss;XG.prototype.dataChanged=XG.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],XG.prototype,"isOpen",void 0);_.G([_.Z3("#commentbox"),_.a("design:type",Object)],XG.prototype,"JSC$13594_commentbox",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XG.prototype,"dataChanged",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],XG.prototype,"onYtCommentboxDismiss",null);XG=_.G([_.f({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],XG);
_.L(XG,"ytd-comment-reply-dialog-renderer",function(){if(GFI!==void 0)return GFI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return GFI=M},{mode:1});var aUd;var FG=function(){return _.n.apply(this,arguments)||this};
_.v(FG,_.n);_.Hm.Object.defineProperties(FG.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType;return N?"yt-icons:"+N.toLowerCase():null}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],FG.prototype,"data",void 0);_.G([_.H(),_.z("data.icon"),_.a("design:type",Object),_.a("design:paramtypes",[])],FG.prototype,"icon",null);FG=_.G([_.f({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],FG);
_.L(FG,"ytd-pinned-comment-badge-renderer",function(){if(aUd!==void 0)return aUd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return aUd=M},{mode:1});var U6I;var u$3={},CwJ={input:!0,meta:!0,br:!0,link:!0,img:!0},AJ=null;u$3.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(){AJ==null&&(AJ=document.createElement("tp-yt-paper-tooltip"),AJ.offset=8,AJ.fitToVisibleBounds=!0)},
onMouseOver_:function(M){if(M=_.jM(M.target,function(X){return X==this||X.getAttribute&&X.getAttribute("shared-tooltip-text")}.bind(this),!0)){var d=M.getAttribute("shared-tooltip-text");
if(d){var N=this,R=null;M!=this&&(M.tagName.toLowerCase()in CwJ?N=M.parentElement:N=M,M.id&&(R=M.id));this.polymerController.createTooltipIfRequired_();if(AJ.parentElement!=N||AJ.for!=R)(0,_.aj)(AJ).textContent=d,_.K(N).appendChild(AJ),AJ.for=R,AJ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,AJ.position=this.polymerController.sharedTooltipPosition}}}};var VH=function(){return _.n.apply(this,arguments)||this};
_.v(VH,_.n);VH.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]]"}}}}}};
VH.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
VH.prototype.colorChanged=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.color)==null?void 0:(N=d.basicColorPaletteData)==null?void 0:N.foregroundBodyColor;R&&(this.rgbBadgeColor=_.p3(R));_.K(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
VH.prototype.tooltipChanged=function(){var M;((M=this.data)==null?0:M.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
VH.prototype.tooltipChanged=VH.prototype.tooltipChanged;VH.prototype.colorChanged=VH.prototype.colorChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(u$3.YtSharedTooltipBehavior),_.a("design:type",Object)],VH.prototype,"ytSharedTooltipBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VH.prototype,"data",void 0);
_.G([_.H({value:"#4285F4"}),_.a("design:type",String)],VH.prototype,"rgbBadgeColor",void 0);_.G([_.xB("data.color"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VH.prototype,"colorChanged",null);_.G([_.xB("data.tooltip"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VH.prototype,"tooltipChanged",null);VH=_.G([_.f({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],VH);
_.L(VH,"ytd-sponsor-comment-badge-renderer",function(){if(U6I!==void 0)return U6I;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return U6I=M},{mode:1});var x6V;var YGd;var lQ=function(){return _.n.apply(this,arguments)||this};
_.v(lQ,_.n);lQ.prototype.computeState=function(M){switch(M==null?void 0:M.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
lQ.prototype.updateStateIdentifier=function(M){if(this.viewModel.triStateKey){var d=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.v5("triStateButtonStateEntityPayload",d,{key:d,stateIdentifier:M}))}};
lQ.prototype.onClick=function(){var M=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Hm.Object.defineProperties(lQ.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.buttonText)||""}}});
_.G([_.H(),_.a("design:type",Object)],lQ.prototype,"viewModel",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],lQ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],lQ.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.G([_.H({selector:UYi,selectorArgs:["viewModel.triStateKey"]}),_.a("design:type",Object)],lQ.prototype,"triStateButtonStateEntity",void 0);
_.G([_.H({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.a("design:type",String)],lQ.prototype,"state",void 0);_.G([_.z("viewModel","state"),_.a("design:type",Object),_.a("design:paramtypes",[])],lQ.prototype,"data",null);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],lQ.prototype,"buttonText",null);lQ=_.G([_.f({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],lQ);
_.L(lQ,"ytd-tri-state-button-view-model",function(){if(YGd!==void 0)return YGd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return YGd=M},{mode:1});var ZTJ;var Eug;var $g=function(){var M=_.n.apply(this,arguments)||this;M.defaultIconToFilled=!_.Q("kevlar_fill_comment_chip_icon_killswitch");return M};
_.v($g,_.n);$g.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
$g.prototype.dataChanged=function(){if(this.data){var M,d;((M=this.data.chipColorPalette)==null?0:M.backgroundColor)&&((d=this.data.chipColorPalette)==null?0:d.foregroundTitleColor)&&_.UO(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.ml(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.ml(this.data.chipColorPalette.foregroundTitleColor)});var N;((N=this.data)==null?0:N.command)?(_.UO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.UO(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}};
$g.prototype.onTap=function(){var M;if(this.data&&(M=this.data)!=null&&M.command){var d;this.ytComponentBehavior.resolveCommand((d=this.data)==null?void 0:d.command)}};
$g.prototype.getIconSize=function(){return _.Q("kevlar_fill_comment_chip_icon_killswitch")?24:12};
$g.prototype.onTap=$g.prototype.onTap;$g.prototype.dataChanged=$g.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$g.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.pG),_.a("design:type",Object)],$g.prototype,"ironA11yKeysBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$g.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],$g.prototype,"basePriceText",void 0);_.G([_.H(),_.a("design:type",Object)],$g.prototype,"chipIcon",void 0);_.G([_.H(),_.a("design:type",Object)],$g.prototype,"defaultIconToFilled",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$g.prototype,"dataChanged",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$g.prototype,"onTap",null);
$g=_.G([_.w4({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],$g);
_.L($g,"yt-pdg-comment-chip-renderer",function(){if(Eug===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ZTJ===void 0&&(ZTJ=document.createElement("template"));var R=ZTJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Eug=M}M=Eug;return M},{mode:2});var BL=function(){var M=_.n.apply(this,arguments)||this;M.useSmallAvatars=_.Q("small_avatars_for_comments");M.webWatchCompactComments=_.Q("web_watch_compact_comments");M.editDialog=null;return M};
_.v(BL,_.n);_.F=BL.prototype;_.F.onShow=function(){_.ON("cmv",void 0,"wn_comments")};
_.F.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"}}}};
_.F.detached=function(){this.editDialog=null;this.expander.reset()};
_.F.updateBackgroundColor=function(){if(this.backgroundColor){var M={"--ytd-comment-paid-background-color":_.ml(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.UO(this.hostElement,M)}else _.UO(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.F.resetExpander=function(){var M;(M=this.expander)==null||M.reset()};
_.F.openEditDialog=function(M){M.dialog&&(this.editDialog=M.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.F.onYtNavigate=function(M){var d=M.detail.endpoint;if(d=_.q(d,_.jgL)||_.q(d,_.sgV))M.stopPropagation(),this.openEditDialog(d)};
_.F.onYtCommentboxDismiss=function(){this.editDialog=null;_.UO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.F.onAuthorThumbnailClicked=function(){var M=this;_.Q("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(d,N){M.onAuthorThumbnailEndpointSuccess(N)},
onServerError:function(d,N){_.vh(new _.WJ("Failed to resolve the command",N))}}})};
_.F.onAuthorThumbnailEndpointSuccess=function(M){if((M=M==null?void 0:M.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(M,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();M=M==null?void 0:M.clickTrackingParams;var d=_.vl();M&&d&&_.Nx().graftServerVe(M,d)}};
_.F.logScreenVe=function(){_.dm(_.Nx(),66557)};
_.F.onYtCommentboxResize=function(M){var d;(M==null?0:(d=M.detail)==null?0:d.height)&&_.UO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":M.detail.height+"px"})};
_.Hm.Object.defineProperties(BL.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.commentEntity)==null?void 0:M.author;return d&&(d.isCreator||d.isVerified||d.isArtist)?{renderer:{authorEndpoint:d.channelPageEndpoint?_.q(d.channelPageEndpoint,_.mX):_.q(d.channelCommand,_.mX),authorText:{runs:[{text:d.displayName}]},color:d.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:d.isArtist?{iconType:"AUDIO_BADGE"}:
d.isVerified?{iconType:d.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:d.isArtist||d.isVerified?d.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.commentEntity)==null?void 0:M.author;return d!=null&&d.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:d.sponsorBadgeUrl}]},tooltip:d.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.commentSurfaceEntity)==null?void 0:M.pdgCommentChip,_.dmL)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&((M=this.voiceReplyContainerViewModel)==null?void 0:M.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.commentSurfaceEntity)==null?void 0:M.voiceReplyContainerViewModel,iee)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&(M=this.voiceReplyContainerViewModel)!=null&&M.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.commentSurfaceEntity)==null?void 0:M.commentBackgroundColor)!=null?d:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var M,d;return(((M=this.commentEntity)==null?void 0:(d=M.properties)==null?void 0:d.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,d;if(_.Q("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(d=M.author)==null?0:d.profileCardEndpoint)&&this.viewModel.allowProfileCard){var N,R;return _.q((N=this.commentEntity)==null?void 0:(R=N.author)==null?void 0:R.profileCardEndpoint,_.mX)}var X,A;return _.q((X=this.commentEntity)==null?void 0:(A=X.avatar)==null?void 0:A.endpoint,_.mX)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,d;if(_.Q("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(d=M.author)==null?0:d.channelPageEndpoint)){var N,R;return _.q((N=this.commentEntity)==null?void 0:(R=N.author)==null?void 0:R.channelPageEndpoint,_.mX)}var X,A;return _.q((X=this.commentEntity)==null?void 0:(A=X.avatar)==null?void 0:A.endpoint,_.mX)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X=(M=this.commentEntity)==null?void 0:(d=M.avatar)==null?void 0:(N=d.image)==null?void 0:(R=N.sources)==null?void 0:R[0];return X?{thumbnails:[{url:X.url,width:X.width,height:X.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentEntity)==null?0:(d=M.author)==null?0:d.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentEntity)==null?void 0:(d=M.author)==null?void 0:d.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentEntity)==null?void 0:(d=M.properties)==null?void 0:d.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.commentSurfaceEntity)==null?void 0:M.publishedTimeCommand,_.mX)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var M,d;if(((M=this.commentEntity)==null?0:M.translatedContent)&&((d=this.translateButtonState)==null?void 0:d.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var N;if((N=this.voiceReplyContainerViewModel)==null?0:N.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var R,X;return((R=this.commentEntity)==null?void 0:(X=R.properties)==null?void 0:X.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentSharedEntity)==null?void 0:(d=M.strings)==null?void 0:d.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.commentSharedEntity)==null?void 0:(d=M.strings)==null?void 0:d.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentEntity)==null||!M.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var M,d,N=(d=_.q((M=this.viewModel)==null?void 0:M.translateButton,nso))!=null?d:{},R,X,A,l,k,T,W,w,p,m,I;return Object.assign({},N,{untoggledStateData:Object.assign({},N.untoggledStateData,{buttonText:(R=this.commentEntity)==null?void 0:(X=R.translateData)==null?void 0:X.text}),togglingStateData:Object.assign({},N.togglingStateData,{buttonText:(A=this.commentSharedEntity)==null?
void 0:(l=A.strings)==null?void 0:l.translatingText}),toggledStateData:Object.assign({},N.toggledStateData,{buttonText:(k=this.commentSharedEntity)==null?void 0:(T=k.strings)==null?void 0:T.seeOriginalText}),transitionCommand:((W=this.commentEntity)==null?0:W.translatedContent)?void 0:_.q((w=this.commentEntity)==null?void 0:(p=w.translateData)==null?void 0:p.translateComment,_.mX),triStateKey:(m=this.commentEntity)==null?void 0:(I=m.properties)==null?void 0:I.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((d=_.q(_.q((M=this.toolbarSurface)==null?void 0:M.menuCommand,_.mX),Pc3))==null?void 0:(N=d.menu)==null?void 0:N.menuRenderer)||null}}});
BL.prototype.onYtCommentboxResize=BL.prototype.onYtCommentboxResize;BL.prototype.onYtCommentboxDismiss=BL.prototype.onYtCommentboxDismiss;BL.prototype.onYtNavigate=BL.prototype.onYtNavigate;BL.prototype.resetExpander=BL.prototype.resetExpander;BL.prototype.updateBackgroundColor=BL.prototype.updateBackgroundColor;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],BL.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],BL.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#author-thumbnail > button"),_.a("design:type",HTMLElement)],BL.prototype,"authorThumbnailAnchor",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"linked",null);
_.G([_.z("viewModel","linked"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"linkedCommentBadge",null);_.G([_.H({reflectToAttribute:!0}),_.z("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"pinned",null);_.G([_.z("viewModel","pinned"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"pinnedCommentBadge",null);
_.G([_.z("commentEntity","commentSharedEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorCommentBadge",null);_.G([_.H({reflectToAttribute:!0}),_.z("authorCommentBadge"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"hasAuthorBadge",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"sponsorCommentBadge",null);
_.G([_.H({reflectToAttribute:!0}),_.z("sponsorCommentBadge"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"hasSponsorBadge",null);_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"pdgCommentChipRenderer",null);_.G([_.H({reflectToAttribute:!0}),_.z("voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"hasVoiceReply",null);
_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"voiceReplyContainerViewModel",null);_.G([_.z("voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"voiceReplyUnavailableText",null);_.G([_.H(),_.a("design:type",Object)],BL.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"viewModel",null);
_.G([_.H({selector:function(M,d){return _.Rz(M.entities,"commentSharedEntityPayload",d)},
selectorArgs:["viewModel.sharedKey"]}),_.a("design:type",Object)],BL.prototype,"commentSharedEntity",void 0);_.G([_.H({selector:function(M,d){return _.Rz(M.entities,"commentEntityPayload",d)},
selectorArgs:["viewModel.commentKey"]}),_.a("design:type",Object)],BL.prototype,"commentEntity",void 0);_.G([_.H({selector:function(M,d){return _.Rz(M.entities,"commentSurfaceEntityPayload",d)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.a("design:type",Object)],BL.prototype,"commentSurfaceEntity",void 0);_.G([_.H({selector:a9Z,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.a("design:type",Object)],BL.prototype,"toolbarSurface",void 0);_.G([_.H({selector:UYi,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.a("design:type",Object)],BL.prototype,"translateButtonState",void 0);
_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"backgroundColor",null);_.G([_.H({reflectToAttribute:!0}),_.z("viewModel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"optimalReadingWidthComments",null);_.G([_.Z3("ytd-expander"),_.a("design:type",Object)],BL.prototype,"expander",void 0);
_.G([_.xB("backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BL.prototype,"updateBackgroundColor",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],BL.prototype,"useSmallAvatars",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],BL.prototype,"webWatchCompactComments",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"isReply",null);
_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorThumbnailEndpoint",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorNameEndpoint",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"authorThumbnail",null);_.G([_.z("commentEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"authorTextClass",null);
_.G([_.z("commentEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"authorChannelName",null);_.G([_.z("commentEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"publishedTime",null);_.G([_.z("commentSurfaceEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"publishedTimeCommand",null);
_.G([_.z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"contentText",null);_.G([_.xB("contentText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BL.prototype,"resetExpander",null);_.G([_.z("commentEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"shouldShowReadMoreInitially",null);
_.G([_.z("commentSharedEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"expandText",null);_.G([_.z("commentSharedEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],BL.prototype,"collapseText",null);_.G([_.z("commentEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],BL.prototype,"shouldShowTranslateButton",null);
_.G([_.z("commentEntity","commentSharedEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"translateButton",null);_.G([_.z("toolbarSurface"),_.a("design:type",Object),_.a("design:paramtypes",[])],BL.prototype,"overflowMenuRenderer",null);_.G([_.H(),_.a("design:type",Object)],BL.prototype,"editDialog",void 0);_.G([_.Z3("ytd-comment-dialog-renderer"),_.a("design:type",Object)],BL.prototype,"editCommentDialogContainer",void 0);
_.G([_.Z3("ytd-comment-reply-dialog-renderer"),_.a("design:type",Object)],BL.prototype,"editReplyDialogContainer",void 0);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],BL.prototype,"onYtNavigate",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],BL.prototype,"onYtCommentboxDismiss",null);
_.G([_.C3("yt-commentbox-resize"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],BL.prototype,"onYtCommentboxResize",null);BL=_.G([_.f({disableElementRegistration:!0,is:"ytd-comment-view-model"})],BL);
_.L(BL,"ytd-comment-view-model",function(){if(x6V!==void 0)return x6V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return x6V=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var kg=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_modern_buttons");M.isWatchGrid=_.Q("kevlar_watch_grid");M.buttonOverrides={style:"call-to-action"};M.JSC$13640_spinnerEl=null;return M};
_.v(kg,_.n);_.F=kg.prototype;_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.F.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]]"}}}}}};
_.F.attached=function(){this.isShowRepliesVisible=!0};
_.F.dataChanged=function(){var M=this.expanderContents;M&&(M.hidden=!0);this.isLoading=!1};
_.F.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.F.isLoadingChanged=function(){this.isLoading&&!this.JSC$13640_spinnerEl&&(this.JSC$13640_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.K(this.expanderContents).appendChild(this.JSC$13640_spinnerEl));this.JSC$13640_spinnerEl&&(this.JSC$13640_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var M;(M=this.contents)==null||M.classList.remove("reloading")}};
_.F.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var M=_.q(this.data.viewReplies,_.K9);M&&this.ytRendererBehavior.logExplicitClick(M)};
_.F.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var M=_.q(this.data.hideReplies,_.K9);M&&this.ytRendererBehavior.logExplicitClick(M)};
_.F.isShowMoreChanged=function(){var M=_.K(this.hostElement).querySelector("#expander-contents");M&&(M.hidden=this.isShowRepliesVisible)};
_.F.computeAlign=function(){if(this.modern){var M;return!((M=this.data)==null?0:M.viewRepliesCreatorThumbnail)}};
_.Hm.Object.defineProperties(kg.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.contents;return!!d&&d.length>0&&!!d[d.length-1].continuationItemRenderer}}});
kg.prototype.isShowMoreChanged=kg.prototype.isShowMoreChanged;kg.prototype.isLoadingChanged=kg.prototype.isLoadingChanged;kg.prototype.triggerFirstContinuation=kg.prototype.triggerFirstContinuation;kg.prototype.dataChanged=kg.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.j1),_.a("design:type",Object)],kg.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kg.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Boolean)],kg.prototype,"isLoading",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],kg.prototype,"isShowRepliesVisible",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],kg.prototype,"useNewFormatting",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kg.prototype,"isWatchGrid",void 0);_.G([_.H(),_.a("design:type",Object)],kg.prototype,"buttonOverrides",void 0);_.G([_.Z3("#expander-contents"),_.a("design:type",HTMLElement)],kg.prototype,"expanderContents",void 0);_.G([_.Z3("ytd-continuation-item-renderer"),_.a("design:type",Object)],kg.prototype,"continuationItemRenderer",void 0);_.G([_.Z3("#contents"),_.a("design:type",HTMLElement)],kg.prototype,"contents",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"dataChanged",null);_.G([_.z("data.contents"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kg.prototype,"hasContinuation",null);_.G([_.C3("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"triggerFirstContinuation",null);
_.G([_.xB("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"isLoadingChanged",null);_.G([_.xB("isShowRepliesVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kg.prototype,"isShowMoreChanged",null);kg=_.G([_.f({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],kg);
_.L(kg,"ytd-comment-replies-renderer",function(){if(t0t!==void 0)return t0t;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return t0t=M},{mode:1});var McI;var TA=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;M.commentDialog=null;M.useSmallAvatars=_.Q("small_avatars_for_comments");M.useSmallAvatarsEngagementPanelOnly=_.Q("small_avatars_for_comments_ep");M.placeholderFocusListener=null;M.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return M};
_.v(TA,_.n);_.F=TA.prototype;_.F.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]]"}}}}}};
_.F.ready=function(){var M=this,d=_.K(this.hostElement).querySelector("#placeholder-area"),N=_.K(this.hostElement).querySelector("#simplebox-placeholder"),R=function(X){X.stopPropagation();X instanceof KeyboardEvent&&X.type==="keypress"&&X.keyCode!==13&&X.keyCode!==32||M.openDialog()};
this.placeholderFocusListener=R;N.addEventListener("focus",this.placeholderFocusListener);d.addEventListener("tap",R);d.addEventListener("keypress",R)};
_.F.maybeRemoveFocusEventListener=function(){var M;(M=this.data)!=null&&M.prepareAccountEndpoint&&!_.Q("web_comments_simplebox_modal_focus_on_tap_ks")&&(M=_.K(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(M.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.F.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.F.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.Q("web_comment_simplebox_resolve_polymer_command_ks")?_.YQ.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Zc(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.K(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.F.onYtCommentboxDismiss=function(M){M.stopPropagation();this.isOpen=!1};
_.F.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.isOpen=!1)};
_.F.computeCommentDialog=function(M){return{placeholderText:M.placeholderText,authorThumbnail:M.authorThumbnail,submitButton:M.submitButton,imageButton:M.imageButton,cancelButton:M.cancelButton,emojiButton:M.emojiButton,emojis:M.emojis,emojiPicker:M.emojiPicker,aadcGuidelinesStateEntityKey:M.aadcGuidelinesStateEntityKey,openAadcDialog:M.openAadcDialog,unicodeEmojisUrl:M.unicodeEmojisUrl}};
_.F.onHideIdentityChip=function(M){_.q(M,yMt)&&this.set("data.placeholderText",_.q(M,yMt).placeholderText)};
TA.prototype.onYtCommentboxDismiss=TA.prototype.onYtCommentboxDismiss;TA.prototype.dataChanged=TA.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],TA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],TA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],TA.prototype,"isOpen",void 0);_.G([_.H(),_.a("design:type",Object)],TA.prototype,"commentDialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],TA.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TA.prototype,"useSmallAvatars",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TA.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],TA.prototype,"enableCreationBox",void 0);_.G([_.H(),_.a("design:type",Boolean)],TA.prototype,"showCreateDialog",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TA.prototype,"dataChanged",null);
_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TA.prototype,"onYtCommentboxDismiss",null);TA=_.G([_.f({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],TA);
_.L(TA,"ytd-comment-simplebox-renderer",function(){if(McI!==void 0)return McI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return McI=M},{mode:1});var d8C;_.pO("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var D2=function(){var M=_.n.apply(this,arguments)||this;M.addHoverEffect=_.Q("swatcheroo_comments_hover_effect");return M};
_.v(D2,_.n);D2.prototype.onTap=function(M){if(this.addHoverEffect&&!this.engagementPanel&&!_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||_.Zc({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
D2.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Hm.Object.defineProperties(D2.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.commentViewModel)return _.q(this.data.commentViewModel,HeJ)}}});
D2.prototype.onTap=D2.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],D2.prototype,"addHoverEffect",void 0);_.G([_.H(),_.a("design:type",Object)],D2.prototype,"data",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],D2.prototype,"commentViewModel",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],D2.prototype,"engagementPanel",void 0);_.G([_.C3("tap"),_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],D2.prototype,"onTap",null);D2=_.G([_.f({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],D2);
_.L(D2,"ytd-comment-thread-renderer",function(){if(d8C!==void 0)return d8C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return d8C=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var NnC;var gt=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");M.compactHeader=_.Q("web_watch_compact_comments_header");M.hidePanelButton=!1;M.isPostSchedulingEnabled=_.Q("enable_post_scheduling");M.hasFinishedStamping=!1;M.JSC$13658_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.v(gt,_.n);_.F=gt.prototype;
_.F.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"}}}};
_.F.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.F.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13658_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.F.onYtServiceRequestSent=function(M,d){if(!_.Q("kevlar_command_handler")&&d.actions)for(M=0;M<d.actions.length;M++){var N=d.actions[M];_.q(N,F2V)&&_.K(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.q(N,F2V))}};
_.F.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var M;if(this.getPrefilledBackstagePostDialog((M=this.data)==null?void 0:M.actions)){_.K(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var d=_.K(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;d&&_.bM(this,function(){d.focus();d.openDialog&&d.openDialog()})}}else this.hasActionsChange=!0};
_.F.computeIsBackstage=function(M){return M};
_.F.onYtCommentboxDismiss=function(){_.K(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.F.removePrefilledDialog=function(M){if(M==null?0:M.actions){for(var d=M.actions.length-1;d>=0;d--){var N=void 0;((N=_.q(M.actions[d],vnd))==null?0:N.dialog)&&delete M.actions[d]}this.set("data",void 0);this.set("data",M)}};
_.F.getPrefilledBackstagePostDialog=function(M){if(M)for(var d=0;d<M.length;d++){var N=M[d],R=void 0;if((R=_.q(N,vnd))==null?0:R.dialog)return _.q(N,vnd).dialog}return null};
_.F.computeBackstagePostDialog=function(M){return M&&(this.getPrefilledBackstagePostDialog(M.actions)||M.createRenderer)};
_.F.dataChanged=function(){if(this.data){var M=this.data.customEmojis,d=this.data.unicodeEmojisUrl;_.j$.clear();d&&_.t7t(_.j$,d);M&&_.j$.load(M)}};
_.F.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.K(this.hostElement).querySelector("ytd-comment-simplebox-renderer");M?M.openDialog():this.JSC$13658_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Hm.Object.defineProperties(gt.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.Q("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A,l;return!this.hidePanelButton&&_.Q("kevlar_watch_comments_panel_button")&&((l=_.q((M=this.data)==null?void 0:(d=M.sortMenu)==null?void 0:(N=d.sortFilterSubMenuRenderer)==null?void 0:(R=N.subMenuItems)==null?void 0:(X=R[0])==null?void 0:(A=X.serviceEndpoint)==null?void 0:A.commandMetadata,_.an))==null?void 0:l.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.le("MINIPLAYER_EXPAND_LABEL"),text:_.ep(_.le("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
gt.prototype.dataChanged=gt.prototype.dataChanged;gt.prototype.onYtCommentboxDismiss=gt.prototype.onYtCommentboxDismiss;gt.prototype.observePrefilledBackstagePostDialog=gt.prototype.observePrefilledBackstagePostDialog;gt.prototype.onYtServiceRequestSent=gt.prototype.onYtServiceRequestSent;gt.prototype.onStampFinished=gt.prototype.onStampFinished;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],gt.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gt.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gt.prototype,"modernTypography",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gt.prototype,"compactHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],gt.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Object)],gt.prototype,"hidePanelButton",void 0);_.G([_.H({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.a("design:type",Boolean)],gt.prototype,"isBackstage",void 0);_.G([_.H({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.a("design:type",Object)],gt.prototype,"backstagePostDialog",void 0);
_.G([_.H(),_.a("design:type",Object)],gt.prototype,"isPostSchedulingEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data","showCommentsPanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],gt.prototype,"useSpaceBetween",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","hidePanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],gt.prototype,"showCommentsPanelButton",null);
_.G([_.z("data","showCommentsPanelButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],gt.prototype,"commentsPanelButtonData",null);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gt.prototype,"onStampFinished",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],gt.prototype,"onYtServiceRequestSent",null);
_.G([_.xB("data.actions"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gt.prototype,"observePrefilledBackstagePostDialog",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],gt.prototype,"onYtCommentboxDismiss",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gt.prototype,"dataChanged",null);
gt=_.G([_.f({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],gt);
_.L(gt,"ytd-comments-header-renderer",function(){if(NnC!==void 0)return NnC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return NnC=M},{mode:1});var RR3;var WL=function(){return _.n.apply(this,arguments)||this};
_.v(WL,_.n);_.G([_.H(),_.a("design:type",Object)],WL.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);WL=_.G([_.f({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],WL);
_.L(WL,"ytd-destination-button-renderer",function(){if(RR3!==void 0)return RR3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return RR3=M},{mode:1});var Xdd;var wt=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.modernTypography=_.Q("web_modern_typography");return M};
_.v(wt,_.n);_.F=wt.prototype;_.F.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.F.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.F.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.F.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var M;if((M=this.data)==null||!M.isExpanded){M=this.hostElement.clientWidth;var d;if(M&&(d=this.data)!=null&&d.destinationButtons){d=Math.floor((M+4)/214);M=this.data.destinationButtons.length;var N=Math.ceil(M/d);this.fullyVisibleRows=M%d===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}}}};
_.F.updateRichGridDestinationButtonsVisibility=function(){var M,d;if(this.isRichGrid&&((M=this.data)==null||!M.isExpanded)&&(d=this.data)!=null&&d.destinationButtons){M=this.richGridItemsPerRow+1;d=this.data.destinationButtons.length;var N=Math.ceil(d/M);this.fullyVisibleRows=d%M===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}};
_.F.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
wt.prototype.updateRichGridDestinationButtonsVisibility=wt.prototype.updateRichGridDestinationButtonsVisibility;_.G([_.H(),_.a("design:type",Object)],wt.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],wt.prototype,"fullyVisibleRows",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wt.prototype,"isShowMoreVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wt.prototype,"isRichGrid",void 0);
_.G([_.H({selector:_.Iz,value:0}),_.a("design:type",Number)],wt.prototype,"richGridItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],wt.prototype,"gridStateActionMap",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],wt.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],wt.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wt.prototype,"modernTypography",void 0);_.G([_.xB("data","richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wt.prototype,"updateRichGridDestinationButtonsVisibility",null);
wt=_.G([_.f({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],wt);
_.L(wt,"ytd-destination-shelf-renderer",function(){if(Xdd!==void 0)return Xdd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Xdd=M},{mode:1});var F_J;var p8=function(){return _.n.apply(this,arguments)||this};
_.v(p8,_.n);p8.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],p8.prototype,"data",void 0);p8=_.G([_.f({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],p8);
_.L(p8,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(F_J!==void 0)return F_J;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return F_J=M},{mode:1});var ARd;var m9=function(){var M=_.n.apply(this,arguments)||this;M.disableAnimation=!1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;return M};
_.v(m9,_.n);m9.prototype.onTap=function(M){M.preventDefault();this.data&&_.YP(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Hm.Object.defineProperties(m9.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X;return((M=this.data)==null?0:M.checked)?(d=this.data)==null?void 0:(N=d.onStateIcon)==null?void 0:N.iconType:(R=this.data)==null?void 0:(X=R.defaultStateIcon)==null?void 0:X.iconType}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],m9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],m9.prototype,"disableAnimation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isSlimlineSurvey",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],m9.prototype,"isShortsStyle",void 0);_.G([_.z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],m9.prototype,"isAnimatedIcon",null);
_.G([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Number),_.a("design:paramtypes",[])],m9.prototype,"iconSize",null);_.G([_.z("isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],m9.prototype,"isDarkTheme",null);_.G([_.z("data.checked"),_.a("design:type",Object),_.a("design:paramtypes",[])],m9.prototype,"icon",null);m9=_.G([_.f({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],m9);
_.L(m9,"ytd-rating-survey-option-renderer",function(){if(ARd!==void 0)return ARd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ARd=M},{mode:2});var Vcm;var hJ=function(){var M=_.n.apply(this,arguments)||this;M.firstResponseText=null;M.lastResponseText=null;M.selectedNonStarOption=null;M.hideOptions=!1;M.hideUndoButton=!0;M.disableAnimation=!1;M.showResponseRangeText=!1;M.selectedRatingIndex=-1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.slimlineSurveyRatingSelectedIndex=-1;return M};
_.v(hJ,_.n);_.F=hJ.prototype;_.F.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.F.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.F.onOptionChange=function(M,d){var N=this;M=d.onStateIcon&&d.defaultStateIcon&&d.onStateIcon.iconType===d.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(l,k){l.responseText===d.responseText?N.isSlimlineSurvey?(N.selectedRatingIndex=k,N.ytdReduxBehavior.dispatch(E2J(k))):(N.setSurveyOptionValue(k,!0,"checked"),N.setSurveyOptionValue(k,!0,"selected")):(N.setSurveyOptionValue(k,!1,"checked"),N.setSurveyOptionValue(k,
!1,"selected"))});
else if(M)this.selectedNonStarOption=d,this.hideOptions=!0;else{var R=this.ytRendererBehavior.getSimpleString(d.responseText),X=!0;this.getOptionRenderers().forEach(function(l,k){N.setSurveyOptionValue(k,X,"checked");N.setSurveyOptionValue(k,!1,"selected");N.ytRendererBehavior.getSimpleString(l.responseText)===R&&(X=!1,N.setSurveyOptionValue(k,!0,"selected"))})}M=d.responseEndpoint;
var A;d.followUpCommand&&(A=_.q(d.followUpCommand,Z2V));this.isSlimlineSurvey?(this.resetComponent(),_.ZI(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ZI(this.hostElement,"ytd-inline-survey-rating-select-action",[M,A])};
_.F.showSelectedOption=function(){var M=this;_.IQ.addJob(function(){var d=M.getOptionRenderers()[M.slimlineSurveyRatingSelectedIndex];M.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),d)},8,100)};
_.F.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(M){var d;return(d=_.q(M,M8V))!=null?d:{}}):[]};
_.F.onUndoClick=function(){this.resetComponent();_.ZI(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.F.setSurveyOptionValue=function(M,d,N){this.notifyPath("data.ratings."+M+".ratingSurveyOptionRenderer."+N);this.set("data.ratings."+M+".ratingSurveyOptionRenderer."+N,d)};
_.F.resetComponent=function(){var M=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var d=this.getOptionRenderers(),N,R;this.firstResponseText=(R=(N=d[0])==null?void 0:N.responseText)!=null?R:null;var X,A;this.lastResponseText=(A=(X=d[d.length-1])==null?void 0:X.responseText)!=null?A:null;d.forEach(function(l,k){M.setSurveyOptionValue(k,!1,"checked");M.setSurveyOptionValue(k,!1,"selected")})};
_.Hm.Object.defineProperties(hJ.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
hJ.prototype.onOptionChange=hJ.prototype.onOptionChange;hJ.prototype.dataChanged=hJ.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],hJ.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"firstResponseText",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"lastResponseText",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"selectedNonStarOption",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"hideOptions",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"hideUndoButton",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"disableAnimation",void 0);
_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"showResponseRangeText",void 0);_.G([_.H(),_.a("design:type",Object)],hJ.prototype,"selectedRatingIndex",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hJ.prototype,"isSlimlineSurvey",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hJ.prototype,"isShortsStyle",void 0);_.G([_.H({selector:function(M){return M.ui.slimlineSurveyRatingSelectedIndex}}),
_.a("design:type",Object)],hJ.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.G([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],hJ.prototype,"isSingleSelect",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hJ.prototype,"dataChanged",null);
_.G([_.C3("ytd-rating-survey-option-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],hJ.prototype,"onOptionChange",null);hJ=_.G([_.f({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],hJ);
_.L(hJ,"ytd-rating-survey-renderer",function(){if(Vcm!==void 0)return Vcm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Vcm=M},{mode:1});var lOd;var $8L;var Bnd;var siZ=(h9.FIRSTDAYOFWEEK+1)%7,klo=function(M,d,N,R){var X="";if(R.selection&&I_S(R.selection))wW(M,R.selection)&&(X+=" selected");else if(R.selection&&v6A(R.selection)){var A=R.selection.selectionState||"START_DATE";wW(M,R.selection.start)&&(X+=" period-start ",A==="START_DATE"&&(X+="selected"));wW(M,R.selection.end)&&(X+=" period-end ",A==="END_DATE"&&(X+="selected"));pQ(M,R.selection.start)||pQ(R.selection.end,M)||(X+=" highlighted")}if(pQ(d,R.start)||pQ(R.end,d))X+=" disabled";R.circleToday&&
wW(d,N)&&(X+=" today");return X};var QH=function(){return _.n.apply(this,arguments)||this};
_.v(QH,_.n);_.F=QH.prototype;_.F.attached=function(){var M=this;_.bM(this,function(){M.JSC$13692_calendarMain.scrollHeight>0&&(M.calendarConfig.selection?M.scrollToDate(Ovq(M.calendarConfig.selection)):M.scrollToDate(M.calendarConfig.end))})};
_.F.updateSelection=function(M){M=Piv(Object.assign({},this.calendarConfig,{selection:M}),klo);this.splice.apply(this,["renderData.months",0,M.length].concat(_.wu(M)))};
_.F.scrollToDate=function(M){this.renderData&&(M=o6S(M,this.renderData),M!==void 0&&this.JSC$13692_calendarMain.scrollToIndex(M))};
_.F.scrollToNextMonth=function(){this.JSC$13692_calendarMain.scrollToIndex(this.JSC$13692_calendarMain.firstVisibleIndex+1)};
_.F.scrollToPrevMonth=function(){this.JSC$13692_calendarMain.firstVisibleIndex===0&&this.JSC$13692_calendarMain.scrollTo(0,0);this.JSC$13692_calendarMain.scrollToIndex(this.JSC$13692_calendarMain.firstVisibleIndex-1)};
_.F.handleDayClick=function(M){_.ZI(this.hostElement,"ytd-calendar-date-clicked",[M.model.day.date])};
_.F.handleDayMouseDown=function(M){M.preventDefault();_.ZI(this.hostElement,"ytd-calendar-date-mousedown",[M.model.day.date])};
_.F.handleDayMouseUp=function(M){_.ZI(this.hostElement,"ytd-calendar-date-mouseup",[M.model.day.date])};
_.F.handleDayMouseEnter=function(M){M.preventDefault();_.ZI(this.hostElement,"ytd-calendar-date-mouseenter",[M.model.day.date])};
_.F.handleDayMouseLeave=function(M){_.ZI(this.hostElement,"ytd-calendar-date-mouseleave",[M.model.day.date])};
_.Hm.Object.defineProperties(QH.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var M=this.calendarConfig,d=klo;d=d===void 0?klo:d;for(var N=[],R=0;R<7;R++)N.push(h9.NARROWWEEKDAYS[(R+siZ)%7]);return{months:Piv(M,d),daysOfWeekLabel:N}}}});
_.G([_.H(),_.a("design:type",Object)],QH.prototype,"calendarConfig",void 0);_.G([_.Z3("#calendar-main"),_.a("design:type",Object)],QH.prototype,"JSC$13692_calendarMain",void 0);_.G([_.z("calendarConfig"),_.a("design:type",Object),_.a("design:paramtypes",[])],QH.prototype,"renderData",null);QH=_.G([_.f({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],QH);
_.L(QH,"ytd-scrollable-calendar",function(){if(Bnd!==void 0)return Bnd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Bnd=M},{mode:2});var Tne;var D8d;var qW=function(){var M=_.n.apply(this,arguments)||this;M.hideCharCounter=!1;M.hideLabel=!1;M.noLabelFloat=!1;M.autoValidate=!0;M.invalid=!1;M.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return M};
_.v(qW,_.n);_.F=qW.prototype;_.F.reset=function(M){this.value=M&&this.data?this.data.value=M:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.F.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.F.focusTextInput=function(){this.input.focus()};
_.F.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()};
_.F.valueChanged=function(){var M,d;if(((M=this.data)==null?0:M.value)||((d=this.data)==null?void 0:d.value)==="")this.value=this.data.value;else{var N;((N=this.data)==null?void 0:N.value)!==void 0||this.value||(this.value="")}};
_.F.computeLabel=function(M,d){return d?"":_.HD(M)};
_.F.computeAriaLabel=function(M,d){return d?_.HD(M):""};
_.F.computeErrorMessage=function(M,d,N,R){!M&&d?M=N||this.strings.REQUIRED_LABEL:(M=_.HD(R),M=_.T6(M,"&")?"document"in _.Np?lmJ(M):$eJ(M):M);return M};
_.F.computeType=function(M){return M==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.F.onTextValueChanged=function(M){this.value=M.detail.value;var d;(d=this.onValueChanged)==null||d.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.F.handleUpdateTextInputFormFieldRendererCommand=function(M){(M=_.q(M,hco))&&this.data&&this.data.id===M.id&&(M.invalid!==void 0&&(this.invalid=M.invalid),M.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",M.invalidValueErrorMessage))};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("value-changed",this.value))};
_.F.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.Hm.Object.defineProperties(qW.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var M;return!((M=this.data)==null||!M.isMultiline)}}});
qW.prototype.valueChangedForBinding=qW.prototype.valueChangedForBinding;qW.prototype.valueChanged=qW.prototype.valueChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],qW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],qW.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],qW.prototype,"value",void 0);_.G([_.H(),_.a("design:type",String)],qW.prototype,"pattern",void 0);_.G([_.H(),_.a("design:type",String)],qW.prototype,"errorMessage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],qW.prototype,"componentStyle",void 0);_.G([_.H(),_.a("design:type",Object)],qW.prototype,"hideCharCounter",void 0);
_.G([_.H(),_.a("design:type",Object)],qW.prototype,"hideLabel",void 0);_.G([_.H(),_.a("design:type",Object)],qW.prototype,"noLabelFloat",void 0);_.G([_.H(),_.a("design:type",Function)],qW.prototype,"onValueChanged",void 0);_.G([_.H(),_.a("design:type",Boolean)],qW.prototype,"isMultilineOverride",void 0);_.G([_.H(),_.a("design:type",Object)],qW.prototype,"autoValidate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qW.prototype,"invalid",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],qW.prototype,"enableOverlayTheme",void 0);_.G([_.H({value:{REQUIRED_LABEL:_.le("REQUIRED_LABEL",void 0,"Required")}}),_.a("design:type",Object)],qW.prototype,"strings",void 0);_.G([_.Z3("#input"),_.a("design:type",Object)],qW.prototype,"input",void 0);_.G([_.z("data","isMultilineOverride"),_.a("design:type",Object),_.a("design:paramtypes",[])],qW.prototype,"isMultiline",null);
_.G([_.NS("data.value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qW.prototype,"valueChanged",null);_.G([_.xB("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qW.prototype,"valueChangedForBinding",null);qW=_.G([_.w4({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],qW);
_.L(qW,"yt-text-input-form-field-renderer",function(){if(D8d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" 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]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Tne===void 0&&(Tne=document.createElement("template"));var R=Tne;N.call(d,R.content.cloneNode(!0),M.content.firstChild);D8d=M}M=D8d;return M},{mode:2});var Iw=function(){var M=_.n.apply(this,arguments)||this;M.data=void 0;M.selectionState="START_DATE";M.isStartDateInvalid=!1;M.isEndDateInvalid=!1;M.autoapply=!1;M.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return M};
_.v(Iw,_.n);_.F=Iw.prototype;_.F.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"}}}}};
_.F.focus=function(){this.startDateInput.focus()};
_.F.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:mJ(this.data.selection.start),end:mJ(this.data.selection.end)})};
_.F.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.F.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.RC(this.selectionState)}};
_.F.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.F.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.F.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.F.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,d=M.end;M=KUN({start:M.start,end:this.endDate||d},this.startDateInput.value||"");this.isStartDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection=this.endDate?{start:M,end:this.endDate}:M,this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.F.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,d=M.start;M=KUN({start:this.startDate||d,end:M.end},this.endDateInput.value||"");this.isEndDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection={start:this.startDate,end:M},this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.F.handleCalendarDateClicked=function(M){var d=this.selection&&Ovq(this.selection),N=this.selection&&jir(this.selection);d&&!pQ(M,d)&&this.selectionState==="END_DATE"?(this.selection={start:d,end:M},this.selectionState="START_DATE"):(N&&!pQ(N,M)?this.selection={start:M,end:N}:this.selection=M,this.selectionState="END_DATE")};
_.F.handleCalendarDateMouseDown=function(M){this.selection&&!I_S(this.selection)&&(this.dragPivot=wW(M,this.selection.start)?this.selection.end:wW(M,this.selection.end)?this.selection.start:M)};
_.F.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.F.handleCalendarDateMouseEnter=function(M){this.dragPivot&&(this.selection={start:function(d,N){return pQ(d,N)?d:N}(this.dragPivot,M),
end:function(d,N){return pQ(d,N)?N:d}(this.dragPivot,M)},this.dragPivot||(this.selectionState="START_DATE"))};
_.F.handleCalendarDateMouseLeave=function(){};
_.F.handleCalendarSubmitDateRange=function(){this.selection&&!I_S(this.selection)&&_.ZI(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.F.updateInvalidState=function(){var M=function(d,N){N?d.setAttribute("invalid",""):d.removeAttribute("invalid")};
M(this.startDateInput,this.isStartDateInvalid);M(this.endDateInput,this.isEndDateInvalid)};
_.F.updateDateStrings=function(){this.selection&&(I_S(this.selection)?q2N(this.selection):(q2N(this.selection.start),q2N(this.selection.end)))};
_.F.updateCalendarSelection=function(M){this.calendar.updateSelection(Object.assign({},M,{selectionState:this.selectionState}))};
_.F.updateIsStartDateInvalidFromBinding=function(M){this.isStartDateInvalid=M.detail.value};
_.F.updateIsEndDateInvalidFromBinding=function(M){this.isEndDateInvalid=M.detail.value};
_.F.updateStartDateStringFromBinding=function(){};
_.F.updateEndDateStringFromBinding=function(){};
_.Hm.Object.defineProperties(Iw.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:mJ(this.data.dateRangeStart),end:mJ(this.data.dateRangeEnd),selection:{start:mJ(this.data.selection.start),end:mJ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Ovq(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&jir(this.selection)}}});
Iw.prototype.resetTextboxes=Iw.prototype.resetTextboxes;Iw.prototype.observeSelection=Iw.prototype.observeSelection;Iw.prototype.dataChanged=Iw.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Iw.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#calendar"),_.a("design:type",Object)],Iw.prototype,"calendar",void 0);
_.G([_.Z3("#start-date"),_.a("design:type",Object)],Iw.prototype,"startDateInput",void 0);_.G([_.Z3("#end-date"),_.a("design:type",Object)],Iw.prototype,"endDateInput",void 0);_.G([_.H(),_.a("design:type",Object)],Iw.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Iw.prototype,"selection",void 0);_.G([_.H(),_.a("design:type",String)],Iw.prototype,"selectionState",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"calendarConfig",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"errorMessage",null);_.G([_.z("selection"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"startDate",null);_.G([_.z("selection"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iw.prototype,"endDate",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iw.prototype,"dataChanged",null);
_.G([_.xB("selection","selectionState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iw.prototype,"observeSelection",null);_.G([_.xB("selectionState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iw.prototype,"resetTextboxes",null);Iw=_.G([_.f({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Iw);
_.L(Iw,"ytd-date-period-picker-renderer",function(){if($8L!==void 0)return $8L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return $8L=M},{mode:1});var vL=function(){var M=_.n.apply(this,arguments)||this;var d={};M.actionMap=(d["ytd-date-period-picker-apply"]="handleDateRangeUpdated",d);return M};
_.v(vL,_.n);vL.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
vL.prototype.handleDateRangeUpdated=function(){};
_.G([_.H(),_.a("design:type",Object)],vL.prototype,"data",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],vL.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vL.prototype,"rendererstamperBehavior",void 0);vL=_.G([_.f({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],vL);
_.L(vL,"ytd-report-history-section-header-renderer",function(){if(lOd!==void 0)return lOd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return lOd=M},{mode:1});var gN3;var W_I;var wdm;var O3=function(){return _.n.apply(this,arguments)||this};
_.v(O3,_.n);_.Hm.Object.defineProperties(O3.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?0:(d=M.icon)==null?0:d.iconType)?_.C6(this.data.icon.iconType):""}}});
_.G([_.H(),_.a("design:type",Object)],O3.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],O3.prototype,"icon",null);O3=_.G([_.f({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],O3);
_.L(O3,"ytd-report-history-table-text-cell-renderer",function(){if(wdm!==void 0)return wdm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wdm=M},{mode:1});var j3=function(){return _.n.apply(this,arguments)||this};
_.v(j3,_.n);j3.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],j3.prototype,"data",void 0);j3=_.G([_.f({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],j3);
_.L(j3,"ytd-report-history-table-reason-cell-renderer",function(){if(W_I!==void 0)return W_I;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return W_I=M},{mode:1});var s3=function(){return _.n.apply(this,arguments)||this};
_.v(s3,_.n);s3.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"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],s3.prototype,"rendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],s3.prototype,"data",void 0);s3=_.G([_.f({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],s3);
_.L(s3,"ytd-report-history-table-cell-renderer",function(){if(gN3!==void 0)return gN3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return gN3=M},{mode:1});var pdV;var PL=function(){var M=_.n.apply(this,arguments)||this;M.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return M};
_.v(PL,_.n);PL.prototype.onDataChanged=function(){var M;if((M=this.data)==null?0:M.style)this.componentStyle=this.getStyleName(this.data.style)};
PL.prototype.getCellForColumn=function(M){return this.cells.find(function(d){var N;return((N=_.q(d==null?void 0:d.cell,Rwe)||_.q(d==null?void 0:d.cell,NGV))==null?void 0:N.columnId)===M.type})};
PL.prototype.getClassForColumn=function(M){switch(M){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
PL.prototype.getStyleName=function(M){switch(M){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Hm.Object.defineProperties(PL.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.cells)||[]).map(function(d){return _.q(d,d2L)})}}});
PL.prototype.onDataChanged=PL.prototype.onDataChanged;_.G([_.H(),_.a("design:type",Object)],PL.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],PL.prototype,"columnRenderData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],PL.prototype,"componentStyle",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],PL.prototype,"cells",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PL.prototype,"onDataChanged",null);PL=_.G([_.f({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],PL);
_.L(PL,"ytd-report-history-table-row-renderer",function(){if(pdV!==void 0)return pdV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pdV=M},{mode:1});var m8g;var hRz;var ynZ={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},JnA={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ow=function(){return _.n.apply(this,arguments)||this};
_.v(ow,_.n);ow.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"}}}}}};
ow.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Hm.Object.defineProperties(ow.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.columns)?eeN(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return ze2(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var M=this.tableSpec,d=ynZ;d=d===void 0?JnA:d;d=bvq(M.columnDimensions,M.columnsToShow||[],d);M=0;d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,M+=N.minWidth+N.paddingLeft+N.paddingRight;return M}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.G([_.S(_.j1),_.a("design:type",Object)],ow.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ow.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ow.prototype,"tableSpec",null);_.G([_.z("tableSpec"),_.a("design:type",Array),_.a("design:paramtypes",[])],ow.prototype,"columnRenderData",null);
_.G([_.z("tableSpec"),_.a("design:type",Number),_.a("design:paramtypes",[])],ow.prototype,"totalMinWidth",null);_.G([_.z("totalMinWidth"),_.a("design:type",String),_.a("design:paramtypes",[])],ow.prototype,"tableWidthStyle",null);ow=_.G([_.f({is:"ytd-table-renderer",disableElementRegistration:!0})],ow);
_.L(ow,"ytd-table-renderer",function(){if(hRz!==void 0)return hRz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hRz=M},{mode:1});var rt=function(){return _.n.apply(this,arguments)||this};
_.v(rt,_.n);rt.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}}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rt.prototype,"data",void 0);rt=_.G([_.f({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],rt);
_.L(rt,"ytd-report-reason-history-modal-renderer",function(){if(m8g!==void 0)return m8g;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return m8g=M},{mode:1});var QvC;var qk3;var IOV;var K8=function(){return _.n.apply(this,arguments)||this};
_.v(K8,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],K8.prototype,"data",void 0);K8=_.G([_.f({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],K8);
_.L(K8,"ytd-profile-column-stats-entry-renderer",function(){if(IOV!==void 0)return IOV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return IOV=M},{mode:1});var vNg;var yH=function(){return _.n.apply(this,arguments)||this};
_.v(yH,_.n);yH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yH.prototype,"data",void 0);yH=_.G([_.f({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],yH);
_.L(yH,"ytd-profile-column-stats-renderer",function(){if(vNg!==void 0)return vNg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return vNg=M},{mode:1});var OCd;var JJ=function(){return _.n.apply(this,arguments)||this};
_.v(JJ,_.n);_.Hm.Object.defineProperties(JJ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var d,N;M=(d=this.data)==null?void 0:(N=d.thumbnail)==null?void 0:N.thumbnails;var R;return M&&((R=M[0])==null?void 0:R.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var d,N;M=(d=this.data)==null?void 0:(N=d.thumbnail)==null?void 0:N.thumbnails;var R;return M&&((R=M[0])==null?void 0:R.height)||80}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JJ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],JJ.prototype,"componentStyle",void 0);_.G([_.z("data.useThumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],JJ.prototype,"thumbnailWidth",null);
_.G([_.z("data.useThumbnailSize"),_.a("design:type",Object),_.a("design:paramtypes",[])],JJ.prototype,"thumbnailHeight",null);JJ=_.G([_.f({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],JJ);
_.L(JJ,"ytd-profile-column-user-info-renderer",function(){if(OCd!==void 0)return OCd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return OCd=M},{mode:1});var cL=function(){return _.n.apply(this,arguments)||this};
_.v(cL,_.n);cL.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cL.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],cL.prototype,"componentStyle",void 0);cL=_.G([_.f({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],cL);
_.L(cL,"ytd-profile-column-renderer",function(){if(qk3!==void 0)return qk3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return qk3=M},{mode:1});var S3=function(){var M=_.n.apply(this,arguments)||this;M.componentStyle="NON_CENTERED_PROFILE";return M};
_.v(S3,_.n);S3.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
S3.prototype.getIcon=function(M){return M?"settings:"+M.toLowerCase():null};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S3.prototype,"data",void 0);S3=_.G([_.f({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],S3);
_.L(S3,"ytd-page-introduction-renderer",function(){if(QvC!==void 0)return QvC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return QvC=M},{mode:1});var jvd;var zA=function(){return _.n.apply(this,arguments)||this};
_.v(zA,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zA.prototype,"data",void 0);zA=_.G([_.f({is:"ytd-report-description-renderer",disableElementRegistration:!0})],zA);
_.L(zA,"ytd-report-description-renderer",function(){if(jvd!==void 0)return jvd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jvd=M},{mode:1});var svd;var Ptt;var bQ=function(){return _.n.apply(this,arguments)||this};
_.v(bQ,_.n);bQ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bQ.prototype,"data",void 0);bQ=_.G([_.f({is:"ytd-video-report-renderer",disableElementRegistration:!0})],bQ);
_.L(bQ,"ytd-video-report-renderer",function(){if(Ptt!==void 0)return Ptt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ptt=M},{mode:1});var oNe;_.pO("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.pO("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var e3=function(){return _.n.apply(this,arguments)||this};
_.v(e3,_.n);e3.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]]"}}}}}};
e3.prototype.computeMessageStyle=function(M){return M};
e3.prototype.computeButtonOverride=function(M){var d;if((M==null?0:(d=M.style)==null?0:d.value)&&M.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e3.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],e3.prototype,"shelf",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],e3.prototype,"panel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.a("design:type",Boolean)],e3.prototype,"componentStyle",void 0);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],e3.prototype,"buttonOverride",void 0);e3=_.G([_.f({is:"ytd-message-renderer",disableElementRegistration:!0})],e3);
_.L(e3,"ytd-message-renderer",function(){if(oNe!==void 0)return oNe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return oNe=M},{mode:1});var HL=function(){return _.n.apply(this,arguments)||this};
_.v(HL,_.n);HL.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"}}}};
HL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
HL.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Hm.Object.defineProperties(HL.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!(((M=this.data)==null?0:M.header)&&((d=this.data)==null?0:d.table))}}});
HL.prototype.onRequestError=HL.prototype.onRequestError;_.G([_.S(_.j1),_.a("design:type",Object)],HL.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HL.prototype,"data",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],HL.prototype,"isUnifiedReportHistory",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HL.prototype,"onRequestError",null);HL=_.G([_.f({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],HL);
_.L(HL,"ytd-report-history-section-renderer",function(){if(svd!==void 0)return svd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return svd=M},{mode:1});var rRC;var n8=function(){var M=_.n.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.v(n8,_.n);n8.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],n8.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n8.prototype,"answerExpanded",void 0);n8=_.G([_.f({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],n8);
_.L(n8,"ytd-handles-claiming-faq-renderer",function(){if(rRC!==void 0)return rRC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return rRC=M},{mode:1});var K_d;var iQ=function(){return _.n.apply(this,arguments)||this};
_.v(iQ,_.n);_.G([_.H(),_.a("design:type",Object)],iQ.prototype,"data",void 0);iQ=_.G([_.f({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],iQ);
_.L(iQ,"ytd-handles-claiming-faq-section-renderer",function(){if(K_d!==void 0)return K_d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return K_d=M},{mode:1});var yRm;var f8=function(){var M=_.n.apply(this,arguments)||this;M.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";M.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";M.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";M.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";M.leftSquiggly=M.leftSquigglyLight;M.rightSquiggly=M.rightSquigglyLight;
M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return M};
_.v(f8,_.n);_.F=f8.prototype;_.F.updateLeftSquigglyStyle=function(){_.UO(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.F.updateRightSquigglyStyle=function(){_.UO(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.F.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),M?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
f8.prototype.updateRightSquigglyStyle=f8.prototype.updateRightSquigglyStyle;f8.prototype.updateLeftSquigglyStyle=f8.prototype.updateLeftSquigglyStyle;_.G([_.H(),_.a("design:type",Object)],f8.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],f8.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],f8.prototype,"leftSquiggly",void 0);_.G([_.H(),_.a("design:type",String)],f8.prototype,"rightSquiggly",void 0);
_.G([_.xB("leftSquiggly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f8.prototype,"updateLeftSquigglyStyle",null);_.G([_.xB("rightSquiggly"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],f8.prototype,"updateRightSquigglyStyle",null);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],f8.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],f8.prototype,"actionButtonOverride",void 0);f8=_.G([_.f({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],f8);
_.L(f8,"ytd-handles-claiming-header-renderer",function(){if(yRm!==void 0)return yRm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return yRm=M},{mode:1});var JRm;var L8=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";M.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";M.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";M.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
M.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";M.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";M.image0SquigglyBackground=M.image0LightSquigglyBackground;M.image1SquigglyBackground=M.image1LightSquigglyBackground;M.image3SquigglyBackground=M.image3LightSquigglyBackground;return M};
_.v(L8,_.n);_.F=L8.prototype;_.F.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.F.onDataChanged=function(){this.updateTitleAndImages()};
_.F.onThemeChanged=function(){this.updateTitleAndImages()};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.F.updateImage0SquigglyBackground=function(){_.UO(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.F.updateImage1SquigglyBackground=function(){_.UO(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.F.updateImage3SquigglyBackground=function(){_.UO(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.F.updateTitleAndImages=function(){var M,d;((M=this.data)==null?void 0:(d=M.titleImages)==null?void 0:d.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))};
L8.prototype.updateImage3SquigglyBackground=L8.prototype.updateImage3SquigglyBackground;L8.prototype.updateImage1SquigglyBackground=L8.prototype.updateImage1SquigglyBackground;L8.prototype.updateImage0SquigglyBackground=L8.prototype.updateImage0SquigglyBackground;L8.prototype.onThemeChanged=L8.prototype.onThemeChanged;L8.prototype.onDataChanged=L8.prototype.onDataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],L8.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],L8.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title0",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title1",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title2",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title3",void 0);
_.G([_.H(),_.a("design:type",Object)],L8.prototype,"title4",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image0",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image1",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image2",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image3",void 0);_.G([_.H(),_.a("design:type",Object)],L8.prototype,"image4",void 0);_.G([_.H(),_.a("design:type",String)],L8.prototype,"image0SquigglyBackground",void 0);
_.G([_.H(),_.a("design:type",String)],L8.prototype,"image1SquigglyBackground",void 0);_.G([_.H(),_.a("design:type",String)],L8.prototype,"image3SquigglyBackground",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"onDataChanged",null);_.G([_.xB("isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"onThemeChanged",null);
_.G([_.xB("image0SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"updateImage0SquigglyBackground",null);_.G([_.xB("image1SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"updateImage1SquigglyBackground",null);
_.G([_.xB("image3SquigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L8.prototype,"updateImage3SquigglyBackground",null);L8=_.G([_.f({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],L8);
_.L(L8,"ytd-handles-claiming-title-images-section-renderer",function(){if(JRm!==void 0)return JRm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return JRm=M},{mode:1});var cRo;var tJ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(tJ,_.n);tJ.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
tJ.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
tJ.prototype.onCopyButtonClick=function(){var M=this,d,N,R;return _.B(function(X){return(d=M.data)!=null&&d.primaryChannelUrl?_.D(X,navigator.clipboard.writeText(((N=M.data)==null?0:N.encodedChannelUrl)?M.data.encodedChannelUrl:"https://"+_.HD((R=M.data)==null?void 0:R.primaryChannelUrl)),0):X.jumpTo(0)})};
_.G([_.H(),_.a("design:type",Object)],tJ.prototype,"data",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],tJ.prototype,"ytComponentBehavior",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],tJ.prototype,"isDarkTheme",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],tJ.prototype,"ytActionHandlerBehavior",void 0);tJ=_.G([_.f({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],tJ);
_.L(tJ,"ytd-handles-claiming-update-social-renderer",function(){if(cRo!==void 0)return cRo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return cRo=M},{mode:1});var Skg;var GA=function(){var M=_.n.apply(this,arguments)||this;M.JSC$13787_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";M.JSC$13787_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.squigglyBackground=M.JSC$13787_squigglyBackgroundLight;return M};
_.v(GA,_.n);GA.prototype.updateSquigglyBackgroundStyle=function(){_.UO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
GA.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.squigglyBackground=M?this.JSC$13787_squigglyBackgroundDark:this.JSC$13787_squigglyBackgroundLight};
GA.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$13787_squigglyBackgroundDark:this.JSC$13787_squigglyBackgroundLight)};
GA.prototype.updateSquigglyBackgroundStyle=GA.prototype.updateSquigglyBackgroundStyle;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],GA.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GA.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],GA.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],GA.prototype,"squigglyBackground",void 0);_.G([_.xB("squigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GA.prototype,"updateSquigglyBackgroundStyle",null);GA=_.G([_.f({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],GA);
_.L(GA,"ytd-handles-claiming-vanity-info-renderer",function(){if(Skg!==void 0)return Skg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Skg=M},{mode:1});var zRd;var aw=function(){var M=_.n.apply(this,arguments)||this;M.JSC$13790_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";M.JSC$13790_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";M.squigglyBackground=M.JSC$13790_squigglyBackgroundLight;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(aw,_.n);_.F=aw.prototype;_.F.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$13790_squigglyBackgroundDark:this.JSC$13790_squigglyBackgroundLight)};
_.F.updateSquigglyBackgroundStyle=function(){_.UO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.F.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.F.detached=function(){this.stop()};
_.F.stop=function(){this.playerElement.stop()};
_.F.setupVideoPlayer=function(){var M=this,d,N;return _.B(function(R){d=M.data.videoId;N="http://i1.ytimg.com/vi/"+d+"/maxresdefault.jpg";M.playerElement.loadVideoWithPlayerVars({video_id:d,iurlhq:N});_.Vy(R)})};
aw.prototype.onDataChanged=aw.prototype.onDataChanged;aw.prototype.updateSquigglyBackgroundStyle=aw.prototype.updateSquigglyBackgroundStyle;_.G([_.H({value:!1}),_.a("design:type",Boolean)],aw.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],aw.prototype,"squigglyBackground",void 0);_.G([_.Z3("#player"),_.a("design:type",Object)],aw.prototype,"playerElement",void 0);_.G([_.H(),_.a("design:type",Object)],aw.prototype,"data",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],aw.prototype,"ytActionHandlerBehavior",void 0);_.G([_.xB("squigglyBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aw.prototype,"updateSquigglyBackgroundStyle",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aw.prototype,"onDataChanged",null);
aw=_.G([_.f({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],aw);
_.L(aw,"ytd-handles-claiming-video-item-renderer",function(){if(zRd!==void 0)return zRd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zRd=M},{mode:1});var bCe;var uQ=function(){var M=_.MS.apply(this,arguments)||this;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.containerWidthDiff=0;M.boundPrevClick=function(){M.set("offset",U3(M,M.offset-(M.scrollDistance||320)))};
M.boundNextClick=function(){M.set("offset",U3(M,M.offset+(M.scrollDistance||320)))};
M.boundScrollContainerMouseDown=function(d){M.dragMouseStart=d.clientX;M.dragOffsetStart=M.offset;M.dragging=!0};
M.boundScrollContainerDrag=function(d){M.dragging&&M.set("offset",U3(M,M.dragOffsetStart-(d.clientX-M.dragMouseStart)))};
M.boundMouseUp=function(){M.onMouseUp()};
M.boundWheelScroll=function(d){var N=0;Math.abs(d.deltaX)>=Math.abs(d.deltaY)?N=d.deltaX:d.shiftKey&&(N=d.deltaY);N!==0&&(M.offset+=N,d.stopPropagation(),d.preventDefault())};
M.boundChipCloudChipScrollIntoView=function(d){(d=d.detail)&&M.scrollChipIntoView(d)};
return M};
_.v(uQ,_.MS);uQ.prototype.attached=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.addEventListener("wheel",this.boundWheelScroll);M.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.style.touchAction="pan-y";M.addEventListener("pointerdown",this.boundScrollContainerMouseDown);M.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
uQ.prototype.detached=function(){var M=_.K(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.boundWheelScroll);M.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);M.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
uQ.prototype.reset=function(){this.set("offset",0);_.bM(this,this.setContainerWidthDiff);C8(this)};
var U3=function(M,d){return Math.min(Math.max(d,0),M.containerWidthDiff)};
uQ.prototype.onMouseUp=function(){this.dragging=!1};
uQ.prototype.transformContainer=function(){this.offset=U3(this,this.offset);var M=_.rK("HTML_DIR")==="rtl"?"":"-";_.K(this.hostElement).querySelector("#chips").style.transform="translateX("+M+this.offset+"px)";C8(this)};
var C8=function(M){_.bM(M,M.setButtonsState)};
uQ.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=U3(this,this.offset));this.atStart=this.offset<=0};
uQ.prototype.setContainerWidthDiff=function(){var M=_.K(this.hostElement).querySelector("#scroll-container"),d=_.K(this.hostElement).querySelector("#chips");M&&d&&(this.containerWidthDiff=d.clientWidth-M.clientWidth)};
uQ.prototype.scrollChipIntoView=function(M){var d=_.K(this.hostElement).querySelector("#scroll-container");if(d){var N=this.atStart?0:106,R=this.atEnd?0:106;M.offsetLeft<this.offset+N?this.offset=U3(this,M.offsetLeft-N):M.offsetLeft+M.clientWidth>this.offset+d.clientWidth-R&&(this.offset=U3(this,M.offsetLeft+M.clientWidth+R-d.clientWidth))}};
uQ.prototype.transformContainer=uQ.prototype.transformContainer;_.G([_.H({value:0}),_.a("design:type",Number)],uQ.prototype,"offset",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],uQ.prototype,"atStart",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],uQ.prototype,"atEnd",void 0);_.G([_.H(),_.a("design:type",Number)],uQ.prototype,"scrollDistance",void 0);
_.G([_.xB("offset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uQ.prototype,"transformContainer",null);uQ=_.G([_.d4()],uQ);var eRV;var HCd;var fOd=_.SG(function(M){var d=M.data;M=_.V(_.d0(!1,void 0,"icHmSe"));var N=M.next().value,R=M.next().value;M={};M=_.xj("ytChipShapeChip",function(){a:switch(d==null?void 0:d().state){case 0:var k="ytChipShapeActive";break a;case 1:k="ytChipShapeDisabled";break a;default:k="ytChipShapeInactive"}return k},function(){var k=d().type===1||d().type===2,T=d();
return k||T!=null&&T.startIcon?T==null||!T.startIcon||T!=null&&T.text?k?"ytChipShapeEndIconPadding":(T==null?0:T.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(M.ytChipShapeFocused=function(){var k;
return N()&&((k=d())==null?void 0:k.state)!==1},M));
var X=function(k){if((d==null?void 0:d().state)!==1){var T,W;(W=(T=d()).onTap)==null||W.call(T,k)}},A=_.dT(function(){var k=_.h().resolve(_.CF(_.TH));
if(k){R(k.isKeyBoardInUse());var T,W;(W=(T=d()).onFocusIn)==null||W.call(T)}return!1}),l=_.dT(function(){R(!1);
return!1});
return _.g("chip-shape",{class:"ytChipShapeHost","on:focusin":A,"on:focusout":l},_.g(nNd,{shouldWrapInButton:function(){return d().type!==2},
selected:function(){return d().state===0},
onClick:X,isDropdown:function(){return d().type===1},
accessibilityLabel:function(){return d().accessibilityLabel}},_.g("div",{class:M},_.g(_.kV,{cond:function(){return d().startIcon},
then:function(){return _.g(_.Fc,{icon:function(){var k;return(k=d())==null?void 0:k.startIcon},
className:function(){return d().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return d().text},_.g(iC3,{shape:d,
onClick:X}))))},"tb");
fOd.idomCompat=!0;var nNd=_.SG(function(M){var d=_.dT(function(N){M.onClick(N);return!1});
return _.g(_.kV,{cond:M.shouldWrapInButton,then:function(){return _.g("button",{class:"ytChipShapeButtonReset","on:click":d,role:function(){return M.isDropdown()?"combobox":"tab"},
"aria-label":M.accessibilityLabel,"aria-selected":M.selected},M.children)},
else:function(){return M.children}})},"ub"),iC3=_.SG(function(M){var d=M.shape;
var N=M.onClick;var R=_.dT(function(X){N(X);return!1});
return _.g(_.pF,null,_.g(_.gK,{when:function(){return d().type===1}},function(){return _.g(_.Fc,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.g(_.gK,{when:function(){return d().type===2}},function(){return _.g("button",{class:"ytChipShapeButtonReset",
"on:click":R},_.g(_.Fc,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.g(_.gK,{when:function(){return d().type===0}},function(){return _.g(_.GT,null)}))},"vb");_.eC(fOd,"chip-shape",{props:{data:_.cA}});var xg=function(){var M=_.n.apply(this,arguments)||this;M.disableDeselectEvent=!1;M.modern=_.Q("web_modern_typography");M.useChipShape=_.Q("web_chip_shape_defrag");M.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return M};
_.v(xg,_.n);_.F=xg.prototype;_.F.beforeRegister=function(){_.Q("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.F.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.F.onSelectChipCommand=function(M){if(!this.selected&&this.data&&(M=_.q(M,ByC),M.targetId&&M.targetId===this.data.targetId))this.onTap()};
_.F.onFilterChipTransformCommand=function(M){if(!this.selected&&this.data){var d;(M=(d=_.q(M,gst))==null?void 0:d.chipUniqueId)&&M===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.F.dataChanged=function(){var M=this;_.bM(this,function(){M.data&&M.data.isSelected&&!M.selected&&(M.scrollChipIntoView(),M.onTap())})};
_.F.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.F.computeChipStyle=function(M){return M!=null?M:"STYLE_DEFAULT"};
_.F.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ZI(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ZI(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.F.onFocus=function(){var M=_.h().resolve(_.CF(_.TH));M&&M.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.F.scrollChipIntoView=function(){_.YP(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Hm.Object.defineProperties(xg.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return thZ({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
xg.prototype.onFocus=xg.prototype.onFocus;xg.prototype.onTap=xg.prototype.onTap;xg.prototype.selectionChanged=xg.prototype.selectionChanged;xg.prototype.dataChanged=xg.prototype.dataChanged;_.G([_.S(_.Qg),_.a("design:type",Object)],xg.prototype,"ironButtonState",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],xg.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],xg.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.pG),_.a("design:type",Object)],xg.prototype,"ironA11yKeysBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xg.prototype,"disableDeselectEvent",void 0);_.G([_.H(),_.a("design:type",Object)],xg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.icon"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xg.prototype,"hasIcon",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.uniqueId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xg.prototype,"isGnomeChip",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xg.prototype,"modern",void 0);_.G([_.H({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.a("design:type",String)],xg.prototype,"chipStyle",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],xg.prototype,"selected",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xg.prototype,"useChipShape",void 0);_.G([_.z("data","selected"),_.a("design:type",Object),_.a("design:paramtypes",[])],xg.prototype,"chipShapeData",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"dataChanged",null);_.G([_.xB("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"selectionChanged",null);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"onTap",null);_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xg.prototype,"onFocus",null);xg=_.G([_.w4({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],xg);
_.L(xg,"yt-chip-cloud-chip-renderer",function(){if(HCd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;eRV===void 0&&(eRV=document.createElement("template"));var R=eRV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);HCd=M}M=HCd;return M},{mode:2});var Yg=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=!1;M.notSticky=!1;M.transparentBackground=!1;M.shouldHide=!1;M.disableSticky=!1;M.fluidWidth=!1;M.isClipList=!1;M.defaultChipIndex=0;M.isPlaylist=!1;M.playlistVotingAnimationEnabled=_.Q("web_enable_voting_animation");M.toolbarHeight=0;M.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return M};
_.v(Yg,_.n);_.F=Yg.prototype;
_.F.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}}}}}};
_.F.attached=function(){var M=this;document.addEventListener("scroll",_.ux(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var d;this.toolbarHeight=((d=document.querySelector("ytd-masthead"))==null?void 0:d.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(N){M.handleIntersect(N)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){M.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.F.detached=function(){var M;(M=this.intersectionObserver)==null||M.disconnect();var d;(d=this.resizeObserver)==null||d.disconnect();document.removeEventListener("scroll",_.ux(this,this.updateChipBarWidthAndTop))};
_.F.dataChanged=function(){var M=this,d,N,R;((R=_.q((d=this.data)==null?void 0:(N=d.contents)==null?void 0:N[0],yOV))==null?void 0:R.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var X=this.findSelectedChipIndex();this.selectedIndex!==X&&(this.selectedIndex=-1);_.bM(this,function(){M.selectedIndex=X;M.updating=!1;M.ytScrollableChipCloudBehavior.reset()})};
_.F.findSelectedChipIndex=function(){var M;if((M=this.data)==null||!M.contents)return 0;M=this.data.contents;for(var d=0;d<M.length;d++){var N=void 0;if((N=_.q(M[d],yOV))==null?0:N.isSelected)return d}return 0};
_.F.computeStyle=function(M){return M};
_.F.handleChipCloudChipSelectAction=function(M){M=this.JSC$13809_chipsSelector.indexOf(M);M>-1&&this.JSC$13809_chipsSelector.selectIndex(M)};
_.F.handleChipCloudChipDeselectAction=function(){if(_.Q("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],yOV))==null?void 0:N.navigationEndpoint;R&&_.ZI(this.hostElement,"yt-browse-section-list-reload-endpoint",[R]);this.JSC$13809_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.F.onGuideIsExpandedChanged=function(){var M=this.ytScrollableChipCloudBehavior;_.bM(M,M.setContainerWidthDiff);C8(this.ytScrollableChipCloudBehavior)};
_.F.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.bM(M,M.setContainerWidthDiff);C8(this.ytScrollableChipCloudBehavior)};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.F.handleIntersect=function(M){_.Q("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||M[0].intersectionRatio===1)};
_.F.updateDimensions=function(){var M=this.ytRendererBehavior.parentComponent;if(M){var d,N=(d=M.headerElement)!=null?d:M;_.UO(this.hostElement,{"--ytd-rich-grid-chips-bar-width":N.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.F.updateSelectedIndexFromBinding=function(M){this.selectedIndex=M.detail.value};
_.F.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var M;(M=this.sortFilterHeaderRendererElement)==null||M.setAttribute("is-playlist-page-with-filters","")}};
_.F.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.YS({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Hm.Object.defineProperties(Yg.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.contents)==null?void 0:d.find(function(R){return _.q(R,z0e)});
return{sortFilterHeaderRenderer:_.q(N,z0e)}}}});
Yg.prototype.dispatchChipBarIsSticky=Yg.prototype.dispatchChipBarIsSticky;Yg.prototype.isPlaylistPageChanged=Yg.prototype.isPlaylistPageChanged;Yg.prototype.updateChipBarWidthAndTop=Yg.prototype.updateChipBarWidthAndTop;Yg.prototype.onResize=Yg.prototype.onResize;Yg.prototype.onGuideIsExpandedChanged=Yg.prototype.onGuideIsExpandedChanged;Yg.prototype.dataChanged=Yg.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Yg.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],Yg.prototype,"ironResizableBehavior",void 0);_.G([_.S(),_.a("design:type",uQ)],Yg.prototype,"ytScrollableChipCloudBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Yg.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Yg.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],Yg.prototype,"selectedIndex",void 0);_.G([_.H({value:320}),_.a("design:type",Number)],Yg.prototype,"scrollDistance",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"notSticky",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"transparentBackground",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.a("design:type",String)],Yg.prototype,"componentStyle",void 0);_.G([_.H({selector:_.P8S}),_.a("design:type",Boolean)],Yg.prototype,"guideIsExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"shouldHide",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"disableSticky",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"fluidWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"isClipList",void 0);_.G([_.H(),_.a("design:type",Object)],Yg.prototype,"defaultChipIndex",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yg.prototype,"isPlaylist",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Yg.prototype,"playlistVotingAnimationEnabled",void 0);_.G([_.Z3("#chips"),_.a("design:type",Object)],Yg.prototype,"JSC$13809_chipsSelector",void 0);_.G([_.Z3("ytd-sort-filter-header-renderer"),_.a("design:type",HTMLElement)],Yg.prototype,"sortFilterHeaderRendererElement",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Yg.prototype,"updating",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"dataChanged",null);_.G([_.xB("guideIsExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"onGuideIsExpandedChanged",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"onResize",null);
_.G([_.NS("isChannelPageGrid","disableSticky","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"updateChipBarWidthAndTop",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isChannelPageGrid",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isHashtagLandingPage",null);
_.G([_.xB("isPlaylistPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"isPlaylistPageChanged",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isPlaylistPage",null);_.G([_.z("componentStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Yg.prototype,"isDisableDeselectEvent",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yg.prototype,"sortFilterHeaderRendererData",null);_.G([_.H({reflectToAttribute:!0,selector:_.SPZ}),_.a("design:type",String)],Yg.prototype,"frostedGlassMode",void 0);_.G([_.xB("notSticky"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yg.prototype,"dispatchChipBarIsSticky",null);Yg=_.G([_.f({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Yg);
_.L(Yg,"ytd-feed-filter-chip-bar-renderer",function(){if(bCe!==void 0)return bCe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return bCe=M},{mode:1});var L_e;var tcC=_.SG(function(M){var d=M.data;var N=M.buttonIndex;var R=M.selectedIndex;var X=M.onSelect;var A=function(){return N()===R()},l=function(){var T,W;
return(W=(T=d().text)==null?void 0:T.content)!=null?W:""};
_.dT(function(){});
M=_.Jo();var k=_.dT(function(){X(d().onSubmitCommand);return!1});
return _.g("yt-toggleable-image-button-view-model",{class:function(){var T={};T=(T["toggleable-image-button-view-model-wiz"]=!0,T[""]=!0,T["toggleable-image-button-view-model-wiz__semi-transparent"]=R()!==-1&&!A(),T);return _.ZH(T)},
tabindex:0,"aria-label":l,"aria-pressed":A,role:"button","on:keydown":M,"on:click":k},_.g(_.kV,{cond:function(){return d().logo},
then:function(T){return _.g(_.Jt,{data:T,className:function(){var W={};W=(W["toggleable-image-button-view-model-wiz__image"]=!0,W["toggleable-image-button-view-model-wiz__circular-radius"]=!(!d().backgroundColor||!d().backgroundColorDarkMode),W["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(A()&&d().backgroundColor&&d().backgroundColorDarkMode),W);return _.ZH(W)},
alt:l,useWidth:!1,style:function(){if(A()&&d().backgroundColor&&d().backgroundColorDarkMode){var W=h2(Number(d().backgroundColorDarkMode),"1");var w=h2(Number(d().backgroundColor),"1");W="background: linear-gradient(180deg,"+W+","+w+") border-box;"}else W="";return W}})}}),_.g(_.$F,{model:{borderRadius:"16px"}}),_.g("p",{class:function(){var T={};
T=(T["toggleable-image-button-view-model-wiz__label"]=!0,T["toggleable-image-button-view-model-wiz__bold-text"]=A(),T);return _.ZH(T)}},_.g(_.lG,{text:function(){return d().text}})))},"wb");
tcC.idomCompat=!0;var aOm=_.SG(function(M){var d=M.data;M=_.V(_.d0({index:-1,command:{}},void 0,"Zcqtsb"));var N=M.next().value,R=M.next().value;return _.g("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.g("div",{class:"nudge-form-view-model-wiz__form-options"},_.g(_.ho,{data:function(){return d().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(X,A){return _.g(tcC,{data:X.data,buttonIndex:A,selectedIndex:function(){return N().index},
onSelect:function(l){R({index:A(),command:l})}})}})),_.g(_.lG,{text:function(){return d().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.g("div",{class:"nudge-form-view-model-wiz__submit"},_.g(_.ho,{data:function(){return d().submitButton}},{buttonViewModel:function(X){return _.g(Glg,{data:X.data,
isDisabled:function(){return N().index===-1},
onClick:function(){_.vz(N().command)}})}})))},"xb");
aOm.idomCompat=!0;var Glg=_.SG(function(M){var d=_.Al(function(){return Object.assign({},M.data(),{state:M.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.g(_.o0,{data:d,onClick:M.onClick})},"yb");_.eC(aOm,"yt-nudge-form-view-model",{props:{data:_.cA}});var Z2=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.buttonUpdate=_.Q("web_modern_buttons");M.isDarkMode=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.v(Z2,_.n);_.F=Z2.prototype;_.F.computeNudgeStyle=function(M){return M?"modernized-nudge":""};
_.F.handleDarkModeToggledAction=function(M){this.isDarkMode=M};
_.F.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.F.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"}}}};
_.F.computeIsHorizontalButtons=function(M){return M?!!M.applyModernizedStyle&&!!M.enableHorizontalButtons&&!!M.secondaryButton:!1};
_.Hm.Object.defineProperties(Z2.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.backgroundStyle)!=null?d:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.contentsLocation)!=null?d:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.lightIconImage)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],Z2.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Z2.prototype,"actionHandlerBehavior",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("isHideEnclosingAction"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Z2.prototype,"isHidden",null);_.G([_.H(),_.a("design:type",Object)],Z2.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Z2.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Z2.prototype,"buttonUpdate",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.a("design:type",String)],Z2.prototype,"nudgeStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.trimStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],Z2.prototype,"trimStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.backgroundStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],Z2.prototype,"backgroundStyle",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.contentsLocation"),_.a("design:type",String),_.a("design:paramtypes",[])],Z2.prototype,"contentsLocation",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.disableDropShadow"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Z2.prototype,"noShadow",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.lightIconImage"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Z2.prototype,"noIcon",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.a("design:type",Boolean)],Z2.prototype,"isHorizontalButtons",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],Z2.prototype,"isDarkMode",void 0);Z2=_.G([_.f({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Z2);
_.L(Z2,"ytd-feed-nudge-renderer",function(){if(L_e!==void 0)return L_e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return L_e=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var U8V;var ubC;var E3=function(){var M=_.n.apply(this,arguments)||this;M.collapsed=!1;M.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return M};
_.v(E3,_.n);E3.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"}}}};
E3.prototype.handleRatingSelect=function(){var M;((M=this.data)==null?0:M.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
E3.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],E3.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.sp),_.a("design:type",Object)],E3.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E3.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],E3.prototype,"collapsed",void 0);E3=_.G([_.f({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],E3);
_.L(E3,"ytd-slimline-survey-renderer",function(){if(ubC!==void 0)return ubC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ubC=M},{mode:1});var Ctz;var Mq=function(){return _.n.apply(this,arguments)||this};
_.v(Mq,_.n);Mq.prototype.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
Mq.prototype.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M&&(M==null?0:M.secondaryTitleColor)&&this.maybeGetBackgroundColor(M)?(this.hostElement.style.backgroundColor=_.p3(this.maybeGetBackgroundColor(M)),this.hostElement.style.color=_.p3(M.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Mq.prototype.colorPaletteChanged=Mq.prototype.colorPaletteChanged;_.G([_.S(_.Op),_.a("design:type",Object)],Mq.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Mq.prototype,"data",void 0);_.G([_.H({selector:function(M){return M.ui.darkModeIsEnabled}}),
_.a("design:type",Boolean)],Mq.prototype,"isDarkMode",void 0);_.G([_.H(),_.a("design:type",Object)],Mq.prototype,"lightColorPalette",void 0);_.G([_.H(),_.a("design:type",Object)],Mq.prototype,"darkColorPalette",void 0);_.G([_.xB("darkColorPalette","lightColorPalette","data","isDarkMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mq.prototype,"colorPaletteChanged",null);Mq=_.G([_.f({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Mq);
_.L(Mq,"ytd-endorsement-header-renderer",function(){if(Ctz!==void 0)return Ctz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Ctz=M},{mode:1});_.eC(_.Dg,"yt-decorated-avatar-view-model",{props:{data:_.cA,className:_.cA}});var dA=function(){var M=_.n.apply(this,arguments)||this;M.fullHeight=_.Q("web_rich_grid_media_full_height");M.showChannelAvatar=!0;M.hasPlaylistThumbnail=!1;M.prepareThumbnailForPageTransition=function(){_.Q("web_thumbnail_to_watch_transition")&&(M.thumbnail.style.viewTransitionName="thumbnail-to-watch",M.cleanupThumbnailAfterPageTransition(M.thumbnail))};
return M};
_.v(dA,_.n);_.F=dA.prototype;
_.F.configureRendererStamper=function(){return{lazyLoadMenu:Ef,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:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.shouldLazyLoadMenu=function(){var M=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.Q("kevlar_modern_downloads_page")||!M};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13835_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.JSC$13835_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.F.getVideoPreviewOpts=function(){var M={},d;if((d=this.data)==null?0:d.multipleInlinePlaybackEndpoint)M=PAd;this.isRadio&&(M=sYJ);return _.Q("web_thumbnail_to_watch_transition")?Object.assign({},M,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):M};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13835_inlinePreviewHoverListener)==null||Mo(M)};
_.F.getOwner=function(){var M,d,N;return((M=this.data)==null?void 0:(d=M.channelThumbnailSupportedRenderers)==null?void 0:d.channelThumbnailWithLinkRenderer)||_.q((N=this.data)==null?void 0:N.showProviderChannelThumbnail,jxt)};
_.F.updateLockupSize=function(){var M;((M=this.getOwner())==null?0:M.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.F.getFeedbackEndpoint=function(M){if(_.q(M,_.yr))return M;var d,N;M=(N=(d=_.q(M,_.XP))==null?void 0:d.commands)!=null?N:[];d=_.V(M);for(N=d.next();!N.done;N=d.next())if(N=this.getFeedbackEndpoint(N.value))return N;return null};
_.F.computeNavigationEndpoint=function(M){return XFZ(M==null?void 0:M.navigationEndpoint)};
_.F.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var M=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(M)!==JSON.stringify(this.data)&&this.set("data",M)}};
_.F.onDataChanged=function(){var M=this,d=this.getOwner();if(d){this.set("data.owner",d);var N,R,X,A,l,k=((N=this.data)==null?void 0:(R=N.shortBylineText)==null?void 0:(X=R.runs)==null?void 0:(A=X[0])==null?void 0:A.text)||((l=d.name)==null?void 0:l.simpleText);this.set("data.owner.title",k)}var T,W,w,p,m,I;d=((T=this.data)==null?void 0:(W=T.thumbnailRenderer)==null?void 0:W.playlistVideoThumbnailRenderer)||((w=this.data)==null?void 0:(p=w.thumbnailRenderer)==null?void 0:p.playlistCustomThumbnailRenderer)||
((m=this.data)==null?void 0:(I=m.thumbnailRenderer)==null?void 0:I.showCustomThumbnailRenderer);var O;((O=this.data)==null?0:O.thumbnail)||!d||this.set("data.thumbnail",d.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){M.updateLockupSize()});
var y;if(T=((y=this.data)==null?void 0:y.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(T);var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.F.onHiddenChanged=function(){this.updateLockupSize()};
_.F.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ZI(this.hostElement,"yt-terminate-video-preview-action");else{var M;(M=this.videoTitleLink)==null||M.focus()}};
_.F.metadataColorChanged=function(){var M;if(this.metadataColor&&((M=this.videoTitle)==null?0:M.style))this.videoTitle.style.color=_.p3(this.metadataColor);else{var d,N;!this.metadataColor&&((d=this.videoTitle)==null?0:(N=d.style)==null?0:N.color)&&(this.videoTitle.style.color="")}};
_.F.onDetailsClick=function(M){var d=this.computedNavigationEndpoint;d&&(_.Sm(_.J2(M),this.hostElement,["A","BUTTON"])||_.YP(this.hostElement,"yt-navigate",{endpoint:d}))};
_.F.cleanupThumbnailAfterPageTransition=function(M){_.YO2(document,"yt-page-type-changed",function(){M.style.viewTransitionName=""})};
_.F.onRendererTap=function(){this.prepareThumbnailForPageTransition();var M,d,N=((M=this.data)==null?void 0:M.serviceEndpoint)||this.getFeedbackEndpoint((d=this.data)==null?void 0:d.navigationEndpoint);N&&_.q(N,_.yr)&&this.ytComponentBehavior.resolveCommand(N)};
_.F.onMouseDown=function(M){var d=M.target,N=this.computedNavigationEndpoint,R;M=d.href||((R=_.q(N==null?void 0:N.commandMetadata,_.an))==null?void 0:R.url);R=d.data||N;M&&R&&k0q(M,R)};
_.F.computeVideoTitleText=function(){var M;if((M=this.data)==null?0:M.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.F.computeHasPlaylistThumbnail=function(M){var d,N,R,X,A;if((((d=M.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((N=M.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer)||((R=M.thumbnailRenderer)==null?0:R.showCustomThumbnailRenderer)||((X=M.thumbnailRenderer)==null?0:X.playlistVideoThumbnailRenderer)||((A=M.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(d=0;d<M.thumbnailOverlays.length;d++)if(N=void 0,(N=M.thumbnailOverlays[d])==
null?0:N.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Hm.Object.defineProperties(dA.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Q("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13835_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.mhS(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.videoId)||((d=this.data)==null?void 0:d.playlistId)||""}}});
dA.prototype.onMouseDown=dA.prototype.onMouseDown;dA.prototype.metadataColorChanged=dA.prototype.metadataColorChanged;dA.prototype.onIsDismissedChanged=dA.prototype.onIsDismissedChanged;dA.prototype.onHiddenChanged=dA.prototype.onHiddenChanged;dA.prototype.onDataChanged=dA.prototype.onDataChanged;dA.prototype.handleReloadDownloadsInfo=dA.prototype.handleReloadDownloadsInfo;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],dA.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],dA.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],dA.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],dA.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],dA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],dA.prototype,"entitySelectorType",void 0);_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"noEndpoints",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],dA.prototype,"isRadio",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],dA.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],dA.prototype,"fullHeight",void 0);
_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"showDarkVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"showLightVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Number)],dA.prototype,"metadataColor",void 0);_.G([_.H(),_.a("design:type",Object)],dA.prototype,"showChannelAvatar",void 0);_.G([_.H(),_.a("design:type",Boolean)],dA.prototype,"hidden",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],dA.prototype,"showYtInteraction",void 0);
_.G([_.H(),_.a("design:type",String)],dA.prototype,"dismissedContentId",void 0);_.G([_.H({selectorArgs:["dismissedContentId"],selector:xY6}),_.a("design:type",Object)],dA.prototype,"dismissActionToReplayEntity",void 0);
_.G([_.H({selectorArgs:["entitySelectorType","mediaId"],selector:function(M,d,N){if(_.Q("kevlar_modern_downloads_page")&&N&&d&&d!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(d){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var R=H9N(M,N);if(R){d=_.jp(M,N);var X=PD(M,N),A=xsi(M,N);M=oz(M,N);var l=sL6(R,d,X,A);X=l.shortViewCountText;var k=l.publishedTimeText;l=l.badges;var T=M>0;A=O4N(R,d,A,M);R=_.TL(d)||d==="TRANSFER_STATE_FAILED"||d==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!k$(R.policyEntity)?
void 0:NIq(N,M,R.videoEntity.lengthSeconds);d==="TRANSFER_STATE_PAUSED_BY_USER"&&N&&!_.Q("dl_resume_click_killswitch")&&(R={offlineVideoEndpoint:{videoId:N,action:"ACTION_RESUME"}});N={shortViewCountText:X,publishedTimeText:k,badges:l,isWatched:T,navigationEndpoint:R,thumbnailOverlays:A}}else N=void 0;return N;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(d=n3i(M,N))if(R=_.sW(M,N),A=_.i92(M,N),R!=="TRANSFER_STATE_UNKNOWN"){N=jLq(d,R,A,N,c6j(M));break a}N=void 0}return N;default:_.vh(new _.WJ("Error: entitySelectorType defined but not matched in selector.",
M,d))}}}),
_.a("design:type",Object)],dA.prototype,"entityDrivenState",void 0);_.G([_.H({computed:"computeVideoTitleText(data)"}),_.a("design:type",Object)],dA.prototype,"videoTitleText",void 0);_.G([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.a("design:type",Object)],dA.prototype,"hasPlaylistThumbnail",void 0);_.G([_.H({computed:"computeNavigationEndpoint(data)"}),_.a("design:type",Object)],dA.prototype,"computedNavigationEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],dA.prototype,"typographyBump",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dA.prototype,"typographyBumpV2",null);_.G([_.Z3("#video-title"),_.a("design:type",HTMLElement)],dA.prototype,"videoTitle",void 0);_.G([_.Z3("#video-title-link"),_.a("design:type",HTMLElement)],dA.prototype,"videoTitleLink",void 0);
_.G([_.Z3("#thumbnail"),_.a("design:type",HTMLElement)],dA.prototype,"thumbnail",void 0);_.G([_.Z3("#dismissible"),_.a("design:type",HTMLElement)],dA.prototype,"JSC$13835_dismissibleMedia",void 0);_.G([_.z("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],dA.prototype,"lazyLoadMenu",null);_.G([_.z("data.menu"),_.a("design:type",Object),_.a("design:paramtypes",[])],dA.prototype,"immediateLoadMenu",null);
_.G([_.NS("entityDrivenState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"handleReloadDownloadsInfo",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"onDataChanged",null);_.G([_.NS("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"onHiddenChanged",null);
_.G([_.xB("isDismissed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"onIsDismissedChanged",null);_.G([_.xB("metadataColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dA.prototype,"metadataColorChanged",null);_.G([_.C3("mousedown"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],dA.prototype,"onMouseDown",null);
_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dA.prototype,"isHovered",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dA.prototype,"useAvatar",null);_.G([_.z("data","entitySelectorType"),_.a("design:type",String),_.a("design:paramtypes",[])],dA.prototype,"mediaId",null);dA=_.G([_.f({is:"ytd-rich-grid-media",disableElementRegistration:!0})],dA);
var x8z=_.ty()(dA,"ytd-rich-grid-media",function(){if(U8V!==void 0)return U8V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return U8V=M},{mode:_.G3("kevlar_poly_si_batch_j072")?1:2});var Ykt;var Nq=function(){var M=_.n.apply(this,arguments)||this;M.removeMaxWidth=!0;M.insetMetadata=!1;return M};
_.v(Nq,_.n);_.F=Nq.prototype;_.F.configureRendererStamper=function(){return{innerMenu:Ef,outerMenu:Object.assign({},Ef,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.onDataChanged=function(){var M,d=((M=this.data)==null?void 0:M.trackingParams)||"";d&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(d));var N;((N=this.dismissActionToReplayEntity)==null?0:N.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13841_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.JSC$13841_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:vEi})};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13841_inlinePreviewHoverListener)==null||Mo(M)};
_.F.onRendererTap=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.serviceEndpoints)==null?void 0:d[0];_.q(N,_.yr)&&this.componentBehavior.resolveCommand(N)};
_.F.onDetailsClick=function(M){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;N&&(_.Sm(_.J2(M),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(N))};
_.F.onShow=function(){var M=this.data;M.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(M.onFirstVisibleCommand),delete M.onFirstVisibleCommand)};
_.Hm.Object.defineProperties(Nq.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?void 0:(M=this.data)==null?void 0:M.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?(M=this.data)==null?void 0:M.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var M=this.data;if(M!=null&&M.badge&&(M=_.q(M.badge,OGL))){var d,N,R;return[{metadataBadgeRenderer:{label:((d=M.label)==null?void 0:(N=d.runs)==null?void 0:N[0].text)||((R=M.label)==null?void 0:R.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var M=this.data;return Object.assign({},M.headline,{accessibility:M.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return this.isSlimShort?(M=this.computedTitle)==null?void 0:(d=M.accessibility)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13841_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Nq.prototype.onDataChanged=Nq.prototype.onDataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Nq.prototype,"componentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],Nq.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.sp),_.a("design:type",Object)],Nq.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Nq.prototype,"ytdReduxBehavior",void 0);_.G([_.Z3("ytd-thumbnail"),_.a("design:type",HTMLElement)],Nq.prototype,"thumbnail",void 0);_.G([_.Z3("#dismissible"),_.a("design:type",HTMLElement)],Nq.prototype,"JSC$13841_dismissibleMedia",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Nq.prototype,"removeMaxWidth",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Nq.prototype,"insetMetadata",void 0);_.G([_.H(),_.a("design:type",String)],Nq.prototype,"dismissedContentId",void 0);_.G([_.H({selectorArgs:["dismissedContentId"],selector:xY6}),_.a("design:type",Object)],Nq.prototype,"dismissActionToReplayEntity",void 0);_.G([_.z("insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"thumbnailObjectFit",null);
_.G([_.z("data","insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"innerMenu",null);_.G([_.z("data","insetMetadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"outerMenu",null);_.G([_.H(),_.a("design:type",Object)],Nq.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],Nq.prototype,"miniMode",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Nq.prototype,"onDataChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"shortsBadges",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nq.prototype,"isShort",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nq.prototype,"isSlimShort",null);_.G([_.z("data","isShort"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"computedTitle",null);_.G([_.z("isSlimShort","computedTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],Nq.prototype,"computedAccessibilityLabel",null);
_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nq.prototype,"isHovered",null);Nq=_.G([_.f({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Nq);
_.L(Nq,"ytd-rich-grid-slim-media",function(){if(Ykt!==void 0)return Ykt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ykt=M},{mode:_.G3("kevlar_poly_si_batch_j063")?1:2});var ZCV;var ENL;var R6=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(R6,_.n);R6.prototype.computeIcon=function(M){return M&&M.iconType?"yt-sys-icons:"+M.iconType.toLowerCase():""};
R6.prototype.onMouseEnter=function(){this.isHovered=!0};
R6.prototype.onMouseLeave=function(){this.isHovered=!1};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],R6.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R6.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],R6.prototype,"isHovered",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],R6.prototype,"darkerDarkTheme",void 0);R6=_.G([_.f({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],R6);
_.L(R6,"ytd-expand-on-hover-card-renderer",function(){if(ENL!==void 0)return ENL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ENL=M},{mode:1});var Mgd,d4L=function(){if(Mgd!==void 0)return Mgd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Mgd=M};_.pO("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var X2=function(){var M=_.n.apply(this,arguments)||this;M.compactStyle=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(X2,_.n);_.F=X2.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.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"}}}};
_.F.computeHideDot=function(M){return!(M&&M.subscriberCountText&&M.videoCountText)||this.compactStyle};
_.F.hasDualButtons=function(M){return M&&M.purchaseButton&&M.subscribeButton};
_.F.backgroundColorChanged=function(){if(this.data!==void 0){var M=this.data.backgroundColor;this.isDarkTheme&&(M=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=M!=null?_.p3(M):"transparent"}};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.onTap=function(M){var d,N,R=((d=this.data)==null?void 0:d.navigationEndpoint)||((N=this.data)==null?void 0:N.serviceEndpoint);_.q(R,_.Ec)&&(R&&_.h().resolve(_.xV).resolveCommand(R,{form:{element:this.hostElement}}),M.preventDefault())};
_.F.computeChannelEndpoint=function(M){return _.q(M,_.Ec)?null:M};
_.F.computeHrefEndpoint=function(M){return _.q(M,_.Ec)?null:this.componentBehavior.computeHref_(M)};
_.F.computeChannelRendererStyle=function(M){return M};
_.F.computeIconSize=function(M){return M?108:136};
_.Hm.Object.defineProperties(X2,{template:{configurable:!0,enumerable:!0,get:function(){return d4L()}}});
X2.prototype.backgroundColorChanged=X2.prototype.backgroundColorChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],X2.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],X2.prototype,"componentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],X2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],X2.prototype,"isDarkTheme",void 0);_.G([_.H({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.a("design:type",String)],X2.prototype,"channelRendererStyle",void 0);_.G([_.H({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],X2.prototype,"dualButtons",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],X2.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],X2.prototype,"biggerThumbStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],X2.prototype,"compactStyle",void 0);_.G([_.xB("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],X2.prototype,"backgroundColorChanged",null);X2=_.G([_.f({is:"ytd-channel-renderer",disableElementRegistration:!0})],X2);_.L(X2,"ytd-channel-renderer",function(){return d4L()},{mode:1});var NCg;var RBo;_.pO("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var F2=function(){var M=_.n.apply(this,arguments)||this;M.displayItemCount=2;M.collections=_.Q("web_modern_collections_v2");M.hasPlaylistThumbnail=!1;M.stackThumbnailSize="large";return M};
_.v(F2,_.n);_.F=F2.prototype;_.F.attached=function(){this.updateInlinePreviewHoverListeners()};
_.F.detached=function(){this.clearInlinePreviewHoverListeners()};
_.F.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.F.computeFirstVideos=function(M,d){return M&&d?M.slice(0,d):[]};
_.F.computeThumbnailWidth=function(M,d){return M?d==="BIG"?500:d==="MASSIVE"?600:d==="MEDIUM"?450:420:360};
_.F.computeThumbnailHeight=function(M,d){return M?d==="BIG"?280:d==="MASSIVE"?337:234:202};
_.F.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$13854_inlinePreviewHoverListener)==null||Mo(M)};
_.F.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13854_inlinePreviewHoverListener=LX({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:PAd,thumbnailElement:this.thumbnail})};
_.F.computeHasPlaylistThumbnail=function(M){var d,N;if((((d=M.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((N=M.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(d=0;d<M.thumbnailOverlays.length;d++)if(N=void 0,(N=M.thumbnailOverlays[d])==null?0:N.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Hm.Object.defineProperties(F2.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$13854_inlinePreviewHoverListener)==null?0:pN(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
F2.prototype.dataChanged=F2.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],F2.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],F2.prototype,"displayItemCount",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],F2.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],F2.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],F2.prototype,"collections",void 0);_.G([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.a("design:type",Object)],F2.prototype,"hasPlaylistThumbnail",void 0);_.G([_.H(),_.a("design:type",String)],F2.prototype,"stackThumbnailSize",void 0);_.G([_.Z3("ytd-thumbnail"),_.a("design:type",HTMLElement)],F2.prototype,"thumbnail",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F2.prototype,"dataChanged",null);_.G([_.z("lockupIsHovered"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],F2.prototype,"isHovered",null);F2=_.G([_.f({is:"ytd-radio-renderer",disableElementRegistration:!0})],F2);
_.L(F2,"ytd-radio-renderer",function(){if(RBo!==void 0)return RBo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return RBo=M},{mode:_.G3("kevlar_poly_si_batch_j058")?1:2});var XpL;_.pO("itemSectionRenderer","showRenderer","ytd-show-renderer");var AE=function(){return _.n.apply(this,arguments)||this};
_.v(AE,_.n);AE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
AE.prototype.computeThumbnailWidth=function(M){return M?360:246};
AE.prototype.computeUseProminentThumbs=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AE.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],AE.prototype,"isSearch",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.a("design:type",Boolean)],AE.prototype,"useProminentThumbs",void 0);AE=_.G([_.f({is:"ytd-show-renderer",disableElementRegistration:!0})],AE);
_.L(AE,"ytd-show-renderer",function(){if(XpL!==void 0)return XpL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XpL=M},{mode:1});_.pO("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var VW=function(){var M=_.n.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.v(VW,_.n);VW.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"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VW.prototype,"isRichGrid",void 0);VW=_.G([_.f({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],VW);
_.L(VW,"ytd-feed-entry-renderer",function(){if(NCg!==void 0)return NCg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return NCg=M},{mode:1});var Fad;var lE=function(){return _.n.apply(this,arguments)||this};
_.v(lE,_.n);lE.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.G([_.S(_.Op),_.a("design:type",Object)],lE.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],lE.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.Iz,value:3}),_.a("design:type",Number)],lE.prototype,"itemsPerRow",void 0);
lE=_.G([_.f({is:"ytd-link-card-renderer",disableElementRegistration:!0})],lE);
_.L(lE,"ytd-link-card-renderer",function(){if(Fad!==void 0)return Fad;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Fad=M},{mode:1});var AcV;var $J=function(){return _.n.apply(this,arguments)||this};
_.v($J,_.n);_.F=$J.prototype;_.F.configureRendererStamper=function(){return{"data.menu":Ef,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.F.onRendererTap=function(M){if(!this.ytdDismissibleItemBehavior.isDismissed){var d,N=(d=this.data)==null?void 0:d.navigationEndpoint;N&&!_.Sm(_.J2(M),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(N)?_.Sm(_.J2(M),this.hostElement,["A"])||_.YP(this.hostElement,"yt-navigate",{endpoint:N}):this.ytComponentBehavior.resolveCommand(N,{}))}};
_.F.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.F.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
_.F.isNavigationCommand=function(M){return M?_.q(M,_.F8)||_.q(M,_.nL)||_.q(M,_.JQ)?!0:!1:!1};
$J.prototype.onRendererTap=$J.prototype.onRendererTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],$J.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$J.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],$J.prototype,"data",void 0);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],$J.prototype,"onRendererTap",null);$J=_.G([_.f({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],$J);
_.L($J,"ytd-lumiere-promo-item-image-renderer",function(){if(AcV!==void 0)return AcV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return AcV=M},{mode:1});var Vge;var BW=function(){return _.n.apply(this,arguments)||this};
_.v(BW,_.n);BW.prototype.computeLandscapeThumbnail=function(){var M;return((M=this.data)==null?void 0:M.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],BW.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],BW.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.Iz}),_.a("design:type",Number)],BW.prototype,"itemsPerRow",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.a("design:type",Boolean)],BW.prototype,"landscapeThumbnail",void 0);BW=_.G([_.f({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],BW);
_.L(BW,"ytd-lumiere-shelf-details-renderer",function(){if(Vge!==void 0)return Vge;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Vge=M},{mode:_.G3("kevlar_poly_si_batch_j076")?1:2});var lzo;var kJ=function(){return _.n.apply(this,arguments)||this};
_.v(kJ,_.n);kJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kJ.prototype,"data",void 0);kJ=_.G([_.f({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],kJ);
_.L(kJ,"ytd-primetime-promo-details-renderer",function(){if(lzo!==void 0)return lzo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return lzo=M},{mode:1});var $4e;var TK=function(){return _.n.apply(this,arguments)||this};
_.v(TK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TK.prototype,"data",void 0);TK=_.G([_.f({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],TK);
_.L(TK,"ytd-panel-show-style-metadata-renderer",function(){if($4e!==void 0)return $4e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $4e=M},{mode:1});var BCm;var Dn=function(){return _.n.apply(this,arguments)||this};
_.v(Dn,_.n);_.F=Dn.prototype;_.F.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.F.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.F.computeThumbnail=function(M){if(M)return M.smallFormFactorBackgroundThumbnail||M.largeFormFactorBackgroundThumbnail};
_.F.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.F.isNavigationCommand=function(M){return M?_.q(M,_.F8)||_.q(M,_.nL)||_.q(M,_.JQ)?!0:!1:!1};
_.F.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
Dn.prototype.onPanelTap=Dn.prototype.onPanelTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Dn.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dn.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],Dn.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0,value:_.Q("web_modern_buttons")}),_.a("design:type",Boolean)],Dn.prototype,"modernButtons",void 0);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dn.prototype,"onPanelTap",null);Dn=_.G([_.f({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Dn);
_.L(Dn,"ytd-primetime-promo-panel-renderer",function(){if(BCm!==void 0)return BCm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return BCm=M},{mode:1});_.eC(_.SG(function(M){M=_.cu(M,{data:{},useFullWidth:!1});var d=M.data,N=M.useFullWidth,R=function(){return d().caption},X=function(){return d().image},A=function(){return _.ht(d().onTap)};
M={};M=_.xj("ytTeaserCardViewModelHost",(M.ytTeaserCardViewModelUseFullWidth=function(){return N()},M));
return _.g("teaser-card-view-model",{class:M},_.g(_.kV,{cond:function(){return A()},
then:function(){return _.g(crL,{className:"ytTeaserCardViewModelLink",command:A,forceNewState:!0,useATagConfig:!0},_.g("div",{class:"ytTeaserCardViewModelImageContainer"},_.g(_.kV,{cond:X,then:function(l){return _.g(_.Jt,{data:l,className:"ytTeaserCardViewModelImage",alt:""})}})),_.g("p",{class:"ytTeaserCardViewModelCaption"},R))}}))},"zb"),"teaser-card-view-model",{props:{data:_.cA,
useFullWidth:_.cA}});var k8e=new _.x5("RICH_GRID_VIDEO_RENDERER_TOKEN");_.eC(_.SG(function(M){var d=M.data;var N=M.showYtInteractionInContent;var R=function(){return!!d().selectableFeedback};
M=_.V(_.d0(!1,void 0,"nblDw"));var X=M.next().value,A=M.next().value;_.IJ(function(){var m=_.q(d().primaryButton,_.qH);(m==null?0:m.isToggled)&&A(m.isToggled)});
M=_.dT(function(m){if(!R())return!1;if(X()){var I;var O=(I=d().selectableFeedback)==null?void 0:I.onDeselect}else{var y;O=(y=d().selectableFeedback)==null?void 0:y.onSelect}O&&_.vz(O,{form:{element:m.target}});A(!X());if(m=_.q(d().primaryButton,_.qH))m.isToggled=X();return!1});
var l=function(){if(!R()){var m,I=(m=d().loggingDirectives)==null?void 0:m.trackingParams;I&&_.FD(_.h().resolve(_.Vs),I)}},k=_.inS(),T=function(){var m;
return R()?(m=d().selectableFeedback)==null?void 0:m.a11yLabel:void 0},W=function(){return R()?{toggled:X()}:{}},w=_.h().resolve(_.CF(k8e)),p={};
return _.g("yt-feedback-item-renderer",{class:_.xj("ytFeedbackItemRendererHost",(p.ytFeedbackItemRendererSelectableFeedback=R,p)),"on:click":M,"on:keydown":k,title:T,"aria-label":T,"aria-pressed":function(){return R()?X():void 0},
tabindex:function(){return R()?0:void 0},
role:function(){return R()?"button":void 0}},_.g("div",{class:"ytFeedbackItemRendererContentContainer"},_.g(_.ho,{data:function(){return d().content}},{videoRenderer:function(m){return _.g(w,{data:m.data,
showYtInteraction:N})},
lockupViewModel:function(m){return _.g(_.GS,{data:m.data,containerType:2})}})),_.g("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.g(_.ho,{data:function(){return d().primaryButton}},{toggleButtonViewModel:function(m){return _.g(_.I0,{data:m.data,
buttonShapeOverrides:W,disableExplicitClickLogging:!0,onToggle:l})}})))},"Ab"),"yt-feedback-item-renderer",{props:{data:_.cA,
showYtInteractionInContent:_.cA}});var gA=function(){var M=_.n.apply(this,arguments)||this;M.isShortsGrid=!1;M.isCompactGrid=!1;M.isShortsPanelGrid=!1;M.renderedFromRichGrid=!1;M.isInFirstColumn=!1;M.noGutterMargins=!1;M.isInlineGroupItem=!1;M.insetMetadata=!1;M.noBottomMarginInAds=_.Q("web_no_bottom_margin_for_home_ad_buttons");M.force16By9ThumbnailAspectRatio=!1;M.useCompactList=!1;M.containerType=2;M.thumbnailTargetWidth=9999;M.isResponsiveGrid=!1;M.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};M.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};M.hoverListener=M.hover.bind(M);M.leaveListener=M.leave.bind(M);M.highlighted=!1;M.JSC$13889_unsubscribeFromInlinePreviewIsActive=function(){};
return M};
_.v(gA,_.n);_.F=gA.prototype;_.F.computeContainerType=function(){return this.useCompactList?3:2};
_.F.computeThumbnailTargetWidth=function(){var M;return(M=this.itemWidth)!=null?M:9999};
_.F.updateIsInFirstColumn=function(){var M;this.isInFirstColumn=((M=this.data)==null?void 0:M.colIndex)===0};
_.F.observerContainerType=function(){if(this.lockup){var M=this.lockup;M.containerType=this.containerType;M.sizing=this.sizing;M.typographyBump=this.typographyBump;M.itemWidth=this.itemWidth}this.richGridMedia&&_.Q("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.Q("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.F.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.F.leave=function(M){M=M.relatedTarget;var d=document.querySelector("ytd-video-preview");M&&d&&_.L3(d).contains(M)||this.removeAndCleanupHighlight()};
_.F.hover=function(){var M;if(!this.highlighted&&(!_.Q("web_enable_rich_item_on_focus_effect")||(M=this.data)!=null&&M.onFocusEffect)){var d,N;((d=this.data)==null?void 0:(N=d.onFocusEffect)==null?void 0:N.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(M=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:M,boxShadow:"0 0 0 10px "+M}));var R,X;((R=this.data)==null?void 0:(X=R.onFocusEffect)==null?void 0:
X.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.F.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};
_.F.registerHoverHighlightListeners=function(){var M=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13889_unsubscribeFromInlinePreviewIsActive=_.kO(_.iY(),_.K6i,function(d){M.highlighted&&!d&&M.removeAndCleanupHighlight()})};
_.F.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13889_unsubscribeFromInlinePreviewIsActive()};
_.F.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.F.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.F.getBackgroundColor=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.onFocusEffect)==null?void 0:d.onFocusColor;if(N){if(document.documentElement.hasAttribute("dark")&&(N==null?0:N.darkTheme))return _.p3(N==null?void 0:N.darkTheme);if(N==null?0:N.lightTheme)return _.p3(N==null?void 0:N.lightTheme)}};
_.F.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var M=_.Ou(),d,N,R;M&&((d=this.data)==null?0:d.trackingParams)&&((N=this.data)==null?void 0:N.colIndex)!=null&&((R=this.data)==null?void 0:R.rowIndex)!=null&&_.nb(M,_.At(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.F.isSlimMediaRenderer=function(M){return!!_.q(M==null?void 0:M.content,_.dGg)||!!_.q(M==null?void 0:M.content,MPV)||!!_.q(M==null?void 0:M.content,_.r9)||!!_.q(M==null?void 0:M.content,qjL)};
_.F.isPostRenderer=function(){var M,d;return!!_.q((M=this.data)==null?void 0:M.content,$Id)||!!_.q((d=this.data)==null?void 0:d.content,Blm)};
_.F.computeIsGameCardShelf=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,$2C)};
_.F.computeIsMiniGameCardShelf=function(){var M,d;return!!_.q((M=this.data)==null?void 0:M.content,jte)||!!_.q((d=this.data)==null?void 0:d.content,stL)};
_.F.computeIsTeaserCard=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,stL)};
_.F.computeIsSelectableFeedbackItem=function(){var M,d;return!((d=_.q((M=this.data)==null?void 0:M.content,_.o5V))==null||!d.selectableFeedback)};
_.F.computeContainsLumierePosters=function(){var M,d;return((d=_.q((M=this.data)==null?void 0:M.content,Qxd))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.F.computeIsExpandOnHoverCardShelf=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,hv3)};
_.F.computeIsLinkCardShelf=function(){var M;return!!_.q((M=this.data)==null?void 0:M.content,mle)};
_.F.computeIsReelItemStyleAvatarCircle=function(M){var d;return((d=_.q(M==null?void 0:M.content,_.r9))==null?void 0:d.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.F.computeIsLinkCardFullWidth=function(M,d){var N;return((N=_.q(M==null?void 0:M.content,mle))==null?void 0:N.useFullWidth)||d<=2};
_.Hm.Object.defineProperties(gA.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Q("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_enable_rich_item_on_focus_effect")||_.Q("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.Q("web_shorts_2_by_3_lockups_study")||_.Q("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
gA.prototype.richGridHoverHighlightChanged=gA.prototype.richGridHoverHighlightChanged;gA.prototype.observerContainerType=gA.prototype.observerContainerType;gA.prototype.updateIsInFirstColumn=gA.prototype.updateIsInFirstColumn;_.G([_.S(_.Op),_.a("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],gA.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.a("design:type",Boolean)],gA.prototype,"isPost",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.a("design:type",Boolean)],gA.prototype,"containsLumierePosters",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.a("design:type",Boolean)],gA.prototype,"isSlimMedia",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isGameCardShelf",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isMiniGameCardShelf",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.a("design:type",Boolean)],gA.prototype,"isTeaserCard",void 0);_.G([_.H({computed:"computeIsSelectableFeedbackItem(data)"}),_.a("design:type",Boolean)],gA.prototype,"isSelectableFeedbackItem",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isShortsGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],gA.prototype,"isSlimGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isCompactGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isShortsPanelGrid",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isExpandOnHoverCardShelf",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.a("design:type",Boolean)],gA.prototype,"isLinkCardShelf",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.Iz,value:3}),_.a("design:type",Number)],gA.prototype,"itemsPerRow",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"renderedFromRichGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isInFirstColumn",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"noGutterMargins",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isInlineGroupItem",void 0);_.G([_.H(),_.a("design:type",Object)],gA.prototype,"insetMetadata",void 0);
_.G([_.H(),_.a("design:type",Object)],gA.prototype,"noBottomMarginInAds",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],gA.prototype,"isShelfItem",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.a("design:type",Boolean)],gA.prototype,"isReelItemStyleAvatarCircle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.a("design:type",Boolean)],gA.prototype,"isLinkCardFullWidth",void 0);
_.G([_.H(),_.a("design:type",Object)],gA.prototype,"force16By9ThumbnailAspectRatio",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"useCompactList",void 0);_.G([_.H(),_.a("design:type",String)],gA.prototype,"sizing",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],gA.prototype,"typographyBump",void 0);_.G([_.H(),_.a("design:type",Number)],gA.prototype,"itemWidth",void 0);_.G([_.H(),_.a("design:type",Boolean)],gA.prototype,"isHomeShelf",void 0);
_.G([_.Z3("yt-lockup-view-model"),_.a("design:type",HTMLElement)],gA.prototype,"lockup",void 0);_.G([_.Z3("ytd-rich-grid-media"),_.a("design:type",HTMLElement)],gA.prototype,"richGridMedia",void 0);_.G([_.Z3("ytd-ad-slot-renderer"),_.a("design:type",HTMLElement)],gA.prototype,"adSlotRenderer",void 0);_.G([_.H({computed:"computeContainerType(useCompactList)"}),_.a("design:type",Object)],gA.prototype,"containerType",void 0);
_.G([_.H({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.a("design:type",Object)],gA.prototype,"thumbnailTargetWidth",void 0);_.G([_.z("showYtInteractionOnRichItem"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"showYtInteractionOnRichGridMedia",null);_.G([_.z("isSelectableFeedbackItem","richGridHoverHighlight"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"showYtInteractionOnRichItem",null);
_.G([_.z("typographyBump"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"richTypographyBump",null);_.G([_.H({reflectToAttribute:!0}),_.z("isShortsGrid","isCompactGrid"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gA.prototype,"richGridHoverHighlight",null);_.G([_.z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.a("design:type",Number),_.a("design:paramtypes",[])],gA.prototype,"shortsLockupViewModelAspectRatio",null);
_.G([_.z("isInlineGroupItem"),_.a("design:type",Number),_.a("design:paramtypes",[])],gA.prototype,"shortsLockupViewModelScrimStyle",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"updateIsInFirstColumn",null);_.G([_.xB("containerType","sizing","typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"observerContainerType",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gA.prototype,"isResponsiveGrid",void 0);_.G([_.H(),_.a("design:type",Object)],gA.prototype,"lockupExperiments",void 0);_.G([_.xB("richGridHoverHighlight"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gA.prototype,"richGridHoverHighlightChanged",null);gA=_.G([_.f({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],gA);
_.TC3=_.ty()(gA,"ytd-rich-item-renderer",function(){if(ZCV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);ZCV=M}M=ZCV;return M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var E6L={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var V0r=_.ep(_.le("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var D4C;var WW=function(){var M=_.n.apply(this,arguments)||this;M.useResponsiveGrid=!1;M.hidden=!1;M.standardShelfMargins=_.Q("web_rich_grid_standard_shelf_margins");M.isShowMoreHidden=!1;M.isExpanded=!1;M.isInnerShelf=!1;M.allVideosCount=0;M.allPlaylistCount=0;M.haveSmartDownloadsCompleted=!1;M.isShowLessHidden=!0;M.restrictContentsOverflow=!1;M.firstShownIndex=0;M.horizontalOffset=0;M.atEnd=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};M.nextClick=function(){var d;(d=M.data)!=null&&d.contents&&(M.firstShownIndex+=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
M.previousClick=function(){var d;(d=M.data)!=null&&d.contents&&(M.firstShownIndex-=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
return M};
_.v(WW,_.n);_.F=WW.prototype;
_.F.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.rK("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.F.attached=function(){this.requestElementsPerRow()};
_.F.refreshGridLayoutNew=function(){var M;if((M=this.data)!=null&&M.contents&&this.containerWidth){var d;((d=this.data.responsiveContainerConfiguration)==null?0:d.responsiveSize)?(M=_.B76(this.data.responsiveContainerConfiguration,this.containerWidth),M=_.GH(Object.assign({},M,{standardUnitMinWidth:this.standardUnitMinWidth}))):M=_.GH({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=M.typographyBump;if(this.elementsPerRow!==
M.numItems||this.gutter!==M.gutter)this.elementsPerRow=M.numItems,this.gutter=M.gutter,this.itemWidth=M.itemWidth,_.UO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.gutter+"px"})}};
_.F.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.Q("web_use_layout_library_for_rich_grid_disable_shorts"))){var M=_.Wuj(this.data);if(M)return M;if(_.Q("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.F.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.Q("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.F.computeButton=function(M){var d=_.q(M,_.K9);M=Object.assign({},_.q(M,_.K9));return d?(M.text||(M.text={simpleText:M.tooltip}),M.style="STYLE_MONO_OUTLINE",M.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",M):d};
_.F.onRowIndexChange=function(){var M=_.Ou(),d,N;((d=this.data)==null?0:d.trackingParams)&&((N=this.data)==null?void 0:N.rowIndex)!=null&&M&&_.nb(M,_.At(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.F.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var M,d=((M=this.getRichItemRenderers()[0])==null?void 0:M.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*d;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
_.F.onUpdateElementsPerRowAction=function(M,d,N,R,X,A){if(this.containerWidth!==A&&(this.containerWidth=A,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&M&&d&&N&&R&&X&&(this.elementsPerRow!==M||this.postsPerRow!==d||this.slimItemsPerRow!==N||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==X)&&(this.elementsPerRow=M,this.postsPerRow=d,this.slimItemsPerRow=N,this.gameCardsPerRow=R,this.miniGameCardsPerRow=X,this.updateItemVisibility())};
_.F.getRichItemRenderers=function(){return _.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.F.updateItemVisibility=function(){var M=this;if(this.data&&this.data.contents){var d=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(R,X){var A;((A=M.data)==null?0:A.isExpanded)?(R.hidden=X>d-1,R.ytRendererBehavior.markDirty()):R.hidden=X>M.currentElementsPerRow-1||X>d-1});
var N=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||N||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||N||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.F.setHeightToSingleRow=function(){var M=this.getRichItemRenderers(),d=Number.parseInt(getComputedStyle(M[0]).marginBottom,10)||0;M=M.slice(0,this.currentElementsPerRow).reduce(function(N,R){return Math.max(N,R.getBoundingClientRect().height+d)},0);
this.contents.style.height=M+"px"};
_.F.focusNextExpandedItem=function(){var M;((M=this.data)==null?0:M.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.F.focusItem=function(M,d){var N=this.getRichItemRenderers();if(N[M]&&(M=N[M].querySelector(".focus-on-expand"))){if(d){var R;(R=N[this.currentElementsPerRow])==null||R.scrollIntoView({behavior:"smooth",block:"center"})}M.focus({preventScroll:!0})}};
_.F.onDataChange=function(){var M=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.bM(this,function(){M.updateItemVisibility()});
var d;if((d=this.data)==null?0:d.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.UO(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),d=0;d<this.data.contents.length;d++){var N=_.q(this.data.contents[d],_.OP)||{};N.colIndex=d;N.rowIndex=this.data.rowIndex}};
_.F.handleRerenderDownloadsData=function(){_.Q("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())};
_.F.blockInlinePreview=function(M){var d=this,N;return _.B(function(R){(N=d.inlinePreviewIsEnabled)&&d.ytdReduxBehavior.dispatch(_.dMg(!1));return R.return(new Promise(function(X){M(function(){N&&d.ytdReduxBehavior.dispatch(_.dMg(!0));X()})}))})};
_.F.expandShelf=function(){var M=this;if(this.data){var d,N=(d=_.q(this.data.showMoreButton,_.K9))==null?void 0:d.trackingParams;N&&_.FD(_.Nx(),N);this.data.isExpanded=!0;this.blockInlinePreview(function(R){M.setHeightToSingleRow();M.updateItemVisibility();M.contents.style.height=M.contents.scrollHeight+"px";_.IQ.addJob(function(){M.contents.style.height="auto";M.focusNextExpandedItem();R()},2,200)})}};
_.F.collapseShelf=function(){var M=this;return _.B(function(d){if(d.nextAddress==1){if(!M.data)return d.return();M.data.isExpanded=!1;return _.D(d,M.blockInlinePreview(function(N){M.contents.style.height=M.contents.scrollHeight+"px";M.setHeightToSingleRow();_.IQ.addJob(function(){M.updateItemVisibility();M.contents.style.height="auto";N()},2,200)}),2)}_.YP(M.hostElement,"yt-rich-shelf-renderer-collapse",M.data.trackingParams);
M.focusItem(0,!1);_.Vy(d)})};
_.F.updateArrowButtonStatus=function(){var M=this.getRichItemRenderers().length;if(!_.Q("web_rich_shelf_renderer_use_data_contents_killswitch")){var d,N;M=((d=this.data)==null?void 0:(N=d.contents)==null?void 0:N.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=M};
_.F.onChildElementFocus=function(M){this.hasChevronButtons&&(M=M.target.closest("#contents > *"),this.contents.contains(M)&&(M.offsetLeft<this.horizontalOffset?this.previousClick():M.offsetLeft+M.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.F.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.rK("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.F.updateHorizontalOffset=function(){var M=this.getRichItemRenderers(),d=M.length;if(!_.Q("web_rich_shelf_renderer_use_data_contents_killswitch")){var N,R;d=((N=this.data)==null?void 0:(R=N.contents)==null?void 0:R.length)||0}var X;M=((X=M[0])==null?void 0:X.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>d?this.firstShownIndex=d-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*M};
_.F.isSlimMediaShelfRenderer=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!!(_.q(R,_.dGg)||_.q(R,MPV)||_.q(R,_.r9)||_.q(R,qjL))};
_.F.isGameCardShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!!_.q(R,$2C)};
_.F.isGnomeShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!!_.q(R,_.o5V)};
_.F.isMiniGameCardShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!!_.q(R,jte)||!!_.q(R,stL)};
_.F.hasGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.F.hasRoundedGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.F.isShortsShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!!_.q(R,_.r9)||!!_.q(R,qjL)};
_.F.isPostShelfRenderer=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!(!_.q(R,$Id)&&!_.q(R,Blm))};
_.F.isLumiereShelf=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP);return!!_.q(N==null?void 0:N.content,Qxd)};
_.F.isLumiereShelfWithPosters=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP),R;return((R=_.q(N==null?void 0:N.content,Qxd))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.F.isExpandOnHoverCardShelf=function(){var M,d,N,R=(N=_.q((M=this.data)==null?void 0:(d=M.contents)==null?void 0:d[0],_.OP))==null?void 0:N.content;return!!_.q(R,hv3)};
_.F.computeHasFeaturedBadge=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.badges)==null?void 0:d[0],_.PmJ);return N?N.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.F.computeHasPaygatedFeaturedBadge=function(){var M,d,N=_.q((M=this.data)==null?void 0:(d=M.badges)==null?void 0:d[0],_.PmJ);return N?(N==null?void 0:N.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.F.computeHeaderHidden=function(){var M,d,N,R,X,A;return!((M=this.data)==null?0:M.icon)&&!((d=this.data)==null?0:d.title)&&!((N=this.data)==null?0:N.subtitle)&&!((R=this.data)==null?0:R.thumbnail)&&!((X=this.data)==null?0:X.badges)&&!((A=this.data)==null?0:A.menu)};
_.F.showCtaButton=function(){var M;return!((M=this.data)==null||!M.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.F.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.F.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.F.computeForce16By9ThumbnailAspectRatio=function(){var M,d;return((M=this.data)==null?void 0:(d=M.responsiveContainerConfiguration)==null?void 0:d.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.F.onSectionReactiveDismissal=function(M,d,N){var R,X;var A=(R=this.data)==null?void 0:(X=R.targetingContext)==null?void 0:X.targetGroupId;this&&A&&d.targetGroupId&&A.includes(d.targetGroupId)?(R=this.rowIndex,M=R===void 0?!1:!(d.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&R<=M)):M=!1;M&&(this.hidden=N)};
_.Hm.Object.defineProperties(WW.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var M=this.elementsPerRow;this.isPostShelfRenderer()?M=this.postsPerRow:this.isSlimMediaShelfRenderer()?M=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?M=this.slimItemsPerRow-1:this.isGameCardShelf()?M=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(M=this.miniGameCardsPerRow);return M}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.Q("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.previousButton)&&!((d=this.data)==null||!d.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.h().resolve(_.em).getCurrentPage())==null?void 0:M.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return!((M=this.data)==null?0:(d=M.thumbnail)==null?0:(N=d.accessibility)==null?0:(R=N.accessibilityData)==null?0:R.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
WW.prototype.onChildElementFocus=WW.prototype.onChildElementFocus;WW.prototype.handleRerenderDownloadsData=WW.prototype.handleRerenderDownloadsData;WW.prototype.onDataChange=WW.prototype.onDataChange;WW.prototype.onRowIndexChange=WW.prototype.onRowIndexChange;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.sp),_.a("design:type",Object)],WW.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],WW.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);_.G([_.H({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.a("design:type",Object)],WW.prototype,"useResponsiveGrid",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Number)],WW.prototype,"standardUnitMinWidth",void 0);_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],WW.prototype,"elementsPerRow",void 0);_.G([_.H({value:3}),_.a("design:type",Number)],WW.prototype,"postsPerRow",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],WW.prototype,"slimItemsPerRow",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],WW.prototype,"gameCardsPerRow",void 0);
_.G([_.H({value:6}),_.a("design:type",Number)],WW.prototype,"miniGameCardsPerRow",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"standardShelfMargins",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isShowMoreHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isExpanded",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isInnerShelf",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.a("design:type",Boolean)],WW.prototype,"isShorts",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.a("design:type",Boolean)],WW.prototype,"isLumiere",void 0);_.G([_.H({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasBoxArtThumbnailStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasFeaturedBadge",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.a("design:type",Boolean)],WW.prototype,"hasPaygatedFeaturedBadge",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.a("design:type",Boolean)],WW.prototype,"isHeaderHidden",void 0);_.G([_.H({selector:_.eKZ}),_.a("design:type",Object)],WW.prototype,"allVideosCount",void 0);_.G([_.H({selector:$6i}),_.a("design:type",Object)],WW.prototype,"allPlaylistCount",void 0);_.G([_.H({selector:u6A}),_.a("design:type",Object)],WW.prototype,"haveSmartDownloadsCompleted",void 0);
_.G([_.H({selectorArgs:["entitySelectorType"],selector:function(M,d){if(_.Q("kevlar_modern_downloads_page")&&d&&d!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var N=M.entities;switch(d){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":d=_.mZ(N);M=qo(d);var R=_.D4(d);N=_.QQ(N);N=_.ue(d6Z(R,N,d.length));return{contents:M,subtitle:N};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return N=_.mZ(N),{contents:qo(N)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return N=
_.hT(N),{contents:qo(N)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return N=_.W6Z(N),{contents:qo(N)};default:_.vh(new _.WJ("Error: entitySelectorType defined but not matched in selector.",M,d))}}}}),
_.a("design:type",Object)],WW.prototype,"entityDrivenRichShelfData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.a("design:type",Boolean)],WW.prototype,"hasTopCtaButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.a("design:type",Boolean)],WW.prototype,"hasBottomCtaButton",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.a("design:type",Boolean)],WW.prototype,"force16By9ThumbnailAspectRatio",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"isShowLessHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],WW.prototype,"restrictContentsOverflow",void 0);_.G([_.H({selector:_.y6j}),_.a("design:type",Boolean)],WW.prototype,"inlinePreviewIsEnabled",void 0);
_.G([_.H({computed:"computeSizing(data)"}),_.a("design:type",String)],WW.prototype,"sizing",void 0);_.G([_.H(),_.a("design:type",Boolean)],WW.prototype,"typographyBump",void 0);_.G([_.H(),_.a("design:type",Number)],WW.prototype,"itemWidth",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"firstShownIndex",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"horizontalOffset",void 0);_.G([_.H(),_.a("design:type",Object)],WW.prototype,"atEnd",void 0);
_.G([_.Z3("#contents"),_.a("design:type",HTMLElement)],WW.prototype,"contents",void 0);_.G([_.xB("data.rowIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WW.prototype,"onRowIndexChange",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WW.prototype,"onDataChange",null);
_.G([_.xB("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WW.prototype,"handleRerenderDownloadsData",null);_.G([_.C3("focusin"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],WW.prototype,"onChildElementFocus",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","isHomePage"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"isTruncated",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"hideBottomDivider",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],WW.prototype,"hasChevronButtons",null);_.G([_.z("firstShownIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],WW.prototype,"previousButtonOverride",null);
_.G([_.z("atEnd"),_.a("design:type",Object),_.a("design:paramtypes",[])],WW.prototype,"nextButtonOverride",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"isHomePage",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"thumbnailAriaHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],WW.prototype,"initiallyIsExpanded",null);
_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],WW.prototype,"entitySelectorType",null);WW=_.G([_.f({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],WW);
_.gxg=_.ty()(WW,"ytd-rich-shelf-renderer",function(){if(D4C===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);D4C=M}M=D4C;return M},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var WaV;_.eC(ZoL,"yt-slimline-survey-view-model",{props:{data:_.cA}});var wA=function(){var M=_.n.apply(this,arguments)||this;M.tileLottieAnimationRef={};M.backgroundLottieAnimationRef={};M.isOnHoverBehaviorForLottieEnabled=!0;M.useBiggerShowcaseImage=_.Q("enable_desktop_search_bigger_thumbs");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return M};
_.v(wA,_.n);_.F=wA.prototype;_.F.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.F.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.F.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var M=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);M!==this.hasTile&&this.set("hasTile",M);M=this.hasLogo(this.data)||!!this.data.badgeText;M!==this.hasMetadata&&this.set("hasMetadata",M);M=this.data.overflowButton?!1:M;M!==this.showLogoImage&&this.set("showLogoImage",M);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.F.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.F.currentColorChanged=function(){this.updateButtonPalette()};
_.F.computeBackgroundStyle=function(M){if(M&&this.data){var d=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var N=_.nq((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);N&&d.push('background-image: url("'+N+'");')}var R;((R=M.basicColorData)==null?void 0:R.backgroundColor)!==void 0&&d.push("background-color: "+_.ml(M.basicColorData.backgroundColor)+";");return d.join("")}};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
_.F.getCurrentLogo=function(M,d){if(M)return d?M.darkLogoImage:M.lightLogoImage};
_.F.getCurrentStaticTileImage=function(M,d){if(this.hasStaticTile(M))return M.darkTileImage?d?M.darkTileImage:M.tileImage:M.tileImage};
_.F.computeTitleStyle=function(M){if(this.data&&this.data.title&&M&&M.basicColorData&&M.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.p3(M.basicColorData.foregroundTitleColor)+";"};
_.F.computeSubtitleStyle=function(M){if(this.data&&this.data.subtitle&&M&&M.basicColorData&&M.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.p3(M.basicColorData.foregroundBodyColor)+";"};
_.F.computeSupplementalStyle=function(M){if(this.data&&this.data.supplementalText&&M&&M.supplementalTextColor!==void 0)return M=_.p3(M.supplementalTextColor),"color:"+M+";--yt-endpoint-color:"+M+";--yt-endpoint-hover-color:"+M+";--yt-endpoint-visited-color:"+M+";--yt-formatted-string-bold-font-weight:700;"};
_.F.computeBadgeStyle=function(M){if(this.data&&this.data.badgeText&&M&&M.basicColorData&&M.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.p3(M.basicColorData.foregroundActivatedColor)+";"};
_.F.computeDismissIconStyle=function(M){var d,N;if((M==null?0:(d=M.dismissButtonColorData)==null?0:d.foregroundTitleColor)&&(M==null?0:(N=M.dismissButtonColorData)==null?0:N.backgroundColor))return"--yt-button-color:"+_.ml(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ml(M.dismissButtonColorData.backgroundColor)+";"};
_.F.computeOverflowIconStyle=function(M){var d,N;if((M==null?0:(d=M.dismissButtonColorData)==null?0:d.foregroundTitleColor)&&(M==null?0:(N=M.dismissButtonColorData)==null?0:N.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.ml(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ml(M.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.ml(M.dismissButtonColorData.foregroundTitleColor)+";"};
_.F.computeBannerStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeLocation=function(M){switch(M==null?void 0:M.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.F.shouldShowTileSection=function(M,d,N){return!this.shouldExpandLogo(M,d,N)&&d};
_.F.shouldShowExpandedLogoSection=function(M,d,N){return this.shouldExpandLogo(M,d,N)&&M!==void 0&&this.hasLogo(M)};
_.F.shouldExpandLogo=function(M,d,N){return M&&d?!1:N>=2};
_.F.hasStaticTile=function(M){return!(M==null||!M.tileImage)};
_.F.hasTileLottie=function(M){var d;return!!(M==null?0:(d=M.tileLottie)==null?0:d.url)};
_.F.hasLogo=function(M){return this.getCurrentLogo(M,this.isDarkTheme)!==void 0};
_.F.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.F.getExpandedLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.F.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.F.hasBackgroundLottie=function(M){var d;return!!(M==null?0:(d=M.backgroundLottie)==null?0:d.url)};
_.F.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,d;(M=this.tileLottieAnimationRef)==null||(d=M.lottieEl)==null||d.play();var N,R;(N=this.backgroundLottieAnimationRef)==null||(R=N.lottieEl)==null||R.play()}};
_.F.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,d;(M=this.tileLottieAnimationRef)==null||(d=M.lottieEl)==null||d.pause();var N,R;(N=this.backgroundLottieAnimationRef)==null||(R=N.lottieEl)==null||R.pause()}};
_.F.pauseLottie=function(){var M,d;(M=this.tileLottieAnimationRef)==null||(d=M.lottieEl)==null||d.pause();var N,R;(N=this.backgroundLottieAnimationRef)==null||(R=N.lottieEl)==null||R.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.F.performPrimaryButtonAction=function(){var M,d,N;((M=this.data)==null?0:(d=M.primaryButton)==null?0:(N=d.buttonRenderer)==null?0:N.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
_.F.updateButtonPalette=function(){if(this.data&&this.currentColorData){var M;((M=this.data.dismissButton)==null?0:M.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var d;if((d=this.data.primaryButton)==null?0:d.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 N;if((N=this.data.secondaryButton)==
null?0:N.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 R;((R=this.data.primaryButton)==null?0:R.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var X;((X=this.data.secondaryButton)==null?0:X.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.F.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var M=this.getTileLottieDataBasedOnTheme(),d,N;if(M.url!==((d=this.tileLottiePlayerProps)==null?void 0:(N=d.animationConfig)==null?void 0:N.path)){var R,X;(R=this.tileLottieAnimationRef)==null||(X=R.lottieEl)==null||X.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=M.settings)==null?0:A.autoplay);var l,k;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(k=(l=M.settings)==null?void 0:l.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.tileLottiePlayerProps.animationConfig.path=M.url:this.tileLottiePlayerProps.animationConfig.animationData=M.url}}};
_.F.getOverflowButton=function(M){return _.q(M.overflowButton,sHL)};
_.F.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var M=this.getBackgroundLottieDataBasedOnTheme(),d,N;if(M.url!==((d=this.backgroundLottiePlayerProps)==null?void 0:(N=d.animationConfig)==null?void 0:N.path)){var R,X;(R=this.backgroundLottieAnimationRef)==null||(X=R.lottieEl)==null||X.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=M.settings)==null?0:A.autoplay);var l,k;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(k=(l=M.settings)==null?void 0:l.autoplay)!=null?k:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=M.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
M.url}}};
_.F.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var M;((M=this.tileLottieAnimationRef)==null?void 0:M.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var d;((d=this.backgroundLottieAnimationRef)==null?void 0:d.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.F.getTileLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeTileLottie))return this.data.darkThemeTileLottie;var d;return((d=this.data)==null?0:d.tileLottie)?this.data.tileLottie:{}};
_.F.getBackgroundLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var d;return((d=this.data)==null?0:d.backgroundLottie)?this.data.backgroundLottie:{}};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.F.getLottieLoopValue=function(M){return M?M.loop!==void 0?M.loop:M.loopCount?M.loopCount-1:!0:!0};
_.F.logoWithPadding=function(M){var d,N,R;return(M=(d=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
wA.prototype.currentColorChanged=wA.prototype.currentColorChanged;wA.prototype.themeChanged=wA.prototype.themeChanged;wA.prototype.dataChanged=wA.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],wA.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],wA.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"primaryButton",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"secondaryButton",void 0);
_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],wA.prototype,"elementsPerRow",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"hasTile",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"hasMetadata",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wA.prototype,"showLogoImage",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"currentColorData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.a("design:type",String)],wA.prototype,"bannerStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.a("design:type",String)],wA.prototype,"location",void 0);
_.G([_.H(),_.a("design:type",Object)],wA.prototype,"tileLottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"tileLottieAnimationRef",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"backgroundLottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],wA.prototype,"backgroundLottieAnimationRef",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wA.prototype,"useBiggerShowcaseImage",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],wA.prototype,"isHideEnclosingAction",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"dataChanged",null);_.G([_.NS("isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"themeChanged",null);
_.G([_.NS("currentColorData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wA.prototype,"currentColorChanged",null);wA=_.G([_.f({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],wA);
_.L(wA,"ytd-statement-banner-renderer",function(){if(WaV!==void 0)return WaV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return WaV=M},{mode:1});var wpm;var p0=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.disableMouseScroll=!0;M.useFloorScrolling=!0;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(p0,_.n);p0.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.le("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.le("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
p0.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
p0.prototype.onDataChanged=p0.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p0.prototype,"hideShelfHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p0.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"disableMouseScroll",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"useFloorScrolling",void 0);_.G([_.H(),_.a("design:type",Object)],p0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p0.prototype,"modernTypography",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p0.prototype,"onDataChanged",null);p0=_.G([_.f({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],p0);
_.L(p0,"ytd-reel-shelf-renderer",function(){if(wpm!==void 0)return wpm;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wpm=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var ppt;var m4V=_.SG(function(M){var d=M.data;M=M.useSmallFont;var N={},R={};return _.g("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.g(_.kV,{cond:function(){return d().favicon},
then:function(X){return _.g(_.Jt,{data:X,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.g("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.g(_.lG,{text:function(){return d().title},
className:_.xj("yt-channel-external-link-view-model-wiz__title",(N["yt-channel-external-link-view-model-wiz__title--title-small-font"]=M,N)),ellipsisTruncate:!0,userInput:!0}),_.g(_.lG,{text:function(){return d().link},
className:_.xj("yt-channel-external-link-view-model-wiz__link",(R["yt-channel-external-link-view-model-wiz__link--link-small-font"]=M,R)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Bb");
m4V.idomCompat=!0;_.eC(m4V,"yt-channel-external-link-view-model",{props:{data:_.cA,useSmallFont:_.cA}});_.pO("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var mj=function(){var M=_.n.apply(this,arguments)||this;M.revealButtonClass="button";M.businessEmailDisplayState="HIDE_SECTION";return M};
_.v(mj,_.n);_.F=mj.prototype;_.F.refit=function(){var M=this;_.vu(function(){_.Eu(M.hostElement,"yt-refit-popups-action")});
_.bM(this,function(){_.Eu(M.hostElement,"yt-refit-popups-action")})};
_.F.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.rB("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.F.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"};
_.F.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.F.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"}}}};
_.F.computeEmailHref=function(M){return"mailto:"+M};
_.F.computeSafeUrl=function(M){if(M)return _.gH(M)};
_.F.linkEndpoint=function(M){return _.q(M.onTap,_.mX)};
_.F.linkEndpointToHref=function(M){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(M))};
_.F.onYtServiceRequestCompleted=function(M){var d;if((d=M.detail.data)==null?0:d.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var N;if((N=M.detail.data)==null?0:N.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.F.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var M=this.JSC$13992_captchaTextarea.value;if(M){M={recaptcha_response_token:M,channel_id:this.metadata.channelId};var d=_.q(this.metadata.onBusinessEmailRevealClickCommand,_.mX);d&&this.ytComponentBehavior.resolveCommand(d,{form:M})}}};
_.F.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Hm.Object.defineProperties(mj.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.data)==null?void 0:M.metadata,Oee)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.q(this.metadata.businessEmailRevealButton,_.QM)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var M=new URL(this.metadata.canonicalChannelUrl);return M.host+M.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.q(this.metadata.learnMoreOnTap,_.mX)}}});
mj.prototype.onYtServiceRequestCompleted=mj.prototype.onYtServiceRequestCompleted;mj.prototype.businessEmailMetadataChanged=mj.prototype.businessEmailMetadataChanged;mj.prototype.refit=mj.prototype.refit;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],mj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#g-recaptcha-response"),_.a("design:type",HTMLTextAreaElement)],mj.prototype,"JSC$13992_captchaTextarea",void 0);_.G([_.H(),_.a("design:type",Object)],mj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],mj.prototype,"revealButtonClass",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"metadata",null);
_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"revealButton",null);_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"channelDisplayUrl",null);_.G([_.NS("metadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mj.prototype,"refit",null);_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"formattedDescription",null);
_.G([_.z("metadata","learnMoreCommand"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],mj.prototype,"shouldRendereVerifiedPhoneStatus",null);_.G([_.z("metadata"),_.a("design:type",Object),_.a("design:paramtypes",[])],mj.prototype,"learnMoreCommand",null);_.G([_.H(),_.a("design:type",String)],mj.prototype,"businessEmailDisplayState",void 0);_.G([_.H(),_.a("design:type",String)],mj.prototype,"businessEmail",void 0);
_.G([_.H(),_.a("design:type",String)],mj.prototype,"businessEmailErrorMessage",void 0);_.G([_.NS("metadata"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mj.prototype,"businessEmailMetadataChanged",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],mj.prototype,"onYtServiceRequestCompleted",null);
mj=_.G([_.f({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],mj);
_.L(mj,"ytd-about-channel-renderer",function(){if(ppt!==void 0)return ppt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ppt=M},{mode:1});var hBt;var hE=function(){return _.n.apply(this,arguments)||this};
_.v(hE,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hE.prototype,"data",void 0);hE=_.G([_.f({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],hE);
_.L(hE,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(hBt!==void 0)return hBt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hBt=M},{mode:1});var QSL;var QW=function(){return _.n.apply(this,arguments)||this};
_.v(QW,_.n);QW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],QW.prototype,"aligment",void 0);QW=_.G([_.f({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],QW);
_.L(QW,"ytd-channel-list-sub-menu-renderer",function(){if(QSL!==void 0)return QSL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return QSL=
M},{mode:1});var qmz;var qq=function(){return _.n.apply(this,arguments)||this};
_.v(qq,_.n);qq.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qq.prototype,"data",void 0);qq=_.G([_.f({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],qq);
_.L(qq,"ytd-channel-sub-menu-renderer",function(){if(qmz!==void 0)return qmz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qmz=M},{mode:1});var Izo;var vxL;var I6=function(){var M=_.n.apply(this,arguments)||this;M.isCompact=!1;return M};
_.v(I6,_.n);_.Hm.Object.defineProperties(I6.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var M,d;return((d=_.q((M=this.data)==null?void 0:M.endpoint,_.JQ))==null?void 0:d.target)==="TARGET_NEW_WINDOW"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],I6.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],I6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],I6.prototype,"isCompact",void 0);_.G([_.z("isCompact"),_.a("design:type",Number),_.a("design:paramtypes",[])],I6.prototype,"thumbnailWidth",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],I6.prototype,"openNewWindow",null);I6=_.G([_.f({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],I6);
_.L(I6,"ytd-media-lockup-renderer",function(){if(vxL!==void 0)return vxL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return vxL=M},{mode:1});var OjC;var vW=function(){return _.n.apply(this,arguments)||this};
_.v(vW,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],vW.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vW.prototype,"data",void 0);vW=_.G([_.f({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],vW);
_.L(vW,"ytd-structured-description-channel-lockup-renderer",function(){if(OjC!==void 0)return OjC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return OjC=M},{mode:1});var jSV;var O6=function(){var M=_.n.apply(this,arguments)||this;M.isCompact=!1;M.collections=_.Q("web_modern_collections_v2");M.collectionsStackColor=_.Q("modernize_structured_description_playlist_lockups_v2");return M};
_.v(O6,_.n);O6.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:_.Q("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Hm.Object.defineProperties(O6.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(X=this.data)==null?void 0:(A=X.thumbnail)==
null?void 0:A.vibrantColorPalette:void 0}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],O6.prototype,"componentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],O6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],O6.prototype,"showSidePanelThumbnailOverlay",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],O6.prototype,"isCompact",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],O6.prototype,"collections",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],O6.prototype,"collectionsStackColor",void 0);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],O6.prototype,"twoLineTitle",null);
_.G([_.z("data","collections","collectionsStackColor"),_.a("design:type",Object),_.a("design:paramtypes",[])],O6.prototype,"collectionStack",null);O6=_.G([_.f({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],O6);
_.L(O6,"ytd-structured-description-playlist-lockup-renderer",function(){if(jSV!==void 0)return jSV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jSV=M},{mode:1});var sSV;var jT=function(){return _.n.apply(this,arguments)||this};
_.v(jT,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],jT.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jT.prototype,"data",void 0);jT=_.G([_.f({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],jT);
_.L(jT,"ytd-structured-description-video-lockup-renderer",function(){if(sSV!==void 0)return sSV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return sSV=M},{mode:2});var s6=function(){return _.n.apply(this,arguments)||this};
_.v(s6,_.n);
s6.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],s6.prototype,"data",void 0);s6=_.G([_.f({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],s6);
_.L(s6,"ytd-compact-infocard-renderer",function(){if(Izo!==void 0)return Izo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Izo=M},{mode:1});var Phz;var PW=function(){var M=_.n.apply(this,arguments)||this;M.useModernCollectionsV2=_.Q("web_modern_collections_v2");return M};
_.v(PW,_.n);PW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Hm.Object.defineProperties(PW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],PW.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0);_.G([_.H({selector:_.KX}),_.a("design:type",Object)],PW.prototype,"isGridViewEnabled",void 0);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PW.prototype,"watchFeedBigThumbs",null);_.G([_.z("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"168"}),_.a("design:type",String),_.a("design:paramtypes",[])],PW.prototype,"thumbnailWidth",null);_.G([_.z("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"94"}),_.a("design:type",String),_.a("design:paramtypes",[])],PW.prototype,"customThumbnailSize",null);
_.G([_.H(),_.a("design:type",Object)],PW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PW.prototype,"useModernCollectionsV2",void 0);PW=_.G([_.f({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],PW);
_.L(PW,"ytd-compact-playlist-renderer",function(){if(Phz!==void 0)return Phz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Phz=M},{mode:1});var oxL;var o6=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.roundedContainer=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.v(o6,_.n);_.F=o6.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.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"}}}};
_.F.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.F.computeViewStyle=function(M){return M.style?M.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.F.onUpdateElementsPerRowAction=function(M){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&M===1};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
o6.prototype.dataChanged=o6.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],o6.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],o6.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],o6.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],o6.prototype,"hideThumbnail",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.a("design:type",String)],o6.prototype,"viewStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o6.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o6.prototype,"roundedContainer",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o6.prototype,"dataChanged",null);o6=_.G([_.f({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],o6);
_.L(o6,"ytd-compact-promoted-item-renderer",function(){if(oxL!==void 0)return oxL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return oxL=M},{mode:1});var rcd;var rA=function(){var M=_.n.apply(this,arguments)||this;M.collections=_.Q("web_modern_collections_v2");return M};
_.v(rA,_.n);rA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
rA.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
rA.prototype.onYtNavigate=function(M,d){var N=this;if(d.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",d)){var R=this.get("watchEndpoint.videoId",d.endpoint),X=_.Eu(this.hostElement,"yt-get-current-video-id-action")[0];_.Q("kevlar_mix_handle_first_endpoint_different")&&R&&X&&R!==X||(M.stopPropagation(),_.iG().getPlayerPromise().then(function(A){if(A.getPlayerState()===0&&N.data.secondaryNavigationEndpoint)var l=N.data.secondaryNavigationEndpoint;else{l=
Object.assign({},d.endpoint);var k=_.q(l.commandMetadata,_.an);k&&(A=Math.floor(A.getCurrentTime()),k.url=_.LF(k.url,{t:A}),!_.Q("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(k=_.q(l,_.nL)))&&(k.startTimeSeconds=A)}_.YP(N.hostElement,"yt-navigate",{endpoint:l})}))}};
_.Hm.Object.defineProperties(rA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(d=M.thumbnail)==null?void 0:d.sampledThumbnailColor,vibrantColorPalette:(N=this.data)==null?void 0:(R=N.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(X=this.data)==null?void 0:(A=X.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:this.collections}}}});
rA.prototype.onYtNavigate=rA.prototype.onYtNavigate;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],rA.prototype,"ytEndpointBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],rA.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.ck),_.a("design:type",Object)],rA.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],rA.prototype,"ytdReduxBehavior",void 0);_.G([_.H({selector:_.KX}),_.a("design:type",Object)],rA.prototype,"isGridViewEnabled",void 0);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],rA.prototype,"watchFeedBigThumbs",null);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],rA.prototype,"thumbnailWidth",null);_.G([_.H(),_.a("design:type",Object)],rA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],rA.prototype,"collections",void 0);_.G([_.z("data","collections"),_.a("design:type",Object),_.a("design:paramtypes",[])],rA.prototype,"collectionStack",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],rA.prototype,"onYtNavigate",null);rA=_.G([_.f({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],rA);
_.L(rA,"ytd-compact-radio-renderer",function(){if(rcd!==void 0)return rcd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return rcd=M},{mode:1});var Kad;var K0=function(){return _.n.apply(this,arguments)||this};
_.v(K0,_.n);K0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
K0.prototype.computeRendererStyle=function(M){return M.style?M.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.G([_.H(),_.a("design:type",Object)],K0.prototype,"data",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],K0.prototype,"rendererBehavior",void 0);_.G([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.a("design:type",String)],K0.prototype,"rendererStyle",void 0);
K0=_.G([_.f({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],K0);
_.L(K0,"ytd-compact-text-promo-renderer",function(){if(Kad!==void 0)return Kad;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Kad=M},{mode:1});var ycd;var yW=function(){var M=_.n.apply(this,arguments)||this;M.isShortsStyle=!1;return M};
_.v(yW,_.n);_.F=yW.prototype;_.F.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"}}}};
_.F.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.YP(this.hostElement,"yt-disable-lockup-interaction"):_.YP(this.hostElement,"yt-enable-lockup-interaction"))};
_.F.isMetaBlockEmpty=function(M){return!M||!M.longBylineText&&!M.shortBylineText&&!M.shortViewCountText&&!M.viewCountText};
_.F.computeHasOneLineTitle=function(M){return this.forceOneLineTitle||!(M==null||!M.buttons)};
_.F.computeDisableInteraction=function(){var M;return!((M=this.data)==null?0:M.navigationEndpoint)};
_.F.hasSingularTopStandaloneBadge=function(){var M;return!((M=this.data)==null||!M.topStandaloneBadge)};
_.Hm.Object.defineProperties(yW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var M;return this.hasSingularTopStandaloneBadge()?[(M=this.data)==null?void 0:M.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var M;return this.shouldShowTopBadges?((M=this.data)==null?void 0:M.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
yW.prototype.disableInteractionChanged=yW.prototype.disableInteractionChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],yW.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],yW.prototype,"ytdLockupBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],yW.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.a("design:type",Boolean)],yW.prototype,"metaBlockEmpty",void 0);_.G([_.H({selector:_.KX}),_.a("design:type",Object)],yW.prototype,"isGridViewEnabled",void 0);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yW.prototype,"watchFeedBigThumbs",null);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],yW.prototype,"thumbnailWidth",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],yW.prototype,"isShortsStyle",void 0);_.G([_.H(),_.a("design:type",Object)],yW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.a("design:type",Boolean)],yW.prototype,"hasOneLineTitle",void 0);
_.G([_.H(),_.a("design:type",Boolean)],yW.prototype,"hideThumbnail",void 0);_.G([_.H(),_.a("design:type",Boolean)],yW.prototype,"forceOneLineTitle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.a("design:type",Boolean)],yW.prototype,"disableInteraction",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],yW.prototype,"musicMetadataVideoLockup",void 0);
_.G([_.xB("disableInteraction"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yW.prototype,"disableInteractionChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yW.prototype,"shouldShowTopBadges",null);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],yW.prototype,"topBadges",null);
_.G([_.z("shouldShowTopBadges","data"),_.a("design:type",Array),_.a("design:paramtypes",[])],yW.prototype,"inlineMetadataBadges",null);_.G([_.z("shouldShowTopBadges"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],yW.prototype,"shouldShowBadgesBelowMetadata",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],yW.prototype,"compactTitleClass",null);yW=_.G([_.f({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],yW);
_.L(yW,"ytd-compact-video-renderer",function(){if(ycd!==void 0)return ycd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ycd=M},{mode:_.G3("kevlar_poly_si_batch_j067")?1:2});var Jco;_.pO("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var JE=function(){return _.n.apply(this,arguments)||this};
_.v(JE,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JE.prototype,"data",void 0);JE=_.G([_.f({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],JE);
_.L(JE,"ytd-counterfactual-renderer",function(){if(Jco!==void 0)return Jco;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Jco=M},{mode:1});var ccV;var cW=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;return M};
_.v(cW,_.n);cW.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.h().resolve(_.xV).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
cW.prototype.computeHidden=function(M){return!!M};
_.Hm.Object.defineProperties(cW.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}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.a("design:type",Object)],cW.prototype,"hidden",void 0);_.G([_.z("data.label"),_.a("design:type",String),_.a("design:paramtypes",[])],cW.prototype,"label",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],cW.prototype,"value",null);
cW=_.G([_.f({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],cW);
_.L(cW,"ytd-dropdown-item-renderer",function(){if(ccV!==void 0)return ccV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ccV=M},{mode:1});var Smd;var zBg;var ST=function(){return _.n.apply(this,arguments)||this};
_.v(ST,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ST.prototype,"data",void 0);_.G([_.H({computed:"getSimpleString(data.label)"}),_.a("design:type",String)],ST.prototype,"label",void 0);ST=_.G([_.f({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ST);
_.L(ST,"ytd-navigation-dropdown-item-renderer",function(){if(zBg!==void 0)return zBg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return zBg=M},{mode:1});var zK=function(){var M=_.n.apply(this,arguments)||this;M.disabled=!1;M.value="";M.noLabelFloat=!1;M.noUnderline=!1;M.usePrimaryColor=!1;M.hasBackground=!1;M.verticalAlign="top";M.autosize=!1;M.minAutosizeWidth=100;M.autosizeFont="14px Roboto";return M};
_.v(zK,_.n);_.F=zK.prototype;_.F.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"}}}};
_.F.open=function(){this.inputEl.open()};
_.F.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.F.dataChanged=function(){this.reset()};
_.F.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("value-changed",this.value))};
_.F.stopPropagation=function(M){M.stopPropagation()};
_.F.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var M=this.canvas.getContext("2d");M&&(M.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(M.measureText(this.inputEl.value).width)+24)+"px")}};
_.F.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var M=0,d=this.data.entries.length;M<d;M++){var N=this.data.entries[M],R;for(R in N)if(N.hasOwnProperty(R)){var X=N[R];if("isSelected"in X&&X.isSelected)return"stringValue"in X?X.stringValue||"":"int32Value"in X?X.int32Value||0:0}}return null};
_.F.updateValueFromBinding=function(M){this.value=M.detail.value};
_.Hm.Object.defineProperties(zK.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var M=0,d=this.data.entries.length;M<d;M++){var N=this.data.entries[M],R;for(R in N)if(N.hasOwnProperty(R)){var X=N[R];if("isSelected"in X&&X.isSelected&&"label"in X)return this.ytRendererBehavior.getSimpleString(X.label)}}return null}}});
zK.prototype.autoSizeLabel=zK.prototype.autoSizeLabel;zK.prototype.stopPropagation=zK.prototype.stopPropagation;zK.prototype.valueChangedForBinding=zK.prototype.valueChangedForBinding;zK.prototype.dataChanged=zK.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zK.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],zK.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"value",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"noLabelFloat",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"noUnderline",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],zK.prototype,"theme",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"usePrimaryColor",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zK.prototype,"hasBackground",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"verticalAlign",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"autosize",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"minAutosizeWidth",void 0);_.G([_.H(),_.a("design:type",Object)],zK.prototype,"autosizeFont",void 0);
_.G([_.Z3("#entries"),_.a("design:type",Object)],zK.prototype,"entries",void 0);_.G([_.Z3("#input"),_.a("design:type",Object)],zK.prototype,"inputEl",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zK.prototype,"dataChanged",null);_.G([_.NS("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zK.prototype,"valueChangedForBinding",null);
_.G([_.C3("iron-overlay-opened"),_.C3("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zK.prototype,"stopPropagation",null);_.G([_.C3("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zK.prototype,"autoSizeLabel",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],zK.prototype,"label",null);
zK=_.G([_.f({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],zK);
_.L(zK,"ytd-dropdown-renderer",function(){if(Smd!==void 0)return Smd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Smd=M},{mode:1});var bj3;var bE=function(){var M=_.n.apply(this,arguments)||this;M.isConstrainedList=!1;return M};
_.v(bE,_.n);bE.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"}}}};
bE.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
bE.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
bE.prototype.computeViewAllHidden=function(M,d){return M||!d.viewAllEndpoint};
bE.prototype.fillRestIfNoShowMore=bE.prototype.fillRestIfNoShowMore;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],bE.prototype,"ytLazyListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bE.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],bE.prototype,"isConstrainedList",void 0);_.G([_.NS("data","canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bE.prototype,"fillRestIfNoShowMore",null);bE=_.G([_.f({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],bE);
_.L(bE,"ytd-expanded-shelf-contents-renderer",function(){if(bj3!==void 0)return bj3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bj3=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var eBg;var eT=function(){return _.n.apply(this,arguments)||this};
_.v(eT,_.n);eT.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eT.prototype,"data",void 0);eT=_.G([_.f({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],eT);
_.L(eT,"ytd-feed-channel-filter-header-renderer",function(){if(eBg!==void 0)return eBg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return eBg=M},{mode:1});var HjC;var nxe;var ijI;var HW=function(){return _.n.apply(this,arguments)||this};
_.v(HW,_.n);_.F=HW.prototype;_.F.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.sectionEndpoint;!_.Sm(_.J2(M),this.hostElement,["A".toString()])&&N&&_.YP(this.hostElement,"yt-navigate",{endpoint:N})};
_.F.computeHasSectionEndpoint=function(M){return(M==null?void 0:M.sectionEndpoint)!==void 0};
_.F.computeShowHeaderAsLink=function(M){return(M==null?void 0:M.header)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0};
_.F.computeShowSubheaderAsLink=function(M){return(M==null?void 0:M.subheader)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0&&(M==null?void 0:M.header)===void 0};
_.F.getHeaderAsLinkClass=function(M){var d=[],N;(M==null?0:(N=M.headerIcon)==null?0:N.iconType)&&d.push("header-link-active");return d.join(" ")};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],HW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HW.prototype,"data",void 0);
_.G([_.H({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],HW.prototype,"hasSectionEndpoint",void 0);_.G([_.H({computed:"computeShowHeaderAsLink(data)"}),_.a("design:type",Boolean)],HW.prototype,"showHeaderAsLink",void 0);_.G([_.H({computed:"computeShowSubheaderAsLink(data)"}),_.a("design:type",Boolean)],HW.prototype,"showSubheaderAsLink",void 0);HW=_.G([_.f({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],HW);
_.L(HW,"ytd-medical-panel-section-renderer",function(){if(ijI!==void 0)return ijI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ijI=M},{mode:1});var n0=function(){var M=_.n.apply(this,arguments)||this;M.isExpanded=!1;M.roundedContainer=!0;M.skipRoundingTop=!1;M.toggleExpandableSection=function(){M.isExpanded=!M.isExpanded};
return M};
_.v(n0,_.n);
n0.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]]"}}}}}};
n0.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
n0.prototype.dataChanged=n0.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],n0.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],n0.prototype,"isExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n0.prototype,"roundedContainer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n0.prototype,"skipRoundingTop",void 0);_.G([_.H(),_.a("design:type",Object)],n0.prototype,"toggleExpandableSection",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],n0.prototype,"dataChanged",null);n0=_.G([_.f({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],n0);
_.L(n0,"ytd-medical-panel-content-renderer",function(){if(nxe!==void 0)return nxe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return nxe=M},{mode:1});_.pO("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var iE=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");M.hasTitle=!1;M.linkIcon="OPEN_IN_NEW";M.isDismissed=!1;return M};
_.v(iE,_.n);
iE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
iE.prototype.computeHasTitle=function(M){return!(M==null||!M.title)};
iE.prototype.onClick=function(M){var d,N=(d=this.data)==null?void 0:d.headerEndpoint;!_.Sm(_.J2(M),this.hostElement,["BUTTON".toString()])&&N&&this.ytComponentBehavior.resolveCommand(N)};
_.Hm.Object.defineProperties(iE.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.disableBottomDivider)||!((d=this.data)==null?0:d.title)}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],iE.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],iE.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iE.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],iE.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],iE.prototype,"amsterdamEnabled",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.a("design:type",Object)],iE.prototype,"hasTitle",void 0);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"background",null);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.titleStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"titleStyle",null);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data.titleStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"showLinkIcon",null);_.G([_.H(),_.a("design:type",String)],iE.prototype,"linkIcon",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],iE.prototype,"hideDivider",null);
_.G([_.H({selectorArgs:["data.dismissStateEntityKey"],selector:function(M,d){M=_.Rz(M.entities,"dismissState",d);return(M==null?void 0:M.isDismissed)||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.a("design:type",Object)],iE.prototype,"isDismissed",void 0);iE=_.G([_.f({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],iE);
_.L(iE,"ytd-info-panel-container-renderer",function(){if(HjC!==void 0)return HjC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HjC=M},{mode:1});var fzI;_.pO("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var f0=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(f0,_.n);f0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f0.prototype.computeStyle=function(M){return M?M:""};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],f0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.a("design:type",String)],f0.prototype,"titleStyle",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],f0.prototype,"modernTypography",void 0);f0=_.G([_.f({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],f0);
_.L(f0,"ytd-item-section-header-renderer",function(){if(fzI!==void 0)return fzI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return fzI=M},{mode:1});var LaL;var tgL,G8L=function(){return tgL!==void 0?tgL:tgL=document.createElement("template")};
document.head.appendChild(G8L().content);var azI;_.L0=new _.x5("VOTING_ANIMATION_CONTROLLER_TOKEN");var uhL=_.SG(function(M){var d=M.data;var N=_.e5(),R=_.e5();M=_.V(_.d0("VOTE_STATUS_NONE",void 0,"FVF7mc"));var X=M.next().value,A=M.next().value,l=_.FT(kFS,function(){var m;return(m=d())==null?void 0:m.entityKey}),k=_.Q("web_enable_voting_animation")||_.Q("enable_music_web_cairo_voting_animation");
_.IJ(function(){var m;((m=d().initialState)==null?0:m.status)&&A(d().initialState.status)});
var T=function(){var m,I,O=(I=(m=d().initialState)==null?void 0:m.votes)!=null?I:0,y;m=(y=d().initialState)==null?void 0:y.status;return m==="VOTE_STATUS_UPVOTED"?O-1:m==="VOTE_STATUS_DOWNVOTED"?O+1:O},W=function(){return X()==="VOTE_STATUS_UPVOTED"?T()+1:X()==="VOTE_STATUS_DOWNVOTED"?T()-1:T()},w=function(m){var I=m?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
A(I);var O=W(),y=_.h().resolve(_.CF(_.L0)),c=l();c&&(m&&(c==null?0:c.upvoteDefaultButtonOnTap)?_.vz(c.upvoteDefaultButtonOnTap,{form:{element:N.value},disableClickTracking:!0}):(c==null?0:c.upvoteToggledButtonOnTap)&&_.vz(c.upvoteToggledButtonOnTap,{form:{element:N.value},disableClickTracking:!0}));var e;m=(e=c==null?void 0:c.enableOptimisticReordering)!=null?e:d().enableOptimisticReordering;k&&y&&d().itemId&&m&&U4L(y,d().itemId,O,I)},p=function(m){var I=m?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
A(I);var O=W(),y=_.h().resolve(_.CF(_.L0)),c=l();c&&(m&&(c==null?0:c.downvoteDefaultButtonOnTap)?_.vz(c.downvoteDefaultButtonOnTap,{form:{element:R.value},disableClickTracking:!0}):(c==null?0:c.downvoteToggledButtonOnTap)&&_.vz(c.downvoteToggledButtonOnTap,{form:{element:R.value},disableClickTracking:!0}));var e;m=(e=c==null?void 0:c.enableOptimisticReordering)!=null?e:d().enableOptimisticReordering;k&&y&&d().itemId&&m&&U4L(y,d().itemId,O,I)};
M={};M=_.xj("ytVotingViewModelVoteCount",(M.ytVotingViewModelVoteCountDisabled=function(){return d().isDisabled},M));
return _.g("voting-view-model",{class:"ytVotingViewModelHost"},_.g("div",{el:N},_.g(_.ho,{data:function(){var m=_.q(d().upvoteButton,_.qH);return{toggleButtonViewModel:Object.assign({},m,{isToggled:X()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(m){return _.g(_.I0,{data:m.data,
onToggle:w})}})),_.g("div",{class:M},function(){var m,I,O;
return X()==="VOTE_STATUS_UPVOTED"?(m=d().initialState)==null?void 0:m.compactVotesUpvoted:X()==="VOTE_STATUS_DOWNVOTED"?(I=d().initialState)==null?void 0:I.compactVotesDownvoted:(O=d().initialState)==null?void 0:O.compactVotes}),_.g("div",{el:R},_.g(_.ho,{data:function(){var m=_.q(d().downvoteButton,_.qH);
return{toggleButtonViewModel:Object.assign({},m,{isToggled:X()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(m){return _.g(_.I0,{data:m.data,
onToggle:p})}})))},"Cb");_.eC(_.SG(function(M){var d=M.data;return _.g("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.g("div",{class:_.xj("ytEngagementBarViewModelEngagementBarWrapper",M.className)},_.g(_.ho,{data:function(){return d().actions}},{votingViewModel:uhL})))},"Db"),"engagement-bar-view-model",{props:{data:_.cA,
className:_.cA}});var tE=function(){var M=_.n.apply(this,arguments)||this;M.amsterdamPostMvp=_.Q("web_amsterdam_post_mvp_playlists");M.cairoCollabPlaylistPostMvp=_.Q("web_collab_playlist_thumbnail_size");M.playlistVotingAnimationEnabled=_.Q("web_enable_voting_animation");M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;return M};
_.v(tE,_.n);_.F=tE.prototype;_.F.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"}}}};
_.F.canReorderChanged=function(){this.persistentDragHandle=_.Q("kevlar_playlist_drag_handles")&&this.canReorder};
_.F.onDrag=function(){if(this.thumbnail){var M=_.K(this.thumbnail).querySelector("yt-image");M&&(M.shouldRenderLazy=!1)}};
_.F.onMenuOverlayChanged=function(M,d){this.menuOpened=d};
_.F.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.F.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.F.onContentsTap=function(M){var d,N=(d=this.data)==null?void 0:d.serviceEndpoints;if(N&&N.length===1&&_.q(N[0],QVi)&&!_.Sm(_.J2(M),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(N[0]);else{var R;(d=(R=this.data)==null?void 0:R.navigationEndpoint)&&_.Q("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Chm(_.h().resolve(_.et),d):(_.$O().playlistSuggestionsShelfActivation=
!0,_.x4z(_.h().resolve(_.et),d)):d&&!_.Sm(_.J2(M),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.Q("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.YP(this.hostElement,"yt-navigate",{endpoint:d}):this.ytComponentBehavior.resolveCommand(d))}};
_.F.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeThumbnailWidth=function(M){return M==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.F.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=sL6(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))}};
_.F.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.F.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.F.dataChanged=function(){if(this.data){var M,d,N,R=((M=this.downloadRenderData)==null?void 0:M.badges)&&((d=this.downloadRenderData)==null?void 0:d.badges)!==((N=this.data)==null?void 0:N.badges),X,A,l;M=((X=this.downloadRenderData)==null?void 0:X.thumbnailOverlays)&&((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)!==((l=this.data)==null?void 0:l.thumbnailOverlays);(!this.downloadRenderData||R||M)&&this.downloadStateChanged()}};
_.F.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var M,d,N=(M=this.data.menu)==null?void 0:(d=M.menuRenderer)==null?void 0:d.items;if(N)for(M=_.V(N),d=M.next();!d.done;d=M.next())if(d=d.value,N=void 0,_.q((N=d.menuServiceItemRenderer)==null?void 0:N.serviceEndpoint,_.Pq)){var R=N=void 0,X=void 0;d=(N=d)==null?void 0:(R=N.menuServiceItemRenderer)==null?void 0:(X=R.serviceEndpoint)==null?void 0:X.playlistEditEndpoint;X=R=void 0;if(N=(R=d)==null?void 0:(X=R.actions)==null?void 0:
X[0])R=void 0,N.setVideoId=(R=this.data)==null?void 0:R.setVideoId;X=R=N=void 0;if(d=(N=d)==null?void 0:(R=N.clientActions)==null?void 0:(X=R[0])==null?void 0:X.playlistRemoveVideosAction)N=void 0,d.setVideoIds=[(N=this.data)==null?void 0:N.setVideoId]}}};
_.Hm.Object.defineProperties(tE.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
tE.prototype.setVideoIdChanged=tE.prototype.setVideoIdChanged;tE.prototype.dataChanged=tE.prototype.dataChanged;tE.prototype.downloadStateChanged=tE.prototype.downloadStateChanged;tE.prototype.onMenuOverlayChanged=tE.prototype.onMenuOverlayChanged;tE.prototype.canReorderChanged=tE.prototype.canReorderChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],tE.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],tE.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],tE.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tE.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tE.prototype,"amsterdamPostMvp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"canReorder",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"menuOpened",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"handleIsHovered",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"persistentDragHandle",void 0);
_.G([_.H(),_.a("design:type",Object)],tE.prototype,"downloadRenderData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],tE.prototype,"styleType",void 0);_.G([_.H({computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],tE.prototype,"thumbnailWidth",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"isDownloads",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tE.prototype,"cairoCollabPlaylistPostMvp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],tE.prototype,"playlistVotingAnimationEnabled",void 0);_.G([_.H({selector:PD,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"downloadProgress",void 0);_.G([_.H(),_.a("design:type",Number)],tE.prototype,"relativeDateReference",void 0);
_.G([_.H({selector:_.jp,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"transferState",void 0);_.G([_.H({selector:xsi,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"downloadState",void 0);_.G([_.H({selector:zK6,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"offlinePolicyAction",void 0);_.G([_.H({selector:b9i,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.G([_.H({selector:H9N,selectorArgs:["data.videoId"]}),_.a("design:type",Object)],tE.prototype,"entityInfo",void 0);_.G([_.H({selector:_.vD}),_.a("design:type",Boolean)],tE.prototype,"miniplayerIsActive",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],tE.prototype,"playlistVideoId",null);_.G([_.Z3("#thumbnail"),_.a("design:type",Object)],tE.prototype,"thumbnail",void 0);
_.G([_.NS("canReorder"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"canReorderChanged",null);_.G([_.C3("yt-menu-overlay-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Boolean]),_.a("design:returntype")],tE.prototype,"onMenuOverlayChanged",null);
_.G([_.NS("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"downloadStateChanged",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"dataChanged",null);
_.G([_.NS("data.setVideoId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tE.prototype,"setVideoIdChanged",null);tE=_.G([_.f({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],tE);
_.L(tE,"ytd-playlist-video-renderer",function(){if(azI!==void 0)return azI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);M.content.insertBefore(G8L().content.cloneNode(!0),M.content.firstChild);return azI=M},{mode:1});var YmI;var GK=function(){return _.n.apply(this,arguments)||this};
_.v(GK,_.n);_.G([_.H(),_.a("design:type",Object)],GK.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GK.prototype,"rendererBehavior",void 0);GK=_.G([_.f({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],GK);
_.L(GK,"ytd-premium-browse-footer-renderer",function(){if(YmI!==void 0)return YmI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return YmI=M},{mode:1});var ZjL;var a6=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.v(a6,_.n);_.F=a6.prototype;_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.handleDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.computeHeaderLogoThumbnail=function(M,d){if(M)return d?M.darkLogo:M.lightLogo};
_.F.computeHeaderLogoHeight=function(M,d){var N,R,X;return(M=(N=this.computeHeaderLogoThumbnail(M,d))==null?void 0:(R=N.thumbnails)==null?void 0:(X=R[0])==null?void 0:X.height)&&M%31===0?"31":"24"};
_.F.computeHeaderLogoMarginBottom=function(M,d){return this.computeHeaderLogoHeight(M,d)==="24"?"0":"-7"};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],a6.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],a6.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],a6.prototype,"isDarkTheme",void 0);_.G([_.H({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.a("design:type",Object)],a6.prototype,"themeLogo",void 0);
_.G([_.H({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.a("design:type",String)],a6.prototype,"logoHeight",void 0);_.G([_.H({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.a("design:type",String)],a6.prototype,"logoMarginBottom",void 0);a6=_.G([_.f({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],a6);
_.L(a6,"ytd-primetime-promo-header-renderer",function(){if(ZjL!==void 0)return ZjL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZjL=M},{mode:1});var ExC;_.aR(guN);var QMr;QMr=_.W5({flexibleActionsViewModel:IXm});_.U6=_.Ez(qGr);_.aR(qGr);_.eC(_.U6,"yt-section-header-view-model",{props:{data:_.cA,className:_.cA,disableHorizontalPadding:_.cA,disableVerticalPadding:_.cA,forceSmallLayout:_.cA,useResponsiveLayout:_.cA,isOverlay:_.cA}});_.pO("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var uE=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.v(uE,_.n);_.F=uE.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.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"}}}};
_.F.onDataChange=function(){var M=this;_.bM(this,function(){M.updateItemVisibility()})};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M,this.updateItemVisibility())};
_.F.updateItemVisibility=function(){var M=this;this.data&&this.data.panels&&_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(d,N){d.hidden=N>M.elementsPerRow-1})};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
uE.prototype.onDataChange=uE.prototype.onDataChange;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],uE.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],uE.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],uE.prototype,"data",void 0);_.G([_.H({value:3}),_.a("design:type",Number)],uE.prototype,"elementsPerRow",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uE.prototype,"onDataChange",null);uE=_.G([_.f({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],uE);
_.L(uE,"ytd-primetime-promo-renderer",function(){if(ExC!==void 0)return ExC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ExC=M},{mode:1});var MnL;var C0=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return M};
_.v(C0,_.n);C0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
C0.prototype.handleButtonRefreshAction=function(M){if(M=_.q(M,_.UnL))this.set("data.button",M.membershipButton),this.notifyPath("data.button")};
_.Hm.Object.defineProperties(C0.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.avatars)==null?void 0:d.slice(0,8))||[]}}});
_.G([_.H(),_.a("design:type",Object)],C0.prototype,"data",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],C0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C0.prototype,"rendererBehavior",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],C0.prototype,"avatars",null);
C0=_.G([_.f({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],C0);
_.L(C0,"ytd-recognition-shelf-renderer",function(){if(MnL!==void 0)return MnL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return MnL=M},{mode:1});var d7L;var NgV;var xJ=function(){var M=_.n.apply(this,arguments)||this;M.modernButtons=_.Q("web_modern_buttons");return M};
_.v(xJ,_.n);_.F=xJ.prototype;
_.F.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]]"}},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]]"}}}}}};
_.F.dataChanged=function(){this.collapsed=!0};
_.F.computeVisibleItems=function(M,d){return M!==void 0&&M.items?d?M.items.slice(0,this.data.collapsedItemCount):M.items:[]};
_.F.computeHideShowMore=function(M,d,N){return M>=d||!N};
_.F.computeHideShowAll=function(M,d,N){return!(M&&d)||N};
_.F.onMoreClick=function(){this.collapsed=!1};
_.Hm.Object.defineProperties(xJ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Q("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xJ.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],xJ.prototype,"isSearch",void 0);
_.G([_.H({computed:"computeVisibleItems(data,collapsed)"}),_.a("design:type",Array)],xJ.prototype,"visibleItems",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],xJ.prototype,"collapsed",void 0);_.G([_.H({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.a("design:type",Boolean)],xJ.prototype,"hideShowMore",void 0);
_.G([_.H({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.a("design:type",Boolean)],xJ.prototype,"hideShowAll",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],xJ.prototype,"modernButtons",void 0);_.G([_.z("isSearch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],xJ.prototype,"typographyBump",null);
_.G([_.z("isSearch"),_.a("design:type",String),_.a("design:paramtypes",[])],xJ.prototype,"thumbnailWidth",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xJ.prototype,"dataChanged",null);xJ=_.G([_.f({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],xJ);
_.L(xJ,"ytd-vertical-list-renderer",function(){if(NgV!==void 0)return NgV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return NgV=M},{mode:1});var RYV=_.a1(["#"]);_.pO("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var YJ=function(){var M=_.n.apply(this,arguments)||this;M.isConstrainedList=!1;M.modernTypography=_.Q("web_modern_typography");return M};
_.v(YJ,_.n);_.F=YJ.prototype;
_.F.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"}}}};
_.F.computeThumbnailStyle=function(M){return M||""};
_.F.computePlaceAnnotationUnderTitle=function(){var M;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((M=this.data)==null?void 0:M.thumbnailStyle)||"")};
_.F.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.pS(RYV)};
_.F.computeIsPromoShelf=function(M){var d;return(M=M==null?void 0:(d=M[0])==null?void 0:d.metadataBadgeRenderer)?M.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.F.computePlaceBadgeBesideTitle=function(M){var d;return(M==null?0:(d=M[0])==null?0:d.metadataBadgeRenderer)?!this.computeIsPromoShelf(M):!1};
_.F.computeMenuIcon=function(M){return this.computeIsPromoShelf(M)?"yt-icons:more_vert":"yt-icons:more"};
_.F.onDataChange=function(){var M,d;((M=this.data)==null?0:(d=M.content)==null?0:d.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.F.onLockupRequested=function(M){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&M.detail&&M.detail.videoIds){for(var d=this.data.content.gridRenderer.items,N=new Set,R=_.V(M.detail.videoIds),X=R.next();!X.done;X=R.next())N.add(X.value);M.detail.returnValue=d.filter(function(A){return A.gridVideoRenderer&&A.gridVideoRenderer.videoId&&N.has(A.gridVideoRenderer.videoId)}).map(function(A){return A.gridVideoRenderer})}};
_.F.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
YJ.prototype.onLockupRequested=YJ.prototype.onLockupRequested;YJ.prototype.onDataChange=YJ.prototype.onDataChange;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],YJ.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],YJ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],YJ.prototype,"ironResizableBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],YJ.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],YJ.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],YJ.prototype,"isConstrainedList",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("kevlar_fluid_dismiss")}}),
_.a("design:type",Boolean)],YJ.prototype,"enableFluidDismiss",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.a("design:type",String)],YJ.prototype,"thumbnailStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YJ.prototype,"modernTypography",void 0);_.G([_.H({computed:"computeMenuIcon(data.badges)"}),_.a("design:type",String)],YJ.prototype,"menuIcon",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YJ.prototype,"onDataChange",null);_.G([_.C3("yt-lockup-requested"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],YJ.prototype,"onLockupRequested",null);YJ=_.G([_.f({is:"ytd-shelf-renderer",disableElementRegistration:!0})],YJ);
_.L(YJ,"ytd-shelf-renderer",function(){if(d7L!==void 0)return d7L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return d7L=M},{mode:1});var XMC;var Zn=function(){return _.n.apply(this,arguments)||this};
_.v(Zn,_.n);Zn.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Hm.Object.defineProperties(Zn.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zn.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Zn.prototype,"isPlaylist",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Zn.prototype,"isClipList",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Zn.prototype,"isPlaylistPageWithFilters",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zn.prototype,"hasTitle",null);_.G([_.H(),_.z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.a("design:type",Object),_.a("design:paramtypes",[])],Zn.prototype,"isRightAligned",null);
Zn=_.G([_.f({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Zn);
_.L(Zn,"ytd-sort-filter-header-renderer",function(){if(XMC!==void 0)return XMC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XMC=M},{mode:1});var FCe;var E6=function(){return _.n.apply(this,arguments)||this};
_.v(E6,_.n);
E6.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]]"}}}}}};
E6.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Hm.Object.defineProperties(E6.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.Q("enable_creator_details_shelf_m2")){var M=[],d;((d=this.data)==null?0:d.creatorVideosButton)&&M.push(this.data.creatorVideosButton);var N;((N=this.data)==null?0:N.creatorAboutButton)&&M.push(this.data.creatorAboutButton);d=_.V(this.data.creatorCustomUrlButtons||[]);for(N=d.next();!N.done;N=d.next())M.push(N.value);return M}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.Q("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],E6.prototype,"ytdHorizontalListBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],E6.prototype,"engagementPanel",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],E6.prototype,"creatorCustomUrlButtons",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","creatorCustomUrlButtons"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],E6.prototype,"showCreatorCustomUrlButtons",null);_.G([_.z("showCreatorCustomUrlButtons"),_.a("design:type",Number),_.a("design:paramtypes",[])],E6.prototype,"channelAvatarSize",null);
E6=_.G([_.f({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],E6);
_.L(E6,"ytd-video-description-infocards-section-renderer",function(){if(FCe!==void 0)return FCe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return FCe=M},{mode:_.G3("kevlar_poly_si_batch_j067")?1:2});var AgI;var MK=function(){return _.n.apply(this,arguments)||this};
_.v(MK,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MK.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.infoIcon)"}),_.a("design:type",Object)],MK.prototype,"infoIcon",void 0);MK=_.G([_.f({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],MK);
_.L(MK,"ytd-eom-settings-disclaimer-renderer",function(){if(AgI!==void 0)return AgI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return AgI=M},{mode:1});var Vne;var dX=function(){return _.n.apply(this,arguments)||this};
_.v(dX,_.n);_.Hm.Object.defineProperties(dX.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.suppressPaddingDisclaimer)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],dX.prototype,"componentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dX.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],dX.prototype,"suppressPaddingDisclaimer",null);dX=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],dX);
_.L(dX,"ytd-product-list-header-renderer",function(){if(Vne!==void 0)return Vne;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Vne=M},{mode:1});var lat;var NK=function(){return _.n.apply(this,arguments)||this};
_.v(NK,_.n);NK.prototype.computeThumbnailStyle=function(M){if(M&&(M=_.p3(M)))return"background-color:"+M+";"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NK.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],NK.prototype,"data",void 0);NK=_.G([_.f({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],NK);
_.L(NK,"ytd-hashtag-tile-renderer",function(){if(lat!==void 0)return lat;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lat=M},{mode:1});var $7e;var Ry=function(){return _.n.apply(this,arguments)||this};
_.v(Ry,_.n);Ry.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ry.prototype,"data",void 0);Ry=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Ry);
_.L(Ry,"ytd-sponsorships-alert-renderer",function(){if($7e!==void 0)return $7e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $7e=M},{mode:1});var Bg3;var Xe=function(){return _.n.apply(this,arguments)||this};
_.v(Xe,_.n);Xe.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Hm.Object.defineProperties(Xe.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.G([_.S(_.sp),_.a("design:type",Object)],Xe.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],Xe.prototype,"ytdLockupBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.G([_.H({selector:_.KX}),_.a("design:type",Object)],Xe.prototype,"isGridViewEnabled",void 0);
_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Xe.prototype,"watchFeedBigThumbs",null);_.G([_.z("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.a("design:type",String),_.a("design:paramtypes",[])],Xe.prototype,"thumbnailWidth",null);_.G([_.H(),_.a("design:type",Object)],Xe.prototype,"data",void 0);Xe=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Xe);
_.L(Xe,"ytd-compact-movie-renderer",function(){if(Bg3!==void 0)return Bg3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Bg3=M},{mode:1});var kzC;var TgC;var D7e=_.rK("HTML_DIR")==="rtl",Fe=function(){var M=_.n.apply(this,arguments)||this;M.engagementPanel=!1;M.maxLines=2;M.expandButtonOffset=0;M.showExpandButton=!1;M.isTruncated=!1;M.isExpanded=!1;M.currentSnippetType=2;M.alwaysShowExpandButton=!1;M.JSC$14140_lastWidth=NaN;M.observer=null;M.left=0;M.right=0;M.mid=0;M.longestSnippetLength=0;M.isFinalSnippet=!1;M.isFirstMutation=!1;M.isResetMutation=!1;M.OVERFLOW_THRESHOLD=5;return M};
_.v(Fe,_.n);_.F=Fe.prototype;_.F.onClick=function(M){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;if((d=window.getSelection())==null||!d.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.F.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.F.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.F.updateTextOnSnippetTypeChange=function(){_.Q("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.F.setUpBinarySearch=function(M){M=M*this.maxLines/8;this.left=0;var d,N;this.right=Math.min(M*2,(N=(d=this.simpleText)==null?void 0:d.length)!=null?N:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.F.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.F.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.vh(new _.WJ("AttributedSnippet is empty when the description is not empty",this.text))};
_.F.mutationCallback=function(){if(this.observer!=null){var M=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var d=Math.floor(M*this.maxLines/8);this.setSnippetText(this.text,d);d!==0||this.attributedTextIsEmpty()||_.vh(new _.WJ("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;M=M*this.maxLines/8;this.left=0;var N;this.right=Math.min(M*2,(N=(d=this.simpleText)==null?void 0:d.length)!=null?N: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)}}};
_.F.mutationObserve=function(M){var d=this;this.observer||(this.observer=new MutationObserver(function(){d.mutationCallback()}));
this.observer.observe(M,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.F.attached=function(){var M=this;_.bM(this,function(){M.resize()})};
_.F.isExpandedChanged=function(){_.YP(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.F.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)};
_.F.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var M="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((D7e?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",M);this.snippetContainer.style.setProperty("mask-image",
M)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(D7e?"right":"left",this.expandButtonOffset+"px")};
_.F.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.F.setSnippetText=function(M,d){M||(M={});if(_.oA(M)){var N=lN2(M,d);N.attachmentRuns||N.commandRuns||N.decorationRuns||N.styleRuns||N.alignment||N.lineBreakMode?this.attributedSnippetTextEl?(_.Q("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=lN2(M,d),this.attributedSnippetTextEl.headerRuns=VLZ(d,this.headerRuns)):this.attributedSnippetText={data:lN2(M,d),headerRuns:VLZ(d,this.headerRuns)},this.currentSnippetType=0):_.vh(new _.WJ("Tried to set snippet text when HTML element was null",
M)):(this.plainSnippetText.textContent=jC(M.content||"",d),this.currentSnippetType=2)}else{a:{N=IUS(M,d);if(N.runs){N=_.V(N.runs);for(var R=N.next();!R.done;R=N.next())if(R=R.value,R.bold||R.deemphasize||R.italics||R.strikethrough||R.textColor||R.navigationEndpoint||_.q(R,wk)){N=!0;break a}}N=!1}N?this.formattedSnippetText?(this.formattedSnippetText.text=IUS(M,d),this.currentSnippetType=1):_.vh(new _.WJ("Tried to set snippet text when HTML element was null",M)):(this.plainSnippetText.textContent=
jC(_.HD(M),d),this.currentSnippetType=2)}};
_.F.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.F.attributedTextIsEmpty=function(){var M=this.text;if(!_.oA(M))return!0;var d;return((d=M.content)==null?void 0:d.length)===0?!0:!1};
_.F.resize=function(M){if(this.snippetText){if(M===void 0?0:M)this.JSC$14140_lastWidth=NaN;var d=this.hostElement.offsetWidth;if(d!==this.JSC$14140_lastWidth&&!this.isExpanded)if(this.JSC$14140_lastWidth=d,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;M=0;var N,R;d=Math.min(d*this.maxLines/8*2,(R=(N=this.simpleText)==null?void 0:N.length)!=null?R:0)-1;for(N=0;M<=d;)R=Math.floor(M+(d-M)/2),this.setSnippetText(this.text,R),this.isOverflowing()?d=R-1:(M=R+1,N=R);this.setSnippetText(this.text,N);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.F.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.F.onExpandClick=function(){var M=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.Q("inline_expander_reset_focus_killswitch")||_.bM(this,function(){var d;((d=_.h().resolve(_.CF(_.TH)))==null?0:d.isKeyBoardInUse())&&_.e6(M.hostElement)});
_.YP(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.F.onCollapseClick=function(){this.collapse();_.YP(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.F.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.F.computeExpandButtonOffset=function(){var M=this.expandSizer;return M?D7e?M.offsetParent?M.offsetParent.offsetWidth-M.offsetWidth-M.offsetLeft:0:M.offsetLeft:0};
_.Hm.Object.defineProperties(Fe.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.oA(this.text)?this.text.content||"":_.HD(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&&_.Q("web_replace_formatted_with_attributed_string")&&rEA(this.text)?(this.text=_.Wz(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}}});
Fe.prototype.onTextChanged=Fe.prototype.onTextChanged;Fe.prototype.updateMaskAndExpandButtonOffset=Fe.prototype.updateMaskAndExpandButtonOffset;Fe.prototype.updateSnippetContainerMaxHeight=Fe.prototype.updateSnippetContainerMaxHeight;Fe.prototype.isExpandedChanged=Fe.prototype.isExpandedChanged;Fe.prototype.updateTextOnSnippetTypeChange=Fe.prototype.updateTextOnSnippetTypeChange;Fe.prototype.updateIsFormattedExpanded=Fe.prototype.updateIsFormattedExpanded;Fe.prototype.updateIsAttributedExpanded=Fe.prototype.updateIsAttributedExpanded;
Fe.prototype.onClick=Fe.prototype.onClick;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Fe.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"text",void 0);_.G([_.H(),_.a("design:type",Array)],Fe.prototype,"headerRuns",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fe.prototype,"engagementPanel",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"maxLines",void 0);
_.G([_.H(),_.a("design:type",String)],Fe.prototype,"expandLabel",void 0);_.G([_.H(),_.a("design:type",String)],Fe.prototype,"collapseLabel",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"expandCommand",void 0);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"expandButtonOffset",void 0);_.G([_.z("text"),_.a("design:type",String),_.a("design:paramtypes",[])],Fe.prototype,"simpleText",null);
_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Fe.prototype,"onClick",null);_.G([_.z("text","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"expandedText",null);_.G([_.z("headerRuns","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"expandedHeaderRuns",null);
_.G([_.z("text"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Fe.prototype,"hasAttributedStringText",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fe.prototype,"showExpandButton",void 0);_.G([_.z("collapseLabel","isExpanded"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"showCollapseButton",null);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"isTruncated",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fe.prototype,"isExpanded",void 0);_.G([_.H(),_.a("design:type",Boolean)],Fe.prototype,"isAttributedExpanded",void 0);_.G([_.xB("isExpanded","hasAttributedStringText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateIsAttributedExpanded",null);_.G([_.H(),_.a("design:type",Boolean)],Fe.prototype,"isFormattedExpanded",void 0);
_.G([_.xB("isExpanded","hasAttributedStringText"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateIsFormattedExpanded",null);_.G([_.H(),_.a("design:type",Number)],Fe.prototype,"currentSnippetType",void 0);_.G([_.z("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"useAttributedSnippet",null);
_.G([_.z("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"useFormattedSnippet",null);_.G([_.z("currentSnippetType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Fe.prototype,"usePlainSnippet",null);_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"alwaysShowExpandButton",void 0);_.G([_.xB("currentSnippetType"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateTextOnSnippetTypeChange",null);
_.G([_.H(),_.a("design:type",Object)],Fe.prototype,"attributedSnippetText",void 0);_.G([_.Z3("#snippet"),_.a("design:type",HTMLElement)],Fe.prototype,"snippetContainer",void 0);_.G([_.Z3("#snippet-text"),_.a("design:type",HTMLElement)],Fe.prototype,"snippetText",void 0);_.G([_.Z3("#plain-snippet-text"),_.a("design:type",HTMLElement)],Fe.prototype,"plainSnippetText",void 0);_.G([_.Z3("#formatted-snippet-text"),_.a("design:type",Object)],Fe.prototype,"formattedSnippetText",void 0);
_.G([_.Z3("#attributed-snippet-text"),_.a("design:type",Object)],Fe.prototype,"attributedSnippetTextEl",void 0);_.G([_.Z3("#expand"),_.a("design:type",HTMLElement)],Fe.prototype,"expandButton",void 0);_.G([_.Z3("#expand-sizer"),_.a("design:type",HTMLElement)],Fe.prototype,"expandSizer",void 0);_.G([_.NS("isExpanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"isExpandedChanged",null);
_.G([_.xB("isExpanded","maxLines"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateSnippetContainerMaxHeight",null);_.G([_.xB("isTruncated","showExpandButton","expandButtonOffset"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"updateMaskAndExpandButtonOffset",null);
_.G([_.NS("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fe.prototype,"onTextChanged",null);Fe=_.G([_.f({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Fe);
_.L(Fe,"ytd-text-inline-expander",function(){if(TgC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);TgC=M}M=TgC;return M},{mode:2});var Af=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return M};
_.v(Af,_.n);Af.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Af.prototype.handleUpdateDescriptionAction=function(M){if(M=_.q(M,_.t4d))if(M.attributedDescription)this.set("data.attributedDescriptionBodyText",M.attributedDescription);else if(M.description){var d;((d=this.data)==null?0:d.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Wz(M.description)):this.set("data.descriptionBodyText",M.description)}};
_.Hm.Object.defineProperties(Af.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.attributedDescriptionBodyText)||!((d=this.data)==null||!d.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.collapsedLineCount){var d;return(d=this.data)==null?void 0:d.collapsedLineCount}M=_.ZR("web_watch_description_collapsed_default_lines",12);if(_.Q("ww_desc_line_page_size_ks"))return M;d=Math.round(_.lx().height*_.ZR("web_watch_description_screen_height_percentage",.5)/20);return Math.max(d,M)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return(N=(M=this.data)==null?void 0:M.descriptionBodyText)!=null?N:(d=this.data)==null?void 0:d.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.sourceAttributions}}});
Af.prototype.panelContentVisibleChanged=Af.prototype.panelContentVisibleChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Af.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Af.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Af.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Af.prototype,"panelContentVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Af.prototype,"shortsPanel",void 0);_.G([_.Z3("#inline-expander"),_.a("design:type",Object)],Af.prototype,"inlineExpander",void 0);
_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Af.prototype,"panelContentVisibleChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Af.prototype,"hasDescriptionText",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],Af.prototype,"collapsedLines",null);
_.G([_.z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.a("design:type",Object),_.a("design:paramtypes",[])],Af.prototype,"descriptionText",null);_.G([_.z("data","data.headerRuns"),_.a("design:type",Object),_.a("design:paramtypes",[])],Af.prototype,"headerRuns",null);_.G([_.z("data","data.sourceAttributions"),_.a("design:type",Object),_.a("design:paramtypes",[])],Af.prototype,"sourceAttributions",null);
Af=_.G([_.f({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Af);
_.L(Af,"ytd-expandable-video-description-body-renderer",function(){if(kzC!==void 0)return kzC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return kzC=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var gbJ;var WCm=_.SG(function(M){var d=M.data;return _.g("factoid-renderer",{class:"ytwFactoidRendererHost"},_.g("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return d().accessibilityText}},_.g("span",{class:"ytwFactoidRendererValue"},_.g(_.lG,{text:function(){return d().value}})),_.g("span",{class:"ytwFactoidRendererLabel"},_.g(_.lG,{text:function(){return d().label}}))))},"Eb");_.eC(WCm,"factoid-renderer",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;return _.g("upload-time-factoid-renderer",null,_.g(_.ho,{data:function(){return d().factoid}},{factoidRenderer:WCm}))},"Fb"),"upload-time-factoid-renderer",{props:{data:_.bI}});_.eC(_.SG(function(M){var d=M.data;return _.g("view-count-factoid-renderer",null,_.g(_.ho,{data:function(){return d().factoid}},{factoidRenderer:WCm}))},"Gb"),"view-count-factoid-renderer",{props:{data:_.bI}});var VS=function(){var M=_.n.apply(this,arguments)||this;M.shortsPanel=!1;M.engagementPanel=!1;M.watchWhileSdp=_.Q("shorts_desktop_watch_while_sdp");return M};
_.v(VS,_.n);VS.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"}}}}};
_.Hm.Object.defineProperties(VS.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var M;return(M=this.data)==null?void 0:M.channel}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],VS.prototype,"componentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"shortsPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"engagementPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VS.prototype,"watchWhileSdp",void 0);_.G([_.z("shortsPanel","engagementPanel","data.channel"),_.a("design:type",Object),_.a("design:paramtypes",[])],VS.prototype,"showChannelInfo",null);VS=_.G([_.f({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],VS);
_.L(VS,"ytd-video-description-header-renderer",function(){if(gbJ!==void 0)return gbJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return gbJ=M},{mode:1});var wMt;var lj=function(){return _.n.apply(this,arguments)||this};
_.v(lj,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],lj.prototype,"noPadding",void 0);_.G([_.H(),_.a("design:type",Object)],lj.prototype,"data",void 0);lj=_.G([_.f({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],lj);
_.L(lj,"ytd-list-item-view-model",function(){if(wMt!==void 0)return wMt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return wMt=M},{mode:1});var pML;var m7I;var hYV;var Q$d;var $m=function(){var M=_.n.apply(this,arguments)||this;M.adaptiveFullWidth=!1;M.modernButtons=_.Q("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return M};
_.v($m,_.n);$m.prototype.handleSetTimestamp_=function(M){this.data&&this.data.shortUrl&&(_.K(this.hostElement).querySelector("#share-url").value=M.isSet?_.ne(this.data.shortUrl,"t",M.timestamp):this.data.shortUrl)};
$m.prototype.handleSignalActionCopyShareUrl_=function(M,d){(_.Q("killswitch_copy_link_target_check")||_.K(this.hostElement).querySelector("#copy-button")===d)&&this.copyUrlToClipboard()};
$m.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.K(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
$m.prototype.computeStyle_=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],$m.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$m.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.a("design:type",String)],$m.prototype,"rendererStyle",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$m.prototype,"adaptiveFullWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$m.prototype,"modernButtons",void 0);_.G([_.H(),_.a("design:type",Object)],$m.prototype,"buttonOverrides",void 0);$m=_.G([_.w4({is:"yt-copy-link-renderer",disableElementRegistration:!0})],$m);
_.L($m,"yt-copy-link-renderer",function(){if(Q$d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hYV===void 0&&(hYV=document.createElement("template"));var R=hYV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q$d=M}M=Q$d;return M},{mode:2});_.pO("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var BZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return M};
_.v(BZ,_.n);_.F=BZ.prototype;_.F.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.F.attached=function(){this.keyboardFocused=!1};
_.F.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var M=_.h().resolve(_.CF(_.TH));M&&(this.keyboardFocused=M.isKeyBoardInUse())}};
_.F.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.F.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}};
_.F.onChange_=function(){if(this.data){var M=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;M&&this.ytComponentBehavior.resolveCommand(M);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.F.handleUpdateToggleAction_=function(M){(M=_.q(M,AYL))&&this.data&&M.targetId==this.data.targetId&&this.set("data.toggled",M.toggled)};
_.F.toBoolean_=function(M){return!!M};
_.F.reset=function(){};
_.F.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("data-changed",this.data))};
_.F.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
BZ.prototype.dataChangedForBinding=BZ.prototype.dataChangedForBinding;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],BZ.prototype,"data",void 0);_.G([_.H({computed:"computeDescription_(data.*)"}),_.a("design:type",Object)],BZ.prototype,"description_",void 0);_.G([_.H({value:function(){return!!_.h().resolve(_.CF(_.TH))&&_.Q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.a("design:type",Boolean)],BZ.prototype,"useKeyboardFocused",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],BZ.prototype,"keyboardFocused",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],BZ.prototype,"dataChangedForBinding",null);BZ=_.G([_.w4({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],BZ);
_.L(BZ,"yt-toggle-form-field-renderer",function(){if(m7I===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;pML===void 0&&(pML=document.createElement("template"));var R=pML;N.call(d,R.content.cloneNode(!0),M.content.firstChild);m7I=M}M=m7I;return M},{mode:2});var qht;var Iad;var km=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=!1;M.isSearch=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.noTopMargin=_.Q("kevlar_watch_no_top_margin");M.maskFade=_.Q("web_watch_chips_mask_fade");M.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(km,_.n);_.F=km.prototype;_.F.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}}}}}};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.F.dataChanged=function(){var M=this.getSelectedIndex();if(M>0)this.selected=M;else{this.selected=0;var d,N;(d=this.ytScrollableChipCloudBehavior)==null||(N=d.reset)==null||N.call(d)}};
_.F.getSelectedIndex=function(){var M;if((M=this.data)==null||!M.chips)return-1;M=-1;for(var d,N=0;N<((d=this.data)==null?void 0:d.chips.length);N++){var R=void 0,X=void 0;if((R=this.data)==null?0:(X=R.chips[N].chipCloudChipRenderer)==null?0:X.isSelected){M=N;break}}return M};
_.F.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.bM(M,M.setContainerWidthDiff);C8(this.ytScrollableChipCloudBehavior)};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.handleRelatedChipCommand=function(M,d){M=this.JSC$14167_chipsSelector.indexOf(d);M!==-1&&this.JSC$14167_chipsSelector.selectIndex(M)};
_.F.handleChipCloudChipSelectAction=function(M){M=this.JSC$14167_chipsSelector.indexOf(M);M>-1&&this.JSC$14167_chipsSelector.selectIndex(M)};
_.F.handleChipCloudChipDeselectAction=function(){var M=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14167_chipsSelector&&((M==null?0:M.continuationCommand)?_.dU(this.hostElement,[M]):(M==null?0:M.searchEndpoint)?this.ytComponentBehavior.resolveCommand(M):M&&_.Ni(this.hostElement,[M],this.hostElement),this.JSC$14167_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.F.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
km.prototype.onResize=km.prototype.onResize;km.prototype.dataChanged=km.prototype.dataChanged;km.prototype.isSearchChanged=km.prototype.isSearchChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],km.prototype,"actionHandlerBehavior",void 0);
_.G([_.S(_.sj),_.a("design:type",Object)],km.prototype,"ironResizableBehavior",void 0);_.G([_.S(),_.a("design:type",uQ)],km.prototype,"ytScrollableChipCloudBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],km.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],km.prototype,"selected",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"isDarkTheme",void 0);_.G([_.H({value:160}),_.a("design:type",Number)],km.prototype,"scrollDistance",void 0);_.G([_.H(),_.a("design:type",Object)],km.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"noTopMargin",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],km.prototype,"maskFade",void 0);_.G([_.Z3("#chips"),_.a("design:type",Object)],km.prototype,"JSC$14167_chipsSelector",void 0);_.G([_.xB("isSearch"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"isSearchChanged",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"dataChanged",null);
_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],km.prototype,"onResize",null);km=_.G([_.w4({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],km);
_.L(km,"yt-chip-cloud-renderer",function(){if(Iad===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qht===void 0&&(qht=document.createElement("template"));var R=qht;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Iad=M}M=Iad;return M},{mode:2});var vbC,Oco=function(){return vbC!==void 0?vbC:vbC=document.createElement("template")};
document.head.appendChild(Oco().content);var j$L;var s$d=document.head,PTL=s$d.appendChild,obL;if(j$L===void 0){var rgJ=document.createElement("template");_.P(rgJ,"");rgJ.content.insertBefore(Oco().content.cloneNode(!0),rgJ.content.firstChild);j$L=rgJ}obL=j$L;PTL.call(s$d,obL.content);var KCm=_.SG(function(M){var d=M.data;return _.g("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.g("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.g(_.kV,{cond:function(){return _.Uc(d().image)},
then:function(N){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.g(_.Jt,{data:N,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.g("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.g(_.lG,{text:function(){return d().subtitle}})))),_.g(_.kV,{cond:function(){var N;
return(N=d())==null?void 0:N.hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Hb");var ygV=_.SG(function(M){var d=M.data;return _.g("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.g(_.ho,{data:function(){var N;return(N=d().offerPlanDetailsItem)!=null?N:[]}},{offerPlanDetailsItemViewModel:function(N){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.g(KCm,{data:N.data}))}})),_.g("div",null,_.g(_.kV,{cond:function(){return d().hasBottomDivider},
then:function(){return _.g("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.g("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.g("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ib");var JgV=_.SG(function(M){var d=M.data;M=_.V(_.d0(!1,void 0,"SpEGQd"));var N=M.next().value,R=M.next().value,X=_.dT(function(){R(!N());return!1}),A=function(){var l;
return(l=d().offerPlanDetailsContainer)!=null?l:[]};
return _.g("lp-complex-offer-card-details-view-model",null,_.g("div",null,_.g(_.kV,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":X,"aria-expanded":N},_.g(_.lG,{text:function(){return d().expandedTitle}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.g(_.ho,{data:A},{offerPlanDetailsContainerViewModel:function(l){return _.g("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.g(ygV,{data:l.data}))}})),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.g(_.lG,{text:function(){return d().legalText}})))},
else:function(){return _.g("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":X,"aria-expanded":N},_.g(_.lG,{text:function(){return d().collapsedTitle}}),_.g("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.g(_.Fc,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Jb");var cgL=_.SG(function(M){var d=M.data;return _.g("lp-complex-offer-card-option-view-model",null,_.g("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.g(_.kV,{cond:function(){return d().topDividerText},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.g("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.g(_.lG,{text:function(){return d().topDividerText}}))))}}),_.g(_.kV,{cond:function(){return d().planPricingPrimary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.g(_.lG,{text:function(){return d().planPricingPrimary}}))}}),_.g(_.kV,{cond:function(){return d().planPricingSecondary},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.g(_.lG,{text:function(){return d().planPricingSecondary}}))}}),_.g(_.kV,{cond:function(){return d().primaryButton},
then:function(){return _.g("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.g(_.ho,{data:function(){return d().primaryButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Kb");var ShJ=_.SG(function(M){var d=M.data;var N=function(){var A;return((A=d())==null?void 0:A.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var R={},X={};return _.g("ytm-lp-complex-offer-card-view-model",null,_.g("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.g("div",{class:_.xj((M.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=N,M),"ytmLpComplexOfferCardViewModelCardContainer")},_.g(_.kV,{cond:function(){var A;return(A=d())==null?void 0:A.bannerText},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.g("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.g(_.lG,{text:function(){return d().bannerText}})))}}),_.g(_.kV,{cond:function(){return _.Uc(d().logo)},
then:function(A){var l={};return _.g("div",{class:_.xj((l.ytmLpComplexOfferCardViewModelLogoAlignLeft=N,l),"ytmLpComplexOfferCardViewModelLogo")},_.g(_.Jt,{data:A,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.g("div",{class:_.xj((R.ytmLpComplexOfferCardViewModelTitleAlignLeft=N,R),"ytmLpComplexOfferCardViewModelTitle")},_.g(_.lG,{text:function(){return d().title}})),_.g(_.kV,{cond:function(){var A;
return(A=d())==null?void 0:A.subtitle},
then:function(){var A={};return _.g("div",{class:_.xj((A.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=N,A),"ytmLpComplexOfferCardViewModelSubtitle")},_.g(_.lG,{text:function(){return d().subtitle}}))}}),_.g(_.kV,{cond:function(){return d().planPricingPrimary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.g(_.lG,{text:function(){return d().planPricingPrimary}}))}}),_.g(_.kV,{cond:function(){return d().planPricingSecondary},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.g(_.lG,{text:function(){return d().planPricingSecondary}}))}}),_.g(_.kV,{cond:function(){return d().purchaseButton},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.g(_.ho,{data:function(){return d().purchaseButton}},{buttonViewModel:function(A){return _.g(_.o0,{data:A.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.g(_.kV,{cond:function(){var A;
return(A=d())==null?void 0:A.offerOptions},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.g(_.ho,{data:function(){return d().offerOptions}},{lpComplexOfferCardOptionViewModel:cgL}))}}),_.g("div",{class:_.xj((X.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=N,X),"ytmLpComplexOfferCardViewModelLegalText")},_.g(_.lG,{text:function(){return d().legalText}})),_.g(_.kV,{cond:function(){var A;
return(A=d())==null?void 0:A.offerCardDetails},
then:function(){return _.g("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.g(_.ho,{data:function(){return d().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:JgV}))}}))))},"Lb");var zYC=_.SG(function(M){var d=M.data;var N=function(){var l;return((l=d())==null?void 0:l.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var R={},X={},A={};return _.g("ytm-lp-complex-offer-card-section-view-model",null,_.g("div",{class:_.xj("ytmLpComplexOfferCardSectionViewModelHost")},_.g("div",{class:_.xj((M.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=N,M),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.g("div",{class:_.xj((R.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=N,R),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.g("h2",{class:_.xj((X.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
N,X),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.g(_.lG,{text:function(){return d().title}}))),_.g(_.kV,{cond:function(){var l;
return(l=d())==null?void 0:l.subtitle},
then:function(){var l={},k={};return _.g("div",{class:_.xj((l.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=N,l),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.g("div",{class:_.xj((k.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=N,k),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.g(_.lG,{text:function(){return d().subtitle}})))}}),_.g("div",{class:_.xj((A.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=N,A),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.g(_.ho,{data:function(){var l;
return(l=d().offerPlans)!=null?l:[]}},{lpComplexOfferCardViewModel:function(l){return _.g("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.g(ShJ,{data:l.data}))}})))))},"Mb");_.PC=Qco.getInstance();var bct=_.SG(function(M){return _.g("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":M.shouldAriaHideContent},_.g("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:M.questionId},_.g(_.lG,{text:M.question})))},"Nb"),eYe=_.SG(function(M){var d=M.data;
var N=M.themeOverride;M=_.V(_.d0(!1,void 0,"ljTVPd"));var R=M.next().value,X=M.next().value;M=_.dT(function(){X(!R());return!1});
var A=function(){return R()?"EXPAND_LESS":"EXPAND_MORE"},l=("faq-container"+_.s$(_.PC)).toString(),k="faq-question-and-answers-section-question"+_.s$(_.PC),T={},W={};
return _.g("faq-entry-view-model-c3",null,_.g("div",{class:_.xj("yt-lp-faq-entry-view-model",(T["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return N==null?void 0:N().useDarkTheme},T))},_.g("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":M,role:"button","aria-expanded":R,"aria-labelledby":k.toString(),"tab-index":"0"},_.g(bct,{question:function(){return d().question},
questionId:k,shouldAriaHideContent:!0}),_.g(_.kV,{cond:function(){return R()!==void 0},
then:function(){return _.g("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.g(_.Fc,{icon:A,ariaHidden:!0}),_.g("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.g("div",{class:_.xj("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(W["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!R()},W))},_.g("div",{id:l},_.g(_.TN,{each:function(){return d().answers||[]}},function(w){return _.g("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.g(_.lG,{text:w}))})))))},"Ob");
eYe.idomCompat=!0;var Hcg=_.SG(function(M){var d=M.data;var N=M.themeOverride;M={};return _.g("lp-faq-section-view-model-c3",null,_.g("div",{class:_.xj("yt-lp-faq-section-view-model",(M["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},M))},_.g("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.g(_.kV,{cond:function(){return d().header},
then:function(R){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.g(_.lG,{text:R}))}}),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.g(_.ho,{data:function(){return d().faqs}},{faqEntryViewModel:function(R){return _.g(eYe,{data:R.data,
themeOverride:N})}})),_.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.g(_.TN,{each:function(){return d().footers||[]}},function(R){return _.g(_.lG,{text:R})})),_.g(_.kV,{cond:function(){return d().legal},
then:function(R){return _.g("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.g(_.lG,{text:R}))}}))))},"Pb");
Hcg.idomCompat=!0;var nbL=_.SG(function(M){var d=M.data;var N=M.themeOverride;_.IJ(function(){var l=d().gtmId;l&&_.kH(l,_.rK("GL",""))});
var R={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var l,k,T;return(T=(l=d().logo)==null?void 0:(k=l.accessibilityData)==null?void 0:k.label)!=null?T:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},X=_.h().resolve(_.CF(_.Pz)),A=function(){return X&&X()||(N==null?void 0:N().useDarkTheme)};
return _.g("lp-header-section-view-model",null,_.g("div",{class:function(){var l=d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",k=d().marginType==="LP_SECTION_MARGIN_TYPE_TOP",T=N==null?void 0:N().useDarkTheme,W=["lp-header-section-view-model"];l&&W.push("lp-header-section-view-model--ptc-layout-type");k&&W.push("lp-header-section-view-model__lp-header-section-margin");T&&W.push("lp-header-section-view-model--premium-force-dark-mode");return W.join(" ")}},_.g(_.kV,{cond:function(){return d().logo},
then:function(){return _.g("div",null,_.g(_.kV,{cond:A,then:function(){return _.g(_.kV,{cond:function(){var l;return(l=d().logo)==null?void 0:l.imageDark},
then:function(l){return _.g(_.Jt,Object.assign({},{data:l},R))}})},
else:function(){return _.g(_.kV,{cond:function(){var l;return(l=d().logo)==null?void 0:l.imageLight},
then:function(l){return _.g(_.Jt,Object.assign({},{data:l},R))}})}}))}}),_.g(_.kV,{cond:function(){return d().title},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-title"},_.g(_.lG,{text:l}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.g(_.kV,{cond:function(){return d().subtitles},
then:function(l){return _.g(_.TN,{each:l},function(k){return _.g("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.g(_.lG,{text:k}))})}})),_.g(_.kV,{cond:function(){return d().additionalInfo},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.g(_.lG,{text:l}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.g(_.kV,{cond:function(){return d().primaryButton},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.g(_.ho,{data:l},{buttonViewModel:_.o0}))}}),_.g(_.kV,{cond:function(){return d().secondaryButton},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.g(_.ho,{data:l},{buttonViewModel:_.o0}))}})),_.g(_.kV,{cond:function(){return d().otherOffersInfo},
then:function(l){return _.g("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.g(_.lG,{text:l}))}}),_.g("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.g(_.kV,{cond:function(){return d().billingInfo},
then:function(l){return _.g(_.TN,{each:l},function(k){return _.g("div",null,_.g(_.lG,{text:k}))})}}))))},"Qb");
nbL.idomCompat=!0;var ic3=_.SG(function(M){var d=M.data;var N=_.Jy(M.themeOverride,{useDarkTheme:!1});M={};M=_.xj("ytm-lp-headline-section-view-model",(M["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return N().useDarkTheme},M));
return _.g("lp-headline-section-view-model",null,_.g("div",{class:M},_.g("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.g(_.lG,{text:function(){return d().title}})),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(R){return _.g("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.g(_.lG,{text:R}))}})))},"Rb");var faC=_.SG(function(M){var d=M.data;var N=M.themeOverride;var R=_.h().resolve(_.CF(_.Pz)),X=function(){return R&&R()||(N==null?void 0:N().useDarkTheme)},A=function(){var W,w;
var p=X()?(W=d().textBackgroundImage)==null?void 0:W.imageDark:(w=d().textBackgroundImage)==null?void 0:w.imageLight;return KpL((p==null?void 0:p.sources)||[])},l=function(){var W,w;
return X()?(W=d().featureImage)==null?void 0:W.imageDark:(w=d().featureImage)==null?void 0:w.imageLight},k=function(){return d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},T=function(){var W,w;
return X()?(W=d().logo)==null?void 0:W.imageDark:(w=d().logo)==null?void 0:w.imageLight};
return _.g("ytm-lp-large-feature-section-view-model",null,_.g("div",{class:function(){var W=d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",w=d().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",p=(d().index||0)%2===1,m=N==null?void 0:N().useDarkTheme,I=["yt-lp-large-feature-section-view-model"];W?I.push("yt-lp-large-feature-section-view-model--music-feature-type"):w?I.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):p||I.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
m&&I.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.g(_.kV,{cond:l,
then:function(){return _.g(_.Jt,{data:function(){return l()},
alt:function(){var W,w,p;return(p=(W=d().featureImage)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?p:""},
contentMode:k})}})),_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var W;return((W=A())==null?0:W.url)?"background-image: url("+_.gH(A().url)+");":""}},_.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.g(_.kV,{cond:T,
then:function(){return _.g(_.Jt,{data:function(){return T()},
alt:function(){var W,w,p;return(p=(W=d().logo)==null?void 0:(w=W.accessibilityData)==null?void 0:w.label)!=null?p:""},
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"})}}),_.g(_.kV,{cond:function(){return d().eyebrowText},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.g(_.lG,{text:function(){return d().eyebrowText}}))}}),_.g(_.kV,{cond:function(){return d().title},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.g(_.lG,{text:function(){return d().title}}))}}),_.g(_.kV,{cond:function(){return d().subtitles},
then:function(){return _.g("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.g(_.TN,{each:function(){return d().subtitles||[]}},function(W){return _.g(_.lG,{text:W})}))}})))))},"Sb");
faC.idomCompat=!0;var LCV=_.SG(function(M){return _.g("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.g("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.g(_.Fc,{icon:function(){var d;return(d=M.data())==null?void 0:d.iconType},
className:function(){var d;return((d=M.data())==null?void 0:d.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.g("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.g(_.lG,{text:function(){var d;
return(d=M.data())==null?void 0:d.text}}))))},"Tb");var tn3=_.SG(function(M){M=_.cu(M,{config:void 0,themeOverride:void 0});var d=M.data,N=M.config,R=M.themeOverride;M={};M=_.xj("ytm-lp-offer-card-option-view-model",(M["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var T;return(T=R())==null?void 0:T.useDarkTheme},M));
var X=_.dT(function(){var T,W;(T=N())==null||(W=T.handleRadioButtonClick)==null||W.call(T,d());return!1}),A=function(){var T;
return(T=N())==null?void 0:T.shouldDisplayRadioButton},l=_.dT(function(){if(A()){var T,W;
(T=N())==null||(W=T.handleRadioButtonClick)==null||W.call(T,d())}return!1}),k=function(){var T;
return(T=d().featureListItems)!=null?T:[]};
return _.g("ytm-lp-offer-card-option-view-model",null,_.g("div",{class:M,"on:click":l},_.g(_.kV,{cond:A,then:function(){return _.g("div",null,_.g("input",{type:"radio","on:click":X,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var T;return!((T=N())==null||!T.isOptionSelected)}}))}}),_.g("div",null,_.g("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.g(_.lG,{text:function(){return d().eyebrowText}})),_.g("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.g(_.lG,{text:function(){return d().subtitle}})),_.g(_.kV,{cond:function(){return k().length>0},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.g(_.ho,{data:k},{lpFeatureListItemViewModel:LCV}))}}),_.g("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.g(_.lG,{text:function(){return d().description}})))))},"Ub");
tn3.idomCompat=!0;var GzL=_.SG(function(M){var d=M.data;var N=M.themeOverride;M=_.V(_.Rq(function(){var A,l=(A=d().offerOptions)==null?void 0:A[0];return _.q(l,WQm)||{}}));
var R=M.next().value,X=M.next().value;M={};return _.g("ytm-lp-offer-card-view-model",null,_.g("div",{class:_.xj("ytm-lp-offer-card-view-model",(M["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},M))},_.g("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.g(_.kV,{cond:function(){return d().titleIconType},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.g(_.Fc,{icon:function(){var A;return((A=d().titleIconType)==null?void 0:A.toString())||""}}))}}),_.g("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.g(_.lG,{text:function(){return d().title}})),_.g(_.ho,{data:function(){return d().titleBadge}},{badgeViewModel:function(A){return _.g("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.g(_.nN,{data:A.data}))}})),_.g("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.g(_.ho,{data:function(){return d().offerOptions}},{lpOfferCardOptionViewModel:function(A){var l=A.data;
return _.g(_.GT,null,_.g("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.g(tn3,{data:l,config:function(){var k;return{shouldDisplayRadioButton:(d().offerOptions||[]).length>1,isOptionSelected:l().id===((k=R())==null?void 0:k.id),handleRadioButtonClick:function(T){return void X(T)}}},
themeOverride:N}))}})),_.g("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.g(_.ho,{data:function(){var A;
return(A=R())==null?void 0:A.purchaseButtonOverride}},{buttonViewModel:_.o0}))))},"Vb");
GzL.idomCompat=!0;var aaL=_.SG(function(M){var d=M.data;var N=M.themeOverride;M={};M=_.xj("ytm-lp-offer-card-section-view-model",(M["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var R;return N==null?void 0:(R=N())==null?void 0:R.useDarkTheme},M));
return _.g("ytm-lp-offer-card-section-view-model",null,_.g("div",{class:M},_.g(_.kV,{cond:function(){return d().title!==void 0},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.g("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.g(_.lG,{text:function(){return d().title}})),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.g(_.lG,{text:function(){return d().subtitle}}))}}))}}),_.g("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.g(_.ho,{data:function(){return d().offerCards}},{lpOfferCardViewModel:function(R){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.g(GzL,{data:R.data,
themeOverride:N}))}})),_.g(_.kV,{cond:function(){return d().footer},
then:function(){return _.g("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.g(_.lG,{text:function(){return d().footer}}))}})))},"Wb");var U7t=_.SG(function(M){var d=M.data;return _.g("lp-offer-table-cell-content-view-model",null,_.g("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.g(_.pF,null,_.g(_.gK,{when:function(){return d().title}},function(){return _.g(_.lG,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return d().title}})}),_.g(_.gK,{when:function(){return d().subTitle}},function(){return _.g(_.lG,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return d().subTitle}})}),_.g(_.gK,{when:function(){return d().featureDescription}},function(){return _.g(_.lG,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return d().featureDescription}})}),_.g(_.gK,{when:function(){return d().description}},function(){return _.g(_.lG,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return d().description}})}),_.g(_.gK,{when:function(){return d().iconType}},function(){return _.g("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.g(_.Fc,{icon:function(){return d().iconType.toString()}}))}),_.g(_.gK,{when:function(){return d().purchaseButton}},function(){return _.g(_.ho,{data:function(){return d().purchaseButton}},{buttonViewModel:function(N){return _.g("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.g(_.o0,{data:N.data}))}})}),_.g(_.gK,{when:function(){return d().note}},function(){return _.g(_.lG,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return d().note}})}),_.g(_.gK,{when:function(){return d().featureDetail}},function(){return _.g(_.lG,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return d().featureDetail}})}),_.g(_.gK,{when:function(){return d().badge}},function(){return _.g(_.ho,{data:function(){return d().badge}},{badgeViewModel:_.nN})}))))},"Xb");
U7t.idomCompat=!0;var uFd=_.SG(function(M){var d=M.data;return _.g("lp-offer-table-cell-view-model",null,_.g("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(d().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;"}}},_.g(_.ho,{data:function(){return d().contents}},{lpOfferTableCellContentViewModel:U7t})))},
"Yb");
uFd.idomCompat=!0;var CTV=_.SG(function(M){var d=M.data;var N=M.lpTableIsFirstRow;var R=M.lpTableIsLastRow;var X=function(){return(N==null?0:N())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},A=function(){return(N==null?0:N())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(R==null?0:R())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.g("ytm-lp-offer-table-row-view-model",null,_.g("div",{class:"yt-lp-offer-table-row-view-model"},_.g(_.ho,{data:function(){return d().rowHeaderCell}},{lpOfferTableCellViewModel:function(l){return _.g("div",{class:X},_.g(uFd,{data:l.data}))}}),_.g(_.ho,{data:function(){return d().contentCells}},{lpOfferTableCellViewModel:function(l){return _.g("div",{class:A},_.g(uFd,{data:l.data}))}})))},"Zb");
CTV.idomCompat=!0;var x7g=_.SG(function(M){var d=M.data;var N=M.themeOverride;var R=_.h().resolve(_.CF(_.Pz)),X=function(){return _.q(d().logo,QhV)||{}};
M={};return _.g("ytm-lp-offer-table-section-view-model",null,_.g("div",{class:"yt-lp-offer-table-view-model"},_.g(_.kV,{cond:function(){var A,l;return R&&R()||(N==null?0:N().useDarkTheme)?(A=X())==null?void 0:A.imageDark:(l=X())==null?void 0:l.imageLight},
then:function(A){return _.g(_.Jt,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var l,k,T;return(T=(l=X())==null?void 0:(k=l.accessibilityData)==null?void 0:k.label)!=null?T:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.g(_.lG,{text:function(){return d().subtitle}})),_.g(_.kV,{cond:function(){return d().disclaimers},
then:function(A){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.g(_.TN,{each:A},function(l){return _.g("div",null,_.g(_.lG,{text:l}))}))}}),_.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.g(_.ho,{data:function(){return d().rows}},{lpOfferTableRowViewModel:function(A,l){return _.g(CTV,{data:A.data,
lpTableIsFirstRow:function(){return l()===0},
lpTableIsLastRow:function(){return l()===d().rows.length-1}})}})),_.g("div",{class:_.xj((M["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return d().hasFooterBackground},M))},_.g(_.kV,{cond:function(){return d().footer},
then:function(){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.g(_.lG,{text:function(){return d().footer}}))}}),_.g(_.kV,{cond:function(){return d().footerTitle},
then:function(){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.g(_.lG,{text:function(){return d().footerTitle}}))}}),_.g(_.kV,{cond:function(){return d().footerDescription},
then:function(){return _.g("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.g(_.lG,{text:function(){return d().footerDescription}}))}}))))},"$b");
x7g.idomCompat=!0;var Yhe=_.SG(function(M){var d=M.data;var N=M.themeOverride;var R=_.h().resolve(_.CF(_.Pz)),X=function(){var k;return N==null?void 0:(k=N())==null?void 0:k.useDarkTheme},A=function(){var k,T;
return R&&R()||X()?(k=d().image)==null?void 0:k.imageDark:(T=d().image)==null?void 0:T.imageLight};
M={};M=_.xj("ytm-lp-small-feature-section-view-model",(M["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=X,M));var l=function(){var k,T,W;return(W=(k=d().image)==null?void 0:(T=k.accessibilityData)==null?void 0:T.label)!=null?W:""};
return _.g("ytm-lp-small-feature-section-view-model",{class:M},_.g(_.kV,{cond:function(){return A()&&!GO6},
then:function(){return _.g("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.g(_.Jt,{data:function(){return A()},
alt:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.g("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.g("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.g(_.kV,{cond:function(){return d().title},
then:function(k){return _.g(_.lG,{text:k})}})),_.g("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.g(_.lG,{text:function(){return d().description}}))))},"ac");
Yhe.idomCompat=!0;var Zc3=_.SG(function(M){var d=M.data;var N=M.themeOverride;M={};return _.g("ytm-lp-small-feature-section-group-view-model",null,_.g("div",{class:_.xj("ytm-lp-small-feature-section-group-view-model",(M["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(N==null||!N().useDarkTheme)},M))},_.g("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.g(_.ho,{data:function(){return d().smallFeatures}},{lpSmallFeatureSectionViewModel:function(R){return _.g("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.g(Yhe,{data:R.data,
themeOverride:N}))}}))))},"bc");
Zc3.idomCompat=!0;_.eC(_.SG(function(M){var d=M.data;var N=function(){return d().forcedTheme==="USER_INTERFACE_THEME_DARK"},R=function(){return d().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},X=function(){var l="",k,T;
var W=_.h().resolve(_.CF(_.Pz));W=N()||(W==null?0:W())?(k=d().themedImageViewModel)==null?void 0:k.imageDark:(T=d().themedImageViewModel)==null?void 0:T.imageLight;(k=KpL((W==null?void 0:W.sources)||[]))&&k.url&&(l=R()?"background-image: linear-gradient(to bottom, transparent, "+(d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.gH(k.url)+");":"background-image: url("+_.gH(k.url)+");");return l},A=function(){return{useDarkTheme:N()}};
M={};return _.g("yt-section-group-view-model",null,_.g("div",{class:_.xj("yt-lp-section-group-view-model",(M["yt-lp-section-group-view-model--premium-force-dark-mode"]=N,M["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return d().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M))},_.g(_.kV,{cond:function(){return X().length},
then:function(){var l={};return _.g("div",{class:_.xj("yt-lp-section-group-view-model__bg-image",(l["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=R,l)),style:X})}}),_.g("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.g(_.ho,{data:function(){return d().sections}},{lpFaqSectionViewModel:function(l){return _.g(Hcg,{data:l.data,
themeOverride:A})},
lpHeaderSectionViewModel:function(l){return _.g(nbL,{data:l.data,themeOverride:A})},
lpHeadlineSectionViewModel:function(l){return _.g(ic3,{data:l.data,themeOverride:A})},
lpLargeFeatureSectionViewModel:function(l){return _.g(faC,{data:l.data,themeOverride:A})},
lpOfferCardSectionViewModel:function(l){return _.g(aaL,{data:l.data,themeOverride:A})},
lpComplexOfferCardSectionViewModel:function(l){return _.g(zYC,{data:l.data})},
lpOfferTableSectionViewModel:function(l){return _.g(x7g,{data:l.data,themeOverride:A})},
lpSmallFeatureSectionGroupViewModel:function(l){return _.g(Zc3,{data:l.data,themeOverride:A})}}))))},"cc"),"yt-section-group-view-model",{props:{data:_.cA}});var jMi=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Ebd=_.SG(function(M){function d(){if(jMi.has(M.data().displayType)){var W=!R(),w;if((w=M.disableDeselection)==null||!w.call(M)||W){M.data().selected=W;w=Object.assign({},l(),{selected:W});k(w);var p;(p=M.callback)==null||p.call(M,w,W)}}}
var N=_.e5(),R=function(){var W,w;return!!(((W=M.selected)==null?void 0:W.call(M))!==void 0?(w=M.selected)==null?0:w.call(M):l().selected)},X=_.V(_.Rq(M.data)),A=X.next().value;
X=X.next().value;var l=A,k=X,T=_.FT(OT6,function(){return M.data().chipEntityKey||""});
return _.g("chip-view-model",{class:"ytChipViewModelHost",el:N},_.g(fOd,{data:function(){var W,w=Object.assign({},l(),{selected:R()}),p=T(),m=(W=M.disableDeselection)==null?void 0:W.call(M);a:switch(w.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":W=1;break a;default:W=0}return{text:(p==null?void 0:p.text)||w.text,state:w.disabled?1:w.selected?0:2,type:W,onTap:sMi(w,N,d,m),accessibilityLabel:w.accessibilityLabel||w.text}}}))},"dc");
_.Ebd.idomCompat={callbacks:{callback:!0}};_.eC(_.SG(function(M){var d=_.FT(vuZ,function(){var l;return(l=M.data())==null?void 0:l.chipBarStateEntityKey}),N=function(){return M.data().disableDeselection},R=_.V(_.Rq(function(){var l;
if(((l=d())==null?void 0:l.selectedIndex)!=void 0)return d().selectedIndex;var k,T;l=_.V(((k=M.data())==null?void 0:(T=k.chips)==null?void 0:T.entries())||[]);for(k=l.next();!k.done;k=l.next()){k=_.V(k.value);T=k.next().value;k=k.next().value;var W=void 0;if((W=_.q(k,_.cq))==null?0:W.selected)return T}return-1})),X=R.next().value,A=R.next().value;
return _.g("chip-bar-view-model",{class:_.xj("ytChipBarViewModelHost",M.className),role:"tablist"},_.g(_.ho,{data:function(){return M.data().chips}},{chipViewModel:function(l,k){return _.g("div",{class:"ytChipBarViewModelChipWrapper"},_.g(_.Ebd,{data:l.data,
selected:function(){return k()===X()},
callback:function(T,W){T=!!W;W=k();A(T?W:-1);var w,p=(w=M.data())==null?void 0:w.chipBarStateEntityKey;p&&T&&_.yE(_.la("chipBarStateEntity",p,{key:p,selectedIndex:W}))},
disableDeselection:M.disableDeselection||N}))}}))},"ec"),"chip-bar-view-model",{props:{data:_.bI,
className:_.bI,disableDeselection:_.bI}});_.M_V=_.SG(function(M){var d=M.data;M={};return _.g("divider-view-model",{class:_.xj("divider-view-model-wiz",(M["divider-view-model-wiz__inset-thin-padding"]=function(){return d().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},M))},_.g("div",{class:_.xj("divider-view-model-wiz__base-divider",function(){return Pw2(d().dividerStyle)}),
style:_.Xc({"background-color":function(){return d().backgroundColor?_.p3(d().backgroundColor):void 0}})}))},"fc");
_.M_V.idomCompat=!0;_.eC(_.M_V,"divider-view-model",{props:{data:_.cA}});var O$=new Map,vC=new Map,KbS=0,jB;var eov=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],iT2={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var d3z,N8V;d3z=function(M){return function(d){return function(){return String(d())+M}}};
_.TW=d3z("px");N8V=d3z("s");var XbL=_.SG(function(M){function d(U){return function(){var Fi=I().numItemsPerGridRow,Y=U()*Fi;Fi=Y+Fi;var $i,vj;return(vj=($i=R().contents)==null?void 0:$i.slice(Y,Fi))!=null?vj:[]}}
var N=_.cu(M,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),R=N.data,X=N.layoutContainerWidth,A=N.shouldUseOwnContainerSize,l=N.marginSettings;N=_.V(_.d0(!0,void 0,"qgr2Je"));var k=N.next().value,T=N.next().value,W=function(){var U,Fi=(U=_.q(R().showMoreButton,_.QM))==null?void 0:U.trackingParams;Fi&&_.FD(_.Nx(),Fi);T(!1)},w=function(){var U,Fi=(U=_.q(R().showLessButton,_.QM))==null?void 0:U.trackingParams;
Fi&&_.FD(_.Nx(),Fi);T(!0)};
N=_.e5();var p=_.LbS(N,{canHaveZeroSize:!1}),m=function(){var U;return(U=R().contentAspectRatio)!=null?U:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},I=_.Al(function(){var U=_.GH({containerWidth:A()&&p.width()>0?p.width()||X():X(),
sizing:"EXTRA_COMPACT",marginSettings:l(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:U.maxContainerWidth,numItemsPerGridRow:U.numItems,contentPadding:A()?U.margin:U.contentMargin,itemWidth:U.itemWidth,itemMargin:U.gutter/2}},void 0,"pqVdjc"),O=function(){if(R().enableVerticalExpansion){if(k())return 1;
var U,Fi,Y=(Fi=(U=R().contents)==null?void 0:U.length)!=null?Fi:0;return Math.ceil(Y/I().numItemsPerGridRow)}return I().numItemsPerGridRow<=2?2:1},y=function(){return R().enableVerticalExpansion&&R().showLessButton&&!k()&&O()>1},c=function(){var U,Fi;
return R().enableVerticalExpansion&&R().showMoreButton&&k()&&((Fi=(U=R().contents)==null?void 0:U.length)!=null?Fi:0)>I().numItemsPerGridRow},e=function(){return!y()},t=function(){return!c()},C={};
return _.g("grid-shelf-view-model",{class:_.xj("ytGridShelfViewModelHost",M.className,(C.ytGridShelfViewModelHostHasBottomButton=function(){return y()||c()},C)),
el:N,style:_.Xc({"margin-left":(0,_.TW)(function(){return I().contentPadding}),
"margin-right":(0,_.TW)(function(){return I().contentPadding})})},_.g(_.kV,{cond:function(){return _.q(R().header,JbL)},
then:function(U){return _.g(_.U6,{data:U,disableHorizontalPadding:!0})}}),_.g("div",null,_.g(_.TN,{each:function(){return Array(O())}},function(U,Fi){return _.g(RDz,{className:M.className,
items:d(Fi),responsiveGridShelfLayout:I,contentAspectRatio:m})})),_.g("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.g(_.ho,{data:function(){return R().showMoreButton}},{buttonViewModel:function(U){return _.g("div",{hidden:t},_.g(_.o0,{data:U.data,
onClick:W}))}}),_.g(_.ho,{data:function(){return R().showLessButton}},{buttonViewModel:function(U){return _.g("div",{hidden:e},_.g(_.o0,{data:U.data,
onClick:w}))}})))},"gc");
XbL.idomCompat=!0;var RDz=_.SG(function(M){var d=M.items;var N=M.responsiveGridShelfLayout;var R=M.contentAspectRatio;M=M.className;var X=_.e5();rPi(X,function(){a:{var l=X.value;for(var k=d(),T=[],W=0;W<k.length;W++){var w=_.q(k[W],qjL);if(!w||w==null||!w.inlinePlayerData){l=null;break a}var p=l.children.item(W);if(!p){l=null;break a}T.push({thumbnailElement:p,videoData:w})}l={gridVideoPreviewData:{gridItems:T}}}return l});
var A=(0,_.TW)(function(){return-N().itemMargin});
return _.g("div",{el:X,class:_.xj("ytGridShelfViewModelGridShelfRow",M),style:_.Xc({"margin-left":A,"margin-right":A})},_.g(_.ho,{data:d,replacementWrapper:function(l){return _.g(Frd,{responsiveGridShelfLayout:N},l)}},{shortsLockupViewModel:function(l){return _.g(Frd,{responsiveGridShelfLayout:N},_.g(ZRL,{data:l.data,
aspectRatio:function(){return R()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"hc"),Frd=_.SG(function(M){return _.g("div",{style:_.Xc({width:(0,_.TW)(function(){return M.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+M.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},M.children)},"ic");
XbL.idomCompat=!0;_.eC(XbL,"grid-shelf-view-model",{props:{data:_.cA,layoutContainerWidth:_.cA,shouldUseOwnContainerSize:_.cA,marginSettings:_.cA,className:_.cA}});var ABo=_.SG(function(M){var d=_.V(_.d0(!1,void 0,"YYtxR")),N=d.next().value,R=d.next().value;d={};return _.g("yt-alert-banner-view-model",{class:_.xj("ytAlertBannerViewModelHost",function(){var X;a:switch((X=M.data())==null?void 0:X.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":X="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":X="ytAlertBannerViewModelWarning";break a;default:X="ytAlertBannerViewModelInformational"}return X},(d.ytAlertBannerViewModelDismissed=N,d.ytAlertBannerViewModelFullbleed=
M.fullbleed,d.ytAlertBannerViewModelNarrow=M.narrow,d.ytAlertBannerViewModelIsInRichGrid=M.isInRichGrid,d))},_.g(_.kV,{cond:function(){var X;
return!((X=M.data())==null?0:X.hideIcon)},
then:function(){return _.g("div",{class:"ytAlertBannerViewModelIcon"},_.g(_.Fc,{icon:function(){return"info_circle"}}))}}),_.g("div",{class:"ytAlertBannerViewModelOuterContainer"},_.g("div",{class:"ytAlertBannerViewModelContainer"},_.g("div",{class:"ytAlertBannerViewModelContent"},_.g("div",{class:"ytAlertBannerViewModelHeading"},_.g(_.lG,{text:function(){var X;
return(X=M.data())==null?void 0:X.heading}})),_.g("div",{class:"ytAlertBannerViewModelBody"},_.g(_.lG,{text:function(){var X;
return(X=M.data())==null?void 0:X.body}})))),_.g(_.ho,{data:function(){var X;
return(X=M.data())==null?void 0:X.actionButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.g(_.ho,{data:function(){var X;
return(X=M.data())==null?void 0:X.dismissButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var A;((A=M.data())==null?0:A.disableLocalDismissBehavior)||R(!0)}})}}))},"jc");_.eC(ABo,"yt-alert-banner-view-model",{props:{data:_.cA,fullbleed:_.cA,narrow:_.cA,isInRichGrid:_.cA}});var t0A;t0A=_.W5({chipViewModel:_.Ebd,buttonViewModel:_.o0});_.V_d=_.Ez(GFN,{callbacks:{callback:!0}});_.aR(GFN);_.eC(_.V_d,"chips-shelf-view-model",{props:{data:_.cA,callback:_.bI,enableSingleChipSelection:_.cA,disableChipsScrollAnimation:_.cA}});var lTz=_.SG(function(M){M=_.cu(M,{disabled:!1});var d=M.active,N=M.disabled;M={};M=_.xj("ytSwitchShapeTrack",(M.ytSwitchShapeTrackActive=function(){return d()},M.ytSwitchShapeTrackDisabled=function(){return N()},M));
var R={};R=_.xj("ytSwitchShapeKnob",(R.ytSwitchShapeKnobActive=function(){return d()},R));
return _.g("switch-shape",{class:"ytSwitchShapeHost"},_.g("div",{class:M}),_.g("div",{class:R}))},"kc");var $3L=_.SG(function(M){var d=_.cu(M,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),N=d.data;M=d.className;var R=d.handleOnTapEventInParent,X=d.parentActive;d=_.V(_.Rq(function(){var p;return(p=X())!=null?p:N().switchedOnByDefault||!1}));
var A=d.next().value,l=d.next().value,k=function(){return N().isDisabled},T=_.e5();
d=_.dT(function(p){return p.key==="Enter"?(p.preventDefault(),T.value.click(),!1):!0});
var W=_.dT(function(p){if(N().handleOnTapEventInParent||R())return!0;if(k())return!1;Cwr(N(),A(),p);l(!A());return!1}),w={};
w=_.xj("ytSwitchButtonViewModelButton",(w.ytSwitchButtonViewModelTappable=function(){return!k()},w));
return _.g("switch-button-view-model",{class:_.xj("ytSwitchButtonViewModelHost",M)},_.g("button",{el:T,class:w,"on:click":W,"on:keydown":d,"aria-label":function(){return A()?N().a11yLabelSwitchedOn:N().a11yLabelSwitchedOff},
"aria-pressed":A,"aria-disabled":k},_.g(lTz,{active:A,disabled:k})))},"lc");_.aR(EuZ);var kIg=_.SG(function(M){var d=_.cu(M,{checked:!1});M=d.name;var N=d.onChange,R=d.onClick,X=d.checked,A=d.labelRenderable,l=d.hasLeadingLabel,k=d.labelClass,T=d.isCompact,W=d.selectElementClass;d=d.disableHorizontalPadding;var w="checkbox"+_.s$(_.PC),p=_.dT(function(O){R==null||R(O);return!1}),m=_.dT(function(O){N==null||N(O);
return!1}),I={};
return _.g("checkbox-shape",null,_.g("label",{class:_.xj("checkbox-shape-wiz",k,(I["checkbox-shape-wiz--compact"]=T,I["checkbox-shape-wiz--disable-horizontal-padding"]=d,I))},_.g("input",{class:"checkbox-shape-wiz__input",id:w,checked:X,name:M,type:"checkbox","prop:checked":X,"on:change":m,"on:click":p}),_.g(_.kV,{cond:function(){return!(l==null?0:l())},
then:function(){return _.g(B8e,{isLeading:!0,selectElementClass:W})}}),_.g(_.kV,{cond:function(){return!!A},
then:function(){return _.g("div",{class:"checkbox-shape-wiz__label"},A==null?void 0:A())}}),_.g(_.kV,{cond:l,
then:function(){return _.g(B8e,{isLeading:!1,selectElementClass:W})}})))},"mc"),Vcv=_.Q("web_enable_sink_checkbox_shape")?kIg:EuZ,T8L=_.Q("web_enable_sink_checkbox_shape")?kIg:_.Ez(EuZ,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});kIg.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var B8e=_.SG(function(M){var d=M.selectElementClass;M={};return _.g("div",{class:_.xj("checkbox-shape-wiz__checkbox",d,(M["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(d==null?0:d())},M)),
"aria-hidden":"true"},_.g(_.Fc,{icon:_.Q("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.g(_.Fc,{icon:_.Q("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"nc");_.aR(d8L);var gRo,lOZ;gRo=_.SG(function(M){var d=M.name;var N=M.onChange;var R=M.onClick;var X=M.checked;var A=M.labelRenderable;var l=M.useCheckIcon;var k=M.hasLeadingLabel;var T=M.labelClass;var W=M.isCompact;var w=M.selectElementClass;var p=M.ariaLabel;M=M.className;var m="radio"+_.s$(_.PC),I=_.dT(function(U){N==null||N(U);return!1}),O=_.dT(function(U){R==null||R(U);
return!1}),y=_.V(_.d0(!1,void 0,"HG0s4c")),c=y.next().value,e=y.next().value;
y=_.dT(function(){var U;((U=_.h().resolve(_.CF(_.TH)))==null?0:U.isKeyBoardInUse())&&e(!0)});
var t=_.dT(function(){e(!1)}),C={};
return _.g("radio-shape",{class:_.xj("radio-shape-wiz",M)},_.g("input",{class:"radio-shape-wiz__input",id:m,"prop:checked":X,name:d,type:"radio","on:change":I,"on:click":O,"aria-label":p,"on:focusin":y,"on:focusout":t}),_.g("label",{class:_.xj("radio-shape-wiz__label-container",T,(C["radio-shape-wiz--compact"]=W,C["radio-shape-wiz__label-container--keyboard-focused"]=c,C)),for:m},_.g(_.kV,{cond:function(){return!(k==null?0:k())},
then:function(){return _.g(D3m,{checked:X,useCheckIcon:l,isLeading:!0,selectElementClass:w})}}),_.g(_.kV,{cond:function(){return!!A},
then:function(){return _.g("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(p==null?0:p())?"true":"false"}},A==null?void 0:A())}}),_.g(_.kV,{cond:k,
then:function(){return _.g(D3m,{checked:X,useCheckIcon:l,isLeading:!1,selectElementClass:w})}})))},"oc");
lOZ=_.Q("web_enable_sink_radio_shape")?gRo:d8L;_.DN=_.Q("web_enable_sink_radio_shape")?gRo:_.Ez(d8L,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});gRo.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var D3m=_.SG(function(M){var d=M.useCheckIcon;var N=M.selectElementClass;M=function(){return(d==null?0:d())?"CHECK":_.Q("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var R={};return _.g("div",{class:_.xj("radio-shape-wiz__radio",N,(R["radio-shape-wiz__radio--check-icon"]=d,R["radio-shape-wiz__radio--radio-default-style"]=function(){return!(N==null?0:N())},R)),
"aria-hidden":"true"},_.g(_.Fc,{icon:M}),_.g(_.Fc,{icon:M,active:function(){return!(d==null?0:d())}}))},"pc");var Xdi=_.W5({buttonViewModel:_.o0,switchButtonViewModel:$3L,avatarViewModel:_.If,accountLinkButtonViewModel:vrA,subscribeButtonViewModel:_.pK3,collectionThumbnailViewModel:uHd,toggleButtonViewModel:_.I0});_.aR($82);var wbt,pbd;wbt=_.SG(function(M){function d(){var w3;((w3=_.h().resolve(_.CF(_.TH)))==null?0:w3.isKeyBoardInUse())&&LZ(!0)}
function N(){LZ(!1)}
var R=M.data;var X=M.isMenuItem;var A=M.isCompact;var l=M.onTap;var k=M.trailingAccessory;var T=M.hideSelectionTextChevron;var W=M.disabled;var w=M.inPopup;var p=M.disableHorizontalPadding;M=M.isOverlay;var m=_.Q("apply_button_role_to_list_item"),I=_.hI(function(w3){return U6N(w3,R())}),O=function(){return _.Q("enable_web_shorts_captions_language_command")?Object.assign({},R(),I()):R()},y=function(){return!(O().isSelected===void 0||!O().selectionStyle||O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
c=function(){return(_.zH(O().rendererContext)||l)&&!y()},e=function(){return _.zH(O().rendererContext)||y()},t={};
M=_.xj("yt-list-item-view-model-wiz",(t["yt-list-item-view-model-wiz--is-overlay"]=M,t["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!m&&Hj()},t));
t={};var C=_.xj("yt-list-item-view-model-wiz__label",(t["yt-list-item-view-model-wiz__container"]=function(){return!y()},t["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!O().isDisabled||!(W==null||!W())},t["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!O().subtitle},t["yt-list-item-view-model-wiz__container--compact"]=A,t["yt-list-item-view-model-wiz__container--tappable"]=c,t["yt-list-item-view-model-wiz__container--in-popup"]=w,t["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return m&&Hj()},t));
t={};var U=_.xj("yt-list-item-view-model-wiz__container",(t["yt-list-item-view-model-wiz__container--tappable"]=e,t["yt-list-item-view-model-wiz__container--compact"]=A,t["yt-list-item-view-model-wiz__container--in-popup"]=w,t["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=p,t)),Fi=function(){return O().leadingImage||O().leadingAccessory},Y=_.xj("yt-list-item-view-model-wiz__image-container",function(){return Fi()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
w=_.e5();var $i=_.e5(),vj=m?$i:w,Pj=_.SG(function(){return _.g(_.kV,{cond:function(){return m},
then:function(){return _.g("div",{class:C,el:$i,role:function(){return e()||c()?"button":void 0},
tabindex:function(){return l||c()?0:void 0},
"on:keydown":tL,"on:click":sS},_.g(WrL,{data:O,hideSelectionTextChevron:T,trailingAccessory:k}))},
else:function(){return _.g("div",{class:C,el:$i},_.g(WrL,{data:O,hideSelectionTextChevron:T,trailingAccessory:k}))}})},"qc");
Pj.idomCompat=!0;_.ek(w,function(){return O().rendererContext});
var sS=_.dT(function(w3){return void(l==null?void 0:l(w3))}),tL=_.Jo(),b2=_.V(_.d0(!1,void 0,"bOoKke"));
t=b2.next().value;b2=b2.next().value;var Hj=t,LZ=b2;_.IJ(function(){c()&&(vj.value.addEventListener("focusin",d),vj.value.addEventListener("focusout",N));_.mF(function(){vj.value&&c()&&(vj.value.removeEventListener("focusin",d),vj.value.removeEventListener("focusout",N))})});
t=_.dT(function(){return!1});
return _.g("yt-list-item-view-model",{el:w,class:M,role:function(){return(X==null?0:X())?"menuitem":"listitem"},
tabindex:function(){var w3=c();w3=m?void 0:l||w3?0:void 0;return w3},
"on:keydown":m?t:tL,"on:click":m?t:sS},_.g(_.kV,{cond:y,then:function(){return _.g(_.pF,null,_.g(_.gK,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.g(T8L,{labelRenderable:function(){return _.g(Pj,null)},
isCompact:A,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!Fi()},
labelClass:U,selectElementClass:Y,disableHorizontalPadding:p})}),_.g(_.gK,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.g(_.DN,{labelRenderable:function(){return _.g(Pj,null)},
isCompact:A,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!Fi()},
labelClass:U,selectElementClass:Y})}),_.g(_.gK,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.g(_.DN,{labelRenderable:function(){return _.g(Pj,null)},
isCompact:A,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!Fi()},
labelClass:U,selectElementClass:Y,useCheckIcon:!0})}),_.g(_.Wy,null,function(){return _.g(Pj,null)}))},
else:function(){return _.g(Pj,null)}}))},"rc");
pbd=_.Q("web_enable_sink_list_view_models")?wbt:$82;_.gX=_.Q("web_enable_sink_list_view_models")?wbt:_.Ez($82,{callbacks:{onTap:!0,trailingAccessory:!0}});wbt.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var WrL=_.SG(function(M){var d=M.data;var N=M.hideSelectionTextChevron;var R=M.trailingAccessory;return _.g(_.GT,null,_.g(m3V,{data:d,isLeading:!0,hideSelectionTextChevron:function(){return!(N==null||!N())}}),_.g(hDm,{data:d}),_.g(_.kV,{cond:function(){return!!R},
then:function(){return _.g("div",{class:"yt-list-item-view-model-wiz__trailing"},R==null?void 0:R())},
else:function(){return _.g(m3V,{data:d,isLeading:!1,hideSelectionTextChevron:function(){return!(N==null||!N())}})}}))},"sc"),m3V=_.SG(function(M){var d=M.data;
var N=M.isLeading;var R=M.hideSelectionTextChevron;var X=_.xj("yt-list-item-view-model-wiz__button-container");M={};var A=_.xj("yt-list-item-view-model-wiz__image-container",(M["yt-list-item-view-model-wiz__leading"]=N,M["yt-list-item-view-model-wiz__trailing"]=function(){return!N()},M)),l=function(){return N()?d().leadingImage:d().trailingImage},k=_.xj("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
M={};var T=_.xj("yt-list-item-view-model-wiz__accessory",(M["yt-list-item-view-model-wiz__leading"]=N,M["yt-list-item-view-model-wiz__trailing"]=function(){return!N()},M)),W=function(){return RRZ(d().listItemIconAfterSelectionText)};
return _.g(_.kV,{cond:function(){return NnL(d(),N())},
then:function(){return _.g(_.GT,null,_.g(_.kV,{cond:l,then:function(w){return _.g("div",{class:A,"aria-hidden":"true"},_.g(_.Jt,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0,className:k}))}}),_.g(_.kV,{cond:function(){return N()&&d().leadingAccessory},
then:function(){return _.g("div",{class:A},_.g(_.ho,{data:function(){return d().leadingAccessory}},{avatarViewModel:function(w){return _.g(_.TS,{data:w.data,
avatarButtonCustomClassName:k})},
collectionThumbnailViewModel:uHd}))}}),_.g(_.kV,{cond:function(){return!N()&&d().trailingButton},
then:function(){return _.g("div",{class:X},_.g(_.ho,{data:function(){return d().trailingButton}},{buttonViewModel:function(w){return _.g(_.o0,{data:w.data,
className:T})}}))}}),_.g(_.kV,{cond:function(){var w;
return!N()&&((w=d().trailingButtons)==null?void 0:w.buttons)},
then:function(){return _.g("div",{class:X},_.g(_.ho,{data:function(){var w;return(w=d().trailingButtons)==null?void 0:w.buttons}},{buttonViewModel:function(w){return _.g(_.o0,{data:w.data,
className:T})},
accountLinkButtonViewModel:function(w){return _.g(vrA,{data:w.data,className:function(){return T()||""}})},
switchButtonViewModel:function(w){return _.g($3L,{data:w.data,className:T})},
subscribeButtonViewModel:function(w){return _.g(mDL,{data:w.data,isOverlay:!1,animateWidth:!1})},
toggleButtonViewModel:function(w){return _.g(_.I0,{data:w.data,className:T})}}))}}),_.g(_.kV,{cond:function(){return!N()&&!!d().selectionText},
then:function(){return _.g(_.GT,null,_.g(_.lG,{text:function(){return d().selectionText},
className:_.xj("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.g(_.kV,{cond:function(){return!R()},
then:function(){return _.g(_.Fc,{icon:W,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"tc"),hDm=_.SG(function(M){var d=M.data;
return _.g(_.kV,{cond:function(){return d().title||d().subtitle},
then:function(){return _.g("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.g("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.g(_.kV,{cond:function(){return d().title},
then:function(N){return _.g(_.lG,{text:N,className:"yt-list-item-view-model-wiz__title"})}})),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(N){return _.g(_.lG,{text:N,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"uc");_.WZ=_.SG(function(M){var d=M.data;var N=M.onTap;var R=M.onSwitch;var X=M.overrideDisabled;M=_.V(_.Rq(function(){var w;return((w=YGi(W()))==null?void 0:w.switchedOnByDefault)||!1}));
var A=M.next().value,l=M.next().value;M=_.V(_.d0(!1,void 0,"Ri8Twb"));var k=M.next().value,T=M.next().value,W=function(){var w;if(!(w=d().switchButton)){var p=d();w=X==null?void 0:X();p={switchOnCommand:p.switchOnCommand,switchOffCommand:p.switchOffCommand,switchedOnByDefault:p.switchedOnByDefault,isDisabled:p.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:p.a11yLabelSwitchedOn,a11yLabelSwitchedOff:p.a11yLabelSwitchedOff};w!==void 0&&(p.isDisabled=w);w={switchButtonViewModel:p}}return w};
return _.g("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.g(_.gX,{data:function(){return{title:d().title,subtitle:d().attributedSubtitle,leadingImage:d().leadingImage,leadingAccessory:d().leadingAccessory,isDisabled:d().isDisabled}},
onTap:function(w){var p=YGi(W());!p||p.isDisabled||d().ignoreTapUntilCommandCompletes&&k()||(N==null||N(w),Cwr(p,A(),w,d().ignoreTapUntilCommandCompletes,T),l(!A()),R==null||R(A()))},
trailingAccessory:function(){return _.g(_.ho,{data:W},{switchButtonViewModel:function(w){return _.g($3L,{data:w.data,parentActive:A,handleOnTapEventInParent:!!N})}})}}))},"vc");var QKL=_.le("DOWNLOAD",{},"Download"),qrV=_.le("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),ITg=_.le("RETRY",{},"Retry"),vRV=_.le("PAUSE_DOWNLOADING",{},"Pause downloading"),Ow3=_.le("RESUME_DOWNLOAD",{},"Resume download"),Bni={text:QKL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},of={text:qrV,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},D8i={text:ITg,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
kl6={text:vRV,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Tnp={text:Ow3,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var jKm=_.SG(function(M){var d=function(){var k=M.data();k=_.Sk(k.rendererContext);var T;return(T=_.q(k,_.NH))==null?void 0:T.videoId},N=_.hI(function(k){var T=d(),W=wdv(M.data());
return T?_.jp(k,T):W?_.sW(k,W):"TRANSFER_STATE_UNKNOWN"}),R=_.FT(_.C86,d),X=_.hI(function(k){return _.L6Z(k,d(),wdv(M.data()))}),A=function(){return W_N(N(),R(),_.Sk(M.data().rendererContext),!!wdv(M.data()))},l=function(){return X()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.g("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:l},_.g(_.kV,{cond:function(){return!l()},
then:function(){return _.g(_.kV,{cond:A,then:function(k){return _.g(_.TN,{each:k},function(T){return _.g(_.gX,{data:T,isCompact:M.isCompact,isMenuItem:M.isMenuItem,inPopup:M.inPopup})})}})}}))},"wc");
jKm.idomCompat=!0;var m8Z=_.W5({listItemViewModel:pbd,downloadListItemViewModel:jKm,switchListItemViewModel:_.WZ});_.aR(hRq);var sKC;sKC=_.SG(function(M){var d=M.data;var N=M.isCompact;var R=M.hideSelectionTextChevron;var X=M.inPopup;var A=M.isOverlay;var l=function(){return pdS(d())&&(X==null?void 0:X())};
M={};return _.g("yt-list-view-model",{class:_.xj("yt-list-view-model-wiz",(M["yt-list-view-model-wiz--kaios-spat-nav"]=aUZ(),M)),role:function(){return l()?"menu":"list"}},_.g(_.ho,{data:function(){return d().listItems}},{listItemViewModel:function(k){return _.g(_.gX,{data:k.data,
isMenuItem:l,isCompact:N,hideSelectionTextChevron:R,inPopup:X,isOverlay:A})},
downloadListItemViewModel:function(k){return _.g(jKm,{data:k.data,isMenuItem:l,isCompact:N,inPopup:X})},
switchListItemViewModel:_.WZ}))},"xc");
_.P3m=_.Q("web_enable_sink_list_view_models")?sKC:_.Ez(hRq);sKC.idomCompat=!0;var oRg=_.SG(function(M){var d=M.data;var N=M.isOverlay;M={};return _.g("yt-course-perks-view-model",{class:_.xj("ytwCoursePerksViewModelHost",(M.ytwCoursePerksViewModelHostOverlay=N,M))},_.g("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",null,_.g(_.kV,{cond:function(){return d().perks},
then:function(R){return _.g(_.P3m,{data:function(){return{listItems:R()}},
isCompact:!0,isOverlay:N})}})))},"yc");_.eC(oRg,"yt-course-perks-view-model",{props:{data:_.bI,isOverlay:_.bI}});_.eC(_.SG(function(M){var d=M.data;return _.g("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.g("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.g(_.lG,{text:function(){return d().progressSummary}})),_.g("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.g("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Xc({width:function(){return d().progressPercentage*100+"%"}})})))},"zc"),"yt-course-progress-view-model",{props:{data:_.cA}});var rB3=_.SG(function(M){var d=_.cu(M,{}).data;return _.g("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.g(_.kV,{cond:function(){return d().progressSummary},
then:function(N){return _.g("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.g(_.lG,{text:N}))}}),_.g("div",{class:"ytwProgressViewModelHostProgressContainer"},_.g("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.g(_.lG,{text:function(){var N;
return(N=d())==null?void 0:N.leadingLabel}})),_.g("div",{class:"ytwProgressViewModelHostProgressBar"},_.g("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var N;return"width: "+(((N=d())==null?void 0:N.progressPercentage)||0)*100+"%"}}))))},"Ac");var wX=_.SG(function(M){var d=M.starNumber;var N=M.data;var R=function(){var X;return((X=N())==null?void 0:X.rating)||0};
return _.g(_.kV,{cond:function(){return d()},
then:function(X){return _.g(_.pF,null,_.g(_.gK,{when:function(){return R()>=X()-.25}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.Fc,{icon:"STAR_FILLED"}))}),_.g(_.gK,{when:function(){return R()>=X()-.75}},function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.Fc,{icon:"STAR_HALF"}))}),_.g(_.Wy,null,function(){return _.g("div",{class:"ytStarRatingViewModelHostStar"},_.g(_.Fc,{icon:"STAR_BORDER"}))}))}})},"Bc"),Kro=_.SG(function(M){M=M.data;
return _.g("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.g(wX,{starNumber:1,data:M}),_.g(wX,{starNumber:2,data:M}),_.g(wX,{starNumber:3,data:M}),_.g(wX,{starNumber:4,data:M}),_.g(wX,{starNumber:5,data:M}))},"Cc");_.eC(_.SG(function(M){var d=_.cu(M,{}).data;return _.g("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.g("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.g(_.lG,{text:function(){var N;return(N=d())==null?void 0:N.title}})),_.g("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.g(_.kV,{cond:function(){return d().starProgressViewModels},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.g(_.ho,{data:N},{progressViewModel:rB3}))}}),_.g("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.g("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.g(_.lG,{text:function(){var N;
return(N=d())==null?void 0:N.averageRatingLabel}})),_.g(_.kV,{cond:function(){return d().zeroStateText},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.g(_.lG,{text:N}))}}),_.g(_.kV,{cond:function(){return d().starRatingViewModel},
then:function(N){return _.g("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.g(_.ho,{data:N},{starRatingViewModel:Kro}))}}),_.g("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.g(_.lG,{text:function(){var N;
return(N=d())==null?void 0:N.totalRatingsCountLabel}})))))},"Dc"),"yt-course-ratings-view-model",{props:{data:_.bI}});var yBz;yBz={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.JBg=_.SG(function(M){var d=_.e5(),N=_.EL();_.QD(function(){requestAnimationFrame(function(){var l;(l=N.lottieEl)==null||l.addEventListener("DOMLoaded",function(){var k;(k=M.onLottieLoaded)==null||k.call(M)})});
var R,X={browseEndpoint:{params:(R=M.data)==null?void 0:R.call(M).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}},A;((A=M.shouldSkipRequest)==null?0:A.call(M))||_.YP(d.value,"yt-navigate",{endpoint:X})});
return _.g("yt-learning-journey-loader-view-model",{class:_.xj("learningJourneyLoaderViewModelHost",M.className),"data-target-id":function(){var R;return((R=M.data)==null?void 0:R.call(M).targetId)||""},
el:d},_.g(_.Yj,{className:_.xj("learningJourneyLoaderViewModelLoader",M.className),animationName:function(){return yBz.animationConfig.name},
data:yBz,animationRef:N}))},"Ec");_.eC(_.JBg,"yt-learning-journey-loader-view-model",{props:{data:_.cA,className:_.bI,onLottieLoaded:_.bI,shouldSkipRequest:_.bI}});var cBe=_.SG(function(M){var d=function(){return M.data()},N=_.V(_.d0(-1,void 0,"X3Tlgd")),R=N.next().value,X=N.next().value,A=function(W){return R()===W},l=function(W){return d().correctAnswerIndex===W},k=function(){return R()!==-1},T=_.dT(function(){X(-1);
return!1});
return _.g("learning-journey-quiz-view-model",{class:_.xj("learningJourneyQuizViewModelHost",M.className),style:_.Xc({background:function(){return ya(rW(d())).backgroundColor}})},_.g(_.kV,{cond:function(){return!!d().video},
then:function(){return _.g("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Xc({background:function(){return ya(rW(d())).videoBackgroundColor}})},_.g(_.ho,{data:function(){return d().video}},{lockupViewModel:function(W){return _.g(_.GS,{data:W.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.g("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.g("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Xc({color:function(){return ya(rW(d())).primaryTextColor}})},_.g(_.lG,{text:function(){var W=d(),w=k(),p=R()===d().correctAnswerIndex;
return w?p?W.successTitle:W.failureTitle:W.questionHeaderText}})),_.g("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.g(_.kV,{cond:k,
then:function(){return _.g("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":T,role:"button","aria-label":"Reset","tab-index":"0"},_.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Xc({fill:function(){return ya(rW(d())).primaryTextColor}})},_.g("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"})))}}),
_.g(_.ho,{data:function(){return d().overflowMenu}},{buttonViewModel:function(W){return _.g(_.o0,{data:W.data})}}))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Xc({color:function(){return ya(rW(d())).secondaryTextColor}})},_.g(_.lG,{text:function(){var W=d();
return k()?W.explanationText:W.questionSubheaderText}}))),_.g("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.g(_.TN,{each:function(){return d().optionsData||[]}},function(W,w){var p={};
return _.g("div",{class:_.xj("learningJourneyQuizViewModelHostQuizOptions",(p.learningJourneyQuizViewModelHostQuizHover=function(){return!k()},p.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return R()===d().correctAnswerIndex&&A(w())},p.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return R()!==d().correctAnswerIndex&&A(w())},p.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return k()&&!A(w())},p)),
"on:click":_.dT(function(){if(k())return!1;X(w());return!1}),
style:_.Xc({background:function(){return k()&&A(w())?"":ya(rW(d())).optionColor}}),
role:"button","aria-disabled":k,"tab-index":"0"},_.g(_.kV,{cond:k,then:function(){return _.g("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var m=w();return l(m)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Xc({fill:function(){return ya(rW(d())).primaryTextColor}})},_.g("path",{d:function(){var m=w();
return l(m)?"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"}}))}}),_.g(_.lG,{text:W.optionText}))})))))},"Fc");
cBe.idomCompat=!0;_.eC(cBe,"learning-journey-quiz-view-model",{props:{data:_.cA,className:_.cA}});var Srt=_.SG(function(M){var d=_.e5();_.ek(d,function(){return M.data().rendererContext});
var N=_.cu(M,{palette:void 0,isLastItem:!1}),R=N.palette,X=N.isLastItem,A=function(){return M.data().isHighlighted},l=function(){var W;
return QvL((W=R())==null?void 0:W.iconDisabledColor)},k=function(){var W;
return QvL((W=R())==null?void 0:W.primaryTitleColor)},T=function(){var W;
return QvL((W=R())==null?void 0:W.secondaryTitleColor)};
N={};return _.g("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:d},_.g(_.ho,{data:function(){return M.data().thumbnail}},{thumbnailViewModel:_.zS}),_.g("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.g("div",{class:_.xj("ytMacroMarkerListItemViewModelTimeDescription",(N.ytMacroMarkerListItemViewModelHighlighted=A,N)),
style:_.Xc({"background-color":function(){return A()?k():l()},
color:function(){return A()?"":T()}})},_.g(_.lG,{text:function(){return M.data().timestamp}})),_.g("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Xc({"background-color":function(){return X()?"transparent":l()}})}),_.g("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(A()?k():T())}},_.g(_.lG,{text:function(){return M.data().title}}))))},"Gc");_.pm=_.SG(function(M){function d(Vz){e("transform:translateX("+(_.rK("HTML_DIR")==="rtl"?"":"-")+Vz+"px)")}
function N(Vz){return Math.min(Math.max(Vz,0),c()-Y())}
function R(){var Vz=U()+sS();return X()?(Math.round(Y()/Vz)||1)*Vz:0}
var X=function(){return M.data().items||[]},A=function(){return M.data().previousButton},l=function(){return M.data().nextButton},k=function(){var Vz,oI;
return(oI=(Vz=M.disableArrows)==null?void 0:Vz.call(M))!=null?oI:!1},T=function(){var Vz;
return!((Vz=M.forceNarrowLayout)==null||!Vz.call(M))},W=_.e5(),w=_.e5(),p=_.V(_.d0(0,void 0,"yngx7d")),m=p.next().value,I=p.next().value;
p=_.V(_.d0(0,void 0,"rUOyGb"));var O=p.next().value,y=p.next().value,c=O;O=_.V(_.d0("",void 0,"jv2kWc"));p=O.next().value;var e=O.next().value;O=_.V(_.d0(0,void 0,"Xb0f0d"));var t=O.next().value,C=O.next().value,U=t;O=_.V(_.d0(0,void 0,"pt5wQ"));t=O.next().value;var Fi=O.next().value,Y=t;O=_.V(_.d0(!1,void 0,"FfPefe"));var $i=O.next().value,vj=O.next().value;O=_.V(_.d0(0,void 0,"kB5mhb"));t=O.next().value;var Pj=O.next().value,sS=t;O=_.V(_.d0(0,void 0,"dnDmUd"));var tL=O.next().value,b2=O.next().value,
Hj=function(){var Vz,oI=(Vz=M.data())==null?void 0:Vz.responsiveContainerConfiguration,$d,CJ;return oI?gwr(oI==null?void 0:oI.responsiveSize):(CJ=($d=M.sizing)==null?void 0:$d.call(M))!=null?CJ:"STANDARD"};
O=_.Al(function(){return!k()&&m()>0},void 0,"ZIGxke");
t=_.Al(function(){return!k()&&m()<c()-Y()},void 0,"OJzhRd");
var LZ=function(){I(N(m()-R()));d(m())},w3=function(){I(N(m()+R()));
d(m())},XY=function(){W.value!==null&&Ne()},jJ;
_.IJ(function(){Ne();window.ResizeObserver?(jJ=new ResizeObserver(_.m2(XY,0)),jJ.observe(W.value)):window.addEventListener("resize",XY)});
_.mF(function(){if(window.ResizeObserver){var Vz;(Vz=jJ)==null||Vz.disconnect()}else window.removeEventListener("resize",XY)});
var Ne=function(){var Vz=W.value.clientWidth,oI=M.includeMargin!==void 0?M.includeMargin():!1,$d;var CJ=M.hasPeek!==void 0?M.hasPeek():!(($d=M.data())==null||!$d.hasPeek);Vz=_.GH({containerWidth:Vz,hasPeek:CJ,sizing:Hj(),marginSettings:oI?T()?4:1:0});Pj(Vz.gutter);b2(Vz.margin);C(Vz.itemWidth);vj(Vz.maxContainerWidth<528||T());Fi(Vz.maxContainerWidth);X()&&y((Vz.itemWidth+Vz.gutter)*X().length-Vz.gutter)};
return _.g("horizontal-shelf-view-model",{class:_.xj("ytwHorizontalShelfViewModelHost",M.className),el:W},_.g(_.kV,{cond:function(){return M.data().header},
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Xc({width:function(){return Y()+"px"},
padding:function(){return"0 "+tL()+"px"}})},_.g(_.ho,{data:function(){return M.data().header}},{sectionHeaderViewModel:function(Vz){return _.g(_.U6,{data:Vz.data,
disableHorizontalPadding:!0,forceSmallLayout:$i,useResponsiveLayout:!0})}}))}}),_.g("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.g("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Xc({width:function(){return Y()+"px"},
padding:function(){return"0 "+tL()+"px"},
overflow:function(){return k()?"auto":"hidden"}})},_.g("div",{class:"ytwHorizontalShelfViewModelItems",
el:w,style:p},_.g(_.ho,{data:X},{macroMarkerListItemViewModel:function(Vz,oI){return _.g("div",{style:_.Xc({width:function(){return U()+"px"},
"margin-right":function(){return(oI()===X().length-1?0:sS())+"px"}})},_.g(Srt,{data:Vz.data,
palette:_.Jy(M.palette),isLastItem:function(){return oI()===X().length-1}}))},
lockupViewModel:function(Vz,oI){var $d=Vz.data;return _.g("div",{style:_.Xc({width:function(){return U()+"px"},
"margin-right":function(){return(oI()===X().length-1?0:sS())+"px"}})},_.g(_.GS,{data:$d,
containerType:4,sizing:Hj,protectBackground:M.protectBackground,thumbnailFixedWidth:function(){return qkZ($d())+"px"},
thumbnailTargetWidth:function(){return qkZ($d())}}))}}))),_.g(_.kV,{cond:O,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.g(_.ho,{data:A},{buttonViewModel:function(Vz){return _.g(_.o0,{data:Vz.data,onClick:LZ})}}))}}),_.g(_.kV,{cond:t,
then:function(){return _.g("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.g(_.ho,{data:l},{buttonViewModel:function(Vz){return _.g(_.o0,{data:Vz.data,onClick:w3})}}))}})))},"Hc");
_.pm.idomCompat=!0;var zDV=_.SG(function(M){var d=function(){return M.data().targetId||""},N=function(){var p;
return((p=M.data())==null?void 0:p.expansionEntityKey)||""},R=_.FT(_.vI6,N),X=function(){var p;
return((p=R())==null?void 0:p.value)===d()},A=function(p){_.yE(_.la("stringEntity",N(),{key:N(),
value:p?d():""}))};
_.QD(function(){M.data().isExpanded&&A(!0)});
var l=function(){if(X()){var p=!0;M.onCollapse!==void 0&&(p=M.onCollapse());p&&A(!1)}else A(!0)},k=_.dT(l),T=function(){var p;
return(((p=M.accordionStyle)==null?void 0:p.call(M))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W={},w={};
return _.g("yt-accordion-item-view-model",{class:_.xj("ytAccordionItemViewModelHost",M.className,(W.ytAccordionItemViewModelExpanded=function(){return X()},W.ytAccordionItemViewModelHidden=function(){var p;
return(p=M.hideIfNotExpanded)==null?void 0:p.call(M)},W.ytAccordionItemViewModelMini=T,W)),
"data-target-id":d},_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:"ytAccordionItemViewModelLeftSection","on:click":k},_.g(_.lG,{text:function(){return M.data().title},
className:"ytAccordionItemViewModelLabel"})),_.g("div",{class:"ytAccordionItemViewModelRightSection"},_.g(_.ho,{data:function(){return X()?M.data().expandButton:M.data().collapseButton}},{buttonViewModel:function(p){return _.g(_.o0,{data:p.data,
className:"ytAccordionItemViewModelToggleButton",onClick:l})}}))),_.g("div",{class:"ytAccordionItemViewModelContainer"},_.g("div",{class:_.xj("ytAccordionItemViewModelContent",(w.ytAccordionItemViewModelExpandedSubtitle=function(){return X()},w))},_.g(_.kV,{cond:function(){return!T()},
then:function(){return _.g(_.lG,{text:function(){return M.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.g(_.ho,{data:function(){return M.data().content}},{horizontalShelfViewModel:function(p){return _.g(_.pm,{data:p.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ic");_.bwI=_.SG(function(M){var d=_.V((0,_.WoL)(M.data)).next().value,N=function(){return M.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},R=function(){return N()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},X=_.V(_.d0(!0,void 0,"ewf0jb")),A=X.next().value,l=X.next().value,k=function(){return R()&&A()},T=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){l(!A())}}};
X={};return _.g("yt-accordion-view-model",{class:_.xj("ytAccordionViewModelHost",(X.ytAccordionViewModelMinimized=function(){return k()},X)),
"data-target-id":function(){return M.data().targetId||""}},_.g(_.kV,{cond:function(){return R()||!!d().title},
then:function(){return _.g("div",{class:"ytAccordionViewModelHeader"},_.g(_.lG,{text:function(){return d().title},
className:"ytAccordionViewModelTitle"}),_.g(_.kV,{cond:R,then:function(){return _.g(CX,{data:T,iconName:function(){return k()?"chevron_down":"chevron_up"}})}}))}}),_.g("div",{class:"ytAccordionViewModelContent"},_.g(_.ho,{data:function(){return d().contents}},{accordionItemViewModel:function(W){return _.g(zDV,{data:W.data,
className:"ytAccordionViewModelRow",accordionStyle:N,hideIfNotExpanded:k,onCollapse:function(){return R()?(l(!0),!1):!0}})}})),_.g("div",null,_.g(_.lG,{text:function(){return d().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})))},"Jc");_.eC(_.bwI,"yt-accordion-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d,N=(d=_.h().resolve(_.CF(_.Pz)))==null?void 0:d(),R=_.V(_.d0(!1,void 0,"XM2Sxc"));d=R.next().value;var X=R.next().value;R=_.V(_.d0(!0,void 0,"Jgzg2d"));var A=R.next().value,l=R.next().value,k=_.e5(),T=function(I){X(!0);I={learningJourneyFormData:{query:I}};_.vz(M.data().searchEndpoint||{},{form:{formData:I}});return!1};
R=_.dT(function(){l(k.value.value.length===0)});
var W=_.dT(function(I){if(I.key==="Enter"&&!I.shiftKey&&!A()){var O=I.target;I.preventDefault();T(O.value)}}),w={},p={},m={};
return _.g("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.g("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.g(_.Jt,{data:function(){return M.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.g("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.g("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.g("div",{class:_.xj("ytLearningJourneyZeroStateSearchBar",(w.ytLearningJourneyZeroStateSearchBarDark=N,w))},_.g("textarea",{class:_.xj("ytLearningJourneyZeroStateTextInput",(p.ytLearningJourneyZeroStateTextInputDark=N,p)),el:k,"on:keyup":R,"on:keydown":W,placeholder:"What do you want to learn?",
rows:1})),_.g("div",{class:_.xj("ytLearningJourneyZeroStateSearchButtonContainer",(m.ytLearningJourneyZeroStateSearchButtonContainerDark=N,m))},_.g(_.o0,{data:function(){return _.q(M.data().searchButton,_.QM)},
className:"search-button",onClick:function(){return T(k.value.value)},
buttonOverrides:function(){return{disabled:A(),style:N?"mono-inverse":"mono",size:"XL"}}}))),_.g(_.kV,{cond:function(){return!!M.data().errorBanner},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.g(_.ho,{data:function(){return M.data().errorBanner}},{alertBannerViewModel:ABo}))}})),_.g(_.kV,{cond:d,
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.g(_.ho,{data:function(){return M.data().loader}},{learningJourneyLoaderViewModel:function(I){return _.g(_.JBg,{data:I.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.g("div",null,_.g(_.kV,{cond:function(){return!!M.data().learningJourneyShelf},
then:function(){return _.g("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().learningJourneySectionTitle}),_.g(_.ho,{data:function(){return M.data().learningJourneyShelf}},{horizontalShelfViewModel:_.pm}))}}),_.g("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.g("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().suggestedJourneySectionTitle}),
_.g(_.ho,{data:function(){return M.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(I){return _.g(mf,{data:I.data,
layout:1})}})))}}))},"Kc"),"yt-learning-journey-zero-state",{props:{data:_.cA}});var eDo=_.SG(function(M){var d=M.data;return _.g("ytvl-live-leaderboard-item-action-content-view-model",{class:_.xj("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.g(_.lG,{text:function(){var N;return(N=d())==null?void 0:N.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.g(_.ho,{data:function(){return d().actionButton}},{buttonViewModel:function(N){return _.g(_.o0,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:N.data})}}))},"Lc");var Hwo=_.SG(function(M){var d=M.data;return _.g("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.xj("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.g(_.lG,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var N;return(N=d())==null?void 0:N.displayName},
ellipsisTruncate:!0}),_.g(_.ho,{data:function(){return d().badge}},{buttonViewModel:function(N){return _.g(_.o0,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:N.data})}}))},"Mc");_.eC(_.SG(function(M){var d=M.data;return _.g("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.g("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.g(_.lG,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var N;return(N=d())==null?void 0:N.rank}})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.g(_.ho,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.g(_.ho,{data:function(){return d().content}},{liveLeaderboardItemChannelContentViewModel:Hwo,
liveLeaderboardItemActionContentViewModel:eDo})),_.g(_.lG,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var N;return(N=d())==null?void 0:N.points}}))},"Nc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;return _.g("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.g(_.lG,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var N,R;return(N=d())==null?void 0:(R=N.ranking)==null?void 0:R.rank}}),_.g("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.g(_.ho,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g(_.lG,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var N,R;return(N=d())==null?void 0:(R=N.channelContent)==null?void 0:R.channelName}}),_.g(_.lG,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var N;return(N=d())==null?void 0:N.points}}))},"Oc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.cA}});var nRg=_.SG(function(M){M=_.cu(M,{wrapper:!1}).wrapper;return _.g(_.kV,{cond:M,then:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.g("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.g("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Pc");
nRg.idomCompat=!0;var iwt=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],fTg=_.SG(function(M){var d=M.data;var N=_.e5(),R=_.Al(function(){return d().command},void 0,"CGDtVe");
_.Wg(function(){R()&&_.Qu(R(),{form:{element:N.value}})});
return _.g("div",{el:N},_.g(_.kV,{cond:function(){return d().qrCodeImage},
then:function(X){return _.g(_.Jt,{data:X,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.g(_.kV,{cond:function(){return d().spinner},
then:function(){return _.g(nRg,null)}})}}),_.g(_.kV,{cond:function(){return d().label},
then:function(X){return _.g(_.lG,{text:X,className:"YtQrCodeRendererHostLabel"})}}),_.g(_.kV,{cond:function(){return d().labels},
then:function(X){return _.g("div",{class:"YtQrCodeRendererHostLabels"},_.g(_.TN,{each:X},function(A){return _.g(_.lG,{text:A})}))}}))},"Rc");_.eC(_.SG(function(M){var d=M.data;var N=_.Al(function(){return d().qrEntityKey},void 0,"joYCxd"),R=_.Al(function(){return d().deleteEntityOnDismiss},void 0,"x3yAde"),X=_.Al(function(){return d().command},void 0,"dJe1Re"),A=_.FT(xkZ,N);
M=_.Al(function(){return d().style&&iwt.includes(d().style)},void 0,"rGILzf");
var l=_.e5();_.Gi(l,{visibilityCallback:function(k){k&&X()&&_.Qu(X())},
showOption:{calledOnce:!0,state:"visible"}});_.IJ(function(){_.mF(function(){R()&&N()&&_.r4().dispatch(_.la("qrCodeEntity",N()))})});
return _.g("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:l},_.g(_.kV,{cond:M,then:function(){return _.g(_.kV,{cond:A,then:function(k){return _.g(fTg,{data:k})}})}}))},"Qc"),"yt-qr-code-renderer",{props:{data:_.cA}});_.Lrm=_.SG(function(M){var d=M.data;var N=M.topbarOffset;var R,X=((R=_.h().resolve(_.CF(_.Pz)))==null?void 0:R())||!1;return _.g("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var A=d();var l,k,T=X?(l=A.config)==null?void 0:l.darkThemeBackgroundColor:(k=A.config)==null?void 0:k.lightThemeBackgroundColor;A=T?_.p3(T):void 0;A="background-color: "+A+";";N!==void 0&&(A+="top: -"+N()+"px;");return A},
"aria-hidden":!0},_.g(_.kV,{cond:function(){var A,l,k;return!!((A=d().backgroundImageConfig)==null?0:(l=A.image)==null?0:(k=l.sources)==null?0:k.length)},
then:function(){return _.g(_.Jt,{data:function(){var A;return(A=d().backgroundImageConfig)==null?void 0:A.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.g("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+IOS(X,d().gradientColorConfig)+";"}}))},"Sc");
_.Lrm.idomCompat=!0;var t_L=_.Ez(vNZ);_.aR(vNZ);var GII=_.SG(function(M){var d=M.data;var N=M.isOverlay;return _.g("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.g("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.g(_.ho,{data:function(){return d().header}},{sectionHeaderViewModel:function(R){return _.g(_.U6,{data:R.data,
isOverlay:N})}})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.g(_.ho,{data:function(){return d().channelInfoButtons}},{flexibleActionsViewModel:mf})),_.g("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.g(_.ho,{data:function(){return d().description}},{descriptionPreviewViewModel:function(R){return _.g(t_L,{data:R.data,
isOverlay:N})}})))},"Tc");
GII.idomCompat=!0;var aTd=_.SG(function(M){var d=M.data;var N={};return _.g("factoid-view-model",{class:_.xj("ytwFactoidViewModelHost",(N.ytwFactoidViewModelHostOverlay=M.isOverlay,N))},_.g(_.lG,{text:function(){return d().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.g(_.lG,{text:function(){return d().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Uc");
aTd.idomCompat=!0;var U3g=_.SG(function(M){var d=M.data;var N=M.isOverlay;return _.g("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.g(_.ho,{data:function(){return d().factoids}},{factoidViewModel:function(R){return _.g(aTd,{data:R.data,
isOverlay:N})}}))},"Vc");
U3g.idomCompat=!0;_.u_g=_.SG(function(M){var d=M.data;var N=M.isOverlay;return _.g("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.g(_.ho,{data:function(){return d().items}},{channelInfoViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(GII,{data:R.data,
isOverlay:N}))},
coursePerksViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(oRg,{data:R.data,isOverlay:N}))},
descriptionPreviewViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(t_L,{data:R.data,isOverlay:N}))},
factoidsRowViewModel:function(R){return _.g("div",{class:"ytwCourseMetadataViewModelHostItem"},_.g(U3g,{data:R.data,isOverlay:N}))}}))},"Wc");var C33=_.SG(function(M){return _.g("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.g(_.ho,{data:function(){return M.data().content}},{courseMetadataViewModel:function(d){return _.g(_.u_g,{data:d.data,
isOverlay:M.isOverlay})}}))},"Xc");var x3o=_.SG(function(M){var d=M.data;M=M.className;var N=_.e5(),R=function(){var A;return _.zH((A=d())==null?void 0:A.rendererContext)},X={};
X=(X["dynamic-text-view-model-wiz"]=!0,X["dynamic-text-view-model-wiz--tappable"]=function(){return R()},X);
_.ek(N,function(){var A;return(A=d())==null?void 0:A.rendererContext});
return _.g("yt-dynamic-text-view-model",{el:N,role:function(){return R()?"link":void 0},
tabindex:function(){return R()?0:void 0},
class:_.xj(M,X)},_.g("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var A,l,k;return(k=(l=_.q((A=d())==null?void 0:A.rendererContext,_.H5))==null?void 0:l.label)!=null?k:""}},_.g(_.lG,{text:function(){return d().text},
userInput:!0})))},"Yc");
x3o.idomCompat=!0;_.mp=_.SG(function(M){var d=M.data;var N=M.isPositionRelative;var R=_.Hh(),X=_.PtA("(max-width: 527.9px)"),A=function(){var l,k;return(k=(l=d())==null?void 0:l.style)!=null?k:"IMAGE_BANNER_STYLE_FULL_BLEED"};
M={};M=(M["yt-image-banner-view-model-wiz"]=!0,M["yt-image-banner-view-model-wiz--inset"]=function(){return oNp(A())},M["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.QJ(!0)&&!(N==null?0:N())},M["yt-image-banner-view-model-wiz--small-inset"]=function(){return oNp(A())&&X()},M["yt-image-banner-view-model-wiz--tappable"]=function(){var l;
return _.QJ(R.value)&&_.zH((l=d())==null?void 0:l.rendererContext)},M);
_.ek(R,function(){var l;return(l=d())==null?void 0:l.rendererContext});
return _.g("yt-image-banner-view-model",{el:R,class:_.xj(M)},_.g(_.kV,{cond:function(){var l;return(l=d())==null?void 0:l.image},
then:function(){return _.g(_.Jt,{data:function(){return d().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.g(_.ho,{data:function(){var l;
return(l=d())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:elz}))},"Zc");
_.mp.idomCompat=!0;var J9=_.W5({descriptionPreviewViewModel:vNZ,dynamicTextViewModel:x3o,contentPreviewImageViewModel:_.iK,contentMetadataViewModel:lfd,flexibleActionsViewModel:IXm,attributionViewModel:fN,imageBannerViewModel:_.mp,decoratedAvatarViewModel:fJJ,cinematicContainerViewModel:_.Lrm,flexibleContainer:C33});_.aR(bCp);var Yr3,Zwo;Yr3=_.SG(function(M){var d=M.condition;var N=M.content;return _.g(_.kV,{cond:d,then:function(){return _.g("div",{class:"page-header-view-model-wiz__scroll-container"},N())},
else:function(){return N()}})},"$c");
Zwo=_.SG(function(M){var d=M.data;var N=M.noPadding;var R=M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow;var l=M.displayAsSidebar;var k=M.displayAsPanel;var T=rRL(),W=function(){return!!d().image||!!d().animatedImage},w=function(){return!!d().background},p=function(){return(l==null?0:l())||(k==null?0:k())?1:T()},m=function(){return p()===1},I=function(){return m()||p()===2},O=function(){return p()===4},y=function(){return svi(d(),!!d().heroImage,p(),
K_i(d()),l==null?void 0:l())};
M={};M=_.xj((M["page-header-view-model-wiz"]=!0,M["page-header-view-model-wiz--no-padding"]=function(){return!(N==null||!N())},M["page-header-view-model-wiz--small-top-padding"]=function(){return m()&&!d().actions||p()===2&&!(W()||d().heroImage)},M["page-header-view-model-wiz--small-bottom-padding"]=function(){return I()&&!d().actions},M["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(A==null?0:A())},M["page-header-view-model-wiz--display-as-sidebar"]=l,M["page-header-view-model-wiz--display-as-panel"]=
k,M));
var c={},e=_.xj((c["page-header-view-model-wiz__page-header-headline"]=!0,c["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return y().allowFullWidth},c)),t=function(){return m()&&(!!d().heroImage||W())&&K_i(d())>0},C=function(){return t()&&(k==null?void 0:k())};
c={};var U=_.xj((c["page-header-view-model-wiz__page-header-title"]=!0,c["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!t()},c["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return t()&&!C()},c["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=C,c["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=w,c));
c={};var Fi=_.xj((c["page-header-view-model-wiz__page-header-headline-image"]=!0,c["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!d().heroImage&&I()},c));
c={};var Y=_.xj((c["page-header-view-model-wiz__page-header-banner-container"]=R,c["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var sS;return(R==null?void 0:R())&&((sS=_.q(d().banner,_.zRi))==null?void 0:sS.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},c));
c={};var $i=_.xj((c["page-header-view-model-wiz__page-header-content-metadata"]=!0,c["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=w,c));c={};var vj=_.xj((c["page-header-view-model-wiz__page-header-flexible-actions"]=!0,c["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!d().metadata||I()},c["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!I()},c));
c={};var Pj=_.xj((c["page-header-view-model-wiz__page-header-attribution"]=!0,c["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=w,c));return _.g("yt-page-header-view-model",{class:M},_.g(_.kV,{cond:w,then:function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-background"},_.g(_.ho,{data:function(){return d().background}},{cinematicContainerViewModel:function(sS){return _.g(_.Lrm,{data:sS.data,
topbarOffset:X})}}))}}),_.g(Yr3,{condition:function(){return!(l==null||!l())},
content:function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-content"},_.g(_.kV,{cond:function(){return(R==null?void 0:R())&&d().banner},
then:function(){return _.g("div",{class:Y},_.g(_.ho,{data:function(){return d().banner}},{imageBannerViewModel:_.mp}))}}),_.g("div",{class:e},_.g(_.kV,{cond:W,
then:function(){return _.g(_.ho,{data:function(){var sS;(sS=d().animatedImage)||(sS=d(),W()&&(sS=Object.assign({},sS),JRv(sS,p(),K_i(d()))),sS=sS.image);return sS}},{contentPreviewImageViewModel:function(sS){return _.g(_.iK,{data:sS.data,
className:Fi,imageSizeConfig:y})},
decoratedAvatarViewModel:function(sS){return _.g(_.Dg,{data:sS.data,className:Fi})}})}}),_.g(_.kV,{cond:function(){return!!d().heroImage&&!(I()&&!y().allowFullWidth)},
then:function(){return _.g(_.ho,{data:function(){return d().heroImage}},{contentPreviewImageViewModel:function(sS){return _.g(_.iK,{data:sS.data,
className:Fi,imageSizeConfig:y})}})}}),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.g(_.kV,{cond:function(){return!!d().heroImage&&I()&&!y().allowFullWidth},
then:function(){return _.g("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.g(_.ho,{data:function(){return d().heroImage}},{contentPreviewImageViewModel:function(sS){return _.g(_.iK,{data:sS.data,
className:Fi,imageSizeConfig:y})}}))}}),_.g(_.ho,{data:function(){return d().title}},{dynamicTextViewModel:function(sS){return _.g(x3o,{data:sS.data,
className:U})}}),_.g(_.ho,{data:function(){return d().metadata}},{contentMetadataViewModel:function(sS){return _.g(_.$P3,{data:sS.data,
layout:function(){return m()?1:0},
className:$i,isOverlay:w,useMediumText:O})}}),_.g(_.kV,{cond:function(){return d().description&&!m()},
then:function(){return _.g(_.ho,{data:function(){return d().description}},{descriptionPreviewViewModel:function(sS){return _.g(t_L,{data:sS.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return m()?void 0:1},
useMediumText:O})}})}}),_.g(_.kV,{cond:function(){return d().attribution&&!I()},
then:function(){return _.g(_.ho,{data:function(){return d().attribution}},{attributionViewModel:function(sS){return _.g(fN,{data:sS.data,
className:Pj,useMediumText:O})}})}}),_.g(_.kV,{cond:function(){return d().actions&&!I()},
then:function(){return _.g(_.ho,{data:function(){return d().actions}},{flexibleActionsViewModel:function(sS){return _.g(mf,{data:sS.data,
layout:function(){return cR6(p())},
className:vj})}})}}))),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.g(_.kV,{cond:function(){return d().description&&m()},
then:function(){return _.g(_.ho,{data:function(){return d().description}},{descriptionPreviewViewModel:function(sS){return _.g(t_L,{data:sS.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:w,maxLinesOverride:function(){return m()?void 0:1},
useMediumText:O})}})}}),_.g(_.kV,{cond:function(){return d().attribution&&I()},
then:function(){return _.g(_.ho,{data:function(){return d().attribution}},{attributionViewModel:function(sS){return _.g(fN,{data:sS.data,
className:Pj,useMediumText:O})}})}}),_.g(_.kV,{cond:function(){return d().actions&&I()},
then:function(){return _.g(_.ho,{data:function(){return d().actions}},{flexibleActionsViewModel:function(sS){return _.g(mf,{data:sS.data,
layout:function(){return cR6(p())},
className:vj})}})}})),_.g("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.g(_.ho,{data:function(){return d().bottomMetadataFlexibleContainer}},{flexibleContainer:function(sS){return _.g(C33,{data:sS.data,
isOverlay:w})}})))}}))},"ad");
_.ERt=_.Q("web_enable_sink_page_header_view_model")?Zwo:bCp;_.MNe=_.Q("web_enable_sink_page_header_view_model")?Zwo:_.Ez(bCp);Zwo.idomCompat=!0;_.eC(_.SG(function(M){var d=_.V(_.d0(!1,void 0,"vVRl3b")),N=d.next().value,R=d.next().value;return _.g("yt-official-card-view-model",{class:_.xj("ytOfficialCardViewModelHost",M.className),style:_.Xc({"background-color":function(){var X,A=T76((X=M.data())==null?void 0:X.backgroundColor);return A?_.ml(A):void 0}})},_.g(_.ho,{data:function(){return M.data().header}},{pageHeaderViewModel:function(X){return _.g(_.MNe,{data:X.data,
noPadding:!0})}}),_.g(_.ho,{data:function(){return M.data().contents}},{horizontalShelfViewModel:_.pm}),_.g(_.kV,{cond:N,
then:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandedContent"},_.g(_.ho,{data:function(){return M.data().expandedContents}},{horizontalShelfViewModel:function(X){return _.g(_.pm,{data:X.data,
sizing:"MINI"})}}),_.g("div",{class:"ytOfficialCardViewModelCollapseButton"},_.g(_.ho,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
onClick:function(){R(!N())}})}})))},
else:function(){return _.g("div",{class:"ytOfficialCardViewModelExpandButton"},_.g(_.ho,{data:function(){return M.data().expandButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
onClick:function(){R(!N())}})}}))}}))},"bd"),"yt-official-card-view-model",{props:{data:_.cA,
className:_.cA}});var eRj=_.W5({buttonViewModel:_.o0});_.aR(HCi);_.aA(HCi,"ytw-search-friction-view-model",{propNames:["data"]});_.hf=_.SG(function(M){var d=_.e5(),N,R=(N=_.h().resolve(_.CF(_.Pz)))==null?void 0:N();_.Wg(function(){var X=d.value;var A=new FGL,l=new Map(A.JSC$7189_sanitizerTable.globalAttributePolicies);l.set("style",{policyAction:4});A.JSC$7189_sanitizerTable=new hM(A.JSC$7189_sanitizerTable.allowedElements,A.JSC$7189_sanitizerTable.elementPolicies,A.JSC$7189_sanitizerTable.allowedGlobalAttributes,l,A.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes);var k=["data-time"];if(k===void 0)l=new Set(A.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes),
l.add("data-"),A.JSC$7189_sanitizerTable=new hM(A.JSC$7189_sanitizerTable.allowedElements,A.JSC$7189_sanitizerTable.elementPolicies,A.JSC$7189_sanitizerTable.allowedGlobalAttributes,A.JSC$7189_sanitizerTable.globalAttributePolicies,l);else{l=new Set(A.JSC$7189_sanitizerTable.allowedGlobalAttributes);k=_.V(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;if(T.indexOf("data-")!==0)throw Error("qa`"+T);l.add(T)}A.JSC$7189_sanitizerTable=new hM(A.JSC$7189_sanitizerTable.allowedElements,A.JSC$7189_sanitizerTable.elementPolicies,
l,A.JSC$7189_sanitizerTable.globalAttributePolicies,A.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes)}l=new Set(A.JSC$7189_sanitizerTable.allowedGlobalAttributes);l.add("class");A.JSC$7189_sanitizerTable=new hM(A.JSC$7189_sanitizerTable.allowedElements,A.JSC$7189_sanitizerTable.elementPolicies,l,A.JSC$7189_sanitizerTable.globalAttributePolicies,A.JSC$7189_sanitizerTable.globallyAllowedAttributePrefixes);_.zP(X,_.Mie(A.build(),iCZ(M.text())));fOi(d.value)});
N={};return _.g("div",null,_.g("markdown-div",{class:_.xj("ytwMarkdownDivHost",(N.ytwMarkdownDivDark=R,N.ytwMarkdownDivHostSmall=function(){var X;return((X=M.isSmallText)==null?void 0:X.call(M))||!1},N)),
el:d}))},"cd");
_.hf.idomCompat=!0;var dgV=_.SG(function(M){var d=M.imageData;var N=_.Jy(M.isInList,!1),R=function(){return N()?{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 _.g("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.g(_.kV,{cond:function(){return d().image},
then:function(X){return _.g(_.Jt,{data:X,alt:function(){return R().alt},
contentMode:function(){return R().contentMode},
targetWidth:function(){return R().targetWidth},
targetHeight:function(){return R().targetHeight},
className:function(){return R().className}})}}),_.g("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.g("div",{class:_.xj("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.g(_.lG,{text:function(){return d().title}})),_.g(_.TN,{each:function(){var X;
return(X=d().description)!=null?X:[]}},function(X){return _.g("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.g(QS,{content:X}))})))},"dd"),Nao=_.SG(function(M){var d=M.list;
var N=function(){var R;return(R=d().items)!=null?R:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelListContent"},_.g(_.kV,{cond:function(){return d().title},
then:function(R){return _.g("div",{class:_.xj("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.g(_.lG,{text:R}))}}),_.g(_.kV,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.g("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.g(_.TN,{each:N},function(R){return _.g("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.g(QS,{content:R,isInList:!0}))}))}}),_.g(_.kV,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.g("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.g(_.TN,{each:N},function(R){return _.g("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.g(QS,{content:R,isInList:!0}))}))}}),_.g(_.kV,{cond:function(){return d().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelImageList"},_.g(_.TN,{each:N},function(R){return _.g("div",{class:"ytwGenAiRichTextViewModelListItem"},_.g(QS,{content:R,isInList:!0}))}))}}))},"ed"),R8I=_.SG(function(M){var d=M.table;
return _.g("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.g("thead",null,_.g("tr",null,_.g(_.TN,{each:function(){var N,R;return(R=(N=d().header)==null?void 0:N.cells)!=null?R:[]}},function(N){return _.g("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.g(_.TN,{each:function(){return N.contents}},function(R){return _.g(QS,{content:R})}))}))),_.g("tbody",null,_.g(_.TN,{each:function(){var N;
return(N=d().rows)!=null?N:[]}},function(N){return _.g("tr",null,_.g(_.TN,{each:function(){return N.cells}},function(R){return _.g("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.g(_.TN,{each:function(){return R.contents}},function(X){return _.g(QS,{content:X})}))}))})))},"fd"),QS=_.SG(function(M){var d=M.content;
var N=_.Jy(M.isInList,!1),R=function(){var X,A;return(A=(X=d().contentBlock)==null?void 0:X.contents)!=null?A:[]};
return _.g("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.g(_.kV,{cond:function(){return d().text},
then:function(X){return _.g(_.lG,{className:"ytwGenAiRichTextViewModelText",text:X})}}),_.g(_.kV,{cond:function(){return d().image},
then:function(X){return _.g(dgV,{imageData:X,isInList:N})}}),_.g(_.kV,{cond:function(){return d().list},
then:function(X){return _.g(Nao,{list:X})}}),_.g(_.kV,{cond:function(){return d().contentBlock},
then:function(){return _.g("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.g(_.TN,{each:R},function(X){return _.g(QS,{content:X,isInList:!1})}))}}),_.g(_.kV,{cond:function(){return d().table},
then:function(X){return _.g(R8I,{table:X})}}))},"gd"),XwJ=_.SG(function(M){var d={};
d=_.ZH("ytwGenAiRichTextViewModelHost",(d.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.El("search_overview_link_style")),d));return _.g("gen-ai-rich-text-view-model",{class:d},_.g(QS,{content:function(){return M.data().content}}))},"hd");_.aR(L_p);_.aR(cC);_.F5C=_.SG(function(M){var d=M.data;var N=function(){var y;return((y=d().loadingUi)!=null?y:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},R=function(){return d().isLoading&&(N()==="UNSPECIFIED"||N()==="GHOST_CARD")},X=function(){return!d().isLoading},A=function(){return!!d().content&&!d().contents},l=function(){return!!d().contents},k=function(){return!!d().nextQueryButtons},T=function(){return d().isLoading&&N()==="INVISIBLE"},W=function(){var y,c;
return(c=(y=d().headerIcon)==null?void 0:y.iconType)!=null?c:""},w=function(){var y;
return(y=d().content)!=null?y:""},p=function(){return!!d().sourcesSection},m,I=!((m=_.h().resolve(_.CF(_.Pz)))==null||!m()),O=_.Al(function(){var y=[],c=d().contents;
if(c)for(var e=0;e<c.length;e++){var t=_.q(c&&c[e],GQo);t&&y.push(t)}return y},void 0,"ycU97e");
_.IJ(function(){d().isLoading||_.v1("so_re",void 0,"search_overview_answer")});
return _.g("ytd-overview-answer-view-model",{class:function(){var y={};y=(y.ytdOverviewAnswerViewModelHost=!0,y.ytdOverviewAnswerViewModelDarkBackground=I&&!T(),y.ytdOverviewAnswerViewModelLightBackground=!I&&!T(),y);return _.ZH(y)}},_.g(_.kV,{cond:function(){return!T()},
then:function(){return _.g(_.GT,null,_.g("h2",null,_.g("div",{class:"ytdOverviewAnswerViewModelHeader"},_.g(_.kV,{cond:W,then:function(y){return _.g("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.g(_.Fc,{icon:y}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.g("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return d().headerText}),_.g("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.g(_.lG,{text:function(){return d().headerSubtext}}))))),_.g(_.kV,
{cond:R,
then:function(){return L_p()}}),_.g(_.kV,{cond:X,
then:function(){return _.g(_.GT,null,_.g(_.kV,{cond:A,then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelText"},_.g(_.hf,{text:w,isSmallText:!0}))}}),_.g(_.kV,{cond:l,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelRichText"},_.g(_.TN,{each:O},function(y){return _.g(XwJ,{data:y})}))}}),_.g(_.kV,{cond:k,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.g(_.ho,{data:function(){return d().nextQueryButtons}},{buttonViewModel:function(y){return _.g(_.o0,{data:y.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.pm}))}}),_.g("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.g("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.g(_.kV,{cond:function(){return!!_.q(d().likeButtonViewModel,Oc)&&!!_.q(d().dislikeButtonViewModel,jk)},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.g(_.sEV,{data:function(){return _.q(d().likeButtonViewModel,Oc)},
disableIconAnimation:!0}),_.g(_.Old,{data:function(){return _.q(d().dislikeButtonViewModel,jk)}}))}})),_.g(_.kV,{cond:function(){var y;
return(y=d().sourcesSection)==null?void 0:y.headerText},
then:function(y){return _.g("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.g(_.lG,{text:y}))}})),_.g(_.kV,{cond:p,
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelSources"},_.g(_.ho,{data:function(){var y;return(y=d().sourcesSection)==null?void 0:y.sourcesShelf}},{buttonViewModel:_.o0,
horizontalShelfViewModel:function(y){return _.g(_.pm,{data:y.data,includeMargin:!0,hasPeek:!0})}}))}}),_.g(_.kV,{cond:function(){return d().disclaimerText},
then:function(){return _.g("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.g(_.lG,{text:function(){return d().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"id");var AFV=_.SG(function(M){var d=M.data;var N=M.active;var R=_.e5();_.Wg(function(){var X,A,l,k=((X=_.h().resolve(_.CF(_.Pz)))==null?0:X())?(A=d())==null?void 0:A.darkThemeColorPalette:(l=d())==null?void 0:l.lightThemeColorPalette;k&&(k.additiveBackground&&R.value.style.setProperty("--timestamp-active-background-color",_.ml(k.additiveBackground)),k.textSecondary&&R.value.style.setProperty("--timestamp-active-color",_.p3(k.textSecondary)))},"KHcbwb");
M={};return _.g("transcript-segment-view-model",{class:_.xj("ytwTranscriptSegmentViewModelHost",(M.ytwTranscriptSegmentViewModelHostActive=N,M.ytwTranscriptSegmentViewModelHostModern=_.Q("enable_timeline_view_modern_transcript")||_.Q("enable_timeline_view_modern_transcript_fe"),M)),el:R},_.g(_.kV,{cond:function(){var X;return(X=d())==null?void 0:X.timestamp},
then:function(X){var A={};return _.g("div",{class:_.xj("ytwTranscriptSegmentViewModelTimestamp",(A.ytwTranscriptSegmentViewModelTimestampActive=N,A))},X)}}),_.g(_.lG,{text:function(){var X,A,l;
return(l=(X=d())==null?void 0:X.attributedText)!=null?l:{content:(A=d())==null?void 0:A.simpleText}},
linkInheritColor:!0}))},"jd");var VNV=_.SG(function(M){var d=M.data;return _.g("div",{class:"yt-video-attributes-section-view-model__header"},_.g("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return d().headerTitle}),_.g(_.kV,{cond:function(){return d().headerSubtitle},
then:function(){return _.g("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return d().headerSubtitle})}}))},"kd"),lwV=_.SG(function(M){function d(O){return Math.max(Math.min(O,0),W()-k())}
var N=M.data;var R=_.e5(),X=_.e5();M=_.V(_.d0(0,void 0,"ucDlDf"));var A=M.next().value,l=M.next().value,k=A;M=_.V(_.d0(0,void 0,"lHzSub"));A=M.next().value;var T=M.next().value,W=A;M=_.V(_.d0(0,void 0,"Q8fDIe"));var w=M.next().value,p=M.next().value;_.IJ(function(){var O=function(){l(X.value.scrollWidth);T(R.value.clientWidth)};
O();if(window.ResizeObserver){var y=new ResizeObserver(O);y.observe(R.value);_.mF(function(){y.disconnect()})}});
var m=function(){p(d(w()+W()))},I=function(){p(d(w()-W()))};
return _.g("yt-video-attributes-section-view-model",null,_.g("div",{class:"yt-video-attributes-section-view-model"},_.g(_.kV,{cond:function(){return N().headerTitle},
then:function(){return _.g(VNV,{data:N})}}),_.g("div",{class:_.xj("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:R},_.g("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Xc({transform:function(){var O=w();_.rK("HTML_DIR")==="rtl"&&(O*=-1);return"translateX("+O+"px)"}}),
el:X},_.g(_.ho,{data:function(){return N().videoAttributeViewModels}},{videoAttributeViewModel:q7o}))),_.g(_.ho,{data:function(){return N().footerButton}},{buttonViewModel:function(O){return _.g(_.o0,{data:O.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.g(_.kV,{cond:function(){return w()<0&&N().previousButton},
then:function(){return _.g("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.g(_.ho,{data:function(){return N().previousButton}},{buttonViewModel:function(O){return _.g(_.o0,{data:O.data,
onClick:m})}}))}}),_.g(_.kV,{cond:function(){return w()>W()-k()&&N().nextButton},
then:function(){return _.g("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.g(_.ho,{data:function(){return N().nextButton}},{buttonViewModel:function(O){return _.g(_.o0,{data:O.data,
onClick:I})}}))}})))},"ld");
lwV.idomCompat=!0;var $gI=_.SG(function(M){var d=M.data;var N=M.active;var R={},X={};return _.g("timeline-item-view-model",{class:_.xj("ytwTimelineItemViewModelHost",(R.ytwTimelineItemViewModelHostChapterChild=M.chapterChild,R.ytwTimelineItemViewModelModern=_.Q("enable_timeline_view_modern_transcript")||_.Q("enable_timeline_view_modern_transcript_fe"),R))},_.g("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.g("div",{class:_.xj("ytwTimelineItemViewModelTimestamp",(X.ytwTimelineItemViewModelTimestampActive=
N,X))},function(){return d().timestamp})),_.g("div",{class:"ytwTimelineItemViewModelContentItems"},_.g(_.ho,{data:function(){return d().contentItems}},{transcriptSegmentViewModel:function(A){return _.g(AFV,{data:A.data,
active:N})},
videoAttributesSectionViewModel:lwV})))},"md");var Bae=_.SG(function(M){var d=M.data;M={};return _.g("timeline-chapter-view-model",{class:_.xj("ytwTimelineChapterViewModelHost")},_.g("div",{class:_.xj("ytwTimelineChapterViewModelTitle",(M.ytwTimelineChapterViewModelModern=_.Q("enable_timeline_view_modern_transcript")||_.Q("enable_timeline_view_modern_transcript_fe"),M))},function(){return d().title}),_.g(_.ho,{data:function(){return d().contents}},{timelineItemViewModel:function(N){return _.g($gI,{data:N.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(N){return _.g(lwV,{data:N.data})}}))},"nd");var kCL=_.SG(function(M){var d=M.data;var N=_.e5(),R=_.FT(_.GgZ,function(){var A;return(A=d().markersEngagementPanelSyncEntityKey)!=null?A:""}),X=function(){var A;
return((A=R())==null?void 0:A.activeItemIndex)===d().index};
M=_.dT(function(A){var l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1)return A.stopPropagation(),_.fJr(_.c5(A),N.value,["A".toString(),"BUTTON".toString()])?p.return():(l=_.ht(d().onTap))?_.D(p,_.YF(),2):p.return();k=p.yieldResult;W=(T=_.q(l,_.nL))==null?void 0:T.startTimeSeconds;W===void 0||(w=k)!=null&&w.seekTo(W,!0);_.Vy(p)})});
return _.g("macro-markers-panel-item-view-model",{class:_.xj("ytwMacroMarkersPanelItemViewModelHost",{"is-active":X}),el:N,"on:click":M,tabindex:0},_.g(_.ho,{data:function(){var A;return(A=d())==null?void 0:A.item}},{timelineChapterViewModel:function(A){return _.g(Bae,{data:A.data,
active:X})},
timelineItemViewModel:function(A){return _.g($gI,{data:A.data,active:X})},
videoAttributeViewModel:q7o}))},"od");
kCL.idomCompat=!0;_.eC(kCL,"macro-markers-panel-item-view-model",{props:{data:_.cA}});_.eC(lwV,"yt-video-attributes-section-view-model",{props:{data:_.cA}});var TaL=_.SG(function(M){var d=function(){var N,R,X;return(X=(N=M.data().leadingLogoAccessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:""};
return _.g("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.g(_.kV,{cond:function(){return M.data().leadingLogo},
then:function(N){return _.g(_.Jt,{className:"ytwFantasySectionHeaderViewModelLogo",data:N,alt:d})}}),_.g("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.g(_.lG,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return M.data().title}}),_.g(_.lG,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return M.data().subtitle}})),_.g(_.ho,{data:function(){return M.data().trailingButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"pd");var DgI=_.SG(function(M){var d={};d=_.xj("ytwFantasyTeamViewModelHost",(d.ytwFantasyTeamViewModelCompact=function(){var X;return!((X=M.compact)==null||!X.call(M))},d.ytwFantasyTeamViewModelUser=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},d.ytwFantasyTeamViewModelOpponent=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},d));
var N=function(){var X,A,l;return(l=(X=M.data().teamLogoAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)!=null?l:""},R=_.FT(UkZ,function(){return M.data().teamEntityKey});
return _.g("ytw-fantasy-team-view-model",{class:d},_.g(_.kV,{cond:function(){return M.data().teamLogo},
then:function(X){return _.g(_.Jt,{className:"ytwFantasyTeamViewModelLogo",data:X,alt:N})}}),_.g("div",{class:"ytwFantasyTeamViewModelMetadata"},_.g("div",{class:"ytwFantasyTeamViewModelHeader"},_.g(_.lG,{className:"ytwFantasyTeamViewModelScore",
text:function(){var X;return(X=R())==null?void 0:X.score}}),_.g(_.Fc,{icon:function(){var X;
return(X=R())==null?void 0:X.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.g(_.lG,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var X;return(X=R())==null?void 0:X.projectedScore}})),_.g(_.lG,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return M.data().primaryText}}),_.g(_.lG,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return M.data().secondaryText}}),_.g(_.lG,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return M.data().tertiaryText}})),_.g(_.lG,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var X;return(X=R())==null?void 0:X.score}}))},"qd");_.eC(_.SG(function(M){return _.g("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.g("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.g(_.ho,{data:function(){return M.data().summaryHeader}},{fantasySectionHeaderViewModel:TaL})),_.g(_.ho,{data:function(){return M.data().userTeam}},{fantasyTeamViewModel:DgI}),_.g(_.ho,{data:function(){return M.data().opponentTeam}},{fantasyTeamViewModel:DgI}))},"rd"),"fantasy-league-summary-view-model",{props:{data:_.cA}});var gzd=_.SG(function(M){var d=_.cu(M,{shape:{},useCustomTabRenderable:!1}),N=d.shape;d=d.useCustomTabRenderable;var R=M.customTabRenderable,X=function(){return N().disabled},A=function(){return N().selected},l=function(){return N().title},k=function(){return N().icon},T=_.e5();
M=_.dT(function(p){var m;if(!X()&&((m=N().aTagConfig)==null?0:m.onclick))N().aTagConfig.onclick(p);return!1});
var W=_.dT(function(p){if(p.key==="Enter"||p.key==="ArrowUp"||p.key==="ArrowDown")p.preventDefault(),T.value.click();return!1}),w={};
return _.g("yt-tab-shape",{class:_.xj("yt-tab-shape-wiz",function(){return N().className},(w["yt-tab-shape-wiz__tab--last-tab"]=function(){return N().isLastTab},w["yt-tab-shape-wiz--host-disabled"]=X,w["yt-tab-shape-wiz--host-clickable"]=!R,w)),
role:R?void 0:"tab","aria-selected":A!=null?A:!1,"aria-disabled":X,tabindex:R?void 0:0,"on:click":M,"on:keydown":W,el:T,"tab-identifier":function(){return N().identifier},
"tab-title":l},_.g(_.kV,{cond:d,then:function(){return R()},
else:function(){var p={},m={};return _.g(_.GT,null,_.g("div",{class:_.xj("yt-tab-shape-wiz__tab",(p["yt-tab-shape-wiz__tab--tab-selected"]=A,p))},_.g(_.kV,{cond:k,then:function(I){return _.g(_.Fc,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return I().iconType}})}}),l),_.g("div",{class:_.xj("yt-tab-shape-wiz__tab-bar",(m["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=A,m))}))}}))},"sd");
gzd.idomCompat={callbacks:{customTabRenderable:!0}};_.wwt=_.SG(function(M){var d=M.shape;M=_.V(_.d0(48,void 0,"S7XsSd"));var N=M.next().value,R=M.next().value;M=_.V(_.d0(0,void 0,"CzMxb"));var X=M.next().value,A=M.next().value,l=function(){return d().tabs},k=_.e5(),T=function(){var W,w;
return(w=(W=l())==null?void 0:W.findIndex(function(p){return p.selected}))!=null?w:-1};
_.IJ(function(){var W=k.value.querySelectorAll("yt-tab-shape"),w=T()>-1?W[T()]:void 0;requestAnimationFrame(function(){R((w==null?void 0:w.getBoundingClientRect().width)||0)})});
_.Wg(function(){var W=T();requestAnimationFrame(function(){var w=k.value.querySelectorAll("yt-tab-shape"),p;R(((p=W>-1?w[W]:void 0)==null?void 0:p.getBoundingClientRect().width)||0);for(var m=p=0;m<W;m++)p+=w[m].offsetWidth+24;_.rK("HTML_DIR")==="rtl"&&(p=-p);A(p)})});
M={};return _.g("yt-tab-group-shape",{class:_.xj("yt-tab-group-shape-wiz",(M["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return d().isOverflowHidden},M)),
el:k},_.g(_.kV,{cond:l,then:function(W){return _.g(_.GT,null,_.g("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.g(_.TN,{each:W},function(w,p){return _.g(gzd,{shape:function(){return Object.assign({},w,{isLastTab:p()===W().length-1})},
customTabRenderable:w.customTabRenderable,useCustomTabRenderable:!!w.customTabRenderable})})),_.g(W5m,{width:N,
sliderOffset:X}))}}))},"td");
_.wwt.idomCompat=!0;var W5m=_.SG(function(M){var d=_.Jy(M.sliderOffset,0),N=M.width;return _.g("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Xc({width:function(){return N()+"px"},
transform:function(){return"translateX("+d()+"px)"}})})},"ud");var pwI=_.SG(function(M){var d=function(){var A,l,k;return(k=(A=M.data().playerLogoAccessibility)==null?void 0:(l=A.accessibilityData)==null?void 0:l.label)!=null?k:""},N=_.FT(uj2,function(){return M.data().playerEntityKey}),R={};
R=_.xj("ytwFantasyPlayerViewModelHost",(R.ytwFantasyPlayerViewModelPlaying=function(){var A;return!((A=N())==null||!A.isPlayerPlaying)},R.ytwFantasyPlayerViewModelOnField=function(){var A;
return((A=N())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},R.ytwFantasyPlayerViewModelRedZone=function(){var A;
return((A=N())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},R));
var X=function(){var A,l,k,T=((A=_.h().resolve(_.CF(_.Pz)))==null?0:A())?(l=M.data().playerLogoBackgroundColor)==null?void 0:l.darkTheme:(k=M.data().playerLogoBackgroundColor)==null?void 0:k.lightTheme;return T===void 0?"":_.ml(T)};
return _.g("ytw-fantasy-player-view-model",{class:R},_.g(_.kV,{cond:function(){return M.data().playerLogo},
then:function(A){return _.g("div",{class:"ytwFantasyPlayerViewModelLogo"},_.g("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.g(_.Jt,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Xc({"background-color":X}),data:A,alt:d})),_.g("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.g(_.Fc,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.g("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.g("div",{class:"ytwFantasyPlayerViewModelHeader"},_.g(_.lG,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var A;return(A=M.data())==null?void 0:A.playerNameText}}),_.g(_.lG,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var A;return(A=M.data())==null?void 0:A.playerDescriptionText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.lG,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=N())==null?void 0:A.gamePeriodText}}),_.g(_.lG,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=M.data())==null?void 0:A.opponentTeamText}}),_.g(_.lG,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=N())==null?void 0:A.gameStatusText}}),_.g(_.lG,{className:_.xj("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var A;return(A=N())==null?void 0:A.playerStatusText}})),_.g("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.g(_.lG,{text:function(){var A;
return(A=N())==null?void 0:A.playerStatsText}}))),_.g(_.lG,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var A;return(A=N())==null?void 0:A.fantasyScore}}))},"vd");var mgL=_.SG(function(M){return _.g("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.g(_.kV,{cond:function(){return M.data().players},
then:function(d){return _.g(_.ho,{data:d},{fantasyPlayerViewModel:pwI})}}))},"wd");var h8d=_.SG(function(M){var d=_.V(_.Rq(function(){var X;return(X=M.data().selectedTabIdentifierKey)!=null?X:""})),N=d.next().value,R=d.next().value;
_.QD(function(){var X;(X=M.setSelectedTabSignal)==null||X.call(M,N)});
return _.g("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.g("div",{class:"ytTabbedViewModelTabGroup"},_.g(_.wwt,{shape:function(){var X=M.data(),A=[],l={tabs:A};if(!X.tabs)return l;X=_.V(X.tabs);for(var k=X.next(),T={};!k.done;T={tabViewModel:void 0},k=X.next())if(T.tabViewModel=_.q(k.value,i4J),T.tabViewModel){var W=k=void 0;A.push({aTagConfig:{onclick:function(w){return function(){var p;R((p=w.tabViewModel.tabIdentifier)!=null?p:"")}}(T)},
identifier:T.tabViewModel.tabIdentifier,selected:N()===T.tabViewModel.tabIdentifier,title:(W=(k=T.tabViewModel.title)==null?void 0:k.content)!=null?W:""})}return l}})),_.g(_.ho,{data:function(){var X,A=_.V((X=M.data().tabs)!=null?X:[]);
for(X=A.next();!X.done;X=A.next())if((X=_.q(X.value,i4J))&&X.tabIdentifier===N())return X.content}},{fantasyRosterViewModel:mgL}))},"xd");_.eC(_.SG(function(M){var d=_.V(tcL()),N=d.next().value,R=d.next().value;return _.g("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.g(_.lG,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return M.data().title}}),_.g(_.kV,{cond:function(){return M.data().tabbedViewModel},
then:function(X){return _.g(_.ho,{data:X},{tabbedViewModel:function(A){return _.g(h8d,{data:A.data,setSelectedTabSignal:R})}})}}),_.g(_.kV,{cond:function(){var X,A=(X=_.q(M.data().tabbedViewModel,fYL))==null?void 0:X.tabs;
X=_.q(A==null?void 0:A[0],i4J);A=_.q(A==null?void 0:A[1],i4J);var l=X==null?void 0:X.tabIdentifier;if(N()===l){var k,T;if(!((k=_.q(X==null?void 0:X.content,YFJ))==null?0:(T=k.players)==null?0:T.length))return M.data().noUserTeamPlayersText}else{var W,w;if(!((W=_.q(A==null?void 0:A.content,YFJ))==null?0:(w=W.players)==null?0:w.length))return M.data().noOpponentTeamPlayersText}},
then:function(X){return _.g(_.lG,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:X})}}))},"yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){return _.g("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.g(_.lG,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return M.data().title}}),_.g(_.kV,{cond:function(){return M.data().matchupTeamPairs},
then:function(d){return _.g(_.TN,{each:d,keyBy:"INDEX"},function(N){return _.g("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.g(_.ho,{data:function(){return[N().firstTeam,N().secondTeam]}},{fantasyTeamViewModel:function(R){return _.g(DgI,{data:R.data,
compact:!0})}}))})}}))},"zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=function(){var X,A,l;return(l=(X=M.data().userLogoAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)!=null?l:""},N=function(){var X,A,l;
return(l=(X=M.data().opponentLogoAccessibility)==null?void 0:(A=X.accessibilityData)==null?void 0:A.label)!=null?l:""},R=_.FT(aPL,function(){return M.data().entityKey});
return _.g("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.g(_.kV,{cond:function(){return M.data().userLogo},
then:function(X){return _.g(_.Jt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:X,alt:d})}}),_.g("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.g(_.lG,{text:function(){return M.data().title}})),_.g(_.kV,{cond:function(){return M.data().opponentLogo},
then:function(X){return _.g(_.Jt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:X,alt:N})}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.lG,{text:function(){var X;
return(X=R())==null?void 0:X.userWinNumberLabel}})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.g("div",{class:_.xj("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Xc({flex:function(){var X,A;return(A=(X=R())==null?void 0:X.userWinNumber)!=null?A:50}})}),_.g("div",{class:_.xj("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Xc({flex:function(){var X,A;return(A=(X=R())==null?void 0:X.opponentWinNumber)!=null?A:50}})})),_.g("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.g(_.lG,{text:function(){var X;
return(X=R())==null?void 0:X.opponentWinNumberLabel}}))))},"Ad"),"fantasy-win-probability-view-model",{props:{data:_.cA}});_.pO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var qK=function(){var M=_.n.apply(this,arguments)||this;M.darkerPanels=_.Q("web_watch_darker_panels");M.commentsHidePanelButton=!1;M.isWatchGrid=!1;M.continuationShowButton=!1;M.isSearch=!1;M.isConstrainedList=!1;M.isWatch=!1;M.eligibleToSwitchToGrid=!1;M.epRestyle=!1;M.isCarouselInFeed=!0;M.topSpacingZero=!1;M.continuationIsInitialLoad=!0;M.enableSqueezebackPanels=_.Q("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};M.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return M};
_.v(qK,_.n);_.F=qK.prototype;_.F.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var d;(d=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||d.forEach(function(N){N.containerType=M})}};
_.F.getItemsPath=function(){return"data.contents"};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.Q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Q("kevlar_low_priority_continuation")}}};
_.F.created=function(){this.JSC$14387_cachedViewportHeight=_.rK("initialInnerHeight")||window.innerHeight};
_.F.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var M=_.K(this.hostElement).querySelector("ytd-comments-header-renderer");M&&(M.hidePanelButton=this.commentsHidePanelButton)}};
_.F.onRetrieveLocation=function(M,d){this.containsComments()&&(this.firstCommentsLoaded=d.hasComments=!0)};
_.F.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.F.onLoadReloadContinuation=function(M,d){var N=this;M.stopPropagation();this.isReloading=!0;_.YP(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(R){var X=_.h().resolve(_.Tu);R=d(R);X.postData(R).then(function(A){N.onReloadContinuationData(A)})}})};
_.F.onReloadContinuationData=function(M){if(M=this.get("response.continuationContents.itemSectionContinuation",M)||this.get("response.contents.itemSectionRenderer",M)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",M)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",M))this.set("data.contents",M.contents||M.results),M.header&&this.set("data.header",M.header),this.set("data.continuations",
M.continuations||[]);this.isReloading=!1};
_.F.computeContentsClass=function(M){return M?"reloading":""};
_.F.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.F.computeSectionIdentifier=function(M){return M==null?void 0:M.sectionIdentifier};
_.F.computeFitContainer=function(M){return(M==null?void 0:M.sectionIdentifier)==="youchat-item-section"};
_.F.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.Q("kevlar_disable_comments_auto_load")};
_.F.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.F.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.F.computeHasDestinationShelfRenderer=function(M){var d,N;return!!(M==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.destinationShelfRenderer)};
_.F.computeHasSectionGroupViewModel=function(M){var d,N;return!!(M==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.sectionGroupViewModel)};
_.F.computeStaticCommentsHeader=function(M){return M&&this.containsComments()};
_.F.computeEpRestyle=function(M){return _.Q("web_ep_restyling")&&M&&this.containsComments()};
_.F.computeIsContinuationCommentSection=function(M){return(M==null?void 0:M.targetId)==="shorts-engagement-panel-comments-section"||(M==null?void 0:M.targetId)==="comments-section"};
_.F.computeSuppressPaddingDisclaimer=function(){var M,d,N,R;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:(R=N.productListHeaderRenderer)==null?0:R.suppressPaddingDisclaimer)};
_.F.computeHeaderStyle=function(M){switch(M==null?void 0:M.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.F.dataChanged=function(){this.firstCommentsLoaded=!1};
_.F.observeDataContentsLength=function(){var M,d;((M=this.data)==null?0:(d=M.contents)==null?0:d.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.F.onYtDismissibleItemDismissedChange=function(M){this._setItemDismissed(M.type==="yt-dismissible-item-dismissed")};
_.F.triggerContinuations=function(){for(var M=_.K(this.hostElement).querySelector("#continuations").children,d=0;d<M.length;d++)M[d].trigger()};
_.F.triggerInitialContinuations=function(){for(var M=_.K(this.hostElement).querySelector("#continuations").children,d=0;d<M.length;d++)M[d].triggerIfNotPreviouslyTriggered()};
_.F.handleYtItemSectionContinuation=function(M,d){var N;d&&((N=this.data)==null?void 0:N.sectionIdentifier)!==d||(this.set("data.continuations",[M]),this.triggerContinuations())};
_.F.handleYtItemSectionReplace=function(M,d){var N;d&&((N=this.data)==null?void 0:N.sectionIdentifier)!==d||(this.set("data.contents",M),this.set("data.continuations",[]))};
_.F.computeUseHeightHack=function(M){return M&&!_.Q("kevlar_disable_height_hack")};
_.F.computeTopSpacingZero=function(M){return M};
_.F.continuationShowButtonChanged=function(){var M=_.K(this.hostElement).querySelector("ytd-continuation-item-renderer");M&&(M.showButton=this.continuationShowButton)};
_.F.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("data-changed",this.data))};
_.Hm.Object.defineProperties(qK.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Q("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R,X,A,l;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:(R=N.shelfRenderer)==null?0:(X=R.content)==null?0:(A=X.gridRenderer)==null?0:(l=A.targetId)==null?0:l.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d[0])==null?0:N.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.El("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Q("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Q("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14387_cachedViewportHeight-130)/150)},
set:function(){}}});
qK.prototype.dataChangedForBinding=qK.prototype.dataChangedForBinding;qK.prototype.continuationShowButtonChanged=qK.prototype.continuationShowButtonChanged;qK.prototype.onYtDismissibleItemDismissedChange=qK.prototype.onYtDismissibleItemDismissedChange;qK.prototype.observeDataContentsLength=qK.prototype.observeDataContentsLength;qK.prototype.dataChanged=qK.prototype.dataChanged;qK.prototype.onServiceRequestCompleted=qK.prototype.onServiceRequestCompleted;qK.prototype.onLoadReloadContinuation=qK.prototype.onLoadReloadContinuation;
qK.prototype.onRetrieveLocation=qK.prototype.onRetrieveLocation;qK.prototype.commentsHidePanelButtonChanged=qK.prototype.commentsHidePanelButtonChanged;qK.prototype.updateLockupContainerTypes=qK.prototype.updateLockupContainerTypes;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],qK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],qK.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],qK.prototype,"ytNextContinuationBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],qK.prototype,"ytContinuationHandlerBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],qK.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qK.prototype,"darkerPanels",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"engagementPanel",void 0);
_.G([_.H(),_.a("design:type",Object)],qK.prototype,"commentsHidePanelButton",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isWatchGrid",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"continuationShowButton",void 0);_.G([_.H({computed:"computeIsContinuationCommentSection(data)"}),_.a("design:type",Boolean)],qK.prototype,"continuationIsCommentsSection",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],qK.prototype,"autoFill",void 0);
_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"continuationDisablePrescanVisibility",void 0);_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"isReloading",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isConstrainedList",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isWatch",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"eligibleToSwitchToGrid",void 0);
_.G([_.H({selector:_.KX}),_.a("design:type",Object)],qK.prototype,"isGridViewEnabled",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.a("design:type",Object)],qK.prototype,"epRestyle",void 0);_.G([_.z("isWatch"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"hideShortsShelfHeader",null);
_.G([_.z("isSearch","isWatch"),_.a("design:type",String),_.a("design:paramtypes",[])],qK.prototype,"thumbnailWidth",null);_.G([_.z("isSearch","isWatch"),_.a("design:type",String),_.a("design:paramtypes",[])],qK.prototype,"sizing",null);_.G([_.z("isWatch","isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],qK.prototype,"lockupContainerType",null);
_.G([_.xB("lockupContainerType","data"),_.a("design:type",Function),_.a("design:paramtypes",[Number]),_.a("design:returntype")],qK.prototype,"updateLockupContainerTypes",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],qK.prototype,"pageSubtype",void 0);_.G([_.H({computed:"computeContainerWidth()"}),_.a("design:type",Number)],qK.prototype,"containerWidth",void 0);_.G([_.H(),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isPlaylist",null);
_.G([_.H(),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isClipList",null);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"isCarouselInFeed",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isPlaylistVideoContainer",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"isSearchFrictionPage",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.a("design:type",Boolean)],qK.prototype,"useHeightHack",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.a("design:type",Object)],qK.prototype,"topSpacingZero",void 0);_.G([_.H({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.a("design:type",Boolean)],qK.prototype,"showButton",void 0);
_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"firstCommentsLoaded",void 0);_.G([_.H(),_.a("design:type",Object)],qK.prototype,"continuationIsInitialLoad",void 0);_.G([_.H(),_.a("design:type",Boolean)],qK.prototype,"isSearchDova",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0}),_.a("design:type",Boolean)],qK.prototype,"itemDismissed",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.a("design:type",String)],qK.prototype,"sectionIdentifier",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.a("design:type",String)],qK.prototype,"fitContainer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.a("design:type",Boolean)],qK.prototype,"hasDestinationShelfRenderer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.a("design:type",Boolean)],qK.prototype,"staticCommentsHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qK.prototype,"enableSqueezebackPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],qK.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.a("design:type",Boolean)],qK.prototype,"hasSectionGroupViewModel",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.a("design:type",Boolean)],qK.prototype,"suppressDisclaimerSeparator",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.a("design:type",String)],qK.prototype,"headerStyle",void 0);_.G([_.z("isSearch"),_.a("design:type",Object),_.a("design:paramtypes",[])],qK.prototype,"lockupExperiments",null);
_.G([_.z("isSearch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qK.prototype,"typographyBump",null);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],qK.prototype,"header",void 0);_.G([_.xB("commentsHidePanelButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"commentsHidePanelButtonChanged",null);
_.G([_.C3("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],qK.prototype,"onRetrieveLocation",null);_.G([_.C3("yt-load-reload-continuation"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Function]),_.a("design:returntype")],qK.prototype,"onLoadReloadContinuation",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"onServiceRequestCompleted",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"dataChanged",null);_.G([_.NS("data.contents.length"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"observeDataContentsLength",null);
_.G([_.C3("yt-dismissible-item-dismissed"),_.C3("yt-dismissible-item-undismissed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],qK.prototype,"onYtDismissibleItemDismissedChange",null);_.G([_.xB("continuationShowButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"continuationShowButtonChanged",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qK.prototype,"dataChangedForBinding",null);qK=_.G([_.f({is:"ytd-item-section-renderer",disableElementRegistration:!0})],qK);
_.L(qK,"ytd-item-section-renderer",function(){if(LaL!==void 0)return LaL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return LaL=M},{mode:1});var Q3m;var Ctq=_.ep(_.le("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var GlZ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var qQz={},ubL=(qQz[0]={title:_.ue(_.le("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ue(_.le("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:aD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},qQz[1]={title:_.ue(_.le("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:aD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},qQz);_.pO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Iy=function(){var M=_.n.apply(this,arguments)||this;M.allVideosCount=0;M.allPlaylistCount=0;M.shouldRenderDownloadsBanner=!1;M.hasOptedIntoSmartDownloads=!1;M.areAllSmartDownloadsDeleted=!1;M.smartDownloadsCompleted=!1;return M};
_.v(Iy,_.n);Iy.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Iy.prototype.attached=function(){this.downloadsToRenderChanged()};
Iy.prototype.detached=function(){this.set("renderableData",{})};
Iy.prototype.downloadsToRenderChanged=function(){var M=_.iY().getState().entities,d=_.mZ(M),N=_.Q("kevlar_playlist_dl_page_killswitch")?O9q(M):_.hT(M),R=_.hKZ(M),X=_.D4(d);M=_.QQ(M);this.set("renderableData",YkA(N,d,R,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,X,M))};
Iy.prototype.downloadsToRenderChanged=Iy.prototype.downloadsToRenderChanged;_.G([_.S(_.Op),_.a("design:type",Object)],Iy.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Iy.prototype,"renderableData",void 0);_.G([_.H({selector:_.eKZ}),_.a("design:type",Object)],Iy.prototype,"allVideosCount",void 0);_.G([_.H({selector:$6i}),_.a("design:type",Object)],Iy.prototype,"allPlaylistCount",void 0);_.G([_.H({selector:_.GQ6}),_.a("design:type",Object)],Iy.prototype,"shouldRenderDownloadsBanner",void 0);_.G([_.H({selector:_.a1r}),_.a("design:type",Object)],Iy.prototype,"hasOptedIntoSmartDownloads",void 0);
_.G([_.H({selector:_.UsA}),_.a("design:type",Object)],Iy.prototype,"areAllSmartDownloadsDeleted",void 0);_.G([_.H({selector:u6A}),_.a("design:type",Object)],Iy.prototype,"smartDownloadsCompleted",void 0);_.G([_.NS("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Iy.prototype,"downloadsToRenderChanged",null);
Iy=_.G([_.f({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Iy);
_.L(Iy,"ytd-offline-item-section-renderer",function(){if(Q3m!==void 0)return Q3m;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Q3m=M},
{mode:1});var IwL;var vzL;var vZ=function(){return _.n.apply(this,arguments)||this};
_.v(vZ,_.n);
vZ.prototype.onDataChanged=function(){if(this.JSC$14414_lastData){var M=this.getFilterClass(this.JSC$14414_lastData.status);M&&this.hostElement.classList.remove(M)}var d;(M=this.getFilterClass((d=this.data)==null?void 0:d.status))&&this.hostElement.classList.add(M);M==="selected"?_.K(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.K(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");M==="disabled"?_.K(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.K(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14414_lastData=this.data};
vZ.prototype.getFilterClass=function(M){switch(M){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
vZ.prototype.onDataChanged=vZ.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vZ.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vZ.prototype,"onDataChanged",null);vZ=_.G([_.f({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],vZ);
_.L(vZ,"ytd-search-filter-renderer",function(){if(vzL!==void 0)return vzL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return vzL=M},{mode:_.G3("kevlar_poly_si_batch_j075")?1:2});var O5=function(){return _.n.apply(this,arguments)||this};
_.v(O5,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],O5.prototype,"data",void 0);O5=_.G([_.f({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],O5);
_.L(O5,"ytd-search-filter-group-renderer",function(){if(IwL!==void 0)return IwL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return IwL=M},{mode:_.G3("kevlar_poly_si_batch_j075")?1:2});var Ope;var jL=function(){return _.n.apply(this,arguments)||this};
_.v(jL,_.n);jL.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.lc());this.isCollapsed=!this.isCollapsed};
jL.prototype.navigateToAboutTheseResultsPage=function(){var M=k8("https://www.youtube.com/howyoutubeworks/product-features/search/");M?_.oO(window,M,"_blank"):_.yD(Error("Sh"))};
jL.prototype.dataChanged=function(){this.isCollapsed=!0};
jL.prototype.computeShowBottomBorder=function(){var M,d,N;return!!((M=this.data)==null?0:(d=M.button)==null?0:d.toggleButtonRenderer)||!((N=this.data)==null||!N.aboutTheseResultsButton)};
jL.prototype.dataChanged=jL.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jL.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.a("design:type",Boolean)],jL.prototype,"showBottomBorder",void 0);_.G([_.H(),_.a("design:type",Boolean)],jL.prototype,"renderCollapsibleMenu",void 0);
_.G([_.H(),_.a("design:type",Boolean)],jL.prototype,"isCollapsed",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jL.prototype,"dataChanged",null);jL=_.G([_.f({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],jL);
_.L(jL,"ytd-search-sub-menu-renderer",function(){if(Ope!==void 0)return Ope;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ope=M},{mode:1});var j33;var s3g=new _.x5("SECTION_LIST_RENDERER_TOKEN");var P9J;var s5=function(){return _.n.apply(this,arguments)||this};
_.v(s5,_.n);s5.prototype.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],s5.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],s5.prototype,"headerStyle",void 0);s5=_.G([_.f({is:"ytd-text-header-renderer",disableElementRegistration:!0})],s5);
_.L(s5,"ytd-text-header-renderer",function(){if(P9J!==void 0)return P9J;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return P9J=M},{mode:1});var ozd;var PZ=function(){return _.n.apply(this,arguments)||this};
_.v(PZ,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PZ.prototype,"data",void 0);PZ=_.G([_.f({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],PZ);
_.L(PZ,"ytd-minor-moment-header-renderer",function(){if(ozd!==void 0)return ozd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ozd=M},{mode:1});var rFg;var oy=function(){return _.n.apply(this,arguments)||this};
_.v(oy,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oy.prototype,"data",void 0);oy=_.G([_.f({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],oy);
_.L(oy,"ytd-minor-moment-setting-alert-renderer",function(){if(rFg!==void 0)return rFg;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return rFg=M},{mode:1});var K5J;var yFV;var rX=function(){var M=_.n.apply(this,arguments)||this;M.booleanSettingById=!1;M.smartDownloadsEnabledVE=_.Tx(128287);M.smartDownloadsDisabledVE=_.Tx(128286);M.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return M};
_.v(rX,_.n);_.F=rX.prototype;_.F.attachSmartDownloadsSettingVes=function(){var M;this.activeVeForLogging||((M=this.data)==null?void 0:M.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.NT(_.Nx(),this.smartDownloadsEnabledVE),_.NT(_.Nx(),this.smartDownloadsDisabledVE))};
_.F.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.YP(this.hostElement,"yt-settings-switch-ready")};
_.F.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.F.onSwitchChange=function(M){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(M=_.cN(M).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.Q("kevlar_settings_switch_resolve_command_killswitch")?_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(M)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.F.handleUpdateSettingsSwitch=function(M){(M=_.q(M,pX3))&&this.data&&this.data.id===M.id&&this.set("data.enabled",!!M.enabled)};
_.F.onToggleSettingsSwitch=function(M,d){this.data&&this.data.id===M&&this.set("data.enabled",d!=null?d:!this.data.enabled)};
_.F.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.GQ.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.F.maybeLogSmartDownloadsSettingVisibility=function(){var M=_.Ou(),d;M&&((d=this.data)==null?void 0:d.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.zR(M,[this.smartDownloadsEnabledVE]),_.be(M,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.zR(M,[this.smartDownloadsDisabledVE]),_.be(M,[this.smartDownloadsEnabledVE])))};
_.F.maybeLogSmartDownloadsSettingClick=function(){var M;((M=this.data)==null?void 0:M.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.XD(_.Nx(),this.activeVeForLogging)};
_.F.updateDataEnabledFromBinding=function(M){this.set("data.enabled",M.detail.value)};
_.Hm.Object.defineProperties(rX.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!M&&(M=this.ytRendererBehavior.getSimpleString(this.data.title));return M}}});
rX.prototype.dataChanged=rX.prototype.dataChanged;_.G([_.S(_.Op),_.a("design:type",Object)],rX.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],rX.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],rX.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],rX.prototype,"data",void 0);_.G([_.H({selector:function(M,d){if(Object.keys(M==null?void 0:M.entities).length)switch(d){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return juA(M.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.a("design:type",Object)],rX.prototype,"booleanSettingById",void 0);_.G([_.H(),_.a("design:type",_.qw)],rX.prototype,"activeVeForLogging",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],rX.prototype,"toggleAriaLabel",null);_.G([_.NS("data"),_.NS("booleanSettingById"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rX.prototype,"dataChanged",null);
rX=_.G([_.f({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],rX);
_.L(rX,"ytd-settings-switch-renderer",function(){if(yFV!==void 0)return yFV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return yFV=M},{mode:1});var Km=function(){return _.n.apply(this,arguments)||this};
_.v(Km,_.n);Km.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}}}}};
_.Hm.Object.defineProperties(Km.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var M=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(M+=" remove-left-margin");this.data.extraBottomSpace&&(M+=" extra-bottom-space");return M}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Km.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Km.prototype,"contentsClassName",null);Km=_.G([_.f({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Km);
_.L(Km,"ytd-minor-moment-setting-section-renderer",function(){if(K5J!==void 0)return K5J;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return K5J=M},{mode:1});var JFV;var yS=function(){return _.n.apply(this,arguments)||this};
_.v(yS,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],yS.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yS.prototype,"data",void 0);yS=_.G([_.f({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],yS);
_.L(yS,"ytd-empty-product-details-renderer",function(){if(JFV!==void 0)return JFV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return JFV=M},{mode:1});var cFV;var SQd;var Jf=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!0;return M};
_.v(Jf,_.n);Jf.prototype.getBadgeRowClass=function(M,d,N){for(var R=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),X=R.next();!X.done;X=R.next())X.value.onShow();M=M.selected;return N?M!==-1?M===d?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(M!==void 0?M:0)===d?"badge-line":"badge-hidden"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jf.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Jf.prototype,"expanded",void 0);Jf=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Jf);
_.L(Jf,"ytd-sponsorships-loyalty-badges-renderer",function(){if(SQd!==void 0)return SQd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return SQd=M},{mode:1});var z8d;var cZ=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!0;return M};
_.v(cZ,_.n);cZ.prototype.getContainerClasses=function(M,d){M=M?"expanded":"collapsed";d&&(M+=" item");return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],cZ.prototype,"expanded",void 0);cZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],cZ);
_.L(cZ,"ytd-sponsorships-perk-renderer",function(){if(z8d!==void 0)return z8d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return z8d=M},{mode:1});var bpd;var SL=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!0;return M};
_.v(SL,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SL.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],SL.prototype,"expanded",void 0);SL=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],SL);
_.L(SL,"ytd-sponsorships-perks-renderer",function(){if(bpd!==void 0)return bpd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bpd=M},{mode:1});var zW=function(){var M=_.n.apply(this,arguments)||this;M.isCollapsed=!1;return M};
_.v(zW,_.n);zW.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
zW.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
zW.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var M;this.expandCollapseButton=_.q((M=this.data)==null?void 0:M.expandButton,_.K9)}else{var d;this.expandCollapseButton=_.q((d=this.data)==null?void 0:d.collapseButton,_.K9)}};
zW.prototype.updateExpandCollapseButton=zW.prototype.updateExpandCollapseButton;zW.prototype.onDataChanged=zW.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zW.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zW.prototype,"isCollapsed",void 0);_.G([_.H(),_.a("design:type",Object)],zW.prototype,"expandCollapseButton",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zW.prototype,"onDataChanged",null);_.G([_.NS("data","isCollapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zW.prototype,"updateExpandCollapseButton",null);zW=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],zW);
_.L(zW,"ytd-sponsorships-expandable-perks-renderer",function(){if(cFV!==void 0)return cFV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return cFV=M},{mode:1});var e8V;var bj=function(){return _.n.apply(this,arguments)||this};
_.v(bj,_.n);bj.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bj.prototype,"data",void 0);bj=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],bj);
_.L(bj,"ytd-sponsorships-actionable-message-renderer",function(){if(e8V!==void 0)return e8V;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return e8V=M},{mode:1});var HpC;var eL=function(){return _.n.apply(this,arguments)||this};
_.v(eL,_.n);_.F=eL.prototype;_.F.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.F.getExpansionIcon=function(M){return M?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.F.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.F.computeMessageContainerStyle=function(M){var d=M.expandableItems?" style-clickable":"";return M.messageContainerStyle?M.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+d:"style-unspecified"+d};
_.F.isSinglePerk=function(M){return!!M.messageContainerStyle&&(M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.F.onExpandedChanged=function(){var M=this;if(this.expanded)for(var d=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),N=d.next();!N.done;N=d.next())N.value.onShow();_.bM(this,function(){_.YP(M.hostElement,"yt-refit")})};
_.F.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
eL.prototype.onDataChanged=eL.prototype.onDataChanged;eL.prototype.onExpandedChanged=eL.prototype.onExpandedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eL.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],eL.prototype,"expanded",void 0);
_.G([_.xB("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eL.prototype,"onExpandedChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eL.prototype,"onDataChanged",null);eL=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],eL);
_.L(eL,"ytd-sponsorships-expandable-message-renderer",function(){if(HpC!==void 0)return HpC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return HpC=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var nzo;var HZ=function(){return _.n.apply(this,arguments)||this};
_.v(HZ,_.n);HZ.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"}}}}};
HZ.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.q(this.data.endButton,_.K9).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
HZ.prototype.onDataChanged=HZ.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],HZ.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],HZ.prototype,"onDataChanged",null);
HZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],HZ);
_.L(HZ,"ytd-sponsorships-heading-renderer",function(){if(nzo!==void 0)return nzo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return nzo=M},{mode:1});var ip3;var nm=function(){return _.n.apply(this,arguments)||this};
_.v(nm,_.n);_.G([_.H(),_.a("design:type",Object)],nm.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);nm=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],nm);
_.L(nm,"ytd-sponsorships-links-renderer",function(){if(ip3!==void 0)return ip3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ip3=M},{mode:1});var fwz;var ij=function(){return _.n.apply(this,arguments)||this};
_.v(ij,_.n);_.F=ij.prototype;_.F.onDataChanged=function(){if(this.data&&this.data.expandableItems){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-button"))==null||M.setAttribute("role","button")}else{var d;(d=_.K(this.hostElement).querySelector("tp-yt-paper-button"))==null||d.removeAttribute("role")}};
_.F.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.F.getExpansionIcon=function(M){return M?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.F.getTileClasses=function(M){return M?"tile expandable-tile":"tile"};
_.F.getButtonDisabled=function(M){return M?void 0:""};
ij.prototype.onDataChanged=ij.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ij.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],ij.prototype,"expanded",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ij.prototype,"onDataChanged",null);
ij=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ij);
_.L(ij,"ytd-sponsorships-list-tile-renderer",function(){if(fwz!==void 0)return fwz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return fwz=M},{mode:1});var L5t;var tNz;var fm=function(){return _.n.apply(this,arguments)||this};
_.v(fm,_.n);fm.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fm.prototype,"data",void 0);fm=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],fm);
_.L(fm,"ytd-sponsorships-promotion-renderer",function(){if(tNz!==void 0)return tNz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return tNz=M},{mode:1});var GCd;var Lm=function(){return _.n.apply(this,arguments)||this};
_.v(Lm,_.n);Lm.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lm.prototype,"data",void 0);Lm=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Lm);
_.L(Lm,"ytd-sponsorships-purchase-option-renderer",function(){if(GCd!==void 0)return GCd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return GCd=M},{mode:1});var awt;var Ugd;var tf=function(){return _.n.apply(this,arguments)||this};
_.v(tf,_.n);_.G([_.H(),_.a("design:type",Object)],tf.prototype,"data",void 0);tf=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],tf);
_.L(tf,"ytd-ypc-offer-promo-renderer",function(){if(Ugd!==void 0)return Ugd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ugd=M},{mode:1});var GW=function(){return _.n.apply(this,arguments)||this};
_.v(GW,_.n);_.F=GW.prototype;
_.F.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"}}}}};
_.F.expansionCTA=function(M,d){return M&&(d?M.collapseCallToAction:M.expansionCallToAction)};
_.F.getExpansionIcon=function(M){return M?"arrow_drop_up":"arrow_drop_down"};
_.F.expansionCallToActionTap=function(){var M=this;this.expanded=!this.expanded;_.bM(this,function(){_.YP(M.hostElement,"yt-refit")})};
_.F.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var M,d=(M=this.data)==null?void 0:M.onVisible;d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.computeDisplayTitle=function(M){return!(!M||this.titledisplaystatus!=="show")};
_.F.computeDisplaySeparator=function(){return!1};
_.F.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
GW.prototype.onDataChanged=GW.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],GW.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GW.prototype,"data",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],GW.prototype,"expanded",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],GW.prototype,"purchaseButtonClicked",void 0);_.G([_.H({reflectToAttribute:!0,value:"show"}),_.a("design:type",String)],GW.prototype,"titledisplaystatus",void 0);_.G([_.H({computed:"computeDisplayTitle(data.title)"}),_.a("design:type",Boolean)],GW.prototype,"displayTitle",void 0);
_.G([_.H({computed:"computeDisplaySeparator(data)"}),_.a("design:type",Boolean)],GW.prototype,"displaySeparator",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GW.prototype,"onDataChanged",null);GW=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],GW);
_.L(GW,"ytd-sponsorships-tier-renderer",function(){if(awt!==void 0)return awt;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return awt=M},{mode:2});var ay=function(){return _.n.apply(this,arguments)||this};
_.v(ay,_.n);
ay.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ay.prototype,"data",void 0);ay=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],ay);
_.L(ay,"ytd-sponsorships-management-renderer",function(){if(L5t!==void 0)return L5t;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return L5t=M},{mode:1});var uJ3;var U5=function(){return _.n.apply(this,arguments)||this};
_.v(U5,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],U5.prototype,"data",void 0);U5=_.G([_.f({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],U5);
_.L(U5,"ytd-open-in-native-app-view-model",function(){if(uJ3!==void 0)return uJ3;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return uJ3=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var C9L;var xgV;var YQz=_.a1(["top-"]),Zpg=_.a1(["bottom-"]),EzC=_.a1(["left-"]),Mfe=_.a1(["right-"]),dCI={},N6V=function(M,d,N){M.removeAttribute("top-"+N);M.removeAttribute("bottom-"+N);M.removeAttribute("left-"+N);M.removeAttribute("right-"+N);d&&(d.top&&_.by([_.a2(YQz)],M,"top-"+N,d.top),d.bottom&&_.by([_.a2(Zpg)],M,"bottom-"+N,d.bottom),d.left&&_.by([_.a2(EzC)],M,"left-"+N,d.left),d.right&&_.by([_.a2(Mfe)],M,"right-"+N,d.right))};
dCI.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(M){var d,N=_.K((d=this.hostElement)!=null?d:this),R;d=this.cardItemBoxBehaviorMarginTargetId&&N?N.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(R=this.hostElement)!=null?R:this;N6V(d,M,"margin")},
cardItemContainerPaddingChanged_:function(M){var d,N=_.K((d=this.hostElement)!=null?d:this),R;d=this.cardItemBoxBehaviorPaddingTargetId&&N?N.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(R=this.hostElement)!=null?R:this;N6V(d,M,"padding")}}];var uj={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 RLg;var XtJ;var Cm=function(){return _.n.apply(this,arguments)||this};
_.v(Cm,_.n);Cm.prototype.textColorChanged_=function(){this.hostElement.style.color=uj[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Cm.prototype.textColorChanged_=Cm.prototype.textColorChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.G([_.S(dCI.YtCardItemBoxBehavior),_.a("design:type",Object)],Cm.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cm.prototype,"data",void 0);_.G([_.xB("data.textColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cm.prototype,"textColorChanged_",null);
Cm=_.G([_.w4({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Cm);
_.L(Cm,"yt-card-item-text-renderer",function(){if(XtJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RLg===void 0&&(RLg=document.createElement("template"));var R=RLg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XtJ=M}M=XtJ;return M},{mode:2});var FVJ;var AUd;var xm=function(){return _.n.apply(this,arguments)||this};
_.v(xm,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xm.prototype,"data",void 0);xm=_.G([_.w4({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],xm);
_.L(xm,"yt-card-item-badge-renderer",function(){if(AUd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;FVJ===void 0&&(FVJ=document.createElement("template"));var R=FVJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AUd=M}M=AUd;return M},{mode:2});var VfC;var l5J;var Ym=function(){return _.n.apply(this,arguments)||this};
_.v(Ym,_.n);Ym.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ym.prototype,"data",void 0);Ym=_.G([_.w4({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ym);
_.L(Ym,"yt-card-item-text-collection-renderer",function(){if(l5J===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;VfC===void 0&&(VfC=document.createElement("template"));var R=VfC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);l5J=M}M=l5J;return M},{mode:2});var $CC;var B6L;var ZN=function(){return _.n.apply(this,arguments)||this};
_.v(ZN,_.n);ZN.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]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZN.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],ZN.prototype,"iconSize",void 0);ZN=_.G([_.w4({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ZN);
_.L(ZN,"yt-card-item-text-with-button-renderer",function(){if(B6L===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;$CC===void 0&&($CC=document.createElement("template"));var R=$CC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);B6L=M}M=B6L;return M},{mode:2});var E5=function(){return _.n.apply(this,arguments)||this};
_.v(E5,_.n);E5.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],E5.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E5.prototype,"data",void 0);E5=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],E5);
_.L(E5,"ytd-commerce-cart-summary-line-item-renderer",function(){if(xgV!==void 0)return xgV;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return xgV=M},{mode:1});_.pO("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Mk=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;return M};
_.v(Mk,_.n);_.F=Mk.prototype;_.F.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"}}}}};
_.F.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.F.updateSummary=function(){var M=this.commerceCartCheckoutButtonEntity,d;if(((d=this.data)==null?0:d.cartButton)&&M.checkoutSummaryText){var N,R=SB((N=this.data)==null?void 0:N.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",zf(M.checkoutSummaryText));if(M.checkoutDetailText){var X;N=SB((X=this.data)==null?void 0:X.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",zf(M.checkoutDetailText))}if(M.checkoutAdditionalMetadataText){var A;
X=SB((A=this.data)==null?void 0:A.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",zf(M.checkoutAdditionalMetadataText))}}else M.estimatedTotalPrice&&(A=SB((R=this.data)==null?void 0:R.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",zf(M.estimatedTotalPrice)))};
_.F.updateIsHidden=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hidden=d)};
_.F.updateCheckoutButton=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isDisabled;d!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",d);var N;M=(N=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:N.innertubeCommand;M!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",M);var R;N=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutButtonText;N!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:N})};
Mk.prototype.entityChanged=Mk.prototype.entityChanged;_.G([_.S(_.Op),_.a("design:type",Object)],Mk.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mk.prototype,"fullWidth",void 0);_.G([_.H(),_.a("design:type",Object)],Mk.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Mk.prototype,"compact",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mk.prototype,"hidden",void 0);
_.G([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:uu6}),_.a("design:type",Object)],Mk.prototype,"commerceCartCheckoutButtonEntity",void 0);_.G([_.xB("commerceCartCheckoutButtonEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mk.prototype,"entityChanged",null);Mk=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Mk);
_.L(Mk,"ytd-commerce-cart-checkout-button-renderer",function(){if(C9L!==void 0)return C9L;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return C9L=M},{mode:2});var kEC;_.T6m={};
_.T6m.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",_.ux(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ux(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(M){!this.tappableItemBehaviorTapEnabled||M.keyCode!==13&&M.keyCode!==32||M.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var M=this.data.onTap;M.ypcGetCartEndpoint?(_.dU(this.hostElement,[M]),this.tappableItemBehaviorTapEnabled=!1):M.ypcOffersEndpoint?_.dU(this.hostElement,[M]):_.Ni(this.hostElement,[M],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(M){this.tappableItemBehaviorTapEnabled=!!M},
tappableItemBehaviorOnTapEnabledChanged_:function(){var M=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(M.setAttribute("tabIndex",0),M.setAttribute("role","button")):(M.removeAttribute("tabIndex"),M.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(M){M.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var DCL;var gXJ;var dj=function(){return _.n.apply(this,arguments)||this};
_.v(dj,_.n);dj.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.md("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.md("sharingToggleButtonAndDefaultButton")}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dj.prototype,"data",void 0);dj=_.G([_.w4({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],dj);
_.L(dj,"yt-card-item-actions-renderer",function(){if(gXJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;DCL===void 0&&(DCL=document.createElement("template"));var R=DCL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);gXJ=M}M=gXJ;return M},{mode:2});var WV3;var wto;var ptd;var mCe;var hLV;var Q7d;var Nk=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return M};
_.v(Nk,_.n);Nk.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Nk.prototype.handleDarkModeToggledAction_=function(M){this.isDarkTheme_=M};
Nk.prototype.computeThemeImage_=function(M,d){if(!M||!M.imageLight)return!1;this.isCircular_=M.isCircular;M.imageWidth&&(this.hostElement.style.width=M.imageWidth+"px");M.imageHeight&&(this.hostElement.style.height=M.imageHeight+"px");M.borderWidth&&(this.image.style.borderWidth=M.borderWidth+"px",this.image.style.borderStyle="solid");M.borderColor&&(this.image.style.borderColor=_.ml(M.borderColor));return d&&M.imageDark?M.imageDark:M.imageLight};
Nk.prototype.computeThemeIcon_=function(M){var d,N;if(!(M==null?0:(d=M.themedIcon)==null?0:(N=d.icon)==null?0:N.iconType))return!1;this.icon.style.color=uj[M.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(M.imageWidth||18)+"px";this.icon.style.height=(M.imageHeight||18)+"px";return _.C6(M.themedIcon.icon.iconType)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(dCI.YtCardItemBoxBehavior),_.a("design:type",Object)],Nk.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Nk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Nk.prototype,"data",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Nk.prototype,"fit",void 0);_.G([_.H(),_.a("design:type",Boolean)],Nk.prototype,"isDarkTheme_",void 0);_.G([_.H({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.a("design:type",Object)],Nk.prototype,"themeImage_",void 0);_.G([_.H({computed:"computeThemeIcon_(data)"}),_.a("design:type",Object)],Nk.prototype,"themeIcon_",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Object)],Nk.prototype,"isCircular_",void 0);
_.G([_.Z3("#image"),_.a("design:type",Object)],Nk.prototype,"image",void 0);_.G([_.Z3("#icon"),_.a("design:type",Object)],Nk.prototype,"icon",void 0);Nk=_.G([_.w4({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Nk);
_.L(Nk,"yt-themed-image-renderer",function(){if(Q7d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hLV===void 0&&(hLV=document.createElement("template"));var R=hLV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q7d=M}M=Q7d;return M},{mode:2});var R5=function(){return _.n.apply(this,arguments)||this};
_.v(R5,_.n);R5.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"}}}}};
R5.prototype.computeImagePlacement_=function(M){return M||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R5.prototype,"data",void 0);_.G([_.H({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.a("design:type",String)],R5.prototype,"imagePlacement",void 0);
R5=_.G([_.w4({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],R5);
_.L(R5,"yt-card-item-text-with-image-renderer",function(){if(mCe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ptd===void 0&&(ptd=document.createElement("template"));var R=ptd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);mCe=M}M=mCe;return M},{mode:2});var Xj=function(){return _.n.apply(this,arguments)||this};
_.v(Xj,_.n);Xj.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"}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xj.prototype,"data",void 0);Xj=_.G([_.w4({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Xj);
_.L(Xj,"yt-card-item-error-renderer",function(){if(wto===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;WV3===void 0&&(WV3=document.createElement("template"));var R=WV3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wto=M}M=wto;return M},{mode:2});var qZg;var I5d;_.pO("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Fj=function(){return _.n.apply(this,arguments)||this};
_.v(Fj,_.n);_.F=Fj.prototype;
_.F.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"}}}}};
_.F.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.F.backgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.backgroundColor;M=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.K(this.hostElement).querySelector("#main-content").style.backgroundColor=M};
_.F.headerPromoBackgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.headerPromoBackgroundColor;M=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.K(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=M};
_.F.errorRendererVisibilityChanged_=function(){var M=this.isExpanded_,d;this.isErrorRendererVisible_=!((d=this.data)==null||!d.errorRenderer)&&!M};
_.F.onYtToggleButton_=function(M,d){this.isExpanded_=d.toggled};
Fj.prototype.onYtToggleButton_=Fj.prototype.onYtToggleButton_;Fj.prototype.errorRendererVisibilityChanged_=Fj.prototype.errorRendererVisibilityChanged_;Fj.prototype.headerPromoBackgroundColorChanged_=Fj.prototype.headerPromoBackgroundColorChanged_;Fj.prototype.backgroundColorChanged_=Fj.prototype.backgroundColorChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(dCI.YtCardItemBoxBehavior),_.a("design:type",Object)],Fj.prototype,"ytCardItemBoxBehavior",void 0);_.G([_.S(_.T6m.YtTappableItemBehavior),_.a("design:type",Object)],Fj.prototype,"ytTappableItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fj.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Fj.prototype,"isExpanded_",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],Fj.prototype,"isErrorRendererVisible_",void 0);_.G([_.xB("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fj.prototype,"backgroundColorChanged_",null);_.G([_.xB("data.headerPromoBackgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fj.prototype,"headerPromoBackgroundColorChanged_",null);
_.G([_.xB("data.errorRenderer","isExpanded_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fj.prototype,"errorRendererVisibilityChanged_",null);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],Fj.prototype,"onYtToggleButton_",null);Fj=_.G([_.w4({is:"yt-card-item-renderer",disableElementRegistration:!0})],Fj);
_.L(Fj,"yt-card-item-renderer",function(){if(I5d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;qZg===void 0&&(qZg=document.createElement("template"));var R=qZg;N.call(d,R.content.cloneNode(!0),M.content.firstChild);I5d=M}M=I5d;return M},{mode:2});_.pO("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var AG=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;return M};
_.v(AG,_.n);_.F=AG.prototype;_.F.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.F.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.F.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,d=(M=this.commerceCartHeaderEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hidden=d)}};
_.F.updateTitle=function(){var M=this.commerceCartHeaderEntity.isDisabled,d,N,R=(N=_.q((d=this.data)==null?void 0:d.item,WMV))==null?void 0:N.headingRenderer;R&&(d=SB(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+d+".0.cardItemTextRenderer.textColor",M?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.F.updateSummaryText=function(){var M=this.commerceCartHeaderEntity;if(this.compact){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.item,WMV))==null?void 0:N.headingRenderer;R&&(d=SB(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+d+".1.cardItemTextRenderer.text",M.shortHeaderSummaryText?zf(M.shortHeaderSummaryText):M.headerSummaryText?zf(M.headerSummaryText):""))}else{var X;if(d=(X=_.q((R=this.data)==null?void 0:R.item,WMV))==null?void 0:X.additionalInfoRenderer)d=SB(d,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".text",M.headerSummaryText?zf(M.headerSummaryText):"")}};
_.F.updateCheckoutButton=function(){var M=this.commerceCartHeaderEntity,d,N,R=(N=_.q((d=this.data)==null?void 0:d.item,WMV))==null?void 0:N.additionalInfoRenderer;d=SB(R,"buttonRenderer");var X;N=(X=this.commerceCartHeaderEntity)==null?void 0:X.isButtonDisabled;var A;X=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonHidden;N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".buttonRenderer.isDisabled",N);X!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
X);var l;M=(l=M.checkoutButtonCommand)==null?void 0:l.innertubeCommand;M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+d+".buttonRenderer.command",M)};
AG.prototype.entityChanged=AG.prototype.entityChanged;_.G([_.S(_.Op),_.a("design:type",Object)],AG.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AG.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],AG.prototype,"compact",void 0);_.G([_.H({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(M,d){return _.Rz(M.entities,"commerceCartHeaderEntity",d)}}),
_.a("design:type",Object)],AG.prototype,"commerceCartHeaderEntity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],AG.prototype,"hidden",void 0);_.G([_.xB("commerceCartHeaderEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AG.prototype,"entityChanged",null);AG=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],AG);
_.L(AG,"ytd-commerce-cart-header-renderer",function(){if(kEC!==void 0)return kEC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kEC=M},{mode:1});var vXz;var O_3=_.m2(function(M,d){var N;return(N=M.onChangeCallback)==null?void 0:N.call(M,d)},1E3),j7z=_.SG(function(M){var d=M.data;
var N=M.iconMinus;M=M.iconPlus;var R=function(){return!!d().disabled},X=_.V(_.d0(0,void 0,"r56zNb")),A=X.next().value,l=X.next().value;
X={};X=_.xj("yt-spec-quantity-incrementer-shape__icon",(X["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return R()||A()===(d().onRemoveCommand?0:1)},X));
var k={};k=_.xj("yt-spec-quantity-incrementer-shape__icon",(k["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return A()>=d().maxValue||R()},k));
var T={};T=_.xj("yt-spec-quantity-incrementer-shape__text",(T["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return A()>d().maxValue},T["yt-spec-quantity-incrementer-shape__text--text-disabled"]=R,T));
var W=_.dT(function(){if(A()===1){var p,m;(m=(p=d()).onRemoveCommand)==null||m.call(p)}p=A()>d().maxValue?d().maxValue:A()-1;l(p);O_3(d(),p);return!1}),w=_.dT(function(){if(A()===d().maxValue)return!1;
var p=A()+1;l(p);O_3(d(),p);return!1});
_.QD(function(){l(d().value)});
return _.g("quantity-incrementer-shape",null,_.g("div",{class:"yt-spec-quantity-incrementer-shape"},_.g("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return A()===(d().onRemoveCommand?0:1)||R()},
"aria-label":function(){return A()!==1?d().minusLabel:d().minimumReachedLabel},
"on:click":W},_.g(_.$F,{model:{circular:!0}}),_.g("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.g("div",{class:X},N()))),_.g("div",{class:T},A),_.g("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return A()>=d().maxValue||R()},
"aria-label":function(){return A()!==d().maxValue?d().plusLabel:d().maximumReachedLabel},
"on:click":w},_.g(_.$F,{model:{circular:!0}}),_.g("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.g("div",{class:k},M())))))},"Bd");_.eC(_.SG(function(M){function d(){N().onRemoveCommand&&_.vz(N().onRemoveCommand)}
var N=M.data;var R=_.FT(mar,function(){return N().quantityIncrementerEntityKey});
return _.g("yt-quantity-incrementer-view-model",null,_.g(j7z,{data:function(){var X=N(),A;var l=R()?!((A=R())==null||!A.disabled):!1;var k;A=R()?(k=R())==null?void 0:k.quantity:N().quantity;return MgZ(X,l,d,A)},
iconMinus:function(){return _.g(_.Fc,{icon:"BAR_HORIZONTAL",className:_.ZH("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.g(_.Fc,{icon:"ADD",className:_.ZH("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Cd"),"yt-quantity-incrementer-view-model",{props:{data:_.cA}});var VI=function(){var M=_.n.apply(this,arguments)||this;M.compact=!1;M.hasQuantityIncrementer=!1;return M};
_.v(VI,_.n);VI.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"}}}};
VI.prototype.computeHasQuantityIncrementer=function(){var M;return!!_.q((M=this.data)==null?void 0:M.picker,hfI)};
VI.prototype.onLabelClick=function(){var M;(M=this.dropdownEl)==null||M.open()};
_.G([_.Z3("ytd-dropdown-renderer"),_.a("design:type",Object)],VI.prototype,"dropdownEl",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VI.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],VI.prototype,"quantityColor",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VI.prototype,"compact",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.a("design:type",Object)],VI.prototype,"hasQuantityIncrementer",void 0);VI=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],VI);
_.L(VI,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(vXz!==void 0)return vXz;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return vXz=M},{mode:1});var s73;var PSd;var lZ=function(){return _.n.apply(this,arguments)||this};
_.v(lZ,_.n);lZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
lZ.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
lZ.prototype.updateTitle=function(){var M=this.disabledCartItemEntity;M.disableActionName&&this.set("data.title",zf(M.disableActionName))};
lZ.prototype.updateButton=function(){var M,d=(M=this.disabledCartItemEntity.undoCommand)==null?void 0:M.innertubeCommand;d!==void 0&&(this.set("data.actionButton.buttonRenderer.command",d),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
lZ.prototype.entityChanged=lZ.prototype.entityChanged;_.G([_.S(_.Op),_.a("design:type",Object)],lZ.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(M,d){return _.Rz(M.entities,"disabledCartItemEntity",d)}}),
_.a("design:type",Object)],lZ.prototype,"disabledCartItemEntity",void 0);_.G([_.H(),_.a("design:type",Object)],lZ.prototype,"data",void 0);_.G([_.xB("disabledCartItemEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lZ.prototype,"entityChanged",null);lZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],lZ);
_.L(lZ,"ytd-disabled-cart-item-renderer",function(){if(PSd!==void 0)return PSd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return PSd=M},{mode:1});_.pO("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var $U=function(){var M=_.n.apply(this,arguments)||this;M.compact=!1;M.hidden=!1;M.errorHidden=!1;M.noOnTap=!1;return M};
_.v($U,_.n);_.F=$U.prototype;
_.F.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"}}}};
_.F.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.F.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var M=this.firstButtonElement;M.alignByText=!0;M.iconAlignByText=!0}};
_.F.computeNoOnTap=function(M){return!M};
_.F.updateQuantityColor=function(){if(this.pickerElement){var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.quantityColor;this.pickerElement.quantityColor=d}};
_.F.updateTotalPriceColor=function(){var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.totalPriceColor;if(d){var N;M=_.q((N=this.data)==null?void 0:N.quantityPicker,pAg);if(N=_.q(M==null?void 0:M.price,wAe))N.textColor=d}};
_.F.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hidden=d)}};
_.F.updateHideErrorMessage=function(){var M,d=(M=this.commerceCartItemEntity)==null?void 0:M.hideErrorMessage;d!==void 0&&(this.errorHidden=d)};
_.F.updateQuantity=function(){var M=this,d,N=(d=this.commerceCartItemEntity)==null?void 0:d.quantity,R;d=(R=this.commerceCartItemEntity)==null?void 0:R.totalPrice;if(N){this.updateTotalPriceColor();this.updateQuantityColor();var X;R=_.q((X=this.data)==null?void 0:X.quantityPicker,pAg);if(X=_.q(R==null?void 0:R.price,wAe))X.text=d?{simpleText:d.content}:void 0;if(d=_.q(R==null?void 0:R.picker,hfI))d.quantity=N;var A;if(X=(A=_.q(R==null?void 0:R.picker,JOV))==null?void 0:A.entries){A=!1;d=void 0;X=
_.V(X);for(R=X.next();!R.done;R=X.next())R=R.value,R.dropdownItemRenderer&&(d||(d=R.dropdownItemRenderer),R.dropdownItemRenderer.isSelected=!1,N===R.dropdownItemRenderer.int32Value&&(A=!0,R.dropdownItemRenderer.isSelected=!0));!A&&d&&(d.isSelected=!0)}_.bM(this,function(){var l;M.set("data.quantityPicker",_.wF.unsafeClone((l=M.data)==null?void 0:l.quantityPicker))})}};
$U.prototype.onYtRendererstamperFinished=$U.prototype.onYtRendererstamperFinished;$U.prototype.entityChanged=$U.prototype.entityChanged;_.G([_.H(),_.a("design:type",Object)],$U.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$U.prototype,"compact",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],$U.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$U.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(M,d){return _.Rz(M.entities,"commerceCartItemEntity",d)}}),
_.a("design:type",Object)],$U.prototype,"commerceCartItemEntity",void 0);_.G([_.H(),_.a("design:type",Object)],$U.prototype,"quantityPicker",void 0);_.G([_.H(),_.a("design:type",Object)],$U.prototype,"compactQuantityPicker",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$U.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$U.prototype,"errorHidden",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.a("design:type",Object)],$U.prototype,"noOnTap",void 0);_.G([_.Z3("ytd-commerce-cart-item-quantity-picker-renderer"),_.a("design:type",Object)],$U.prototype,"pickerElement",void 0);_.G([_.Z3("yt-button-renderer"),_.a("design:type",Element)],$U.prototype,"firstButtonElement",void 0);
_.G([_.xB("commerceCartItemEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$U.prototype,"entityChanged",null);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$U.prototype,"onYtRendererstamperFinished",null);$U=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],$U);
_.L($U,"ytd-commerce-cart-item-renderer",function(){if(s73!==void 0)return s73;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return s73=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var oXL;var rUL;var B7=function(){return _.n.apply(this,arguments)||this};
_.v(B7,_.n);B7.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}}}}}};
B7.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
B7.prototype.updateCheckoutLineItems=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.checkoutLineItems;d&&(M=d.map(function(N){a:{var R=N.price,X=N.description;switch(N.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":N={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:zf(X),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:zf(R),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:N={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:zf(X),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:zf(R),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 N}),this.set("data.summaryLineItems",M))};
B7.prototype.updateIsHidden=function(){var M,d=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;d!==void 0&&(this.hostElement.hidden=d)};
B7.prototype.entityChanged=B7.prototype.entityChanged;_.G([_.S(_.Op),_.a("design:type",Object)],B7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],B7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],B7.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:uu6}),_.a("design:type",Object)],B7.prototype,"commerceCartCheckoutButtonEntity",void 0);_.G([_.xB("commerceCartCheckoutButtonEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B7.prototype,"entityChanged",null);B7=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],B7);
_.L(B7,"ytd-commerce-cart-summary-renderer",function(){if(rUL!==void 0)return rUL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return rUL=M},{mode:1});var KVz={};KVz.InjectBehavior=[hUp.InjectBehavior];var yUo;var JUd;var kU=function(){return _.n.apply(this,arguments)||this};
_.v(kU,_.n);
kU.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:_.md("menuRenderer")}}};
kU.prototype.onMenuTap=function(M){M.stopPropagation()};
_.Hm.Object.defineProperties(kU.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var M,d;return!(((M=this.data)==null||!M.sectionHeading)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var M,d;return!(((M=this.data)==null||!M.image)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var M,d;return!(((M=this.data)==null||!M.menu)&&((d=this.data)==null?void 0:d.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.T6m.YtTappableItemBehavior),_.a("design:type",Object)],kU.prototype,"ytTappableItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kU.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.accessibilityData"),_.a("design:type",String),_.a("design:paramtypes",[])],kU.prototype,"ariaLabel",null);_.G([_.z("data.sectionHeading","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kU.prototype,"sectionHeadingVisible",null);_.G([_.z("data.image","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kU.prototype,"imageVisible",null);
_.G([_.z("data.menu","data.layout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kU.prototype,"menuVisible",null);kU=_.G([_.w4({is:"yt-activity-item-renderer",disableElementRegistration:!0})],kU);
_.L(kU,"yt-activity-item-renderer",function(){if(JUd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yUo===void 0&&(yUo=document.createElement("template"));var R=yUo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JUd=M}M=JUd;return M},{mode:2});var cUo;var SZV;var zLV;var b_I;var Tg=function(){return _.n.apply(this,arguments)||this};
_.v(Tg,_.n);
Tg.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"}}}}};
Tg.prototype.backgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Tg.prototype.backgroundColorChanged_=Tg.prototype.backgroundColorChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Tg.prototype,"data",void 0);
_.G([_.xB("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tg.prototype,"backgroundColorChanged_",null);Tg=_.G([_.w4({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Tg);
_.L(Tg,"yt-offer-item-upsell-renderer",function(){if(b_I===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;zLV===void 0&&(zLV=document.createElement("template"));var R=zLV;N.call(d,R.content.cloneNode(!0),M.content.firstChild);b_I=M}M=b_I;return M},{mode:2});_.pO("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var DP=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};M.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return M};
_.v(DP,_.n);_.F=DP.prototype;
_.F.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:_.md("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.F.computeContainerStyle_=function(M){return M};
_.F.computeContainerIsHidden_=function(M){return M&&!!M.isHidden};
_.F.computeShowSpinner_=function(M,d){return M&&d==="in-progress"};
_.F.computeShowMoreContentsButton_=function(M,d,N,R,X){return!(!(R&&R.length||X&&X.length&&N)||!M||d)};
_.F.onToggleButton_=function(M){var d=this;M.stopPropagation();this.isExpanded_=M.detail&&M.detail.toggled;var N,R;this.isExpanded_&&!this.data.continuationSection.length&&((N=this.data)==null?0:(R=N.continuation)==null?0:R.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.YP(this.hostElement,"yt-load-next-continuation",function(X){return d.getContinuationUrl_(d.data.continuation.onClickContinuationData,X)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.dU(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.F.onShowMoreContentsButtonClicked_=function(M){var d=this;M.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.YP(this.hostElement,"yt-load-next-continuation",function(N){return d.getContinuationUrl_(d.data.continuations[0].nextContinuationData,N)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.dU(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.F.getContinuationUrl_=function(M,d){var N=M.continuation;M=M.clickTrackingParams;var R=_.Ou();M&&R&&_.eD(R,_.At(M));return _.LF(d,{continuation:N})};
_.F.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var M=_.K(this.hostElement).querySelector("#continuation-section");M&&(M=M.querySelectorAll("ytmusic-item-section-renderer"))&&M.forEach(function(d){return d.classList.add("memberships-and-purchases")})};
_.F.dataChanged_=function(){var M;this.isExpanded_=!((M=this.data)==null||!M.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.F.updateCardOnClickCommand_=function(M){M=_.q(M,VVL);var d,N;this.data&&((d=this.data)==null?0:d.targetId)&&M&&M.targetId===((N=this.data)==null?void 0:N.targetId)&&M.onClickCommand&&(this.data.onClickCommand=M.onClickCommand,this.isOnClickCommand_=!0)};
_.F.backgroundColorChanged_=function(){var M,d=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=uj[d||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
DP.prototype.backgroundColorChanged_=DP.prototype.backgroundColorChanged_;DP.prototype.dataChanged_=DP.prototype.dataChanged_;DP.prototype.nextContinuationDataUpdated_=DP.prototype.nextContinuationDataUpdated_;DP.prototype.onToggleButton_=DP.prototype.onToggleButton_;_.G([_.S(_.j1),_.a("design:type",Object)],DP.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],DP.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],DP.prototype,"ytNextContinuationBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.G([_.S(KVz.InjectBehavior),_.a("design:type",Object)],DP.prototype,"injectBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DP.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],DP.prototype,"compact",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],DP.prototype,"isExpanded_",void 0);_.G([_.H({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.a("design:type",String)],DP.prototype,"containerStyle_",void 0);_.G([_.H({value:"not-started"}),_.a("design:type",String)],DP.prototype,"continuationStatus_",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.a("design:type",Boolean)],DP.prototype,"showSpinner_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],DP.prototype,"isOnClickCommand_",void 0);_.G([_.H({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.a("design:type",Boolean)],DP.prototype,"showMoreContentsButton_",void 0);
_.G([_.H({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(M,d){return!d||M.entities?null:_.Rz(M.entities,"cardItemContainerEntity",d)}}),
_.a("design:type",Object)],DP.prototype,"cardItemContainerEntity_",void 0);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DP.prototype,"onToggleButton_",null);_.G([_.C3("yt-next-continuation-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DP.prototype,"nextContinuationDataUpdated_",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DP.prototype,"dataChanged_",null);_.G([_.xB("data.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DP.prototype,"backgroundColorChanged_",null);DP=_.G([_.w4({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],DP);
_.L(DP,"yt-card-item-container-renderer",function(){if(SZV===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;cUo===void 0&&(cUo=document.createElement("template"));var R=cUo;N.call(d,R.content.cloneNode(!0),M.content.firstChild);SZV=M}M=SZV;return M},{mode:2});var gj=function(){return _.n.apply(this,arguments)||this};
_.v(gj,_.n);gj.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"}}}};
gj.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
gj.prototype.computeLoadingHidden=function(){var M;return!((M=this.commerceCartPageStateEntity)==null?0:M.cartActionInProgress)};
gj.prototype.updateNotification=function(){var M,d=(M=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:M.summaryText;d&&this.set("data.cartNotification",zf(d))};
gj.prototype.notificationEntityChanged=gj.prototype.notificationEntityChanged;_.G([_.S(_.Op),_.a("design:type",Object)],gj.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],gj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],gj.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(M,d){return _.Rz(M.entities,"commerceCartExpandableNotificationEntity",d)}}),
_.a("design:type",Object)],gj.prototype,"commerceCartExpandableNotificationEntity",void 0);_.G([_.H({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(M,d){return _.Rz(M.entities,"commerceCartPageStateEntity",d)}}),
_.a("design:type",Object)],gj.prototype,"commerceCartPageStateEntity",void 0);_.G([_.Z3("#spinner"),_.a("design:type",HTMLElement)],gj.prototype,"spinner",void 0);_.G([_.xB("commerceCartExpandableNotificationEntity","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gj.prototype,"notificationEntityChanged",null);gj=_.G([_.f({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],gj);
_.L(gj,"ytd-commerce-cart-renderer",function(){if(oXL!==void 0)return oXL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return oXL=M},{mode:1});var eLL;var W7=function(){var M=_.n.apply(this,arguments)||this;M.bigImage=!1;return M};
_.v(W7,_.n);_.Hm.Object.defineProperties(W7.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.placeholderImageUrl}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],W7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W7.prototype,"bigImage",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W7.prototype,"placeholderImageUrl",null);W7=_.G([_.f({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],W7);
_.L(W7,"ytd-empty-product-shelf-renderer",function(){if(eLL!==void 0)return eLL;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return eLL=M},{mode:1});var H_J;var wj=function(){var M=_.n.apply(this,arguments)||this;M.itemStyle="link-item";M.watchMetadataRefresh=!1;M.skinnyMode=!1;M.metaPanel=!1;M.inStructuredDescription=!1;M.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};M.updateOnResizeDebouncer=null;return M};
_.v(wj,_.n);_.F=wj.prototype;_.F.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.F.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"}}}}};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.F.attachVEs=function(M){M.trackingParams&&_.Nx().graftServerVe(M.trackingParams)};
_.F.handleUpdateMerchShelfAction=function(M){var d=this,N=_.q(M.updateMerchandiseShelfAction.merchandiseShelf,_.Ekg);N&&(N.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){d.attachVEs(N);d.data=N},Number(N.renderDelayMs))):(this.attachVEs(N),this.data=N))};
_.F.updateOnResize=function(){if(this.JSC$14582_scrollContainer!==void 0&&this.JSC$14582_scrollContainer.clientWidth!==0&&this.items!==void 0){var M=this.JSC$14582_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_();var d;switch((d=this.data)==null?void 0:d.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var N,
R;((N=this.data)==null?void 0:(R=N.items)==null?void 0:R.length)===1?this.itemStyle="cta-item":this.itemStyle=M>=740?"large-item":"small-item"}}};
_.F.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Rg(this.updateOnResizeDebouncer,_.GY.after(100),this.updateOnResize)};
wj.prototype.debouncedUpdateOnResize=wj.prototype.debouncedUpdateOnResize;wj.prototype.dataChanged=wj.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],wj.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],wj.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],wj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"itemStyle",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],wj.prototype,"initialCount",void 0);
_.G([_.H({value:"data.items"}),_.a("design:type",String)],wj.prototype,"itemsPath",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"watchMetadataRefresh",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"skinnyMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"metaPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wj.prototype,"inStructuredDescription",void 0);
_.G([_.Z3("#items"),_.a("design:type",HTMLDivElement)],wj.prototype,"items",void 0);_.G([_.Z3("#scroll-container"),_.a("design:type",HTMLDivElement)],wj.prototype,"JSC$14582_scrollContainer",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wj.prototype,"dataChanged",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wj.prototype,"debouncedUpdateOnResize",null);
wj=_.G([_.f({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],wj);
_.L(wj,"ytd-merch-shelf-renderer",function(){if(H_J!==void 0)return H_J;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return H_J=M},{mode:2});var nXI;var pr=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return M};
_.v(pr,_.n);_.F=pr.prototype;
_.F.addBackstagePostAction=function(M){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(M=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",M))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:M}):this.set("data.contents",[{backstagePostThreadRenderer:M}]))};
_.F.addBackstageCommentAction=function(M){var d=this.get("addBackstageCommentAction.parentId",M);M=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",M);if(d&&M){d=this.postIdToIndices(d);for(var N=0;N<d.length;N++){var R=d[N];if(R<0)break;R="data.contents."+R+".backstagePostThreadRenderer.comments";this.get(R)&&(this.get(R+".backstageCommentsRenderer.contents")&&this.push(R+".backstageCommentsRenderer.contents",{commentThreadRenderer:M}),this.get(R+".backstageCommentsRenderer.teaserContents")?
this.push(R+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:M}):this.set(R+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:M}]))}}};
_.F.addBackstageReplyAction=function(M){var d=this.get("addBackstageReplyAction.parentId",M);M=this.get("addBackstageReplyAction.renderer.commentRenderer",M);d&&M&&this.setCreatorReply(d,M)};
_.F.banAuthorAction=function(M){var d=this.get("banAuthorAction.commentId",M);d&&(M=this.get("banAuthorAction.parentCommentId",M)||this.getParentPostId(d),this.removeFromStream(d,M))};
_.F.hideReportedCommentAction=function(M){var d=this.get("hideReportedCommentAction.commentId",M);d&&((M=this.get("hideReportedCommentAction.parentCommentId",M))||(M=this.getParentPostId(d)),this.removeFromStream(d,M))};
_.F.replaceBackstageCommentAction=function(M){var d=this.get("replaceBackstageCommentAction.commentId",M),N=this.get("replaceBackstageCommentAction.parentId",M);M=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",M);if(d&&N&&M){N=this.postIdToIndices(N);for(var R=0;R<N.length;R++){var X=N[R];if(X<0)break;var A=this.commentIdToIndex(d,X,!1);if(A>=0){var l=this.get("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A+".commentThreadRenderer.replies.commentRepliesRenderer");
l&&(M.replies={commentRepliesRenderer:l});this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1,{commentThreadRenderer:M})}A=this.commentIdToIndex(d,X,!0);if(A>=0){if(l=this.get("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(A+".commentThreadRenderer.replies.commentRepliesRenderer")))M.replies={commentRepliesRenderer:l};this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
A,1,{commentThreadRenderer:M})}}}};
_.F.replaceBackstagePostAction=function(M){var d=this.get("replaceBackstagePostAction.itemId",M);if(d){d=this.postIdToIndices(d);for(var N=0;N<d.length;N++){var R=d[N];if(R<0)break;var X=this.getPostRendererType(R),A=this.get("replaceBackstagePostAction.renderer."+X,M);if(!A&&X!=="sharedPostRenderer")break;var l=!1;A||(l=!0,A=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",M));if(!A)break;var k={};l?(_.gk(k,l0L,A),this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
k)):(_.gk(k,new _.x(X),A),this.set("data.contents."+R+".backstagePostThreadRenderer.post",k))}}};
_.F.replaceBackstageReplyAction=function(M){var d=this.get("replaceBackstageReplyAction.replyId",M),N=this.get("replaceBackstageReplyAction.parentId",M);M=this.get("replaceBackstageReplyAction.renderer.commentRenderer",M);d&&M&&N&&this.setCreatorReply(N,M)};
_.F.removeCommentAction=function(M){var d=this.get("removeCommentAction.commentId",M);if(d){var N=this.get("removeCommentAction.parentCommentId",M);N&&this.get("removeCommentAction.isCreatorReply",M)?this.setCreatorReply(N,void 0):(N||(N=this.getParentPostId(d)),this.removeFromStream(d,N))}};
_.F.setCreatorReply=function(M,d){var N=this.getParentPostId(M);if(N){N=this.postIdToIndices(N);for(var R=0;R<N.length;R++){var X=N[R];if(X<0)break;var A=this.commentIdToIndex(M,X,!1);if(A>=0){var l="data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A;A=l+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";l+=".commentThreadRenderer.replies";d==void 0?(this.set(l,{}),this.set(A,!1)):(this.set(l,{commentRepliesRenderer:{teaserContents:[{commentRenderer:d}]}}),
this.set(l+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(A,!0))}A=this.commentIdToIndex(M,X,!0);A>=0&&(A="data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+A,X=A+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",A+=".commentThreadRenderer.replies",d==void 0?(this.set(A,{}),this.set(X,!1)):(this.set(A,{commentRepliesRenderer:{teaserContents:[{commentRenderer:d}]}}),this.set(X,!0)))}}};
_.F.removeFromStream=function(M,d){if(d){d=this.postIdToIndices(d);for(var N=0;N<d.length;N++){var R=d[N];if(R<0)break;var X=this.commentIdToIndex(M,R,!1);X>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",X,1);X=this.commentIdToIndex(M,R,!0);X>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",X,1);R="data.contents."+R+".backstagePostThreadRenderer.post.backstagePostRenderer";
X=R+".backstageAttachment.pollRenderer.votedCommentId";this.get(X)===M&&(this.set(X,null),this.set(R+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(d=this.postIdToIndices(M).reverse(),N=0;N<d.length;N++){R=d[N];if(R<0)break;X=this.getPostRendererType(R);var A=this.get("backstagePostThreadRenderer.post."+X,this.data.contents[R]);A.postId===M?this.splice("data.contents",R,1):X==="sharedPostRenderer"&&this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);A.scheduledPublishTimeSec&&_.ZI(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.F.postIdToIndices=function(M){for(var d=[],N=0;N<this.data.contents.length;N++){var R=this.getPostRendererType(N);this.get("backstagePostThreadRenderer.post."+R+".postId",this.data.contents[N])===M&&d.push(N);if(R==="sharedPostRenderer"){var X=this.get("backstagePostThreadRenderer.post."+R+".originalPost.backstagePostRenderer.postId",this.data.contents[N]);R=this.get("backstagePostThreadRenderer.post."+R+".originalPost.postRenderer.postId",this.data.contents[N]);X!==M&&R!==M||d.push(N)}}return d};
_.F.commentIdToIndex=function(M,d,N){if(d<0)return-1;var R,X,A,l,k=_.q((R=this.data)==null?void 0:(X=R.contents)==null?void 0:(A=X[d])==null?void 0:(l=A.backstagePostThreadRenderer)==null?void 0:l.comments,AML);return(d=N?k==null?void 0:k.teaserContents:k==null?void 0:k.contents)&&d.length?d.findIndex(function(T){return _.q(T,S8e).comment.commentRenderer.commentId===M}):-1};
_.F.getParentPostId=function(M){M=M.split(".");if(M[1])return M[0]};
_.F.getPostRendererType=function(M){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[M])?"sharedPostRenderer":"backstagePostRenderer"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],pr.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pr.prototype,"data",void 0);pr=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-items"})],pr);
_.L(pr,"ytd-backstage-items",function(){if(nXI!==void 0)return nXI;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return nXI=
M},{mode:1});var i_o;_.kQ({is:"ytd-comments",_template:function(){if(i_o!==void 0)return i_o;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return i_o=M},
behaviors:[_.Igv.YtHostElementBehavior,_.z1.YtPlayerListenerBehavior,_.E.YtRendererBehavior,_.tK.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(M){M&&M.value&&M.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(M){M&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.ID("wn_comments");var M=_.Ou();M&&_.qi({clientScreenNonce:M},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(M){M=d4i(M);var d,N,R;if(M=(d=M)==null?void 0:(N=d.createCommentAction)==null?void 0:(R=N.contents)==null?void 0:R.commentThreadRenderer){var X,A,l,k,T,W;!this.isBackstage&&((X=this.data)==null?0:(A=X.header)==null?0:(l=A.commentsHeaderRenderer)==null?0:(k=l.createRenderer)==null?0:(T=k.commentSimpleboxRenderer)==null?0:(W=T.zeroStep)==null?0:W.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var w,p,m,I;this.isBackstage&&((w=this.data)==null?0:(p=w.header)==null?0:(m=p.commentsHeaderRenderer)==null?0:(I=m.zeroStateMessage)==null?0:I.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(M)}},
doReplyInsert_:function(M,d,N,R){R?this.splice(M,R,0,d):this.push(M,d)},
getRepliesPath_:function(M){return"data.contents."+M+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(M,d){M=this.getRepliesPath_(M);return d?M+".commentRepliesRenderer.teaserContents":M+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(M){M=d4i(M);var d,N,R=(d=M)==null?void 0:(N=d.createCommentReplyAction)==null?void 0:N.parentCommentId,X,A;if(d=(X=M)==null?void 0:(A=X.createCommentReplyAction)==null?void 0:A.contents)if(R=this.commentIdToIndex_(R),!(R<0))if(X=this.getRepliesPath_(R),this.get(X)){var l,k;M=(l=M)==null?void 0:(k=l.createCommentReplyAction)==null?void 0:k.replyToCommentId;l=this.getRepliesContentsPath_(R,!1);this.get(l)&&(k=this.get(l).length,X=l+"."+(k-1)+".continuationItemRenderer",
this.get(X+".button")?(X=this.replyIdToIndex_(M,R,!1),this.doReplyInsert_(l,d,X,k-1)):this.get(X)||(k=this.replyIdToIndex_(M,R,!1),this.doReplyInsert_(l,d,k,null)));l=this.getRepliesContentsPath_(R,!0);this.get(l)?(R=this.replyIdToIndex_(M,R,!0),(!M||R>=0)&&this.doReplyInsert_(l,d,R,null)):this.set(l,[d])}else this.set(X,{commentRepliesRenderer:{teaserContents:[d]}})},
hideReportedCommentAction_:function(M){var d,N=M==null?void 0:(d=M.hideReportedCommentAction)==null?void 0:d.commentId;if(N){var R;M=M==null?void 0:(R=M.hideReportedCommentAction)==null?void 0:R.parentCommentId;N=N.replace("#",".");M||(M=this.getParentCommentId_(N));this.remove_(N,M)}},
getParentCommentId_:function(M){M=M.split(".");if(M[1])return M[0]},
removeCommentAction_:function(M){var d,N=M==null?void 0:(d=M.removeCommentAction)==null?void 0:d.commentId;if(N){var R;M=M==null?void 0:(R=M.removeCommentAction)==null?void 0:R.parentCommentId;N=N.replace("#",".");M||(M=this.getParentCommentId_(N));this.remove_(N,M)}},
pinCommentAction_:function(M){M=d4i(M);var d,N,R=(d=M)==null?void 0:(N=d.pinCommentAction)==null?void 0:N.commentId;R&&(M=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",M))&&(this.remove_(R),this.insert_(M,!0))},
unpinCommentAction_:function(M){M=d4i(M);var d,N,R=(d=M)==null?void 0:(N=d.unpinCommentAction)==null?void 0:N.commentId;if(R){var X,A,l;if(M=(X=M.unpinCommentAction)==null?void 0:(A=X.actionResult)==null?void 0:(l=A.update)==null?void 0:l.commentThreadRenderer)this.remove_(R),this.insert_(M)}},
banAuthorAction_:function(M){var d,N=M==null?void 0:(d=M.banAuthorAction)==null?void 0:d.commentId;if(N){var R;M=M==null?void 0:(R=M.banAuthorAction)==null?void 0:R.parentCommentId;N=N.replace("#",".");M||(M=this.getParentCommentId_(N));this.remove_(N,M)}},
commentIdToIndex_:function(M){var d;return M&&(d=this.data)!=null&&d.contents?this.data.contents.findIndex(function(N){var R,X;return M===((N==null?void 0:(R=N.commentThreadRenderer)==null?void 0:R.commentViewModel)&&((X=_.q(N.commentThreadRenderer.commentViewModel,HeJ))==null?void 0:X.commentId))}):-1},
insert_:function(M,d){var N,R;if((N=this.data)==null?0:(R=N.contents)==null?0:R.some(function(A){return!(A==null||!A.commentThreadRenderer)}))for(N=0,R=this.data.contents.length;N<R;N++){var X=this.data.contents[N].commentThreadRenderer;
if(this.RenderingPriority[M.renderingPriority]>=this.RenderingPriority[X.renderingPriority]){d&&this.RenderingPriority[M.renderingPriority]==this.RenderingPriority[X.renderingPriority]?this.splice("data.contents",N,1,{commentThreadRenderer:M}):this.splice("data.contents",N,0,{commentThreadRenderer:M});break}}else this.set("data.contents",[{commentThreadRenderer:M}])},
doReplyRemove_:function(M,d,N){M=this.replyIdToIndex_(M,d,N);M<0||(d=this.getRepliesContentsPath_(d,N),this.splice(d,M,1))},
remove_:function(M,d){d=this.commentIdToIndex_(d);d<0?(d=this.commentIdToIndex_(M),d<0||this.splice("data.contents",d,1)):(this.doReplyRemove_(M,d,!1),this.doReplyRemove_(M,d,!0))},
replyIdToIndex_:function(M,d,N){if(d<0)return-1;d=this.getRepliesContentsPath_(d,N);d=this.get(d);if(!d||!d.length)return-1;N=0;for(var R=d.length;N<R;N++){var X=void 0,A=void 0;if(((X=d[N])==null?void 0:(A=X.commentViewModel)==null?void 0:A.commentId)===M)return N}return-1},
computeIsBackstage_:function(M){return!!M},
computeCanShowDefaultSpinner_:function(M,d){return d?(d=_.h().resolve(_.CF(_.em)))&&d.isOnWatch&&d.isOnWatch()?!(M&&(M.contents||M.header)):!1:!1},
onRetrieveLocation_:function(M,d){d&&d.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(M){_.ON(M,void 0,"wn_comments")},
reloadComments_:function(M){M&&M.reloadCommentsCommand&&M.reloadCommentsCommand.command&&M.reloadCommentsCommand.command.continuationCommand&&_.dU(this,[M.reloadCommentsCommand.command])}});var mW=function(){return _.MS.apply(this,arguments)||this};
_.v(mW,_.MS);_.F=mW.prototype;_.F.bindIf=function(M,d,N){return M?d:N};
_.F.bindIfDefined=function(M,d){return M!==void 0?M:d};
_.F.booleanString=function(M){return(!!M).toString()};
_.F.equals=function(){for(var M=_.wH.apply(0,arguments),d=M[0],N=1;N<M.length;N++)if(d!=M[N])return!1;return!0};
_.F.isGreaterThan=function(M,d){return M>d};
_.F.isLessThan=function(M,d){return M<d};
_.F.logicalAND=function(){for(var M=_.wH.apply(0,arguments),d=!!M[0],N=1;N<M.length;N++)d=d&&!!M[N];return d};
_.F.logicalOR=function(){for(var M=_.wH.apply(0,arguments),d=!!M[0],N=1;N<M.length;N++)d=d||!!M[N];return d};
_.F.toBool=function(M){return!!M};
mW.prototype.toBool=mW.prototype.toBool;mW.prototype.logicalOR=mW.prototype.logicalOR;mW.prototype.logicalAND=mW.prototype.logicalAND;mW.prototype.isLessThan=mW.prototype.isLessThan;mW.prototype.isGreaterThan=mW.prototype.isGreaterThan;mW.prototype.equals=mW.prototype.equals;mW.prototype.booleanString=mW.prototype.booleanString;mW.prototype.bindIfDefined=mW.prototype.bindIfDefined;mW.prototype.bindIf=mW.prototype.bindIf;mW=_.G([_.d4()],mW);_.f5L=[mW.prototype];var LVL;var tfe;var hG=function(){return _.n.apply(this,arguments)||this};
_.v(hG,_.n);hG.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
hG.prototype.onBackIconTap_=function(){window.history.back()};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hG.prototype,"data",void 0);hG=_.G([_.w4({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],hG);
_.L(hG,"yt-header-with-back-renderer",function(){if(tfe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;LVL===void 0&&(LVL=document.createElement("template"));var R=LVL;N.call(d,R.content.cloneNode(!0),M.content.firstChild);tfe=M}M=tfe;return M},{mode:2});var GEd;var a53;var QI=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(QI,_.n);_.F=QI.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M,this.setUrl())};
_.F.dataChanged=function(){var M=this;if(this.data){var d=this.setUrl();d&&_.Zk({destination:window,iframe:this.iframe,origin:_.Bsg(d.toString()),channelName:"yt-iframe",onMessage:function(N){(N=M.getCommunicationCommand(N.data))&&M.ytComponentBehavior.resolveCommand(N)},
onEstablished:function(){}})}};
_.F.setUrl=function(){if(this.data&&this.data.iframeUrl){var M=_.vf(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(M)return _.s0(this.iframe,M),M}};
_.F.getCommunicationCommand=function(M){var d;if((d=this.data)!=null&&d.onCommunicationCommandsMap){d=this.data.onCommunicationCommandsMap.find(function(X){return X.key===M});
if(d==null?0:d.value)return d==null?void 0:d.value;try{var N=Z4L(_.lL(M)),R=this.data.onCommunicationCommandsMap.find(function(X){return X.key===(N==null?void 0:_.rP(N,1))});
if(R==null?0:R.value)return R==null?void 0:R.value}catch(X){}}};
QI.prototype.dataChanged=QI.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],QI.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],QI.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QI.prototype,"data",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],QI.prototype,"isDarkTheme",void 0);_.G([_.Z3("#iframe"),_.a("design:type",HTMLIFrameElement)],QI.prototype,"iframe",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QI.prototype,"dataChanged",null);QI=_.G([_.w4({is:"yt-iframe-renderer",disableElementRegistration:!0})],QI);
_.L(QI,"yt-iframe-renderer",function(){if(a53===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;GEd===void 0&&(GEd=document.createElement("template"));var R=GEd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);a53=M}M=a53;return M},{mode:2});_.qk=function(M){_.DL.call(this);this.callback=M;this.bezier=new nQV(0,0,.4,0,.2,1,1,1);this.delay=new _.fH(this.next,window,this);this.JSC$14613_animating=!1;_.RW(this,this.delay)};
_.v(_.qk,_.DL);_.qk.prototype.isAnimating=function(){return this.JSC$14613_animating};
_.qk.prototype.start=function(M,d,N){this.config={from:M,to:d,duration:N,startTime:(0,_.Gs)()};this.JSC$14613_animating=!0;this.next()};
_.qk.prototype.stop=function(){this.delay.stop();this.JSC$14613_animating=!1;this.config=void 0};
_.qk.prototype.next=function(){if(this.config){var M=this.config,d=M.from,N=M.to,R=M.duration;M=M.startTime;var X=(0,_.Gs)()-M;M=this.bezier;R=fcg(M,X/R);if(R==0)M=M.y0;else if(R==1)M=M.y3;else{X=QR(M.y0,M.y1,R);var A=QR(M.y1,M.y2,R);M=QR(M.y2,M.y3,R);X=QR(X,A,R);A=QR(A,M,R);M=QR(X,A,R)}M=_.Ju(M,0,1);this.callback(d+(N-d)*M);M<1?this.delay.start():this.JSC$14613_animating=!1}};_.I5=new _.x5("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var UCg={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},CSz=function(M,d,N,R){_.DL.call(this);this.JSC$14621_miniAppId=M;this.localReleaseId=d;this.derivedDeviceInterface=N;this.isForeground=R;this.JSC$14621_playNonceResolver=new _.MX;this.playPingTimerId=NaN;this.playPingIntervalMs=_.ZR("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.ZR("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.Q("enable_displaying_ppn");this.JSC$14621_miniAppClientDataProvider=_.h().resolve(_.I5);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;upd(this);var X=setTimeout(function(){_.vh(new _.WJ("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14621_playNonceResolver.promise.then(function(){clearTimeout(X)})};
_.v(CSz,_.DL);var YZm=function(M,d){M.JSC$14621_playNonceResolver.resolve(d!=null?d:Qb(8));M.enableDisplayingPpn&&xCL(M).then(function(N){M.JSC$14621_miniAppClientDataProvider.clientData.set("post_play_nonce",N)})},xCL=function(M){return _.B(function(d){return d.nextAddress==1?_.D(d,M.JSC$14621_playNonceResolver.promise,2):d.return(d.yieldResult)})},upd=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$14621_playNonceResolver.promise,2);d=R.yieldResult;N={miniAppInfo:{externalPostId:M.JSC$14621_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:d,derivedDeviceInterface:M.derivedDeviceInterface}};_.qi(N);_.Vy(R)})},EXL=function(M){M.state!==0?_.vh(new _.WJ("[MiniAppPlayLogger] recordPlayStart failed with state "+UCg[M.state])):(M.state=1,v7(M,"ma_cl"),Og(M,"PLAY_EVENT_TYPE_PLAY_START"),Z_I(M))},MaV=function(M){M.isForeground=!1;
Og(M,"PLAY_EVENT_TYPE_PLAY_PAUSE")},d5V=function(M){M.state!==1&&M.state!==2?_.vh(new _.WJ("[MiniAppPlayLogger] recordPlayEnd failed with state "+UCg[M.state])):(M.state=3,window.clearInterval(M.playPingTimerId),M.playPingTimerId=NaN,w3p(),Og(M,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},NoI=function(M,d){M.state===2&&M.gameReady&&(M.firstClickRecorded?Date.now()-M.clickRecordedMs<M.playClickIntervalMs||(M.clickRecordedMs=Date.now(),Og(M,"PLAY_EVENT_TYPE_PLAY_CLICK")):d&&(v7(M,"ma_fua"),Og(M,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),M.firstClickRecorded=!0,M.clickRecordedMs=Date.now()))};
CSz.prototype.logError=function(M){var d=this,N;_.B(function(R){if(R.nextAddress==1)return M.metadata.externalPostId=d.JSC$14621_miniAppId,N=M.metadata,_.D(R,Promise.race([d.JSC$14621_playNonceResolver.promise,new Promise(function(X){setTimeout(function(){X("")},3E4)})]),2);
N.postPlayNonce=R.yieldResult;M.metadata.localReleaseId=d.localReleaseId;M.loggingError.level="WARNING";_.qZ(M.loggingError,M.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:M.metadata});_.Vy(R)})};
var RId=function(M,d,N,R){var X,A,l,k,T,W;_.B(function(w){if(w.nextAddress==1)return _.D(w,M.JSC$14621_playNonceResolver.promise,2);X=w.yieldResult;A={externalPostId:M.JSC$14621_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:X,sdkVersion:N,api:d};R!==void 0&&(A.networkRequestsMeasurement={networkRequests:_.Cy(R,1),cachedRequests:_.Cy(R,2),transferredBytes:_.Cy(R,3)},(l=R)==null?0:_.p5(l,u0,6))&&(A.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((k=_.uk(R,
u0,6))==null?void 0:yx(k,1))||"0",cacheHits:((T=_.uk(R,u0,6))==null?void 0:yx(T,2))||"0",cachedBytes:((W=_.uk(R,u0,6))==null?void 0:yx(W,3))||"0"});_.hQ("miniAppSdkUsage",A);_.Vy(w)})},FKI=function(M,d,N){var R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t;
_.B(function(C){if(C.nextAddress==1)return _.D(C,M.JSC$14621_playNonceResolver.promise,2);R=C.yieldResult;X={externalPostId:M.JSC$14621_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:R,sdkVersion:N,measurementWindow:{startTimestampMs:String(s1(d,1)),endTimestampMs:String(s1(d,2))},frameRate:{averageFrameTimeDeltaMs:oX(d,3),averageFrameIdleTimeMs:oX(d,4)}};_.p5(d,CG,5)&&(X.networkRequests={networkRequests:(A=Ns(d))==null?void 0:_.Cy(A,1),cachedRequests:(l=Ns(d))==null?void 0:_.Cy(l,2),transferredBytes:(k=
Ns(d))==null?void 0:_.Cy(k,3),sameOriginStatusCodeToCounts:X9J((T=Ns(d))==null?void 0:d$A(T,4)),crossOriginStatusCodeToCounts:X9J((W=Ns(d))==null?void 0:d$A(W,5))},(w=Ns(d))==null?0:_.p5(w,u0,6))&&(X.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((p=Ns(d))==null?void 0:(m=_.uk(p,u0,6))==null?void 0:yx(m,1))||"0",cacheHits:((I=Ns(d))==null?void 0:(O=_.uk(I,u0,6))==null?void 0:yx(O,2))||"0",cachedBytes:((y=Ns(d))==null?void 0:(c=_.uk(y,u0,6))==null?void 0:yx(c,3))||"0"});_.p5(d,
NPd,7)&&(X.gameCapture={averageFrameTimeDeltaMs:(e=_.uk(d,NPd,7))==null?void 0:oX(e,1),averageFrameIdleTimeMs:(t=_.uk(d,NPd,7))==null?void 0:oX(t,2)});_.hQ("miniAppPerformanceMetrics",X);_.Vy(C)})},A5L=function(M,d,N){var R,X;
return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.JSC$14621_playNonceResolver.promise,2);R=A.yieldResult;X={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:M.JSC$14621_miniAppId,postPlayNonce:R,miniAppReleaseId:M.localReleaseId},derivedDeviceInterface:M.derivedDeviceInterface,adTriggerType:d};X.rejectedReason=N||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.hQ("miniAppAdEvent",X);_.Vy(A)})};
CSz.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Og=function(M,d,N,R){N=N===void 0?{}:N;R=R===void 0?!1:R;var X,A,l,k;_.B(function(T){if(T.nextAddress==1)return X=M.isForeground,A=M.beforeReady,_.D(T,M.JSC$14621_playNonceResolver.promise,2);l=T.yieldResult;k={externalPostId:M.JSC$14621_miniAppId,localReleaseId:M.localReleaseId,derivedDeviceInterface:M.derivedDeviceInterface,postPlayNonce:l,type:d};N.sequenceGroup=l;k.playState=A?"PLAY_STATE_NOT_READY":X?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.hQ("miniAppPlayEvent",k,N);
R&&_.Qc();_.Vy(T)})},v7=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return N=(0,_.Gs)(),_.D(R,M.JSC$14621_playNonceResolver.promise,2);_.v1(d,N);_.Vy(R)})},Z_I=function(M){isNaN(M.playPingTimerId)&&(M.playPingTimerId=_.Rc(function(){M.state!==1&&M.state!==2?_.vh(new _.WJ("[MiniAppPlayLogger] reportPlayPing failed with state "+UCg[M.state])):Og(M,"PLAY_EVENT_TYPE_PLAY_PING")},M.playPingIntervalMs))},X9J=function(M){return Array.from(M.entries()).map(function(d){var N=_.V(d);
d=N.next().value;N=N.next().value;return{key:d,value:N}})};var VaL=_.ZR("show_mini_app_ad_frequency_cap_ms",0),lFz=function(){this.showAdIntervalMs=VaL;this.isRateLimited=!0},$53=function(M,d){setTimeout(function(){return M.isRateLimited=!1},M.showAdIntervalMs);
M.showMiniAppAdCommand=d.showMiniAppAdCommand;M.isEmbeddedInWebview=d.isEmbeddedInWebview;M.playLogger=d.playLogger},kXV=function(M,d){var N;
return _.B(function(R){if(R.nextAddress==1){if(!M.showMiniAppAdCommand||!M.isEmbeddedInWebview)return R.return(Bog(M,d,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(M.isRateLimited)return R.return(Bog(M,d,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));M.adResolver=new _.MX;N=IVV(new qKV,d);HC(M.showMiniAppAdCommand,v5e(N));M.isRateLimited=!0;setTimeout(function(){return M.isRateLimited=!1},M.showAdIntervalMs);
return _.D(R,M.adResolver.promise,2)}return R.return(R.yieldResult)})};
lFz.prototype.onAdFinished=function(M){M=cuL(M);var d;(d=this.adResolver)==null||d.resolve(M)};
var Bog=function(M,d,N){var R;return _.B(function(X){if(X.nextAddress==1)X=_.D(X,(R=M.playLogger)==null?void 0:A5L(R,Vgp(d),N),2);else{var A=X.return;var l=new JuL;l=_.CE(l,1,2);X=A.call(X,l)}return X})};var ToC=new _.x5("INNERTUBE_MANAGER_TOKEN");var D5J=function(){this.callbacks={}};
D5J.prototype.initialize=function(M){var d=this;this.callbacks=M;window.youtubewebview?window.youtubewebview.onmessage=function(N){gqV(d,N)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(N){gqV(d,N)})};
var gqV=function(M,d){if(d.data)try{var N=Z4L(d.data);if(_.zb(_.wP(N,1))!=null){var R=W83(_.rP(N,2));switch(_.rP(N,1)){case "yt-mini-app-load-audio-state":var X,A;(A=(X=M.callbacks).onAudioStateLoaded)==null||A.call(X,_.jS(R,Bh(R,jH,1)));break;case "yt-mute-mini-app":var l,k;(k=(l=M.callbacks).onMuteMiniApp)==null||k.call(l);break;case "yt-unmute-mini-app":var T,W;(W=(T=M.callbacks).onUnmuteMiniApp)==null||W.call(T);break;case "yt-playable-exit":var w,p;(p=(w=M.callbacks).onExit)==null||p.call(w);
break;case "yt-post-play-nonce":var m,I;(I=(m=M.callbacks).onPostPlayNonceReceived)==null||I.call(m,Ji(R,2,jH));break;case "yt-confirm-exit-mini-app":var O,y;(y=(O=M.callbacks).confirmExitMiniApp)==null||y.call(O);break;case "yt-confirm-exit-mini-app-edu":var c,e;(e=(c=M.callbacks).confirmExitMiniAppEdu)==null||e.call(c);break;case "yt-benchmarking-response":var t,C;(C=(t=M.callbacks).onNativeBenchmarkingMessageReceived)==null||C.call(t,Ji(R,2,jH));break;case "yt-mini-app-load-3p-consent-state":var U,
Fi;(Fi=(U=M.callbacks).multiplayer3pAckStateLoaded)==null||Fi.call(U,_.jS(R,Bh(R,jH,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var Y,$i;($i=(Y=M.callbacks).exitMiniAppSeenStateLoaded)==null||$i.call(Y,_.jS(R,Bh(R,jH,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var vj,Pj;(Pj=(vj=M.callbacks).onNavigateToNewMiniApp)==null||Pj.call(vj);break;case "yt-game-data-available":var sS,tL;(tL=(sS=M.callbacks).onGameDataAvailable)==null||tL.call(sS,Ji(R,2,jH));break;case "yt-pause-mini-app":var b2,
Hj;(Hj=(b2=M.callbacks).onPauseMiniApp)==null||Hj.call(b2);break;case "yt-resume-mini-app":var LZ,w3;(w3=(LZ=M.callbacks).onResumeMiniApp)==null||w3.call(LZ);break;case "yt-playable-ad-finished":var XY,jJ;(jJ=(XY=M.callbacks).onAdFinished)==null||jJ.call(XY,Ji(R,2,jH))}}else _.vh(Error("Th"))}catch(Ne){_.qZ(Error("Uh"))}else _.vh(Error("Vh"))};var $4p=function(M){this.rpcErrorCode=M};var j7=function(M,d,N){this.intervalMs=M;this.apiFunc=d;this.type=N;this.schedulerReady=!0};
j7.prototype.call=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1){if(d.type!==1&&M===d.cachedValue)return R.return();d.pendingApiRequestResolver||(d.pendingApiRequestResolver=new _.MX);N=d.pendingApiRequestResolver.promise;d.cachedValue=M;return _.D(R,WKV(d),2)}return R.return(N)})};
j7.prototype.flush=function(M){M=M===void 0?!1:M;var d=this;return _.B(function(N){return d.cachedValue===void 0?N.return():_.D(N,d.apiFunc(d.cachedValue,M),0)})};
var WKV=function(M){var d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!M.schedulerReady||!M.pendingApiRequestResolver)return X.return();M.schedulerReady=!1;d=M.pendingApiRequestResolver;M.pendingApiRequestResolver=void 0;_.Mv(X,2);if(M.cachedValue===void 0){X.jumpTo(4);break}return _.D(X,M.apiFunc(M.cachedValue),5);case 5:N=X.yieldResult,d.resolve(N);case 4:_.cJ(X,3);break;case 2:R=_.Fg(X),d.reject(R);case 3:setTimeout(function(){return _.B(function(A){M.schedulerReady=!0;return _.D(A,
WKV(M),0)})},M.intervalMs),_.Vy(X)}})};var TCZ=window.location.origin+"/miniapp_cloudsaves",BCv=[400,401],w9z=_.ZR("cloud_save_game_data_rate_limit_ms",3E3),hIL=function(M){var d=this;this.JSC$14665_miniAppId=M;this.loadAttempts=0;this.cloudSaveIntervalMs=w9z;this.initialDownloadDataSucceeded=!1;this.JSC$14665_playNonceResolver=new _.MX;this.scottyUploadRateLimiter=new j7(this.cloudSaveIntervalMs,function(N,R){return p9L(d,N,R)},2);
this.downloadDataPromise=m5z(this);this.downloadDataPromise.then(function(){d.initialDownloadDataSucceeded=!0}).catch(function(){})},QFV=function(M,d){d.then(function(N){return M.JSC$14665_playNonceResolver.resolve(N)})},q43=function(M){return _.B(function(d){return M.cachedData===void 0?d.return(M.downloadDataPromise):d.return(M.cachedData)})},IFV=function(M,d){return _.B(function(N){M.cachedData=d;
if(!M.initialDownloadDataSucceeded)throw Error("Wh");return _.D(N,M.scottyUploadRateLimiter.call(d),0)})},vqg=function(){return new Promise(function(M){setTimeout(M,1E3,"")})},O1C=function(M,d){var N,R;
return _.B(function(X){if(X.nextAddress==1)return N=M.JSC$14665_miniAppId,_.D(X,Promise.race([M.JSC$14665_playNonceResolver.promise,vqg()]),2);R={"X-YouTube-MiniAppId":N,"X-YouTube-PostPlayNonce":X.yieldResult};"DELEGATED_SESSION_ID"in _.Py&&ftj(d,R);return X.return(R)})},p9L=function(M,d,N){N=N===void 0?!1:N;
return _.B(function(R){return lz6()?_.Q("enable_cloud_save_error_popup_after_retry")?R.return(new Promise(function(X,A){var l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:l=0,k=!0,W=T=null;case 2:if(!(k&&l++<2)){p.jumpTo(4);break}_.Mv(p,5);return _.D(p,jFd(M,d,N),7);case 7:T=p.yieldResult;k=T.ok?!1:!BCv.includes(T.status);_.cJ(p,2);break;case 5:W=w=_.Fg(p);k=k8p(W);p.jumpTo(2);break;case 4:T?T.ok?(sg(M,w9z),X()):(sg(M,M.cloudSaveIntervalMs*2),A(Error("Xh`"+String(T.status),{cause:{rpcErrorCode:T.status}}))):
(sg(M,M.cloudSaveIntervalMs*2),A(W||Error("Yh"))),_.Vy(p)}})})):R.return(new Promise(function(X,A){var l,k;
return _.B(function(T){if(T.nextAddress==1){if(M.JSC$14665_miniAppId==="")return A(Error("Zh")),T.return();_.Mv(T,2);return _.D(T,jFd(M,d,N),4)}if(T.nextAddress!=2)return l=T.yieldResult,l.ok?(sg(M,w9z),X()):(sg(M,M.cloudSaveIntervalMs*2),A(Error("Xh`"+String(l.status),{cause:{rpcErrorCode:l.status}}))),_.cJ(T,0);k=_.Fg(T);sg(M,M.cloudSaveIntervalMs*2);A(k);_.Vy(T)})})):R.return()})},jFd=function(M,d,N){N=N===void 0?!1:N;
var R,X,A;return _.B(function(l){if(l.nextAddress==1)return R=_.UT((new TextEncoder).encode(d)),X=D4L(),_.D(l,O1C(M,X),2);A=l.yieldResult;return l.return(fetch(X,{method:"POST",body:new Blob([R]),headers:A,keepalive:N}))})},m5z=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1){if(!lz6())return R.return("");if(M.JSC$14665_miniAppId==="")throw Error("Zh");if(M.loadAttempts>2)return R.return(M.downloadDataPromise);_.Mv(R,2);return _.D(R,sFd(M),4)}if(R.nextAddress!=2)return d=R.yieldResult,R.return(d);N=_.Fg(R);if(k8p(N)&&++M.loadAttempts<2)return R.return(m5z(M));throw N;})},sFd=function(M){var d,N,R,X,A;
return _.B(function(l){switch(l.nextAddress){case 1:return _.Mv(l,2),d=D4L(),_.D(l,O1C(M,d),4);case 4:return N=l.yieldResult,_.D(l,fetch(d,{method:"GET",headers:N}),5);case 5:return R=l.yieldResult,R.ok?_.D(l,R.text(),6):l.return(Promise.reject(Error("$h`"+String(R.status),{cause:new $4p(R.status)})));case 6:return X=l.yieldResult,l.return((new TextDecoder).decode(_.lL(X)));case 2:return A=_.Fg(l),l.return(Promise.reject(A))}})},sg=function(M,d){M.cloudSaveIntervalMs=d;
M.scottyUploadRateLimiter.intervalMs=M.cloudSaveIntervalMs};
hIL.prototype.flush=function(){var M=this;return _.B(function(d){return M.initialDownloadDataSucceeded?_.D(d,M.scottyUploadRateLimiter.flush(!0),0):d.return()})};var PPm=Ms(Ej(1),Yc(1)),oqm=Ms(Ej(1),Yc(3)),P7=function(M){this.callbacks=M};
_.F=P7.prototype;_.F.onAudioToggled=function(M,d){(d===void 0||d)&&_.X5("yt-mini-app-is-audio-enabled",M,2592E3)};
_.F.onPause=function(){this.onAudioToggled(!1,!1)};
_.F.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.F.returnNativeBenchmarkingMessage=function(){};
_.F.sendGameData=function(){};
_.F.sendStartGameFrameCapture=function(){};
var gxZ=function(M,d,N){this.callbacks=M;var R=this;this.sdkVersion=new _.MX;this.channel=new QNI(_.Zk({destination:window,iframe:d,origin:(new URL(N.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var X=o5;var A=Ej(5);var l=new LSm;l=_.SS(l,1,1E4);A=_.EA(A,4,YeC,l);X(R,A);R.onAudioToggled(R.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){R.sdkVersion.resolve("")},1E4)};
_.v(gxZ,P7);_.F=gxZ.prototype;_.F.onAudioToggled=function(M,d){P7.prototype.onAudioToggled.call(this,M,d===void 0?!0:d);d=o5;var N=Ej(2),R=new itL;M=_.Eq(R,1,M);M=_.EA(N,3,YeC,M);d(this,M)};
_.F.onPause=function(){P7.prototype.onPause.call(this);o5(this,Ej(3))};
_.F.onResume=function(){P7.prototype.onResume.call(this);o5(this,Ej(4))};
_.F.returnNativeBenchmarkingMessage=function(M){var d=o5,N=Ej(6);var R=Yc(_.p5(M,Ge,1)?1:2);M=_.p5(M,Ge,1)?M:null;R=_.EA(R,5,Z6,M);d(this,Ms(N,R))};
_.F.sendGameData=function(M){var d=o5,N=Ej(7);M=_.EA(N,5,YeC,M);d(this,M)};
_.F.sendStartGameFrameCapture=function(){o5(this,Ej(9))};
var rj=function(M,d,N){var R,X,A;return _.B(function(l){if(l.nextAddress==1)return R=M.callbacks,X=R.onSdkCalled,A=d,_.D(l,M.sdkVersion.promise,2);X.call(R,A,l.yieldResult,N);_.Vy(l)})};
gxZ.prototype.onMessage=function(){var M=this;return vi3(Ru,function(d){var N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i,vj,Pj,sS,tL,b2,Hj,LZ,w3,XY,jJ,Ne,Vz,oI,$d,CJ,xd,Vq,uL,fg,M9,OV,UV,q$,BV;return _.B(function(fZ){switch(fZ.nextAddress){case 1:if(!Ai3(d.data))return _.vh(Error("ai")),fZ.return();N=_.K5(d.data,1);_.Q("enable_iframe_message_get_type_via_fields")&&(R=d.data,N=X=_.K5(R,1));switch(N){case 8:if(d.data.hasMetadata()){var WV=M.sdkVersion,V9=WV.resolve;var Qz=d.data.getMetadata();Qz=_.rP(Qz,
1);V9.call(WV,Qz);clearTimeout(M.sdkVersionTimeoutId)}break;case 6:return fZ.jumpTo(2);case 16:if(!_.mv(d.data,MSd,14,X6))return fZ.return();A=_.c_(d.data,MSd,14,X6);(k=(l=M.callbacks).onGameFrameReceived)==null||k.call(l,A);return fZ.return();case 17:if(!_.mv(d.data,E_J,15,X6))return fZ.return();(W=(T=M.callbacks).onGameAudioReceived)==null||W.call(T,_.c_(d.data,E_J,15,X6));return fZ.return();case 1:if(WV=_.c_(d.data,a7g,2,X6))switch(_.K5(WV,1)){case 1:M.callbacks.onFirstFrameReady();if(_.Q("enable_network_request_logging_on_game_events")&&
_.p5(WV,CG,4)){rj(M,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.uk(WV,CG,4));break}rj(M,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Qz=(V9=M.callbacks).onGameReady)==null||Qz.call(V9);if(_.Q("enable_network_request_logging_on_game_events")&&_.p5(WV,CG,4)){rj(M,"MINI_APP_SDK_API_GAME_READY",_.uk(WV,CG,4));break}rj(M,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.mv(WV,xc,3,Ubt))M.callbacks.onResourceLoaded(_.c_(WV,xc,3,Ubt))}return fZ.return();case 3:return fZ.jumpTo(3);case 4:return fZ.jumpTo(4);
case 2:return fZ.jumpTo(5);case 9:return fZ.jumpTo(6);case 10:return M.callbacks.onClick(),fZ.return();case 5:return fZ.jumpTo(7);case 11:if(!_.mv(d.data,aH,9,X6))return fZ.return();w=_.c_(d.data,aH,9,X6);(m=(p=M.callbacks).onBenchmarkingMessageReceived)==null||m.call(p,w);WV=d.reply;V9=Ej(1);Qz=Yc(1);var IC=new aH;var Qt=new Uint8Array(Uui(w,Bh(w,zXL,6))|0);IC=Fy(IC,5,zXL,_.zo(Qt,!1));Qz=_.EA(Qz,5,Z6,IC);WV.call(d,Ms(V9,Qz));return fZ.return();case 12:return fZ.jumpTo(8);case 13:return fZ.jumpTo(9);
case 15:if(!_.Q("enable_open_yt_content"))return d.reply(oqm),fZ.return();if(!_.mv(d.data,ZtV,12,X6))return d.reply(Ms(Ej(1),Yc(2))),fZ.return();WV=_.c_(d.data,ZtV,12,X6);I=_.rP(WV,1);M.callbacks.onOpenYTContent(I);d.reply(PPm);return fZ.return();case 14:return fZ.jumpTo(10);default:return fZ.return()}fZ.jumpTo(0);break;case 2:if(!_.mv(d.data,d9,5,X6))return fZ.return();V9=d.data;WV=Bh(V9,X6,5);V9=V9.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(WV=IG(V9,V9[_.II]|0,d9,WV))||(WV=d9[nJ])||
(WV=new d9,PV(WV.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),WV=d9[nJ]=WV);O=WV;WV=_.Uq(O,Uj,1,_.uC());y=_.V(WV);c=y.next();case 12:if(c.done){fZ.jumpTo(14);break}e=c.value;t=new _.WJ;t.level=_.K5(e,2)===1?"WARNING":"ERROR";C=wpv(e.getSource());return _.D(fZ,M.sdkVersion.promise,15);case 15:U={source:C,sdkVersion:fZ.yieldResult};_.WP(_.wP(e,6))!=null?(t.message=e.getMessage(),t.stack=_.rP(e,5),U.sdkErrorType=ppA(_.K5(e,6)),_.WP(_.wP(e,7))!=null&&(U.sdkApi=m4j(_.K5(e,7)))):t.stack=void 0;
Y=Fi=void 0;(Y=(Fi=M.callbacks).onError)==null||Y.call(Fi,{loggingError:t,metadata:U});c=y.next();fZ.jumpTo(12);break;case 14:return fZ.return();case 3:return _.Mv(fZ,16),WV=M.callbacks,V9=WV.onSave,Qz=_.c_(d.data,f7L,4,X6),Qz=_.rP(Qz,1),_.D(fZ,V9.call(WV,Qz),18);case 18:d.reply(PPm);_.cJ(fZ,17);break;case 16:return $i=_.Fg(fZ),vj=nQ,Pj=$i,sS=M.callbacks,tL="MINI_APP_SDK_API_SAVE_DATA",_.D(fZ,M.sdkVersion.promise,19);case 19:vj(Pj,sS,tL,fZ.yieldResult),d.reply(oqm);case 17:return _.D(fZ,rj(M,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return fZ.return();case 4:return _.Mv(fZ,21),_.D(fZ,M.callbacks.onLoad(),23);case 23:b2=fZ.yieldResult;WV=d.reply;V9=Ej(1);Qz=Yc(1);IC=new f7L;IC=_.VZ(IC,1,b2);Qz=_.EA(Qz,3,Z6,IC);WV.call(d,Ms(V9,Qz));_.cJ(fZ,22);break;case 21:return Hj=_.Fg(fZ),LZ=nQ,w3=Hj,XY=M.callbacks,jJ="MINI_APP_SDK_API_LOAD_DATA",_.D(fZ,M.sdkVersion.promise,24);case 24:LZ(w3,XY,jJ,fZ.yieldResult),d.reply(oqm);case 22:return _.D(fZ,rj(M,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return fZ.return();case 5:_.Mv(fZ,
26);M.callbacks.onSendHighScore(IW(_.c_(d.data,X_t,3,X6).getValue()));d.reply(Ms(Ej(1),Yc(1)));_.cJ(fZ,27);break;case 26:return Ne=_.Fg(fZ),Vz=nQ,oI=Ne,$d=M.callbacks,CJ="MINI_APP_SDK_API_SEND_SCORE",_.D(fZ,M.sdkVersion.promise,28);case 28:Vz(oI,$d,CJ,fZ.yieldResult),d.reply(oqm);case 27:return _.D(fZ,rj(M,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return fZ.return();case 6:if(!_.mv(d.data,FvL,8,X6)){fZ.jumpTo(30);break}WV=_.c_(d.data,FvL,8,X6);WV=_.K5(WV,1);return _.D(fZ,rj(M,m4j(WV)),30);case 30:return fZ.return();
case 7:return WV=d.reply,V9=Ej(1),Qz=Yc(1),IC=M.callbacks.getLanguage(),Qz=Fy(Qz,4,Z6,Si(IC)),WV.call(d,Ms(V9,Qz)),_.D(fZ,rj(M,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return fZ.return();case 8:if(!_.mv(d.data,Rxz,10,X6))return fZ.return();xd=_.c_(d.data,Rxz,10,X6);Vq=M.callbacks;uL=Vq.onSdkPerformanceUpdate;return _.D(fZ,M.sdkVersion.promise,33);case 33:return uL.call(Vq,xd,fZ.yieldResult),fZ.return();case 9:WV=d.data;V9=Bh(WV,X6,11);if(_.zb(_.wP(WV,V9))==null)return d.reply(Ms(Ej(1),Yc(2))),
fZ.return();fg=Ji(d.data,11,X6);M.callbacks.onShareInviteCode(fg);d.reply(PPm);return _.D(fZ,rj(M,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return fZ.return();case 10:if(_.mv(d.data,n_z,13,X6)){fZ.jumpTo(35);break}return _.D(fZ,M.callbacks.onShowMiniAppAd(2),36);case 36:return M9=fZ.yieldResult,d.reply(Ms(Ej(1),C53(M9))),_.D(fZ,rj(M,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return fZ.return();case 35:WV=_.c_(d.data,n_z,13,X6);a:switch(_.K5(WV,1)){case 1:WV={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:WV={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:WV={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}OV=WV;UV=OV.adType;q$=OV.sdkApi;WV=M.callbacks;V9=WV.onShowMiniAppAd;Qz=_.c_(d.data,n_z,13,X6);Qz=_.rP(Qz,2);return _.D(fZ,V9.call(WV,UV,Qz||void 0),38);case 38:return BV=fZ.yieldResult,d.reply(Ms(Ej(1),C53(BV))),_.D(fZ,rj(M,q$),39);case 39:return fZ.return()}})})};
var o5=function(M,d){_.B(function(N){M.channel.send(d);_.Vy(N)})},iB=function(M,d,N){this.callbacks=M;
var R=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;M=VvZ(d,(new URL(N.toString())).origin);this.gameSnacks=new bZV(M);this.gameSnacks.page.onReady(function(){R.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){R.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var X,A;(A=(X=R.callbacks).onGameReady)==null||A.call(X)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(X,A){try{R.callbacks.onSendHighScore(A)}catch(l){nQ(l,R.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(X,A){var l;return _.B(function(k){if(k.nextAddress==1)return _.Mv(k,2),_.D(k,R.callbacks.onSave(R.decoder.decode(A)),4);if(k.nextAddress!=2)return _.cJ(k,0);l=_.Fg(k);nQ(l,R.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return k.return()})});
this.gameSnacks.storage.onLoad(function(){var X,A;return _.B(function(l){if(l.nextAddress==1)return _.Mv(l,2),_.D(l,R.callbacks.onLoad(),4);if(l.nextAddress!=2)return X=l.yieldResult,l.return(R.encoder.encode(X));A=_.Fg(l);nQ(A,R.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return l.return(R.encoder.encode(""))})});
this.gameSnacks.init()};
_.v(iB,P7);iB.prototype.onAudioToggled=function(M,d){P7.prototype.onAudioToggled.call(this,M,d===void 0?!0:d);var N;(N=this.gameSnacks)==null||N.audio.update(M)};
iB.prototype.onPause=function(){P7.prototype.onPause.call(this);var M;(M=this.gameSnacks)==null||M.game.pause()};
iB.prototype.onResume=function(){P7.prototype.onResume.call(this);var M;(M=this.gameSnacks)==null||M.game.resume()};var r5L=hBA,KKg=_.SG(function(M){var d=M.data;var N=M.loadingProgress;M=_.V(_.d0("",void 0,"LYYTdd"));var R=M.next().value,X=M.next().value;M=_.V(_.d0(!1,void 0,"K0waae"));var A=M.next().value,l=M.next().value,k=[],T=function(){return"transform: scaleX("+(_.QJ(N)||0)+")"},W=null,w=function(){var O;
return(O=d()&&W)!=null?O:W=d().showAnniversaryAnimation?6:r5L()};
_.Wg(function(){var O;if(d().timeOutMessages&&((O=d().timeOutMessages)==null?0:O.length)){W=null;O=_.V(k);for(var y=O.next();!y.done;y=O.next())clearTimeout(y.value);k.length=0;QS2(d().timeOutMessages,k,X,l)}});
var p=function(){return!!d().persistentErrorMessageTitle},m=function(){return N!==void 0},I=function(){return d().title};
return _.g("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.g("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.g("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.g("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var O,y=(O=d().backgroundImage)==null?void 0:O.sources,c;return(y==null?0:y.length)?"background-image: url("+((c=y[0])==null?void 0:c.url)+")":
""}}),_.g("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.g(_.kV,{cond:function(){return!p()},
then:function(){var O={};return _.g("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.g("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.g(_.Yj,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+w()},
data:function(){var y="loading_animation_"+w();return{animationConfig:{name:y,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+y+".json",loop:!0,autoplay:!0}}}})),_.g("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.g(_.kV,{cond:I,
then:function(){return _.g("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},I)}}),_.g("p",{class:_.xj("mini-app-splash-screen-view-model-wiz__timeout-message",(O["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return A()},O)),
"aria-live":"polite"},R),_.g(_.kV,{cond:m,then:function(){return _.g("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.g("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:T}))}})))}}),_.g(_.kV,{cond:p,
then:function(){return _.g("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.g("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return d().persistentErrorMessageTitle}),_.g(_.kV,{cond:function(){return!!d().persistentErrorMessageDescription},
then:function(){return _.g("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return d().persistentErrorMessageDescription})}}))}})))},"Dd");var y5g=new _.x5("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var J5o=zT;zT=function(M){function d(N){if(N){var R,X;(R=N.__spec)==null||(X=R.didUnmount)==null||X.call(R);for(R=0;R<N.childNodes.length;R++)d(N.childNodes[R])}}
J5o==null||J5o(M);kj(function(){for(var N=0;N<M.length;N++)d(M[N])})};var c5V=_.SG(function(M){var d=M.data;var N=M.score;var R=M.formattedScore;var X=M.onScoreChanged;var A=M.isEmbeddedInWebview;var l=_.Hh(),k=function(){var I;return _.q(d==null?void 0:(I=d())==null?void 0:I.buttonViewModel,_.QM)},T=function(){var I;
return(N==null?void 0:N())||Number(d==null?void 0:(I=d())==null?void 0:I.lastScore)||0},W=function(){var I;
return(R==null?void 0:R())||((I=k())==null?void 0:I.title)||""},w,p=1;
if(M=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))M=Number(M),p=isNaN(M)?1:M/100;_.Wg(function(){X==null||X(T());var I;var O=_.ht((I=k())==null?void 0:I.onTap);if(O){I=_.q(O,jLz);var y,c,e;I=_.q(I==null?void 0:(y=I.panelLoadingStrategy)==null?void 0:(c=y.inlineContent)==null?void 0:(e=c.dialogViewModel)==null?void 0:e.customContent,OUL)}else I=void 0;if(y=I)y.score=W()});
M=_.dT(function(){var I,O,y=d==null?void 0:(I=d())==null?void 0:(O=I.loggingDirectives)==null?void 0:O.trackingParams;y&&_.FD(_.h().resolve(_.Vs),y);return!1});
_.IJ(function(){if(l.value){var I=l.value.querySelector("button"),O=k();I&&O&&qmq(I,O);La("yt-share-playable-with-high-score",function(){var y=T().toString(),c=d==null?void 0:d().onShareHighScoreCommand,e=d==null?void 0:d().highScoreShareClientParamIdentifier,t=A==null?void 0:A();c&&(t?(e=new gOI,y=_.VZ(e,2,y),HC(c,y.JSC$10157_serializeBinary())):e&&(_.h().resolve(y5g).clientParams.set(e,{miniAppClientParams:{highScore:y}}),Xpi(c,!1)))})}});
var m=function(){var I=k();I&&(N==null?0:N())&&I.accessibilityText&&(I.accessibilityText=I.accessibilityText.replace(w,W()));w=W();return{numberValue:T(),numberText:W(),heightPx:36,fontSizeMultiplier:p,shouldAnimate:!(N==null||!N())&&!0}};
return _.g("yt-mini-app-score-button-view-model",{class:function(){var I={};return _.ZH("mini-app-score-button-view-model-wiz",(I["mini-app-score-button-view-model-wiz--is-visible"]=T()!==0,I))},
el:l,"on:click":M},_.ez(!1,function(){return _.g("span",{style:"display:none;"},T)}),_.g(_.ho,{data:function(){var I;
return d==null?void 0:(I=d())==null?void 0:I.buttonViewModel}},{buttonViewModel:function(I){return _.g(_.o0,{data:I.data,
animatedTextProps:m})}}))},"Ed");var H1I=_.SG(function(M){var d,N=(d=_.F5("yt-mini-app-is-theater-mode-enabled"))!=null?d:!1,R=_.Q("enable_playable_container_save_button"),X=_.Q("enable_play_next_destination_page_in_toolbar");d={};return _.g("ytm-mini-app-top-bar-view-model",null,_.g("div",{class:_.xj("yt-mini-app-top-bar-view-model",(d["yt-mini-app-top-bar-view-model--mobile"]=!1,d["yt-mini-app-top-bar-view-model--desktop"]=!0,d))},_.g("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.g(_.kV,{cond:function(){var A;
return!!M.data().backButtonEdu&&!((A=M.isExitMiniAppSeen)==null?0:A.call(M))},
then:function(){return _.g(_.ho,{data:function(){return M.data().backButtonEdu}},{buttonViewModel:_.o0})},
else:function(){return _.g(_.ho,{data:function(){return M.data().backButton}},{buttonViewModel:_.o0})}}),_.g(_.kV,{cond:function(){return M.data().viewAllButton&&!0},
then:function(){return _.g(_.ho,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.o0})}}),_.g(_.kV,{cond:function(){return M.data().title&&!0},
then:function(){return _.g("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return M.data().title})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.g(_.kV,{cond:function(){var A;
return(A=M.isDesktopPlayPage)==null?void 0:A.call(M)},
then:function(){return _.g(_.GT,null,_.g(S4I,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview}),_.g(zIe,{enableSaveButton:function(){return _.QJ(R)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.g(b1o,{menuButton:function(){return M.data().menuButton}}))},
else:function(){return _.g(_.kV,{cond:function(){return!1},
then:function(){return _.g(_.ho,{data:function(){return M.data().playPageButton}},{buttonViewModel:function(A){return _.g(_.o0,{data:A.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.g(S4I,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview})}})}})),_.g("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.g(_.ho,{data:function(){return M.data().muteButton}},{toggleButtonViewModel:function(A){var l=A.data;
return _.g(_.I0,{data:function(){var k,T;return Object.assign({},l(),{isToggled:(T=(k=M.isAudioEnabled)==null?void 0:k.call(M))!=null?T:!0})},
onToggle:M.onAudioToggled,useOutlinedIcon:!0})}}),_.g(_.ho,{data:function(){return M.data().theatreModeButton}},{toggleButtonViewModel:function(A){var l=A.data;
return _.g("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.g(_.I0,{data:function(){return Object.assign({},l(),{isToggled:N})},
useOutlinedIcon:!0}))}}),_.g(eIg,{fullscreenButton:function(){return M.data().fullscreenButton}}),_.g(_.kV,{cond:function(){return _.QJ(X)&&M.data().viewAllButton&&!1},
then:function(){return _.g(_.ho,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.o0})}}),_.g(_.kV,{cond:function(){var A;
return!((A=M.isDesktopPlayPage)==null?0:A.call(M))},
then:function(){return _.g(_.GT,null,_.g(zIe,{enableSaveButton:function(){return _.QJ(R)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.g(b1o,{menuButton:function(){return M.data().menuButton}}))}}))))},"Fd");
H1I.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var b1o=_.SG(function(M){return _.g(_.ho,{data:M.menuButton},{buttonViewModel:_.o0})},"Gd"),zIe=_.SG(function(M){var d=M.enableSaveButton;
var N=M.saveButton;var R=M.isSaved;var X=M.onSaveToggled;return _.g(_.kV,{cond:function(){return d()&&!(N==null||!N())},
then:function(){return _.g(_.ho,{data:function(){var A=_.q(N==null?void 0:N(),_.qH),l;return{toggleButtonViewModel:Object.assign({},A,{isToggled:(l=R==null?void 0:R())!=null?l:!(A==null||!A.isToggled)})}}},{toggleButtonViewModel:function(A){return _.g(_.I0,{data:A.data,
onToggle:X})}})}})},"Hd"),S4I=_.SG(function(M){var d=M.highScoreButton;
var N=M.score;var R=M.formattedScore;var X=M.onScoreChanged;var A=M.isEmbeddedInWebview;return _.g(_.ho,{data:d},{miniAppScoreButtonViewModel:function(l){return _.g(c5V,{data:l.data,score:N,formattedScore:R,onScoreChanged:X,isEmbeddedInWebview:A})}})},"Id"),eIg=_.SG(function(M){M=M.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.g(_.GT,null):_.g(_.ho,{data:M},{buttonViewModel:_.o0})},"Jd");_.nqd=new _.x5("DESKTOP_CURRENT_PAGE");var aFo=_.SG(function(M){var d=M.data;var N=_.Q("force_active_time_logging_webview"),R=_.Q("skip_logs_after_end_event"),X=!1,A=new D5J,l=void 0,k=void 0,T=_.h().resolve(ToC),W=new lFz,w=void 0,p=void 0,m=[],I=void 0,O=void 0,y=!1,c=!1,e=!1,t=!1,C=new _.MX,U=_.h().resolve(y5g),Fi=_.h().resolve(_.I5),Y=_.h().resolve(_.CF(F1)),$i,vj=($i=_.h().resolve(_.CF(_.nqd)))==null?void 0:$i.getCurrentPage(),Pj=!1,sS=0,tL=function(Yi){Yi.preventDefault();return Yi.returnValue=""},b2;
M=_.V(_.d0(!((b2=_.F5("yt-mini-app-is-audio-enabled"))!=null&&!b2),void 0,"WhYQTd"));var Hj=M.next().value,LZ=M.next().value,w3;b2=_.V(_.d0(!((w3=_.F5("exit-mini-app-seen-state"))==null||!w3),void 0,"jxhCJb"));var XY=b2.next().value,jJ=b2.next().value;w3=_.V(_.d0(!1,void 0,"MuvDfe"));var Ne=w3.next().value,Vz=w3.next().value;w3=_.V(_.d0(void 0,void 0,"u9DLoc"));var oI=w3.next().value,$d=w3.next().value;w3=_.V(_.d0(void 0,void 0,"rykyJb"));var CJ=w3.next().value,xd=w3.next().value;w3=_.V(_.d0(!0,void 0,
"d8FUvf"));var Vq=w3.next().value,uL=w3.next().value;w3=_.V(_.d0(!1,void 0,"w3Yzvd"));var fg=w3.next().value,M9=w3.next().value;w3=_.V(_.d0(void 0,void 0,"ZhbHHc"));var OV=w3.next().value,UV=w3.next().value;w3=_.V(_.d0(0,void 0,"qHHGUc"));var q$=w3.next().value,BV=w3.next().value,fZ=_.e5(),WV=function(){return d().isEmbeddedInWebview},V9=function(){return d().hasPlayNextShelf};
La("yt-page-type-changed",function(Yi){if(_.Q("enable_is_mini_app_page_active_bugfix"))Yi.detail.newPageSubtype!=="mini_app"&&Vq()&&Qt();else if(Yi=_.qvN()==="mini_app",Yi!==Vq())if(uL(Yi),Yi){var pJ;Yi=(pJ=d().playableId)==null?void 0:pJ.toString();Yi!==void 0&&window.location.href.includes(Yi)&&!c&&(t=!0,Qz(),FL(gq.value))}else Yi||Qt()});
La("yt-action",function(Yi){Yi.detail.actionName==="yt-engagement-panel-visible-changed"&&Yi.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Yi.detail.args[2]==="PAmini_app_panel"&&Qt();_.Q("enable_is_mini_app_page_active_bugfix")?Yi.detail.actionName==="yt-history-load"&&!Vq()&&(vj==null?0:vj.active)?(uL(!0),Qz(),FL(gq.value)):Yi.detail.actionName==="yt-history-load"&&Vq()&&!d().isEmbeddedInWebview&&Vb():Vq()&&Yi.detail.actionName==="yt-history-load"&&(t?t=!1:d().isEmbeddedInWebview||Vb())});
_.mF(function(){IC()});
_.Wg(function(){Qz()});
var Qz=function(){var Yi=d().playableId,pJ=d().localReleaseId,ei=d().derivedDeviceInterface;if(c)_.vh(new _.WJ("[MiniAppContainerViewModel] onEnter was called more than once"));else{c=!0;l=new CSz(Yi,pJ,ei,document.visibilityState==="visible");EXL(l);k=new hIL(Yi);i1C(T,Yi);$53(W,{showMiniAppAdCommand:d().showMiniAppAdCommand,isEmbeddedInWebview:d().isEmbeddedInWebview,playLogger:l});snN()&&(O=document.body.style.backgroundColor,_.c6(document.body,"background-color","black"));cx();pg();C=new _.MX;
if(d().isEmbeddedInWebview){if(Yi=(new URLSearchParams(window.location.search)).get("postPlayNonce"))YZm(l,Yi),Pj=!0;A.initialize({onAudioStateLoaded:function(rs){HY(rs)},
onMuteMiniApp:function(){HY(!1)},
onUnmuteMiniApp:function(){HY(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(rs){Pj||(YZm(l,rs),Pj=!0)},
confirmExitMiniApp:function(){var rs,TP,FS;return _.B(function(id){if(id.nextAddress==1)return d().confirmExitMiniAppCommand?_.D(id,Promise.race([C.promise,Promise.resolve(!1)]),2):id.return();(rs=id.yieldResult)?!d().confirmExitMiniAppCommandEdu||(FS=(TP=XY)==null?void 0:TP())!=null&&FS?Jw(d().confirmExitMiniAppCommand):(Jw(d().confirmExitMiniAppCommandEdu),_.X5("exit-mini-app-seen-state","true",2592E6)):Jw(d().closeMiniAppCommand);_.Vy(id)})},
onNativeBenchmarkingMessageReceived:function(rs){rs=eXV(_.d72(rs));if(_.mv(rs,_.eB,3,Sem)){var TP=_.c_(rs,_.eB,3,Sem),FS=FaZ();var id=IW(FS.getSeconds())-IW(TP.getSeconds());TP=_.Cy(FS,2)-_.Cy(TP,2);id<0&&TP>0?(id+=1,TP-=1E9):id>0&&TP<0&&(--id,TP+=1E9);id=(new Ge).setSeconds(id);id=_.m1(id,2,_.hd(TP),0);_.ZG(rs,1,id)}var P_;(P_=p)==null||P_.returnNativeBenchmarkingMessage(rs)},
multiplayer3pAckStateLoaded:function(rs){Vb(rs)},
exitMiniAppSeenStateLoaded:function(rs){d().confirmExitMiniAppCommandEdu&&jJ(rs)},
onNavigateToNewMiniApp:function(){Jw(d().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(rs){rs=new URLSearchParams(rs);var TP=void 0;rs.has("invite_code")&&(TP=new GMg,rs=rs.get("invite_code"),TP=_.VZ(TP,1,rs));if(rs=TP){var FS;(FS=p)==null||FS.sendGameData(rs)}},
onPauseMiniApp:function(){X=!0;AX()},
onResumeMiniApp:function(){X=!0;pK()},
onAdFinished:function(rs){W.onAdFinished(rs)}});
d().showMultiplayer3pConsentDialogCommand||C.resolve(!0);Jw(d().onContainerReadyCommand)}else YZm(l),C.resolve(!0);QFV(k,xCL(l));xCL(l).then(function(rs){rs={miniAppPlayData:{postPlayNonce:rs}};var TP,FS=(TP=d().loggingDirectives)==null?void 0:TP.trackingParams;FS&&_.Nx().stateChanged(FS,rs)});
Yi=d().showSignInDialogCommand;!lz6()&&Yi&&(_.X5("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Jw(Yi));d().confirmExitMiniAppCommand&&Y&&(Yi=NCZ(d().confirmExitMiniAppCommand))&&(Y.customConfirmationCommand=Yi)}},IC=function(){if(!R||c)O&&_.c6(document.body,"background-color",O),y=!1,I&&I.release(),k.flush().catch(function(Yi){_.vh(Yi)}),T.flush().catch(function(Yi){_.vh(Yi)}),d5V(l),Lk(),p=void 0,R&&(c=!1),fFe(U)},Qt=function(){uL(!1);
IC();Vz(!1);UV(void 0);$d(void 0);xd(void 0);sS=0;BV(0);R||(c=!1)},AX=function(){var Yi;
(Yi=p)==null||Yi.onPause();I&&I.release();k.flush().catch(function(pJ){_.vh(pJ)});
T.flush().catch(function(pJ){_.vh(pJ)});
MaV(l)},pK=function(){var Yi;
(Yi=p)==null||Yi.onResume();pg();Yi=l;Yi.isForeground=!0;Og(Yi,"PLAY_EVENT_TYPE_PLAY_RESUME")},HY=function(Yi){var pJ;
(pJ=p)==null||pJ.onAudioToggled(Yi);LZ(Yi)},Vb=function(Yi){d().showMultiplayer3pConsentDialogCommand&&(d().isEmbeddedInWebview&&Yi!==void 0&&C.resolve(Yi),!Yi&&_.qvN()==="mini_app"&&Jw(d().showMultiplayer3pConsentDialogCommand))},yy=function(){var Yi,pJ,ei,rs;
return _.B(function(TP){if(TP.nextAddress==1){if(R&&!c)return TP.return();!d().isLivestream||d().disableVideoCapture||(Yi=p)!=null&&Yi.sendStartGameFrameCapture();pJ=(new URL(window.location.href)).searchParams;if(pJ.has("invite_code")){var FS=new GMg,id=pJ.get("invite_code");ei=_.VZ(FS,1,id);(rs=p)==null||rs.sendGameData(ei)}Ne()||(Vz(!0),FS=l,FS.state!==1?_.vh(new _.WJ("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+UCg[FS.state])):(_.MB("mini_app_ids_without_game_ready").includes(FS.JSC$14621_miniAppId)&&
(FS.gameReady=!0),FS.state=2,FS.beforeReady=!1,v7(FS,"ma_ffr"),Og(FS,"PLAY_EVENT_TYPE_PLAY_READY")));return _.D(TP,C.promise,2)}Jw(d().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();d().isEmbeddedInWebview||Vb();_.Vy(TP)})},Hg=function(){var Yi=l;
Yi.gameReady=!0;v7(Yi,"ma_gr")},DR=function(Yi){var pJ;
return _.B(function(ei){if(ei.nextAddress==1)return _.Mv(ei,2),_.D(ei,IFV(k,Yi),4);if(ei.nextAddress!=2)return _.cJ(ei,0);pJ=_.Fg(ei);Jw(d().showSavingErrorPopupCommand);throw pJ;})},mL=function(){var Yi,pJ;
return _.B(function(ei){if(ei.nextAddress==1)return _.Mv(ei,2),_.D(ei,q43(k),4);if(ei.nextAddress!=2)return Yi=ei.yieldResult,ei.return(Yi);pJ=_.Fg(ei);Jw(d().showLoadingErrorDialogCommand);throw pJ;})},lX=function(Yi){l.logError(Yi)},kT=function(Yi,pJ,ei){RId(l,Yi,pJ,ei)},zN=function(Yi,pJ){FKI(l,Yi,pJ)},nu=function(){!N&&d().isEmbeddedInWebview||_.G2();
NoI(l,!0);y||(window.addEventListener("beforeunload",tL,{capture:!0}),y=!0)},R2=function(Yi){var pJ,ei,rs,TP,FS,id,P_;
return _.B(function(Gx){if(Gx.nextAddress==1)return T&&(!w||w<Yi)&&Yi>0?_.D(Gx,LKJ(T,Yi),3):Gx.jumpTo(0);pJ=Gx.yieldResult;ei=_.V(pJ);rs=ei.next().value;TP=ei.next().value;FS=rs;id=TP;((P_=FS)==null?0:P_.displayString)&&id&&($d(id),xd(FS.displayString));_.Vy(Gx)})},gU=function(Yi){var pJ=d().onBenchmarkingMessageReceivedCommand;
if(pJ){var ei=FaZ();_.EA(Yi,3,Sem,ei);HC(pJ,HtJ(Yi))}},hL=function(Yi){var pJ=d().onGameFrameReceivedCommand;
if(pJ){var ei=new qKV;var rs=new pve;var TP=s1(Yi,1);rs=_.Ti(rs,1,TP);Yi=_.rP(Yi,2);Yi=_.VZ(rs,2,Yi);ei=_.ZG(ei,2,Yi);HC(pJ,v5e(ei))}},JL=function(Yi){var pJ=d().onGameAudioDataReceivedCommand;
if(pJ){var ei=new qKV;var rs=new hwV;Yi=_.rP(Yi,1);rs=_.VZ(rs,1,Yi);ei=_.ZG(ei,4,rs);HC(pJ,v5e(ei))}},nZ=function(){var Yi=new URLSearchParams(window.location.search);
if(d().isEmbeddedInWebview&&Yi&&Yi.get("override_hl")==="true"&&Yi.get("hl"))return Yi.get("hl");Yi=document.documentElement.lang;return Yi!==""?Yi:_.r_},g3=function(Yi){var pJ=d().onShareInviteCodeCommand;
if(pJ)if(d().isEmbeddedInWebview){var ei=new gOI;Yi=_.VZ(ei,1,Yi);HC(pJ,wnd(Yi))}else ei=d().inviteCodeShareClientParamIdentifier,U.clientParams.set(ei,{miniAppClientParams:{inviteCode:Yi}}),Jw(pJ)},FY=function(Yi){var pJ,ei,rs;
return _.B(function(TP){if(TP.nextAddress==1)return pJ=d().onMiniAppOpenYtContentRequested,T&&_.Q("enable_open_yt_content")&&pJ?_.D(TP,taI(T,Yi),3):TP.jumpTo(0);ei=TP.yieldResult;if(ei==="OK")if(d().isEmbeddedInWebview){var FS=new D2V;rs=Fy(FS,2,jH,Si(Yi));HC(pJ,wvL(rs))}else Fi.clientData.set("video_id",Yi),Jw(pJ);_.Vy(TP)})},Px=function(Yi){sS+=_.Cy(Yi,3);
Yi=Math.min(Math.log(1+sS/15E6*9)/Math.log(10),.99);BV(Yi);DD(Yi)},DD=_.m2(function(Yi){var pJ=d().updateLoadingProgressCommand;
if(pJ){var ei=new D2V;Yi=Fy(ei,3,jH,_.Ad(Yi));HC(pJ,wvL(Yi))}},100),mt=function(Yi){return kXV(W,Yi)},pg=function(){var Yi,pJ;
((Yi=_.P3v())==null?void 0:(pJ=Yi.wakeLock)==null?void 0:pJ.request)!=null&&_.P3v().wakeLock.request("screen").then(function(ei){I=ei}).catch(function(){})},gq=_.e5();
_.Wg(function(){d().isSupportedCountry&&(lz6()||_.Q("enable_sign_in_promo")||!d().showSignInDialogCommand?FL(gq.value):Jw(d().onMiniAppReadyCommand))});
var vx=function(){return _.g("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ne()?0:-1},
el:gq})},FL=function(Yi,pJ){pJ=pJ===void 0?!1:pJ;
var ei=h_();ei&&(pJ||ei.toString()!==Yi.getAttribute("src"))&&(p=WaS(d().source,{isAudioEnabled:Hj,onFirstFrameReady:yy,onGameReady:Hg,onSave:DR,onLoad:mL,onError:lX,onSdkCalled:kT,onSdkPerformanceUpdate:zN,onClick:nu,onSendHighScore:R2,onBenchmarkingMessageReceived:gU,getLanguage:nZ,onShareInviteCode:g3,onResourceLoaded:Px,onOpenYTContent:FY,onShowMiniAppAd:mt,onGameFrameReceived:hL,onGameAudioReceived:JL},Yi,ei),XQ(Yi,"load",function(){v7(l,"ma_il");XQ(Yi,"load",function(){FL(Yi,!0)})}),_.s0(Yi,
ei))},h_=function(){var Yi=d().url;
if(Yi&&(Yi=_.vf(Yi),Yi!==null)){if(d().source&&d().source==="MINI_APP_SOURCE_GAMESNACKS")Yi=_.CI(Yi,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.Q("enable_origin_query_parameter_bugfix")){var pJ=_.se(_.oAZ(Yi.toString()));pJ=new URLSearchParams(pJ||"");pJ.set("origin",window.location.origin);pJ=pJ.toString();Yi=_.XC(Yi).toString();Yi=_.RO(AdJ.exec(Yi)[0]+(pJ.trim()?"#"+pJ:""))}return Yi}},bs=function(){var Yi={};
Yi=_.xj("yt-mini-app-container-view-model__loading-screen",(Yi["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ne,Yi));var pJ=function(){return Ne()?1:q$()};
return _.g("div",{class:Yi},_.g(_.ho,{data:function(){return d().splashScreen}},{miniAppSplashScreenViewModel:function(ei){return _.g(KKg,{data:ei.data,
loadingProgress:pJ})}}))},cx=function(){m=[];
m.push(_.lI(window,"visibilitychange",function(){e||X&&WV()||(document.visibilityState==="visible"?pK():AX())}));
m.push(_.lI(window,"pagehide",function(){IC()}));
m.push(_.lI(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&fZ.value.dispatchEvent(new Event("tap"))},0)}));
m.push(_.lI(fZ.value,"pointerdown",function(){NoI(l,!1)},!0));
m.push(_.lI(fZ.value,"pause",function(){e=!0;AX()}));
m.push(_.lI(fZ.value,"play",function(){e=!1;pK()}));
m.push(_.lI(fZ.value,"exit",function(){IC()}));
var Yi=navigator.keyboard,pJ=Yi&&Yi.lock;m.push(_.lI(window,XNC,function(){M9(A23());A23()?(d().hasPlayNextShelf&&TT("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),bB("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),pJ&&Yi.lock(["Escape"])):(d().hasPlayNextShelf&&bB("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),TT("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),pJ&&Yi.unlock())}));
d().showMultiplayer3pConsentDialogCommand&&m.push(_.lI(window,"yt-playables-ack-3p-data-usage",function(){GXJ(T)}));
d().confirmExitMiniAppCommandEdu&&m.push(_.lI(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.X5("exit-mini-app-seen-state","true",2592E6)}))},Lk=function(){m.forEach(function(Yi){FQ(Yi)});
window.removeEventListener("beforeunload",tL,{capture:!0})},Jw=function(Yi){Yi&&Xpi(Yi,d().isEmbeddedInWebview||!1)},bB=function(Yi,pJ){Yi=_.V(fZ.value.getElementsByClassName(Yi));
for(var ei=Yi.next();!ei.done;ei=Yi.next())ei.value.classList.add(pJ)},TT=function(Yi,pJ){Yi=_.V(fZ.value.getElementsByClassName(Yi));
for(var ei=Yi.next();!ei.done;ei=Yi.next())ei.value.classList.remove(pJ)};
return function(){var Yi={};Yi=_.xj("yt-mini-app-container-view-model",(Yi["yt-mini-app-container-view-model--desktop"]=!0,Yi["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return d().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Yi["yt-mini-app-container-view-model--ios-web-view"]=snN(),Yi["yt-mini-app-container-view-model--no-top-bar"]=function(){return!d().topBar},Yi["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return d().hasPlayNextShelf},Yi["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return d().hasPlayNextShelf},Yi["yt-mini-app-container-view-model--show-peek-below"]=function(){return!fg()&&d().hasPlayNextShelf},Yi));
var pJ={};pJ=_.xj("yt-mini-app-container-view-model__content",(pJ["yt-mini-app-container-view-model__content--desktop-content"]=!0,pJ["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return d().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},pJ["yt-mini-app-container-view-model--desktop-play-page"]=function(){return d().hasPlayNextShelf},pJ));
return _.g("mini-app-container-view-model",{el:fZ},_.g("div",{class:Yi},_.g(_.kV,{cond:function(){return d().topBar&&!fg()},
then:function(){return _.g(_.ho,{data:function(){return d().topBar}},{miniAppTopBarViewModel:function(ei){return _.g(H1I,{data:ei.data,
isAudioEnabled:Hj,onAudioToggled:function(rs){HY(rs)},
score:oI,formattedScore:CJ,onScoreChanged:function(rs){w=rs},
isEmbeddedInWebview:WV,isSaved:OV,onSaveToggled:function(rs){UV(rs)},
isExitMiniAppSeen:XY,isDesktopPlayPage:V9})}})}}),_.g("div",{class:pJ},_.g(_.kV,{cond:Vq,
then:function(){return vx()}}),_.g(_.kV,{cond:function(){return!d().isEmbeddedInWebview},
then:function(){return bs()}}))))}()},"Kd");
aFo.idomCompat=!0;_.eC(aFo,"mini-app-container-view-model",{props:{data:_.cA}});var U5V=_.SG(function(M){var d=M.data;return _.g("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.g("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.dT(function(){var N=d().onTap;N&&_.vz(N)})},_.g(_.kV,{cond:function(){return d().icon},
then:function(N){return _.g(_.Fc,{icon:function(){return N().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.g("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return d().title})))},"Ld");
U5V.idomCompat=!0;var ust=_.SG(function(M){var d=_.e5(),N=_.V(_.d0(void 0,void 0,"kFCJ0c")),R=N.next().value,X=N.next().value;N=_.V(_.d0(void 0,void 0,"PIPgWd"));var A=N.next().value,l=N.next().value;N=_.V(_.d0(void 0,void 0,"rV66ob"));var k=N.next().value,T=N.next().value,W=function(){var e=R();return e!==void 0?Math.abs(e):void 0},w=function(){var e=W();
return e===void 0||e<=3},p=function(){var e=W();
var t=A(),C=k();e=e!==void 0&&t!==void 0&&C!==void 0?t-C-e:void 0;return e===void 0||e<=3},m=function(e){d.value&&d.value.scrollBy({top:0,
left:(_.rK("HTML_DIR")==="rtl"?-1:1)*e*d.value.clientWidth,behavior:"smooth"})},I=function(){var e;
X((e=d.value)==null?void 0:e.scrollLeft);var t;l((t=d.value)==null?void 0:t.scrollWidth);var C;T((C=d.value)==null?void 0:C.clientWidth)},O=function(){m(-.5)},y=function(){m(.5)};
N=_.dT(function(){I()});
_.QD(function(){I();if(d.value){var e=new ResizeObserver(I);e.observe(d.value);_.mF(function(){e.disconnect()})}});
var c={};return _.g("yt-sponsorships-scrollable-shelf",{class:_.xj("ytdSponsorshipsScrollableShelfHost",M.className)},_.g("div",{class:_.xj("ytdSponsorshipsScrollableShelfContent",(c.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return M.data().previousButton&&M.data().nextButton&&!w()&&!p()},c.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return M.data().previousButton&&!w()&&p()},c.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return M.data().nextButton&&
w()&&!p()},c)),
el:d,"on:scroll":N},M.children),_.g(_.kV,{cond:function(){return!w()},
then:function(){return _.g(_.ho,{data:function(){return M.data().previousButton}},{buttonViewModel:function(e){return _.g(_.o0,{data:e.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:O})}})}}),_.g(_.kV,{cond:function(){return!p()},
then:function(){return _.g(_.ho,{data:function(){return M.data().nextButton}},{buttonViewModel:function(e){return _.g(_.o0,{data:e.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:y})}})}}))},"Md");
ust.idomCompat=!0;var x53=_.SG(function(M){var d=M.data;M={};return _.g("yt-sponsorships-hub",{class:_.xj("ytdSponsorshipsHubHost",(M.ytdSponsorshipsHubHostIndented=function(){return d().indented},M))},_.g("div",{class:"ytdSponsorshipsHubHeader"},_.g("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.g("div",{class:"ytdSponsorshipsHubAvatar"},_.g(_.ho,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g(_.kV,{cond:function(){return d().badgeImage},
then:function(N){return _.g("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.g("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.g("div",{class:"ytdSponsorshipsHubBadge"},_.g(_.Jt,{data:N,targetWidth:24,targetHeight:24,alt:""}))))}})),_.g("div",{class:"ytdSponsorshipsHubDetails"},_.g("div",{class:"ytdSponsorshipsHubTierName"},function(){return d().tierName}),_.g("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return d().membershipType}),_.g("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return d().membershipDurationOrExpiry})),_.g("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.g(_.ho,{data:function(){return d().manageButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.g(_.ho,{data:function(){return d().actionMenuButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.g("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return d().perksTitle}),_.g(ust,{data:function(){return{previousButton:d().previousPerkButton,
nextButton:d().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.g("div",{class:"ytdSponsorshipsHubPerkCards"},_.g(_.ho,{data:function(){return d().perkCards}},{sponsorshipsHubPerkCardViewModel:U5V}),_.g(_.kV,{cond:function(){return d().viewAllPerksButton},
then:function(N){return _.g(CPV,{data:N})}}))))},"Nd");
x53.idomCompat=!0;var CPV=_.SG(function(M){var d=M.data;return _.g("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.g(_.ho,{data:function(){return d().button}},{buttonViewModel:_.o0}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.g("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return d().title}),_.g("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return d().subtitle})))},"Od");
CPV.idomCompat=!0;_.eC(x53,"yt-sponsorships-hub",{props:{data:_.cA}});_.Y4I=_.SG(function(M){var d=M.data;return _.g("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Xc({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var N;return((N=d().badgeCutoutRadius)!=null?N:14)+"px"}})},_.g("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.g(_.ho,{data:function(){return d().startAvatar}},{avatarViewModel:_.TS}),_.g(_.ho,{data:function(){return d().endAvatar}},{avatarViewModel:_.TS})),_.g(_.ho,{data:function(){return d().badge}},{contentPreviewImageViewModel:function(N){return _.g("div",
{class:"ytDualAvatarViewModelBadge"},_.g(_.iK,{data:N.data}))}}))},"Pd");
_.Y4I.idomCompat=!0;var EqL=_.SG(function(M){var d=M.data;var N,R=!((N=_.h().resolve(_.CF(_.Pz)))==null||!N());M=_.Al(function(){var W,w,p=R?(W=d().header)==null?void 0:W.backgroundColorDarkMode:(w=d().header)==null?void 0:w.backgroundColorLightMode;if(p!==void 0)return _.ml(p)},void 0,"UX2G6c");
N=_.Al(function(){var W,w;return R?(W=d().header)==null?void 0:W.backgroundImagePart1Dark:(w=d().header)==null?void 0:w.backgroundImagePart1Light},void 0,"GPAi1d");
var X=_.Al(function(){var W,w;return R?(W=d().header)==null?void 0:W.backgroundImagePart2Dark:(w=d().header)==null?void 0:w.backgroundImagePart2Light},void 0,"nboJld"),A=_.Al(function(){return _.rK("HTML_DIR")==="rtl"},void 0,"LGJceb"),l=_.e5(),k=!1,T=function(){var W=l.value;
if(W&&!k){var w,p=(w=W.parentElement)==null?void 0:w.parentElement;if(p)for(W=W.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),w=0;w<W.length;++w){var m=W[w];if(m instanceof HTMLElement){p.scrollTo({top:m.offsetTop+m.clientHeight/2-p.clientHeight/2,behavior:"smooth"});k=!0;break}}}};
_.IJ(function(){var W=l.value;if(W){var w=new ResizeObserver(T);w.observe(W);_.mF(function(){w.disconnect()})}});
return _.g("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:l},_.g("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.g("div",{class:"ytdSponsorshipsPerksListHeader",style:_.Xc({"background-color":M})},_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.g(_.kV,{cond:N,then:function(W){var w={};return _.g("div",{class:_.xj((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=
A,w))},_.g(_.Jt,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.g(_.kV,{cond:X,
then:function(W){var w={};return _.g("div",{class:_.xj((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=A,w))},_.g(_.Jt,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.g("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.g(_.ho,{data:function(){var W;
return(W=d().header)==null?void 0:W.dualAvatar}},{dualAvatarViewModel:_.Y4I})))),_.g("div",{class:"ytdSponsorshipsPerksListBody"},_.g("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return d().title}),_.g(_.kV,{cond:function(){return d().perks},
then:function(W){return _.g(_.TN,{each:W},function(w,p){var m={};return _.g("div",{class:_.xj("ytdSponsorshipsPerksListPerkContainer",(m.ytdSponsorshipsPerksListSelectedPerk=function(){var I=p(),O=d().selectedPerkIndex;return I===O},m))},_.g(_.kV,{cond:function(){return p()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.g(_.kV,{cond:function(){return w.icon},
then:function(I){return _.g(_.Fc,{icon:function(){return I().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.g("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.g("div",{class:"ytdSponsorshipsPerksListPerkTitle"},w.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.g(_.lG,{text:w.description})),_.g(_.kV,{cond:function(){return w.instructions},
then:function(){var I,O;return _.g("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(I=w.instructions)==null?void 0:I.title),_.g("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.g(_.lG,{text:(O=w.instructions)==null?void 0:O.text})))}}))),_.g(_.kV,{cond:function(){return w.emoji},
then:function(I){return _.g("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.g(_.TN,{each:function(){return I()}},function(O){return _.g(_.Jt,{data:O,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.g(Z1z,{data:w}))})}})))},"Qd");
EqL.idomCompat=!0;var Z1z=_.SG(function(M){var d=M.data;var N=function(l,k){return l===k},R=function(){var l=d();
l=_.q(l==null?void 0:l.badgesShelf,QLC);return l!==void 0&&l!==null?l:{previousButton:{},nextButton:{}}},X=_.Hh(),A=function(){var l=X.value;
if(l){var k=l.parentElement;if(k){l=l.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var T=0;T<l.length;++T){var W=l[T];if(W instanceof HTMLElement){k.scrollTo({left:W.offsetLeft+W.clientWidth/2-k.clientWidth/2,behavior:"instant"});break}}}}};
_.IJ(function(){var l=X.value;if(l){var k=new ResizeObserver(A);k.observe(l);_.mF(function(){k.disconnect()})}});
return _.g("div",null,_.g(_.kV,{cond:function(){return d().badges},
then:function(l){return _.g(ust,{data:R},_.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:X},_.g(_.TN,{each:function(){return l()}},function(k,T){var W={},w={},p={};
return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.g(_.kV,{cond:function(){return T()>0},
then:function(){return _.g("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.g("div",{class:_.xj("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(W.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return N(T(),d().currentBadgeIndex)},W.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!N(T(),d().currentBadgeIndex)},W))},_.g("div",{class:_.xj("ytdSponsorshipsPerksListLoyaltyBadge",(w.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return N(T(),
d().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!N(T(),d().currentBadgeIndex)},w))},_.g(_.kV,{cond:function(){return k.image},
then:function(m){var I={};return _.g("div",{class:_.xj((I.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return N(T(),d().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!N(T(),d().currentBadgeIndex)},I))},_.g(_.Jt,{data:m,
alt:""}))}})),_.g("div",{class:_.xj("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(p.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return N(T(),d().currentBadgeIndex)},p))},k.title)))})))}}))},"Rd");
Z1z.idomCompat=!0;_.eC(EqL,"yt-sponsorships-perks-list",{props:{data:_.cA}});_.eC(_.SG(function(M){return _.g("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.g(_.kV,{cond:function(){return M.data().image},
then:function(d){return _.g(_.Jt,{className:"ytwFantasyEmptyStateViewModelImage",data:d,ariaHidden:!0,alt:""})}}),_.g(_.lG,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return M.data().title}}),_.g(_.lG,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return M.data().subtitle}}),_.g(_.ho,{data:function(){return M.data().primaryButton}},{buttonViewModel:function(d){return _.g(_.o0,{data:d.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Sd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N;M=_.V(_.d0(!((N=_.F5("yt-mini-app-is-theater-mode-enabled"))==null||!N),void 0,"CUtq5"));var R=M.next().value,X=M.next().value,A;N=(A=_.h().resolve(_.CF(s3g)))!=null?A:function(){return _.g("div",null)};
_.bv("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){X(!0);_.X5("yt-mini-app-is-theater-mode-enabled",!0)});
_.bv("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){X(!1);_.X5("yt-mini-app-is-theater-mode-enabled",!1)});
A={};M={};var l={};return _.g("mini-app-play-page-renderer",{class:_.xj("miniAppPlayPageRendererHost",(A.miniAppPlayPageRendererHostDetailsView=function(){return!R()},A))},_.g("div",{class:_.xj("miniAppPlayPageRendererGameContainer",(M.miniAppPlayPageRendererGameContainerDetailsView=function(){return!R()},M))},_.g(_.ho,{data:function(){return d().containerViewModel}},{miniAppContainerViewModel:aFo}),_.g(_.kV,{cond:function(){return!R()&&d().description},
then:function(){return _.g("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.g("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return d().description}))}})),_.g("div",{class:_.xj("miniAppPlayPageRendererPlayNextContainer",(l.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!R()},l))},_.g(_.ho,{data:function(){return d().sectionList}},{sectionListRenderer:N})))},"Td"),"mini-app-play-page-renderer",{props:{data:_.cA}});var Kr=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;M.isConstrainedList=!1;M.hasChipsBar=!1;M.inReplyPanel=!1;M.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};M.monitorScroll=!0;M.SCROLL_ANIMATION_DURATION_MS=300;M.nextContinuation={continuationType:"sectionListContinuation"};return M};
_.v(Kr,_.n);_.F=Kr.prototype;
_.F.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(M){switch(M.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.Q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Q("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.F.created=function(){var M=this;this.JSC$14750_scrollAnimation=new _.qk(function(d){M.hostElement.scrollTop=d})};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.F.getItemsPath=function(){return"data.contents"};
_.F.replacePrimaryContent=function(M){this.set("data.contents",M)};
_.F.computeHasSortFilter=function(M){return!!M&&!!M.sortFilterSubMenuRenderer};
_.F.computeShouldScrollInPanel=function(M){var d;return!!(M==null?0:(d=M.scrollPaneStyle)==null?0:d.scrollable)};
_.F.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.t2(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.F.scrollToTop=function(){this.hostElement.scrollTop=0};
_.F.scrollToItemSection=function(M){if(M=this.getItemByIdentifier(M))M=this.getScrollPositionForItem(M),this.hostElement.scrollTop!==M&&this.JSC$14750_scrollAnimation.start(this.hostElement.scrollTop,M,this.SCROLL_ANIMATION_DURATION_MS)};
_.F.getItemByIdentifier=function(M){var d=this.contents.querySelectorAll("ytd-item-section-renderer");if(d&&d.length!==0){var N=Array.from(d).findIndex(function(R){return R.sectionIdentifier===M});
return d[N===-1?0:N]}};
_.F.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===M)return 0;M=_.vT(M).y+this.hostElement.scrollTop-_.vT(this.hostElement).y;return Math.min(M,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Hm.Object.defineProperties(Kr.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.targetId)==="browse-feedFEclips"}}});
Kr.prototype.onScroll=Kr.prototype.onScroll;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],Kr.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],Kr.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.S(_.f5L),_.a("design:type",Object)],Kr.prototype,"ytBooleanLogicBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],Kr.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"data",void 0);_.G([_.H({value:2}),_.a("design:type",Number)],Kr.prototype,"initialCount",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Kr.prototype,"autoFill",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.a("design:type",Boolean)],Kr.prototype,"hasSortFilter",void 0);_.G([_.H({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.a("design:type",Boolean)],Kr.prototype,"hideBottomSeparator",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.a("design:type",Boolean)],Kr.prototype,"shouldScrollInPanel",void 0);
_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"isSearch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kr.prototype,"isConstrainedList",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Kr.prototype,"responsiveSizing",void 0);_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"hasChipsBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Kr.prototype,"pageSubtype",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"liveChatEngagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kr.prototype,"inReplyPanel",void 0);_.G([_.Z3("#action-button"),_.a("design:type",HTMLElement)],Kr.prototype,"actionButton",void 0);_.G([_.H(),_.a("design:type",Object)],Kr.prototype,"scrollUpButtonData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"engagementPanelDropdown",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Kr.prototype,"engagementPanelDialog",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kr.prototype,"isClipList",null);_.G([_.Z3("#contents"),_.a("design:type",HTMLElement)],Kr.prototype,"monitorScrollElement",void 0);_.G([_.Z3("#contents"),_.a("design:type",HTMLElement)],Kr.prototype,"contents",void 0);
_.G([_.C3("scroll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kr.prototype,"onScroll",null);Kr=_.G([_.f({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Kr);
var MZm=_.ty()(Kr,"ytd-section-list-renderer",function(){if(j33===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);j33=M}M=j33;return M},{mode:1});var duL;var NSd;var R3o;var Xoo;var yI=function(){return _.n.apply(this,arguments)||this};
_.v(yI,_.n);yI.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
yI.prototype.onLikeButtonClick=function(M){M.stopPropagation();M.preventDefault()};
_.Hm.Object.defineProperties(yI.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],yI.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],yI.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yI.prototype,"ytRendererStamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yI.prototype,"data",void 0);
_.G([_.H({selectorArgs:["data.likeStatusEntityKey"],selector:QX}),_.a("design:type",Object)],yI.prototype,"likeStatusEntity",void 0);_.G([_.z("data","likeStatusEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],yI.prototype,"likeButtonRenderer",null);yI=_.G([_.f({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],yI);
_.L(yI,"ytd-slim-metadata-toggle-button-renderer",function(){if(Xoo!==void 0)return Xoo;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return Xoo=M},{mode:1});var JG=function(){var M=_.n.apply(this,arguments)||this;M.minimizePipBreakages=_.Q("web_pip_minimize_breakages");M.showEqualizer=_.Q("web_enable_playlist_video_lockup_equalizer");M.watchColorUpdate=_.Q("kevlar_watch_color_update");M.actionMap={};return M};
_.v(JG,_.n);_.F=JG.prototype;_.F.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"}}}};
_.F.computeEditableClass=function(M){return M&&M.menu?"editable":""};
_.F.computeSelected=function(M){return!(M==null||!M.selected)};
_.F.computeUseColorPalette=function(M){return!!((M==null?0:M.lightColorPalette)&&(M==null?0:M.darkColorPalette))};
_.F.computeLargerPlaylistThumbs=function(M,d){return _.Q("web_enable_playlist_bigger_thumbnails")&&!d};
_.F.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.F.onYtServiceRequestSent=function(M,d){d.endpoint&&this.isHideEnclosingAction(d.endpoint)&&!this.selected&&czL(_.cn(),this.data.videoId)};
_.F.isHideEnclosingAction=function(M){var d=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",M);M=this.get("likeEndpoint.status",M)==="INDIFFERENT";return d||M};
_.F.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.F.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Hm.Object.defineProperties(JG.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.withinMiniplayer&&((M=this.data)==null?0:M.actionButtons))}}});
JG.prototype.onYtServiceRequestSent=JG.prototype.onYtServiceRequestSent;JG.prototype.canReorderChanged=JG.prototype.canReorderChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],JG.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.ck),_.a("design:type",Object)],JG.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JG.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"withinMiniplayer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],JG.prototype,"minimizePipBreakages",void 0);_.G([_.H({computed:"computeSelected(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"selected",void 0);
_.G([_.H({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"useColorPalette",void 0);_.G([_.H({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"largerPlaylistThumbs",void 0);_.G([_.H(),_.a("design:type",Object)],JG.prototype,"showEqualizer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"canReorder",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"touchPersistentDragHandle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],JG.prototype,"handleIsHovered",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],JG.prototype,"watchColorUpdate",void 0);_.G([_.z("largerPlaylistThumbs"),_.a("design:type",Number),_.a("design:paramtypes",[])],JG.prototype,"thumbnailWidth",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JG.prototype,"showActionButtons",null);_.G([_.NS("canReorder"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JG.prototype,"canReorderChanged",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],JG.prototype,"onYtServiceRequestSent",null);
JG=_.G([_.f({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],JG);
_.L(JG,"ytd-playlist-panel-video-renderer",function(){if(R3o!==void 0)return R3o;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return R3o=M},{mode:2});var c7=function(){return _.n.apply(this,arguments)||this};
_.v(c7,_.n);c7.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],c7.prototype,"data",void 0);c7=_.G([_.f({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],c7);
_.L(c7,"ytd-playlist-panel-supported-items",function(){if(NSd!==void 0)return NSd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return NSd=
M},{mode:1});F3o=!0;qcJ("\\P{N}");var Iz6;var Fhe=_.le("END_OF_PLAYLIST",void 0,"End of playlist"),AZV=_.le("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),S7=function(){var M=_.n.apply(this,arguments)||this;M.minimizePipBreakages=_.Q("web_pip_minimize_breakages");M.updatedCoursePanel=_.Q("move_three_dot_menu_to_playlist_panel_header_for_courses");M.reducedPlaylistHeight=_.Q("web_playlist_mini_playlist_height");M.hideHeaderText=!1;M.useColorPalette=!1;M.collapsed=!1;M.collapsedPreServerOverride="not_tracked";
M.isHovered=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.expandLabel=_.le("MINIPLAYER_EXPAND_LABEL");M.collapseLabel=_.le("MINIPLAYER_COLLAPSE_LABEL");M.isFloating=!1;M.metaPanel=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};M.currentIndex=void 0;return M};
_.v(S7,_.n);_.F=S7.prototype;
_.F.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"}}}};
_.F.created=function(){this.scrollThrottle=new _.ua(this.onThrottledScroll,1E3,this)};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
_.F.computeOverflowMenuData=function(M){return M&&M.menu?M.menu:null};
_.F.computeCollapsible=function(M){return!M};
_.F.computeHasPlaylistButtons=function(M){return!(!M||!M.playlistButtons)};
_.F.computeHasSeparateSaveButton=function(M){return!(!M||!M.saveButton)};
_.F.computeHasToolbarButton=function(M,d){return!(!M||!(d||M.saveButton||M.menu))};
_.F.computePlaylistType=function(M){if(M&&M.playlistId)return M.playlistId.substring(0,4)};
_.F.computeCanReorder=function(M){return M?M.playlistId&&M.playlistId.startsWith("TLPQ")?!0:!!M.isEditable&&!M.isInfinite:!1};
_.F.attached=function(){var M=this;try{_.h().resolve(_.oL).setPlaylistComponent(this.hostElement)}catch(d){if(_.Q("kevlar_park_on_playlist_token_killswitch"))throw d;_.K4().parkOrScheduleJob(function(){_.h().resolve(_.oL).setPlaylistComponent(M.hostElement)},2,"ci")}_.CL(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.F.detached=function(){_.xP(this.hostElement)};
_.F.computeTrailingIcon=function(M,d,N){return N?d?"yt-icons:collapse":"yt-icons:close":d?"yt-icons:expand":_.Q("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.F.computeIndexMessage=function(M,d){return jSj(M+1)+" / "+jSj(d)};
_.F.onRenderStamperFinished=function(){if(this.scrollForStampDom){var M=!0;this.isHovered&&(M=!1);if(this.collapsed||this.hidden)M=!1;M&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.F.collapseChanged=function(){var M=this;this.collapsed||(_.m$(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.F.hiddenChanged=function(){var M=this;this.hidden||_.m$(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()})};
_.F.setupReordering=function(){var M=_.K(this.hostElement).querySelector("#items");RzV?_.toV(this.ytReorderableBehavior,M,M,"playlist-drag-handle"):_.toV(this.ytReorderableBehavior,M,M)};
_.F.scrollToCurrentVideo=function(){var M=this;_.IQ.addJob(function(){var d=_.K(M.hostElement).querySelector("#items");if(d){d.style.setProperty("padding-bottom","");var N=_.K(M.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(N){d=N.parentElement||_.v6(document);var R=d||_.v6(document);var X=_.vT(N),A=_.vT(R),l=_.YTJ(R);if(R==_.v6(document)){var k=X.x-R.scrollLeft;X=X.y-R.scrollTop}else k=X.x-A.x-l.left,X=X.y-A.y-l.top;N=U$J(N);A=R.clientHeight-
N.height;l=R.scrollLeft;var T=R.scrollTop;l+=k-(R.clientWidth-N.width)/2;R=new _.hw(l,T+(X-A/2));d.scrollLeft=R.x;d.scrollTop=R.y}}},8)};
_.F.dataChanged=function(){var M=this;_.LBJ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.bM(this,function(){_.gL(M.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty();M.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.F.updateNowPlayingOverlay=function(){_.Q("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.F.onPlaylistLockupNowPlaying=function(M,d){d&&(this.activeNowPlayingRenderer=d);this.updateNowPlayingOverlay()};
_.F.onScroll=function(){this.scrollThrottle.fire()};
_.F.onThrottledScroll=function(){var M=this;_.gL(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty()})};
_.F.onToggleExpanded=function(M){this.collapsible&&_.cN(M).tagName!=="A"&&!_.Sm(_.J2(M),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.F.setCollapsed=function(M){this.collapsible&&(this.collapsed=M,_.Eu(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.F.handleCollapsedFromData=function(M){if(M){var d=M.playlistPanelCollapseState;d==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||d==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),d=d==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==d&&this.setCollapsed(d)):this.currentPlaylistId!==M.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(d=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==d&&this.setCollapsed(d),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=M.playlistId}};
_.F.handleDrop=function(M){var d=M.currDragItem;M=d.data.playlistSetVideoId;var N=_.er(d.parentNode.childNodes,d),R=void 0;N>0&&(R=d.parentNode.childNodes[N-1].data.playlistSetVideoId);d=_.cn();if(d.responsePlaylistData&&d.responsePlaylistData.contents){var X=Tbp(M,d.responsePlaylistData);d.responsePlaylistData=(0,_.wF.unsafeClone)(d.responsePlaylistData);viZ(d.responsePlaylistData.contents,X,N);d.queueProxy?$Mo(d.queueProxy,X,N,M,R):d.playlistProxy&&$Mo(d.playlistProxy,X,N,M,R);_.S4(d,_.zq(d,d.response?
d.response.autoplayRenderer:void 0))}};
_.F.handleDarkModeChange=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.F.colorPaletteChanged=function(){var M,d=((M=this.data)==null?void 0:M.contents)||[],N;M=_.V(d);for(d=M.next();!d.done;d=M.next()){d=d.value;var R=void 0;if((R=d.playlistPanelVideoRenderer)==null?0:R.selected){M=d.playlistPanelVideoRenderer;R=d=void 0;(N=this.isDarkTheme?(d=M)==null?void 0:d.darkColorPalette:(R=M)==null?void 0:R.lightColorPalette)&&_.Wi(this.hostElement,N);break}}this.useColorPalette=!!N};
_.Hm.Object.defineProperties(S7.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.playlistId)&&!((d=this.data)==null||!d.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var M=_.h().resolve(_.CF(_.oL)),d;if(((d=this.data)==null?0:d.contents)&&(M==null?0:M.hasAutoplayData())){var N;if(((N=this.playlistLoopStateEntity)==null?void 0:N.state)==="PLAYLIST_LOOP_STATE_ONE"){if(M=this.data.currentIndex,M!==void 0){var R,X;var A=(R=this.data.contents[M])==null?void 0:(X=R.playlistPanelVideoRenderer)==null?void 0:X.title}}else{var l,k=(l=_.q(M.getAutoplayEndpoint(),_.nL))==null?void 0:l.videoId,T,W;A=(T=this.data.contents.find(function(w){var p;
return((p=w.playlistPanelVideoRenderer)==null?void 0:p.videoId)===k}))==null?void 0:(W=T.playlistPanelVideoRenderer)==null?void 0:W.title}return A}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.nextVideoLabel?this.nextVideoTitle?_.HD(this.data.nextVideoLabel)+":":Fhe:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?0:M.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.ep(AZV);var d;return(d=this.data)==null?void 0:d.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.playlistButtons)==null?void 0:(N=d.menuRenderer)==null?void 0:N.topLevelButtons;if(R)for(M=_.V(R),d=M.next();!d.done;d=M.next())if(d=d.value,d.playlistLoopButtonRenderer)return d.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.collapsed&&((M=this.data)==null?0:M.nextVideoLabel))}}});
S7.prototype.colorPaletteChanged=S7.prototype.colorPaletteChanged;S7.prototype.onPlaylistLockupNowPlaying=S7.prototype.onPlaylistLockupNowPlaying;S7.prototype.updateNowPlayingOverlay=S7.prototype.updateNowPlayingOverlay;S7.prototype.dataChanged=S7.prototype.dataChanged;S7.prototype.hiddenChanged=S7.prototype.hiddenChanged;S7.prototype.collapseChanged=S7.prototype.collapseChanged;S7.prototype.onRenderStamperFinished=S7.prototype.onRenderStamperFinished;S7.prototype.onMouseLeave=S7.prototype.onMouseLeave;
S7.prototype.onMouseEnter=S7.prototype.onMouseEnter;_.G([_.S(_.sj),_.a("design:type",Object)],S7.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(iPt.YtPlaylistPanelBehavior),_.a("design:type",Object)],S7.prototype,"ytPlaylistPanelBehavior",void 0);
_.G([_.S(_.HA.YtTaskEmitterBehavior),_.a("design:type",Object)],S7.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.S(_.GwJ),_.a("design:type",Object)],S7.prototype,"ytReorderableBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],S7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],S7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],S7.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],S7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"autoplayData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],S7.prototype,"withinMiniplayer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"minimizePipBreakages",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"updatedCoursePanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"reducedPlaylistHeight",void 0);_.G([_.H({computed:"setMenuData_(data)"}),_.a("design:type",Object)],S7.prototype,"menuRendererData",void 0);_.G([_.H({computed:"computeOverflowMenuData(data)"}),_.a("design:type",Object)],S7.prototype,"overflowMenuDataTopRow",void 0);_.G([_.H({computed:"computeOverflowMenuData(data)"}),_.a("design:type",Object)],S7.prototype,"overflowMenuData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"hideHeaderText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"useColorPalette",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.a("design:type",Boolean)],S7.prototype,"collapsible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"collapsed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],S7.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.a("design:type",Boolean)],S7.prototype,"hasPlaylistButtons",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.a("design:type",Boolean)],S7.prototype,"hasSeparateSaveButton",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.a("design:type",Boolean)],S7.prototype,"hasToolbar",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.a("design:type",String)],S7.prototype,"playlistType",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"isHovered",void 0);_.G([_.H({selectorArgs:["playlistLoopStateEntityKey"],selector:_.C4S}),_.a("design:type",Object)],S7.prototype,"playlistLoopStateEntity",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"modernPanels",void 0);_.G([_.H({value:56}),_.a("design:type",Number)],S7.prototype,"scrollMargin",void 0);_.G([_.H({computed:"computeCanReorder(data)"}),_.a("design:type",Boolean)],S7.prototype,"canReorder",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"expandLabel",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"collapseLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"isFloating",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],S7.prototype,"metaPanel",void 0);_.G([_.H({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.a("design:type",String)],S7.prototype,"trailingIcon",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],S7.prototype,"isDarkTheme",void 0);
_.G([_.H({selector:_.vD}),_.a("design:type",Boolean)],S7.prototype,"miniplayerIsActive",void 0);_.G([_.H({selector:function(M){return M.watch.playerState}}),
_.a("design:type",Number)],S7.prototype,"playerState",void 0);_.G([_.H(),_.a("design:type",Object)],S7.prototype,"activeNowPlayingRenderer",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S7.prototype,"moveThreeDotMenuToTopRow",null);_.G([_.z("data","autoplayData","playlistLoopStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],S7.prototype,"nextVideoTitle",null);
_.G([_.z("data","nextVideoTitle"),_.a("design:type",String),_.a("design:paramtypes",[])],S7.prototype,"nextVideoLabel",null);_.G([_.z("collapsed"),_.a("design:type",String),_.a("design:paramtypes",[])],S7.prototype,"buttonAriaLabel",null);_.G([_.z("data","playlistId","longBylineText"),_.a("design:type",Object),_.a("design:paramtypes",[])],S7.prototype,"mixLongByLine",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],S7.prototype,"playlistLoopStateEntityKey",null);
_.G([_.C3("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"onMouseEnter",null);_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"onMouseLeave",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],S7.prototype,"showNextVideoHeader",null);
_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"onRenderStamperFinished",null);_.G([_.xB("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"collapseChanged",null);_.G([_.xB("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"hiddenChanged",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"dataChanged",null);_.G([_.xB("playerState","miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"updateNowPlayingOverlay",null);_.G([_.C3("yt-playlist-lockup-now-playing-active"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],S7.prototype,"onPlaylistLockupNowPlaying",null);
_.G([_.xB("data","isDarkTheme"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S7.prototype,"colorPaletteChanged",null);S7=_.G([_.f({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],S7);
_.VZC=_.ty()(S7,"ytd-playlist-panel-renderer",function(){if(duL===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);duL=M}M=duL;return M},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var lrd;var zg=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework");return M};
_.v(zg,_.n);zg.prototype.computeShouldButtonBeVertical=function(M,d){return M||d};
zg.prototype.onYtServiceRequestSent=function(M,d){(M=_.q(d.endpoint,_.fQ))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.la("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:M.status})):this.handleLikeEndpoint(M))};
zg.prototype.computelikeStatusEntityKey=function(M){return M==null?void 0:M.likeStatusEntityKey};
zg.prototype.handleLikeEndpoint=function(M){M.status==="LIKE"?this.JSC$14775_ytdDislikeToggleButtonRenderer.toggle(!1):M.status==="DISLIKE"?this.JSC$14775_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14775_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14775_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Hm.Object.defineProperties(zg.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var M;return rci(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(M=this.likeStatusEntity)==null?void 0:M.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var M;return rci(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(M=this.likeStatusEntity)==null?void 0:M.likeStatus)}}});
zg.prototype.onYtServiceRequestSent=zg.prototype.onYtServiceRequestSent;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],zg.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zg.prototype,"vertical",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],zg.prototype,"textTransform",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zg.prototype,"useShortsIcon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],zg.prototype,"underIconLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zg.prototype,"modern",void 0);_.G([_.H({value:"left"}),_.a("design:type",String)],zg.prototype,"buttonTooltipPosition",void 0);
_.G([_.H(),_.a("design:type",Object)],zg.prototype,"overrides",void 0);_.G([_.Z3("#like-button"),_.a("design:type",Object)],zg.prototype,"JSC$14775_ytdLikeToggleButtonRenderer",void 0);_.G([_.Z3("#dislike-button"),_.a("design:type",Object)],zg.prototype,"JSC$14775_ytdDislikeToggleButtonRenderer",void 0);_.G([_.z("data","likeStatusEntity.likeStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],zg.prototype,"likeButton",null);
_.G([_.z("data","likeStatusEntity.likeStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],zg.prototype,"dislikeButton",null);_.G([_.H({computed:"computelikeStatusEntityKey(data)"}),_.a("design:type",String)],zg.prototype,"likeStatusEntityKey",void 0);_.G([_.H({selectorArgs:["likeStatusEntityKey"],selector:QX}),_.a("design:type",Object)],zg.prototype,"likeStatusEntity",void 0);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],zg.prototype,"onYtServiceRequestSent",null);zg=_.G([_.f({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],zg);
var $uL=_.ty()(zg,"ytd-like-button-renderer",function(){if(lrd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);lrd=M}M=lrd;return M},{mode:1});_.BSm={};
_.BSm.YtConditionalRendererBehavior=[_.E.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(M,d){var N=this,R,X;return _.B(function(A){switch(A.nextAddress){case 1:if(!d)return N.hidden=!0,N.showSpinner=!1,A.return();if((R=M)==null?0:(X=R.visibilityCondition)==null?0:X.mode)switch(M.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return A.jumpTo(5);default:return A.jumpTo(6)}N.showSpinner=
!1;N.hidden=!0;return _.D(A,N.shouldShow_(M),4);case 4:N.hidden=!A.yieldResult;A.jumpTo(0);break;case 5:return _.D(A,N.shouldShow_(M),8);case 8:N.showSpinner=A.yieldResult;N.hidden=!1;A.jumpTo(0);break;case 6:return N.showSpinner=!1,_.D(A,N.shouldShow_(M),9);case 9:N.hidden=!A.yieldResult,_.Vy(A)}})},
shouldShow_:function(M){return M&&M.supportedDatas&&M.supportedDatas.rendererVisibilityConditionData&&M.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(M.supportedDatas.rendererVisibilityConditionData.showIf):M&&M.visibilityCondition&&M.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(M.visibilityCondition.showIf):M&&M.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(M.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(M){switch(M){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(M){switch(M){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var M=_.ZI(this.hostElement,"yt-get-mdx-status");return M.length==1&&M[0].connected},
isLocationPermissionGranted_:function(){var M;return _.B(function(d){return d.nextAddress==1?navigator.permissions?_.D(d,navigator.permissions.query({name:"geolocation"}),3):d.jumpTo(2):d.nextAddress!=2?(M=d.yieldResult,d.return(Promise.resolve(M.state==="granted"))):d.return(Promise.resolve(!1))})}}];var kkV=function(M,d){d=d===void 0?{}:d;return function(N){var R=document.createElement(M),X;var A=(X=R.polymerController)!=null?X:R;$Wv(R,A,N,d);return R}}("yt-icon");var TSV=function(M){var d=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];EBN();_.fE("ytglobal.ytUtilActivityCallback_",function(){_.Eu(M,"yt-user-activity")});
new tk(function(){return d.JSC$14787_onMouseMove});
document.addEventListener("scroll",function(){return d.onScroll});
window.addEventListener("resize",function(){return d.onResize})},DuL=function(M,d,N){d in M.eventJobIds||(N=_.Pa().addLowPriorityJob(function(){_.G2();
delete M.eventJobIds[d]},N),M.eventJobIds[d]=N)};
TSV.prototype.onScroll=function(M){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):M.target===document&&DuL(this,"scroll",200)};
TSV.prototype.onResize=function(){DuL(this,"resize",200)};
TSV.prototype.JSC$14787_onMouseMove=function(){DuL(this,"mousemove",100)};
_.nAL=function(M){M.scrollEventsToIgnore+=1;M.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){M.scrollEventsToIgnore--},500))};var gG3=function(M){this.element=M;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
gG3.prototype.showFeedbackDialog=function(M,d,N,R){var X=WhV();if(!X)return!1;var A=fzN();A.productId=X;d&&(A.flow="submit",A.report={description:d});N&&(WhV()==="59"?A.callback=_.JA(function(){_.hQ("userFeedbackEvent",{});N()}):A.callback=_.JA(N));
A.bucket=R||_.rK("GOOGLE_FEEDBACK_BUCKET","Other");wo3(A);M=poe(this,"GFEEDBACK",M);try{_.S1d(A,M)}catch(l){return _.yD(l),!1}return!0};
gG3.prototype.showHelpDialog=function(M,d,N){var R=this,X=WhV();if(!X)return!1;var A={helpCenterPath:"/youtube",productData:poe(this,"GUIDED_HELP",N)};wo3(A);var l=fzN();l.context=M||A.productData.context||"default";l.defaultHelpArticleId=d;l.enableSendFeedback=!0;(_.cy("gapi.load")||function(k,T){return T()})("client",function(){try{var k=hyC(X,A);
if(_.Q("web_always_load_chat_support")&&!R.chatSupportLoaded)try{k.JSC$7859_loadChatSupport(l),R.chatSupportLoaded=!0}catch(T){}k.startHelp(l)}catch(T){_.yD(T)}})};
var WhV=function(){var M=_.rK("GOOGLE_FEEDBACK_PRODUCT_ID");M||_.yD(Error("ei"));return M},wo3=function(M){M&&(M.locale=_.Q("kevlar_help_use_locale")?_.rK("INNERTUBE_CONTEXT_HL","en"):_.rK("HTML_LANG","en"))},poe=function(M,d,N){var R=M.productData;
delete R.origin;R.device=_.gZ();var X;a:{if(X=document.createElement("canvas")){var A=X.getContext("experimental-webgl",{stencil:!0});if(A){var l=A.getExtension("WEBGL_debug_renderer_info");if(l){X=A.getParameter(l.UNMASKED_RENDERER_WEBGL);break a}}if(A=X.getContext("webgl")){X=A.getParameter(A.RENDERER);break a}}X=null}R.gpu=X;R.isSDC=!!_.rK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(X=_.rK("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.wF.extend(R,X);_.nxp(d,R);_.ijN(R);(M=_.Eu(M.element,"yt-get-autonav-pause-debug-state"))&&
M.length&&(R.autonav_pause_state=M[0]);M=_.Xt();R.browser_resolution=M.width+"\u00d7"+M.height+"@"+(window.devicePixelRatio||1)+"x";N&&_.wF.extend(R,N);return R};
gG3.prototype.resetProductData=function(){this.productData={}};var muI=function(M){this.feedbackManager=new gG3(M)};
muI.prototype.showFeedbackDialog=function(M,d,N,R){return this.feedbackManager.showFeedbackDialog(M,d,N,R)};
muI.prototype.showHelpDialog=function(M,d,N){return this.feedbackManager.showHelpDialog(M,d,N)};var h3z=function(){this.baseUrl="";this.aTag=document.createElement("a")},Ygz=function(M,d,N){N=N===void 0?{}:N;
N.pbj||(N.pbj=1);N=_.epj(d,N);M.baseUrl&&N&&!_.tA(N)[1]&&!_.GN(N)&&(d=M.baseUrl,l2(d,"/")&&(d=d.slice(0,-1)),_.AL(N,"/")&&(N=N.slice(1)),N=d+"/"+N);IO(M.aTag,k8(N||""));return M.aTag.href};
h3z.prototype.fetchData=function(M){return _.ccj(M)};
h3z.prototype.postData=function(M,d){var N={method:"POST"};if(d){for(var R=_.V(Object.keys(d)),X=R.next();!X.done;X=R.next()){X=X.value;var A=d[X];_.Me(A)&&(d[X]=JSON.stringify(A))}N.postParams=d}return _.ccj(M,N)};
_.Zrt=function(M,d,N,R,X){M=Ygz(M,d,N);if(!M)throw R=Error("fi"),Object.assign(R,{params:d}),R;return _.ccj(M,X,R)};
h3z.prototype.requestDataForServiceEndpoint=function(M,d){if(_.q(M,_.nIr))return this.fetchData("/getAccountSwitcherEndpoint");d=d||{};var N=_.q(M,C8o);N?d.se=N.base64EncodedServiceEndpoint:d.sej=JSON.stringify(M);(N=_.Ou())&&_.Q("enable_service_ajax_csn")&&(d.csn=N);d.theme=_.OO();_.q(M,eWS)&&_.rK("DELEGATION_CONTEXT")&&(d.delegation_context=JSON.stringify(_.rK("DELEGATION_CONTEXT")));N=null;for(var R in M)if(l2(R,"Endpoint")||l2(R,"Command")){N=R;break}if(!N){var X=Error("gi");Object.assign(X,{params:M});
_.SzZ(X,"WARNING");return new _.Xy(function(l,k){k(X)})}R={name:N};
var A;(N=(A=_.q(M,_.A$))==null?void 0:A.signal)&&(R.signal=N);(A=_.is(window.location.href))&&A.internalcountrycode&&(R.internalcountrycode=A.internalcountrycode);A="/service_ajax";_.Q("debug_forward_web_query_parameters")&&(A=_.atZ(A,window.location.search));A=_.LF(A,R);M.clickTrackingParams&&_.tX(A,{itct:M.clickTrackingParams});return this.postData(A,d)};_.Qod=new _.x5("GFEEDBACK_TOKEN");var qR3;var Iro;var vGJ;var OMz;var bZ=function(){var M=_.n.apply(this,arguments)||this;M.compact=!1;return M};
_.v(bZ,_.n);bZ.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bZ.prototype.computeHasIcon_=function(M){return!!M};
bZ.prototype.isSignInIcon_=function(M){return M=="yt-icons:prompted_sign_in"};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.BSm.YtConditionalRendererBehavior),_.a("design:type",Object)],bZ.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bZ.prototype,"data",void 0);
_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],bZ.prototype,"icon_",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.a("design:type",Boolean)],bZ.prototype,"hasIcon_",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.a("design:type",Boolean)],bZ.prototype,"signInIcon_",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],bZ.prototype,"compact",void 0);
bZ=_.G([_.w4({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],bZ);
_.L(bZ,"yt-player-error-message-renderer",function(){if(OMz===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vGJ===void 0&&(vGJ=document.createElement("template"));var R=vGJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);OMz=M}M=OMz;return M},{mode:2});var joC;var soo;var e7=function(){return _.n.apply(this,arguments)||this};
_.v(e7,_.n);e7.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
e7.prototype.computeIcon_=function(M){return M?"yt-icons:"+M.iconType.toLowerCase():"error_outline"};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e7.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],e7.prototype,"icon_",void 0);e7=_.G([_.w4({is:"yt-player-kav-renderer",disableElementRegistration:!0})],e7);
_.L(e7,"yt-player-kav-renderer",function(){if(soo===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;joC===void 0&&(joC=document.createElement("template"));var R=joC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);soo=M}M=soo;return M},{mode:2});_.eC(_.SG(function(M){var d=_.e5(),N=_.V(_.d0(0,void 0,"gCmSbf")),R=N.next().value,X=N.next().value;N=_.V(_.d0(null,void 0,"Rj9zMe"));var A=N.next().value,l=N.next().value;_.IJ(function(){G8i(d.value,X,l);d.value.scrollIntoView()});
N=azN.bind(null,M.data,R);La("resize",function(){var k=A();if(R()===1&&k!==null){var T;(T=window.grecaptcha)==null||T.reset(k)}});
return _.g("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.g("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.g("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var k,T;return(k=M.data().accessibility)==null?void 0:(T=k.accessibilityData)==null?void 0:T.label}),_.g(_.lG,{text:N,
className:_.xj("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.g("div",{el:d,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Ud"),"yt-player-captcha-view-model",{props:{data:_.bI}});var U42=!1;_.Pzt=_.SG(function(M){var d=M.data;return _.g("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.g(_.kV,{cond:function(){return d().icon},
then:function(N){return _.g("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.g(_.Jt,{data:N,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.g(_.kV,{cond:function(){return d().title},
then:function(N){return _.g("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.g(_.lG,{text:N}))}}),_.g(_.kV,{cond:function(){return d().description},
then:function(N){return _.g("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.g(_.lG,{text:N}))}}),_.g(_.ho,{data:function(){return d().primaryButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.g(_.ho,{data:function(){return d().secondaryButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Vd");
_.Pzt.idomCompat=!0;var oGV=_.SG(function(M){var d=M.data;_.Gf();return _.g("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.g("div",{class:"player-interstitial-renderer-wiz__scrim"},_.g(_.ho,{data:function(){return d().content}},{interstitialViewModel:_.Pzt})))},"Wd");
oGV.idomCompat=!0;_.eC(oGV,"yt-player-interstitial-renderer",{props:{data:_.cA}});var H7=function(){var M=_.n.apply(this,arguments)||this;M.noBackground=!1;M.compact=!1;M.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return M};
_.v(H7,_.n);H7.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"}}}};
H7.prototype.onUpdatePlayerErrorMessageCommand_=function(M){if(_.q(M,FQo)){var d;if(M=(d=_.q(M,FQo))==null?void 0:d.newPlayerErrorMessageRenderer)this.data=M}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],H7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],H7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],H7.prototype,"status",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],H7.prototype,"noBackground",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],H7.prototype,"compact",void 0);H7=_.G([_.w4({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],H7);
var rZL=_.ty()(H7,"yt-playability-error-supported-renderers",function(){if(Iro===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qR3===void 0&&(qR3=document.createElement("template"));var R=qR3;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Iro=M}M=Iro;return M},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var uhi=void 0,x4q=void 0;var ExL=new XUt;var $_=new _.x5("ENTITY_STATE_TOKEN"),nr=new _.x5("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Khd=function(M){this.store=M;this.q5g=new _.Vzt},RIZ=function(M,d,N){var R,X;
if(!(X=((R=d.playabilityStatus)==null?void 0:R.status)!=="OK")){M=M.store;var A;X=d.offlineState&&((A=d.videoDetails)==null?0:A.videoId)?_.Q("enable_pl_r_c_cd")?TJ6(M.getState().entities,d.videoDetails.videoId):!!wq2(M.getState().entities,d.videoDetails.videoId):!1}if(X)return!0;X=XML(d);if(X===1){if(_.Q("ab_v_vid_sig")){var l,k=(l=d.videoDetails)==null?void 0:l.videoId;if(!k||!N||k!==N){var T;d=new _.WJ("282054944_vid",{ora:N,mgk:(T=d.videoDetails)==null?void 0:T.videoId});_.qZ(d)}}return!0}CWL=
0;var W,w;T=(k=d.auxiliaryUi)==null?void 0:(W=k.messageRenderers)==null?void 0:(w=W.bkaEnforcementMessageViewModel)==null?void 0:w.displayType;if(X!==3&&(T==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||T==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;T={reason:_.ue(_.le("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.Q("ks_something_wrong_learn_more")?Ci6("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.ue(_.le("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:_.ue("282054944")};yZL(d,{playerErrorMessageRenderer:T});return!1},X9r=function(M,d){if(kci(d)){_.X8(1,!0);
var N=(N=kci(d))&&_.Chv()?N:void 0;N?(yZL(d,{enforcementMessageViewModel:N}),M.q5g.increment("IN_PLAYER"),_.X8(5)):(M.q5g.increment("SKIP_DISPLAY"),_.X8(2))}},yZL=function(M,d){M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",
errorScreen:d});M.videoDetails=void 0};
Khd.prototype.handleResponse=function(M,d){if(M.playabilityStatus){var N,R,X,A=(d==null?void 0:(N=d.innerTubeRequest)==null?void 0:N.videoId)||(d==null?void 0:(R=d.innerTubeRequest)==null?void 0:(X=R.playerRequest)==null?void 0:X.videoId);RIZ(this,M,A)&&X9r(this,M)}};
Khd[CU]=[$_];var d5S=new _.x5("ADBLOCK_DETECTION_SERVICE_TOKEN");var Zb=function(M){this.yuU=M};
Zb.prototype.bindInnertubeChallengeFetcher=function(M){this.yuU.bicf(M)};
Zb.prototype.registerChallengeFetchedCallback=function(M){this.yuU.bcr(M)};
Zb.prototype.getLatestChallengeResponse=function(){return this.yuU.blc()};var z3g;_.iZ=function(M,d,N){var R=this;this.network=M;this.options=d;this.networkStatusManager=N;this.gY=null;if(d.useBotguardEverywhere){var X=new _.MX;this.gY=X.promise;_.Np.ytAtRC&&_.kM(_.IQ,function(){var A,l;return _.B(function(k){if(k.nextAddress==1){if(!_.Np.ytAtRC)return k.return();A=JZ3(null);return _.D(k,R.e9(A),2)}l=k.yieldResult;_.Np.ytAtRC&&_.Np.ytAtRC(JSON.stringify(l));_.Vy(k)})});
$7p().then(function(A){var l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return A.bindInnertubeChallengeFetcher(function(p){return R.e9(JZ3(p))}),_.D(w,Kxr(),2);
l=w.yieldResult;k=A.getLatestChallengeResponse();T=k.challenge;if(!T)throw Error("hi");W={challenge:T,en:uB(T),ri:l,bgChallenge:new af};X.resolve(W);A.registerChallengeFetchedCallback(function(p){p=p.challenge;if(!p)throw Error("ii");p={challenge:p,en:uB(p),ri:l,bgChallenge:new af};R.gY=Promise.resolve(p)});
_.Vy(w)})})}else d.preload&&cZt(this,new Promise(function(A){_.gL(_.IQ,function(){A(SRg(R))},0)}))};
z3g=function(M){var d={preload:!0,useBotguardEverywhere:_.Q("attmusi")},N=!1;if(typeof d==="boolean")var R={preload:d};else typeof d==="undefined"?R={preload:!0}:(R=d,N=!!d.hCo);d=N?void 0:new _.S6;_.iZ.instance=new _.iZ(M,R,d);return _.iZ.instance};
_.iZ.prototype.q7n=function(){var M=this;return _.B(function(d){return d.nextAddress==1?_.D(d,Promise.race([M.gY,null]),2):d.return(!!d.yieldResult)})};
_.iZ.prototype.iKK=function(M,d,N){var R=this,X,A,l;return _.B(function(k){R.gY===null&&cZt(R,SRg(R));X=!1;A={};l=function(){var T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:return _.D(p,R.gY,2);case 2:T=p.yieldResult;A.challenge=T.challenge;if(!T.ri){"c1a"in T.en&&(A.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");p.jumpTo(3);break}W=Object.assign({},{c:T.challenge,e:M},d);_.Mv(p,4);X=!0;if(_.Q("attbs")&&!_.Q("attmusi")){w=_.Fiz(T.ri,{oN:W});p.jumpTo(6);break}return _.D(p,T.ri.snapshot({oN:W}),
7);case 7:w=p.yieldResult;case 6:w?A.webResponse=w:A.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.cJ(p,3);break;case 4:_.Fg(p),A.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(M==="ENGAGEMENT_TYPE_PLAYBACK"){var m=T.en,I={};if(m.c6a){var O=Number(_.rK("DCLKSTAT",0));I.reportingStatus=String(Number(m.c)^(isNaN(O)?0:O))}m.c6b&&(I.broadSpectrumDetectionResult=String(Number(m.c)^Number(_.rK("CATSTAT",0))));A.adblockReporting=I}return p.return(A)}})};
return k.return(Promise.race([l(),bM3(N,function(){var T=Object.assign({},A);X&&(T.error="ATTESTATION_ERROR_VM_TIMEOUT");return T})]))})};
var JZ3=function(M){var d={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};M&&(d.interpreterHash=M);return d},SRg=function(M,d){d=d===void 0?0:d;
var N,R,X,A,l,k,T,W,w,p,m,I;return _.B(function(O){switch(O.nextAddress){case 1:N=JZ3(VML().s62);if(_.Q("att_fet_ks"))return _.Mv(O,7),_.D(O,M.e9(N),9);_.Mv(O,4);return _.D(O,e33(M,N),6);case 6:l=O.yieldResult;X=l.fZn;A=l.jd6;R=l;_.cJ(O,3);break;case 4:return _.Fg(O),_.vh(Error("ji`"+d)),HMg(M,864E5),O.return({challenge:"",en:{},ri:void 0,bgChallenge:void 0});case 9:R=O.yieldResult;if(!R)throw Error("ki");if(!R.challenge)throw Error("li");X=R.challenge;A=uB(X);if("c1a"in A&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("mi");
_.cJ(O,3);break;case 7:k=_.Fg(O);_.vh(k);d++;if(d>=5)return _.vh(Error("ji`"+d)),HMg(M,864E5),O.return({challenge:"",en:{},ri:void 0,bgChallenge:void 0});T=1E3*Math.pow(2,d-1)+Math.random()*1E3;return O.return(new Promise(function(y){_.gL(_.IQ,function(){y(SRg(M,d))},T)}));
case 3:W=laA(A);HMg(M,W*1E3);w=void 0;if(!("c1a"in A&&R.bgChallenge)){O.jumpTo(10);break}p=Vnp(R.bgChallenge);_.Mv(O,11);return _.D(O,$yt(VML(),p),13);case 13:_.cJ(O,12);break;case 11:return m=_.Fg(O),_.vh(m),O.return({challenge:X,en:A,ri:w,bgChallenge:p});case 12:return _.Mv(O,14),w=new _.K2({challenge:p,zi:{dN:"aGIf"}}),_.D(O,w.lgG,16);case 16:_.cJ(O,10);break;case 14:I=_.Fg(O),_.vh(I),w=void 0;case 10:return O.return({challenge:X,en:A,ri:w,bgChallenge:p})}})};
_.iZ.prototype.e9=function(M){var d=this,N;return _.B(function(R){N=d.networkStatusManager;if(!N||N.isNetworkAvailable())return R.return(d.network.e9(M));_.jD("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(X){N.listenOnce("publicytnetworkstatus-online",function(){d.network.e9(M).then(X)})}))})};
var nGt=function(M){if(!M)throw Error("ki");if(!M.challenge)throw Error("li");var d=M.challenge,N=uB(d);if("c1a"in N&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("mi");return Object.assign({},M,{fZn:d,jd6:N})},e33=function(M,d){var N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:N=void 0,R=0,X={};case 2:if(!(R<5)){k.jumpTo(4);break}if(!(R>0)){k.jumpTo(5);break}X.gKg=1E3*Math.pow(2,R-1)+Math.random()*1E3;return _.D(k,new Promise(function(T){return function(W){_.gL(_.IQ,function(){W(void 0)},T.gKg)}}(X)),5);
case 5:return _.Mv(k,7),_.D(k,M.e9(d),9);case 9:return A=k.yieldResult,k.return(nGt(A));case 7:N=l=_.Fg(k),l instanceof Error&&_.vh(l);case 8:R++;X={gKg:void 0};k.jumpTo(2);break;case 4:throw N;}})},cZt=function(M,d){M.gY=d},iML=function(M){var d,N,R;
return _.B(function(X){if(X.nextAddress==1)return _.D(X,Promise.race([M.gY,null]),2);d=X.yieldResult;var A=SRg(M);M.gY=A;(N=d)==null||(R=N.ri)==null||R.dispose();_.Vy(X)})},HMg=function(M,d){var N=Date.now()+d,R=function(){var X;
return _.B(function(A){X=N-Date.now();return X<1E3?_.D(A,iML(M),0):(_.gL(_.IQ,R,Math.min(X,6E4)),A.jumpTo(0))})};
R()},bM3=function(M,d){return new Promise(function(N){_.gL(_.IQ,function(){N(d())},M)})};var frI=function(){};
frI.prototype.processContext=function(M){var d=_.iZ.instance;if(!d)return _.Hq();var N=gbr(M);return N?new eH(d.iKK(N,TgL(M),500).then(function(R){var X;(M==null?0:(X=M.innerTubeRequest)==null?0:X.context)||(M.innerTubeRequest.context={});X=M.innerTubeRequest.context;X.request||(X.request={});X.request.attestationResponseData=R})):_.Hq()};var Lhg=function(M){this.innertubeTransportService=M};
Lhg.prototype.e9=function(M){_.jD("att_fsr",void 0,"attestation_challenge_fetch");return _.Pn(this.innertubeTransportService,M,_.fh(_.CWC)).then(function(d){_.jD("att_frr",void 0,"attestation_challenge_fetch");return d})};_.tZd=function(M){this.innertubeTransportService=M};var Gke=new _.x5("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var arL=function(){},uR3=function(M,d,N,R,X){var A=_.rK("YPC_MB_URL");
_.U7A(A).then(function(){UuL(A,M,d,N,R,X)})},UuL=function(M,d,N,R,X,A){try{var l=payments.business.integration,k=payments.business.integration.Style.create().withMaterialDesignStyle(),T=l.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.Q("enable_window_constrained_buy_flow_dialog")&&(T=T.usingPopupStyle("windowConstrained"));A&&(T=T.usingCloseCallback(A));var W=N?N:_.rK("YPC_GB_LANGUAGE"),w=_.rK("SESSION_INDEX");l.bootstrap.fromPaymentsUrl(M);l.bootstrap.asMashupMode(T).usingGaiaIndex(w).usingLocale(W).usingStyle(k).usingDefaultActivityStatusChangeHandler().inStandaloneContext(l.standaloneContextAuthId.forGaia()).purchaseManager(d,function(p){R&&R(p)}).load(void 0,X)}catch(p){throw X&&X(p),_.qZ(p),p;
}};var CzV=new _.x5("PURCHASE_MANAGER_TOKEN");var xue=function(){var M=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return M.videos},
getContinuationsPresent:function(){return M.continuationsPresent},
setVideos:function(d){M.videos=d},
getRecommendedVideos:function(){return M.recommendedVideos},
setRecommendedVideos:function(d){M.recommendedVideos=d}}};
xue.prototype.addVideos=function(M){M&&(this.videos=M.filter(function(d){return!!_.wMA(d)}).map(function(d){var N=_.wMA(d);
a:{var R;if(d.playlistVideoRenderer&&((R=d.playlistVideoRenderer)==null?0:R.voteSortTiebreaker))var X=d.playlistVideoRenderer.voteSortTiebreaker;else{if(_.q(d,Mb)){var A;if(R=(X=_.q(d,Mb))==null?void 0:(A=X.playlistItemData)==null?void 0:A.voteSortTiebreaker){X=R;break a}}X=""}}return{itemId:N,videoId:_.hYj(d),voteCount:_.Q$i(d),voteSortTiebreaker:X}}),this.continuationsPresent=!!_.q(M[M.length-1],_.R1))};
var YRV=function(M,d){return M.videos.findIndex(function(N){return N.itemId===d})},ZMz=function(M,d){return M.recommendedVideos.findIndex(function(N){return N.itemId===d})},EGI=function(M){M={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:M}}}}};_.h().resolve(_.xV).resolveCommand(M)};var MbJ=function(){xue.apply(this,arguments)};
_.v(MbJ,xue);
var U4L=function(M,d,N,R){if(!M.parentElem)throw Error("ri");var X=YRV(M,d);X===-1&&(X=ZMz(M,d),X=X!==-1?X+M.videos.length:-1);if(X===-1)throw Error("si");var A=X>=M.videos.length?M.recommendedVideos[X-M.videos.length]:M.videos[X];A.voteCount=N;A.voteSortTiebreaker=Date.now().toString();X>=M.videos.length?M.recommendedVideos.splice(X-M.videos.length,1):M.videos.splice(X,1);var l=M.videos;for(var k=0,T=l.length-1;k<=T;){var W=Math.floor((k+T)/2);if(l[W].voteCount<A.voteCount)T=W-1;else if(l[W].voteCount>A.voteCount)k=
W+1;else{a:{var w=A.voteSortTiebreaker;var p=l[W].voteSortTiebreaker;if(w.length!==p.length)w=w.length>p.length;else{for(var m=0;m<w.length;m++){var I=w.charCodeAt(m),O=p.charCodeAt(m);if(I>O){w=!0;break a}if(I<O)break}w=!1}}w?T=W-1:k=W+1}}l=k;if(l===-1)throw Error("ti");M.videos.splice(l,0,A);X!==l&&dRz(M,X,l,d,N,R)},dRz=function(M,d,N,R,X,A){var l,k=(l=M.parentElem)==null?void 0:l.children,T=Math.min(d,N),W=Math.max(d,N);
if(k)for(l=T;l<=W;l++)k[l].style.viewTransitionName="item-"+String(l);document.startViewTransition(function(){if(M.parentElem){var w=M.parentElem.children;if(!(!w||d<0||d>=w.length||N<0||N>=w.length)){var p=w[d];if(p){p.remove();M.showRefreshPill=N>=M.videos.length-1&&M.continuationsPresent;if(!M.showRefreshPill){w=w[N]||null;var m;(m=M.parentElem)==null||m.insertBefore(p,w)}_.YP(M.parentElem,"yt-update-video-data-voting-animation",{toIdx:N,itemId:R,newVoteCount:X,voteStatus:A,hideItem:M.showRefreshPill})}}}}).finished.then(function(){if(k)for(var w=
T;w<=W;w++)k[w].style.viewTransitionName="";
if(M.showRefreshPill)EGI(_.le("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var p;if(p=w=(p=M.parentElem)==null?void 0:p.children[N])p=w.getBoundingClientRect(),w=p.bottom,p=!(p.top>=0&&w<=M.clientHeight);p&&(p=_.$S(d>N?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(d-N)),EGI(p))}})};var X$d=function(M,d){var N=this;M?this.innertubeTransportServicePromise=Promise.resolve(M):d&&(this.innertubeTransportServicePromise=d(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new j7(3E3,function(R){return NOd(N,R)},0);
this.validateMiniAppVideoIdRateLimiter=new j7(3E3,function(R){return RsL(N,R)},1)},i1C=function(M,d){M.JSC$14901_miniAppId=d;
M.reportMiniAppValueRateLimiter=new j7(3E3,function(N){return NOd(M,N)},0);
M.validateMiniAppVideoIdRateLimiter=new j7(3E3,function(N){return RsL(M,N)},1)},LKJ=function(M,d){var N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.reportMiniAppValueRateLimiter.call(d),2);N=R.yieldResult;return R.return([N,d])})},NOd=function(M,d){var N,R,X,A,l,k,T;
return _.B(function(W){switch(W.nextAddress){case 1:return _.D(W,M.innertubeTransportServicePromise,2);case 2:return N=W.yieldResult,R=_.fh(Nhm),X=Date.now(),A={externalPostId:M.JSC$14901_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(X/1E3),nanos:Math.round(X%1E3*1E6)},intValue:""+d}},_.Mv(W,3),_.D(W,_.Pn(N,A,R),5);case 5:l=W.yieldResult;_.cJ(W,4);break;case 3:throw k=_.Fg(W),k;case 4:if(l){if("error"in l&&l.error)throw l.error;if(l.errorMetadata)throw Error("ui`"+
l.errorMetadata.status);if(T=l.userStatResult)return W.return(T);throw Error("vi");}throw Error("wi");}})},GXJ=function(M){var d,N,R,X,A;
_.B(function(l){switch(l.nextAddress){case 1:return _.D(l,M.innertubeTransportServicePromise,2);case 2:return d=l.yieldResult,N=_.fh(Nhm),R={externalPostId:M.JSC$14901_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Mv(l,3),_.D(l,_.Pn(d,R,N),5);case 5:X=l.yieldResult;_.cJ(l,4);break;case 3:throw A=_.Fg(l),A;case 4:if(X==null)throw Error("wi");if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("ui`"+X.errorMetadata.status);_.Vy(l)}})};
X$d.prototype.flush=function(){var M=this;return _.B(function(d){return d.nextAddress==1?_.D(d,M.reportMiniAppValueRateLimiter.flush(),2):_.D(d,M.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var taI=function(M,d){return _.B(function(N){return N.nextAddress==1?_.D(N,M.validateMiniAppVideoIdRateLimiter.call(d),2):N.return(N.yieldResult)})},RsL=function(M,d){var N,R,X,A,l,k;
return _.B(function(T){switch(T.nextAddress){case 1:return _.D(T,M.innertubeTransportServicePromise,2);case 2:return N=T.yieldResult,R=_.fh(unJ),X={videoId:d},_.Mv(T,3),_.D(T,_.Pn(N,X,R),5);case 5:A=T.yieldResult;_.cJ(T,4);break;case 3:throw l=_.Fg(T),l;case 4:if(A){if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("ui`"+A.errorMetadata.status);if(k=A.playabilityStatus)return T.return(k.status);throw Error("xi");}throw Error("wi");}})};
X$d[CU]=[_.CF(_.D3),_.CF(ONJ)];var FHV=function(){this.clientData=new Map};
FHV.prototype.getData=function(M){return this.clientData.get(M)};var A7L=function(M){this.store=M};
A7L.prototype.handleResponse=function(M){(M=_.q(M.frameworkUpdates,JI))&&_.lY(M,this.store)};
A7L[CU]=[_.ql];var VbL=new _.x5("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var lEo={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,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_list:[[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 $RC=new _.x5("ICON_SET_TOKEN"),BO3=new _.x5("ICON_URL_PROVIDER_TOKEN"),kVL=new _.x5("PREFETCH_ICONS_TOKEN"),TOV=new _.x5("ICON_MAP_FN_TOKEN");var fr={},DRV=(fr.ACCESS_TIME="clock",fr.ACCOUNT_BOX="person_account",fr.ACCOUNT_BOX_CAIRO="person_account_cairo",fr.ACCOUNT_CIRCLE="person_circle",fr.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",fr.ACCOUNT_LINKED="account_link_success",fr.ACCOUNT_UNLINKED="account_link",fr.ADD_FRIEND="people",fr.ADD_TO_LIBRARY=Nb("add"),fr.ADD_TO_PLAYLIST="add",fr.ADD_TO_QUEUE_TAIL="list_queue",fr.ADD_TO_REMOTE_QUEUE="list_music",fr.ADD_TO_WATCH_LATER="clock",fr.ADD_VIDEO_LINK="film_strip_add",fr.ALERT_WARN_RED="alert_triangle",
fr.ARROW_BACK="arrow_left",fr.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",fr.ARROW_DROP_DOWN="chevron_down",fr.ARROW_DROP_UP="chevron_up",fr.ARROW_FORWARD="arrow_right",fr.AUDIOTRACK="audio",fr.AUTO_AWESOME="sparkle",fr.AVATAR_ANONYMOUS="person_circle",fr.AVATAR_LOGGED_OUT="person_circle",fr.BACK="arrow_left",fr.BAR_CHART="bar_graph",fr.BLOCK="slash_circle_left",fr.BLOCK_USER="slash_circle_left",fr.BOOKMARK_BORDER="bookmark",fr.BREAKING_NEWS_ALT_1="article_alert",fr.BROADCAST_CAIRO="podcast_cairo",
fr.BUG_REPORT="bug",fr.CAMERA_ALT="camera",fr.CAMPAIGN="megaphone",fr.CANCEL="x_circle",fr.CAPTIONS="closed_caption",fr.CAST_OUTLINE="chromecast",fr.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",fr.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",fr.CHAT="message_bubble_left",fr.CHAT_BUBBLE="message_bubble_empty",fr.CHECK_BOX_OUTLINE_BLANK="box_empty",fr.CHECK_CIRCLE_OUTLINE="check_circle",fr.CHECK_CIRCLE_THICK="check_circle",fr.CLARIFY="article_clarify",fr.CLOSED_CAPTION_SELECTED="closed_caption",fr.CLOSE=
"x_mark",fr.CLOUD_UPLOAD="cloud_arrow_up",fr.COLLAPSE="chevron_up",fr.COLLAPSE_CAIRO="chevron_up_cairo",fr.COLLECTION="layers",fr.COLOR_LENS="palette",fr.COMMENT="message_bubble_right",fr.CONSENT_SHIELD="person_shield",fr.CONTENT_CUT="scissors",fr.CONTENT_CUT_CAIRO="scissors_cairo",fr.COURSE=_.Q("web_enable_course_icon_update")?"creator_academy":"lightbulb",fr.COURSE_CAIRO=_.Q("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",fr.CREATION_LIVE="radar_live",fr.CREATION_UPLOAD=
"my_videos",fr.CREATION_UPLOAD_RED="upload",fr.CREATOR_STUDIO="youtube_studio",fr.DELETE="trash_can",fr.DELETE_SWEEP="trash_can",fr.DESKTOP="laptop",fr.DISLIKE="thumb_down",fr.DISLIKE_SELECTED="thumb_down",fr.DISMISSAL="x_mark",fr.DISMISS_QUEUE="list_remove",fr.DOWN_ARROW="arrow_down",fr.DO_NOT_DISTURB="slash_circle_left",fr.DRAFT="paper_corner_folded",fr.DRAG_HANDLE="bars_2",fr.EDIT="pencil",fr.EMOJI="face_very_happy",fr.EMOJI_FLAGS="flag",fr.EMOJI_OBJECTS="lightbulb",fr.EMOJI_PEOPLE="face_very_happy",
fr.EMOJI_RECENT="clock",fr.EMPTY_HEART="heart",fr.EMPTY_LIKE="thumb_up",fr.ERROR_BLACK="alert_circle",fr.ERROR_OUTLINE="alert_circle",fr.EXIT_APP="arrow_in",fr.EXIT_TO_APP="arrow_in",fr.EXPAND="chevron_down",fr.EXPAND_ALL="chevron_expand",fr.EXPAND_CAIRO="chevron_down_cairo",fr.EXPAND_LESS="chevron_up",fr.EXPAND_MORE="chevron_down",fr.EXPLORE="compass",fr.EXPLORE_DESTINATION="compass",fr.EXTERNAL_LINK="open_new",fr.FAB_UPLOAD="upload",fr.FACE_HAPPY_OUTLINE="face_happy",fr.FACT_CHECK="article_check",
fr.FASHION_LOGO="fashion",fr.FASHION_LOGO_CAIRO="fashion_cairo",fr.FAVORITE="heart",fr.FEEDBACK="message_bubble_alert",fr.FEEDBACK_CAIRO="message_bubble_alert_cairo",fr.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",fr.FILL_ARROW_SOLID_UP_16="arrow_solid_up",fr.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",fr.FLAG="flag",fr.FULL_HEART="heart",fr.GAME_CONSOLE_DPAD="game_console_dpad",fr.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",fr.GAMING_LOGO="gaming",fr.GAMING_LOGO_CAIRO="gaming_cairo",fr.GO_TO_PAGE=
"arrow_right",fr.GROUPS="people_group",fr.HAPPY="face_happy",fr.HEALTH_AND_SAFETY="shield_plus",fr.HELP="question_circle",fr.HELP_CAIRO="question_circle_cairo",fr.HELP_OUTLINE="question_circle",fr.HIDE="slash_circle_left",fr.IMAGE="image",fr.INFINITY_ICON="infinity",fr.INFO="info_circle",fr.INFO_OUTLINE="info_circle",fr.INSERT_CHART_OUTLINED="bar_graph_box_vertical",fr.INSERT_PHOTO="image",fr.KEEP="pin",fr.KEEP_OFF="pin_off",fr.KEYBOARD="keyboard",fr.KEYBOARD_ARROW_DOWN="chevron_down",fr.KEYBOARD_ARROW_UP=
"chevron_up",fr.KIDS_BLOCK="slash_circle_left",fr.LANGUAGE="globe",fr.LAUNCH="open_new",fr.LEARNING="lightbulb",fr.LEARNING_CAIRO="lightbulb_cairo",fr.LIBRARY_ADD=Nb("library_add"),fr.LIBRARY_OUTLINE="library",fr.LIBRARY_REMOVE=Nb(),fr.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",fr.LIKES_PLAYLIST="thumb_up",fr.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",fr.LIKE="thumb_up",fr.LIKE_SELECTED="thumb_up",fr.LIVE="radar_live",fr.LIVE_CAIRO="radar_live_cairo",fr.LIVE_UNLISTED="link",fr.LOCATION_ON="location_point",
fr.LOCATION_PIN="location_point",fr.LOOP="arrow_repeat",fr.LOOP_ACTIVE="arrow_repeat",fr.LOOP_ONE="arrow_repeat_1",fr.LOOP_ONE_ACTIVE="arrow_repeat_1",fr.MEH="face_meh",fr.MEMBERS_ONLY_MODE_OFF="message_bubble_left",fr.MESSAGE="message_bubble_left",fr.MICROPHONE_ON="mic",fr.MIX="youtube_mix",fr.MONETIZATION_ON="dollar_sign_circle",fr.MONEY_FILL="dollar_sign_container",fr.MONEY_FILL_JPY="yen_sign_container",fr.MONEY_HEART="dollar_sign_heart",fr.MORE_HORIZ="overflow_horizontal",fr.MORE_VERT="overflow_vertical",
fr.MUSIC="audio",fr.MUSIC_CAIRO="audio_cairo",fr.MUSIC_NOTE_SYMBOL="music",fr.MUSIC_SHUFFLE="arrow_shuffle",fr.MY_CHANNEL="person_circle",fr.MY_LOCATION="location_point",fr.NEWS_STORY="news",fr.NEXT="chevron_right",fr.NOTIFICATIONS="bell",fr.NOTIFICATIONS_ACTIVE="bell_on",fr.NOTIFICATIONS_CAIRO="bell_cairo",fr.NOTIFICATIONS_DONE_CHECKMARK="check",fr.NOTIFICATIONS_INBOX="bell",fr.NOTIFICATIONS_NONE="bell",fr.NOTIFICATIONS_OFF="bell_off",fr.NOT_INTERESTED="slash_circle_left",fr.OFFICIAL_ARTIST_BADGE=
"audio",fr.OFFLINE_CLOUD="cloud_off",fr.OFFLINE_DOWNLOAD="download",fr.OFFLINE_DOWNLOAD_CAIRO="download_cairo",fr.OFFLINE_PAUSE="pause",fr.OPEN_IN_NEW="open_new",fr.OUTLINE_ADJUST="adjust",fr.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",fr.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",fr.OUTLINE_BAG="bag",fr.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",fr.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",fr.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",fr.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
fr.PAID="dollar_sign",fr.PAUSE_OUTLINED="pause",fr.PAYMENT="credit_card",fr.PERSON_RADAR_FILLED="person_radar",fr.PHONE_DOWNLOAD="mobile_download",fr.PLAYABLES_LOGO="tic_tac_toe",fr.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",fr.PLAYLISTS="list_play_arrow",fr.PLAYLISTS_CAIRO="list_play_arrow_cairo",fr.PLAYLIST_ADD=Nb("list_add"),fr.PLAYLIST_ADD_CHECK=Nb("list_check"),fr.PLAY_ALL="play_arrow",fr.PLAY_CIRCLE="play_arrow_circle",fr.PLAY_OUTLINED="play_arrow_circle",fr.PRIVACY_INFO="shield",fr.PRIVACY_PRIVATE=
"lock",fr.PRIVACY_PUBLIC="earth",fr.PRIVACY_UNLISTED="link",fr.PROMOTE="megaphone",fr.PURCHASES="price_tag",fr.PURCHASE_SUPER_CHAT="super_chat",fr.PURCHASE_SUPER_STICKER="super_sticker",fr.QUESTION_ANSWER="message_bubble_question",fr.QUEUE_PLAY_LAST="list_queue_last",fr.QUEUE_PLAY_NEXT="list_play_arrow",fr.REMIX_FILLED="youtube_shorts_remix",fr.REMOVE="bar_circle",fr.REMOVE_CIRCLE="bar_circle",fr.REMOVE_CIRCLE_OUTLINE="bar_circle",fr.REMOVE_FROM_HISTORY="bar_circle",fr.REMOVE_FROM_PLAYLIST="bar_circle",
fr.REPLAY="arrow_circle",fr.REPORT_PROBLEM="alert_triangle",fr.SAD="face_sad",fr.SAVE_PLAYLIST=Nb("library_add"),fr.SCHEDULE="clock",fr.SCHOOL="creator_academy",fr.SCREEN_FULLSCREEN="screen_full",fr.SEARCH_HISTORY="arrow_time",fr.SELL="price_tag",fr.SETTINGS="gear",fr.SETTINGS_CAIRO="gear_cairo",fr.SETTINGS_LIGHT="gear",fr.SETTINGS_MATERIAL="gear",fr.SHARE_ARROW="share",fr.SHIELD_WITH_AVATAR="person_shield",fr.SHOPPING_BAG="bag",fr.SHOPPING_BAG_CAIRO="bag_cairo",fr.SHOPPING_CART="cart",fr.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",fr.SHORTS_DISLIKE="youtube_shorts_thumb_down",fr.SHORTS_LIKE="youtube_shorts_thumb_up",fr.SHORTS_SHARE="youtube_shorts_share",fr.SHUFFLE="arrow_shuffle",fr.SLOW_MODE_OFF="message_bubble_left",fr.SOCIAL="people",fr.SORT="menu_sort",fr.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",fr.SPEED_1X="1x",fr.SPEED_1_POINT_2X="1_point_2x",fr.SPEED_1_POINT_5X="1_point_5x",fr.SPEED_1_POINT_8X="1_point_8x",fr.SPEED_2X="2x",fr.SPEED_POINT_2X="point_2x",fr.SPEED_POINT_8X="point_8x",
fr.SPONSORSHIP_STAR=_.Q("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",fr.STAFF_PICK="spotlight",fr.START_DVR="add",fr.STAR_BORDER="star",fr.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",fr.STICKER_EMOTICON="face_happy",fr.STOP_DVR="stop",fr.SUBSCRIBE="youtube_logo_icon",fr.SUBSCRIBE_PLUS="add_cairo",fr.SUBSCRIPTION_MANAGER="gear",fr.SUPERVISOR_ACCOUNT="people",fr.SWAP_HORIZ="arrow_swap_horizontal",fr.SWITCH_ACCOUNTS="person_account",fr.TAB_ACCOUNT="person",fr.TAB_ACTIVITY=
"bell",fr.TAB_EXPLORE="compass",fr.TAB_HOME="home",fr.TAB_HOME_CAIRO="home_cairo",fr.TAB_INBOX="mail",fr.TAB_LIKED="thumb_up",fr.TAB_MUSIC_PREMIUM="youtube_music",fr.TAB_SHORTS="youtube_shorts",fr.TAB_SHORTS_CAIRO="youtube_shorts_cairo",fr.TAB_SUBSCRIPTIONS="subscriptions",fr.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",fr.TAB_TRENDING="fire",fr.TIMER="stopwatch",fr.TRENDING="fire",fr.TRENDING_CAIRO="fire_cairo",fr.TRENDING_UP="rating_up",fr.TROPHY="trophy",fr.TROPHY_CELEBRATIONS="fireworks",fr.TUNE=
"adjust",fr.UNBLOCK_USER="bar_circle",fr.UNLIMITED="youtube_logo_icon",fr.UNPLUGGED_LIVE_GUIDE="radar_live",fr.UNPLUGGED_SPORTS="eye_off",fr.UPLOADS="library",fr.UP_ARROW="arrow_up",fr.VERTICAL_ALIGN_BOTTOM="download",fr.VERY_HAPPY="face_very_happy",fr.VERY_SAD="face_very_sad",fr.VIDEOS="play_arrow_circle",fr.VIDEO_CALL="video_camera_add",fr.VIDEO_LIBRARY_WHITE="library",fr.VIDEO_YOUTUBE="youtube_logo_icon",fr.VIEW_LIST="list_view",fr.VIEW_LIST_CAIRO="list_view_cairo",fr.VISIBILITY="eye",fr.VISIBILITY_OFF=
"eye_off",fr.VOLUME_MUTE="volume_off",fr.VOLUME_UP="volume_on",fr.WALLPAPER="image",fr.WARNING="alert_triangle",fr.WATCH_HISTORY="arrow_time",fr.WATCH_HISTORY_CAIRO="arrow_time_cairo",fr.WATCH_LATER="clock",fr.WATCH_LATER_CAIRO="clock_cairo",fr.WATCH_RELATED_MIX="youtube_mix",fr.WHAT_TO_WATCH="home",fr.YOUTUBE_MUSIC_MONOCHROME="youtube_music",fr.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",fr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",fr.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",fr.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",fr.YT_OUTLINE_MUSIC_24="music",fr);var gpV={},WHt=(gpV.TAB_SHORTS="youtube_shorts",gpV.TAB_SHORTS_CAIRO="youtube_shorts",gpV.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",gpV);var w$o={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,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,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,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,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,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,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,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,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,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,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,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,1,24]],bell:[[0,8,24],[1,8,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,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,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]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,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,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,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,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,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,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,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,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,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,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,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,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,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,1,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,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,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,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,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,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,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,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,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_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,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,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,1,24]],move:[[1,1,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,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,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,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,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,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,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,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[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,1,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,3,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,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,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,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,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,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,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,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,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]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,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,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,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,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,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,5,24],[1,5,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,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var p$J={youtube_shorts:[[0,10,24],[1,10,24]]};var Lr=function(M){this.iconUrlProvider=M};
Lr.prototype.resolveIcon=function(M,d){var N=M.iconName;N=N.replace(/-/g,"_");M=Object.assign({},M,{iconName:this.mapIconTypeToStandardName(N)||N.toLowerCase()});if(_.Q("enable_web_delhi_icons")){var R;return Iai(p$J,M,((R=this.iconUrlProvider)==null?void 0:R.getYtStandardUrl)||j$2,d)}var X;return Iai(w$o,M,((X=this.iconUrlProvider)==null?void 0:X.getYtStandardUrl)||Oc6,d)};
Lr.prototype.mapIconTypeToStandardName=function(M){return _.Q("enable_web_delhi_icons")?WHt[M.toUpperCase()]:DRV[M.toUpperCase()]};
Lr[CU]=[_.CF(BO3)];var mR3=function(M){this.urlProvider=this.iconUrlProvider=M};
_.v(mR3,Lr);
mR3.prototype.resolveIcon=function(M,d){M.iconName==="youtube_logo"&&(M.iconName="yt-logo-updated");if(M.iconName==="youtube_premium_logo"||M.iconName==="youtube_red_logo")M.iconName="yt-logo-red-updated";var N=Object.assign({},M);M.iconName==="menu"&&(N.iconName="bars_3",N.iconStyle="youtube_outline");M.iconName==="youtube_music"&&(N.iconStyle="youtube_fill");M.iconName==="mail"&&M.iconSetName==="socialNetworksRound"&&(N.iconName="email");M.iconName==="more"&&(N.iconName="overflow_horizontal");M.iconName===
"fullscreen"&&(N.iconName="screen_full");if(M.iconName==="play_all"||M.iconName==="play_arrow")N.iconStyle="youtube_fill";M.iconName==="premium_standalone"&&(N.iconName="premium_standalone_cairo");_.Q("enable_connect_icon_update_web")&&M.iconName==="account_linked"&&(N.iconName="circles_overlap_check",N.iconStyle="youtube_fill");_.Q("enable_connect_icon_update_web")&&M.iconName==="account_unlinked"&&(N.iconName="circles_overlap",N.iconStyle="youtube_outline");M=Object.assign({},N,{iconName:(Lr.prototype.mapIconTypeToStandardName.call(this,
N.iconName)||N.iconName).toLowerCase()});var R;return(M=Iai(lEo,M,((R=this.urlProvider)==null?void 0:R.getUrl)||s$i,d))?M:Lr.prototype.resolveIcon.call(this,N,d)};
mR3[CU]=[_.CF(BO3)];_.hsV=1;var tG=function(){};
_.v(tG,Qo);tG.prototype.resolveCommand=function(M){var d,N;return _.B(function(R){d=_.q(M,uqg);if(!d)return R.return();N=Number(d.enableDelayedPacfLoggingTvMs);if(isNaN(N)){var X=uD();MhI(X,d,0)}else MhI(uD(),d,N);_.Vy(R)})};_.Gg=function(){};
_.v(_.Gg,Qo);
_.Gg.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){R=_.q(M,Cbg);A=(X=d.form)==null?void 0:X.element;k=(l=A)==null?void 0:l.closest("ytd-enforcement-message-view-model");if(!R||!k)return w.return();N.allowAdsAction||(T=R.fundingChoiceInstructionPageUrl,N.allowAdsAction=new qod(window,_.vf(T)));var p=N.allowAdsAction;p.wallElement=k;p.allowAdsPopup.style.setProperty("display","flex","important");var m=p.scrollManager;m.originalBodyOverflow=m.JSC$7885_domHelper.JSC$7214_document_.body.style.overflow;m.JSC$7885_domHelper.JSC$7214_document_.body.style.overflow=
"hidden";p.wallElement.style.setProperty("display","none","important");c8t(p.accessibilityManager,p.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((W=N.allowAdsAction.allowAdsPopup)&&W instanceof HTMLElement)for(p=_.V(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),m=p.next();!m.done;m=p.next()){var I=_.V(m.value);m=I.next().value;I=I.next().value;W.style.setProperty(m,I)}_.Vy(w)})};
_.Gg.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var a5=function(){};
_.v(a5,Qo);a5.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,XnI);if(!d)return N.return();UqL(M);_.Vy(N)})};var Ug=function(M){this.JSC$14941_commandHandler=M};
_.v(Ug,Qo);
Ug.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1){N=_.q(M,rVV);if((R=N)==null||!R.text||!navigator.clipboard)return w.return();_.Mv(w,2);return _.D(w,navigator.clipboard.writeText(N.text),4)}if(w.nextAddress!=2){if(!N.successActions||N.successActions.length===0)return w.return();X=_.V(N.successActions);for(A=X.next();!A.done;A=X.next())l=A.value,d.JSC$14941_commandHandler.resolveCommand(l);return _.cJ(w,0)}_.Fg(w);if(!N.failureActions||N.failureActions.length===
0)return w.return();k=_.V(N.failureActions);for(T=k.next();!T.done;T=k.next())W=T.value,d.JSC$14941_commandHandler.resolveCommand(W);_.Vy(w)})};
Ug[CU]=[_.xV];var uZ=function(M){this.JSC$14945_commandHandler=M};
_.v(uZ,Qo);
uZ.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m;return _.B(function(I){switch(I.nextAddress){case 1:R=_.q(M,kqd);if(!R)return I.return();_.Mv(I,2);if(!R.imageBytes&&!R.imageUrl)throw Error("yi");if(!R.imageUrl){if(R.imageBytes){A=R.imageBytes;l=A.replace(/-/g,"+").replace(/_/g,"/");var O=ob2(l);X=_.WQ(O)}I.jumpTo(4);break}return _.D(I,fetch(R.imageUrl),5);case 5:return k=I.yieldResult,_.D(I,k.blob(),6);case 6:T=I.yieldResult,X=_.WQ(T);case 4:p=(W=d)==null?void 0:(w=W.form)==
null?void 0:w.element;m=document.createElement("a");IO(m,X);p.appendChild(m);m.download="";m.click();p.removeChild(m);URL.revokeObjectURL(_.$8(X));R.successCommand&&N.JSC$14945_commandHandler.resolveCommand(R.successCommand);_.cJ(I,0);break;case 2:_.Fg(I),R.errorCommand&&N.JSC$14945_commandHandler.resolveCommand(R.errorCommand),_.Vy(I)}})};
uZ[CU]=[_.xV];var Cr=function(M){this.store=M};
_.v(Cr,Qo);Cr.prototype.resolveCommand=function(M){var d=this,N,R,X;return _.B(function(A){R=(N=_.q(M,_.tsd))==null?void 0:N.entityBatchUpdate;if(!R)return A.jumpTo(0);X=Object.assign({},R,{mutations:[].concat(_.wu(R.mutations||[]))});return _.D(A,_.lY(X,d.store),0)})};var QPt=function(M){this.JSC$14952_commandHandler=M;this.feedbackDialogMap=new Map};
QPt.prototype.openDialog=function(M,d){(M=this.feedbackDialogMap.get(M))&&this.JSC$14952_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:M}},d)};
QPt[CU]=[_.xV];var xU=new _.x5("FEEDBACK_CONTROLLER_TOKEN");var YU=new _.x5("APP_STORE_TOKEN");var ZP=function(M,d){this.store=M;this.controller=d};
_.v(ZP,Qo);ZP.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C;return _.B(function(U){if(U.nextAddress==1){R=_.q(M,_.yr);if(A=(X=R)==null?void 0:X.contentId)for(k=_.V(((l=R)==null?void 0:l.actions)||[]),T=k.next();!T.done;T=k.next())W=T.value,qiL(N,W,A);m=(w=d)==null?void 0:(p=w.form)==null?void 0:p.element;return _.D(U,_.dU(m,[M]).catch(function(){}),2)}I=U.yieldResult;
((O=I)==null?0:(y=O.data)==null?0:(c=y.feedbackResponses)==null?0:c.length)&&(t=(e=I.data.feedbackResponses[0])==null?void 0:e.followUpDialog)&&A&&(C=N.controller)!=null&&C.feedbackDialogMap.set(A,t);_.Vy(U)})};
var qiL=function(M,d,N){var R=_.q(d,_.XP);if(R){R=_.V(R.commands||[]);for(var X=R.next();!X.done;X=R.next())qiL(M,X.value,N)}_.q(d,_.p9)&&M.store.dispatch(_.la("commandEntity",CoL(N),{key:N,command:d}));_.q(d,ak3)&&M.store.dispatch(_.la("commandEntity",CoL(N),{key:N,command:d}))};
ZP[CU]=[YU,xU];var Eg=function(M){this.controller=M};
_.v(Eg,Qo);Eg.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l;return _.B(function(k){R=_.q(M,_.Ka);A=(X=R)==null?void 0:X.targetId;if(((l=R)==null?void 0:l.signal)!=="TELL_US_WHY"||!A)return k.return();N.controller.openDialog(A,d);_.Vy(k)})};
Eg[CU]=[xU];var MA=function(M){this.store=M};
_.v(MA,Qo);MA.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){R=_.q(M,HpL);A=(X=R)==null?void 0:X.contentId;T=(l=d)==null?void 0:(k=l.form)==null?void 0:k.element;W=_.dU(T,[M]);A&&N.undo(A);return _.D(w,W,0)})};
MA.prototype.undo=function(M){this.store.dispatch(_.la("commandEntity",CoL(M),{key:M,command:void 0}))};
MA[CU]=[YU];var dE=function(M){this.JSC$14967_commandHandler=M};
_.v(dE,Qo);dE.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){N=_.q(M,AWL);R=N.flowStateKey;X=N.validationFailureCommand;A=N.submitValidFormCommand;l=K6(_.dz,[R||""]);k=_.q(l,lVV);((T=k)==null?0:T.isValid)&&A&&d.JSC$14967_commandHandler.resolveCommand(A);((W=k)==null?0:W.isValid)||!X||d.JSC$14967_commandHandler.resolveCommand(X);_.Vy(w)})};
dE[CU]=[_.xV];var NA=function(M){this.innertubeTransportService=M};
_.v(NA,Qo);NA.prototype.resolveCommand=function(M,d){var N=this,R;return _.B(function(X){return _.D(X,_.rT(N.innertubeTransportService,M,(R=d)==null?void 0:R.form).then(function(A){var l,k;d==null||(l=d.commandController)==null||(k=l.onSuccess)==null||k.call(l,M,A)},function(A){var l,k;
d==null||(l=d.commandController)==null||(k=l.onServerError)==null||k.call(l,M,A)}),0)})};
NA[CU]=[_.D3];var Rs=function(){};
_.v(Rs,Qo);Rs.prototype.resolveCommand=function(M){var d,N,R,X;return _.B(function(A){if(d=_.q(M,_.AK3)){if(N=d.gtmId)R=_.rK("GL",""),_.kH(N,R);(X=d.gtmData)&&_.Tn(X)}_.Vy(A)})};var Xl=function(M,d){this.innertubeTransportService=M;this.JSC$14978_actionRouter=d};
_.v(Xl,Qo);Xl.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,W2V);if(!N)return X.return();R=N.command;if(!R)return X.return();d.JSC$14978_actionRouter.triggerAction("yt-insert-rich-section-action",N);return _.D(X,_.rT(d.innertubeTransportService,R,{disableCache:!0}),0)})};
Xl[CU]=[_.D3,t6];KCv.bind(null,q0);var IEd=KCv.bind(null,p2z);JgS.bind(null,q0);var vpz=JgS.bind(null,p2z);zYL.bind(null,q0);var OsC=zYL.bind(null,p2z);var Fl=function(){};
_.v(Fl,Qo);
Fl.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k,T,W,w;return _.B(function(p){d=_.q(M,Ged);if(!d)return p.return();R=((N=d.operations)==null?void 0:N.operations)||[];X=_.V(R);for(A=X.next();!A.done;A=X.next())if(l=A.value,l.insertItemSectionContent){var m=l.insertItemSectionContent,I=m.contents||[];m.insertByPositionInSection?IEd(m.insertByPositionInSection.sectionTargetId,I,m.insertByPositionInSection.position):m.insertByRelativePositionInSection&&m.insertByRelativePositionInSection.sectionTargetId&&m.insertByRelativePositionInSection.itemTargetId&&
vpz(m.insertByRelativePositionInSection.sectionTargetId,m.insertByRelativePositionInSection.itemTargetId,I,m.insertByRelativePositionInSection.relativePosition)}else l.replaceSection?(m=l.replaceSection,I={},m.replaceByTargetId?I=m.replaceByTargetId:m.replaceByGroupId&&(I={targetId:m.replaceByGroupId.groupId,newContent:m.replaceByGroupId.newContent,undoKey:""}),I.newContent&&QVL(I.targetId,{continuationItems:[I.newContent]})):l.removeItem?(m=l.removeItem,m.removeByTargetId&&m.sectionTargetId&&OsC(m.sectionTargetId,
m.removeByTargetId.targetIds||[])):l.removeSection&&(l.removeSection.removeByTargetId?(k=void 0,jPI(((k=l.removeSection)==null?void 0:k.removeByTargetId.targetIds)||[])):l.removeSection.removeByGroupId&&(T=void 0,jPI(((T=l.removeSection)==null?void 0:T.removeByGroupId.groupIds)||[])));w=((W=d.operations)==null?void 0:W.scrollConfig)||{};sPd(w);_.Vy(p)})};
var jPI=function(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next())QVL(d.value,{continuationItems:[]})},sPd=function(M){if(M.scrollToItem){var d=M.scrollToItem.item||{},N=d.itemTargetId;
d=d.sectionTargetId;if(N&&d){var R=document.querySelector("[data-target-id="+d+"]"),X=R==null?void 0:R.querySelector("[data-target-id="+N+"]");R&&X&&setTimeout(function(){var A=X.offsetTop-R.offsetTop,l;if(((l=M.scrollToItem)==null?void 0:l.scrollPosition)==="SCROLL_POSITION_CENTER")A-=R.offsetHeight/2,A+=X.offsetHeight/2;else{var k;((k=M.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_END"&&(A-=R.offsetHeight,A+=X.offsetHeight)}R.scroll({top:A,behavior:"smooth"})},100)}}};var Aq=new _.x5("CLIENT_NAME_TOKEN");var Pfd=new _.x5("DEFAULT_STORE_EXPIRATION_TOKEN");var NoN=new _.x5("CLIENT_LOCATION_SERVICE_TOKEN");var Vl=function(M,d,N){this.clientName=M||_.rK("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=d||_.PN.getInstance();this.JSC$15006_commandHandler=N||_.YQ.instance};
_.v(Vl,Qo);Vl.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){R=(N=_.q(M,MXt))==null?void 0:N.onComplete;d.clientLocationService.clearLocationPlayabilityToken(d.clientName);R&&d.JSC$15006_commandHandler.resolveCommand(R);_.Vy(X)})};
Vl[CU]=[Aq,NoN,_.xV];var lH=function(M){this.innertubeTransportService=M};
_.v(lH,Qo);lH.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l;return _.B(function(k){A=(R=d)==null?void 0:(X=R.form)==null?void 0:X.element;return _.D(k,_.rT(N.innertubeTransportService,M,(l=d)==null?void 0:l.form).then(function(T){NMr(A,new CustomEvent("yt-service-request-completed"),{data:T},_.rK("openPopupConfig"))}),0)})};
lH[CU]=[_.D3];var $L=function(){};
_.v($L,Qo);$L.prototype.resolveCommand=function(M){var d,N;return _.B(function(R){d=_.q(M,TGL);N=document.querySelector("mini-app-container-view-model");if(!d||!N)return R.return();d.isPlaying?N.dispatchEvent(new Event("play")):N.dispatchEvent(new Event("pause"));_.Vy(R)})};var B8=function(){};
_.v(B8,Qo);B8.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k;return _.B(function(T){d=_.q(M,MVL);if((N=d)==null||!N.paramKeys)return T.return();R=d.paramKeys;X=_.Kk(window.location.href);A=_.V(R);for(l=A.next();!l.done;l=A.next())k=l.value,X.JSC$7917_queryData_.remove(k);window.history.replaceState(window.history.state,document.title,X.toString());_.Vy(T)})};var opJ=function(){this.dropdownMap=new Map};_.r7L=new _.x5("DROPDOWN_CONTROLLER_TOKEN");var kL=function(M){this.controller=M};
_.v(kL,Qo);kL.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){N=_.q(M,cbV);if(!N)return l.return();R=N;X=R.dropdownId;A=R.selectedOptionIndex;if(X===void 0||A===void 0)return l.return();var k=d.controller.dropdownMap.get(X);k&&k(A);_.Vy(l)})};
kL[CU]=[_.r7L];var TG=function(M){this.controller=M};
_.v(TG,Qo);TG.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){return(N=_.q(M,lB3))?_.D(R,d.controller.closeDialog(),0):R.return()})};
TG[CU]=[_.w1];var Di=function(M){this.controller=M};
_.v(Di,Qo);Di.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,fBJ);if(!N)return X.return();var A,l=N.panelIdentifier||((A=N.identifier)==null?void 0:A.tag);if(!l)throw Error("zi");return(R=l)?_.D(X,d.controller.hidePanel(R),0):X.jumpTo(0)})};
Di[CU]=[_.g1];var gE=function(M,d){this.innertubeTransportService=M;this.controller=d};
_.v(gE,Qo);gE.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=_.q(M,LE3),(R=N)!=null&&R.panelId?_.D(l,d.controller.getReloadContinuation(N.panelId),2):l.return();if(l.nextAddress!=3)return(X=l.yieldResult)?_.D(l,_.rT(d.innertubeTransportService,M,{continuation:X}),3):l.return();A=l.yieldResult;return _.D(l,d.controller.updatePanel(N.panelId,A.content,!1),0)})};
gE[CU]=[_.D3,_.g1];var W8=function(M,d,N){this.innertubeTransportService=M;this.JSC$15042_screenManager=d;this.JSC$15042_commandHandler=N};
_.v(W8,Qo);
W8.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1){N=_.q(M,_.JVV);if(!N)return T.return();if(N.commands)for(R=_.V(N.commands),X=R.next();!X.done;X=R.next())A=X.value,d.JSC$15042_commandHandler.resolveCommand(A,{disableClickTracking:!0});l=_.At(M.clickTrackingParams);_.dm(d.JSC$15042_screenManager,21760,l,{layer:7,parentLayer:0});return _.D(T,_.rT(d.innertubeTransportService,M),2)}k=T.yieldResult;if(!k)return T.return();d.JSC$15042_screenManager.graftServerVe(k.trackingParams,l,
7);_.Vy(T)})};
W8[CU]=[_.D3,_.Vs,_.xV];var wE=new _.x5("PANEL_LOADING_STRATEGY_TOKEN");var pD=function(M,d){this.controller=M;this.panelLoadingStrategy=d};
_.v(pD,Qo);
pD.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){R=_.q(M,jLz);if((X=R)==null||!X.panelLoadingStrategy)return l.return();A=function(k){var T,W,w,p,m,I,O,y,c;return _.B(function(e){W=_.q((T=k.dialogViewModel)==null?void 0:T.header,S9o);w={viewModel:k.dialogViewModel};p={};if(O=_.Q("web_enable_dialog_header_label")?(m=W)==null?void 0:(I=m.headline)==null?void 0:I.content:void 0)p.ariaLabel=O;R.dismissOnBackgroundTap===!1&&(p.isModal=!0);return k.dialogViewModel?_.D(e,
N.controller.openDialog(w,(y=d)==null?void 0:(c=y.form)==null?void 0:c.element,p),0):e.return()})};
return _.D(l,N.panelLoadingStrategy.execute({command:M,data:R.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:4}}),0)})};
pD[CU]=[_.w1,wE];var mR=function(M,d,N){this.innertubeTransportService=M;this.controller=d;this.JSC$15062_screenManager=N};
_.v(mR,Qo);
mR.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m,I,O;return _.B(function(y){switch(y.nextAddress){case 1:R=_.q(M,_.Kt);if(!R)return y.return();var c,e=R.panelIdentifier||((c=R.identifier)==null?void 0:c.tag);if(!e)throw Error("zi");X=e;return _.D(y,N.controller.isVisible(X,!0),2);case 2:if((A=y.yieldResult)&&R.blockIfPanelOpen)return y.return();T=(k=(l=N.controller).getPanelContent)==null?void 0:k.call(l,X);if(!(c=T))if(R){var t;c=((t=R.globalConfiguration)==null?void 0:t.initialState)||
R.engagementPanel;if(t=!c)t=!!(R==null?0:(e=R.engagementPanelPresentationConfigs)==null?0:e.engagementPanelPopupPresentationConfig);t&&(c=_.XU(R.panelIdentifier,R.identifier))}else c=void 0;W=c;w=R.engagementPanelPresentationConfigs;p=R.engagementPanelExtras;return _.D(y,N.controller.showPanel(X,W,w,p,(m=d)==null?void 0:(I=m.form)==null?void 0:I.element),3);case 3:if(!R.globalConfiguration){y.jumpTo(0);break}_.dm(N.JSC$15062_screenManager,32633);return _.D(y,_.rT(N.innertubeTransportService,M),5);
case 5:return O=y.yieldResult,N.JSC$15062_screenManager.graftServerVe(O.trackingParams),_.D(y,N.controller.updatePanel(X,O.content,!0,p,void 0,O.updatePanelContinuationData),0)}})};
mR[CU]=[_.D3,_.g1,_.Vs];var hq=function(M,d){this.controller=M;this.panelLoadingStrategy=d};
_.v(hq,Qo);hq.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){R=_.q(M,_.$M);if((X=R)==null||!X.panelLoadingStrategy)return l.return();A=function(k){var T,W;return _.B(function(w){return k.sheetViewModel?_.D(w,N.controller.openSheet({viewModel:k.sheetViewModel},(T=d)==null?void 0:(W=T.form)==null?void 0:W.element),0):w.return()})};
return _.D(l,N.panelLoadingStrategy.execute({command:M,data:R.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:0}}),0)})};
hq[CU]=[_.Wc,wE];var Ql=function(M,d){this.controller=M;this.JSC$15070_commandHandler=d};
_.v(Ql,Qo);Ql.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1){R=_.q(M,ULd);var k=_.q(R.showCommand,_.Kt),T,W,w=(W=k==null?void 0:k.panelIdentifier)!=null?W:k==null?void 0:(T=k.identifier)==null?void 0:T.tag;if(!w)throw Error("Ai");X=w;return _.D(l,N.controller.isVisible(X),2)}return(A=l.yieldResult)?_.D(l,N.controller.hidePanel(X),0):_.D(l,N.JSC$15070_commandHandler.resolveCommand(R.showCommand,d),0)})};
Ql[CU]=[_.g1,_.xV];var qA=function(M,d,N){this.innertubeTransportService=M;this.controller=d;this.JSC$15073_screenManager=N};
_.v(qA,Qo);
qA.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i;return _.B(function(vj){switch(vj.nextAddress){case 1:return R=N=_.q(M,uMV),X=R.targetPanelIdentifier,A=R.contentSourcePanelIdentifier,l=R.globalConfiguration,((k=X)==null?0:k.tag)&&((T=A)==null?0:T.tag)?l?_.D(vj,d.controller.showPanel(X.tag,_.XU(X.tag,X),void 0,void 0,void 0),5):_.D(vj,(m=(p=d.controller).getPanel)==null?void 0:m.call(p,A.tag),4):vj.return();case 4:I=vj.yieldResult;W=(O=I)==null?void 0:
(c=(y=O).getPanelContent)==null?void 0:c.call(y);vj.jumpTo(3);break;case 5:return _.D(vj,_.rT(d.innertubeTransportService,M),6);case 6:e=vj.yieldResult,((t=e)==null?0:t.trackingParams)&&d.JSC$15073_screenManager.graftServerVe(e.trackingParams),W=(C=e)==null?void 0:C.content,w=(U=e)==null?void 0:U.updatePanelContinuationData;case 3:if(Y=(Fi=W)==null?void 0:Fi.engagementPanelSectionListRenderer)return _.D(vj,d.controller.showPanel(X.tag,void 0,void 0,void 0,void 0,{content:Y.content,secondaryHeaderContent:($i=
Y.header)!=null?$i:{},targetId:Y.targetId},w),0);vj.jumpTo(0)}})};
qA[CU]=[_.D3,_.g1,_.Vs];var Is=function(M,d){this.JSC$15081_commandHandler=M;this.store=d};
_.v(Is,Qo);Is.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return(N=_.q(M,A4L))?_.D(k,_.YF(),2):k.return();R=k.yieldResult;if(!R)return k.return();HcZ(R,d.store,(X=N)==null?void 0:X.languageCode);A=R.isSubtitlesOn()?_.le("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.le("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");l=_.tT(A);d.JSC$15081_commandHandler.resolveCommand(l);_.Vy(k)})};
Is[CU]=[_.xV,$_];var v8=function(M,d){this.shortsPlayerPromise=M;this.JSC$15085_commandHandler=d};
_.v(v8,Qo);
v8.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return(N=_.q(M,Qge))?_.D(w,d.shortsPlayerPromise,2):w.return();R=w.yieldResult;var p=nb2(R);p!=null&&p.length||(R.loadModule("captions"),p=nb2(R));X=p;if((A=X)==null||!A.length)return l=_.le("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.tT(l),d.JSC$15085_commandHandler.resolveCommand(k),w.return();R.toggleSubtitles();T=R.isSubtitlesOn()?_.le("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.le("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");W=_.tT(T);d.JSC$15085_commandHandler.resolveCommand(W);_.Vy(w)})};
v8[CU]=[_.C1V,_.xV];var OU=function(M){this.JSC$15088_playerPromise=M};
_.v(OU,Qo);OU.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return(N=_.q(M,GYm))?_.D(l,d.JSC$15088_playerPromise,2):l.return();R=l.yieldResult;X=R.getVideoData().video_id;N.videoId===X&&(A=Number(N.offsetFromVideoStartMilliseconds),A>=0&&R.seekTo(A/1E3));_.Vy(l)})};
OU[CU]=[_.aq];var KHt=_.Nr("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),je=function(M){this.store=M};
_.v(je,Qo);
var y7C=function(M){var d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return d=_.rK("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,N=_.rK("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,R=d||N,M.mainAppPlayer=new eQ(R),_.D(A,M.mainAppPlayer.api,2);X=A.yieldResult;X.addEventListener("onStateChange",M.JSC$15092_playerStateChangeListener.bind(M));document.addEventListener("yt-page-data-updated",M.pauseOnNavigation.bind(M));window.addEventListener("state-navigatestart",
M.pauseOnNavigation.bind(M));_.Vy(A)})};
je.prototype.JSC$15092_playerStateChangeListener=function(M){switch(M){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}J7e(this)};
var J7e=function(M){M.store.dispatch(_.la("sfvAudioItemCurrentlyPlayingEntity",KHt,{key:KHt,externalVideoId:M.externalVideoId,sfvAudioItemPlaybackState:M.playbackState,nowPlayingEntityValue:M.nowPlayingEntityValue}))};
je.prototype.pauseOnNavigation=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1){if(!M.mainAppPlayer){var l=new _.WJ("Error: mainAppPlayer is unavailable",M.mainAppPlayer);_.qZ(l);return A.return()}return _.D(A,M.mainAppPlayer.api,2)}d=A.yieldResult;R=(N=d)==null?void 0:N.getPlayerState();R!==1||(X=d)!=null&&X.pauseVideo();_.Vy(A)})};
je.prototype.playVideo=function(M,d,N){var R=this,X,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,(X=R.mainAppPlayer)==null?void 0:X.api,2);A=l.yieldResult;if(!R.mainAppPlayer||!A){var k=new _.WJ("Error: mainAppPlayer is unavailable",R.mainAppPlayer);_.qZ(k);return l.return()}return _.D(l,R.mainAppPlayer.loadVideoWithPlayerVars({videoId:R.externalVideoId,audio_only:"1",start:M/1E3,end:M/1E3+d,player_params:N}),0)})};
je.prototype.pauseVideo=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){if(!M.mainAppPlayer){var X=new _.WJ("Error: mainAppPlayer is unavailable",M.mainAppPlayer);_.qZ(X);return R.return()}return _.D(R,M.mainAppPlayer.api,2)}d=R.yieldResult;(N=d)==null||N.pauseVideo();_.Vy(R)})};
je.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U;return _.B(function(Fi){if(Fi.nextAddress==1)return N=_.q(M,w0o),X=(R=N)==null?void 0:R.nowPlayingEntityValue,l=(A=N)==null?void 0:A.externalVideoId,p=Number((w=(k=N)==null?void 0:(T=k.defaultStartPoints)==null?void 0:(W=T[0])==null?void 0:W.offsetMs)!=null?w:"0"),e=Number((c=(m=N)==null?void 0:(I=m.defaultStartPoints)==null?void 0:(O=I[0])==null?void 0:(y=O.duration)==null?void 0:y.seconds)!=null?c:"15"),U=(C=
(t=N)==null?void 0:t.playerParams)!=null?C:"",X&&l?d.mainAppPlayer?Fi.jumpTo(2):_.D(Fi,y7C(d),2):Fi.return();if(Fi.nextAddress!=6){if(d.nowPlayingEntityValue&&X===d.nowPlayingEntityValue)return d.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.D(Fi,d.pauseVideo(),0):_.D(Fi,d.playVideo(p,e,U),0);d.externalVideoId=l;d.nowPlayingEntityValue=X;d.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.D(Fi,d.playVideo(p,e,U),6)}J7e(d);return Fi.jumpTo(0)})};
je[CU]=[$_];var sU=function(M){this.JSC$15109_commandHandler=M};
_.v(sU,Qo);sU.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return(R=_.q(M,VXd))?_.D(T,_.YF(),2):T.return();X=T.yieldResult;if(!X)return T.return();(A=tnZ(X))?N.JSC$15109_commandHandler.resolveCommand(A,d):(l=_.le("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),k=_.tT(l),N.JSC$15109_commandHandler.resolveCommand(k));_.Vy(T)})};
sU[CU]=[_.xV];var P8=function(M){this.JSC$15112_playerPromise=M};
_.v(P8,Qo);P8.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1){N=_.q(M,aBt);if(!N)return k.return();R=N.overlayRenderer;return R?(X=_.q(R,Cgg))?_.D(k,d.JSC$15112_playerPromise,3):k.jumpTo(0):k.return()}A=k.yieldResult;A.renderChapterSeekingAnimation(1,_.HD(X.text),(l=X.icon)==null?void 0:l.iconType);_.Vy(k)})};
P8[CU]=[_.aq];var os=function(M){this.store=M};
_.v(os,Qo);os.prototype.resolveCommand=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1){N=_.q(M,ljL);if(!N)return A.return();R="";(X=d.store.getState().collabInviteLink)&&N.id===X.playlistId?R=X.inviteLinkURL:N.shortUrl&&(R=N.shortUrl);return R?_.D(A,navigator.clipboard.writeText(R),3):A.jumpTo(0)}var l={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.le("COPY_LINK_SUCCESS_TOAST")}}}}};_.h().resolve(_.xV).resolveCommand(l);_.Vy(A)})};
os[CU]=[YU];var rE=function(M,d){this.innertubeTransportService=M;this.JSC$15122_commandHandler=d};
_.v(rE,Qo);rE.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m;return _.B(function(I){if(I.nextAddress==1)return(R=_.q(M,_.J6))?_.D(I,_.rT(N.innertubeTransportService,M,(X=d)==null?void 0:X.form),2):I.return();(A=I.yieldResult)&&A.errorMetadata&&(l=A,k=_.tT(l.error.message),N.JSC$15122_commandHandler.resolveCommand(k));T=A;if((W=T)==null?0:W.actions)for(w=_.V(T.actions),p=w.next();!p.done;p=w.next())m=p.value,N.JSC$15122_commandHandler.resolveCommand(m);_.Vy(I)})};
rE[CU]=[_.D3,_.xV];var KD=function(){};
_.v(KD,Qo);KD.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,MsI);if(!d)return N.return();(new idg(d)).show();_.Vy(N)})};_.yl=new _.x5("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Jq=function(M,d,N,R){this.store=M;this.innertubeTransportService=d;this.controller=N;this.JSC$15130_commandHandler=R};
_.v(Jq,Qo);
Jq.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i,vj,Pj,sS,tL,b2;return _.B(function(Hj){if(Hj.nextAddress==1){R=_.q(M,_.Pq);if(!R)return Hj.return();if(R.clientActions){X=_.V(R.clientActions);for(A=X.next();!A.done;A=X.next())l=A.value,N.JSC$15130_commandHandler.resolveCommand(l);var LZ,w3=d==null?void 0:(LZ=d.form)==null?void 0:LZ.element;w3&&_.YP(w3,"yt-dismissible-item-action",R.clientActions)}return _.D(Hj,_.rT(N.innertubeTransportService,M,(k=d)==
null?void 0:k.form),2)}if(T=Hj.yieldResult)T.errorMetadata?(W=T,w=_.tT(W.error.message),N.JSC$15130_commandHandler.resolveCommand(w),"error"in T&&((p=d)==null?0:(m=p.commandController)==null?0:m.onServerError)&&((I=d)==null||(O=I.commandController)==null||O.onServerError(M,T))):(y=d)==null||(c=y.commandController)==null||(t=(e=c).onSuccess)==null||t.call(e,M,T);C=T;((U=C)==null?0:U.collaborationInviteLink)&&R.playlistId&&(_.Q("web_enable_invite_collaborators_link")||_.Q("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
N.store.dispatch(_.YS({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:R.playlistId,inviteLinkUrl:C.collaborationInviteLink}}));((Fi=C)==null?0:Fi.redirectEndpoint)&&N.JSC$15130_commandHandler.resolveCommand(C.redirectEndpoint);((Y=C)==null?0:($i=Y.newHeader)==null?0:$i.playlistHeaderRenderer)?c73(N.controller,C.newHeader.playlistHeaderRenderer):((vj=C)==null?0:(Pj=vj.newHeader)==null?0:Pj.musicEditablePlaylistDetailHeaderRenderer)&&c73(N.controller,C.newHeader.musicEditablePlaylistDetailHeaderRenderer);
N.controller.playlistVideoListElement&&((sS=C)==null?0:(tL=sS.playlistEditResults)==null?0:(b2=tL[0])==null?0:b2.playlistEditVideoAddedResultData)&&((w3=N.controller.playlistVideoListElement)==null||w3.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:C.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Vy(Hj)})};
Jq[CU]=[YU,_.D3,_.yl,_.xV];var c8=function(M,d){this.controller=M;this.JSC$15140_commandHandler=d};
_.v(c8,Qo);c8.prototype.resolveCommand=function(M,d){var N=this,R,X,A;return _.B(function(l){R=_.q(M,$cL);N.controller.showRefreshPill&&((X=R)==null?0:X.command)&&(N.JSC$15140_commandHandler.resolveCommand((A=R)==null?void 0:A.command,d),N.controller.showRefreshPill=!1);_.Vy(l)})};
c8[CU]=[_.L0,_.xV];var Se=function(M,d){this.store=M;this.JSC$15144_commandHandler=d||_.YQ.instance};
_.v(Se,Qo);Se.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m;return _.B(function(I){R=_.q(M,IjC);X=N.store.getState().radioButtonGroup;if((A=R)==null?0:A.command)N.JSC$15144_commandHandler.resolveCommand((l=R)==null?void 0:l.command,d);else if(((k=R)==null?void 0:k.formId)===X.currentFormId)for(T=Object.values(X.commandsMap),W=_.V(T),w=W.next();!w.done;w=W.next()){p=w.value;m=_.ht(p);if(!m)return I.return();N.JSC$15144_commandHandler.resolveCommand(m,d)}_.Vy(I)})};
Se[CU]=[YU];var zG=new _.x5("USER_PREFS");var bH=function(M){this.JSC$15148_prefCookie=M};
_.v(bH,Qo);bH.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){(N=_.q(M,a0V))&&typeof N.useListView==="boolean"&&(_.TR(0,155,N.useListView),d.JSC$15148_prefCookie.save());_.Vy(R)})};
bH[CU]=[zG];var ee=function(M){this.JSC$15152_prefCookie=M};
_.v(ee,Qo);ee.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){N=_.q(M,Nym);if((R=N)==null||!R.gl)return k.return();X=N.gl;A={persist_gl:"1",gl:X};d.JSC$15152_prefCookie.set("gl",X);d.JSC$15152_prefCookie.save();l=_.h6L(A);_.Ij(l);_.Vy(k)})};
ee[CU]=[zG];var H8=function(M){this.JSC$15156_prefCookie=M};
_.v(H8,Qo);H8.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,kUC);if(!N)return X.return();R=!1;N.flagNum&&typeof N.value==="boolean"?(_.TR(0,N.flagNum,N.value),R=!0):N.key&&typeof N.stringValue==="string"&&(d.JSC$15156_prefCookie.set(N.key,N.stringValue),R=!0);R&&d.JSC$15156_prefCookie.save();_.Vy(X)})};
H8[CU]=[zG];var nD=new _.x5("PREF_STORAGE_PROMISE_TOKEN");var iH=function(M){this.JSC$15160_prefStoragePromise=M};
_.v(iH,Qo);iH.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return(N=_.q(M,Dcm))?_.D(X,d.JSC$15160_prefStoragePromise,2):X.return();R=X.yieldResult;return R===void 0||N.key===void 0||N.value===void 0?X.return():_.D(X,R.set(N.key,N.value),0)})};
iH[CU]=[nD];var SiL=function(M){this.innertubeTransportService=M};
_.v(SiL,Qo);SiL.prototype.resolveCommand=function(M,d){var N=this,R,X;return _.B(function(A){(R=_.q(M,_.tHL))&&R&&R.isFirstRequest&&(_.ID("search_overview_answer"),_.v1("so_rq",void 0,"search_overview_answer"));return _.D(A,_.rT(N.innertubeTransportService,M,(X=d)==null?void 0:X.form),0)})};
SiL[CU]=[_.D3];var zsm=function(){};
_.v(zsm,Qo);
zsm.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k,T,W;return _.B(function(w){d=_.q(M,tXJ);if((N=d)==null?0:N.sectionIdentifier){if(d.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(X=(R=document.getElementsByTagName(d.sectionIdentifier))==null?void 0:R.item(0))X.scrollIntoView({behavior:"smooth"}),(A=Guj(X))&&A.focus({preventScroll:!0});return w.return()}l=document.querySelector("[section-identifier="+d.sectionIdentifier+"]");k=document.querySelector("[section-identifier="+d.referenceSectionIdentifier+
"]");if(!l)return w.return();T=d.verticalScrollOffsetDp?d.verticalScrollOffsetDp:0;k&&(T-=k.offsetTop);window.scrollTo({top:l.offsetTop+T,behavior:"smooth"});(W=Guj(l))&&W.focus({preventScroll:!0})}_.Vy(w)})};var fD=function(){};
_.v(fD,Qo);
fD.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1){d=_.q(M,Tm3);if(!d||!d.imageBytes||!navigator.clipboard)return T.return();if(d.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.qZ(Error("Bi")),T.return();_.Mv(T,2);R=(N=d)==null?void 0:N.imageBytes;X=R.replace(/-/g,"+").replace(/_/g,"/");A=ob2(X);l={};k=[new ClipboardItem((l[A.type]=A,l))];return _.D(T,navigator.clipboard.write(k),4)}if(T.nextAddress!=2)return _.cJ(T,0);
_.Fg(T);_.Vy(T)})};var LD=function(M,d){this.innertubeTransportService=M;this.JSC$15175_commandHandler=d};
_.v(LD,Qo);LD.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return(R=_.q(M,DTd))?_.D(T,_.rT(N.innertubeTransportService,M,(X=d)==null?void 0:X.form),2):T.return();(A=T.yieldResult)&&A.errorMetadata&&R.onFailureCommand&&N.JSC$15175_commandHandler.resolveCommand(R.onFailureCommand);l=A;((k=l)==null?0:k.shareCommand)&&N.JSC$15175_commandHandler.resolveCommand(l.shareCommand,d);_.Vy(T)})};
LD[CU]=[_.D3,_.xV];var tq=function(){};
_.v(tq,Qo);tq.prototype.resolveCommand=function(M){var d,N;return _.B(function(R){d=_.q(M,VsI);if(!d||!navigator.share)return R.return();N={url:d.url};try{return R.return(navigator.share(N))}catch(X){}_.Vy(R)})};var GG=function(){};
_.v(GG,Qo);GG.prototype.resolveCommand=function(){return _.B(function(M){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Vy(M)})};var as=function(M){this.JSC$15185_navigationConfirmationService=M};
_.v(as,Qo);as.prototype.resolveCommand=function(){var M=this;return _.B(function(d){M.JSC$15185_navigationConfirmationService.cancelPendingNavigation();_.Vy(d)})};
as[CU]=[F1];var UU=function(M){this.JSC$15188_screenManager=M};
_.v(UU,Qo);UU.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){X=(R=d.form)==null?void 0:R.event;l=(A=d.form)==null?void 0:A.element;if(!X)throw new _.WJ("Event not passed in when resolving command");k=_.V(X.composedPath());for(T=k.next();!T.done;T=k.next())if(W=T.value,W.tagName==="YT-COPY-LINK-RENDERER")return W.copyUrlToClipboard(),l&&_.sL(N.JSC$15188_screenManager,l),w.return();_.Vy(w)})};
UU[CU]=[_.Vs];var uH=function(){this.JSC$15192_miniAppClientDataProvider=_.h().resolve(_.I5)};
_.v(uH,Qo);uH.prototype.resolveCommand=function(){var M=this,d,N;return _.B(function(R){if(M.JSC$15192_miniAppClientDataProvider.clientData.has("video_id")){var X=M.JSC$15192_miniAppClientDataProvider,A=X.clientData.get("video_id");A&&X.clientData.delete("video_id");d="https://youtube.com/watch?v="+A;N=k8(d);if(N===void 0)throw Error("Ci`"+d);_.oO(window,N)}_.Vy(R)})};var CD=function(){};
_.v(CD,Qo);CD.prototype.resolveCommand=function(){return _.B(function(M){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Vy(M)})};var xL=function(){};
_.v(xL,Qo);xL.prototype.resolveCommand=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.qKS(window.document.documentElement),2);(M=document.querySelector("mini-app-container-view-model iframe"))&&M.focus();_.Vy(d)})};var YL=function(M){this.JSC$15199_navigationConfirmationService=M};
_.v(YL,Qo);
YL.prototype.resolveCommand=function(){var M=this;return _.B(function(d){var N=M.JSC$15199_navigationConfirmationService,R=_.h().resolve(_.db),X;if(((X=N.navigateParams)==null?void 0:X.data)!==void 0){var A;_.ePe(R,N.navigateParams.endpoint,N.navigateParams.data,(A=N.navigateParams.navigationType)!=null?A:1,N.navigateParams.tempData,N.navigateParams.isMiniplayer,void 0,!0);N.navigateParams=void 0;N.customConfirmationCommand=void 0}else N.navigateParams&&(R.navigate(N.navigateParams.endpoint,N.navigateParams.reload,
N.navigateParams.params,N.navigateParams.tempData,N.navigateParams.requestType,N.navigateParams.createScreenConfig,!0),N.navigateParams=void 0,N.customConfirmationCommand=void 0);_.Vy(d)})};
YL[CU]=[F1];var Zi=function(){};
_.v(Zi,Qo);Zi.prototype.resolveCommand=function(){return _.B(function(M){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Vy(M)})};var EU=function(M){this.JSC$15204_prefStorage=M};
_.v(EU,Qo);EU.prototype.resolveCommand=function(){var M=this,d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15204_prefStorage,2);case 2:return(d=R.yieldResult)?_.D(R,d.set("sfvle",!1),3):R.return();case 3:return _.D(R,d.set("sfvles",!0),4);case 4:N=_.kS(),_.TR(0,203,!1),_.TR(0,204,!0),N.save(),_.Vy(R)}})};
EU[CU]=[nD];var M_=function(M){this.JSC$15207_prefStorage=M};
_.v(M_,Qo);M_.prototype.resolveCommand=function(){var M=this,d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15207_prefStorage,2);case 2:return(d=R.yieldResult)?_.D(R,d.set("sfvle",!0),3):R.return();case 3:return _.D(R,d.set("sfvles",!0),4);case 4:N=_.kS(),_.TR(0,203,!0),_.TR(0,204,!0),N.save(),_.Vy(R)}})};
M_[CU]=[nD];var dM=function(){};
_.v(dM,Qo);dM.prototype.resolveCommand=function(M){var d;return _.B(function(N){d=_.q(M,TyV);if(!d||typeof d.key!=="string"||typeof d.value!=="string")return N.return();window.localStorage.setItem(d.key,d.value);_.Vy(N)})};var N_=function(M){this.store=M};
_.v(N_,Qo);N_.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){N=_.q(M,e8S);if(!N||!N.stepId||!N.token)return R.return();d.store.dispatch(YfC({stepId:N.stepId,token:N.token,isSelected:!1}));_.Vy(R)})};
N_[CU]=[YU];var Rp=function(M,d,N){this.innertubeTransportService=M;this.store=d;this.JSC$15218_screenManager=N};
_.v(Rp,Qo);
Rp.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi,Y,$i,vj;return _.B(function(Pj){N=_.q(M,w6g);if(!N||(R=N.stepIds)==null||!R.length)return Pj.return();X=d.store.getState().talkToRecs;A=[];l=[];k=_.V(N.stepIds);for(T=k.next();!T.done;T=k.next())for(W=T.value,w=void 0,(p=(w=X.stepStates[W])==null?void 0:w.userQuery)&&l.push({userQuery:p.userQuery,userQueryToken:p.token}),m=void 0,I=(m=X.stepStates[W])==null?void 0:m.selectionStates,O=_.V(Object.entries(I)),y=
O.next();!y.done;y=O.next())c=y.value,e=_.V(c),t=e.next().value,C=e.next().value,U=t,Fi=C,Fi.isSelected&&A.push(U);Y={selectedChipTokens:A,userQueries:l,submittedStepIds:N.stepIds};$i={browseTalk2recsFormData:Y};N.browseEndpoint?(vj=M,_.gk(vj,_.F8,N.browseEndpoint)):N.command&&(vj=N.command);return vj?_.D(Pj,_.rT(d.innertubeTransportService,vj,{formData:$i,disableCache:!0}).then(function(sS){(sS==null?0:sS.trackingParams)&&d.JSC$15218_screenManager.graftServerVe(sS==null?void 0:sS.trackingParams)}),
0):Pj.return()})};
Rp[CU]=[_.D3,YU,_.Vs];var Xv=function(M){this.store=M};
_.v(Xv,Qo);Xv.prototype.resolveCommand=function(M){var d=this,N;return _.B(function(R){N=_.q(M,bpZ);if(!N||!N.stepId||!N.token)return R.return();d.store.dispatch(YfC({stepId:N.stepId,token:N.token,isSelected:!0}));_.Vy(R)})};
Xv[CU]=[YU];var Fv=function(M){this.store=M};
_.v(Fv,Qo);Fv.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k;return _.B(function(T){R=_.q(M,p6d);if(!R||!R.stepId||!R.userQueryToken)return T.return();k=(l=(X=d)==null?void 0:(A=X.form)==null?void 0:A.userQuery)!=null?l:"";N.store.dispatch(_.YS({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:R.stepId,userQueryToken:R.userQueryToken,userQuery:k}}));_.Vy(T)})};
Fv[CU]=[YU];_.bsg=new _.x5("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Ax=function(M){this.controller=M};
_.v(Ax,Qo);Ax.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){N=_.q(M,ix3);if(!N)return l.return();R=N;X=R.id;A=R.isVisible;if(X===void 0||A===void 0)return l.return();var k;(k=d.controller.timelyActionsMap.get(X))==null||k(X,A);_.Vy(l)})};
Ax[CU]=[_.bsg];var esz=function(){this.timelyActionsMap=new Map};var VB=function(M){this.JSC$15245_commandHandler=M};
_.v(VB,Qo);VB.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l;return _.B(function(k){N=_.q(M,_.G7J);if(!N)return k.return();A=(R=N.item)==null?void 0:(X=R.notificationTextRenderer)==null?void 0:X.successResponseText;if(!A)return k.return();l=_.Lh(A);d.JSC$15245_commandHandler.resolveCommand(l);_.Vy(k)})};
VB[CU]=[_.xV];var lN=function(M,d){this.innertubeTransportService=M;this.JSC$15250_playerApiPromise=d};
_.v(lN,Qo);
lN.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1)return _.D(p,d.JSC$15250_playerApiPromise,2);N=p.yieldResult;R=N.getOption("captions","track");X=Object.assign({},_.q(M,_.cYe));(l=(A=N.getVideoData())==null?void 0:A.video_id)?X.externalVideoId=l:_.Sx(Error("Di"));if((k=R)==null?0:k.languageCode)X.languageCode=R.languageCode;if((T=R)==null?0:T.kind)X.kind=R.kind;if((W=R)==null?0:W.name)X.name=R.name;w=Object.assign({},M,{getTranscriptEndpoint:X});return _.D(p,
_.rT(d.innertubeTransportService,w),0)})};
lN[CU]=[_.D3,_.aq];var $I=function(){};
_.v($I,Qo);$I.prototype.resolveCommand=function(M){var d,N,R,X,A,l,k,T;return _.B(function(W){d=_.q(M,qFe);if((N=d)==null||!N.paramKeyValuePairs)return W.return();R=window.location.href;X=_.V(d.paramKeyValuePairs);for(A=X.next();!A.done;A=X.next())l=A.value,l.key&&l.value&&(k={},R=_.fF(R,(k[l.key]=l.value,k)));T=_.h().resolve(_.Nf);_.d1(T,R);_.Vy(W)})};var BR=function(M,d){this.JSC$15257_commandHandler=M;this.innertubeTransportService=d};
_.v(BR,Qo);
BR.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C;return _.B(function(U){switch(U.nextAddress){case 1:return(A=(R=d)==null?void 0:(X=R.form)==null?void 0:X.element)&&_.LQ(A),l=_.kS().get("hl"),k="",_.Mv(U,2),_.D(U,uFi(l),4);case 4:k=U.yieldResult;_.cJ(U,3);break;case 2:return _.Fg(U),A&&_.t9(A),_.qZ(Error("Fi"),"ERROR"),U.return();case 3:T=_.q(M,RfI);if(!T)return A&&_.t9(A),U.return();(p=(W=T.commerceActionConfig)==null?void 0:(w=W.commandLifeCycleConfig)==null?
void 0:w.onStartCommand)&&N.JSC$15257_commandHandler.resolveCommand(p);return _.D(U,_.rT(N.innertubeTransportService,M,{client_data:{paymentsClientToken:{token:k}}}),5);case 5:(m=U.yieldResult)?(A&&_.t9(A),((c=m)==null?0:c.command)&&N.JSC$15257_commandHandler.resolveCommand(m.command),(C=(e=T.commerceActionConfig)==null?void 0:(t=e.commandLifeCycleConfig)==null?void 0:t.onSuccessCommand)&&N.JSC$15257_commandHandler.resolveCommand(C)):(A&&_.t9(A),_.qZ(Error("Gi")),(y=(I=T.commerceActionConfig)==null?
void 0:(O=I.commandLifeCycleConfig)==null?void 0:O.onFailureCommand)&&N.JSC$15257_commandHandler.resolveCommand(y)),_.Vy(U)}})};
BR[CU]=[_.xV,_.D3];var kI=function(M,d,N){this.store=M;this.JSC$15273_commandHandler=d;this.innertubeTransportService=N};
_.v(kI,Qo);
kI.prototype.resolveCommand=function(M,d){var N=this,R,X,A,l,k,T,W,w,p;return _.B(function(m){R=_.q(M,XAd);X=R.googlePaymentPayload;R.onStartCommand&&N.JSC$15273_commandHandler.resolveCommand(R.onStartCommand);A=X.encryptedPurchaseParams;l=X.ypcLogWalletAnalyticDataEndpoint;k=R.serializedTransactionFlowLoggingParams;T=X.serializedPaymentsClientParams;W=R.ypcCujContext;p=Yhp(N.innertubeTransportService,(w=d)==null?void 0:w.form,A,l,k,T,W);return m.return(p.then(function(I){CTS(d==null?void 0:d.form,
!1);var O=N.store,y=N.JSC$15273_commandHandler,c=I.integratorData;c==null||c===""||I.error!=null?(String(I.error)==="-1"&&R.onDismissCommand?y.resolveCommand(R.onDismissCommand):String(I.error)!=="-1"&&R.onFailureCommand&&y.resolveCommand(R.onFailureCommand),String(I.error)!=="-1"&&String(I.error)!=="132"&&_.qZ(Error("Hi"),"ERROR")):(R.googlePaymentEntityKey&&O.dispatch(_.la("commerceAcquisitionClientPayloadEntity",R.googlePaymentEntityKey,{key:R.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:c,
fundsGuaranteeCallbackClientData:I.integratorClientCallbackData}}})),R.onSuccessCommand&&y.resolveCommand(R.onSuccessCommand));_.RD()},function(I){CTS(d==null?void 0:d.form,!1);
_.qZ(I,"ERROR");R.onFailureCommand&&N.JSC$15273_commandHandler.resolveCommand(R.onFailureCommand)}))})};
kI[CU]=[$_,_.xV,_.D3];var T0=function(M,d){this.JSC$15277_commandHandler=M;this.purchaseManager=d};
_.v(T0,Qo);
T0.prototype.resolveCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){N=_.q(M,FMV);((R=N)==null?0:(X=R.commandLifeCycleConfig)==null?0:X.onStartCommand)&&d.JSC$15277_commandHandler.resolveCommand(N.commandLifeCycleConfig.onStartCommand);if(!((A=N)==null?0:(l=A.googlePaymentPurchaseManagerPayload)==null?0:l.securePayloadBytes))return _.qZ(Error("Ii"),"ERROR"),p.return();k=JTL(_.lL(N.googlePaymentPurchaseManagerPayload.securePayloadBytes));T=_.kS().get("hl");W=_.KO();uR3(k.serialize(),
T,function(m){W.resolve(m)},function(m){W.reject(m)},W.resolve);
w=W.promise;return p.return(w.then(function(m){if(m)if(m==null?0:m.errorCode){_.qZ(Error("Ji`"+m.errorCode),"ERROR");var I,O;((I=N)==null?0:(O=I.commandLifeCycleConfig)==null?0:O.onFailureCommand)&&d.JSC$15277_commandHandler.resolveCommand(N.commandLifeCycleConfig.onFailureCommand)}else if(m==null?0:m.isCancelled){var y,c;((y=N)==null?0:(c=y.commandLifeCycleConfig)==null?0:c.onCancelCommand)&&d.JSC$15277_commandHandler.resolveCommand(N.commandLifeCycleConfig.onCancelCommand)}else{var e,t;((e=N)==
null?0:(t=e.commandLifeCycleConfig)==null?0:t.onSuccessCommand)&&d.JSC$15277_commandHandler.resolveCommand(N.commandLifeCycleConfig.onSuccessCommand)}},function(m){_.qZ(m,"ERROR");
var I,O;((I=N)==null?0:(O=I.commandLifeCycleConfig)==null?0:O.onFailureCommand)&&d.JSC$15277_commandHandler.resolveCommand(N.commandLifeCycleConfig.onFailureCommand)}))})};
T0[CU]=[_.xV,CzV];var HsL=function(M,d){this.JSC$15285_commandHandler=M;this.commandAllowlistOverride=d;var N;this.commandAllowlist=(N=this.commandAllowlistOverride)!=null?N:yX};
HsL.prototype.handleResponse=function(M,d,N){var R,X=d==null?void 0:(R=d.config)==null?void 0:R.command;if(!X||this.commandAllowlist.some(function(A){return!!_.q(X,A)})){d=void 0;
N!==void 0&&(d={form:{element:N}});M.onResponseReceivedCommand&&this.JSC$15285_commandHandler.resolveCommand(M.onResponseReceivedCommand,d);M.onResponseReceivedAction&&this.JSC$15285_commandHandler.resolveCommand(M.onResponseReceivedAction,d);M.onResponseReceivedEndpoint&&this.JSC$15285_commandHandler.resolveCommand(M.onResponseReceivedEndpoint,d);M.command&&this.JSC$15285_commandHandler.resolveCommand(M.command,d);if(M.onResponseReceivedCommands)for(N=_.V(M.onResponseReceivedCommands),R=N.next();!R.done;R=
N.next())this.JSC$15285_commandHandler.resolveCommand(R.value,d);if(M.onResponseReceivedActions)for(N=_.V(M.onResponseReceivedActions),R=N.next();!R.done;R=N.next())this.JSC$15285_commandHandler.resolveCommand(R.value,d);if(M.onResponseReceivedEndpoints)for(N=_.V(M.onResponseReceivedEndpoints),R=N.next();!R.done;R=N.next())this.JSC$15285_commandHandler.resolveCommand(R.value,d);if(M.actions)for(M=_.V(M.actions),N=M.next();!N.done;N=M.next())this.JSC$15285_commandHandler.resolveCommand(N.value,d)}};
HsL[CU]=[_.xV,_.CF(tuv)];var npd=new _.x5("INNERTUBE_TOKEN_SERVICE");var isV=new _.x5("SCHEDULER_TOKEN");var fEt=function(M){this.scheduler=M;M={};this.tokenMap=(M.app={},M.user={},M)};
fEt.prototype.handleResponse=function(M,d){if(!d)throw Error("Ki");var N;if(M=(N=M.responseContext)==null?void 0:N.innertubeTokenJar){if(M.appTokens){var R,X,A;N=(R=d.innerTubeRequest.context)==null?void 0:(X=R.request)==null?void 0:(A=X.innertubeTokenJar)==null?void 0:A.appTokens;LH3(this,M.appTokens,this.tokenMap.app,N)}if(M.userTokens){var l,k,T;d=(l=d.innerTubeRequest.context)==null?void 0:(k=l.request)==null?void 0:(T=k.innertubeTokenJar)==null?void 0:T.userTokens;LH3(this,M.userTokens,this.tokenMap.user,
d)}}};
fEt.prototype.processContext=function(M){M.request||(M.request={});var d=Object.keys(this.tokenMap.app).length,N=Object.keys(this.tokenMap.user).length;if(d||N)M.request.innertubeTokenJar={},d&&(M.request.innertubeTokenJar.appTokens=[].concat(_.wu(Object.values(this.tokenMap.app).flat()))),N&&(M.request.innertubeTokenJar.userTokens=[].concat(_.wu(Object.values(this.tokenMap.user).flat())))};
var LH3=function(M,d,N,R){d=_.V(d);for(var X=d.next(),A={};!X.done;A={token$jscomp$137:void 0},X=d.next()){A.token$jscomp$137=X.value;if(A.token$jscomp$137.type===void 0)throw new _.WJ("InnerTube token has no type",A.token$jscomp$137);if(A.token$jscomp$137.clearTokens)N[A.token$jscomp$137.type]=[];else if(A.token$jscomp$137.value!==void 0){N[A.token$jscomp$137.type]||(N[A.token$jscomp$137.type]=[]);if(R!==void 0&&R.length){X=_.V(R);for(var l=X.next(),k={};!l.done;k={requestToken:void 0},l=X.next())k.requestToken=
l.value,l=N[A.token$jscomp$137.type].findIndex(function(T){return function(W){return W===T.requestToken||(0,_.wF.equals)(W,T.requestToken)}}(k)),l>-1&&N[A.token$jscomp$137.type].splice(l,1)}N[A.token$jscomp$137.type].push(A.token$jscomp$137);
A.token$jscomp$137.maxAgeSeconds&&Number(A.token$jscomp$137.maxAgeSeconds)>0&&M.scheduler.addLowPriorityJob(function(T){return function(){var W=N[T.token$jscomp$137.type].indexOf(T.token$jscomp$137);W>-1&&N[T.token$jscomp$137.type].splice(W,1)}}(A),Number(A.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.WJ("InnerTube token has no value",A.token$jscomp$137);
}};
fEt[CU]=[isV];var tbV=new _.x5("LOCAL_INNERTUBE_ROUTER_TOKEN"),GVe=new _.x5("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var DC=function(M){this.serviceMap=M};
DC.prototype.shouldPreferLocalResponse=function(M,d){return(M=aEV(this,M))?M.shouldPreferLocalResponse(d):!1};
DC.prototype.localInnertubeResponse=function(M,d){var N=this,R;return _.B(function(X){return(R=aEV(N,M))?X.return(R.localInnertubeResponse(d)):X.return(Promise.reject(Error("Li")))})};
DC.prototype.canProvideFallbackResponse=function(M,d){return(M=aEV(this,M))?M.canProvideFallbackResponse(d):!1};
DC.prototype.localFallbackInnertubeResponse=function(M,d){var N=this,R;return _.B(function(X){return(R=aEV(N,M))?X.return(R.localFallbackInnertubeResponse(d)):X.return(Promise.reject(Error("Li")))})};
var aEV=function(M,d){d=_.FO(d);return d?(M=M.serviceMap[d])?M:null:null};
DC[CU]=[GVe];var I1=function(){};
I1.prototype.shouldPreferLocalResponse=function(){return!1};
I1.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Mi")))})};
I1.prototype.canProvideFallbackResponse=function(){return!0};
I1.prototype.localFallbackInnertubeResponse=function(){var M,d,N;return _.B(function(R){M=Qa("CLOSE_POPUP");d={openPopupAction:Ebi()};N={actions:[M,d]};return R.return(N)})};var P9r=function(M,d){this.JSC$15335_upliftPromise=M;this.store=d};
_.F=P9r.prototype;_.F.shouldPreferLocalResponse=function(M){var d=M.videoId,N;if(N=d)N=TJ6(this.store.getState().entities,M.videoId);return N&&tOj(this.store.getState().entities,d)?d3q(this.store.getState().entities,M.playlistId):!1};
_.F.localInnertubeResponse=function(M){var d=this,N;return _.B(function(R){return(N=d.getPlayerResponse(M))?R.return(Promise.resolve(N)):R.return(Promise.reject(Error("Ni")))})};
_.F.canProvideFallbackResponse=function(M){return!!M.videoId};
_.F.localFallbackInnertubeResponse=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.JSC$15335_upliftPromise,2);N=d.getPlayerResponse(M);var X;N?X=R.return(Promise.resolve(N)):X=WD(d.store.getState().entities,M.videoId)?R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ue(_.le("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:xzZ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ue(_.le("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Ci6()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return X})};
_.F.getPlayerResponse=function(M){return wq2(this.store.getState().entities,M.videoId)};var qb=function(M,d){this.localPlayerService=M;this.localWatchNextService=d};
qb.prototype.shouldPreferLocalResponse=function(M){var d=M.playerRequest;M=M.watchNextRequest;return!!(d&&this.localPlayerService.shouldPreferLocalResponse(d)&&M&&this.localWatchNextService.shouldPreferLocalResponse(M))};
qb.prototype.localInnertubeResponse=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){N=M.playerRequest;R=M.watchNextRequest;if(!N||!R)throw new _.WJ("Missing streaming request",M);return _.D(l,d.localPlayerService.localInnertubeResponse(N),2)}if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,d.localWatchNextService.localInnertubeResponse(R),3);A=l.yieldResult;return l.return({playerResponse:X,watchNextResponse:A})})};
qb.prototype.canProvideFallbackResponse=function(M){var d=M.playerRequest;M=M.watchNextRequest;return!!(d&&this.localPlayerService.canProvideFallbackResponse(d)&&M&&this.localWatchNextService.canProvideFallbackResponse(M))};
qb.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=M.playerRequest,R=M.watchNextRequest,N&&R?_.D(l,d.localPlayerService.localFallbackInnertubeResponse(N),2):l.return(Promise.reject(new _.WJ("Missing streaming request",M)));if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,d.localWatchNextService.localFallbackInnertubeResponse(R),3);A=l.yieldResult;return l.return({playerResponse:X,watchNextResponse:A})})};var mS=function(M){this.JSC$15345_persistentStorePromiseAccessor=M};
mS.prototype.shouldPreferLocalResponse=function(){return!1};
mS.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Oi")))})};
mS.prototype.canProvideFallbackResponse=function(){return!0};
mS.prototype.localFallbackInnertubeResponse=function(){var M=this,d,N;return _.B(function(R){return R.nextAddress==1?_.D(R,M.JSC$15345_persistentStorePromiseAccessor(),2):R.nextAddress!=3?(d=R.yieldResult)?_.D(R,d.get("service:guide:fallback"),3):R.return(Promise.reject(Error("Pi"))):(N=R.yieldResult)&&_.Vr(N)?R.return(N8j(_.Vr(N))):R.return(Promise.reject(Error("Qi")))})};var va=function(){};
va.prototype.shouldPreferLocalResponse=function(){return!1};
va.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Ri")))})};
va.prototype.canProvideFallbackResponse=function(){return!0};
va.prototype.localFallbackInnertubeResponse=function(){var M,d,N;return _.B(function(R){M=Qa("CLOSE_POPUP");d={openPopupAction:Ebi()};N={actions:[M,d]};return R.return(N)})};var pt=function(){this.urlMap=URV;this.fallbackCommand=_.Bn};
pt.prototype.shouldPreferLocalResponse=function(M){return(M=M.url)?!!umg(this,M):!1};
pt.prototype.localInnertubeResponse=function(M){var d=this,N;return _.B(function(R){return(N=M.url)?R.return(Cfm(M,umg(d,N))):R.return(Promise.reject(Error("Si")))})};
pt.prototype.canProvideFallbackResponse=function(){return!0};
pt.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X,A,l,k,T;return _.B(function(W){N=M.url;if(!N)return W.return(Cfm(M,d.fallbackCommand));if(R=umg(d,N))return W.return(Cfm(M,R));X=void 0;A=_.FO(N);A==="/watch"&&(l=_.oW(N,"v"))&&(T=(k=_.oW(N,"list"))!=null?k:void 0,X=_.UN(l,T));X||(X=d.fallbackCommand);return W.return(Cfm(M,X))})};
var umg=function(M,d){if(d)return M.urlMap[_.SE(d)]},Cfm=function(M,d){d&&M.parentTrackingParams&&(d.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:M.parentTrackingParams}},d.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:d})};var hu=function(M,d,N){this.JSC$15355_upliftPromise=M;this.store=d;this.JSC$15355_persistentStorePromiseAccessor=N};
hu.prototype.shouldPreferLocalResponse=function(){return!1};
hu.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Ti")))})};
hu.prototype.canProvideFallbackResponse=function(){return!0};
hu.prototype.localFallbackInnertubeResponse=function(){var M=this;return _.B(function(d){return d.return(xRt(M))})};
var xRt=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,Au(M.JSC$15355_upliftPromise,M.store),2);d=R.yieldResult;N={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[M_S(d)]}}}};return R.return(Yiz(M,N))})},Yiz=function(M,d){var N,R;
return _.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$15355_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return N=X.yieldResult,_.D(X,l5(N),3);R=X.yieldResult;return X.return({responseContext:{},contents:d,topbar:R})})};var Wa=function(M,d,N){this.JSC$15362_upliftPromise=M;this.store=d;this.JSC$15362_persistentStorePromiseAccessor=N};
Wa.prototype.shouldPreferLocalResponse=function(M){var d=M.videoId;return d&&TJ6(this.store.getState().entities,d)&&tOj(this.store.getState().entities,d)?d3q(this.store.getState().entities,M.playlistId):!1};
Wa.prototype.localInnertubeResponse=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return(N=M.videoId)?_.D(X,d.JSC$15362_upliftPromise,2):X.return(Promise.reject(Error("Ui")));if(X.nextAddress!=3)return _.D(X,Zs3(d,M,N),3);R=X.yieldResult;return X.return(Epd(d,R,N))})};
Wa.prototype.canProvideFallbackResponse=function(M){return M.videoId?!0:!1};
Wa.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X,A;return _.B(function(l){switch(l.nextAddress){case 1:return(N=M.videoId)?_.D(l,d.JSC$15362_upliftPromise,2):l.return(Promise.reject(Error("Ui")));case 2:return _.D(l,Zs3(d,M,N),3);case 3:R=l.yieldResult;if(WD(d.store.getState().entities,N)){l.jumpTo(4);break}return _.D(l,Au(d.JSC$15362_upliftPromise,d.store),5);case 5:return X=l.yieldResult,l.return(Mr$(R,X));case 4:return TJ6(d.store.getState().entities,N)&&tOj(d.store.getState().entities,
N)?l.return(Epd(d,R,N)):(A={title:_.ue(_.le("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:xzZ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},l.return(Mr$(R,A)))}})};
var Zs3=function(M,d,N){var R,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return R=d.playlistId,X=_.UN(N,R),_.D(T,M.JSC$15362_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3)return A=T.yieldResult,_.D(T,l5(A),3);l=T.yieldResult;k={responseContext:{},currentVideoEndpoint:X,topbar:l};return T.return(k)})},Epd=function(M,d,N){if(M=WD(M.store.getState().entities,N)){var R;
N=M.videoEntity;var X,A={title:Cb(N.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.xS((R=N.localizedStrings)==null?void 0:R.viewCount),viewCount:_.xS((X=N.localizedStrings)==null?void 0:X.viewCount)}}};N.publishedTimestampMillis&&(A.dateText=_.xS(XnN(new Date(Number(N.publishedTimestampMillis)))));R={videoPrimaryInfoRenderer:A};X=M.videoEntity;M=M.channelEntity;M={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Cb(_.le("SHOW_MORE",void 0,"Show more")),
showLessText:Cb(_.le("SHOW_LESS",void 0,"Show less")),description:X.formattedDescription,owner:{videoOwnerRenderer:{title:Cb(M.title),thumbnail:M.avatar}}}};d.contents={twoColumnWatchNextResults:{results:{results:{contents:[R,M]}}}}}return d},Mr$=function(M,d){M.contents={singleColumnWatchNextResults:{results:{results:{contents:[M_S(d)]}}}};
return M};var Qr=function(M,d,N){this.JSC$15368_upliftPromise=M;this.store=d;this.JSC$15368_persistentStorePromiseAccessor=N};
Qr.prototype.shouldPreferLocalResponse=function(){return!1};
Qr.prototype.localInnertubeResponse=function(){return _.B(function(M){return M.return(Promise.reject(Error("Vi")))})};
Qr.prototype.canProvideFallbackResponse=function(){return!0};
Qr.prototype.localFallbackInnertubeResponse=function(){var M=this,d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.D(A,M.JSC$15368_persistentStorePromiseAccessor(),2);case 2:return d=A.yieldResult,_.D(A,l5(d),3);case 3:return N=A.yieldResult,R={responseContext:{},topbar:N},_.D(A,M.JSC$15368_upliftPromise,4);case 4:return _.D(A,Au(M.JSC$15368_upliftPromise,M.store),5);case 5:return X=A.yieldResult,R.watchStatus={backgroundPromoRenderer:X},A.return(R)}})};var dp9=new _.x5("ENDPOINT_MAP");var NZd=function(){var M=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return M.sequenceMap}}},brd=function(M,d,N){var R,X=(R=d.config)==null?void 0:R.sequenceStrategy;
if(!X)return N();M.sequenceMap.has(X.sequenceKey)||M.sequenceMap.set(X.sequenceKey,[]);M=M.sequenceMap.get(X.sequenceKey);switch(X.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return RZY(M,d,N);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Xjr(M,d,N);default:throw new _.WJ("Request could not be sequenced",d);}},RZY=function(M,d,N){var R,X,A;
return _.B(function(l){M.length>0?(X=M[M.length-1],R=X.responsePromise.then(function(){return N()})):R=N();
A={request:d,responsePromise:R};M.push(A);FAT(M,A);return l.return(A.responsePromise)})},Xjr=function(M,d,N){N=N();
if(M.length>0)for(var R=_.V(M),X=R.next();!X.done;X=R.next())X.value.responsePromise=N;var A={request:d,responsePromise:N};M.push(A);FAT(M,A);return Promise.resolve().then(function(){return M.indexOf(A)>0?A.responsePromise.then(function(l){return Object.assign({},l,{sequenceMetaData:{skipProcessing:!0}})}):A.responsePromise})},FAT=function(M,d){d.responsePromise.then(function(){var N=M.indexOf(d);
N>-1&&M.splice(N,1)})};var ALC=new _.x5("REQUEST_SEQUENCING");var gM=function(){};
_.v(gM,hs);gM.prototype.getApiPaths=function(){return[]};
gM.prototype.getExtension=function(M){return _.q(M,b5g)};
gM.prototype.JSC$11783_buildRequest=function(M,d){M.recaptchaToken=d.recaptchaToken};
gM.prototype.getApiUrl=function(){return"/das_captcha"};var WR=function(){};
_.v(WR,hs);WR.prototype.getApiPaths=function(){return NQC};
WR.prototype.getExtension=function(M){return _.q(M,keL)};
WR.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.createBackstagePostParams&&(M.createBackstagePostParams=d.createBackstagePostParams);N.comment_text&&(M.commentText=N.comment_text);if(N.attached_video_id)M.videoAttachment={videoId:N.attached_video_id};else if(N.image_poll_options)M.pollAttachmentData={options:N.image_poll_options};else if(N.poll_options)M.pollAttachment={choices:N.poll_options};else if(N.quiz_options)M.quizAttachmentData={options:N.quiz_options};else if(N.image_blob_id)M.imageAttachment=
{encryptedBlobId:N.image_blob_id},N.source_video_id&&(M.imageAttachment.sourceExternalVideoId=N.source_video_id),N.image_preview_coordinates&&(M.imageAttachment.previewCoordinates=JSON.parse(N.image_preview_coordinates));else if(N.images_data)M.imagesAttachment={imagesData:N.images_data};else if(N.clip_external_video_id!==void 0||N.clip_offset_ms!==void 0||N.clip_duration_ms!==void 0){var R,X,A,l,k;M.clipAttachment={externalVideoId:(A=N.clip_external_video_id)!=null?A:"",offsetMs:(l=(R=N.clip_offset_ms)==
null?void 0:R.toString())!=null?l:"",durationMs:(k=(X=N.clip_duration_ms)==null?void 0:X.toString())!=null?k:""}}else N.shared_post_id&&(M.sharedPostAttachment={postId:N.shared_post_id});N.tagged_video_id&&(M.postCreationData={taggedVideoId:N.tagged_video_id});N.access_restrictions&&(typeof N.access_restrictions==="number"&&(d=N.access_restrictions,M.accessRestrictions={restriction:d!==1&&d===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof N.access_restrictions==="string"&&
(M.accessRestrictionsParams=N.access_restrictions));N.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=N.scheduled_publish_time_sec.toString())};var wM=function(){};
_.v(wM,hs);wM.prototype.getApiPaths=function(){return $hL};
wM.prototype.getExtension=function(M){return _.q(M,gcg)};
wM.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.decorateMessageParams&&(M.params=d.decorateMessageParams);N.text&&(M.text=N.text)};var pB=function(){};
_.v(pB,hs);pB.prototype.getApiPaths=function(){return rsV};
pB.prototype.getExtension=function(M){return _.q(M,TlC)};
pB.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;N.video_id&&(M.videoId=N.video_id)};var mw=function(){};
_.v(mw,hs);mw.prototype.getApiPaths=function(){return zAd};
mw.prototype.getExtension=function(M){return _.q(M,_.A$)};
mw.prototype.JSC$11783_buildRequest=function(M,d,N){N.suggestions_query&&(M.input=N.suggestions_query)};var hx=function(){};
_.v(hx,hs);hx.prototype.getApiPaths=function(){return g0L};
hx.prototype.getExtension=function(M){return _.q(M,DIm)};
hx.prototype.JSC$11783_buildRequest=function(M,d,N){N.comment_text!==void 0&&(M.commentText=N.comment_text);N.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=N.scheduled_publish_time_sec.toString());M.updateBackstagePostParams=d.updateBackstagePostParams};var QB=function(){};
_.v(QB,hs);QB.prototype.getApiPaths=function(){return E$};
QB.prototype.getExtension=function(M){return _.q(M,_.qN)};
QB.prototype.JSC$11783_buildRequest=function(M,d,N){N.formData&&(M.formData=N.formData);d.token?M.continuation=d.token:d.continuationTokenKey&&(N=_.iY().getState(),d=_.Rz(N.entities,"continuationTokenEntity",d.continuationTokenKey))&&(M.continuation=String(d.continuationToken))};
var VrG=function(){};
_.v(VrG,hs);_.F=VrG.prototype;_.F.getApiPaths=function(){return E$};
_.F.getExtension=function(M){return _.q(M,_.F8)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11790_getStoreKey=function(M){if((M=this.getExtension(M))&&M.browseId){var d={browseId:M.browseId};M.browseEndpointContextSupportedConfigs&&(d.browseEndpointContextSupportedConfigs=JSON.stringify(M.browseEndpointContextSupportedConfigs));M.params&&(d.params=M.params);M.query&&(d.query=M.query);return _.Hl("browse",d)}};
_.F.JSC$11783_buildRequest=function(M,d,N){d.browseId&&(M.browseId=d.browseId);d.params&&(M.params=d.params);d.query&&(M.query=d.query);N.formData?M.formData=N.formData:d.formData&&(M.formData=d.formData);d.browseId==="FEsubscriptions"&&_.kS().getFlag(155)&&(M.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");d.browseId==="SPaccount_playback"&&(N=_.kS(),M.formData||(M.formData={}),M.formData.accountSettingsFormData={flagCaptionsDefaultOff:N.getFlag(65),flagAutoCaptionsDefaultOn:N.getFlag(66),
flagDisableInlinePreview:N.getFlag(186),flagAudioDescriptionDefaultOn:N.getFlag(198)});if(d.browseId==="FEwhat_to_watch"){N=_.kS();var R=N.getFlag(196);N.getFlag(197)&&(M.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:R}}})}d.browseId==="FEwhat_to_watch"&&(d=_.kS().getFlag(186),M.inlineSettingStatus=d?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.F.getRequestConfig=function(M,d){d=d===void 0?{}:d;var N={};if(M=this.JSC$11790_getStoreKey(M,d))N.storeStrategy={storeKey:M,disableCache:d.disableCache};_.Q("web_log_browse_ticks_ks")||(N.requestTick="br_s",N.responseTick="br_r");return N};var q_=function(){};
_.v(q_,hs);q_.prototype.getApiPaths=function(){return xld};
q_.prototype.getExtension=function(M){return _.q(M,KkC)};
q_.prototype.JSC$11783_buildRequest=function(M,d,N){M.legacyYoutubeChannelUsername=N.legacyYouTubeChannelUsername||"";M.legacyYoutubeChannelPassword=N.legacyYouTubeChannelPassword||""};var Ip=function(){};
_.v(Ip,hs);Ip.prototype.getApiPaths=function(){return Xko};
Ip.prototype.getExtension=function(M){return _.q(M,q8I)};
Ip.prototype.JSC$11783_buildRequest=function(M,d,N){N.recaptcha_response_token&&(M.recaptchaResponseToken=N.recaptcha_response_token);N.channel_id&&(M.channelId=N.channel_id)};var vR=function(){};
_.v(vR,hs);vR.prototype.getApiPaths=function(){return W4J};
vR.prototype.getExtension=function(M){return _.q(M,PUC)};
vR.prototype.JSC$11783_buildRequest=function(M,d,N){d.externalChannelId&&(M.externalChannelId=d.externalChannelId);N.handle&&(M.handleUpdate={handle:N.handle},d.handleEditSource&&(M.handleUpdate.handleEditSource=d.handleEditSource))};var OB=function(){};
_.v(OB,hs);OB.prototype.getApiPaths=function(){return hmt};
OB.prototype.getExtension=function(M){return _.q(M,f0d)};
OB.prototype.JSC$11783_buildRequest=function(M,d,N){d.request&&(M.channelId=d.request.channelId);var R;if(N==null?0:(R=N.uploadDefaults)==null?0:R.emojiReactionSet)M.uploadDefaultsRequest||(M.uploadDefaultsRequest={}),M.uploadDefaultsRequest.emojiReactionSet=N.uploadDefaults.emojiReactionSet};var ju=function(){};
_.v(ju,hs);ju.prototype.getApiPaths=function(){return Iht};
ju.prototype.getExtension=function(M){return _.q(M,I0J)};
ju.prototype.JSC$11783_buildRequest=function(M,d,N){d.externalChannelId&&(M.externalChannelId=d.externalChannelId);d.channelHandleEntityKey&&(M.channelHandleEntityKey=d.channelHandleEntityKey);d.handleEditSource&&(M.handleEditSource=d.handleEditSource);N.handle?M.handle=N.handle:N.name&&(M.name=N.name)};var sB=function(){};
_.v(sB,hs);sB.prototype.getApiPaths=function(){return EHL};
sB.prototype.getExtension=function(M){return _.q(M,Z9t)};
sB.prototype.JSC$11783_buildRequest=function(M,d){d.actions?M.actions=d.actions:d.action&&(M.actions=[d.action])};var PR=function(){};
_.v(PR,hs);PR.prototype.getApiPaths=function(){return M$V};
PR.prototype.getExtension=function(M){return _.q(M,_.qN)};
PR.prototype.JSC$11783_buildRequest=function(M,d){d.token&&(M.continuation=d.token)};var op=function(){};
_.v(op,hs);op.prototype.getApiPaths=function(){return Pnm};
op.prototype.getExtension=function(M){return _.q(M,_.qN)};
op.prototype.JSC$11783_buildRequest=function(M,d){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";d.token&&(M.fetchCommentsParams={continuation:d.token})};var rM=function(){};
_.v(rM,hs);rM.prototype.getApiPaths=function(){return Fqd};
rM.prototype.getExtension=function(M){return _.q(M,YPd)};
rM.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.createReplyParams&&(M.createReplyParams=d.createReplyParams);d.commentText&&(M.commentText=_.HD(d.commentText));N.comment_text&&(M.commentText=N.comment_text);N.image_blob_id&&(M.imageAttachment={encryptedBlobId:N.image_blob_id});N.botguard_response&&(M.botguardResponse=N.botguard_response)};
_.Hm.Object.defineProperties(rM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KB=function(){};
_.v(KB,hs);KB.prototype.getApiPaths=function(){return AsJ};
KB.prototype.getExtension=function(M){return _.q(M,_.xsL)};
KB.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.createCommentParams&&(M.createCommentParams=d.createCommentParams);d.commentText&&(M.commentText=_.HD(d.commentText));d.videoPositionMention&&(M.videoPositionMention=d.videoPositionMention);d.sources&&(M.sources=d.sources);N.comment_text&&(M.commentText=N.comment_text);N.attached_video_id?M.videoAttachment={videoId:N.attached_video_id}:N.poll_options?M.pollAttachment={choices:N.poll_options}:N.image_blob_id?M.imageAttachment=
{encryptedBlobId:N.image_blob_id}:N.shared_post_id&&(M.sharedPostAttachment={postId:N.shared_post_id});N.access_restrictions&&typeof N.access_restrictions==="number"&&(d=N.access_restrictions,M.accessRestrictions={restriction:d!==1&&d===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});N.botguard_response&&(M.botguardResponse=N.botguard_response)};
_.Hm.Object.defineProperties(KB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yB=function(){};
_.v(yB,hs);yB.prototype.getApiPaths=function(){return wkg};
yB.prototype.getExtension=function(M){return _.q(M,M4t)};
yB.prototype.JSC$11783_buildRequest=function(M,d,N){d.commentText&&(M.replyText=_.HD(d.commentText));N.comment_text&&(M.replyText=N.comment_text);M.updateReplyParams=d.updateReplyParams};
_.Hm.Object.defineProperties(yB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jx=function(){};
_.v(Jx,hs);Jx.prototype.getApiPaths=function(){return pkL};
Jx.prototype.getExtension=function(M){return _.q(M,E3g)};
Jx.prototype.JSC$11783_buildRequest=function(M,d,N){d.commentText&&(M.commentText=_.HD(d.commentText));N.comment_text&&(M.commentText=N.comment_text);M.updateCommentParams=d.updateCommentParams};
_.Hm.Object.defineProperties(Jx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cR=function(){};
_.v(cR,hs);cR.prototype.getApiPaths=function(){return m1J};
cR.prototype.getExtension=function(M){return _.q(M,evg)};
cR.prototype.JSC$11783_buildRequest=function(M,d){d.settings&&(M.settings=d.settings)};var Su=function(){};
_.v(Su,hs);Su.prototype.getApiPaths=function(){return Qdt};
Su.prototype.getExtension=function(M){return _.q(M,vsz)};
Su.prototype.JSC$11783_buildRequest=function(M,d){d.channelCreationToken&&(M.channelCreationToken=d.channelCreationToken);d.source&&(M.source=d.source)};var z0=function(){};
_.v(z0,hs);z0.prototype.getApiPaths=function(){return XGJ};
z0.prototype.getExtension=function(M){return _.q(M,sx3)};
z0.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;if(N.name&&(N.given_name||N.family_name))M=new _.WJ("channel creation cannot set both GAIA and YouTube names",d),_.qZ(M);else{if(d.zeroStepChannelCreationParams){if(!N.comment_text){M=new _.WJ("zero_step_create_comment_params but no zero_step_texts",d);_.qZ(M);return}M.zeroStepChannelCreationParams=d.zeroStepChannelCreationParams;M.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
N.comment_text,N.botguard_response&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=N.botguard_response))}M.channelCreationToken=d.channelCreationToken;N.given_name&&(M.givenName=N.given_name);N.family_name&&(M.familyName=N.family_name);d.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(M.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(N.name||N.handle||N.avatar_url||N.encryptedBlobId||N.isNameChanged!==void 0||N.isHandleChanged!==void 0||N.isDefaultProfilePhoto!==
void 0||N.obakeImageSource)M.overrideChannelCreationParams={},N.name&&(M.overrideChannelCreationParams.name=N.name),N.handle&&(M.overrideChannelCreationParams.handle=N.handle),N.avatar_url&&(M.overrideChannelCreationParams.avatarUrl=N.avatar_url),N.encryptedBlobId&&(M.overrideChannelCreationParams.blobEncryptionId=N.encryptedBlobId),N.enableIdentityForAllChannelCreationDialog&&(N.encryptedBlobId?M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
N.isDefaultProfilePhoto!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=N.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),N.isNameChanged!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationNameTag=N.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),N.isHandleChanged!==
void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=N.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),N.obakeImageSource&&(M.overrideChannelCreationParams.obakeImageSourceType=N.obakeImageSource))}};var bN=function(){};
_.v(bN,hs);bN.prototype.getApiPaths=function(M){return(M=this.getExtension(M))&&M.status==="DISLIKE"?DhL:M&&M.status==="INDIFFERENT"?Eyd:iVd};
bN.prototype.getExtension=function(M){return _.q(M,_.fQ)};
bN.prototype.JSC$11783_buildRequest=function(M,d){d.target&&(M.target=d.target);if(d=this.getParams(d))M.params=d};
bN.prototype.getParams=function(M){switch(M==null?void 0:M.status){case "DISLIKE":return M.dislikeParams;case "INDIFFERENT":return M.removeLikeParams;default:return M==null?void 0:M.likeParams}};var eu=function(){};
_.v(eu,hs);eu.prototype.getApiPaths=function(){return $1I};
eu.prototype.getExtension=function(M){return _.q(M,Abt)};
eu.prototype.JSC$11783_buildRequest=function(M,d){d.settingItemId&&(M.settingItemId=d.settingItemId);d.stringValue!=null&&d.stringValue!==void 0?M.newValue={stringValue:d.stringValue}:d.intValue?M.newValue={intValue:d.intValue}:d.boolValue!==null&&d.boolValue!==void 0?M.newValue={boolValue:d.boolValue}:(M=new _.WJ("Unknown value type for SetSettingEndpoint.",d),_.qZ(M))};var HR=function(){};
_.v(HR,hs);HR.prototype.getApiPaths=function(){return k1C};
HR.prototype.getExtension=function(M){return _.q(M,vOd)||void 0};
HR.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.channelIds&&(M.channelIds=d.channelIds);d.siloName&&(M.siloName=d.siloName);d.params&&(M.params=d.params);N.botguardResponse&&(M.botguardResponse=N.botguardResponse);N.feature&&(M.clientFeature=N.feature)};
_.Hm.Object.defineProperties(HR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nB=function(){};
_.v(nB,hs);nB.prototype.getApiPaths=function(){return D1g};
nB.prototype.getExtension=function(M){return _.q(M,V4e)||void 0};
nB.prototype.JSC$11783_buildRequest=function(M,d){d.channelIds&&(M.channelIds=d.channelIds);d.siloName&&(M.siloName=d.siloName);d.params&&(M.params=d.params)};
_.Hm.Object.defineProperties(nB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iN=function(M){this.shareClientParamsProvider=M};
_.v(iN,hs);iN.prototype.getApiPaths=function(){return ysL};
iN.prototype.getExtension=function(M){return _.q(M,yVg)||_.q(M,_.JVV)||_.q(M,Kso)};
iN.prototype.JSC$11783_buildRequest=function(M,d){d.serializedShareEntity&&(M.serializedSharedEntity=d.serializedShareEntity);if(d.clientParamIdentifier){var N;if((N=this.shareClientParamsProvider)==null?0:N.clientParams.has(d.clientParamIdentifier)){N=this.shareClientParamsProvider;d=d.clientParamIdentifier;var R=N.clientParams.get(d);R&&N.clientParams.delete(d);M.clientParams=R}}};
iN[CU]=[y5g];var fB=function(){};
_.v(fB,hs);fB.prototype.getApiPaths=function(){return UlI};
fB.prototype.getExtension=function(M){return _.q(M,i2L)};
fB.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var LB=function(){};
_.v(LB,hs);LB.prototype.getApiPaths=function(){return gym};
LB.prototype.getExtension=function(M){return _.q(M,ecz)};
LB.prototype.JSC$11783_buildRequest=function(M,d){d.dismissal&&(M.items=[d.dismissal])};
_.Hm.Object.defineProperties(LB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tx=function(){};
_.v(tx,hs);tx.prototype.getApiPaths=function(){return HVL};
tx.prototype.getExtension=function(M){return _.q(M,_.yr)||void 0};
tx.prototype.JSC$11783_buildRequest=function(M,d,N){M.feedbackTokens=[];d.feedbackToken&&M.feedbackTokens.push(d.feedbackToken);if(d=d.cpn||N.cpn)M.feedbackContext={cpn:d};M.isFeedbackTokenUnencrypted=!!N.is_feedback_token_unencrypted;M.shouldMerge=!1;N.extra_feedback_tokens&&(M.shouldMerge=!0,M.feedbackTokens=M.feedbackTokens.concat(N.extra_feedback_tokens))};
_.Hm.Object.defineProperties(tx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G0=function(){};
_.v(G0,hs);G0.prototype.getApiPaths=function(){return HVL};
G0.prototype.getExtension=function(M){return _.q(M,_.A$)};
G0.prototype.JSC$11783_buildRequest=function(M,d,N){N.feedback_tokens&&(M.feedbackTokens=N.feedback_tokens,M.shouldMerge=!0)};
_.Hm.Object.defineProperties(G0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ap=function(){};
_.v(ap,hs);ap.prototype.getApiPaths=function(){return HVL};
ap.prototype.getExtension=function(M){return _.q(M,HpL)};
ap.prototype.JSC$11783_buildRequest=function(M,d){d.undoToken&&(M.feedbackTokens=[d.undoToken]);d.isUndoTokenUnencrypted&&(M.isFeedbackTokenUnencrypted=d.isUndoTokenUnencrypted)};
_.Hm.Object.defineProperties(ap.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UB=function(){};
_.v(UB,hs);UB.prototype.getApiPaths=function(){return v0m};
UB.prototype.getExtension=function(M){return _.q(M,SFm)};
UB.prototype.JSC$11783_buildRequest=function(M,d){d.nextEndpoint&&_.q(d.nextEndpoint,_.JQ)?M.nextEndpoint={urlEndpoint:_.q(d.nextEndpoint,_.JQ)}:d.nextEndpoint&&_.q(d.nextEndpoint,_.nL)&&(M.nextEndpoint={watchEndpoint:_.q(d.nextEndpoint,_.nL)});d.setRacy&&(M.setRacy=d.setRacy);d.setControvercy&&(M.setControvercy=d.setControvercy)};var uN=function(M){this.JSC$15550_storeWithEntities=M};
_.v(uN,hs);uN.prototype.getApiPaths=function(){return wGm};
uN.prototype.getExtension=function(M){return _.q(M,F8J)};
uN.prototype.JSC$11783_buildRequest=function(M,d){d.flowId&&(M.flowId=d.flowId);d.targetId&&(M.targetId=d.targetId);d.continuation&&(M.continuation=d.continuation);var N=d.flowStateEntityKey;if(d.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&N&&this.JSC$15550_storeWithEntities){var R;if(d=(R=this.JSC$15550_storeWithEntities.getState())==null?void 0:R.entities)if(R=_.EN(N).entityType,R=_.Rz(d,R,N))M.flowState=R,M.flowStateEntityKey=N}};
_.Hm.Object.defineProperties(uN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
uN[CU]=[$_];var lvT=function(){};
_.v(lvT,hs);_.F=lvT.prototype;_.F.getApiPaths=function(){return eAV};
_.F.JSC$11790_getStoreKey=function(){return _.Hl("guide")};
_.F.getRequestConfig=function(){var M=this.JSC$11790_getStoreKey(),d;M&&(d={storeStrategy:{storeKey:M}});return d};
_.F.isNavigationCommand=function(){return!0};
_.F.getExtension=function(M){return _.q(M,_.A$)};
_.F.JSC$11783_buildRequest=function(M){M.fetchLiveState=!0};var CB=function(){};
_.v(CB,hs);CB.prototype.getApiPaths=function(){return Ynd};
CB.prototype.getExtension=function(M){return _.q(M,Ust)};
CB.prototype.JSC$11783_buildRequest=function(){};var xI=function(){};
_.v(xI,hs);xI.prototype.getApiPaths=function(){return Z$C};
xI.prototype.getExtension=function(M){return _.q(M,u6t)};
xI.prototype.JSC$11783_buildRequest=function(){};var YI=function(){};
_.v(YI,hs);YI.prototype.getApiPaths=function(){return apL};
YI.prototype.getExtension=function(M){return _.q(M,_.qN)};
YI.prototype.JSC$11783_buildRequest=function(M,d){d.token&&(M.continuation=d.token);var N,R;M==null||(N=M.context)==null||(R=N.user)==null||delete R.onBehalfOfUser};
YI.prototype.getRequestConfig=function(M){var d={},N;if(((N=this.getExtension(M))==null?void 0:N.sessionIndex)!==void 0){var R;d={authStrategy:{sessionIndex:(R=this.getExtension(M))==null?void 0:R.sessionIndex}}}return d};var ZC=function(){};
_.v(ZC,hs);ZC.prototype.JSC$11783_getRequest=function(M){var d=this.getExtension(M),N=M="";if(d==null?0:d.popup)M="true";if(d==null?0:d.disableSignout)N="true";d={};return{input:"/getAccountSwitcherEndpoint",requestShell:eE("/getAccountSwitcherEndpoint","GET",(d["X-YouTube-Delegation-Context"]=_.rK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),d["X-YouTube-Account-Switcher-Popup"]=M,d["X-YouTube-Account-Switcher-Disable-Signout"]=N,d)),innerTubeRequest:{}}};
ZC.prototype.getApiPaths=function(){return[]};
ZC.prototype.getExtension=function(M){return _.q(M,_.nIr)};
ZC.prototype.JSC$11783_buildRequest=function(){};var EB=function(){};
_.v(EB,hs);EB.prototype.JSC$11783_getRequest=function(M){var d="/cross_account_channel_transfer";(M=this.getExtension(M))&&(d=vCA(d,{target_session:M.targetSessionIndex,source_rapt:M.sourceRapt,rapt:M.targetRapt}));return{input:d,requestShell:eE(d,"GET"),innerTubeRequest:{}}};
EB.prototype.getApiPaths=function(){return[]};
EB.prototype.getExtension=function(M){return _.q(M,Lvd)};
EB.prototype.JSC$11783_buildRequest=function(){};var MY=function(){};
_.v(MY,hs);MY.prototype.getApiPaths=function(){return pGm};
MY.prototype.isNavigationCommand=function(){return!0};
MY.prototype.getExtension=function(M){return _.q(M,_.A$)};
MY.prototype.JSC$11783_buildRequest=function(M){var d=_.kS().get("gsml","");d&&(M.safetyModeLockerObfuscatedGaiaId=d);M.userInterfaceTheme=_.OO(!0);_.j2()?M.deviceTheme="DEVICE_THEME_SELECTED":_.rN2()?M.deviceTheme="DEVICE_THEME_SUPPORTED":M.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var dN=function(){};
_.v(dN,hs);dN.prototype.getApiPaths=function(){return apL};
dN.prototype.getExtension=function(M){return _.q(M,tSd)};
dN.prototype.JSC$11783_buildRequest=function(M,d){if(d&&d.requestType&&(M.requestType=d.requestType,d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var N=d.nextUrl;N&&(_.j_r(N)||Ul(N))&&(M.nextNavendpoint={urlEndpoint:{url:N}})}d&&d.channelSwitcherQuery&&(M.channelSwitcherQuery=d.channelSwitcherQuery);d&&d.triggerChannelCreation&&(M.triggerChannelCreation=d.triggerChannelCreation);var R;if(d==null?0:(R=d.contentOwnerConfig)==
null?0:R.externalContentOwnerId)M.contentOwnerConfig=d.contentOwnerConfig;M.callCircumstance=d&&d.requestType&&d.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var X,A;d=M==null?void 0:(X=M.context)==null?void 0:(A=X.user)==null?void 0:A.onBehalfOfUser;if(d!==void 0){M.obfuscatedSelectedGaiaId=d;var l,k;M==null||(l=M.context)==null||(k=l.user)==null||delete k.onBehalfOfUser}var T,W;if(X=M==null?void 0:(T=M.context)==null?void 0:(W=T.user)==null?
void 0:W.serializedDelegationContext)M.selectedSerializedDelegationContext=X};var NY=function(){};
_.v(NY,hs);NY.prototype.getApiPaths=function(){return Kq3};
NY.prototype.getExtension=function(M){return _.q(M,H5L)};
NY.prototype.JSC$11783_buildRequest=function(M,d){d.profileOwnerExternalChannelId&&(M.profileOwnerExternalChannelId=d.profileOwnerExternalChannelId);d.profileCardContext&&(M.profileCardContext=d.profileCardContext)};var Ra=function(){};
_.v(Ra,hs);Ra.prototype.getApiPaths=function(){return u5g};
Ra.prototype.getExtension=function(M){return _.q(M,cV3)};
Ra.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var Xu=function(){};
_.v(Xu,hs);Xu.prototype.getApiPaths=function(){return RAt};
Xu.prototype.getExtension=function(M){return _.q(M,_.uNo)};
Xu.prototype.JSC$11783_buildRequest=function(M,d){if(d=d.createBroadcastRequest)M.useMasks=d.useMasks,M.broadcastType=d.broadcastType,M.broadcastSource=d.broadcastSource,M.broadcastMetadata=d.broadcastMetadata,M.broadcastMetadataMask=d.broadcastMetadataMask,M.videoMetadata=d.videoMetadata,M.videoMetadataMask=d.videoMetadataMask,M.liveChatSettingsUpdate=d.liveChatSettingsUpdate,M.liveChatSettingsUpdateMask=d.liveChatSettingsUpdateMask,M.cloneVideoId=d.cloneVideoId,M.cloneWithOverrides=d.cloneWithOverrides,
M.targetEntity=d.targetEntity,M.scheduledRedirectMetadata=d.scheduledRedirectMetadata};var Fu=function(){};
_.v(Fu,hs);Fu.prototype.getApiPaths=function(){return V$z};
Fu.prototype.getExtension=function(M){return _.q(M,CJC)};
Fu.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.params&&(M.params=d.params);N.questionText&&(M.questionText=N.questionText);N.optionText&&N.optionText.length>0&&(M.optionText=N.optionText)};var Av=function(){};
_.v(Av,hs);Av.prototype.getApiPaths=function(){return BQV};
Av.prototype.getExtension=function(M){return _.q(M,U2e)};
Av.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var VU=function(){};
_.v(VU,hs);VU.prototype.getApiPaths=function(){return Idd};
VU.prototype.getExtension=function(M){return _.q(M,L8d)};
VU.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var W4=function(){};
_.v(W4,hs);W4.prototype.getApiPaths=function(){return OVL};
W4.prototype.getExtension=function(M){return _.q(M,t8L)};
W4.prototype.JSC$11783_buildRequest=function(M,d,N){d.params&&(M.params=d.params);d.continuation&&(M.continuation=d.continuation);N.currentPlayerState&&N.currentPlayerState.playerOffsetMs&&(M.currentPlayerState={playerOffsetMs:N.currentPlayerState.playerOffsetMs.toString()})};var wN=function(){};
_.v(wN,hs);wN.prototype.getApiPaths=function(){return jdL};
wN.prototype.getExtension=function(M){return _.q(M,fVd)};
wN.prototype.JSC$11783_buildRequest=function(M,d,N){d.params&&(M.params=d.params);N.continuation&&(M.continuation=N.continuation);"hidden"in N&&(M.webClientInfo={isDocumentHidden:N.hidden});N.isInvalidationTimeoutRequest&&(M.isInvalidationTimeoutRequest=N.isInvalidationTimeoutRequest);N.invalidationPayload&&(d=iUg(_.lL(us(N.invalidationPayload))),M.invalidationPayloadLastPublishAtUsec=yx(d,2));N.reloadActionPanel&&(M.reloadActionPanel=N.reloadActionPanel);N.fullReload&&(M.fullReload=N.fullReload);
N.currentPlayerState&&(M.currentPlayerState=N.currentPlayerState)};var pP=function(){};
_.v(pP,hs);pP.prototype.getApiPaths=function(){return fdo};
pP.prototype.getExtension=function(M){return _.q(M,uXo)};
pP.prototype.JSC$11783_buildRequest=function(M,d){M.params=d.params};var mB=function(){};
_.v(mB,hs);mB.prototype.getApiPaths=function(){return vyd};
mB.prototype.getExtension=function(M){return _.q(M,xGz)};
mB.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var hv=function(){};
_.v(hv,hs);hv.prototype.getApiPaths=function(){return sdC};
hv.prototype.getExtension=function(M){return _.q(M,YY3)};
hv.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var QU=function(){};
_.v(QU,hs);QU.prototype.getApiPaths=function(){return LqI};
QU.prototype.getExtension=function(M){return _.q(M,x2V)};
QU.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var qY=function(){};
_.v(qY,hs);qY.prototype.getApiPaths=function(){return GcI};
qY.prototype.getExtension=function(M){return _.q(M,YKz)};
qY.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var Ia=function(){};
_.v(Ia,hs);Ia.prototype.getApiPaths=function(){return MQV};
Ia.prototype.getExtension=function(M){return _.q(M,b7e)};
Ia.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var v4=function(){};
_.v(v4,hs);v4.prototype.getApiPaths=function(){return VQV};
v4.prototype.getExtension=function(M){return _.q(M,_.ZU3)};
v4.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.params&&(M.params=d.params);N.client_message_id&&(M.clientMessageId=N.client_message_id);N.recaptcha_token&&(M.recaptchaToken=N.recaptcha_token);N.rich_message&&N.rich_message.text_segments?(d=N.rich_message.text_segments.map(function(R){var X={};R.text&&(X.text=R.text);R.emoji_id&&(X.emojiId=R.emoji_id);return X}),M.richMessage={textSegments:d}):N.message&&(M.message=N.message);
N.currentPlayerState&&(M.currentPlayerState=N.currentPlayerState)};var Ox=function(){};
_.v(Ox,hs);Ox.prototype.getApiPaths=function(){return lh3};
Ox.prototype.getExtension=function(M){return _.q(M,E5J)};
Ox.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var jo=function(){};
_.v(jo,hs);jo.prototype.getApiPaths=function(){return ThC};
jo.prototype.getExtension=function(M){return _.q(M,dLC)};
jo.prototype.JSC$11783_buildRequest=function(M,d,N){d.isUserInitiated&&(M.isUserInitiated=d.isUserInitiated);d.initiationSource&&(M.initiationSource=d.initiationSource);N.locationInfo&&(M.context.client.locationInfo=N.locationInfo)};var sx=function(){};
_.v(sx,hs);sx.prototype.getApiPaths=function(){return t$o};
sx.prototype.getExtension=function(M){return _.q(M,CVV)};
sx.prototype.JSC$11783_buildRequest=function(M,d,N){d.metadataUpdateRequest&&(d=d.metadataUpdateRequest,M.encryptedVideoId=d.encryptedVideoId,d.liveChat&&(d=d.liveChat,M.liveChat||(M.liveChat={}),d.performAsExternalChannelId&&(M.liveChat.performAsExternalChannelId=d.performAsExternalChannelId),d.source&&(M.liveChat.source=d.source)));var R;if(N==null?0:(R=N.liveChat)==null?0:R.liveChatSettings)M.liveChat||(M.liveChat={}),N=N.liveChat.liveChatSettings,M.liveChat.newLiveChatSettings=N,M.liveChat.newLiveChatSettingsMask||
(M.liveChat.newLiveChatSettingsMask={}),N.emojiReactionSet&&(M.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var P4=function(){};
_.v(P4,hs);P4.prototype.getApiPaths=function(){return qpI};
P4.prototype.getExtension=function(M){return _.q(M,_.lYL)};
P4.prototype.JSC$11783_buildRequest=function(M,d,N){N.continuation?M.continuation=N.continuation:d.videoId&&(M.videoId=d.videoId);N.clientParams&&(M.clientParams=N.clientParams)};var oa=function(){};
_.v(oa,hs);oa.prototype.getApiPaths=function(){return Pnm};
oa.prototype.getExtension=function(M){return _.q(M,_.sP)};
oa.prototype.JSC$11783_buildRequest=function(M,d){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";M.fetchCommentsParams={};d.videoId&&(M.fetchCommentsParams.encryptedVideoId=d.videoId);d.postId&&(M.fetchCommentsParams.postId=d.postId);d.externalChannelId&&(M.fetchCommentsParams.externalChannelId=d.externalChannelId);d.linkedCommentId&&(M.fetchCommentsParams.linkedCommentId=d.linkedCommentId);(0,_.wF.isEmpty)(M.fetchCommentsParams)&&delete M.fetchCommentsParams};var rN=function(){};
_.v(rN,hs);rN.prototype.getApiPaths=function(){return E$};
rN.prototype.JSC$11783_buildRequest=function(M){M.browseId="FEnotifications_inbox"};
rN.prototype.getExtension=function(M){return _.q(M,_.A$)};var KP=function(){};
_.v(KP,hs);KP.prototype.getApiPaths=function(){return Pnm};
KP.prototype.JSC$11783_buildRequest=function(M,d){d.signal==="GET_NOTIFICATIONS_MENU"&&(M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");d.ctoken&&(M.ctoken=d.ctoken)};
var $pr=function(){};
_.v($pr,KP);$pr.prototype.getExtension=function(M){return _.q(M,_.A$)};
var BZY=function(){};
_.v(BZY,KP);BZY.prototype.getExtension=function(M){return _.q(M,yYm)};var yU=function(){};
_.v(yU,hs);yU.prototype.getApiPaths=function(){return Sbm};
yU.prototype.getExtension=function(M){return _.q(M,_.A$)};
yU.prototype.JSC$11783_buildRequest=function(){};var Jv=function(){};
_.v(Jv,hs);Jv.prototype.getApiPaths=function(){return adm};
Jv.prototype.getExtension=function(M){return _.q(M,RHC)||void 0};
Jv.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params);d.secondaryParams&&(M.secondaryParams=d.secondaryParams)};var c4=function(){};
_.v(c4,hs);c4.prototype.getApiPaths=function(){return Uhz};
c4.prototype.getExtension=function(M){return _.q(M,SYV)};
c4.prototype.JSC$11783_buildRequest=function(M,d){d.undo&&(M.undo=d.undo);d.serializedOptOut&&(M.serializedOptOut=d.serializedOptOut);d.serializedRecordInteractionsRequest&&(M.serializedRecordInteractionsRequest=d.serializedRecordInteractionsRequest)};var So=function(){};
_.v(So,hs);So.prototype.getApiPaths=function(){return xho};
So.prototype.getExtension=function(M){return _.q(M,ziI)};
So.prototype.JSC$11783_buildRequest=function(M,d){d.serializedInteractionsRequest&&(M.serializedRecordNotificationInteractionsRequest=d.serializedInteractionsRequest)};var zw=function(){};
_.v(zw,hs);zw.prototype.getApiPaths=function(){return D7p};
zw.prototype.getExtension=function(M){return _.q(M,uvZ)};
zw.prototype.JSC$11783_buildRequest=function(M,d,N){d=d===void 0?{}:d;N=N===void 0?{}:N;d.videoId?M.videoId=d.videoId:d.playlistId&&(M.playlistId=d.playlistId);var R,X=(R=d.offlineWebClientEligibility)!=null?R:N.offlineWebClientEligibility;X&&(M.offlineWebClientEligibility=X);var A;if(R=(A=d.preferredFormatType)!=null?A:N.preferredFormatType)M.preferredFormatType=R;var l;if(A=(l=d.lastOfflineQualitySettingsSavedMs)!=null?l:N.lastOfflineQualitySettingsSavedMs)M.lastOfflineQualitySettingsSavedMs=A;
d.params&&(M.params=d.params)};var b4=function(){};
_.v(b4,hs);b4.prototype.getApiPaths=function(){return L9};
b4.prototype.getExtension=function(M){return _.q(M,_.qN)};
b4.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.token&&(M.continuation=d.token);N.formData&&(M.formData=N.formData)};var eo=function(){};
_.v(eo,hs);eo.prototype.getApiPaths=function(){return L9};
eo.prototype.getExtension=function(M){return _.q(M,LE3)};
eo.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;M.continuation=N.continuation};var H4=function(){};
_.v(H4,hs);H4.prototype.getApiPaths=function(){return L9};
H4.prototype.getExtension=function(M){return _.q(M,_.Kt)};
H4.prototype.JSC$11783_buildRequest=function(M,d){var N,R=d.panelIdentifier||((N=d.identifier)==null?void 0:N.tag);R&&(M.panelId=R);var X;if((X=d.globalConfiguration)==null?0:X.params){var A;M.params=(A=d.globalConfiguration)==null?void 0:A.params}};
_.Hm.Object.defineProperties(H4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nP=function(){};
_.v(nP,hs);nP.prototype.getApiPaths=function(){return L9};
nP.prototype.getExtension=function(M){return _.q(M,jLz)};
nP.prototype.JSC$11783_buildRequest=function(M,d){d.panelLoadingStrategy&&AB6(M,d.panelLoadingStrategy)};var i4=function(){};
_.v(i4,hs);i4.prototype.getApiPaths=function(){return L9};
i4.prototype.getExtension=function(M){return _.q(M,UGI)};
i4.prototype.JSC$11783_buildRequest=function(M,d){d.loadingStrategy&&AB6(M,d.loadingStrategy)};var fP=function(){};
_.v(fP,hs);fP.prototype.getApiPaths=function(){return L9};
fP.prototype.getExtension=function(M){return _.q(M,_.$M)};
fP.prototype.JSC$11783_buildRequest=function(M,d){d.panelLoadingStrategy&&AB6(M,d.panelLoadingStrategy)};var LP=function(){};
_.v(LP,hs);LP.prototype.getApiPaths=function(){return L9};
LP.prototype.getExtension=function(M){return _.q(M,uMV)};
LP.prototype.JSC$11783_buildRequest=function(M,d){var N,R=(N=d.contentSourcePanelIdentifier)==null?void 0:N.tag;R&&(M.panelId=R);var X;if((X=d.globalConfiguration)==null?0:X.params){var A;M.params=(A=d.globalConfiguration)==null?void 0:A.params}};var tv=function(){};
_.v(tv,hs);tv.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
tv.prototype.getExtension=function(M){return _.q(M,CcL)};
tv.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var Gw=function(){};
_.v(Gw,hs);Gw.prototype.getApiPaths=function(){return Qko};
Gw.prototype.getExtension=function(M){return _.q(M,Z7J)};
Gw.prototype.JSC$11783_buildRequest=function(M,d){d.externalChannelId&&(M.externalChannelId=d.externalChannelId);d.superChatAction&&(M.superChatAction=d.superChatAction);d.superStickersAction&&(M.superStickersAction=d.superStickersAction)};var aa=function(){};
_.v(aa,hs);aa.prototype.getApiPaths=function(){return mhV};
aa.prototype.getExtension=function(M){return _.q(M,a1J)||_.q(M,x_N)};
aa.prototype.JSC$11783_buildRequest=function(M,d){d.videoIds?M.videoIds=d.videoIds:d.videoId&&(M.videoIds=[d.videoId]);d.playlistId&&(M.playlistId=d.playlistId);d.params&&(M.params=d.params);M.excludeWatchLater=!1};var Ux=function(){};
_.v(Ux,hs);Ux.prototype.getApiPaths=function(){return ldo};
Ux.prototype.getExtension=function(M){return _.q(M,_.J6)};
Ux.prototype.JSC$11783_buildRequest=function(M,d,N){N.create_playlist_title?M.title=N.create_playlist_title:d.title&&(M.title=d.title);if(N.create_playlist_privacy_status&&typeof N.create_playlist_privacy_status==="number"){a:{var R=N.create_playlist_privacy_status;if(R!==0){if(R===1){R="PUBLIC";break a}if(R===2){R="UNLISTED";break a}}R="PRIVATE"}M.privacyStatus=R}else d.privacyStatus&&(M.privacyStatus=d.privacyStatus);N.create_playlist_description&&(M.description=N.create_playlist_description);d.videoIds&&
(M.videoIds=d.videoIds);d.params&&(M.params=d.params);d.sourcePlaylistId&&(M.sourcePlaylistId=d.sourcePlaylistId)};var u4=function(){};
_.v(u4,hs);u4.prototype.getApiPaths=function(){return kcL};
u4.prototype.getExtension=function(M){return _.q(M,dTL)};
u4.prototype.JSC$11783_buildRequest=function(M,d){M.playlistId=d.playlistId};var CP=function(){};
_.v(CP,hs);CP.prototype.getApiPaths=function(){return oyL};
CP.prototype.getExtension=function(M){return _.q(M,on3)};
CP.prototype.JSC$11783_buildRequest=function(M,d){d.playlistId&&(M.playlistId=d.playlistId);d.params&&(M.params=d.params)};var xA=function(){};
_.v(xA,hs);xA.prototype.getApiPaths=function(){return Cne};
xA.prototype.getExtension=function(M){return _.q(M,_.Pq)||void 0};
xA.prototype.JSC$11783_buildRequest=function(M,d){d.actions&&(M.actions=d.actions);d.params&&(M.params=d.params);d.playlistId&&(M.playlistId=d.playlistId)};var YA=function(){};
_.v(YA,hs);_.F=YA.prototype;_.F.getApiPaths=function(){return Ybd};
_.F.getExtension=function(M){return _.q(M,_.$B)};
_.F.JSC$11783_buildRequest=function(M,d){d.videoId&&(M.playerRequest={videoId:d.videoId},d.playerParams&&(M.playerRequest.params=d.playerParams),d.racyCheckOk&&(M.playerRequest.racyCheckOk=!!d.racyCheckOk),d.contentCheckOk&&(M.playerRequest.contentCheckOk=!!d.contentCheckOk));d.params&&(M.params=d.params);d.inputType&&(M.inputType=d.inputType);M.disablePlayerResponse=!0};
_.F.getRequestConfig=function(M){var d;(M=this.JSC$11790_getStoreKey(M))&&(d={storeStrategy:{storeKey:M}});_.Q("web_log_reels_ticks")&&(d=d||{},d.requestTick="r_wrs",d.responseTick="r_wrr");return d};
_.F.JSC$11790_getStoreKey=function(M){M=this.getExtension(M);if(_.Q("shorts_controller_retrieve_seedless_sequence_v2")){if((M==null?void 0:M.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Hl("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.Q("web_prefetch_riw_for_next_video")||_.Q("web_shorts_prefetch_service_enabled"))&&M!=null&&M.videoId){var d={videoId:M.videoId};M.params&&(d.params=M.params);return _.Hl("reel_item_watch",d)}};var Z9=function(){};
_.v(Z9,hs);_.F=Z9.prototype;_.F.getApiPaths=function(){return ZVC};
_.F.getExtension=function(M){return _.q(M,_.$B)};
_.F.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;M.sequenceParams=d.sequenceParams;var R;((R=N)==null?0:R.contentPlaybackContext)&&_.Q("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:N.contentPlaybackContext})};
_.F.JSC$11790_getStoreKey=function(M){if(_.Q("shorts_controller_retrieve_seedless_sequence_v2")&&(M=this.getExtension(M),M==null?0:M.sequenceParams))return _.Hl("reel_watch_sequence",{sequenceParams:M.sequenceParams})};
_.F.getRequestConfig=function(M){M=this.JSC$11790_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("reel_watch_sequence_request_log_ticks")&&(d=d||{},d.requestTick="r_wsrs",d.responseTick="r_wsrr",d.processorTick="r_wsrp");return d};
var Ex=function(){};
_.v(Ex,hs);Ex.prototype.getApiPaths=function(){return ZVC};
Ex.prototype.getExtension=function(M){return _.q(M,_.qN)};
Ex.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.token&&(M.continuation=d.token);var R;((R=N)==null?0:R.contentPlaybackContext)&&_.Q("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:N.contentPlaybackContext})};
Ex.prototype.getRequestConfig=function(M){M=this.JSC$11790_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("reel_watch_sequence_request_log_ticks")&&(d=d||{},d.requestTick="r_wsrs",d.responseTick="r_wsrr",d.processorTick="r_wsrp");return d};var Mt=function(){};
_.v(Mt,hs);Mt.prototype.getApiPaths=function(){return WqL};
Mt.prototype.getExtension=function(M){return _.q(M,_.Xvd)};
Mt.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.flagAction&&(M.action=d.flagAction);d.flagRequestType&&(M.flagRequestType=d.flagRequestType);d.additionalDetailCheckboxChecked&&(M.additionalDetailCheckboxChecked=d.additionalDetailCheckboxChecked);d.legalCheckboxChecked&&(M.legalCheckboxChecked=d.legalCheckboxChecked);d={};N.flag_issue_type!==void 0&&(d.issue=N.flag_issue_type);N.flag_affiliation!==void 0&&(d.affiliation=N.flag_affiliation);N.flag_full_name&&(d.fullName=N.flag_full_name);
Object.keys(d).length&&(M.legalReportDetails=d);if(N.flag_description||N.text)M.userComments=N.flag_description||N.text;d={};N.minutes!==void 0&&N.seconds!==void 0&&(d.minutes=N.minutes,d.seconds=N.seconds);N.vss_id&&(d.vssId=N.vss_id);Object.keys(d).length&&(M.videoReportDetails=d);d={};N.video_ids&&(d.videoIds=N.video_ids);N.impersonated_channel_url&&(d.impersonatedChannelUrl=N.impersonated_channel_url);Object.keys(d).length&&(M.channelAbuseReportDetails=d)};
_.Hm.Object.defineProperties(Mt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var de=function(){};
_.v(de,hs);de.prototype.getApiPaths=function(){return qbI};
de.prototype.getExtension=function(M){return _.q(M,JWe)};
de.prototype.JSC$11783_buildRequest=function(M,d){d.blockedForKidsContent&&(M.blockedForKidsContent=d.blockedForKidsContent)};var Nt=function(){};
_.v(Nt,hs);Nt.prototype.getApiPaths=function(){return d1d};
Nt.prototype.getExtension=function(M){return _.q(M,CN2)};
Nt.prototype.JSC$11783_buildRequest=function(M,d,N){M.params=d.params;N.impersonated_channel_url&&(M.impersonatedChannelUrl=N.impersonated_channel_url)};var R9=function(){};
_.v(R9,hs);R9.prototype.getApiPaths=function(){return nyV};
R9.prototype.getExtension=function(M){return _.q(M,_.cWz)};
R9.prototype.JSC$11783_buildRequest=function(M,d){d.items&&(M.items=d.items);d.kidGaiaId&&(M.kidGaiaId=d.kidGaiaId)};var X9=function(){};
_.v(X9,hs);X9.prototype.getApiPaths=function(){return hAe};
X9.prototype.getExtension=function(M){return _.q(M,_.tHL)};
X9.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params);d.targetId&&(M.targetId=d.targetId)};var F9=function(){};
_.v(F9,hs);F9.prototype.getApiPaths=function(){return F4o};
F9.prototype.getExtension=function(M){return _.q(M,JYo)};
F9.prototype.JSC$11783_buildRequest=function(M,d){d.externalVideoId&&(M.externalVideoId=d.externalVideoId);d.query&&(M.query=d.query);d.sourceTimelines&&(M.sourceTimelines=d.sourceTimelines)};var AD=function(){};
_.v(AD,hs);AD.prototype.getApiPaths=function(){return ANI};
AD.prototype.getExtension=function(M){return _.q(M,_.qN)||void 0};
AD.prototype.JSC$11783_buildRequest=function(M,d){d.token&&(M.continuation=d.token)};
_.k6T=function(){};
_.v(_.k6T,hs);_.F=_.k6T.prototype;_.F.getApiPaths=function(){return ANI};
_.F.getExtension=function(M){return _.q(M,_.A2)||void 0};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11790_getStoreKey=function(M,d){d=d===void 0?{}:d;if(!d.disableCache&&(M=this.getExtension(M))&&M.query)return d={query:M.query},M.params&&(d.params=M.params),_.Hl("search",d)};
_.F.JSC$11783_buildRequest=function(M,d,N){d.query&&(M.query=d.query);d.params&&(M.params=d.params);if(!_.Q("web_forward_suggest_stats_killswitch")){var R=_.q(d,qYt);R&&(M.suggestStats=R)}var X;!_.Q("kevlar_searchbox_stats_killswitch")&&((X=N.tempData)==null?0:X.gs_l)&&!_.q(d,qYt)&&(M.webSearchboxStatsUrl="/search?oq="+(N.tempData.oq||"")+"&gs_l="+N.tempData.gs_l);var A;if((A=N.tempData)==null?0:A.entityMid)d=M.suggestionSearchParams||{},d.entityMid=N.tempData.entityMid,M.suggestionSearchParams=d};
_.F.getRequestConfig=function(M,d){d=d===void 0?{}:d;M=this.JSC$11790_getStoreKey(M,d);var N;M&&(N={storeStrategy:{storeKey:M}});_.Q("web_log_search_ticks_ks")||(N=N||{},N.requestTick="sr_s",N.responseTick="sr_r");return N};var V1=function(){};
_.v(V1,hs);V1.prototype.getApiPaths=function(){return Jsz};
V1.prototype.getExtension=function(M){return _.q(M,DTd)};
V1.prototype.JSC$11783_buildRequest=function(M,d){d.serializedGetSharingProviderDataParams&&(M.serializedGetSharingProviderDataParams=d.serializedGetSharingProviderDataParams)};var ll=function(){};
_.v(ll,hs);ll.prototype.getApiPaths=function(){return cs3};
ll.prototype.getExtension=function(M){return _.q(M,E9o)};
ll.prototype.JSC$11783_buildRequest=function(M,d){d.endpoint&&(M.endpoint=d.endpoint);d.action&&(M.action=d.action)};var $f=function(){};
_.v($f,hs);$f.prototype.getApiPaths=function(){return TQd};
$f.prototype.getExtension=function(M){return _.q(M,Nmg)};
$f.prototype.JSC$11783_buildRequest=function(M,d){M.videoId=d.videoId;d.scheduledRedirectMetadataSourceVideoId&&(M.scheduledRedirectMetadata={sourceVideoId:d.scheduledRedirectMetadataSourceVideoId})};var TZ9=XMLHttpRequest.prototype.fetch,Dpb=TZ9&&TZ9.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!nE?!0:!1;var Be=function(M){this.JSC$15818_storeWithEntities=M};
_.v(Be,hs);_.F=Be.prototype;_.F.getApiPaths=function(){return unJ};
_.F.getExtension=function(M){return _.q(M,_.nL)||_.q(M,_.$B)||_.q(M,X0g)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11790_getStoreKey=function(M){if((_.Q("kevlar_cache_on_ttl_player")||_.Q("mweb_enable_shorts_innertube_player_prefetch")||_.Q("mweb_use_new_history_manager")||_.Q("web_shorts_prefetch_service_enabled"))&&(M=this.getExtension(M))&&M.videoId){var d={videoId:M.videoId};M.playlistId&&(d.playlistId=M.playlistId);M.playerParams&&(d.params=M.playerParams);return _.Hl("player",d)}};
_.F.JSC$11783_getClientScreen=function(M){var d;return((d=M.contentPlaybackContext)==null?void 0:d.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.F.JSC$11783_buildRequest=function(M,d,N){if(_.Q("enable_interstitial_entity_check")){var R=this.JSC$15818_storeWithEntities;if(d.videoId)for(var X=_.V(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),A=X.next();!A.done;A=X.next()){A=A.value;var l;var k=void 0,T=void 0,W=d.videoId,w=A;(l=R)?(W=_.Nr(W+w,"interstitialInteractionStateEntity"),l=(k=(T=_.Rz(l.getState().entities,"interstitialInteractionStateEntity",W))==null?void 0:T.primaryButtonClicked)!=null?k:!1):l=!1;if(l)switch(A){case "CONTENT_CHECK_REQUIRED":d.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":d.racyCheckOk=!0}}}d.videoId&&(M.videoId=d.videoId);d.playlistId&&(M.playlistId=d.playlistId);d.index!==void 0&&(M.playlistIndex=d.index+1);d.playerParams&&(M.params=d.playerParams);"startTimeSeconds"in d&&d.startTimeSeconds&&(_.Q("enable_player_request_builder_start_time_floor")?M.startTimeSecs=Math.floor(d.startTimeSeconds):M.startTimeSecs=d.startTimeSeconds);N.contentPlaybackContext&&(M.playbackContext={contentPlaybackContext:N.contentPlaybackContext});N.prefetchPlaybackContext&&
(M.playbackContext=Object.assign({},M.playbackContext,{prefetchPlaybackContext:N.prefetchPlaybackContext}),M.context.request||(M.context.request={}),M.context.request.isPrefetch=!0);M.playbackContext||(M.playbackContext={});R=m0d();M.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!R,supportXhr:Dpb};N.overrideMutedAtStart&&(M.overrideMutedAtStart=N.overrideMutedAtStart);M.racyCheckOk=!!d.racyCheckOk;M.contentCheckOk=!!d.contentCheckOk;!_.Q("captions_prefs_killswitch")&&(N=(N=_.F5("yt-player-caption-language-preferences"))?
N:[],N==null?0:N.length)&&(M.captionParams={viewerSelectedCaptionLangs:N})};
_.F.getRequestConfig=function(M){M=this.JSC$11790_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("web_log_player_watch_next_ticks")&&(d=d||{},d.requestTick="ps_s",d.responseTick="ps_r");return d};
Be[CU]=[$_];var kf=function(){};
_.v(kf,hs);kf.prototype.getApiPaths=function(){return BhL};
kf.prototype.getExtension=function(M){return _.q(M,_.H4g)};
kf.prototype.JSC$11783_buildRequest=function(M,d){M.params=d.params;M.correctionText=d.correctionText};var Td=function(){};
_.v(Td,hs);Td.prototype.getApiPaths=function(){return kzL};
Td.prototype.getExtension=function(M){return _.q(M,_.cYe)};
Td.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params);M.searchQuery=d.searchQuery;M.languageCode=d.languageCode;M.kind=d.kind;M.name=d.name;M.externalVideoId=d.externalVideoId};var D8=function(){};
_.v(D8,hs);_.F=D8.prototype;_.F.getApiPaths=function(){return Ofg};
_.F.getExtension=function(M){return _.q(M,_.nL)};
_.F.isNavigationCommand=function(){return!0};
_.F.JSC$11790_getStoreKey=function(M){if((M=this.getExtension(M))&&M.videoId){var d={videoId:M.videoId};M.playlistId&&(d.playlistId=M.playlistId);M.index&&(d.index=M.index);M.params&&(d.params=M.params);return _.Hl("next",d)}};
_.F.JSC$11783_getClientScreen=function(M){var d;return((d=M.contentPlaybackContext)==null?void 0:d.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.F.JSC$11783_buildRequest=function(M,d,N){d.videoId&&(M.videoId=d.videoId);d.playlistId&&(M.playlistId=d.playlistId);d.params&&(M.params=d.params);d.index!==void 0&&(M.playlistIndex=d.index);M.racyCheckOk=!(!N.racyCheckOk&&!d.racyCheckOk);M.contentCheckOk=!!d.contentCheckOk;N.contentPlaybackContext&&(M.autonavState=N.contentPlaybackContext.autonavState,M.playbackContext={vis:N.contentPlaybackContext.vis,lactMilliseconds:N.contentPlaybackContext.lactMilliseconds});N.prefetchPlaybackContext&&(M.context.request||
(M.context.request={}),M.context.request.isPrefetch=!0);_.Q("captions_hats_killswitch")||(d=_.kS().getFlag(65),d=d!=null?!d:!1,N=!!_.F5("yt-player-sticky-caption"),M.captionsRequested=d&&N)};
_.F.getRequestConfig=function(M){M=this.JSC$11790_getStoreKey(M);var d;M&&(d={storeStrategy:{storeKey:M}});_.Q("web_log_player_watch_next_ticks")&&(d=d||{},d.requestTick="wn_s",d.responseTick="wn_r");return d};
var ge=function(){};
_.v(ge,hs);ge.prototype.getApiPaths=function(){return Ofg};
ge.prototype.getExtension=function(M){return _.q(M,_.qN)};
ge.prototype.JSC$11783_buildRequest=function(M,d){d.token&&(M.continuation=d.token)};var We=function(M,d){this.playerRequestBuilder=M;this.watchNextRequestBuilder=d};
_.v(We,s5J);We.prototype.getApiPaths=function(){return bVe};
We.prototype.getExtension=function(M){return _.q(M,_.nL)};
We.prototype.isNavigationCommand=function(){return!0};
We.prototype.JSC$11783_buildRequest=function(M,d,N){M.playerRequest={};M.watchNextRequest={};this.playerRequestBuilder.JSC$11783_buildRequest(M.playerRequest,d,N);this.watchNextRequestBuilder.JSC$11783_buildRequest(M.watchNextRequest,d,N)};
We[CU]=[Be,D8];var we=function(){};
_.v(we,hs);we.prototype.getApiPaths=function(){return jkL};
we.prototype.getExtension=function(M){return _.q(M,EOL)};
we.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.params=d.params)};var pi=function(M){this.JSC$15845_storeWithEntities=M};
_.v(pi,hs);pi.prototype.getApiPaths=function(){return dhV};
pi.prototype.getExtension=function(M){return _.q(M,dlV)||_.q(M,RfI)};
pi.prototype.JSC$11783_buildRequest=function(M,d,N){N.client_data&&(M.clientData=N.client_data);if(d.commerceActionConfig){var R=d.commerceActionConfig;d=R.actionId;R=R.commerceActionParams;d&&(M.actionId=d);R&&(M.commerceActionParams=R)}else{var X=d.actionId,A=d.commerceActionParams;N=d.entityKeys;X&&(M.actionId=X);A&&(M.commerceActionParams=A);var l;d=(R=this.JSC$15845_storeWithEntities)==null?void 0:(l=R.getState())==null?void 0:l.entities;if(N&&d){R=[];l=_.V(N);for(N=l.next();!N.done;N=l.next())if(X=
N.value,N=_.EN(X).entityType,X=_.Rz(d,N,X))A={},R.push((A[N]=X,A));M.entityMutationPayloads=R}}};
pi.prototype.getRequestConfig=function(M){var d,N=(d=_.q(M,dlV))==null?void 0:d.requestSequenceType;if(N&&M.clickTrackingParams&&N!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:M.clickTrackingParams,sequenceType:N}}};
pi[CU]=[$_];var mm=function(){};
_.v(mm,hs);mm.prototype.getApiPaths=function(){return skV};
mm.prototype.getExtension=function(M){return _.q(M,_.qnC)};
mm.prototype.JSC$11783_buildRequest=function(M,d){d.feedbackData&&(M.feedbackData=d.feedbackData);d.params&&(M.itemParams=d.params)};
_.Hm.Object.defineProperties(mm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hD=function(){};
_.v(hD,hs);hD.prototype.getApiPaths=function(){return P$I};
hD.prototype.getExtension=function(M){return _.q(M,IpI)};
hD.prototype.JSC$11783_buildRequest=function(M,d,N){N.payments_payload&&(M.paymentsPayload=N.payments_payload);N.offer_params&&(M.offerParams=N.offer_params);d.transactionParams&&(M.transactionParams=d.transactionParams)};var Q1=function(){};
_.v(Q1,hs);Q1.prototype.getApiPaths=function(){return o0C};
Q1.prototype.getExtension=function(M){return _.q(M,_.vHo)};
Q1.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.buybucketParams&&(M.buybucketData={params:d.buybucketParams},d.stickerParams?M.buybucketData.stickerParams=d.stickerParams:(N.rich_chat_message?M.buybucketData.richChatMessage=N.rich_chat_message:N.chat_message_text&&(M.buybucketData.chatMessageText=N.chat_message_text),N.purchase_price_micros&&(M.buybucketData.purchasePriceMicros=N.purchase_price_micros.toString())));d.donationAmountMicros&&(M.tipAmountMicros=d.donationAmountMicros,
d.tipParams&&(M.tipParams=d.tipParams));d.offerParams&&(M.offerParams=d.offerParams);d.productData&&(M.productData=d.productData);d.transactionParams&&(M.transactionParams=d.transactionParams)};var qt=function(){};
_.v(qt,hs);qt.prototype.getApiPaths=function(){return rNL};
qt.prototype.getExtension=function(M){return _.q(M,shV)};
qt.prototype.JSC$11783_buildRequest=function(M,d){d.updateFopParams&&(M.updateFopParams=d.updateFopParams)};var I9=function(){};
_.v(I9,hs);I9.prototype.getApiPaths=function(){return K4C};
I9.prototype.getExtension=function(M){return _.q(M,_.Ec)};
I9.prototype.JSC$11783_buildRequest=function(M,d){d.couponCode&&(M.couponCode=d.couponCode);d.params&&(M.itemParams=d.params)};var ve=function(){};
_.v(ve,hs);ve.prototype.getApiPaths=function(){return yNJ};
ve.prototype.getExtension=function(M){return _.q(M,_.Nbo)};
ve.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;d.params&&(M.params=d.params);N.ctk&&(M.clientToken=N.ctk)};var Oa=function(M){this.JSC$15880_storeWithEntities=M};
_.v(Oa,hs);Oa.prototype.getApiPaths=function(){return JNL};
Oa.prototype.getExtension=function(M){return _.q(M,_.SH)};
Oa.prototype.JSC$11783_buildRequest=function(M,d,N){N.purchase_price_micros&&(M.productData={pdgData:{purchasePriceMicros:N.purchase_price_micros.toString()}},N.rich_chat_message&&(M.productData.pdgData.richChatMessage=N.rich_chat_message),N.currency_code&&(M.productData.pdgData.currencyCode=N.currency_code));d.transactionParams&&(M.transactionParams=d.transactionParams);d.clientLocationContext&&(M.clientLocationContext=d.clientLocationContext);N.payments_payload&&(M.paymentsPayload=N.payments_payload);
N.funds_guarantee_callback_client_data&&(M.fundsGuaranteeCallbackClientData=N.funds_guarantee_callback_client_data);var R,X;N=(R=this.JSC$15880_storeWithEntities)==null?void 0:(X=R.getState())==null?void 0:X.entities;if(d.entityKeys&&N){R=[];d=_.V(d.entityKeys);for(X=d.next();!X.done;X=d.next()){var A=X.value;X=_.EN(A).entityType;if(A=_.Rz(N,X,A)){var l={};R.push((l[X]=A,l))}}M.entityMutationPayloads=R}};
Oa[CU]=[$_];var jR=function(){};
_.v(jR,hs);jR.prototype.getApiPaths=function(){return cNo};
jR.prototype.getExtension=function(M){return _.q(M,O$e)};
jR.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;N.backend_analytics&&(M.serializedBackendAnalyticsEvent=N.backend_analytics);d.offerParams&&(M.offerParams=d.offerParams)};var sa=function(){};
_.v(sa,hs);sa.prototype.getApiPaths=function(){return K4C};
sa.prototype.getExtension=function(M){return _.q(M,QVi)};
sa.prototype.JSC$11783_buildRequest=function(M,d){d.params&&(M.itemParams=d.params)};var Pe=function(){};
_.v(Pe,hs);Pe.prototype.getApiPaths=function(){return Spz};
Pe.prototype.getExtension=function(M){return _.q(M,_.lpd)};
Pe.prototype.JSC$11783_buildRequest=function(M,d,N){N.resume_time_ms&&(M.resumeTimeMs=N.resume_time_ms);d.pauseParams&&(M.pauseParams=d.pauseParams)};var o9=function(){};
_.v(o9,hs);o9.prototype.getApiPaths=function(){return zm3};
o9.prototype.getExtension=function(M){return _.q(M,_.jhd)};
o9.prototype.JSC$11783_buildRequest=function(M,d,N){N=N===void 0?{}:N;N.c&&(M.redeemCode=N.c);N.rd&&(M.riskData=N.rd);N.ctk&&(M.clientToken=N.ctk)};var re=function(){};
_.v(re,hs);re.prototype.getApiPaths=function(){return bfL};
re.prototype.getExtension=function(M){return _.q(M,_.$lz)};
re.prototype.JSC$11783_buildRequest=function(M,d){d.resumeParams&&(M.resumeParams=d.resumeParams)};var Ki=function(M,d){this.clientName=M;this.defaultExpirationDelayMs=d};
Ki.prototype.put=function(M,d){var N=this,R;return _.B(function(X){R=Object.assign({},d.data);R.key=M;R.clientName=N.clientName;R.expireTimestampMs===void 0&&(R.expireTimestampMs=(Math.round((0,_.Gs)())+N.defaultExpirationDelayMs).toString());return X.return(N.putInternal(M,R))})};
Ki[CU]=[Aq,Pfd];var giJ=function(){Ki.apply(this,arguments);this.JSC$15910_responseStore=new Map};
_.v(giJ,Ki);_.F=giJ.prototype;_.F.get=function(M){var d=this;return _.B(function(N){return N.return(Ep(d,M))})};
_.F.putInternal=function(M,d){var N=this,R,X,A;return _.B(function(l){R=N.defaultExpirationDelayMs;d.expireTimestampMs&&(R=Number(d.expireTimestampMs)-Math.round((0,_.Gs)()),X=_.ZR("mweb_override_response_store_expiration_ms"),X>0&&X<R&&(R=X));A=setTimeout(function(){N.remove(M)},R);
N.JSC$15910_responseStore.set(M,{entryData:d,timer:A});_.Vy(l)})};
_.F.remove=function(M){var d=this;return _.B(function(N){WAb(d,M);_.Vy(N)})};
_.F.removeAll=function(){var M=this;return _.B(function(d){M.JSC$15910_responseStore.forEach(function(N){clearTimeout(N.timer)});
M.JSC$15910_responseStore.clear();_.Vy(d)})};
_.F.has=function(M){return!!this.JSC$15910_responseStore.get(M)};
_.F.getKeys=function(){return this.JSC$15910_responseStore.keys()};
var Ep=function(M,d){if(M=M.JSC$15910_responseStore.get(d))return new _.Zh(M.entryData)},WAb=function(M,d){var N=M.JSC$15910_responseStore.get(d);
N&&(clearTimeout(N.timer),M.JSC$15910_responseStore.delete(d))};var V_i;var B8p=function(M,d,N){Ki.call(this,M,d);this.token=N};
_.v(B8p,Ki);_.F=B8p.prototype;_.F.get=function(M){var d=this,N,R;return _.B(function(X){return X.nextAddress==1?_.D(X,$32(d.token),2):X.nextAddress!=3?(N=X.yieldResult,_.D(X,N.get("ResponseStore",[M,d.clientName]),3)):(R=X.yieldResult)?X.return(new _.Zh(R)):X.return(void 0)})};
_.F.putInternal=function(M,d){var N=this,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,$32(N.token),2);R=X.yieldResult;return _.D(X,R.put("ResponseStore",d),0)})};
_.F.remove=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,$32(d.token),2);N=R.yieldResult;return R.return(N.delete("ResponseStore",[M,d.clientName]))})};
_.F.removeAll=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,$32(M.token),2);d=N.yieldResult;return _.D(N,cQL(d,IDBKeyRange.only(M.clientName)),0)})};
_.F.has=function(){throw Error("Wi");};_.y1=new _.x5("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wj4=function(M){var d;this.stateTagsData=(d=M.responseContext)==null?void 0:d.stateTags},pjP=function(M){var d;
return((d=M.stateTagsData)==null?void 0:d.stateTagsModified)||[]};var mp9;mp9=function(M){this.JSC$15923_responseStore=M};
_.ft=function(M,d,N){if(!_.Q("state_tags_killswitch")){var R=new wj4(d);if(pjP(R).length>0){var X=M.JSC$15923_responseStore.getKeys();X=_.V(X);for(var A=X.next();!A.done;A=X.next()){A=A.value;var l=Ep(M.JSC$15923_responseStore,A);if(l){var k=_.Vr(l);a:{var T=void 0;l=pjP(R);k=((T=(new wj4(k)).stateTagsData)==null?void 0:T.relevantStateTags)||[];T=_.V(k);for(k=T.next();!k.done;k=T.next())if(k=k.value,k.stateTag!=null&&l.includes(k.stateTag)&&k.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){l=
!0;break a}l=!1}l&&WAb(M.JSC$15923_responseStore,A)}}}}var W;R=(W=d.responseContext)==null?void 0:W.maxAgeSeconds;_.Q("web_prefetch_riw_for_next_video")&&!R&&d.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(R=3600);N&&R&&Number(R)>0&&(d=uG(d,R),M.JSC$15923_responseStore.put(N,new _.Zh(d)))};
mp9.prototype.handleResponse=function(M,d){if(!d)throw Error("Xi");var N,R;d=(N=d.config)==null?void 0:(R=N.storeStrategy)==null?void 0:R.storeKey;_.ft(this,M,d)};
mp9[CU]=[_.Y0];_.Z_N=new _.x5("STORE_RESPONSE_PROCESSOR_TOKEN");var hZq=function(M){this.JSC$15926_responseStore=M};
hZq.prototype.handleResponse=function(M,d){if(d.input.match(_.fh(ZVC))){var N;if(M==null?0:(N=M.entries)==null?0:N.length)for(M=_.V(M.entries),d=M.next();!d.done;d=M.next()){N=d.value.command;var R=void 0;d=(R=_.q(N,_.$B))==null?void 0:R.unserializedPrefetchData;if(!N||!d)break;R=(new YA).JSC$11790_getStoreKey(N);var X=_.q(d,vct),A=void 0,l=void 0,k=void 0,T=_.ZR("web_shorts_prefetch_service_ttl_seconds")>0?_.ZR("web_shorts_prefetch_service_ttl_seconds"):Number((k=(A=X)==null?void 0:(l=A.responseContext)==
null?void 0:l.maxAgeSeconds)!=null?k:3600);R&&T>0&&(X=uG(X,T),this.JSC$15926_responseStore.put(R,new _.Zh(X)));N=(new Be).JSC$11790_getStoreKey(N);d=_.q(d,VO3);A=X=R=void 0;l=_.ZR("web_shorts_prefetch_service_ttl_seconds")>0?_.ZR("web_shorts_prefetch_service_ttl_seconds"):Number((A=(R=d)==null?void 0:(X=R.responseContext)==null?void 0:X.maxAgeSeconds)!=null?A:3600);N&&l>0&&(d=uG(d,l),this.JSC$15926_responseStore.put(N,new _.Zh(d)))}}};
hZq[CU]=[_.Y0];var JD=function(){this.scheduler=_.Pa()},QNC;
JD.prototype.pause=function(){throw Error("Yi");};
JD.prototype.resume=function(){throw Error("Yi");};
JD.prototype.queue=function(M){var d=this,N=_.KO(),R=_.gL(this.scheduler,function(){try{var X;if(_.YQ.instance)var A=_.YQ.instance;else{var l=new _.WJ("Error: Unexpected uninitialized CommandHandler.");_.qZ(l);A=void 0}(X=A)==null||X.resolveCommand(M.command);N.resolve()}catch(k){N.reject(k)}});
N.promise.thenCatch(function(X){X instanceof _.JX&&d.scheduler.cancelJob(R)});
return N.promise};
JD.prototype.queueAll=function(M){var d=new Map;M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,d.set(N.id,this.queue(N));return d};var IvY=function(M,d){var N=this;this.taskModel=M;this.onTaskCancelledCallback=d;this.resolver=_.KO();M=M.proto.prefetchConfig;if(!M)throw Error("Zi");if(!M.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(R){R instanceof _.JX&&(qST(N,N.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),N.onTaskCancelledCallback(N.taskModel.id,N.jobId),N.tick("pcc"));
throw R;});
this.timerName=this.taskModel.id;_.ID(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},viq=function(M){switch(M.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},qST=function(M,d){_.qi({prefetchInfo:{cancellationReason:d}},M.timerName)};
IvY.prototype.tick=function(M){_.v1(M,void 0,this.timerName)};var SR=function(){var M=this;this.scheduler=_.Pa();this.maxInflightTasks=_.ZR("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.ZR("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Nkt;this.onTaskCancelled=function(d,N){N&&M.scheduler.cancelJob(N);OZ9(M,d);ce(M,3)}},jN9=function(){SR.instance||(SR.instance=new SR);
return SR.instance};
SR.prototype.pause=function(){this.prefetchCoordinatorState=0};
SR.prototype.resume=function(){ce(this,0)};
SR.prototype.queue=function(M){M=sNP(this,M);ce(this,1);return M};
SR.prototype.queueAll=function(M){var d=new Map;M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,d.set(N.id,sNP(this,N));ce(this,1);return d};
var sNP=function(M,d){var N=M.allPrefetchTasks.get(d.id);if(N)return N.cancellablePromise;try{var R=new IvY(d,M.onTaskCancelled)}catch(A){return _.cl(A)}N=R;N.tick("pcq");var X={prefetchInfo:{taskId:N.taskModel.id,isPrefetch:!0,fetchAction:N.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:N.taskModel.command.clickTrackingParams}};N.taskModel.csn&&(X.clientScreenNonce=N.taskModel.csn);_.qi(X,N.timerName);M.allPrefetchTasks.set(d.id,R);M.drainingHeap.insert(-viq(R),R);return R.cancellablePromise},
ce=function(M,d){M.prefetchCoordinatorState===d&&(M.prefetchCoordinatorState=2,P2J(M))},P2J=function(M){for(var d={};M.prefetchCoordinatorState!==0;d={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(M.inflightPrefetchTasks.size>=M.maxInflightTasks){M.prefetchCoordinatorState=3;break}d.prefetchTask$jscomp$1=M.drainingHeap.remove();if(!d.prefetchTask$jscomp$1){M.prefetchCoordinatorState=1;break}d.taskId$jscomp$3=d.prefetchTask$jscomp$1.taskModel.id;if(M.allPrefetchTasks.has(d.taskId$jscomp$3)){var N=-1;M.coordinatorTimeoutMs>0&&(N=_.gL(M.scheduler,function(R){return function(){zd(M,R.taskId$jscomp$3,Error("aj"))}}(d),M.coordinatorTimeoutMs));
M.inflightPrefetchTasks.set(d.taskId$jscomp$3,N);if(!M.JSC$15942_commandHandler){if(!_.YQ.instance){zd(M,d.taskId$jscomp$3,Error("bj"));continue}M.JSC$15942_commandHandler=_.YQ.instance}a:switch(d.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":N=1;break a;default:N=0}d.prefetchTask$jscomp$1.jobId=M.scheduler.addJob(function(R){return function(){R.prefetchTask$jscomp$1.tick("pcr");try{M.JSC$15942_commandHandler.resolveCommand(R.prefetchTask$jscomp$1.taskModel.command)||
zd(M,R.taskId$jscomp$3,Error("cj"))}catch(X){zd(M,R.taskId$jscomp$3,X)}}}(d),N,0)}}},oir=function(M,d){(d=OZ9(M,d))!=null&&(d.resolver.resolve(),d.tick("pce"));
ce(M,3)},zd=function(M,d,N){(d=OZ9(M,d,N))!=null&&(d.resolver.reject(N),d.tick("pcc"),qST(d,"CANCELLATION_REASON_ERROR"),Math.random()<=_.ZR("prefetch_coordinator_error_logging_sampling_rate")&&(N=new _.WJ("Prefetch Command failed.",d.taskModel.id,N.message),_.qZ(N)));
ce(M,3)},OZ9=function(M,d,N){var R=M.allPrefetchTasks.get(d);
R?((N=M.inflightPrefetchTasks.get(d))&&N!==-1&&M.scheduler.cancelJob(N),M.inflightPrefetchTasks.delete(d),M.allPrefetchTasks.delete(d)):_.vh(new _.WJ("Unexpected missing prefetch task when deleting task.",d,N==null?void 0:N.message));return R};var rLT=function(M,d,N,R,X){this.id=M;this.triggerOn=d;this.cancelOn=N;this.command=R;this.proto=X};
_.Hm.Object.defineProperties(rLT.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var KA$=function(){this.JSC$15947_prefetchCoordinator=jN9();QNC||(QNC=new JD);this.defaultCoordinator=QNC},yLD;
KA$.getInstance=function(){yLD||(yLD=new KA$);return yLD};
KA$.prototype.get=function(M){switch(M){case 0:return this.JSC$15947_prefetchCoordinator;default:return this.defaultCoordinator}};var bl=function(){this.coordinatorSupplier=KA$.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},SSY=function(M){var d=_.Ou()||void 0,N=Object.keys(JLT)[0];
if(N){var R=M.taskIdByTriggerId.get(N);if(R!=null){M.taskIdByTriggerId.delete(N);N=[];R=_.V(R);for(var X=R.next();!X.done;X=R.next())if(X=M.tasks.get(X.value))d!=="UNDEFINED_CSN"&&(X.csn=d),N.push(X);N=D3v(N);d=[];N=_.V(N);for(R=N.next();!R.done;R=N.next()){X=_.V(R.value);R=X.next().value;X=X.next().value;R=M.coordinatorSupplier.get(R).queueAll(X);R=_.V(R);var A=R.next();for(X={};!A.done;X={taskId$jscomp$9:void 0},A=R.next()){var l=_.V(A.value);A=l.next().value;l=l.next().value;X.taskId$jscomp$9=
A;A=l;d.push(X.taskId$jscomp$9);M.queuedPromisesByTask.set(X.taskId$jscomp$9,_.Ie(A,function(k){return function(){cL$(M,k.taskId$jscomp$9)}}(X)))}}}}else _.vh(new _.WJ("Unexpected malformed TriggerEvent."))};
bl.prototype.trigger=function(M,d){var N=this,R=this.tasks.get(M);if(!R||this.queuedPromisesByTask.has(M))return!1;zZ9(this,M,R.triggerOn);d!=="UNDEFINED_CSN"&&(R.csn=d);d=this.coordinatorSupplier.get(R.taskType).queue(R);this.queuedPromisesByTask.set(M,_.Ie(d,function(){cL$(N,M)}));
return!0};
bl.prototype.cancel=function(M){var d=this.queuedPromisesByTask.get(M);if(d)d.cancel();else return cL$(this,M)};
var cL$=function(M,d){M.queuedPromisesByTask.delete(d);var N=M.tasks.get(d);if(!N)return!1;M.tasks.delete(d);zZ9(M,d,N.triggerOn);(N=T8i(N.cancelOn))&&(M=M.taskIdByCancelId.get(N))&&M.delete(d);return!0},zZ9=function(M,d,N){(N=Object.keys(N)[0])&&(M=M.taskIdByTriggerId.get(N))&&M.delete(d)};var JLT={taskRegistered:{}},eR=function(){bl.instance||(bl.instance=new bl);this.JSC$15956_taskManager=bl.instance};
_.v(eR,Qo);
eR.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,O4I);if((R=N)==null||!R.tasks){var A=new _.WJ("RegisterTasksCommand is missing tasks.");_.qZ(A);return X.return()}A=d.JSC$15956_taskManager;for(var l=_.V(N.tasks),k=l.next();!k.done;k=l.next())if(k=k.value,k=k.id&&k.triggerOn&&k.cancelOn&&k.command?new rLT(k.id,k.triggerOn,k.cancelOn,k.command,k):void 0,k){var T=Object.keys(k.triggerOn)[0];if(T){var W=T8i(k.cancelOn);W?(A.tasks.set(k.id,k),A.taskIdByTriggerId.has(T)||A.taskIdByTriggerId.set(T,
new Set),A.taskIdByTriggerId.get(T).add(k.id),A.taskIdByCancelId.has(W)||A.taskIdByCancelId.set(W,new Set),A.taskIdByCancelId.get(W).add(k.id)):_.vh(new _.WJ("Unexpected malformed cancelOn field."))}else _.vh(new _.WJ("Unexpected malformed triggerOn field."))}else _.vh(new _.WJ("Unexpected malformed Task proto."));SSY(d.JSC$15956_taskManager);_.Vy(X)})};var bZT={},eZJ=(bZT.rendered={priority:0,callback:function(){var M={};M.numCpu=navigator.hardwareConcurrency;var d={};d.ramGb=_.Np.navigator.deviceMemory;var N={staticContext:{}};d.ramGb&&gR6(d.ramGb)&&(N.staticContext.memoryTotalKbytes=(d.ramGb*1048576).toString());M.numCpu&&gR6(M.numCpu)&&(N.staticContext.cpuCores=M.numCpu);if(_.Q("web_enable_adaptive_appl_signal")){M={};d=_.sN("rses_dpj");var R=_.sN("rsef_dpj");d&&d>0&&R&&R>0&&(d=Math.ceil(R-d),d>0&&(M.loadLatency=d));M.loadLatency&&gR6(M.loadLatency)&&
(N.appL=M.loadLatency.toString())}_.hQ("applicationStarted",N)}},bZT);var HZY=new _.x5("WINDOW_ON_ERROR"),niJ=new _.x5("ERROR_WEIGHT_MAPS"),iZr=new _.x5("INIT_ERROR");var fvd={},LAP=(fvd.initialized={priority:10,callback:function(M){M.injector.resolve(iZr)()}},fvd);var trC=function(){},G6e=function(){var M=_.cy("meta_logger_impl");
M||(M=new trC,_.fE("meta_logger_impl",M));return M},avP=function(){G6e().csiSubscriptionKey=mrq("meta_logging_csi_event",function(M){var d=M.timerName;
if(M=M.timelineData){_.ID(d,{startTime:M.startTime},d);M.infos&&_.qi(M.infos,d);for(var N=_.V(Object.keys(M.ticks)),R=N.next();!R.done;R=N.next())R=R.value,_.v1(R,M.ticks[R],d)}})};
trC.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&qWr(this.csiSubscriptionKey)};var UpP={},ui9=(UpP.initialized={priority:10,callback:function(){avP()}},UpP);var C2D=function(M,d){this.innertubeClientName=M;this.JSC$15972_prefCookie=d};
C2D.prototype.record=function(){if(_.Q("web_li_record_binary_eval_tick")){var M=_.sN("rsef_dpj");var d=_.sN("rses_dpj");M=M!==void 0&&d!==void 0?Math.round(M-d):void 0;if(M!==void 0&&M>0){d=_.F5(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var N=this.poolSize;if(!(d.valuesSeen>=1E9)){if(d.valuesSample.length<N)d.valuesSample.push(M);else{var R=Math.floor(Math.random()*(d.valuesSeen+1));R<N&&(d.valuesSample[R]=M)}d.valuesSeen+=1}_.X5(this.storagePrefix+"-"+this.innertubeClientName,
d,2592E3);M=d.valuesSample;d=Wri(M);M=M.length<5?void 0:d<400?1:d<1700?2:3;M!==void 0&&(this.JSC$15972_prefCookie.set(this.cookiePrefix+this.innertubeClientName,M),this.JSC$15972_prefCookie.save())}}else _.AK(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15972_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15972_prefCookie.save()};
C2D[CU]=[Aq,zG];var xpT=function(){C2D.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.v(xpT,C2D);var YSb=new _.x5("PAGE_LOAD_TIME_TOKEN");var ZZq=new _.x5("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var He=function(M,d){this.JSC$15993_storeWithEntities=M;this.JSC$15993_commandHandler=d;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
He.prototype.start=function(){this.JSC$15993_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
He.prototype.observeDownloadingEntities=function(){var M=_.VOZ(this.JSC$15993_storeWithEntities.getState().entities).map(function(R){return l6N(R)});
if(M.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var d={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Y2A()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.ue(_.le("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$15993_commandHandler.resolveCommand(d)}this.downloadingEntities=M}else if(this.downloadingEntities.length){var N=AOZ(this.JSC$15993_storeWithEntities.getState().entities).map(function(R){return l6N(R)});
this.downloadingEntities.filter(function(R){return N.includes(R)}).length&&(M={openPopupAction:ZcZ()},this.JSC$15993_commandHandler.resolveCommand(M));
this.downloadingEntities=[]}};
He[CU]=[$_,_.xV];var EiP;_.ni=function(M,d,N,R,X,A,l,k){this.JSC$15996_playerApiPromise=M;this.JSC$15996_commandHandler=d;this.JSC$15996_screenManager=N;this.offlineWebClientEligibility=R;this.JSC$15996_prefStorage=X;this.JSC$15996_actionRouter=A;this.entityTypeMap=l;this.JSC$15996_persistentStorePromiseAccessor=k;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
EiP=function(){var M=_.h().resolve(_.ni),d;_.B(function(N){if(N.nextAddress==1)return M.downloadFailureListenerBound?N.return():_.D(N,M.JSC$15996_playerApiPromise,2);d=N.yieldResult;d.addEventListener("onOfflineOperationFailure",function(R){if(R.failureReason&&R.entityKey&&R.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(R.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var X=_.EN(R.entityKey).entityId;X&&M.JSC$15996_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
X)}else if(_.Q("kevlar_woffle")){X=M.JSC$15996_commandHandler;var A=X.resolveCommand;R=R.failureReason;var l=_.le("TRANSFER_FAILED",void 0,"Download failed");R==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(l=_.le("STORAGE_FULL",void 0,"Storage full"));A.call(X,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ue(l),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
M.downloadFailureListenerBound=!0;_.Vy(N)})};
_.ni.prototype.deleteVideo=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,N.JSC$15996_playerApiPromise,2);R=l.yieldResult;A={offlineLoggingData:{offlineDeleteReason:(X=d)!=null?X:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.D(l,R.queueOfflineAction(M,N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",A),0)})};
_.ni.prototype.pauseVideoDownload=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.JSC$15996_playerApiPromise,2);N=R.yieldResult;N.pauseVideoDownload(M);_.Vy(R)})};
_.ni.prototype.resumeVideoDownload=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.JSC$15996_playerApiPromise,2);N=R.yieldResult;return _.D(R,N.resumeVideoDownload(M),0)})};
_.ni[CU]=[_.aq,_.xV,_.Vs,ZZq,nD,t6,n2V,nr];var MJ$=new _.x5("DOWNLOAD_STATE_STORE_TOKEN");var der=function(M,d){this.JSC$16015_persistentStorePromiseAccessor=M;this.store=d;this.upliftCompletionResolver=new _.MX},XVD=function(){var M=_.h().resolve(N3C),d;
_.B(function(N){switch(N.nextAddress){case 1:if(M.upliftImplPromise)return N.return(M.upliftImplPromise);_.Mv(N,2);M.upliftImplPromise=Rdb(M);return _.D(N,M.upliftImplPromise,4);case 4:M.upliftCompletionResolver.resolve();_.cJ(N,3);break;case 2:throw d=_.Fg(N),M.upliftCompletionResolver.reject(d),d;case 3:return N.return(M.upliftImplPromise)}})},Rdb=function(M){var d,N,R;
return _.B(function(X){switch(X.nextAddress){case 1:return _.KF("LOGGED_IN")?_.D(X,M.JSC$16015_persistentStorePromiseAccessor(),2):X.return();case 2:d=X.yieldResult;if(!d)return _.v1("vdeur"),X.return();_.v1("vdeus");_.Mv(X,3);return _.D(X,FtY(d),5);case 5:N=X.yieldResult;M.store.dispatch(aAS(N));d.observe(function(A){UGN(M.store,A)});
_.cJ(X,4);break;case 3:throw R=_.Fg(X),_.v1("vdeur"),R;case 4:_.v1("vdeuc"),_.Vy(X)}})},FtY=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,ITZ(M),2);d=N.yieldResult;return N.return(d.reduce(function(R,X){if(!X.data||!X.key||!X.entityType)return R;R[X.entityType]||(R[X.entityType]={});R[X.entityType][X.key]=X.data;return R},{}))})};
der[CU]=[nr,_.ql];var N3C;N3C=new _.x5("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.il=new _.x5("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var fi=function(M,d){this.JSC$16018_persistentStorePromiseAccessor=M;this.transportService=d};
fi.prototype.refresh=function(){var M=this,d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.KF("LOGGED_IN")?_.D(A,M.JSC$16018_persistentStorePromiseAccessor(),2):A.return();if(A.nextAddress!=3)return(d=A.yieldResult)?_.D(A,Xbi(d),3):A.return();if((N=A.yieldResult)&&!(Number(N.data.refreshTimestampMs||0)<(0,_.Gs)()))return A.return();R={browseId:"SPaccount_downloads"};X=_.fh(E$);_.Pn(M.transportService,R,X).then(function(l){var k;if(d&&(l==null?void 0:(k=l.responseContext)==null?void 0:
k.maxAgeSeconds)!==0){var T;k=(l==null?void 0:(T=l.responseContext)==null?void 0:T.maxAgeSeconds)||604800;T=String(Math.floor((0,_.Gs)())+k*1E3);d.put("service:downloads_settings:fallback",new _.Zh({innertubeResponse:l,refreshTimestampMs:T}))}});
_.Vy(A)})};
fi[CU]=[_.y1,_.D3];var Li=function(M,d){this.JSC$16022_playerPromise=M;this.store=d;this.started=!1};
Li.prototype.start=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.started?N.return():_.D(N,M.JSC$16022_playerPromise,2);d=N.yieldResult;d.addEventListener("onOrchestrationBecameLeader",M.updateIsLeader.bind(M,!0));d.addEventListener("onOrchestrationLostLeader",M.updateIsLeader.bind(M,!1));if(d.isOrchestrationLeader)M.updateIsLeader(d.isOrchestrationLeader());else{var R=new _.WJ("Function isOrchestrationLeader is undefined",{"player.isReady":d.isReady(),"player.playVideo":d.playVideo?
"defined":"undefined"});_.qZ(R);M.updateIsLeader(!1)}M.started=!0;_.Vy(N)})};
Li.prototype.updateIsLeader=function(M){this.store.dispatch(_.YS({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:M}}))};
Li[CU]=[_.aq,_.ql];var ACi=function(M,d){this.networkStatusManager=M;this.JSC$16025_prefStoragePromise=d;this.redirectsToPreload=["https://youtube.com"]},VJ$=function(){var M=_.h().resolve(ACi),d,N,R,X,A,l;
_.B(function(k){switch(k.nextAddress){case 1:return _.D(k,M.JSC$16025_prefStoragePromise,2);case 2:d=k.yieldResult;if(!(N=d)){k.jumpTo(3);break}return _.D(k,d.get("yt-redirect-prefetch-id"),4);case 4:N=k.yieldResult;case 3:if(N||!M.networkStatusManager.isNetworkAvailable())return k.return();R={cache:"reload",redirect:"manual"};X=_.V(M.redirectsToPreload);A=X.next();case 5:if(A.done){if(!d){k.jumpTo(0);break}return _.D(k,d.set("yt-redirect-prefetch-id",!0,86400),0)}l=A.value;_.Mv(k,8);return _.D(k,
_.Np.fetch(l,R),10);case 10:_.cJ(k,6);break;case 8:_.Fg(k);case 6:A=X.next(),k.jumpTo(5)}})};var tD=function(M){M?(this.container=M,this.containerWasInjected=!0):this.containerWasInjected=!1};
tD.prototype.openDialog=function(M,d,N){var R=this,X;return _.B(function(A){(X=R.container)==null||X.openDialog(M,d,N);_.Vy(A)})};
tD.prototype.closeDialog=function(){var M=this,d;return _.B(function(N){(d=M.container)==null||d.closeDialog();_.Vy(N)})};
tD.prototype.isDialogOpen=function(){var M=this,d,N;return _.B(function(R){return R.return((N=(d=M.container)==null?void 0:d.isDialogOpen())!=null?N:!1)})};
tD[CU]=[_.CF(VyJ)];_.lmi=new _.x5("POPUP_CONTROLLER_TOKEN");var $ei=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
$ei.prototype.registerPanel=function(M,d){if(M){this.panelMap.set(M,d);var N=this.pendingPanelResolvers.get(M);N&&(N.resolve(d),this.pendingPanelResolvers.delete(M))}};
$ei.prototype.getPanel=function(M){var d=this,N;return _.B(function(R){return(N=d.panelMap.get(M))?R.return(N):R.return(B3r(d,M))})};
var B3r=function(M,d){var N,R;return _.B(function(X){if(N=M.pendingPanelResolvers.get(d))return X.return(N.promise);R=new _.MX;M.pendingPanelResolvers.set(d,R);return X.return(R.promise)})},koq=function(M){$ei.call(this);
var d=this;this.popupController=M;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return d.panelMap.size}}};
_.v(koq,$ei);_.F=koq.prototype;_.F.getReloadContinuation=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.getPanel(M),2);N=R.yieldResult;return R.return(N.getReloadContinuation())})};
_.F.showPanel=function(M,d,N,R,X,A,l){var k=this,T,W,w,p;return _.B(function(m){if(m.nextAddress==1){l&&k.updatePanelContinuationDatas.set(M,l);if((T=N)==null?0:(W=T.engagementPanelPopupPresentationConfig)==null?0:W.popupType){w=N.engagementPanelPopupPresentationConfig.popupType;X===void 0&&(X=document.body);var I=m.return,O=k.popupController,y=O.openPopup;a:switch(w){case "PANEL_POPUP_TYPE_DIALOG":var c="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":c="DROPDOWN";break a;default:throw Error("ej`"+
w);}return I.call(m,y.call(O,M,d,c,X))}return _.D(m,k.getPanel(M),2)}p=m.yieldResult;(d||A)&&p.updatePanel(d,!1,R,A);p.showPanel(R);_.Vy(m)})};
_.F.hidePanel=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,d.getPanel(M),2);N=R.yieldResult;N.hidePanel();d.popupController.closePopup(M);_.Vy(R)})};
_.F.isVisible=function(M,d){var N=this,R;return _.B(function(X){if(X.nextAddress==1)return d&&!N.panelMap.has(M)?X.return(!1):_.D(X,N.getPanel(M),2);R=X.yieldResult;return X.return(R.isVisible())})};
_.F.updatePanel=function(M,d,N,R,X,A){N=N===void 0?!1:N;var l=this,k;return _.B(function(T){if(T.nextAddress==1){if(!d&&!X)return T.return();A&&l.updatePanelContinuationDatas.set(M,A);return _.D(T,l.getPanel(M),2)}k=T.yieldResult;k.updatePanel(d,N,R,X);_.Vy(T)})};
_.F.registerPanelContent=function(M,d){M&&this.panelContentMap.set(M,d)};
_.F.getPanelContent=function(M){return this.panelContentMap.get(M)};
_.F.getUpdatePanelContinuationData=function(M){return this.updatePanelContinuationDatas.get(M)};
koq[CU]=[_.lmi];var Gd=function(M,d){this.innertubeTransportService=M;this.JSC$16041_screenManager=d},T3Y=function(M){var d;
return!((d=M.panelLoadingStrategy)==null||!d.requestTemplate)};
Gd.prototype.makeRequest=function(M){var d=this,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!T3Y(d)){X.jumpTo(2);break}_.Mv(X,3);return _.D(X,_.rT(d.innertubeTransportService,M),5);case 5:return N=X.yieldResult,N?X.return(N.content):(_.qZ(Error("fj")),X.return(void 0));case 3:R=_.Fg(X),_.qZ(R);case 2:return X.return(void 0)}})};
Gd.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Gd.prototype.execute=function(M){var d=this,N,R,X,A,l,k,T,W,w,p;return _.B(function(m){if(m.nextAddress==1){N=M;R=N.data;X=N.fallbackVe;A=N.parentVe;l=N.createScreenConfig;k=N.renderFn;T=N.command;d.panelLoadingStrategy=R;var I,O,y=((I=d.panelLoadingStrategy)==null?0:I.screenVe)?(O=d.panelLoadingStrategy)==null?void 0:O.screenVe:X;y&&_.dm(d.JSC$16041_screenManager,y,A,l);return(W=d.getContent())?_.D(m,k(W),2):m.jumpTo(2)}return m.nextAddress!=4?T3Y(d)?_.D(m,d.makeRequest(T),4):m.return():(p=w=m.yieldResult)?
_.D(m,k(p),0):m.return()})};
Gd[CU]=[_.D3,_.Vs];var a9=function(){};
a9.prototype.getContainer=function(){return _.Uu()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
a9.prototype.openSheet=function(M,d){var N=this,R,X,A,l,k,T;return _.B(function(W){switch(W.nextAddress){case 1:return R={stack:[],error:void 0,hasError:!1},_.Mv(W,2,3),X=HU,_.D(W,N.isSheetOpen(),5);case 5:A=W.yieldResult;jlZ(R,JAS(X));if(A&&!_.Q("delay_sheet_open_killswitch")){if(d&&N.currentTarget===d)return(l=N.getContainer())==null||l.closeSheet(),W.return();N.pendingData={data:M,target:d};return W.return()}M.viewModel&&(M={viewModel:M.viewModel});(k=N.getContainer())==null||k.openSheet(M,d);
N.currentTarget=d;case 3:_.du(W);reA(R);_.Xg(W,0);break;case 2:T=_.Fg(W),R.error=T,R.hasError=!0,W.jumpTo(3)}})};
a9.prototype.closeSheet=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,(d=M.getContainer())==null?void 0:d.closeSheet(),2);if(N.nextAddress!=4)return M.currentTarget=void 0,!M.pendingData||_.Q("delay_sheet_open_killswitch")?N.jumpTo(0):_.D(N,M.openSheet(M.pendingData.data,M.pendingData.target),4);M.pendingData=void 0;_.Vy(N)})};
a9.prototype.isSheetOpen=function(){var M=this,d,N;return _.B(function(R){return R.return((N=(d=M.getContainer())==null?void 0:d.isSheetOpen())!=null?N:!1)})};var Ba=window.documentPictureInPicture;var SrA=_.a1(["dark"]),zDj=_.a1(["system-icons"]),bwN=_.a1(["typography"]),eD6=_.a1(["lang"]),Hw6=_.a1(["style"]),Kr6=_.a1(["dir"]),yBq=_.a1(["rounded-container"]),JBZ=_.a1(["style"]),iwA=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Ua=function(M){this.JSC$16053_clientRoot=M;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Ua.prototype.openWindow=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return!_.k_()||d.currentPipWindow?X.return(!1):_.D(X,(N=Ba?Ba:null)==null?void 0:N.requestWindow(M),2);if(X.nextAddress!=3){R=X.yieldResult;if(!R)return X.return(!1);R.addEventListener("pagehide",function(){Deb(d)});
R.addEventListener("resize",d.handlePipWindowResize);d.pipWindowResizeDelay=new _.fH(function(){d.currentPipWindow&&_.ZI(d.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.R8(d.currentPipWindow.innerWidth,d.currentPipWindow.innerHeight)])},R);
nRZ(R);Lrv(R);return _.D(X,rBZ(R),3)}if(!sKL())return X.return(!1);d.currentPipWindow=R;d.JSC$16053_eventForwarder=fTZ(R,d.JSC$16053_clientRoot);d.pipWindowResizeDelay.start();return X.return(!0)})};
Ua.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Deb=function(M){if(M.currentPipWindow){var d,N;(d=Ba?Ba:null)==null||(N=d.window)==null||N.close();M.currentPipWindow.removeEventListener("resize",M.handlePipWindowResize);var R;(R=M.pipWindowResizeDelay)==null||R.dispose();M.pipWindowResizeDelay=void 0;var X;(X=M.JSC$16053_eventForwarder)==null||X.stop();M.JSC$16053_eventForwarder=void 0;d=_.V(M.onCloseCallbacks);for(N=d.next();!N.done;N=d.next())N=N.value,N();M.onCloseCallbacks=[];M.currentPipWindow=null}};
Ua.prototype.getWindow=function(){return this.currentPipWindow};
var gdJ=function(M,d){var N;(N=M.onCloseCallbacks)==null||N.push(d)};
_.Hm.Object.defineProperties(Ua.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ua[CU]=[s9I];_.Wtq=new _.x5("PICTURE_IN_PICTURE_CONTROLLER");var t_i=function(M,d){this.lengthY=this.lengthX=0;this.lengthX=d.x-M.x;this.lengthY=d.y-M.y};var wVP=function(){},c73=function(M,d){var N;
(N=M.headerElement)==null||N.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:d}))};var pV4=function(){};
pV4.prototype.openPopup=function(M,d,N,R){var X=this,A;return _.B(function(l){if(!X.container)return l.return();A={openPopupAction:{popup:d,popupType:N,uniqueId:M}};return l.return(X.container.handleOpenPopupAction(A,R))})};
pV4.prototype.closePopup=function(M){this.container&&this.container.closePopup(M)};var mei=function(){this.openTunnels=new Map},Sxp=function(M,d,N){if(u_Z(N)){N={handleEvent:function(l){d&&!d.closed&&typeof d.postMessage==="function"&&l&&l.origin&&l.source===d&&l.data&&l.data.action==="gcl_setup"&&d.postMessage({action:"gcl_transfer",
gadSource:2},l.origin)}};
for(var R=_.V(M.openTunnels),X=R.next();!X.done;X=R.next()){var A=_.V(X.value);X=A.next().value;A=A.next().value;if(X.closed)try{window.removeEventListener("message",A),M.openTunnels.delete(X)}catch(l){_.qZ(l)}}d&&M.openTunnels.size<15&&(M.openTunnels.set(d,N),window.addEventListener("message",N))}};var hdD=function(){this.clientParams=new Map},fFe=function(M){for(var d=_.V(M.clientParams.keys()),N=d.next();!N.done;N=d.next())N=N.value,N.startsWith("yt-mini-app-share")&&M.clientParams.delete(N)};var QIG=function(M,d){_.DL.call(this);var N=this;this.shortsController=M;this.storeWithShorts=d;M=_.kO(this.storeWithShorts,_.Cqi,function(R){if(R){var X,A=(X=N.shortsController.getRoot())==null?void 0:X.getPlayer(),l;(X=(l=N.shortsController.alternativePlayerContainerElement)==null?void 0:l.getPlayerContainer())&&(A==null||A.appendTo(X))}else{var k;l=(k=N.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer().querySelector("#player");X=N.shortsController.activeIndex;
(k=(A=N.shortsController.getRoot())==null?void 0:A.querySelector('ytd-reel-video-renderer[id="'+X+'"] #player-container'))&&(l==null||l.appendTo(k,void 0,!0))}});
this.addOnDisposeCallback(M)};
_.v(QIG,_.DL);var ul=function(M,d,N,R,X){var A=this;this.storeWithShorts=M;this.ephemeralResponseStore=d;this.store=N;this.innertubeTransportService=R;this.innertubeTransportLoader=X;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.hI(_.$D);this.isShortsPipActive=_.hI(_.BC);this.nextReelVe=_.Tx(56921);this.prevReelVe=_.Tx(56922);this.backButtonVe=_.Tx(22156);this.TEST_ONLY={getActiveModules:function(){return A.activeModules}}},bdz,eCJ,qVP;
ul.prototype.initOrDisposeActiveModules=function(M){M?this.activeModules.push(new QIG(this,this.storeWithShorts)):(_.Gt(this.activeModules),this.activeModules.length=0)};
ul.prototype.getRoot=function(){return this.rootElement};
ul.prototype.setActiveIndex=function(M){this.activeIndex=M};
_.KzI=function(M,d){var N,R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return N=new YA,(R=N.JSC$11790_getStoreKey(d))&&M.ephemeralResponseStore.has(R)?_.D(T,M.ephemeralResponseStore.get(R),7):_.D(T,qVP(M,d),4);case 4:X=T.yieldResult;if(!R){T.jumpTo(3);break}A=uG(X,3600);return _.D(T,M.ephemeralResponseStore.put(R,new _.Zh(A)),3);case 7:X=(l=T.yieldResult)==null?void 0:_.Vr(l);case 3:return X.replacementEndpoint&&(k=_.q(X.replacementEndpoint,_.$B))&&X.sequenceContinuation&&(k.sequenceParams=
X.sequenceContinuation),T.return(X)}})};
bdz=function(M,d){d=(new Z9).JSC$11790_getStoreKey(d);return!!d&&M.ephemeralResponseStore.has(d)};
eCJ=function(M,d,N){var R,X,A,l,k;_.B(function(T){if(T.nextAddress==1){R=new Z9;X=R.JSC$11790_getStoreKey(d);if(!X)return T.return();if(N.reelWatchSequenceResponse)return A=uG(N.reelWatchSequenceResponse,3600),M.ephemeralResponseStore.put(X,new _.Zh(A)),T.jumpTo(0);if(!M.ephemeralResponseStore.has(X))return T.jumpTo(0);k=N;return _.D(T,M.ephemeralResponseStore.get(X),4)}k.reelWatchSequenceResponse=(l=T.yieldResult)==null?void 0:_.Vr(l);_.Vy(T)})};
qVP=function(M,d){var N=N===void 0?{}:N;var R,X,A;return _.B(function(l){switch(l.nextAddress){case 1:if(M.innertubeTransportService){R=M.innertubeTransportService;l.jumpTo(2);break}if(!M.innertubeTransportLoader){_.yD(Error("hj"));l.jumpTo(2);break}return _.D(l,M.innertubeTransportLoader(),4);case 4:R=l.yieldResult;case 2:return _.D(l,(X=R)==null?void 0:_.rT(X,d,N),5);case 5:return A=l.yieldResult,l.return(A)}})};
_.Hm.Object.defineProperties(ul.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ul[CU]=[hCL,_.Y0,$_,_.CF(_.D3),_.CF(ONJ)];_.Im$=new _.x5("STORAGE_MANAGER_TOKEN");var MNp=new Set(["touchmove","scroll"]);var vdb=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Oge;
vdb.prototype.enqueue=function(M,d){d===1?this.currentPersistentToast=M:this.queue.push(M);this.openToast()};
vdb.prototype.openToast=function(){var M;(M=this.currentToast)!=null&&M.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.jI9=new _.x5("TOAST_MANAGER_TOKEN");var sI4;_.PLq=_.SG(function(M){return _.g("basic-content-view-model",{class:_.xj("ytBasicContentViewModelHost",_.Jy(M.className))},_.g(_.kV,{cond:function(){return M.data().headline},
then:function(d){return _.g("div",{class:"ytBasicContentViewModelHeadline"},_.g(_.lG,{text:d}))}}),_.g(_.TN,{each:function(){return M.data().paragraphs||[]},
keyBy:"INDEX"},function(d){return _.g("div",{class:"ytBasicContentViewModelParagraph"},_.g(_.kV,{cond:function(){var N=d();return!!(N.header||N.customHeader||N.headline)},
then:function(){return _.g(sI4,{paragraph:d})}}),_.g(_.kV,{cond:function(){return d().asset||d().text},
then:function(){return _.g("div",{class:"ytBasicContentViewModelParagraphContent"},_.g(_.kV,{cond:function(){return d().asset},
then:function(N){return _.g("div",{class:"ytBasicContentViewModelParagraphAsset"},_.g(_.ho,{data:N},{contentPreviewImageViewModel:_.iK}))}}),_.g(_.kV,{cond:function(){return d().text},
then:function(N){return _.g("div",{class:"ytBasicContentViewModelParagraphText"},_.g(_.lG,{text:N}))}}))}}))}))},"Xd");
sI4=_.SG(function(M){var d=M.paragraph;return _.g(_.GT,null,_.g(_.kV,{cond:function(){return d().headline},
then:function(N){return _.g(_.lG,{text:N,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.g(_.ho,{data:function(){return d().header||d().customHeader}},{sectionHeaderViewModel:function(N){return _.g(_.U6,{data:N.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Yd");var rCG=_.SG(function(M){return _.g("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.g(_.kV,{cond:function(){return M.expanded()},
then:function(){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.g(_.kV,{cond:function(){return M.data().expandedTitleImage},
then:function(d){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.g(_.Jt,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d}))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.g("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.g(_.lG,{text:function(){return M.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.g(_.lG,{text:function(){return M.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.g(_.lG,{text:function(){return M.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.ho,{data:function(){return M.data().infoButton}},{buttonViewModel:_.o0}),_.g(_.ho,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(d){return _.g(_.o0,{data:d.data,
onClick:function(){var N;(N=M.expandedCallback)==null||N.call(M,!1)}})}})))},
else:function(){return _.g(odP,Object.assign({},M))}}))},"Zd"),Ktr=_.SG(function(M){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.g(_.kV,{cond:function(){return M.data().collapsedLabelImage},
then:function(d){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.g(_.Jt,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d,alt:""}))}}),_.g(_.lG,{text:function(){return M.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"$d"),odP=_.SG(function(M){var d=_.dT(function(){var N;
return void((N=M.expandedCallback)==null?void 0:N.call(M,!0))});
return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":d},_.g("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.g(_.kV,{cond:function(){return M.data().collapsedImage},
then:function(N){return _.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.g(_.Jt,{width:16,height:16,data:N,alt:""}))}}),_.g(_.kV,{cond:function(){return M.data().showLeadingCollapsedLabel},
then:function(){return _.g(Ktr,Object.assign({},M))}}),_.g("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.g(_.lG,{text:function(){return M.data().collapsedTitle}}))),_.g("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.g(_.kV,{cond:function(){return!M.data().showLeadingCollapsedLabel},
then:function(){return _.g(Ktr,Object.assign({},M))}}),_.g(_.ho,{data:function(){return M.data().infoButton}},{buttonViewModel:_.o0}),_.g(_.ho,{data:function(){return M.data().expandButton}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
onClick:function(){var R;(R=M.expandedCallback)==null||R.call(M,!0)}})}})))},"ae");var yCY=_.SG(function(M){var d=_.V(_.Rq(function(){return M.data().initiallyExpanded})),N=d.next().value,R=d.next().value,X,A=(X=_.h().resolve(_.CF(_.Pz)))==null?void 0:X(),l=function(){var k=M.data().colorData;
if(k)return A?k==null?void 0:k.darkColorPalette:k==null?void 0:k.lightColorPalette};
return _.g("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Xc({"background-color":function(){var k=l();return(k==null?0:k.section2Color)?_.ml(k.section2Color):""}})},_.g(_.ho,{data:function(){return M.data().header}},{expandableMetadataHeaderViewModel:function(k){return _.g(rCG,{data:k.data,
expanded:function(){return!!N()},
expandedCallback:function(T){R(T)}})}}),_.g(_.kV,{cond:function(){return N()},
then:function(){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.g(_.ho,{data:function(){return M.data().expandedContent}},{horizontalShelfViewModel:function(k){return _.g(_.pm,{data:k.data,
includeMargin:!0,forceNarrowLayout:!0,palette:l})},
videoSummaryContentViewModel:function(k){return _.g(IfJ,{data:k.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(k){return _.g(_.GS,{data:k.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(k){return _.g(_.PLq,{data:k.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.g(_.ho,{data:function(){return M.data().expandedBottomButtons}},{buttonViewModel:function(k){return _.g("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.g(_.o0,{data:k.data}))}}))}}))},"be");var JCY=_.SG(function(M){var d=M.text;var N=M.marqueeSpacing;var R=M.scrollDelay;var X=M.scrollDuration;var A=M.enableMarqueeScroll;M=M.large;var l=_.V(_.d0(!1,void 0,"kfNqfd")),k=l.next().value,T=l.next().value,W=_.V(_.d0(0,void 0,"bYgZbf"));l=W.next().value;var w=W.next().value,p=_.e5();W=_.e5();var m=_.e5(),I=_.h().resolve(_.rk);_.Wg(function(){if(A()){var c=m.value.getBoundingClientRect().width,e=p.value.getBoundingClientRect().width;if(c>e){var t=(I==="ltr"?-1:1)*(c+(N?N():16));Promise.resolve().then(function(){T(!0);
w(t)})}}});
var O={},y={};return _.g("marquee-scroll",{class:_.xj("ytMarqueeScrollHost",(O.ytMarqueeScrollHostLarge=M,O)),el:p},_.g("div",{id:"marquee-scroll-inner-container",class:_.xj("ytMarqueeScrollInnerContainer",(y.ytMarqueeScrollAnimationEnabled=function(){return k()},y)),
el:W,style:_.Xc({gap:N?(0,_.TW)(N):"16px","animation-duration":X?N8V(X):"16s","animation-delay":R?N8V(R):"3s","--marquee-translate":(0,_.TW)(l)})},_.g("span",{el:m,dir:"auto"},_.g(_.lG,{text:d,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.g(_.kV,{cond:k,then:function(){return _.g("span",{"aria-hidden":"true",dir:"auto"},_.g(_.lG,{text:d,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ce");_.cCG=_.SG(function(M){var d=M.data;var N=M.overlayDensity;M=_.dT(function(){d().onTapCommand&&_.vz(d().onTapCommand);return!1});
var R=_.Jo(),X={};return _.g("reel-sound-metadata-view-model",{class:_.xj("ytReelSoundMetadataViewModelHost",(X.ytReelSoundMetadataViewModelHostLarge=function(){return(N==null?void 0:N())===1},X)),
"on:click":M,tabindex:0,role:"button","on:keydown":R},_.g("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.g(_.kV,{cond:function(){return d().musicIcon},
then:function(A){return _.g(_.Jt,{data:A,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.g("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.g(JCY,{text:function(){return d().soundMetadata},
enableMarqueeScroll:function(){return!!d().enableMarqueeScroll},
large:function(){return(N==null?void 0:N())===1}}))))},"de");var SVD,zdi,Ci,nd4,fmr,HgP,Go4,tJG;SVD=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];zdi=_.ZR("wil_icon_max_concurrent_fetches",Infinity);
Ci=function(M,d,N){var R=this;this.iconSet=M;this.appDirection=d;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Np.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.Q("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.Q("wil_icon_network_first");this.renderWhenIdle=_.Q("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.Q("wil_icon_load_immediately");this.isPurging=!1;M=function(){R.cacheStorageAvailable&&(R.cacheStorageAsync=_.Np.caches.open("yt-icons").then(function(A){return R.cacheStorageSync=A}).catch(function(){R.cacheStorageAvailable=!1}))};
N=(N==null?void 0:N())||{};N=_.V(Object.entries(N));for(d=N.next();!d.done;d=N.next()){var X=_.V(d.value);d=X.next().value;X=X.next().value;X=Fo(X);bg$(X);this.iconCache[d]=X.cloneNode(!0)}this.isPurging=edG(this);this.isPurging instanceof Promise?this.isPurging.then(M):M()};
_.$AZ=function(M,d){var N=M.resolveIcon(d);return N?M.renderingMode===1?HgP(M,N,M.renderingMode):(d=M.iconCache[N.url])?(d=d.cloneNode(!0),nd4(M,d),HgP(M,N,M.renderingMode,d)):_.igJ(M,N).then(function(R){var X=R?0:1;nd4(M,R);return HgP(M,N,X,R)}):(_.IR(new _.WJ("Icon not found",{iconShape:d})),function(){})};
nd4=function(M,d){if(d){M.counter+=1;M="_yt"+M.counter;d=[d].concat(_.wu(d.getElementsByTagName("*")));d=_.V(d);for(var N=d.next();!N.done;N=d.next())if(N=N.value,N.tagName==="style"&&N.textContent)N.textContent=fmr(N.textContent,M,!0);else for(var R=_.V(N.attributes),X=R.next();!X.done;X=R.next()){X=X.value;X.name==="id"&&(X.value+=M);["mask","fill","clip-path"].includes(X.name)&&(X.value=fmr(X.value,M));if(X.name==="style"){var A=N.style;try{A.cssText=fmr(A.cssText,M,!0)}catch(w){var l=void 0,k=
void 0,T=void 0,W=void 0;xf({error:((l=w)==null?void 0:(T=(k=l).toString)==null?void 0:T.call(k))||"",el:N.outerHTML,style:!!A,cssText:(W=A)==null?void 0:W.cssText})}}X.name==="xlink:href"&&(X.value=X.value.replace(/#(.*)/,"#$1"+M))}}};
fmr=function(M,d,N){var R=/url\(["']?#(.*?)["']?\)/;(N===void 0?0:N)&&(R=/url\(["']?#(.*?)["']?\)/g);return M.replace(R,"url(#$1"+d+")")};
HgP=function(M,d,N,R){return function(X,A){var l=Object.assign({},{iconColor:"currentcolor",iconWidth:d.size+"px",iconHeight:d.size+"px",iconDisplay:"block"},A);A=_.Vf("DIV");var k=l.iconColor,T=l.iconFilter;l="width: "+l.iconWidth+"; height: "+l.iconHeight+"; display: "+l.iconDisplay+";";T&&(l+=" filter: "+T+";");N===0&&(l+=" fill: "+k+";");N===1&&(T=d.url,l+=" -webkit-mask: url("+T+") no-repeat center / cover; mask: url("+(T+") no-repeat center / cover; background-color: ")+k);d.allowMirroring&&
M.appDirection==="rtl"&&(l+=" transform: scale(-1, 1); transform-origin: center center;");A.setAttribute("style",l);N===0&&R&&A.appendChild(R);X.appendChild(A)}};
_.igJ=function(M,d){var N,R,X;return _.B(function(A){N=function(l){return O0(l)};
R=d.url;if(!LtT(R))throw Error("ij");X=tJG(M,R);return A.return(X.then(function(l){return l.clone().text()}).then(function(l){var k=N(l);
l=d.size;var T=_.Vf("DIV");_.zP(T,k);k=_.l_(T.firstElementChild!==void 0?T.firstElementChild:_.sCL(T.firstChild,!0));l=bg$(k,l);M.iconCache[R]=l.cloneNode(!0);delete M.responsePromises[R];return l}).catch(function(){}))})};
Go4=function(M){var d,N=(d=M.requestAninmationFrameResolver)==null?void 0:d.promise;N||(M.requestAninmationFrameResolver=new _.MX,N=M.requestAninmationFrameResolver.promise,_.Np.requestAnimationFrame(function(){var R;(R=M.requestAninmationFrameResolver)==null||R.resolve();M.requestAninmationFrameResolver=null}));
return N};
tJG=function(M,d){var N,R;return _.B(function(X){if(X.nextAddress==1)return M.waitForAnimationFrame?_.D(X,Go4(M),2):X.jumpTo(2);N=M.responsePromises[d];N||(R=function(){var A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:if(!M.cacheStorageAvailable){A=void 0;T.jumpTo(2);break}if(l=M.cacheStorageSync){T.jumpTo(3);break}return _.D(T,M.cacheStorageAsync,4);case 4:l=T.yieldResult;case 3:A=l;case 2:return k=A,M.isNetworkFirstStrategy?T.return(M.fetchAndUpdateCache(d,k).catch(M.getCacheStorageResponse.bind(M,
d,k))):T.return(M.getCacheStorageResponse(d,k).catch(M.fetchAndUpdateCache.bind(M,d,k)))}})},N=M.renderWhenIdle?new Promise(function(A,l){_.gL(_.IQ,function(){R().then(A).catch(l)},10)}):R(),M.responsePromises[d]=N);
return X.return(N.catch(function(A){delete M.responsePromises[d];xf({error:(A==null?0:A.toString)?A.toString():"",url:d});throw A;}))})};
Ci.prototype.fetchAndUpdateCache=function(M,d){var N=this;return _.B(function(R){return R.return(amq(N,M).then(function(X){Ue9(N,M,X,d);return X}))})};
var amq=function(M,d){var N;return _.B(function(R){if(M.numFetches<zdi)return M.numFetches+=1,R.return(uLe(M,d).finally(function(){--M.numFetches;if(Object.keys(M.queuedResponseResolvers).length){var X=Object.keys(M.queuedResponseResolvers)[0],A=M.queuedResponseResolvers[X];delete M.queuedResponseResolvers[X];A.resolve(amq(M,X))}}));
N=new _.MX;M.queuedResponseResolvers[d]=N;return R.return(N.promise)})},uLe=function(M,d,N){N=N===void 0?2:N;
var R;return _.B(function(X){R={credentials:"same-origin",priority:"low"};return X.return(_.Np.fetch(d,R).then(function(A){return A.ok?A:Promise.reject(Error("jj`"+A.status+"`"+A.statusText))}).catch(function(A){if(N>0)return uLe(M,d,N-1);
throw A;}))})},Ue9=function(M,d,N,R){_.B(function(X){return R?X.return(new Promise(function(A){_.gL(_.IQ,function(){var l,k;
return _.B(function(T){switch(T.nextAddress){case 1:if(!M.isNetworkFirstStrategy){l=void 0;T.jumpTo(2);break}return _.D(T,R.match(d).catch(function(){}),3);
case 3:l=T.yieldResult;case 2:if(k=l){T.jumpTo(4);break}return _.D(T,R.put(d,N.clone()).catch(function(W){xf({error:(W==null?0:W.toString)?W.toString():"",url:d})}),4);
case 4:A(),_.Vy(T)}})},50)})):X.return()})};
Ci.prototype.getCacheStorageResponse=function(M,d){return _.B(function(N){return d?N.return(d.match(M).then(function(R){return R&&R.ok?R:Promise.reject()})):N.return(Promise.reject())})};
var bg$=function(M,d){d===void 0||M.getAttribute("viewBox")||M.setAttribute("viewBox","0 0 "+d+" "+d);M.setAttribute("focusable","false");M.setAttribute("aria-hidden","true");try{M.style.pointerEvents="none",M.style.display="inherit",M.style.width="100%",M.style.height="100%"}catch(X){var N;xf({error:((N=X)==null?0:N.toString)?X.toString():""});try{M.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(A){var R;xf({error:((R=A)==null?0:R.toString)?A.toString():
""})}}return M},LtT=function(M){for(var d=_.V(SVD),N=d.next();!N.done;N=d.next())if(M.startsWith(N.value)&&M.endsWith(".svg"))return!0;
return!1};
Ci.prototype.resolveIcon=function(M){return this.iconSet.resolveIcon(M)};
var xf=function(M){_.vh(new _.WJ("Error in IconManager",M))},edG=function(M){if(_.Q("wil_icons_cache_purge_killswitch"))return!1;
try{var d=_.Np.localStorage}catch(A){return!1}if(!d||!M.cacheStorageAvailable)return!1;var N=function(A){try{var l;(l=d)==null||l.setItem("yt-icons-last-purged",A.toString())}catch(T){var k;xf({error:((k=T)==null?0:k.toString)?T.toString():""})}},R=Number(d.getItem("yt-icons-last-purged"));
if(!R)return R=new Date,R=R.setDate(R.getDate()-Math.floor(Math.random()*90+1)),N(R),!1;if(function(A,l){A=new Date(A);l=new Date(l);return l.getMonth()-A.getMonth()+12*(l.getFullYear()-A.getFullYear())}(R,Date.now())<3)return!1;
try{return _.Np.caches.delete("yt-icons").then(function(A){A&&N(Date.now());return A}).catch(function(){return!1}).finally(function(){M.isPurging=!1})}catch(A){var X;
xf({error:((X=A)==null?0:X.toString)?A.toString():""});return!1}};
Ci[CU]=[$RC,_.rk,_.CF(TOV)];_.Yf=function(M,d){this.iconManager=M;this.iconsToFetch=d};
_.Yf[CU]=[_.xQ,_.CF(kVL)];var CL$=function(M,d,N){this.requestKey=M;this.rzl=d;this.vM5=N;this.pd4=function(){return new XMLHttpRequest};
this.fX2=void 0;this.kpd=[]};
CL$.prototype.getLatestChallengeResponse=function(){return this.vM5};
var IuI=function(M,d,N){var R,X,A,l;return _.B(function(k){if(k.nextAddress==1){_.ID("attestation_challenge_fetch");_.v1("att_fs",void 0,"attestation_challenge_fetch");if(!M.fX2)throw new _.OF(9,"Missing fetcher");return _.D(k,M.fX2(d,N),2)}R=k.yieldResult;A=(X=R)==null?void 0:X.bgChallenge;if(!A)throw new _.OF(15,"Missing field");M.vM5=R;M.kpd.forEach(function(T){T(R)});
l=Vnp(A);_.v1("att_fc",void 0,"attestation_challenge_fetch");WEp("attestation_challenge_fetch");return k.return(l)})},auJ=function(M,d){var N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:N=new MQ(100,3E5,.25,2),R=void 0;case 2:if(!(N.currBackoffCount_<10)){k.jumpTo(4);break}_.Mv(k,5);if(!(N.currBackoffCount_>0)){k.jumpTo(7);break}return _.D(k,dgS(N.getValue()),7);case 7:return _.D(k,xeq(M,d),9);case 9:return X=k.yieldResult,k.return(X);case 5:A=_.Fg(k);A instanceof _.OF?R=A:(l=A instanceof Error?A.message:"Unknown",R=new _.OF(9,l));J_d(N);k.jumpTo(2);break;case 4:if(R)throw R;throw new _.OF(9,"Unknown error");}})},xeq=function(M,
d){d=ktJ(TF3(new BFg,d),M.requestKey);
var N=new _.MX,R=M.pd4();R.open("POST",M.rzl);R.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");R.setRequestHeader("Content-Type","application/json+protobuf");R.onload=function(){if(ehp(R)){var X=qsJ(R.responseText);N.resolve(X)}else N.reject(new _.OF(_.YsZ(d2(R)),R.statusText))};
R.onerror=function(){N.reject(new _.OF(_.YsZ(d2(R)),R.statusText))};
R.send(d.serialize());return N.promise};var Zg4=function(M){this.networkStatusManager=M;this.isDownloaded=FrZ===void 0?function(){return!1}:FrZ;
this.isReady=!1;this.vfP=YVG(this)},YVG=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,Kxr(),2);if(N.nextAddress!=3)return d=N.yieldResult,_.D(N,U9t(d),3);M.pV=N.yieldResult;R8N(M.pV).then(function(){M.isReady=!0});
return N.return(M.pV)})},Edd=function(M,d,N){M.pV?(M=M.pV.vR({oN:N,
evg:!0,qo2:!0}),d.serviceIntegrityDimensions={poToken:M}):_.qZ(Error("kj"))};
Zg4.prototype.processContext=function(M){var d=this;if(!M.input.match(_.fh(unJ)))return _.Hq();var N=M.innerTubeRequest,R=N.videoId;return!R||this.isDownloaded(N)||this.networkStatusManager&&!this.pV&&!this.networkStatusManager.isNetworkAvailable()?_.Hq():this.pV?this.isReady?(Edd(this,N,R),_.Hq()):new eH(R8N(this.pV).then(function(){Edd(d,N,R)})):new eH(this.vfP.then(function(X){return _.B(function(A){if(A.nextAddress==1)return _.D(A,R8N(X),2);
Edd(d,N,R);_.Vy(A)})}))};var Mi$=new _.x5("WEB_PO_CONTEXT_PROCESSOR");var d$G=function(M,d){var N=this;this.vNg=0;var R;this.kDD=(R=d==null?void 0:d.kDD)!=null?R:window;this.networkStatusManagerPromise=d==null?void 0:d.networkStatusManagerPromise;var X;this.requestKey=(X=d==null?void 0:d.requestKey)!=null?X:_.El("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var A;this.drJ=(A=d==null?void 0:d.drJ)!=null?A:function(T){return new yK(T)};
var l;R=(l=d==null?void 0:d.jvV)!=null?l:function(T,W,w){return new CL$(T,W,w)};
this.bgChallenge=Vnp(M.bgChallenge);this.ttlSeconds=laA(uB(M.challenge||""));this.wR=R(this.requestKey,_.Q("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Np.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",M);Na6(this.wR);var k;this.ypB=(k=d==null?void 0:d.ypB)!=null?k:function(T){_.lI(N.kDD.document,"visibilitychange",function(){N.kDD.document.visibilityState===
"visible"&&T()})}},R4$=function(M){if(!M.ri){var d={maxAttempts:5,
eNg:M.ttlSeconds*1E3};Xwr(M.kDD);M.ri=M.drJ({wR:M.wR,zi:{disable:_.Q("html5_web_po_disable_remote_logging"),dN:"aGIf",wGX:JaL("html5_web_po_experiment_ids"),kc6:_.Q("wpo_dis_lfdms")?0:1E3},c3a:d,aFn:M.bgChallenge,jKX:F5L});M.vNg=Date.now();pTL(M.ri,function(){M.vNg=Date.now()});
Ssj(M.ri,function(){return _.B(function(R){return R.return(NqC(M))})});
var N=M.biA.bind(M);M.networkStatusManagerPromise&&M.ttlSeconds>0&&M.networkStatusManagerPromise.then(function(R){R.listen("publicytnetworkstatus-online",N)});
M.ypB(N)}};
d$G.prototype.biA=function(){if(Date.now()>this.vNg+this.ttlSeconds*1E3){var M;(M=this.ri)==null||wTL(M)}};
var NqC=function(M){if(M.iOg)return M.iOg;if(!M.ri)throw Error("lj");M.iOg=new zU({ri:M.ri,wR:M.wR,vQo:!0,onError:F5L});return M.iOg},VNj=function(M,d){M=new d$G(M,d);
R4$(M);NqC(M)};var Z8=function(M,d){this.store=M;this.queue=[];this.supportsFocus=_.Q("web_ephemeral_actions_focus");d==null||d.addEventListener("yt-navigate-start",this.reset.bind(this))};
Z8.prototype.enqueue=function(M){var d=M.command,N=M.durationMs,R=M.elementToFocus;var X=M.label;var A=M.elementToFocus;M.command?X=_.le("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:X,shortcut:_.le("SHIFT_PLUS_ENTER")}):A&&this.supportsFocus&&(M=X+". "+_.le("SHIFT_PLUS_ENTER")+" for more information.",X=_.le("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:X,shortcut:_.le("SHIFT_PLUS_ENTER")},M));N={announcement:X,durationMs:N!=null?N:this.supportsFocus?8E3:void 0};d?N.command=d:R&&this.supportsFocus&&(R.classList.add("ephemeral-action-focusable-element"),
N.selector=R.tagName+".ephemeral-action-focusable-element");this.queue.push(N);XPd(this)};
Z8.prototype.activate=function(M){var d=_.hDv(this.store.getState());if(d){if(d==null?0:d.command)_.Qu(d.command),this.store.dispatch(flz(null));(d==null?0:d.selector)&&this.supportsFocus&&(d=document.querySelector(d.selector),_.Xyr(d));M.preventDefault()}};
var XPd=function(M){if(!_.hDv(M.store.getState())&&M.queue.length){var d=M.queue.shift();d&&(M.previousAnnouncement===d.announcement&&(d.announcement+="\u00a0"),M.store.dispatch(flz(d)),M.previousAnnouncement=d.announcement,M.timeoutId=setTimeout(function(){if(d.selector&&M.supportsFocus){var N;(N=document.querySelector(d.selector))==null||N.classList.remove("ephemeral-action-focusable-element")}M.store.dispatch(flz(null));XPd(M)},d.durationMs))}};
Z8.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(flz(null));this.queue.length=0;this.timeoutId=void 0};
Z8[CU]=[_.ql,_.db];_.Ea=new _.x5("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var FGr=new _.x5("AUTH_SERVICE_TOKEN");var Bap=_.a1(["about:blank"]),$gN;var Adi=new _.x5("API_IFRAME_TOKEN"),Vib=new _.x5("FETCH_FN_TOKEN"),lDr=new _.x5("PARSE_FN_TOKEN"),$$e=new _.x5("WINDOW_REQUEST_TOKEN");var vad;vad=new _.x5("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Bqq=new _.x5("MISC_UI_SHARED_FLAGS_TOKEN");var kbJ=function(){};
kbJ.prototype.getFlag=function(M){if(M.configType!==2)throw Error("mj");return TqP(M)};
var TqP=function(M){switch(M.flagType){case "bool":return _.Q(M.flagName);case "int":return _.Go(_.ZR(M.flagName));case "double":return _.ZR(M.flagName);case "string":return _.El(M.flagName);case "int32_list":return JaL(M.flagName);case "int64_list":return JaL(M.flagName).map(function(d){return _.Go(d)});
case "string_list":return _.MB(M.flagName);default:throw Error("nj");}};var MD=function(M,d,N){d=d===void 0?{}:d;oU.call(this,N===void 0?"uninitialized":N);this.env=M;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];d.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=d.shouldWaitOnAsyncImmediate)};
_.v(MD,oU);MD.prototype.init=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(R,M(d.env),2):(M(d.env),R.jumpTo(2));if(R.nextAddress!=4)return d.jobSet?_.D(R,d.jobSet.completedResolver.promise,4):R.jumpTo(4);N=_.K4();N.parkOrScheduleJob(function(){d.transition("rendering")},10,"ci");
_.Vy(R)})};
MD.prototype.initialRender=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(R,M(d.env),2):(M(d.env),R.jumpTo(2));if(R.nextAddress!=4)return d.jobSet?_.D(R,d.jobSet.completedResolver.promise,4):R.jumpTo(4);N=_.K4();N.parkOrScheduleJob(function(){d.transition("rendered")},10,"cr");
_.Vy(R)})};
MD.prototype.afterRenderImmediate=function(M){var d=this,N;return _.B(function(R){if(R.nextAddress==1)return d.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(R,M(d.env),2):(M(d.env),R.jumpTo(2));if(R.nextAddress!=4)return d.jobSet?_.D(R,d.jobSet.completedResolver.promise,4):R.jumpTo(4);N=_.K4();N.parkOrScheduleJob(function(){d.transition("after-render-deferred")},10,"carml");
_.Vy(R)})};
MD.prototype.afterRenderDeferred=function(M){var d=this;return _.B(function(N){M(d.env);_.Vy(N)})};var D$q={},geY=(D$q.rendered={priority:0,callback:function(M){MFL(M.injector.resolve(Wh))}},D$q);var WGd=!1,h8Z=0,W5v=null,mgi=null;var wPD=new _.x5("NETWORK_SLI_TOKEN");var pP9=function(M,d,N,R){this.networkSli=M;this.fetchFn=d;this.parseFn=N;this.requestFn=R};
pP9.prototype.fetch=function(M,d,N){var R=this,X,A,l;return _.B(function(k){X=m$G(R,M,d);l=(A=R.fetchFn)!=null?A:fetch;return k.return(l(X).then(function(T){return R.handleResponse(T,N)}).catch(function(T){_.vh(T);
if((N==null?0:N.expectJsonStrict)&&T instanceof ZY&&T.errorType===1)return Promise.reject(T)}))})};
var zSd=function(M,d,N,R){var X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return X=m$G(M,d,N),_.Mv(w,2),_.D(w,fetch(X),4);case 4:A=w.yieldResult;_.cJ(w,3);break;case 2:throw _.Fg(w),new ZY(2,"Failed to parse streaming response",X.url);case 3:if(!A.redirected&&!A.ok)throw(l=M.networkSli)==null||l.failure(),new _.WJ("Streaming fetch request not ok",X.url);if(!A.body)throw new _.WJ("No response body in streaming response",X.url);k=A.body.pipeThrough(new TextDecoderStream).getReader();
T=new _.dJ;W={};return w.return(h49(M,k,T,oI2,W,R))}})},m$G=function(M,d,N){if(M.networkSli){var R=_.FO(_.GD(d,"key"))||"/UNKNOWN_PATH";
M.networkSli.start(R)}R=N;_.Q("wug_networking_gzip_request")&&(R=a4q(N));var X;return new ((X=M.requestFn)!=null?X:window.Request)(d,R)},h49=function(M,d,N,R,X,A){var l,k,T,W,w,p,m,I,O;
return _.B(function(y){if(y.nextAddress==1)return _.D(y,d.read(),2);l=y.yieldResult;k=l.value;if(T=l.done)return(W=M.networkSli)==null||W.success(),y.return(X);try{w=N.parse(k)}catch(c){throw new ZY(1,"Failed to parse streaming response",k);}if(w!=null)for(p=_.V(w),m=p.next();!m.done;m=p.next())I=m.value,R(X,I),O=void 0,(O=A)==null||O(X,I);return y.return(h49(M,d,N,R,X,A))})};
pP9.prototype.handleResponse=function(M,d){var N,R=(N=this.parseFn)!=null?N:JSON.parse;N=M.text().then(function(X){if((d==null?0:d.jspbResponseCtor)&&M.ok)return R62(d.jspbResponseCtor,X);X=X.replace(")]}'","");if((d==null?0:d.expectJsonStrict)&&X)try{var A=R(X)}catch(k){throw new ZY(1,"JSON parsing failed after fetch");}var l;return(l=A)!=null?l:R(X)});
M.redirected||M.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),N=N.then(function(X){_.vh(new _.WJ("Error: API fetch failed",M.status,M.url,X));return Object.assign({},X,{errorMetadata:{status:M.status}})}));
return N};
pP9[CU]=[_.CF(wPD),_.CF(Vib),_.CF(lDr),_.CF($$e)];var QC$=new _.x5("NETWORK_MANAGER_TOKEN");var qTG=[1,2,4,8,16,30],ve$=function(M){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=M.maxTimeMs;this.maxFrameCount=M.maxFrameCount===void 0?Math.ceil(60*M.maxTimeMs/1E3):M.maxFrameCount;M=_.V(qTG);for(var d=M.next();!d.done;d=M.next())this.brokenFrameSummarizers.push(new IDY(d.value/60*1E3))},OJe=function(M){var d=M.frameCountInternal>=M.maxFrameCount;
return M.elapsedTimeMs>=M.maxTimeMs||d},jCY=function(M){for(var d=[],N=_.V(M.brokenFrameSummarizers),R=N.next();!R.done;R=N.next())R=R.value,R=R.brokenFrameCount!==0?{severityMs:Math.round(R.targetFrameTimeMs),
eventCount:R.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(R.averageDurationBetweenEventsMs)}:void 0,R&&d.push(R);return{summaries:d,monitoringDurationMs:Math.round(M.elapsedTimeMs)}};
_.Hm.Object.defineProperties(ve$.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 IDY=function(M){this.targetFrameTimeMs=M;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Hm.Object.defineProperties(IDY.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var sCY=function(){};
sCY.prototype.start=function(M,d){var N=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var R=new ve$({maxTimeMs:M});this.monitor=R;this.lastSummaryInternal=void 0;this.metadataToLog=d;return new Promise(function(X){var A=function(l){if(l===void 0)N.stop(),X(void 0);else if(N.monitor!==R)l=Object.assign({},jCY(R),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),X(l);else{var k=N.monitor;if(!OJe(k)){k.frameCountInternal++;if(k.prevTime===void 0)k.startTime=
l;else for(var T=l-k.prevTime,W=_.V(k.brokenFrameSummarizers),w=W.next();!w.done;w=W.next()){w=w.value;var p=w.currTimeMs;w.currTimeMs+=T;T>w.targetFrameTimeMs+2&&(w.brokenFrameCount++,w.timeOfFirstBrokenFrameMs===void 0&&(w.timeOfFirstBrokenFrameMs=p),w.timeOfLastBrokenFrameMs=p)}k.prevTime=l}OJe(N.monitor)?X(N.stop()):_.IQ.addJob(A,5,0)}};
_.IQ.addJob(A,5,0)})};
sCY.prototype.stop=function(M){if(!this.monitor)return this.lastSummaryInternal;var d=Object.assign({},jCY(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(d.monitoringDurationMs){M=M!=null?M:this.metadataToLog;var N={droppedFramesSummary:d,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};M&&(N[M.type]=M.data);_.hQ("manualSmoothnessMeasurement",N)}this.monitor=void 0;this.lastSummaryInternal=d;this.metadataToLog=void 0;return d};_.Prd=new _.x5("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var oeJ;oeJ=function(M){this.JSC$16173_expiringStorage=new pE(M)};
_.rdq=function(M){if(_.Q3v()&&(M=_.Qni(_.Ds()+"::"+M)))return new oeJ(M)};
oeJ.prototype.set=function(M,d,N){N=N!==void 0?Date.now()+N:void 0;this.JSC$16173_expiringStorage.set(M,d,N)};
oeJ.prototype.get=function(M){return this.JSC$16173_expiringStorage.get(M)};
oeJ.prototype.remove=function(M){this.JSC$16173_expiringStorage.remove(M)};var KGJ=new _.x5("SESSION_STORAGE");_.dw=function(){};
_.dw.getInstance=function(){var M=_.cy("ytglobal.storage_");M||(M=new _.dw,_.fE("ytglobal.storage_",M));return M};
_.dw.prototype.estimate=function(){var M,d,N;return _.B(function(R){M=navigator;return((d=M.storage)==null?0:d.estimate)?R.return(M.storage.estimate()):((N=M.webkitTemporaryStorage)==null?0:N.queryUsageAndQuota)?R.return(qQq()):R.return()})};
_.fE("ytglobal.storageClass_",_.dw);var ydb=!1;var Jdb=_.a1(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),cdr=_.a1(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var URV={"/":_.Bn,"/?feature=ytca":_.Bn,"/feed/downloads":_.Uz2};var wz=function(M,d,N){this.JSC$16186_upliftPromise=M;this.store=d;this.JSC$16186_persistentStorePromiseAccessor=N};
wz.prototype.shouldPreferLocalResponse=function(M){return M.browseId==="FEdownloads"||M.browseId==="FEsmart_downloads"&&_.Q("kevlar_modern_downloads_page")?!0:!1};
wz.prototype.localInnertubeResponse=function(M){var d=this;return _.B(function(N){return M.browseId==="FEdownloads"?_.Q("kevlar_modern_downloads_page")?N.return(STq(d)):N.return(z4T(d)):M.browseId==="FEsmart_downloads"&&_.Q("kevlar_modern_downloads_page")?N.return(bJ9(d)):N.return(Promise.reject(Error("pj")))})};
wz.prototype.canProvideFallbackResponse=function(){return!0};
wz.prototype.localFallbackInnertubeResponse=function(M){var d=this,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.D(A,d.JSC$16186_persistentStorePromiseAccessor(),2);case 2:N=A.yieldResult;if(M.browseId!=="SPaccount_downloads"||!N){A.jumpTo(3);break}return _.D(A,Xbi(N),4);case 4:if(R=A.yieldResult)return A.return(_.Vr(R));case 3:return M.browseId==="FEwhat_to_watch"?A.return(e4T(d)):(X=_.Q("web_offline_continuation_automatic_retry")||_.Q("web_offline_continuation_retry_button"))&&
M.continuation?A.return(HJP(d)):A.return(neG(d))}})};
var e4T=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$16186_upliftPromise,2);d=_.W6Z(M.store.getState().entities);return d.length?N.return(iJC(M,d)):N.return(neG(M))})},z4T=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$16186_upliftPromise,2);if(R.nextAddress!=3)return d=fDT([{offlineItemSectionRenderer:{}}]),_.D(R,LGD(M,d),3);N=R.yieldResult;N.onResponseReceivedActions=[Qa("REFRESH_DOWNLOADS")];return R.return(N)})},STq=function(M){var d,N,R,X,A,l,k,T,W,w,p,m,I;
return _.B(function(O){if(O.nextAddress==1)return _.D(O,M.JSC$16186_upliftPromise,2);if(O.nextAddress!=3)return d=M.store.getState(),N=d.entities,R=_.mZ(N),X=_.hT(N),A=_.a1r(d),l=_.GQ6(d),k=_.UsA(d),T=_.hKZ(N),W=_.D4(R),w=_.QQ(N),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.RoA(R,X,T,A,l,W,w,k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},m=_.le("DOWNLOADS",void 0,"Downloads"),_.D(O,tiG(M,p,m),3);I=O.yieldResult;
I.onResponseReceivedActions=[Qa("REFRESH_DOWNLOADS")];return O.return(I)})},bJ9=function(M){var d,N,R,X,A,l,k,T,W;
return _.B(function(w){if(w.nextAddress==1)return _.D(w,M.JSC$16186_upliftPromise,2);if(w.nextAddress!=3)return d=M.store.getState(),N=d.entities,R=_.mZ(N),X=_.D4(R),A=_.QQ(N),l={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Fb6(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},k=_.le("SMART_DOWNLOADS",void 0,"Smart downloads"),T=d6Z(X,A),_.D(w,tiG(M,l,k,T),3);W=w.yieldResult;W.onResponseReceivedActions=[Qa("REFRESH_DOWNLOADS")];
return w.return(W)})},neG=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,Au(M.JSC$16186_upliftPromise,M.store),2);d=R.yieldResult;N=fDT([M_S(d)]);return R.return(LGD(M,N))})},HJP=function(M){var d,N,R,X;
return _.B(function(A){if(A.nextAddress==1)return d={},N=M.store.getState().continuation.continuationCommand,_.gk(d,_.qN,N),_.D(A,Au(M.JSC$16186_upliftPromise,M.store,d,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);R=A.yieldResult;X={};_.gk(X,_.L2d,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:R}}}],targetId:"browse-feedFEwhat_to_watch"});return A.return({responseContext:{},onResponseReceivedActions:[X]})})},fDT=function(M){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:M}}}}]}}},iJC=function(M,d){var N,R;
return _.B(function(X){var A={contents:qo(d)};N=A&&A.contents?A:{};_.Q("kevlar_modern_downloads_page")&&(N=Object.assign({},_.APi(d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:N}}}]}};return X.return(LGD(M,R))})},LGD=function(M,d){var N,R;
return _.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$16186_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return N=X.yieldResult,_.D(X,l5(N),3);R=X.yieldResult;return X.return({responseContext:{},contents:d,topbar:R})})},tiG=function(M,d,N,R){var X,A;
return _.B(function(l){if(l.nextAddress==1)return _.D(l,M.JSC$16186_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3)return X=l.yieldResult,_.D(l,l5(X),3);A=l.yieldResult;var k=l.return;var T=R;T=T===void 0?"":T;T={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:N}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.le("SETTINGS",void 0,"Settings"),accessibilityText:_.le("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:aD("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:T}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:N};
return k.call(l,{responseContext:{},contents:d,topbar:A,header:{pageHeaderRenderer:T}})})};var Gbd=function(){this.moduleRegistry={};this.fetchCount=0};
Gbd.prototype.isFetching=function(){return this.fetchCount>0};
var Ha=function(M,d){M.moduleRegistry[d.toString()]={asyncId:d,isFetching:!1};return M};
Gbd.prototype.JSC$16197_loadModules=function(){for(var M=this,d=new Map,N=[],R=_.V(_.wH.apply(0,arguments)),X=R.next();!X.done;X=R.next()){X=X.value;var A=this.moduleRegistry[X];A?A.resolver?d.set(X,A.resolver):(A.resolver=new _.MX,d.set(X,A.resolver),N.push(A.asyncId),A.isFetching=!0):(A=new _.MX,d.set(X,A),A.resolve(void 0))}N.length&&(this.fetchCount+=1,_.Ie(_.mq.getMultipleAsync.apply(_.mq,_.wu(N)).then(function(l){for(var k=0;k<N.length;k++){var T=l[k],W=M.moduleRegistry[N[k].toString()];W.isFetching=
!1;W.resolver.resolve(T)}}).catch(function(l){for(var k=_.V(N),T=k.next();!T.done;T=k.next()){T=T.value;
var W=M.moduleRegistry[T.toString()];W.resolver=void 0;W.isFetching=!1;d.get(T.toString()).reject(l)}}),function(){--M.fetchCount}));
return Promise.all([].concat(_.wu(d.values())).map(function(l){return l.promise}))};_.nt=new _.x5("MODULE_REGISTRY_TOKEN");var aDi={},U$i=(aDi.rendered={priority:0,callback:function(M){a:{var d=void 0;try{var N;b:{if(_.k1L()){var R=_.hgA(_.Ds()+"::pom");if(R){var X=new VY(R);break b}}X=void 0}var A=(N=X)==null?void 0:N.get("role_text");if(!A)break a;d={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:A}]}}}}}}catch(T){}d&&M.injector.resolve(_.xV).resolveCommand(d)}try{var l=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(l){var k=JSON.parse(l);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
k&&M.injector.resolve(_.xV).resolveCommand(k)}}catch(T){}}},aDi);var uYr,Crb={},x$P=(Crb.initialized={priority:10,callback:function(){uYr=jt()}},Crb.rendering={callback:function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,uYr,2);d=N.yieldResult;if(!d.endpoint)throw Error("rj`"+_.Np.location.href);rz(M,d);_.Vy(N)})}},Crb);var YTi={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.wu(_.Q("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(M){var d=M.stack;if(d.includes("chrome://")||d.includes("chrome-extension://")||M.message.includes("chrome-extension://")||d.includes("moz-extension://")||d.includes("local.adguard.org")||d.includes("auctioneer3.50million.club")||d.includes("youtubedownloader")||d.includes("youtube_home_page")||d.includes("is_youtube_video_no_longer_available")||
d.includes("switchScreenSizeHack")||d.includes("yt_main_big_banner.js")||d.includes("YouTubeCenter.js")||d.includes("/mytube.js")||d.includes("JSON.parseWrapper")||d.includes("/inj_js/common.js")||d.includes("firebug-lite")||d.includes(".repl.co/")||d.includes("linkfix")||d.includes("playAfterAd")||M.message.includes("Access is denied for this document")&&d.includes("<anonymous>")||M.fileName==="user-script"||M.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
d.includes("<anonymous>"))return!0;if(d.includes("https://www.youtube.com"))return!1;M=d.split("\n");if(!M.length)return!1;if(M.length<=3&&d.includes("s.onloadeddata"))return!0;d=0;for(var N=_.V(M),R=N.next();!R.done;R=N.next())R=R.value,(R.includes("https://")||R.includes("http://"))&&d++;return d/M.length>.95},
weight:0},{callback:function(M){return M.message==="Unknown Error"&&M.name.indexOf("NS_")===0},
weight:100},{callback:function(M){if(!_.lb)return!1;var d=M.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||M.message.includes("available to complete this operation"),N=M.stack.includes("webcomponents")&&M.message==="Object doesn't support this action";M=M.message.includes("object that does not implement interface Element");return d||N||M},
weight:0},{callback:function(M){return M.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(M){return M.message==="Operation is not supported"&&(M.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(M){return M.stack.includes("eval code (eval (code:1:1)")||M.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(M){return M.message.includes("Permission denied")&&M.stack.includes("this.domHandler")?!0:M.name.includes("TypeError")&&M.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(M){if(!M.stack)return!1;var d=M.stack.trim().split("\n");d.length&&d[0].endsWith("Error: "+M.message)&&d.shift();d.length&&d[d.length-1].includes("at window.onerror (")&&d.pop();if(!d.length)return!0;if(M.message==="Script error.")return d[0].includes("www.youtube.com")||d.length>=2&&d[0].startsWith("at new")&&d[1].startsWith("at window.onerror");if(M.message==="Unexpected token")return!0;M=_.V(d);for(d=M.next();!d.done;d=M.next())if(d=d.value,!(d.includes("<anonymous>")||
d.startsWith("load@")||d.startsWith("global code@")||d.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(M){return M.message==="Cannot read property 'experiments'"&&M.stack.includes("/s/player/")},
weight:500},{callback:function(M){return M.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(M){return M.stack.includes("/embed.js")?(M.params&&M.params&&(M.params.name="56"),!0):!1},
weight:1}]};var ZJ$={},Eed=(ZJ$.initialized={priority:10,callback:function(M){M.injector.addProvider({provide:s9I,useValue:M.root});M.injector.addProvider({provide:HZY,useValue:QAr});M.injector.addProvider({provide:niJ,useValue:YTi});var d={};M.injector.addProvider((d.provide=iZr,d.useFactory=function(N,R){return function(){m3S(N,R)}},d[CU]=[HZY,
niJ],d));M.injector.addProvider({provide:Rm,useClass:Rm})}},ZJ$);var MvG={},d9J=(MvG.initialized={priority:3,callback:function(){var M;if(M=TB2()){M=M.replace("/",".");var d=_.kS();d.set("tz",M);d.save();M=!0}else M=!1;M||(M=_.kS(),M.set("utco",-Math.floor((new Date).getTimezoneOffset())),M.save())}},MvG);var Nsb={},R6r=(Nsb.initialized={priority:10,callback:function(M){M.injector.resolve(Rm).start();M=_.oj();var d=_.KF("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.KF("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.KF("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.KF("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.D7(_.i2i(),{mainAppWeb:Object.assign({},M,{pageType:d})});_.D7(LkN(),{mainAppWeb:Object.assign({},M,{pageType:d})});
_.D7(tsZ(),{mainAppWeb:M});_.D7(GUv(),{mainAppWeb:M});TLV(function(){_.gz(tsZ(),"FAILURE");_.gz(GUv(),"FAILURE")});
SQZ();z8i();d1i()}},Nsb);var XxJ={},F1T=(XxJ.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.v1("dl"),_.K4().processSignal("pcl");else{var M=function(){_.v1("dl");_.K4().processSignal("pcl");window.removeEventListener("load",M)};
window.addEventListener("load",M)}}},XxJ);var Aj4={},VvJ=(Aj4.rendering={priority:0,callback:function(){var M=_.K4();M.parkOrScheduleJob(function(){M.processSignal("eocs")},10,"eor",5E3)}},Aj4);var lGT=function(){};
_.v(lGT,Qo);
lGT.prototype.resolveCommand=function(M,d){var N,R,X,A,l,k,T,W;return _.B(function(w){X=(N=_.q(M,_.O7m))==null?void 0:(R=N.dialog)==null?void 0:R.commentReplyDialogRenderer;if(!X)throw new _.WJ("No dialog in createCommentReplyDialogEndpoint");l=(A=d.form)==null?void 0:A.event;if(!l)throw new _.WJ("Event not passed in when resolving command");k=_.V(l.composedPath());for(T=k.next();!T.done;T=k.next())if(W=T.value,W.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||W.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return W.showReplyDialog(X),w.return();
_.Vy(w)})};var ND=function(M){this.pageRequestService=M;this.JSC$16212_prefetchCoordinator=jN9()};
_.v(ND,Qo);ND.prototype.resolveCommand=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){N=_.q(M,X0g);if((R=N)==null||!R.taskId)throw Error("sj");X=N.taskId;_.Mv(l,2);return _.D(l,_.Std(d.pageRequestService,M,{},"").then(function(k){if(!k)throw Error("tj");},function(k){throw Error("uj`"+k);
}),4)}if(l.nextAddress!=2)return oir(d.JSC$16212_prefetchCoordinator,X),_.cJ(l,0);
A=_.Fg(l);zd(d.JSC$16212_prefetchCoordinator,X,A);_.Vy(l)})};
ND[CU]=[Oe];var RE=function(M){this.innertubeTransportService=M};
_.v(RE,Qo);RE.prototype.resolveCommand=function(M){var d=this,N,R;return _.B(function(X){N=_.q(M,Abt);if(N.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||N.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")R=N.boolValue?2:1,_.GQ.getInstance().setState(R,!0,!0);return _.D(X,_.rT(d.innertubeTransportService,M),0)})};
RE[CU]=[_.D3];var Xk={},$99=(Xk.addToPlaylistEndpoint=GR(lH),Xk.addToToastAction=GR(VB),Xk.adsControlFlowOpportunityReceivedCommand=GR(tG),Xk.captionLanguageSelectActionCommand=GR(Is),Xk.captionPickerEndpoint=GR(v8),Xk.changeMiniAppPlayStateCommand=GR($L),Xk.changeTimelyActionVisibilityCommand=GR(Ax),Xk.channelCreationFormEndpoint=GR(NA),Xk.clearLocationCommand=GR(Vl),Xk.clearUrlParamCommand=GR(B8),Xk.copyLinkCommand=GR(os),Xk.copyTextEndpoint=GR(Ug),Xk.createCommentReplyDialogEndpoint=MPS(lGT),Xk.createPlaylistServiceEndpoint=
GR(rE),Xk.dismissDialogEndpoint=GR(TG),Xk.entityUpdateCommand=GR(Cr),Xk.feedbackEndpoint=GR(ZP),Xk.getAnswerCommand=GR(SiL),Xk.getPaymentsClientTokenCommand=GR(BR),Xk.getTranscriptEndpoint=GR(lN),Xk.googlePaymentBillingCommand=GR(kI),Xk.googlePaymentPurchaseManagerCommand=GR(T0),Xk.hideEngagementPanelEndpoint=GR(Di),Xk.insertRichSectionCommand=GR(Xl),Xk.listMutationCommand=GR(Fl),Xk.logGtmCommand=GR(Rs),Xk.notifyDropdownOptionSelectedCommand=GR(kL),Xk.openAdAllowlistInstructionCommand=GR(_.Gg),Xk.openOnePickAddVideoModalCommand=
GR(KD),Xk.persistSubscriptionsDisplayPreferencesCommand=GR(bH),Xk.pingingEndpoint=GR(a5),Xk.playlistEditEndpoint=GR(Jq),Xk.playlistVotingRefreshPopupCommand=GR(c8),Xk.refreshPanelEndpoint=GR(gE),Xk.saveImageToDeviceEndpoint=GR(uZ),Xk.scrollToSectionEndpoint=MPS(zsm),Xk.seekToVideoTimestampCommand=GR(OU),Xk.selectCountryCommand=GR(ee),Xk.setCookieCommand=GR(H8),Xk.setLocalStorageCommand=GR(dM),Xk.setPrefStorageEntryCommand=GR(iH),Xk.setSettingEndpoint=GR(RE),Xk.sfvAudioItemPlaybackCommand=GR(je),Xk.shareImageCommand=
GR(fD),Xk.sharingProviderDataCommand=GR(LD),Xk.showCaptionLanguageSelectActionCommand=GR(sU),Xk.showDialogCommand=GR(pD),Xk.showEngagementPanelEndpoint=GR(mR),Xk.showSheetCommand=GR(hq),Xk.showTransientPlayerScrimOverlayCommand=GR(P8),Xk.submitFormWithValidationFlowCommand=GR(dE),Xk.talkToRecsDeselectCommand=GR(N_),Xk.talkToRecsNextCommand=GR(Rp),Xk.talkToRecsSelectCommand=GR(Xv),Xk.talkToRecsUpdateTextCommand=GR(Fv),Xk.toggleEngagementPanelCommand=GR(Ql),Xk.undoFeedbackEndpoint=GR(MA),Xk.updateEngagementPanelContentCommand=
GR(qA),Xk.updateUrlParamCommand=GR($I),Xk.verifyCommand=GR(NA),Xk.webNativeShareCommand=GR(tq),Xk.webSubmitFormCommand=GR(Se),Xk.ACK_PLAYABLES_3P_DATA_CONSENT=GR(GG),Xk.CANCEL_NAVIGATION=GR(as),Xk.COPY_SHARE_URL=GR(UU),Xk.MINI_APP_EXIT_DIALOG_SEEN=GR(CD),Xk.MINI_APP_OPEN_URL=GR(uH),Xk.REQUEST_MINI_APP_FULLSCREEN=GR(xL),Xk.RESUME_NAVIGATION=GR(YL),Xk.SHARE_PLAYABLE_WITH_HIGH_SCORE=GR(Zi),Xk.TELL_US_WHY=GR(Eg),Xk);
_.Q("web_enable_prefetching_videos_on_home")&&($99.prefetchWatchCommand=GR(ND),$99.registerTasksCommand=GR(eR));_.Q("enable_share_panel_navigation_logging_fix_on_web")&&($99.shareEntityServiceEndpoint=GR(W8));var YpV=Object.assign({},$99);var BsJ={},khG=(BsJ.initialized={priority:10,callback:ipZ},BsJ);var TsJ={},D9T=(TsJ.initialized={callback:function(M){var d={},N={};Qa2().install((d.document_disposed={callback:function(){_.Q("finalize_all_timelines")?w3p():Qh();wwA("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.yvA();var R=M.injector.resolve(Rm);R.intervalId!==void 0&&(R.intervalId&&_.IQ.cancelJob(R.intervalId),R.intervalId=void 0,--R.currentPartitionIndex,R=gfV(R),R>0&&efC({mainAppWeb:_.oj(),survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));oHV(zQ);b8!=null&&
b8.flush();Ch&&Ch.snapshotAndFlush()}},d),(N.flush_logs={callback:function(){_.Qc()}},N))}},TsJ);var gZq={},W1d=(gZq.rendered={priority:0,callback:function(){var M=new NxL;M.increment("STARTED");if(_.rK("LOGGED_IN")&&_.rK("SERVER_VERSION")!=="test"&&_.rK("SERVER_VERSION")!=="dev"&&!LtV()&&!fmL()){M.increment("EXECUTING");var d=document.createElement("iframe");d.style.display="none";_.h62(d,2,_.gH("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.rK("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(d);M.increment("DONE")}}},gZq);var wxP={},px$=(wxP.rendered={callback:function(){jN9().resume()}},wxP);var m9r={acknowledgeChannelTouStrikeCommand:Iq(fB),addToPlaylistServiceEndpoint:Iq(aa),addToPlaylistEndpoint:Iq(aa),addUpcomingEventReminderEndpoint:Iq(Ra),browseEndpoint:Iq(VrG),channelCreationFormEndpoint:Iq(Su),channelCreationServiceEndpoint:Iq(z0),claimLegacyYoutubeChannelEndpoint:Iq(q_),clearSearchHistoryEndpoint:Iq(CB),clearWatchHistoryEndpoint:Iq(xI),commerceActionCommand:vi(pi),createBackstagePostEndpoint:Iq(WR),createBroadcastCommand:Iq(Xu),createCommentEndpoint:Iq(KB),createCommentReplyEndpoint:Iq(rM),
createLiveChatPollEndpoint:Iq(Fu),createPlaylistServiceEndpoint:Iq(Ux),crossAccountChannelTransferEndpoint:Iq(EB),deleteLiveChatMessageCommand:Iq(Av),deletePlaylistEndpoint:Iq(u4),deleteVideoEndpoint:Iq($f),dismissalEndpoint:Iq(LB),feedbackEndpoint:Iq(tx),flagEndpoint:Iq(Mt),getAccountSwitcherEndpoint:Iq(ZC),verifyCommand:Iq(gM),getAccountsListInnertubeEndpoint:Iq(dN),getCommentsFromInboxCommand:Iq(oa),getDownloadActionCommand:Iq(zw),getFlowCommand:vi(uN),getKidsBlocklistPickerCommand:Iq(de),getNotificationMenuEndpoint:Iq(BZY),
getPaymentInstrumentsParamsCommand:Iq(ve),getPaymentsClientTokenCommand:vi(pi),getPdgBuyFlowCommand:Iq(tv),getReportFormEndpoint:Iq(Nt),getSearchInVideoCommand:Iq(F9),getAnswerCommand:Iq(X9),getSurveyCommand:Iq(ll),getTranscriptEndpoint:Iq(Td),getPostVideoPreviewEndpoint:Iq(pB),decorateMessageEndpoint:Iq(wM),likeEndpoint:Iq(bN),liveChatActionEndpoint:Iq(pP),liveChatEndpoint:Iq(wN),liveChatItemContextMenuEndpoint:Iq(VU),liveChatPurchaseMessageEndpoint:Iq(mB),liveChatReplayEndpoint:Iq(W4),manageLiveChatUserEndpoint:Iq(QU),
metadataUpdateCommand:Iq(sx),moderateLiveChatEndpoint:Iq(qY),modifyChannelNotificationPreferenceEndpoint:Iq(Jv),notificationOptOutEndpoint:Iq(c4),openSuperStickerBuyFlowCommand:Iq(hv),performCommentActionEndpoint:Iq(sB),playlistEditEndpoint:Iq(xA),playlistEditorEndpoint:Iq(CP),profileCardCommand:Iq(NY),recordNotificationInteractionsEndpoint:Iq(So),reelWatchEndpoint:Iq(YA),refreshPanelEndpoint:Iq(eo),removeUpcomingEventReminderEndpoint:Iq(Ia),resolveLocationCommand:Iq(jo),revealBusinessEmailCommand:Iq(Ip),
searchEndpoint:Iq(_.k6T),sendLiveChatMessageEndpoint:Iq(v4),sendLiveChatVoteEndpoint:Iq(Ox),setSettingEndpoint:Iq(eu),shareEntityServiceEndpoint:vi(iN),sharingProviderDataCommand:Iq(V1),showEngagementPanelEndpoint:Iq(H4),showMoreDrawerCommand:Iq(i4),showSheetCommand:Iq(fP),showDialogCommand:Iq(nP),subscribeEndpoint:Iq(HR),transcriptSubmitCaptionCorrectionCommand:Iq(kf),undoFeedbackEndpoint:Iq(ap),unsubscribeEndpoint:Iq(nB),updateBackstagePostEndpoint:Iq(hx),updateCommentEndpoint:Iq(Jx),updateCommentReplyEndpoint:Iq(yB),
updateCommentsSettingsEndpoint:Iq(cR),updateCreatorChannelInnertubeCommand:Iq(OB),updateKidsBlacklistEndpoint:Iq(R9),updateEngagementPanelContentCommand:Iq(LP),updatePdgFeatureEnablementCommand:Iq(Gw),updatedMetadataEndpoint:Iq(P4),validateChannelHandleCommand:Iq(ju),updateChannelPageSettingsEndpoint:Iq(vR),verifyAgeEndpoint:Iq(UB),watchEndpoint:vi(Be),whitelistEditEndpoint:Iq(we),ypcCancelRecurrenceEndpoint:Iq(mm),ypcCompleteTransactionEndpoint:Iq(hD),ypcFixInstrumentEndpoint:Iq(qt),ypcGetCartEndpoint:Iq(Q1),
ypcGetOffersEndpoint:Iq(I9),ypcHandleTransactionEndpoint:vi(Oa),ypcLogWalletAnalyticDataEndpoint:Iq(jR),ypcOffersEndpoint:Iq(sa),ypcPauseSubscriptionCommand:Iq(Pe),ypcRedeemCodeEndpoint:Iq(o9),ypcResumeSubscriptionCommand:Iq(re),ypcUpdateFopEndpoint:Iq(qt)},Fk={},h6r=(Fk.GET_ACCOUNT_MENU=Iq(MY),Fk.GET_NOTIFICATIONS_MENU=Iq($pr),Fk.GET_NOTIFICATIONS_INBOX=Iq(rN),Fk.GET_UNSEEN_NOTIFICATION_COUNT=Iq(yU),Fk.GET_USER_MENTION_SUGGESTIONS=Iq(mw),Fk.LOAD_GUIDE=Iq(lvT),Fk.SUBMIT_FEEDBACK=Iq(G0),Fk),AH={},
QGP=(AH.CONTINUATION_REQUEST_TYPE_BROWSE=Iq(QB),AH.CONTINUATION_REQUEST_TYPE_SEARCH=Iq(AD),AH.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Iq(ge),AH.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Iq(YI),AH.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Iq(op),AH.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Iq(PR),AH.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Iq(Ex),AH.CONTINUATION_REQUEST_TYPE_GET_PANEL=Iq(b4),AH),qAJ={player:vi(Be),watchNext:Iq(D8)},IGT={player:vi(Be),reelItemWatch:Iq(YA),reelWatchSequence:Iq(Z9)},
vZ4={watchEndpoint:vi(We)},OKJ={commandEndpointMap:m9r,signalEndpointMap:h6r,continuationEndpointMap:QGP,watchEndpointMap:qAJ,reelWatchEndpointMap:IGT,streamingEndpointMap:vZ4};var jGP,sGd,POJ,oZY={disableAllTransitions:(sGd=(jGP=window).matchMedia)==null?void 0:(POJ=sGd.call(jGP,"(prefers-reduced-motion: reduce)"))==null?void 0:POJ.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var rj9=new _.x5("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.K1i=new _.x5("VIEW_TRANSITION_MANAGER_TOKEN");var yj9=function(M){this.config=M;this.transitionTasksMap=new Map;M=_.V(M.transitionConfigs);for(var d=M.next();!d.done;d=M.next())d=_.V(d.value).next().value,this.transitionTasksMap.set(d,[])};
yj9[CU]=[rj9];var fwq={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};var tNq=["videoPrimaryInfoRenderer","title"],GCi=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Jje;Jje=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.cjr=_.SG(function(M){M=_.cu(M,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var d=M.data,N=M.playlistData,R=M.expanded,X=M.onExpandClick,A=M.isReadyToResume,l=function(){var w;return!((w=N())==null||!w.contents)},k=function(){var w=N();
return w&&w.totalVideos&&w.currentIndex!==void 0?w.currentIndex+1+" / "+w.totalVideos:""};
M=_.dT(function(){_.V8(_.h().resolve(_.et))});
var T=_.dT(function(){l()&&X&&X()}),W={};
return _.g("ytd-miniplayer-info-bar",{class:_.xj("ytdMiniplayerInfoBarHost",(W.ytdMiniplayerInfoBarHasPlaylistData=l,W)),"on:click":T},_.g("div",{class:"ytdMiniplayerInfoBarContent"},_.g("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":M},_.g(_.lG,{text:function(){var w=d();var p=N();if(p==null?0:p.contents){var m;w=(m=_.WMj(p))==null?void 0:m.title}else w=w==null?void 0:w.miniplayerTitle;return Ugi(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.g("h1",null,_.g(_.lG,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var w=d();var p=N();w=A()?{simpleText:_.le("CONTINUE_WATCHING",void 0,"Continue watching")}:(p==null?0:p.contents)?p.titleText:w==null?void 0:w.miniplayerSubtitle;return Ugi(w)},
noEndpoints:!0,ellipsisTruncate:!0})),_.g(_.kV,{cond:function(){return!!k()&&!A()},
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.g("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.g("span",null,k))}}),_.g(_.kV,{cond:A,
then:function(){return _.g(cHz,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Jje})}}))),_.g(_.kV,{cond:l,
then:function(){return _.g("div",{class:"ytdMiniplayerInfoBarExpand"},_.g(CX,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(w){X&&(X(),w.stopPropagation())}}},
iconName:function(){return R()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ee");var SAD;SAD=_.SG(function(M){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.g(CX,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:M.onTap}},
iconName:"yt-icons:close"}))},"fe");
_.z6T=_.SG(function(M){M=_.cu(M,{playabilityStatus:void 0,isDisabled:!1});var d=M.size,N=M.playabilityStatus,R=M.isDisabled,X=_.e5();M=_.V(_.d0(void 0,void 0,"bJr0Se"));var A=M.next().value,l=M.next().value;M=_.hI(_.BC);var k=!1,T=function(){return d().height<=0};
_.Wg(function(){var m=d(),I=T(),O=A();O&&!I&&O.setInternalSize(m.width,m.height)});
_.QD(function(){var m,I,O;return _.B(function(y){if(y.nextAddress==1){m=_.h().resolve(_.et);I=m.getPlayerElement();if(!m.isMiniplayerActive()||!I||!X.value)return y.return();I.appendTo(X.value);return _.D(y,I.getPlayerPromise(),2)}O=y.yieldResult;O.setSizeStyle(!1,!0);l(O);_.Vy(y)})});
_.mF(function(){W()});
_.Wg(function(){var m=A();if(m)if(R()){var I=m.getPlayerState();(k=I===-1||I===1||I===3)&&m.pauseVideo()}else W()});
var W=function(){if(k){k=!1;var m;(m=A())==null||m.playVideo()}},w=_.dT(function(){_.V8(_.h().resolve(_.et))}),p={};
return _.g("ytd-miniplayer-player-container",{class:_.xj("ytdMiniplayerPlayerContainerHost",(p.ytdMiniplayerPlayerContainerHidden=T,p.ytdMiniplayerPlayerContainerHostShortsPip=M,p)),style:_.Xc({width:function(){return d().width+"px"},
height:function(){return d().height+"px"}})},_.g("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:X}),_.g(_.kV,{cond:function(){return!!N()&&!_.U3Z(N())},
then:function(){return _.g(rZL,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var m;return((m=N())==null?void 0:m.errorScreen)||null},
status:function(){var m;return((m=N())==null?void 0:m.status)||null}})}}),_.g(_.kV,{cond:R,
then:function(){return _.g("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":w},_.g(SAD,{onTap:function(){_.h().resolve(_.et).close()}}))}}))},"ge");_.bKP=_.SG(function(M){var d=M.toastData;var N=_.e5();M=_.V(_.Rq(function(){return!!d()}));
var R=M.next().value,X=M.next().value;M=_.V(_.d0(!1,void 0,"xkrBze"));var A=M.next().value,l=M.next().value,k=function(){var w;return _.HD((w=d())==null?void 0:w.data.title)};
_.IJ(function(){_.b0.requestAvailability();d()&&X(!1)});
var T,W;_.Wg(function(){R()&&(_.YP(N.value,"iron-announce",{text:d().label+" "+k()}),T&&_.IQ.cancelJob(T),T=_.IQ.addLowPriorityJob(function(){l(!0)},2500))});
_.Wg(function(){A()&&(W&&_.IQ.cancelJob(W),W=_.IQ.addLowPriorityJob(function(){X(!1);l(!1)},300))});
M={};return _.g("ytd-miniplayer-toast",{el:N,class:_.xj("ytdMiniplayerToastHost",(M.ytdMiniplayerToastOpening=function(){return R()},M.ytdMiniplayerToastClosing=function(){return A()},M))},_.g(_.kV,{cond:function(){var w;
return(w=d())==null?void 0:w.data},
then:function(w){return _.g(Cpd,{className:"ytdMiniplayerToastThumbnail",data:w,width:78})}}),_.g("div",{class:"ytdMiniplayerToastInfo"},_.g("div",{class:"ytdMiniplayerToastLabel"},function(){var w;
return(w=d())==null?void 0:w.label}),_.g("div",{class:"ytdMiniplayerToastTitle"},k)))},"he");var RLZ;var VfL=new Set,AUi=null;var $CL=null;var HKd=_.SG(function(M){var d=M.progressState;var N=M.multiMarkersPlayerBarRenderer;var R=M.progressBarWidth;var X=function(){return DCi(N())},A=function(){return wt6(d())},l=function(){return R()*(d().playedTime/d().videoDuration)};
return _.g("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.g(_.TN,{each:X},function(k,T){return _.g(e6$,{modifiedProps:A,chapters:X,index:T,playedProgressWidth:l,backgroundGradientPosition:function(){var W=A(),w=X(),p=T(),m=l();return(W.playedTime-zM(_.q(w[p],St)))/W.playedTime*m}})}))},"ie"),e6$=_.SG(function(M){var d=M.modifiedProps;
var N=M.chapters;var R=M.index;var X=M.playedProgressWidth;var A=M.backgroundGradientPosition;M={};M=_.xj("ytChapteredProgressBarChapteredPlayerBarChapter",(M.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return l().isScrubbing},M.ytChapteredProgressBarHoveredMacroMarker=function(){return l().scrubberHovering},M.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return l().videoPosition==="seen"},M));
var l=function(){return pti(d(),N(),R())},k=function(){var T=d();
var W=N(),w=R();if(pti(T,W,w).videoPosition!=="active")T=0;else{var p=zM(_.q(W[w],St));T=(T.playedTime-p)/((zM(_.q(W[w+1],St))||T.videoDuration)-p)}return T};
return _.g("div",{class:M,style:_.Xc({width:function(){var T=d(),W=N(),w=R(),p=_.q(W[w],St);W=_.q(W[w+1],St);return(W?zM(W)-zM(p):T.videoDuration-zM(p))/T.videoDuration*100+"%"},
"background-color":function(){a:{var T=l();switch(T.videoPosition){case "pending":T=T.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":T=T.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:T=""}}return T},
"background-size":function(){return(mCp(l())?X():"")+"px"},
"background-position-x":function(){return(mCp(l())?A():"")+"px"}})},_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var T=d(),W=N(),w=R();if(pti(T,W,w).videoPosition==="seen")var p=0;else p=zM(_.q(W[w],St)),W=zM(_.q(W[w+1],St))||T.videoDuration,T=T.videoDuration*T.percentLoaded,p=W<=T?1:p>=T?0:(T-p)/(W-p);return"width: "+p*100+"%"}}),_.g("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Xc({width:function(){return k()*100+"%"},
"background-size":function(){return(mCp(l(),k())?X():"")+"px"},
"background-position-x":function(){return(mCp(l(),k())?A():"")+"px"}})}))},"je");var nZY=function(M,d){d=d===void 0?Qqd:d;var N,R=[],X,A=!1;return function(){var l=_.wH.apply(0,arguments);if(A&&N===this&&d(l,R))return X;X=M.apply(this,l);A=!0;N=this;R=l;return X}}(function(M){var d=M.heatMarkers,N=M.minHeightDp===void 0?0:M.minHeightDp,R=M.maxHeightDp===void 0?60:M.maxHeightDp;
var X=X===void 0?!1:X;var A=1E3/d.length;M=[];M.push({x:0,y:100});for(var l=0;l<d.length;l++){var k=void 0,T=((k=_.q(d[l],uDL))==null?void 0:k.heatMarkerIntensityScoreNormalized)||0;k=(l+.5)*A;T=100-_.Ju(T*100,N/321*100,R/321*100);l!==0||X||M.push({x:0,y:T});M.push({x:k,y:T});l===d.length-1&&M.push({x:1E3,y:T})}M.push({x:1E3,y:100});d="";for(N=0;N<M.length;N++)X=M[N],N===0?X="M "+X.x.toFixed(1)+","+X.y.toFixed(1):(R=GIN(M[N-1],M[N-2],X),A=GIN(X,M[N-1],M[N+1],!0),X=" C "+(R.x.toFixed(1)+","+R.y.toFixed(1)+
" "+A.x.toFixed(1)+","+A.y.toFixed(1)+" "+X.x.toFixed(1)+","+X.y.toFixed(1))),d+=X;return d});var iKi=_.SG(function(M){var d=M.progressBarProps;var N=M.config;var R={};M=_.xj("ytHeatSeekerHost",(R.ytHeatSeekerHighContrast=M.highContrast,R));var X=function(){return ZpZ(N().chapterData)};
return _.g("yt-progress-bar-heatseeker",{class:M,style:function(){var A;return"height: 320px; display: "+(d().isDragging&&((A=X())==null?0:A.heatMarkers)?"block":"none")}},_.g(_.kV,{cond:X,
then:function(A){return _.g(_.kV,{cond:function(){return A().heatMarkers},
then:function(){return _.g("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.g("path",{d:function(){return nZY(A())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"ke");var fGG=_.SG(function(M){var d=M.progressBarProps;var N=M.config;M={};M=_.xj("ytProgressBarLineProgressBarLine",(M.ytProgressBarLineProgressBarLineRounded=function(){return N().rounded},M.ytProgressBarLineProgressBarLineBottomInset=function(){return N().position===2},M));
return _.g("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.g("div",{class:M},_.g("div",{class:"ytProgressBarLineProgressBarBackground"}),_.g("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+d().percentLoaded*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var R=d();return"width: "+(R.videoDuration?_.Ju(R.hoveredTime/R.videoDuration,0,1):0)*100+"%"}}),_.g("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+C92(d())*100+"%"}})))},"le");
fGG.idomCompat=!0;var L1b=_.SG(function(M){var d=M.progressBarProps;var N=M.playheadData;var R=M.interpolateDotPosition;var X=M.hidePlayhead;M={};var A=_.xj("ytProgressBarPlayheadProgressBarPlayheadDot",(M.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return d().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!d().isDragging&&X()},M));
return _.g("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Xc({"margin-left":function(){return xgj(d())*100+"%"},
transform:function(){return"translateX(-"+(R()?xgj(d())*12:6)+"px)"}})},_.g(_.kV,{cond:function(){var l;
return(l=_.Jy(N)())==null?void 0:l.playheadImage},
then:function(l){var k={};return _.g("div",{class:_.xj("ytProgressBarPlayheadProgressBarPlayheadCustom",(k.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return d().isDragging},k.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!d().isDragging&&X()},k)),
style:_.Xc({"transform-origin":function(){return(R()?xgj(d())*20:10)+"px center"}})},_.g(_.Jt,{data:l,
alt:"","aria-hidden":"true"}))},
else:function(){return _.g("div",{class:A,style:_.Xc({"transform-origin":function(){return(R()?xgj(d())*12:6)+"px center"}})})}}))},"me");
L1b.idomCompat=!0;var lF=function(M,d,N,R,X,A){this.getProgressBarRect=M;this.updateProgressBarRect=d;this.getFilmstripYPosition=N;this.setFineScrubbingDraggedTime=R;this.updateFilmStripDraggedYDistance=X;this.resetFilmStripYOffset=A;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.ua(this.onThrottledSeek,100,this)},tvd=function(M,d,N){return function(R){M.handleClick(R,d(),N())}},U9G=function(M,d){return function(N){Gh$(M,
N,aGD(N),d())}},uSJ=function(M,d){return function(N){Gh$(M,N,{x:N.clientX,
y:N.clientY},d())}},x99=function(M,d,N){return function(R){var X=d(),A=N();
CO9(M,R,aGD(R),X,A,!0);if(A.onTouchMove)A.onTouchMove(X)}},ZKP=function(M,d,N){return function(R){YAD(M,R,d(),N())}},EZ9=function(M,d){return function(){M.handleMouseLeave(d())}},Md9=function(M,d,N){return function(){var R=d(),X=N();
$K(M,R,X);if(X.onTouchEnd)X.onTouchEnd(R)}},dO9=function(M,d,N){return function(){var R=d(),X=N();
$K(M,R,X);if(X.onTouchEnd)X.onTouchEnd(R)}},NHC=function(M,d,N){return function(){$K(M,d(),N())}},Rqe=function(M,d,N){return function(R){!N().disableScrubbing&&M.startPosition&&YAD(M,R,d(),N())}},XQr=function(M,d,N){return function(){if(!N().disableScrubbing)if(M.startPosition){var R=d(),X=N();
$K(M,d(),N());if(X.onTouchEnd)X.onTouchEnd(R)}else d().setState({isDragging:!1})}},aGD=function(M){M=M.touches[0];
return{x:M.clientX,y:M.clientY}},YAD=function(M,d,N,R){if(d.buttons!==1){if(d.movementX||d.movementY)d.preventDefault(),d.stopPropagation(),M=FLi(M,N,d.clientX),N.setState({isHovering:!0,
hoveredTime:M*N.videoDuration})}else A_q(N),CO9(M,d,{x:d.clientX,y:d.clientY},N,R,!1)};
lF.prototype.handleMouseLeave=function(M){A_q(M)};
var A_q=function(M){M.isHovering&&M.setState({isHovering:!1,hoveredTime:0})},Gh$=function(M,d,N,R){M.startPosition||(M.startPosition=N,M.updateProgressBarRect(),M.controlsWereVisibleBeforeDragging=R.controlsVisible,d.stopPropagation(),_.Q("medium_progress_bar_modification")||d.preventDefault())},CO9=function(M,d,N,R,X,A){if(M.startPosition)if(A&&X.isInlinePlayback&&M.startPosition&&!M.hasDraggedTheMinimumDistance&&Math.abs(N.y-M.startPosition.y)>Math.abs(N.x-M.startPosition.x))$K(M,R,X);
else if(d.preventDefault(),d.stopPropagation(),R.videoDuration&&(M.startPosition&&!M.hasDraggedTheMinimumDistance&&(M.hasDraggedTheMinimumDistance=Math.abs(N.x-M.startPosition.x)>=1),X.enableFineScrubbing&&(M.startPosition&&(M.isDraggedForFineScrubbing=-(N.y-M.startPosition.y)>=60),!M.startPosition||N.y>=M.startPosition.y||(R.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:hLj(R.draggedTime,R,X.chapterData)}),M.setFineScrubbingDraggedTime(R.draggedTime),M.updateFilmStripDraggedYDistance(M.startPosition.y,
N.y,R))),M.hasDraggedTheMinimumDistance)){d=FLi(M,R,N.x);if(M.isDraggedForFineScrubbing){var l;(l=R.playerApi)==null||l.pauseVideo();R.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:R.draggedTime,filmStripXDistance:hLj(d*R.videoDuration,R,X.chapterData)})}X.enableFineScrubbing&&(!X.enableFineScrubbing||M.getFilmstripYPosition(R)<68)||R.setState({draggedTime:d*R.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:M.controlsWereVisibleBeforeDragging});var k;(k=
X.cancelAutohideControlsFn)==null||k.call(X)}},$K=function(M,d,N){var R=N.enableFineScrubbing&&d.fineScrubbingActiveState!=="off";
if(d.isDragging||R){R={isDragging:!1,playedTime:d.draggedTime,controlsVisible:M.controlsWereVisibleBeforeDragging};N.enableFineScrubbing&&d.fineScrubbingActiveState!=="on"&&(M.resetFilmStripYOffset(),R.fineScrubbingActiveState="off");var X=X===void 0?$CL:X;var A=_.Ou(0);A&&X&&_.H1(A,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(d.playedTime*1E3),endMediaTimeMs:Math.round(d.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});d.setState(R);
M.seekThrottle.fire(d.draggedTime,d,7);_.Q("mweb_new_progress_bar_play_on_seek")&&M.resumeVideo(d);N.unmuteOnSeek&&(N=d.playerApi,d.volumeMuted&&(N==null||N.unMute()))}else d.setState({controlsVisible:!d.controlsVisible}),(A=N.triggerAutohideControlsAfterDelayFn)==null||A.call(N);M.startPosition=null;M.hasDraggedTheMinimumDistance=!1;M.isDraggedForFineScrubbing=!1;M.controlsWereVisibleBeforeDragging=!1};
lF.prototype.handleClick=function(M,d,N){this.updateProgressBarRect();M.stopPropagation();M=FLi(this,d,M.clientX)*d.videoDuration;d.setState({playedTime:M});if(d.playerState!==2){var R;(R=N.triggerAutohideControlsAfterDelayFn)==null||R.call(N)}this.seekThrottle.fire(M,d,7)};
var FLi=function(M,d,N){M=M.getProgressBarRect(d);return _.Ju(0,(N-M.left)/M.width,1)};
lF.prototype.resumeVideo=function(M){if(M.draggedTime<M.videoDuration){var d;(d=M.playerApi)==null||d.playVideo()}};
lF.prototype.onThrottledSeek=function(M,d,N){if(d=d.playerApi){var R;if((R=d.getVideoData())==null?0:R.isLive)R=this.getProgressState(d),M+=(R==null?void 0:R.seekableStart)||0;d.seekTo(M,void 0,void 0,void 0,N)}};
lF.prototype.getProgressState=function(M){var d=M==null?void 0:M.getPresentingPlayerType();return M==null?void 0:M.getProgressState(d)};var $OP,lWJ,BHY,THD,VdJ,DO$,g8i,WLq,wQq;$OP=_.SG(function(M){var d=M.progressBarProps;var N=M.config;var R=M.progressBarWidthPx;var X=M.chapterData;var A=O_Z(d,function(){return N().isShortsPage}),l=function(){return!d().isHovering&&!N().isShortsPage};
M={};var k=_.xj("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(M.ytPlayerStoryboardHostMwebShorts=function(){return N().isShortsPage&&!1},M));
return _.g("yt-player-storyboard",null,_.g(_.kV,{cond:function(){return d().isDragging||d().isHovering},
then:function(){return _.g(_.kV,{cond:A,then:function(T){return _.g(_.kV,{cond:l,then:function(){return _.g("div",{class:k,"aria-hidden":"true"},_.g(VdJ,{props:d,config:N,isBigboard:!0,chapterData:X}))},
else:function(){return _.g(lWJ,{props:d,frame:T,config:N,progressBarWidthPx:R,chapterData:X})}})}})}}))},"ne");
_.kPq=_.SG(function(M){var d=M.progressBarProps;var N=O_Z(d,M.isShortsPage);return _.g("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.g(_.kV,{cond:function(){return d().isDragging||d().isHovering},
then:function(){return _.g(_.kV,{cond:N,then:function(R){return _.g(BHY,{frame:R,props:d,isBigboard:!0})}})}}))},"oe");
lWJ=_.SG(function(M){var d=M.props;var N=M.frame;var R=M.config;var X=M.progressBarWidthPx;M=M.chapterData;var A={};A=_.xj("ytPlayerStoryboardHost",(A.ytPlayerStoryboardHostMwebShorts=function(){return R().isShortsPage&&!1},A.ytPlayerStoryboardHostInlinePlayer=function(){return R().isInlinePlayer},A.ytPlayerStoryboardHostFadeIn=function(){return R().useFadeInAnimation},A));
return _.g("div",{class:A,"aria-hidden":"true",style:function(){var l=d(),k=Q7i(N()),T=X();l=qZZ(l)/l.videoDuration;var W=T*l,w=k/2+6;k=T-(k/2+6);return"left: "+(W<=w?w/T*100:W>=k?k/T*100:l*100)+"%"}},_.g(_.kV,{cond:function(){var l=d();
return!(R().isShortsPage&&l.videoDuration<15)},
then:function(){return _.g(BHY,{frame:N,props:d,isBigboard:!1})}}),_.g(VdJ,{props:d,
config:R,isBigboard:!1,chapterData:M}))},"pe");
BHY=_.SG(function(M){var d=M.frame;var N=M.props;var R=M.isBigboard;var X=function(){var k,T;return(T=(k=N().playerApi)==null?void 0:k.getVideoContentRect())!=null?T:{width:0,height:0}},A=function(){return Q7i(d())},l=function(){var k=d();
return k?k.height/k.rows:0};
M={};M=_.xj((M.ytPlayerStoryboardBigboardImageWrapper=R,M.ytPlayerStoryboardStoryboardImageWrapper=function(){return!R()},M));
return _.g("div",{class:M,style:function(){return"width: "+(R()?X().width:A())+"px; height: "+(R()?X().height:l())+"px;"}},_.g(THD,{frame:d,
storyboardWidth:A,storyboardHeight:l,storyboardScale:function(){return(R()?X().width:A())/A()}}))},"qe");
THD=_.SG(function(M){var d=M.frame;var N=M.storyboardWidth;var R=M.storyboardHeight;var X=M.storyboardScale;var A=function(){var l=d().row,k=d().column,T=N(),W=R(),w=X();return{left:-k*T*w,top:-l*W*w}};
return _.g("img",{src:function(){return d().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+A().left+"px; top: "+A().top+"px; width: "+d().width*X()+"px; height: "+d().height*X()+"px;"}})},"re");
VdJ=_.SG(function(M){var d=M.props;var N=M.config;var R=M.isBigboard;var X=M.chapterData;M={};M=_.xj("ytPlayerStoryboardMetadata",(M.ytPlayerStoryboardMetadataBigboard=R,M));return _.g("div",{class:M},_.g(_.kV,{cond:R,then:function(){return _.g(_.GT,null,_.g(DO$,{props:d,config:N}),_.g(_.kV,{cond:function(){a:{var A=d();var l=N(),k=X(),T;if((l==null?0:l.activeChapter)&&((T=_.q(l==null?void 0:l.activeChapter,St))==null?0:T.title))A=!0;else{l=_.V(EzL(k));for(l=l.next();!l.done;l=l.next()){A=(l=_.q(l.value,
xT3))&&I5i(A,l);break a}A=!1}}return A},
then:function(){return _.g(g8i,{props:d,config:N,isBigboard:!0,chapterData:X})}}))},
else:function(){return _.g(_.GT,null,_.g(g8i,{props:d,config:N,isBigboard:!0,chapterData:X}),_.g(DO$,{props:d,config:N}))}}))},"se");
DO$=_.SG(function(M){var d=M.props;var N=M.config;M={};M=_.xj("ytPlayerStoryboardTimestamp",(M.ytPlayerStoryboardTimestampShorts=function(){return N().isShortsPage},M.ytPlayerStoryboardTimestampIsHovering=function(){return d().isHovering||N().isShortsPage&&!0},M));
return _.g("div",{class:M},_.g(_.GT,null,function(){return _.vXq(qZZ(d()))}))},"te");
g8i=_.SG(function(M){var d=M.props;var N=M.config;var R=M.isBigboard;var X=M.chapterData;M={};R=_.xj("ytPlayerStoryboardTitle",(M.ytPlayerStoryboardTitleBigboard=R,M));return _.g("div",{class:R},_.g(_.kV,{cond:function(){return!N().isShortsPage},
then:function(){return _.g(WLq,{props:d,activeChapter:function(){return N().activeChapter},
chapterData:X})}}))},"ue");
WLq=_.SG(function(M){var d=M.props;var N=M.activeChapter;var R=M.chapterData;return _.g(_.GT,null,_.g(_.TN,{each:function(){return EzL(R())},
keyBy:"INDEX"},function(X){return _.g(_.GT,null,_.g(_.kV,{cond:function(){return _.q(X(),xT3)&&I5i(d(),_.q(X(),xT3))},
then:function(){return _.g(wQq,{timedMarker:function(){return _.q(X(),xT3)}})}}))}),_.g(_.kV,{cond:function(){var X;
return N()&&((X=_.q(N(),St))==null?void 0:X.title)},
then:function(X){return _.g(_.lG,{text:X,noPreWrap:!0})}}))},"ve");
wQq=_.SG(function(M){var d=M.timedMarker;return _.g(_.GT,null,_.g("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.g(_.Fc,{icon:function(){return d().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.g(_.lG,{text:function(){return d().label},
noPreWrap:!0}))},"we");_.pQ9=_.SG(function(M){var d=M.progressBarProps;var N=M.playheadData;var R=M.config;M=_.e5();var X=_.e5(),A=_.e5(),l=_.V(_.d0({width:0,left:0},void 0,"NcXsUb")),k=l.next().value,T=l.next().value,W=function(){A.value&&T(A.value.getBoundingClientRect())},w=function(){k().width<=0&&W();
return k()};
La("resize",W);var p=new lF(w,function(){},function(){return 0},function(){},function(){},function(){}),m=function(){return d()};
l=_.V(_.d0(!1,void 0,"ZsF6Xc"));var I=l.next().value,O=l.next().value;l=_.dT(function(){O(!0);R().position===2?setTimeout(function(){W()},100):W()});
var y=_.dT(function(){O(!1);EZ9(p,m)()}),c=_.dT(function(Hj){R().doSeekOnClick&&tvd(p,m,R)(Hj);
return!1}),e=_.dT(function(Hj){U9G(p,m)(Hj);
return!1}),t=_.dT(function(Hj){uSJ(p,m)(Hj);
return!1}),C=_.dT(function(Hj){x99(p,m,R)(Hj);
return!1}),U=_.dT(function(Hj){ZKP(p,m,R)(Hj);
return!1}),Fi=_.dT(function(){Md9(p,m,R)();
return!1}),Y=_.dT(function(){dO9(p,m,R)();
return!1}),$i=_.dT(function(){NHC(p,m,R)();
return!1});
La("mousemove",Rqe(p,m,R));La("mouseup",XQr(p,m,R));_.IJ(function(){B6i(X.value);O(!1);W();XQr(p,m,R)()});
var vj={};vj=_.xj("ytPlayerProgressBarHost",function(){return R().className},(vj.ytPlayerProgressBarHostReadOnly=function(){return R().disableScrubbing},vj.ytPlayerProgressBarHostHidden=function(){return R().hideProgressBar&&!I()},vj.ytPlayerProgressBarHostLowerPlayer=function(){return R().position===0},vj.ytPlayerProgressBarHostBottomEdge=function(){return R().position===1},vj.ytPlayerProgressBarHostBottomInset=function(){return R().position===2},vj.ytPlayerProgressBarHostCustom=function(){return R().position===
3},vj));
var Pj={},sS=_.xj("ytPlayerProgressBarBackground",(Pj.ytPlayerProgressBarBackgroundHide=function(){return R().position===2&&!I()&&!d().isDragging},Pj));
Pj={};Pj=_.xj("ytPlayerProgressBarDragContainer",(Pj.ytPlayerProgressBarDragContainerBottomEdge=function(){return R().position===1},Pj));
var tL={};tL=_.xj("ytPlayerProgressBarProgressBar",(tL.ytPlayerProgressBarProgressBarInset=function(){return R().position===2},tL.ytPlayerProgressBarProgressBarInsetMinimized=function(){return R().position===2&&!I()&&!d().isDragging},tL));
var b2=function(){return Math.floor(C92(d())*100)};
return _.g("yt-progress-bar",{el:M,class:vj},_.g(_.kV,{cond:function(){return R().position===2},
then:function(){return _.g("div",{class:sS})}}),_.g("div",{el:X,
"on:click":c,"on:touchstart":e,"on:touchmove":C,"on:mouseenter":l,"on:mousedown":t,"on:mouseleave":y,"on:mousemove":U,"on:mouseup":Y,"on:touchend":Fi,"on:touchcancel":$i,class:Pj,role:"slider","aria-valuenow":b2,"aria-valuetext":function(){return b2()+"%"},
tabindex:0,"aria-label":_.le("SEEK_SLIDER")},_.g("div",{el:A,class:tL},_.g(iKi,{progressBarProps:d,config:R,highContrast:function(){return!!R().isInlinePlayback}}),_.g(_.kV,{cond:function(){return R().chapterData&&Mfp(R().chapterData)},
then:function(){return _.g(HKd,{progressState:d,multiMarkersPlayerBarRenderer:function(){return R().chapterData},
progressBarWidth:function(){return k().width}})},
else:function(){return _.g(fGG,{progressBarProps:d,config:R})}}),_.g(L1b,{progressBarProps:d,
playheadData:N,interpolateDotPosition:function(){return R().position!==2},
hidePlayhead:function(){return R().playheadDotBehavior===1&&!I()}}))),_.g($OP,{progressBarProps:d,
config:function(){return{activeChapter:WVZ(d(),R().chapterData),getProgressBarWidthPx:function(){return w().width},
isShortsPage:!!R().isShortsPage,isInlinePlayer:!!R().isInlinePlayback,useFadeInAnimation:!!R().isInlinePlayback}},
progressBarWidthPx:function(){return k().width},
chapterData:function(){return R().chapterData}}))},"xe");
_.pQ9.idomCompat=!0;Object.assign({},_.dCN(),{setState:function(){},
domMeasurements:{},appApi:_.uJZ(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var mOJ;
_.hqY=_.SG(function(){var M,d=(M=_.b5(j7q().playerApi))!=null?M:void 0;M=_.V(_.d0(!1,void 0,"HLFBmb"));var N=M.next().value,R=M.next().value;M=_.V(_.d0(!1,void 0,"lHH9bc"));var X=M.next().value,A=M.next().value;M=_.V(_.d0(!1,void 0,"zsY7yd"));var l=M.next().value,k=M.next().value;M=_.V(_.d0(!1,void 0,"KeHQgc"));var T=M.next().value,W=M.next().value;M=_.V(_.d0(0,void 0,"gLLCj"));var w=M.next().value,p=M.next().value;M=_.V(_.d0(0,void 0,"s3RYkf"));var m=M.next().value,I=M.next().value;M=_.V(_.d0(!1,void 0,
"Dn608e"));var O=M.next().value,y=M.next().value;M=_.V(_.d0(0,void 0,"AnkH1b"));var c=M.next().value,e=M.next().value;M=_.V(_.d0(0,void 0,"QYNL0b"));var t=M.next().value,C=M.next().value;M=_.V(_.d0("",void 0,"Yzw45d"));var U=M.next().value,Fi=M.next().value;M=_.V(_.d0(-1,void 0,"iiVI0c"));var Y=M.next().value,$i=M.next().value,vj=_.Al(function(){var Pj={controlsVisible:N(),isOverlayHidden:X(),shouldWaitToHideControls:l(),isDragging:T(),isHovering:O(),videoDuration:c(),playedTime:t(),videoId:U(),draggedTime:m(),
hoveredTime:w(),playerState:Y()};return Object.assign({},_.dCN(),Pj,{domMeasurements:{},setState:function(sS){sS.controlsVisible!==void 0&&R(sS.controlsVisible);sS.isOverlayHidden!==void 0&&A(sS.isOverlayHidden);sS.shouldWaitToHideControls!==void 0&&k(sS.shouldWaitToHideControls);sS.isDragging!==void 0&&W(sS.isDragging);sS.isHovering!==void 0&&y(sS.isHovering);sS.draggedTime!==void 0&&I(sS.draggedTime);sS.hoveredTime!==void 0&&p(sS.hoveredTime);sS.videoDuration!==void 0&&e(sS.videoDuration);sS.playedTime!==
void 0&&C(sS.playedTime);sS.videoId!==void 0&&Fi(sS.videoId);sS.playerState!==void 0&&$i(sS.playerState)},
appApi:_.uJZ(),playerApi:d})},void 0,"ZW7y9");
_.QD(function(){d==null||d.addEventListener("onVideoProgress",FVr(vj));d==null||d.addEventListener("onVideoDataChange",Xtr(vj));d==null||d.addEventListener("onStateChange",N6S(vj))});
_.mF(function(){if(d==null?0:d.isReady())d==null||d.removeEventListener("onVideoProgress",FVr(vj)),d==null||d.removeEventListener("onVideoDataChange",Xtr(vj)),d==null||d.removeEventListener("onStateChange",N6S(vj))});
return _.g("desktop-shorts-player-controls",null,_.g(mOJ,{playerControlsProps:vj}))},"ye");
mOJ=_.SG(function(M){var d=M.playerControlsProps;return _.g("div",{class:"desktopShortsPlayerControlsWizHost"},_.g(_.pQ9,{progressBarProps:d,config:function(){return{isShortsPage:!0,hideProgressBar:d().videoDuration<30&&d().playerState!==2&&!d().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ze");_.aR(_.KVq);_.QOr=_.SG(function(M){var d=M.data;return _.g("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.g(_.VX,{command:function(){return d().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.g(_.kV,{cond:function(){return d().iconName},
then:function(N){return _.g(_.Fc,{icon:N})}}),_.g("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return d().text}),_.g(_.kV,{cond:function(){return d().showEndChevron},
then:function(){return _.g(_.Fc,{icon:"CHEVRON_RIGHT"})}})))},"Ae");var q0b=_.SG(function(M){var d=M.data;var N=M.overlayDensity;M={};return _.g("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.g(_.ho,{data:function(){return d().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(R){var X=R.data;
return _.g(_.Dg,{data:function(){return(N==null?void 0:N())===1?Object.assign({},X(),{avatar:{avatarViewModel:Object.assign({},_.q(X().avatar,_.fX),{avatarImageSize:"AVATAR_SIZE_48"})}}):X()}})}}),_.g(_.ho,{data:function(){return d().avatarStackViewModel}},{avatarStackViewModel:function(R){return _.g(_.gV,{data:R.data})}}),_.g(_.lG,{className:_.xj("ytReelChannelBarViewModelChannelName",(M.ytReelChannelBarViewModelChannelNameLarge=function(){return(N==null?void 0:N())===1},M)),
text:function(){return d().channelName},
linkInheritColor:!0,userInput:!0}),_.g("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.g(_.ho,{data:function(){return d().subscribeButtonViewModel}},{subscribeButtonViewModel:function(R){var X=R.data;
return _.g(mDL,{data:function(){return(N==null?void 0:N())===1?Object.assign({},X(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},X().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):X()},
isOverlay:!1})},
buttonViewModel:_.o0})),_.g("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.g(_.ho,{data:function(){var R,X;return(X=_.q((R=d())==null?void 0:R.sponsorButtonViewModel,I6V))==null?void 0:X.sponsorButton}},{buttonViewModel:function(R){return _.g(_.o0,{data:R.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Be");var IWD=_.SG(function(M){var d={};return _.g("yt-reel-multi-format-link-view-model",{class:_.xj("ytReelMultiFormatLinkViewModelHost",(d.ytReelMultiFormatLinkViewModelHostTall=!0,d.ytReelMultiFormatLinkViewModelHostLarge=function(){var N;return((N=M.overlayDensity)==null?void 0:N.call(M))===1},d))},_.g(_.VX,{ariaLabel:function(){return M.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.ht(M.data().command)},
dangerousStopPropagation:!1},_.g("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.g(_.kV,{cond:function(){return M.data().icon},
then:function(N){return _.g(_.Jt,{data:N,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.g(_.lG,{text:function(){return M.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ce");
IWD.idomCompat=!0;var v8P=_.SG(function(M){var d=M.data;var N=M.overlayDensity;var R=_.e5();M=_.V(_.d0(!1,void 0,"xDqzhe"));var X=M.next().value,A=M.next().value;M=_.V(_.d0(!1,void 0,"LI9CFd"));var l=M.next().value,k=M.next().value,T=function(){return d().isMultiLineSa},W=_.FT(CZi,function(){var C,U;
return(U=(C=d().toggleableContent)==null?void 0:C.entityKey)!=null?U:""}),w=function(){var C,U,Fi;
return(Fi=d().toggleableContent)!=null&&Fi.entityKey?(U=(C=W())==null?void 0:C.value)!=null?U:!1:!1},p=function(){var C,U,Fi,Y,$i,vj,Pj,sS,tL,b2,Hj;
return d().toggleableContent?w()?(C=d().toggleableContent)==null?void 0:C.toggledData:(U=d().toggleableContent)==null?void 0:U.untoggledData:{primaryText:(sS=(Fi=d().defaultContent)==null?void 0:Fi.primaryText)!=null?sS:d().text,secondaryText:(Y=d().defaultContent)==null?void 0:Y.secondaryText,onTapCommand:(tL=($i=d().defaultContent)==null?void 0:$i.onTapCommand)!=null?tL:d().onTapCommand,icon:(b2=(vj=d().defaultContent)==null?void 0:vj.icon)!=null?b2:d().icon,image:(Hj=(Pj=d().defaultContent)==null?
void 0:Pj.image)!=null?Hj:d().image}},m=function(){return T()?d().trailingTapTarget:void 0};
M=function(C,U){return function(){return X()?U:C}};
var I={leadingSection:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:M("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};M={};M=_.xj((M.ytShortsSuggestedActionViewModelStaticHost=function(){return!T()},M.ytShortsSuggestedActionViewModelDynamicHost=T,M.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return T()&&l()},M.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return T()&&!l()},M));
_.IJ(function(){if(T()){var C=0,U;if((U=d().animationParams)==null?0:U.shouldExpand){var Fi,Y;C=((Y=(Fi=d().animationParams)==null?void 0:Fi.expansionDelaySecs)!=null?Y:0)*1E3}var $i,vj=(($i=d().animationParams)==null?0:$i.shouldExpand)?setTimeout(function(){A(!0)},C):void 0,Pj,sS;
C=((Pj=d().animationParams)==null?0:Pj.visibilityDelaySecs)?((sS=d().animationParams)==null?NaN:sS.visibilityDelaySecs)*1E3:0;var tL=setTimeout(function(){k(!0)},C);
_.mF(function(){vj&&clearTimeout(vj);clearTimeout(tL)})}});
var O=function(C){_.vz(C,Object.assign({},{form:{element:R.value}}))},y=_.dT(function(){var C,U=(C=p())==null?void 0:C.onTapCommand;
U&&O(U)}),c=_.dT(function(){var C,U;
if(C=(U=m())==null?void 0:U.onTapCommand)return O(C),!1}),e=_.Xc({"vertical-align":"bottom",
"border-radius":function(){var C;return T()?((C=d().defaultContent)==null?0:C.isCircleImage)?"50%":"4px":"0px"},
width:function(){var C,U,Fi;return T()&&((C=d().defaultContent)==null?0:C.imageSize)?((Fi=(U=d().defaultContent)==null?void 0:U.imageSize)!=null?Fi:24)+"px":null},
height:function(){var C,U,Fi;return T()&&((C=d().defaultContent)==null?0:C.imageSize)?((Fi=(U=d().defaultContent)==null?void 0:U.imageSize)!=null?Fi:24)+"px":null}}),t={};
return _.g("yt-shorts-suggested-action-view-model",{class:M,el:R},_.g("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.g("button",{class:_.xj(function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var C;
return(C=d().useFullRoundedBorder)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!m()&&T()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":T()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var C;
return(C=d().disableFixedHeight)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(t.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(N==null?void 0:N())===1},t)),
"on:click":y},_.g(_.$F,{model:{color:4}}),_.g("div",{class:_.xj(function(){return T()?I.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.g(_.kV,{cond:function(){var C;
return(C=p())==null?void 0:C.image},
then:function(C){return _.g(_.Jt,{data:C,alt:"",className:function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:e})}}),_.g(_.kV,{cond:function(){var C,U;
return(C=p())==null?void 0:(U=C.icon)==null?void 0:U.iconType},
then:function(C){return _.g(_.Fc,{icon:C,active:w,className:function(){return T()?X()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.g("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.g(_.kV,{cond:function(){var C;
return(C=p())==null?void 0:C.primaryText},
then:function(C){return _.g("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.g(_.lG,{text:C}))}}),_.g(_.kV,{cond:function(){var C;
return(C=p())==null?void 0:C.secondaryText},
then:function(C){return _.g("div",{class:I.secondaryText},_.g(_.lG,{text:C}))}}))),_.g(_.kV,{cond:m,
then:function(C){return _.g("div",{class:I.trailingSection,"aria-label":function(){var U;return(U=C().a11yLabel)!=null?U:""},
"on:click":c,role:"button",tabindex:0},_.g(_.$F,{model:{color:4}}),_.g(_.Fc,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"De");var OST=_.SG(function(M){var d=M.data;var N=M.overlayDensity;var R=_.e5();M=_.dT(function(l){if(_.fJr(_.c5(l),R.value,["A".toString()]))return!1;(l=d().truncatedTextOnTapCommand)&&_.vz(l);return!1});
var X={},A={};return _.g("yt-shorts-video-title-view-model",{el:R,class:_.xj("ytShortsVideoTitleViewModelHost",(X.ytShortsVideoTitleViewModelHostClickable=function(){return!!d().truncatedTextOnTapCommand},X)),
"on:click":M},_.g("h2",{class:_.xj("ytShortsVideoTitleViewModelShortsVideoTitle",(A.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(N==null?void 0:N())===1},A))},_.g(_.lG,{text:function(){return d().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ee");_.jOd=_.SG(function(M){var d=M.data;var N=M.overlayDensity;return _.g("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.g(_.ho,{data:function(){return d().metadataItems}},{badgeViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(_.nN,{data:R.data}))},
playerDisclosureViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(_.QOr,{data:R.data}))},
shortsSuggestedActionViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(v8P,{data:R.data,overlayDensity:N}))},
reelChannelBarViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(q0b,{data:R.data,overlayDensity:N}))},
reelMultiFormatLinkViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(IWD,{data:R.data,overlayDensity:N}))},
shortsVideoTitleViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(OST,{data:R.data,overlayDensity:N}))},
reelSoundMetadataViewModel:function(R){return _.g("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.g(_.cCG,{data:R.data,overlayDensity:N}))}}))},"Fe");var sO4=_.SG(function(M){var d=_.cu(M,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),N=d.size,R=d.onTap,X=d.disabled,A=d.tooltipText;return _.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g(CX,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:N(),disabled:X(),tooltipText:A(),onTap:R}},
iconName:M.iconType}))},"Ge"),PyC=_.SG(function(M){function d(w){w.stopPropagation();
w.code==="ArrowUp"?(w.preventDefault(),SZS(k.value)):w.code==="ArrowDown"?(w.preventDefault(),zLj(k.value)):w.code==="KeyM"?JUZ():(w.code==="KeyK"||w.code==="Space")&&cU6(T())}
var N=_.cu(M,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});M=N.previousButtonDisabled;var R=N.nextButtonDisabled,X=N.data,A=N.playabilityStatus,l=N.previewThumbnail,k=_.e5(),T=_.hI(_.J6Z),W;_.QD(function(){(W=_.qy(k.value))&&W.addEventListener("keydown",d)});
_.mF(function(){var w;(w=W)==null||w.removeEventListener("keydown",d)});
N=function(){var w,p,m;return(w=X())==null?void 0:(p=w.reelPlayerOverlayRenderer)==null?void 0:(m=p.likeButton)==null?void 0:m.likeButtonRenderer};
return _.g("ytd-shorts-miniplayer-overlay",{el:k,class:"ytdShortsMiniplayerOverlayHost"},_.g("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Xc({"background-image":function(){var w=l();return w?'url("'+_.nq(w.thumbnails)+'")':""}})}),_.g("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.g("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.g(sO4,{iconType:function(){var w=T();
return w===2||w===-1||w===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){cU6(T())},
tooltipText:function(){var w=T();return w===1||w===3?_.le("PLAYER_LABEL_PAUSE"):_.le("PLAYER_LABEL_PLAY")}}),_.g(_.KVq,null)),_.g("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.g(sO4,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:M,onTap:function(){SZS(k.value)},
tooltipText:_.le("PREVIOUS_VIDEO_LABEL")}),_.g(sO4,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:R,onTap:function(){zLj(k.value)},
tooltipText:_.le("NEXT_VIDEO_LABEL")}),_.Q("web_shorts_pip_like_button")?_.g("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.g($uL,{buttonTooltipPosition:"left",data:N,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.g("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.g(_.kV,{cond:function(){var w,p;return _.q((w=X())==null?void 0:(p=w.reelPlayerOverlayRenderer)==null?void 0:p.metapanel,
mmJ)},
then:function(w){return _.g("div",{class:_.xj("ytdShortsMiniplayerOverlayInteractive")},_.g(_.jOd,{data:w}))}})),_.g("div",{class:_.xj("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var w;return!((w=X())==null||!w.adsOverlay)||A()&&!aTi(A())}},_.g("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.g(_.hqY,null)))),_.g(_.kV,{cond:function(){var w=X(),p,m;
w=_.q(w==null?void 0:(p=w.adsOverlay)==null?void 0:(m=p.fulfillmentContent)==null?void 0:m.fulfilledLayout,Ehd);return _.q(w==null?void 0:w.renderingContent,X6d)},
then:function(w){return _.g("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.g(wrt,{data:w}))}}))},"He");var b_N=_.SG(function(){var M=_.V(_.d0(new _.R8(NaN,NaN),void 0,"dCf7yb")),d=M.next().value,N=M.next().value;M=_.V(_.d0(!1,void 0,"smJHAc"));var R=M.next().value,X=M.next().value,A=_.V(_.d0(!1,void 0,"HnqDAc"));M=A.next().value;var l=A.next().value,k=_.h().resolve(_.et).miniplayerPropSignalMap[0],T=k.data,W=k.shortsData,w=k.nextButtonDisabled,p=k.shortsPreviewThumbnail,m=k.previousButtonDisabled,I=k.externalPlaylistData;A=k.toastData;var O=k.playabilityStatus,y=k.isDisabled;k=_.hI(_.BC);_.bv("yt-pip-window-resized",
function(C){N(C)});
_.bv("yt-activate-pip-miniplayer",function(){return _.B(function(C){l(!0);_.Vy(C)})});
var c=function(){var C;return!((C=I())==null||!C.contents)&&R()},e=function(){var C=d(),U=!!T(),Fi=c();
C=C.clone();U&&(C.height-=76);Fi&&(C.height-=285);return C},t=function(){X(!R())};
return _.g("ytd-pip-container",{class:"ytdPipContainerHost"},_.g(_.kV,{cond:M,then:function(){return _.g(_.z6T,{isDisabled:y,playabilityStatus:O,size:e})}}),_.g(_.kV,{cond:T,
then:function(){return _.g(_.cjr,{data:T,expanded:R,onExpandClick:t,playlistData:I})}}),_.g(_.kV,{cond:c,
then:function(){return _.g("div",{class:"ytdPipContainerPlaylistPanel"},_.g(_.VZC,{data:I,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.g(_.kV,{cond:k,
then:function(){return _.g(PyC,{data:W,nextButtonDisabled:w,previousButtonDisabled:m,playabilityStatus:O,previewThumbnail:p})}}),_.g("div",{class:"ytdPipContainerToast"},_.g(_.bKP,{toastData:A})))},"Ie");var BK=function(M,d){var N=this;this.pipController=M;this.JSC$16356_clientRoot=d;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=L5A();this.watchPipEnabled=_.Q("web_watch_pip");this.shortsPipEnabled=_.Q("web_shorts_pip");this.JSC$16356_watchWhileEnabled=_.Q("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;_.kO(_.iY(),_.o36,function(R){N.isSingleOptionSurveyActive=R});
this.JSC$16356_onPlayerPlayVideo=this.JSC$16356_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);_.S5(_.ch.getInstance(),this.miniplayerServiceActionMap,this.JSC$16356_clientRoot);_.k_()&&_.hQ("genericClientExperimentEvent",{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},
rDV,eqD,c_P,HSC,n8e,Chm,iSd,fW4,LLe,zqT;
BK.prototype.handleMediaSessionPipActivation=function(){var M=this,d;return _.B(function(N){_.$O().mediaSessionPipActivation=!0;d=_.h().resolve(_.em);return d.isOnWatch()&&M.watchPipEnabled?(_.$O().watchPipActivation=!0,_.o8r(M,d.data),N.jumpTo(0)):d.isOnShorts()&&M.shortsPipEnabled?(_.$O().shortsPipActivation=!0,_.r_9(M),N.jumpTo(0)):M.isMiniplayerActive()&&M.watchPipEnabled&&!M.watchWhileMode?_.D(N,KLP(M),0):N.jumpTo(0)})};
var KLP=function(M){var d,N,R,X;return _.B(function(A){if(A.nextAddress==1)return d=!M.miniplayerToPipMode,N=M.playerElement,R=M.miniplayerData,X=M.watchResponse,_.D(A,M.deactivate(),2);if(A.nextAddress!=3)return d?(_.$O().mediaSessionPipActivation=!0,_.$O().watchPipActivation=!0):_.$O().miniplayerButtonActivation=!0,_.D(A,M.activate(N,R,X),3);M.miniplayerToPipMode=d;_.Vy(A)})};
BK.prototype.onDownloadedVideoDeleted=function(M){var d,N=_.q((d=this.miniplayerData)==null?void 0:d.watchEndpoint,_.nL),R,X;N&&((R=this.watchResponse)==null?void 0:(X=R.playerResponse)==null?void 0:X.offlineState)!==void 0&&(d=N.videoId)&&M&&d===M&&this.close()};
BK.prototype.onShowMiniplayerCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p,m,I,O;return _.B(function(y){switch(y.nextAddress){case 1:return N=_.q(M,BYe),X=(R=N)==null?void 0:R.miniplayerCommand,A=_.q(X,_.nL),X&&A&&!d.active?_.D(y,_.mT.getInstance(),2):y.return();case 2:return l=y.yieldResult,_.D(y,(k=l)==null?void 0:k.get("yt-miniplayer-shown-video-id"),3);case 3:T=y.yieldResult;W=A.videoId;if(!W||T===W)return y.return();w=_.h().resolve(_.em);if(w.isOnWatch())return _.vh(Error("Dj")),y.return();
p={channelItem:{externalId:btoa(W)}};d.readyToResumeVe=_.Tx(121253,void 0,void 0,p);_.$O().showMiniplayerCommandActivation=!0;return _.D(y,_.x4z(d,X,!0),4);case 4:return d.active?(_.kK(d,{readyToResumeVe:d.readyToResumeVe,continueWatching:!0,premiumBranding:!((m=N)==null||!m.showPremiumBranding)}),d.isReadyToResume=!0):_.kK(d,{continueWatching:!0,premiumBranding:!((I=N)==null||!I.showPremiumBranding)}),_.Q("ytd_miniplayer_to_wiz")&&_.kK(d,{isReadyToResume:!0}),_.D(y,(O=l)==null?void 0:O.set("yt-miniplayer-shown-video-id",
A.videoId),5);case 5:d.readyToResumeVe=void 0,_.Vy(y)}})};
BK.prototype.init=function(M){this.miniplayerEl?_.vh(new _.WJ("MiniplayerService already initialized.")):this.miniplayerEl=M};
BK.prototype.isInitialized=function(){var M=!!this.miniplayerEl;M||_.vh(new _.WJ("MiniplayerService used before initialized."));return M};
_.o8r=function(M,d){if(M.isInitialized()){var N=_.awA(d.response,d.playerResponse),R=_.h().resolve(_.em).getPlayerFromWatch();_.$O().currentEndpoint=N.watchEndpoint||null;M.activate(R,N,d)}};
_.r_9=function(M){if(M.isInitialized()){var d=_.h().resolve(_.em).getPlayerFromShorts();M.activate(d)}};
rDV=function(M,d){var N;(N=!M.isInitialized())||(N=_.h().resolve(_.em).isOnWatch()&&M.watchPipMode,N=!(M.isMiniplayerActive()&&(_.$O().userActivation||_.$O().lockupActivation||N)));if(N)return!1;y_q(M,d)?_.V8(M):Chm(M,d);return M.watchPipMode?!_.h().resolve(_.em).isOnWatch():!0};
BK.prototype.isMiniplayerActive=function(){return this.active};
var y_q=function(M,d){var N;d=(N=_.q(d,_.nL))==null?void 0:N.videoId;var R,X;M=(X=_.q((R=M.miniplayerData)==null?void 0:R.watchEndpoint,_.nL))==null?void 0:X.videoId;return d!=null&&d===M};
BK.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.YP(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ZI(this.miniplayerEl,"yt-navigate-home-action"))};
_.x4z=function(M,d,N,R){N=N===void 0?!1:N;var X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:if(M.active){k.jumpTo(2);break}X=_.h().resolve(_.em);if(l=(A=M.playerElement)!=null?A:X.getPlayerFromWatch()){k.jumpTo(3);break}return _.D(k,_.h().resolve(_.aq),4);case 4:l=X.getPlayerFromWatch();case 3:if(!l){_.vh(Error("Fj"));k.jumpTo(2);break}return _.D(k,M.activate(l,R),2);case 2:return M.active?_.D(k,Chm(M,d,N),0):k.return()}})};
BK.prototype.activate=function(M,d,N){var R=this,X,A,l,k,T,W,w,p,m;return _.B(function(I){switch(I.nextAddress){case 1:if(!R.isInitialized())return I.return();if(!M)return _.vh(Error("Fj")),I.return();if(_.Ahz()||R.isMiniplayerActive())var O=!0;else O=_.$O().watchPipActivation||_.$O().watchWhileActivation,_.h().resolve(_.em).isOnWatch()&&!O?(_.vh(new _.WJ("miniplayer activated on watch page")),O=!0):O=_.$O().watchWhileActivation?R.userDeactivatedWatchWhile||!!document.pictureInPictureElement||sKL():
!1;if(O)return FfI(),I.return();X=_.$O().mediaSessionPipActivation;A=_.$O().shortsPipActivation;l=_.$O().watchPipActivation;T=(k=_.$O().watchWhileActivation)||l;W=l||A;if(!R.pictureInPictureEnabled()||!W){I.jumpTo(2);break}return _.D(I,J_e(R,X),3);case 3:if(!I.yieldResult)return _.vh(Error("Ej")),FfI(),I.return();case 2:return R.setActive(!0),R.watchResponse=N,R.playerElement=M,R.updateMiniplayerData(d),_.D(I,c_P(R,M),4);case 4:if(!R.active)return _.vh(new _.WJ("miniplayer deactivated during activation")),
R.removePlayerListeners(),I.return();O=_.h().resolve(_.oL);O.addEventListener("yt-navigate",_.ux(R,R.onPlaylistNavigate));O.addEventListener("yt-playlist-data-updated",_.ux(R,R.JSC$16356_onPlaylistDataUpdated));R.JSC$16356_onPlaylistDataUpdated();FfI();R.JSC$16356_watchWhileEnabled&&_.S0T(R,k);R.pictureInPictureEnabled()&&R.shortsPipEnabled&&(R.shortsPipMode=A,_.iY().dispatch(G4t(R.shortsPipMode)));R.pictureInPictureEnabled()&&R.watchPipEnabled&&(R.watchPipMode=l,_.oRZ(R.handleMediaSessionPipActivation));
R.player&&(w=R.player.getPlayerState(),p=w===1,_.iY().dispatch(Mqd(w)),_.Eu(R.miniplayerEl,"yt-miniplayer-play-state-changed",[p]),_.$O().isVideoPlaying=p);_.Eu(R.miniplayerEl,"yt-miniplayer-endpoint-changed");zqT(R);_.bSG(R);return R.shortsPipMode||R.watchPipMode?_.D(I,_.Mi(R.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.Q("ytd_miniplayer_to_wiz")?_.D(I,_.Mi(R.miniplayerEl,"yt-activate-miniplayer",[T]),6):_.D(I,_.Mi(R.miniplayerEl,"yt-activate-miniplayer-action",[M,T]),6);case 6:eqD(R),HSC(R,!0),
(m=R.getPlayerElement())==null||m.focusOnPlayer(),_.Vy(I)}})};
BK.prototype.updateMiniplayerData=function(M){this.miniplayerData=M;_.kK(this,{data:M})};
_.bSG=function(M){var d,N,R=((d=M.miniplayerData)==null?void 0:(N=d.miniplayerRenderer)==null?void 0:N.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";d=M.watchWhileMode||M.watchPipMode?R&&!_.h().resolve(_.em).isOnWatch():R;_.kK(M,{isDisabled:d});var X,A;N=_.q((X=M.miniplayerData)==null?void 0:(A=X.miniplayerRenderer)==null?void 0:A.minimizedEndpoint,_.Iu);d&&N&&_.h().resolve(_.Wc).openSheet({openPopupActionCommand:{openPopupAction:N}},M.miniplayerEl)};
eqD=function(M){if(M.watchResponse&&!n8e(M)){var d,N=(d=M.watchResponse.playerResponse)==null?void 0:d.trackingParams;N&&(_.kK(M,{expandVe:_.Tx(35989),closeVe:_.Tx(34699),readyToResumeCloseVe:_.Tx(131070),repositionVe:_.Tx(226204),resizeVe:_.Tx(226205)}),_.kK(M,{playerVe:_.At(N)}))}};
c_P=function(M,d){return _.B(function(N){if(N.nextAddress==1)return d.preparePlayer(),_.D(N,d.getPlayerPromise(),2);M.player=N.yieldResult;M.player&&(M.player.addEventListener("onPlayVideo",M.JSC$16356_onPlayerPlayVideo),M.player.addEventListener("onCloseMiniplayer",M.onPlayerCloseMiniplayer),M.player.addEventListener("onExpandMiniplayer",M.onPlayerExpandMiniplayer),M.player.addEventListener("onStateChange",M.onPlayerStateChange));_.Vy(N)})};
_.F=BK.prototype;_.F.JSC$16356_onPlayerPlayVideo=function(M){var d=M.sessionData&&"autonav"in M.sessionData,N;M.sessionData&&M.sessionData.itct&&(N=M.sessionData.itct);var R=M.watchEndpoint;d=R&&d?_.X4j(R,N):_.UN(M.videoId,M.listId||void 0,N);M.sessionData&&_.tX(_.q(d.commandMetadata,_.an).url,M.sessionData);Chm(this,d)};
_.F.onPlayerExpandMiniplayer=function(){_.V8(this)};
_.F.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.F.onPlayerStateChange=function(){if(this.player){var M=this.player.getPlayerState(),d=M===1;_.iY().dispatch(Mqd(M));_.iY().dispatch(_.NVm(M));_.Eu(this.miniplayerEl,"yt-miniplayer-play-state-changed",[d]);_.$O().isVideoPlaying=d;if(M===0){d=!_.GQ.getInstance().isAutoplaySetExplicitly();var N,R,X,A,l,k,T=(N=this.watchResponse.response)==null?void 0:(R=N.contents)==null?void 0:(X=R.twoColumnWatchNextResults)==null?void 0:(A=X.autoplay)==null?void 0:(l=A.autoplay)==null?void 0:(k=l.autoplayExplicitChoiceDialogRenderer)==
null?void 0:k.confirmDialogRenderer;d&&T&&this.player.setAutonavState(1)}M===0&&this.watchWhileMode&&this.deactivate()}};
_.F.onPlaylistNavigate=function(M,d){var N=this,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1){if(!_.q(d.endpoint,_.nL))return w.return();_.$O().currentEndpoint=d.endpoint;_.Eu(N.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.h().resolve(_.em).isOnWatch()&&(N.watchWhileMode||N.watchPipMode))return w.return();M.stopPropagation();(A=(X=_.q((R=d.endpoint)==null?void 0:R.commandMetadata,_.an))==null?void 0:X.url)&&d.tempData&&!_.wF.isEmpty(d.tempData)&&_.tX(A,d.tempData);l={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};k=new Xse(function(){return N.getPlayerElement()},l,{layer:3});
T=function(p){k.processChunk({endpoint:d.endpoint,data:p})};
iSd(N);N.miniplayerFetchRequest=fW4(N,d.endpoint,T);_.Mv(w,2);return _.D(w,N.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return W=w.yieldResult,LLe(N,W),_.cJ(w,0);_.Fg(w);_.Vy(w)})};
_.F.JSC$16356_onPlaylistDataUpdated=function(){var M=_.h().resolve(_.oL).getPlaylistData();this.hasPlaylistData=!!M;_.kK(this,{externalPlaylistData:M||{}})};
_.F.close=function(M){if(this.isInitialized())if(M){if(!((this.watchWhileMode||this.watchPipMode)&&_.h().resolve(_.em).isOnWatch()||this.shortsPipMode)){var d;(d=this.getPlayerElement())==null||d.stop()}this.deactivate()}else _.cn().closeMiniplayer(this.miniplayerEl)};
_.F.deactivate=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){if(!d.isInitialized()||!d.active)return l.return();d.setActive(!1);iSd(d);(N=!!M&&y_q(d,M))&&d.isSingleOptionSurveyActive&&_.ZI(d.miniplayerEl,"yt-show-watch-page-survey",[d.isSingleOptionSurveyActive]);return _.D(l,td9(d),2)}if(l.nextAddress!=3){HSC(d,!1);d.isReadyToResume=!1;d.watchResponse=void 0;d.updateMiniplayerData(void 0);d.shortsPipMode&&(d.shortsPipMode=!1,_.iY().dispatch(G4t(d.shortsPipMode)),Deb(d.pipController),
(R=d.player)==null||R.setInternalSize(NaN,NaN));d.watchPipMode&&(d.watchPipMode=!1,Deb(d.pipController));(X=d.watchWhileMode)&&_.S0T(d,!1);d.removePlayerListeners();var k=_.h().resolve(_.oL);k.removeEventListener("yt-navigate",_.ux(d,d.onPlaylistNavigate));k.removeEventListener("yt-playlist-data-updated",_.ux(d,d.JSC$16356_onPlaylistDataUpdated));_.$O().currentEndpoint=null;_.Eu(d.miniplayerEl,"yt-miniplayer-endpoint-changed");d.playerElement=null;FfI();return d.shortsPipMode||d.watchPipMode?l.jumpTo(3):
_.D(l,_.Mi(d.miniplayerEl,_.Q("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[N,X]),3)}(A=d.player)==null||A.setInternalSize(NaN,NaN);d.player=null;_.Vy(l)})};
var td9=function(M){var d;return _.B(function(N){d=_.h().resolve(_.em);return M.shortsPipMode?_.D(N,d.movePlayerToShorts(M.playerElement),0):_.D(N,d.movePlayerToWatch(M.playerElement),0)})};
BK.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16356_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
BK.prototype.setActive=function(M){this.active=M;this.isSingleOptionSurveyActive?_.ZI(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ZI(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.iY().dispatch(_.YS({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.S0T=function(M,d){M.watchWhileMode=d;_.kK(M,{watchWhile:d})};
HSC=function(M,d){if(!n8e(M))if(M.shortsPipMode||M.watchPipMode){var N;(N=M.player)==null||N.setDocumentPictureInPicture(d)}else{var R;(R=M.player)==null||R.setMinimized(d)}};
n8e=function(M){return M.watchWhileMode&&_.Q("kevlar_watch_while_counterfactual")};
_.V8=function(M){var d;return _.B(function(N){switch(N.nextAddress){case 1:if(!M.isInitialized())return N.return();_.Mv(N,2);return _.D(N,M.miniplayerFetchRequest,4);case 4:_.cJ(N,3);break;case 2:_.Fg(N);case 3:M.watchResponse&&M.miniplayerData&&M.miniplayerData.watchEndpoint?(d={url:M.watchResponse.url,endpoint:M.miniplayerData.watchEndpoint,data:M.watchResponse,miniplayer:!0},_.YP(M.miniplayerEl,"yt-navigate-cache",d)):M.miniplayerData&&M.miniplayerData.watchEndpoint&&_.YP(M.miniplayerEl,"yt-navigate",
{endpoint:M.miniplayerData.watchEndpoint}),_.Vy(N)}})};
Chm=function(M,d,N){var R,X,A,l;return _.B(function(k){if(k.nextAddress==1){if(y_q(M,d))return k.return();_.$O().currentEndpoint=d;_.Eu(M.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Eu(M.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.$O().isVideoPlaying=!1;R={clientParams:{miniplayer:!0,autoSaveToQueue:!N}};X=new Xse(function(){return M.getPlayerElement()},R,{layer:3,
parentLayer:0},void 0,M.readyToResumeVe);A=function(T){var W,w,p=Object.assign({},(W=T.playerResponse)==null?void 0:(w=W.playerConfig)==null?void 0:w.playbackStartConfig,{startPaused:!0}),m;N&&((m=T.playerResponse)==null?0:m.playerConfig)&&(T.playerResponse.playerConfig.playbackStartConfig=p);X.processChunk({endpoint:d,data:T})};
iSd(M);M.miniplayerFetchRequest=fW4(M,d,A);_.Mv(k,2);return _.D(k,M.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return l=k.yieldResult,LLe(M,l),_.cJ(k,0);_.Fg(k);_.Vy(k)})};
iSd=function(M){M.miniplayerFetchRequest&&(M.miniplayerFetchRequest.cancel&&M.miniplayerFetchRequest.cancel("Active request obsolete"),M.miniplayerFetchRequest=null)};
fW4=function(M,d,N){var R=_.E9.instance,X,A=(X=_.q(d.commandMetadata,_.an))==null?void 0:X.url,l;X=!A||_.Q("disable_miniplayer_tempdata")?{}:(l=m2p(A))!=null?l:{};return i5(R,d,X,window.location.href,"watch",function(k,T){N(T)},function(k){return k!==M.miniplayerFetchRequest})};
LLe=function(M,d){var N;_.B(function(R){if(!d)return R.return();M.watchResponse=d;eqD(M);zqT(M);N=_.awA(d.response,d.playerResponse);if(M.isMiniplayerActive()){d.response&&(M.playerElement.watchNextData=d.response);var X=_.wF.getValueByKeys.apply(_.wF,[d].concat(_.wu(glL)));_.wF.getValueByKeys.apply(_.wF,[d].concat(_.wu(hUe)))&&X&&_.h().resolve(_.oL).setAutoplayRenderer(X);if(X)if(_.Q("kevlar_is_pupi_enabled")){var A,l,k,T,W,w=((A=d.response)==null?0:(l=A.playerOverlays)==null?0:(k=l.playerOverlayRenderer)==
null?0:(T=k.autonavToggle)==null?0:(W=T.autoplaySwitchButtonRenderer)==null?0:W.enabled)?2:1;_.GQ.getInstance().setState(w,!1,!1)}else A=yWZ()?2:1,(w=M.player)==null||w.setAutonavState(A);M.updateMiniplayerData(N);_.bSG(M)}_.Vy(R)})};
zqT=function(M){var d,N,R=(d=M.watchResponse)==null?void 0:(N=d.playerResponse)==null?void 0:N.playabilityStatus,X;d=R==null?void 0:(X=R.miniplayer)==null?void 0:X.miniplayerRenderer;(d==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&d.minimizedEndpoint&&_.dU(M.miniplayerEl,[d.minimizedEndpoint]);_.kK(M,{miniplayerRenderer:d,playabilityStatus:R})};
BK.prototype.openToast=function(M,d){_.kK(this,{toastData:{data:M,label:d}})};
_.kK=function(M,d){var N=M.miniplayerEl,R;for(R in d)N[R]=d[R];(0,M.miniplayerPropSignalMap[1])(d)};
BK.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var M;return this.playerElement?this.playerElement:(M=_.K(this.miniplayerEl).querySelector("#player-container"))==null?void 0:M.firstElementChild};
var J_e=function(M,d){d=d===void 0?!1:d;var N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1){N=navigator.userActivation.isActive||d;if(!N||!_.k_())return W.return(!1);R=GP4(M);X=R.width;A=R.height;return _.D(W,M.pipController.openWindow({width:X,height:A}),2)}l=W.yieldResult;k=M.pipController.getWindow();if(!k||!l)return W.return(!1);k.document.body.style.overflow="hidden";T=eLi(k);gdJ(M.pipController,function(){aWq(M);T()});
return W.return(!0)})},GP4=function(M){var d=_.$O().shortsPipActivation,N,R;
M=d?.5625:(R=(N=M.player)==null?void 0:N.getVideoAspectRatio())!=null?R:16/9;N=Math.min(window.innerWidth,window.innerHeight)/2;d=d?0:76;return M>1?new _.R8(N,d+N/M):new _.R8(N*M,d+N)},aWq=function(M){var d;
_.B(function(N){d=_.h().resolve(_.em);return d.isOnWatch()&&M.watchPipMode||d.isOnShorts()&&M.shortsPipMode?_.D(N,M.deactivate(),0):M.miniplayerToPipMode?_.D(N,KLP(M),0):M.watchPipMode?_.D(N,_.V8(M),0):N.jumpTo(0)})};
BK.prototype.pictureInPictureEnabled=function(){return _.k_()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Hm.Object.defineProperties(BK.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
BK[CU]=[_.Wtq,s9I];var UOd="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(" "),
uCG="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var CyP=null;var xOd={},Y0i=(xOd.initialized={priority:10,callback:function(M){var d=_.h();d.addProvider({provide:vad,useClass:kbJ});d.addProvider({provide:_.Bqq,useFactory:function(){return new OkJ}});
d.addProvider({provide:Aq,useValue:_.rK("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});d.addProvider({provide:Pfd,useValue:5184E6});d.addProvider({provide:isV,useValue:_.Pa()});d.addProvider({provide:YSb,useClass:ejV});d.addProvider({provide:IZ,useClass:IZ});d.addProvider({provide:_.aq,useFactory:function(){return UfV.promise}});
d.addProvider({provide:_.C1V,useFactory:function(){return _.u13.promise}});
d.addProvider({provide:dtv,useValue:function(){var k;return((k=_.nO())==null?void 0:k.getPlayer())||null}});
var N={};d.addProvider((N.provide=_.y1,N.useFactory=function(k,T){return function(){return kIZ(k,T)}},N[CU]=[Aq,
Pfd],N));N={};d.addProvider((N.provide=_.Y0,N.useClass=giJ,N[CU]=[Aq,Pfd],N));N={};d.addProvider((N.provide=_.Z_N,N.useClass=mp9,N[CU]=[_.Y0],N));d.addProvider({provide:YU,useFactory:_.iY});d.addProvider({provide:$_,useFactory:_.iY});d.addProvider({provide:MJ$,useFactory:_.iY});d.addProvider({provide:hCL,useFactory:_.iY});d.addProvider({provide:_.ql,useFactory:_.iY});d.addProvider({provide:nr,useValue:_.AT});d.addProvider({provide:FGr,useClass:jDi});d.addProvider({provide:VbL,useClass:A7L});d.addProvider({provide:pi,
useClass:pi});d.addProvider({provide:Be,useClass:Be});d.addProvider({provide:D8,useClass:D8});d.addProvider({provide:We,useClass:We});d.addProvider({provide:Oa,useClass:Oa});d.addProvider({provide:uN,useClass:uN});d.addProvider({provide:iN,useClass:iN});d.addProvider({provide:dp9,useValue:OKJ});d.addProvider({provide:_.Vs,useFactory:_.Nx});d.addProvider({provide:zG,useFactory:_.kS});N={};d.addProvider((N.provide=yFj,N.useFactory=function(k){return function(T){var W=W===void 0?{}:W;var w,p,m=(p=_.q((w=
T.endpoint)==null?void 0:w.commandMetadata,_.an))==null?void 0:p.rootVe;if(m){var I,O;if(w=T.previousCsn||((O=_.q((I=T.endpoint)==null?void 0:I.commandMetadata,f1t))==null?void 0:O.parentCsn)){var y=y===void 0?{}:y;if(w!==_.Ou(y.layer)||m!==O2Z(y.layer))rYZ(w,y.cttAuthInfo,y.layer||0),IjL(w,y.layer||0),I=y.layer||0,_.oJ(v9i(I===void 0?0:I),m);W.parentCsn=w}T.endpoint&&w?G1t(k,T.endpoint,W):_.dm(k,m,void 0,W);var c;((c=T.response)==null?0:c.trackingParams)&&k.graftServerVe(T.response.trackingParams);
var e;((e=T.playerResponse)==null?0:e.trackingParams)&&k.graftServerVe(T.playerResponse.trackingParams);var t;((t=T.reelWatchSequenceResponse)==null?0:t.trackingParams)&&k.graftServerVe(T.reelWatchSequenceResponse.trackingParams)}}},N[CU]=[_.Vs],N));
N={};d.addProvider((N.provide=N3C,N.useClass=der,N[CU]=[nr,_.ql],N));N={};d.addProvider((N.provide=Li,N.useClass=Li,N[CU]=[_.aq,_.ql],N));N={};d.addProvider((N.provide=He,N.useClass=He,N[CU]=[$_,_.xV],N));d.addProvider({provide:_.lmi,useClass:pV4});N={};d.addProvider((N.provide=_.g1,N.useClass=koq,N[CU]=[_.lmi],N));d.addProvider({provide:_.Wc,useClass:a9});d.addProvider({provide:_.w1,useClass:tD});N={};d.addProvider((N.provide=_.yl,N.useClass=wVP,N[CU]=[_.yl],N));d.addProvider({provide:_.L0,useClass:MbJ});
d.addProvider({provide:NA,useClass:NA});d.addProvider({provide:lH,useClass:lH});d.addProvider({provide:wE,useClass:Gd});N={};d.addProvider((N.provide=hq,N.useClass=hq,N[CU]=[_.Wc,wE],N));_.Q("web_enable_feedback_endpoint_resolver")&&(N={},d.addProvider((N.provide=ZP,N.useClass=ZP,N[CU]=[YU,xU],N)),d.addProvider({provide:xU,useClass:QPt}));_.Q("web_enable_feedback_endpoint_resolver_batch_2")&&(N={},d.addProvider((N.provide=MA,N.useClass=MA,N[CU]=[YU],N)),N={},d.addProvider((N.provide=Eg,N.useClass=
Eg,N[CU]=[xU],N)));N={};d.addProvider((N.provide=pD,N.useClass=pD,N[CU]=[_.w1,wE],N));N={};d.addProvider((N.provide=TG,N.useClass=TG,N[CU]=[_.w1],N));N={};d.addProvider((N.provide=mR,N.useClass=mR,N[CU]=[_.D3,_.g1],N));N={};d.addProvider((N.provide=W8,N.useClass=W8,N[CU]=[_.D3,_.Vs],N));d.addProvider({provide:fD,useClass:fD});N={};d.addProvider((N.provide=Se,N.useClass=Se,N[CU]=[YU],N));N={};d.addProvider((N.provide=N_,N.useClass=N_,N[CU]=[YU],N));N={};d.addProvider((N.provide=Rp,N.useClass=Rp,N[CU]=
[_.D3,YU],N));N={};d.addProvider((N.provide=Xv,N.useClass=Xv,N[CU]=[YU],N));N={};d.addProvider((N.provide=Fv,N.useClass=Fv,N[CU]=[YU],N));N={};d.addProvider((N.provide=Di,N.useClass=Di,N[CU]=[_.g1],N));N={};d.addProvider((N.provide=UU,N.useClass=UU,N[CU]=[_.Vs],N));N={};d.addProvider((N.provide=EU,N.useClass=EU,N[CU]=[nD],N));N={};d.addProvider((N.provide=M_,N.useClass=M_,N[CU]=[nD],N));d.addProvider({provide:xL,useClass:xL});d.addProvider({provide:YL,useClass:YL});d.addProvider({provide:as,useClass:as});
N={};d.addProvider((N.provide=Ql,N.useClass=Ql,N[CU]=[_.g1,_.xV],N));d.addProvider({provide:Fl,useClass:Fl});N={};d.addProvider((N.provide=gE,N.useClass=gE,N[CU]=[_.D3,_.g1],N));d.addProvider({provide:$L,useClass:$L});N={};d.addProvider((N.provide=Jq,N.useClass=Jq,N[CU]=[YU,_.D3,_.yl],N));N={};d.addProvider((N.provide=rE,N.useClass=rE,N[CU]=[_.D3,_.xV],N));d.addProvider({provide:z_g,useValue:PT2});d.addProvider({provide:HoA,useValue:Or2});d.addProvider({provide:KD,useClass:KD});N={};d.addProvider((N.provide=
os,N.useClass=os,N[CU]=[YU],N));N={};d.addProvider((N.provide=c8,N.useClass=c8,N[CU]=[_.L0,_.xV],N));N={};d.addProvider((N.provide=dE,N.useClass=dE,N[CU]=[_.xV],N));d.addProvider({provide:Cr,useFactory:function(){return new Cr(_.iY())}});
d.addProvider({provide:NoN,useFactory:_.PN.getInstance});N={};d.addProvider((N.provide=Vl,N.useClass=Vl,N[CU]=[Aq,NoN,_.xV],N));d.addProvider({provide:Rs,useClass:Rs});d.addProvider({provide:tG,useClass:tG});d.addProvider({provide:a5,useClass:a5});d.addProvider({provide:_.Gg,useClass:_.Gg});d.addProvider({provide:lN,useClass:lN});N={};d.addProvider((N.provide=je,N.useClass=je,N[CU]=[$_],N));N={};d.addProvider((N.provide=sU,N.useClass=sU,N[CU]=[_.xV],N));_.Q("web_enable_prefetching_videos_on_home")&&
(d.addProvider({provide:eR,useClass:eR}),d.addProvider({provide:ND,useClass:ND}));N={};d.addProvider((N.provide=VB,N.useClass=VB,N[CU]=[_.xV],N));d.addProvider({provide:Ug,useClass:Ug});N={};d.addProvider((N.provide=LD,N.useClass=LD,N[CU]=[_.D3,_.xV],N));N={};d.addProvider((N.provide=uZ,N.useClass=uZ,N[CU]=[_.xV],N));d.addProvider({provide:RE,useClass:RE});d.addProvider({provide:v8,useClass:v8});N={};d.addProvider((N.provide=Is,N.useClass=Is,N[CU]=[$_,_.xV],N));N={};d.addProvider((N.provide=kI,N.useClass=
kI,N[CU]=[$_,_.xV,_.D3],N));N={};d.addProvider((N.provide=T0,N.useClass=T0,N[CU]=[_.xV],N));N={};d.addProvider((N.provide=BR,N.useClass=BR,N[CU]=[_.xV,_.D3],N));N={};d.addProvider((N.provide=P8,N.useClass=P8,N[CU]=[_.aq],N));N={};d.addProvider((N.provide=OU,N.useClass=OU,N[CU]=[_.aq],N));d.addProvider({provide:H8,useClass:H8});d.addProvider({provide:iH,useClass:iH});d.addProvider({provide:dM,useClass:dM});d.addProvider({provide:tq,useClass:tq});d.addProvider({provide:ee,useClass:ee});d.addProvider({provide:B8,
useClass:B8});d.addProvider({provide:bH,useClass:bH});_.Q("kevlar_enable_mss_lazy_load")&&d.addProvider({provide:_.nt,useClass:Gbd});d.addProvider({provide:_.YO,useClass:ul});d.addProvider({provide:t6,useFactory:function(){return _.ch.getInstance()}});
d.addProvider({provide:ZZq,useFactory:jKv});d.addProvider({provide:nD,useFactory:function(){return _.mT.getInstance()}});
d.addProvider({provide:n2V,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});N={};d.addProvider((N.provide=_.ni,N.useClass=_.ni,N[CU]=[_.aq,_.xV,_.Vs,ZZq,nD,t6,n2V,nr],N));d.addProvider({provide:_.Nf,useClass:Bet});d.addProvider({provide:_.r7L,useClass:opJ});N={};d.addProvider((N.provide=kL,N.useClass=kL,N[CU]=[_.r7L],N));N={};d.addProvider((N.provide=_.il,N.useFactory=function(k){return k.upliftCompletionResolver.promise},N[CU]=[N3C],N));
N=_.KF("IS_SHELL_LOAD")?"aa":"eocs";var R=_.KF("IS_SHELL_LOAD")?3:2;_.K4().parkOrScheduleJob(function(){XVD()},R,N);
_.K4().parkOrScheduleJob(function(){_.h().resolve(Li).start()},2,"eocs");
_.K4().parkOrScheduleJob(function(){EiP()},2,"eocs");
_.K4().parkOrScheduleJob(function(){_.h().resolve(He).start()},2,"eocs");
_.Q("kevlar_debug_data_app_registration_ks")||saL();d.addProvider({provide:_.gT,useValue:new TSV(M.root)});d.addProvider({provide:yc,useValue:new Uxq});d.addProvider({provide:_.Qod,useValue:new muI(M.root)});d.addProvider({provide:_.Tu,useValue:new h3z});d.addProvider({provide:_.db,useClass:Ah});d.addProvider({provide:_.Wtq,useClass:Ua});_.Q("kevlar_network_sli_killswitch")||d.addProvider({provide:wPD,useValue:jlg});d.addProvider({provide:Adi,useFactory:kC2});_.Q("web_bind_fetch")&&(N={},d.addProvider((N.provide=
Vib,N.useFactory=Ta2,N[CU]=[_.CF(Adi)],N)));_.Q("web_bind_parse")&&(N={},d.addProvider((N.provide=lDr,N.useFactory=DgN,N[CU]=[_.CF(Adi)],N)));_.Q("web_bind_window_request")&&(N={},d.addProvider((N.provide=$$e,N.useFactory=gzZ,N[CU]=[_.CF(Adi)],N)));N={};d.addProvider((N.provide=GVe,N.useFactory=ozZ,N[CU]=[_.il,YU,_.y1],N));N={};d.addProvider((N.provide=tbV,N.useClass=DC,N[CU]=[GVe],N));d.addProvider({provide:ALC,useClass:NZd});d.addProvider({provide:npd,useClass:fEt});N=[].concat(_.wu(yX));_.Q("web_continuation_response_processing")&&
N.push(_.qN);N.push(dlV);_.Q("enable_share_panel_navigation_logging_fix_on_web")&&N.push(_.JVV);d.addProvider({provide:tuv,useValue:N});d.addProvider({provide:FKN,useClass:HsL});d.addProvider({provide:QC$,useClass:pP9});N={};d.addProvider((N.provide=d5S,N.useClass=Khd,N[CU]=[$_],N));_.IQ.addLowPriorityJob(function(){Zji()});
N={};d.addProvider((N.provide=Odm,N.useFactory=function(k){return function(T){var W,w=(W=_.q(T.commandMetadata,_.an))==null?void 0:W.url;if(!w)throw new _.WJ("No URL for PBJ Command",T);w=vCA(w,{pbj:"1"});W=ftj(w,{})||{};W=Object.assign({},W,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.rK("STS").toString()});T=_.VO({command:JSON.stringify(T),session_token:_.rK("XSRF_TOKEN")});return k.fetch(w,{method:"POST",headers:W,body:T})}},N[CU]=[QC$],N));
N=[];N.push(d.resolve(npd));R={};R=(R.client_location=_.PN.getInstance(),R.consistency=_.cN6(),R.entities=d.resolve(VbL),R.response_received_commands=d.resolve(FKN),R.store=d.resolve(_.Z_N),R.tokens=d.resolve(npd),R);if(_.Q("web_shorts_prefetch_service_enabled")){var X=new hZq(d.resolve(_.Y0));R.shorts_prefetch=X}R.adblock_detection=d.resolve(d5S);d.addProvider({provide:_.S6,useClass:_.S6});X=d.resolve(dp9);var A=[];if(_.Q("PremiumClientSharedConfig__enable_att_context_processor")||_.Q("enable_att_for_transcript_request_on_web_client"))d.addProvider({provide:Gke,
useClass:frI}),A.push(d.resolve(Gke));if(_.Q("owl_pl_await")){var l={};d.addProvider((l.provide=Mi$,l.useFactory=function(k){return new Zg4(k)},l[CU]=[_.S6],l));
A.push(d.resolve(Mi$))}yGI(X,d.resolve(QC$),d.resolve(FGr),R,d.resolve(_.Y0),N,A,d.resolve(tbV),d.resolve(ALC));d.addProvider({provide:_.D3,useValue:_.Pi.instance});_.Q("start_client_gcf")&&d.addProvider({provide:Wh,useValue:YDV()});d.addProvider({provide:ACi,useFactory:function(){return new ACi(_.h().resolve(_.S6),_.mT.getInstance())}});
_.K4().parkOrScheduleJob(function(){VJ$()},1,"eocs");
N={};d.addProvider((N.provide=fi,N.useClass=fi,N[CU]=[_.y1,_.D3],N));d.addProvider({provide:_.Im$,useFactory:_.dw.getInstance});_.K4().parkOrScheduleJob(function(){_.h().resolve(fi).refresh()},0,"eocs");
jZz(OKJ.watchEndpointMap||{},X.reelWatchEndpointMap||{},M.injector.resolve(_.D3));d.addProvider({provide:Oe,useValue:_.E9.instance});_.Q("web_prs_testing_mode_killswitch")||(N=new _.iX(window.location.href),N.JSC$7917_queryData_.toString()!==""&&N.JSC$7917_queryData_.get("force_ad_encrypted")&&(_.E9.instance.forceWebFEForAdsTesting=!0));_.Q("kevlar_signal_collection_killswitch")||(N={},d.addProvider((N.provide=xpT,N.useClass=xpT,N[CU]=[Aq,zG],N)),_.K4().parkOrScheduleJob(function(){_.h().resolve(xpT).record()},
1,"eocs"));
_.Q("web_debug_handler_registration_killswitch")||_.K4().parkOrScheduleJob(function(){OPi("DOWNLOAD_PES",OwZ);_.Q("offline_client_state_export_ks")||OPi("OFFLINE_CLIENT_STATE",qrS)},0,"eocs");
_.Q("kevlar_prevent_polymer_dynamic_font_load")&&_.K4().parkOrScheduleJob(function(){var k=[_.u6(Jdb),_.u6(cdr)];k=_.V(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;var W=document.createElement("link");_.ed(W,T,"stylesheet");document.head.appendChild(W)}},1,"eocs");
N=M.injector.resolve(_.D3);_.tZd.instance=new _.tZd(N);BgZ(z3g(new Lhg(N)));N={};M.injector.addProvider((N.provide=tQ,N.useFactory=function(k){(k=k==null?void 0:k.getCurrentPage())?k=k.visibilityObserver:(CyP||(CyP=Sbv()),k=CyP);return k},N[CU]=[_.CF(_.em)],N.skipCache=!0,N));
d.addProvider({provide:_.et,useClass:BK});d.addProvider({provide:F1,useClass:peJ});d.addProvider({provide:Twp,useValue:Kai});M.injector.addProvider({provide:vJI,useValue:kkV});d.addProvider({provide:wHI,useValue:sSS});d.addProvider({provide:_.Pz,useValue:HjL});M=d.addProvider;Oge||(Oge=new vdb);M.call(d,{provide:_.jI9,useValue:Oge});d.addProvider({provide:_.rk,useValue:_.rK("HTML_DIR")==="rtl"?"rtl":"ltr"});d.addProvider({provide:$RC,useClass:mR3});d.addProvider({provide:_.xQ,useClass:Ci});_.h().addProvider({provide:kVL,
useValue:UOd.concat(uCG)});d.addProvider({provide:_.Yf,useClass:_.Yf});d.addProvider({provide:_.Prd,useValue:new sCY});d.addProvider({provide:ToC,useClass:X$d});d.addProvider({provide:GG,useClass:GG});d.addProvider({provide:uH,useClass:uH});M={};d.addProvider((M.provide=qA,M.useClass=qA,M[CU]=[_.D3,_.g1],M));d.addProvider({provide:$I,useClass:$I});d.addProvider({provide:y5g,useClass:hdD});d.addProvider({provide:Zi,useClass:Zi});d.addProvider({provide:k8e,useValue:x8z});d.addProvider({provide:_.I5,
useClass:FHV});_.Q("enable_payments_purchase_manager")&&d.addProvider({provide:CzV,useClass:arL});d.addProvider({provide:KGJ,useFactory:function(){return function(k){return _.rdq(k)}}});
d.addProvider({provide:_.bsg,useClass:esz});M={};d.addProvider((M.provide=Ax,M.useClass=Ax,M[CU]=[_.bsg],M));d.addProvider({provide:CD,useClass:CD});d.addProvider({provide:s3g,useValue:MZm});d.addProvider({provide:CAo,useValue:yCY});d.addProvider({provide:zbZ,useClass:mei});d.addProvider({provide:rj9,useValue:oZY});M={};d.addProvider((M.provide=_.K1i,M.useClass=yj9,M[CU]=[rj9],M));_.Q("web_ephemeral_actions")&&(M={},d.addProvider((M.provide=_.Ea,M.useClass=Z8,M[CU]=[_.ql,_.db],M)));if(_.Q("web_explore_hub_on_hover")||
_.Q("web_client_explore_hub_on_hover"))M={},d.addProvider((M.provide=Xl,M.useClass=Xl,M[CU]=[_.D3,t6],M));d.addProvider({provide:VeS,useValue:EUA})}},xOd);var ZSb={},E8b=(ZSb.initialized={priority:10,callback:function(){if(!WGd){EBN();wwA("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Rc(_.B1(wwA,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.Q("log_heartbeat_with_lifecycles")){var M={};i$.instance||(i$.instance=new i$);i$.instance.install((M.document_visible={callback:pwN,priority:10},M.document_hidden={callback:pwN,priority:10},M))}else _.LA(document,"visibilitychange",pwN);WGd=!0}(M=_.Ou())&&M!=="UNDEFINED_CSN"&&Qep(M)}},ZSb);var MlY={},dv$=(MlY.initialized={callback:function(M){var d=_.Tx(232091),N=M.injector.resolve(_.Vs);_.NT(N,d);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?H_r()&&_.XD(N,d):(M=M.injector.resolve(KGJ)("refresh_detector"))&&(M.get("first_tab_load")?_.XD(N,d):M.set("first_tab_load","1"))}},MlY);var NuC={},Rnd=(NuC.initialized={priority:10,callback:UCZ},NuC);var XYY={},FnP=(XYY.initialized={priority:0,callback:function(){var M=new dQV,d="other";_.T7?d="chrome":_.kh?d="firefox":_.PXS?d="safari":nE&&(d="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(N){M.increment(_.Ts(),N,d)}).catch(function(){M.increment(_.Ts(),!1,d)}):M.increment(_.Ts(),!1,d)}},XYY);var ASr={},Vli=(ASr.rendering={priority:8,callback:upi},ASr);var lqJ={},$vD=(lqJ.rendering={priority:10,callback:Va2},lqJ.rendered={callback:A52},lqJ),Bu9={},kBY=(Bu9.rendering={callback:Va2},Bu9.rendered={callback:A52},Bu9);var TuD=!1,Dvd={},gt9=(Dvd.initialized={priority:10,callback:function(){TuD||(vvL({didPatch:function(M){M.el&&VUA(M.el,M.props)},
didUnmount:function(M){Fe2(M.el)}}),TuD=!0)}},Dvd);var WnT=/^\/shorts\/?$/;_.oJ("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.Q("kevlar_enable_mss")){_.Vx6(new zgd);var wYP=!0,pYP,Tv;wYP=wYP===void 0?!1:wYP;pYP=pYP===void 0?!1:pYP;Tv=Tv===void 0?{}:Tv;var mv9=Tv.cssRowKey||"",hni=Tv.combinedSignature||"";!mv9&&window&&window._F_cssRowKey&&(mv9=window._F_cssRowKey,!hni&&window._F_combinedSignature&&(hni=window._F_combinedSignature));if(mv9&&typeof window._F_installCss!=="function")throw Error("vd");var Q2d=Tv.loaderClass||_.zY,DX=aRA("base-js"),q_e,Iq9=uoj("",DX);q_e=_.RO(Iq9);var gw=new Q2d(q_e,mv9,hni,wYP,pYP),vtC=
Tv.useCors||DX&&DX.hasAttribute("crossorigin"),OI9=Tv.corsMode||DX&&DX.getAttribute("crossorigin");vtC&&(gw.useCors_=vtC);OI9&&(gw.corsMode_=OI9);Tv.urlMaxLength&&(gw.urlMaxLength=Tv.urlMaxLength);Tv.fetchPriority&&(gw.fetchPriority=Tv.fetchPriority);var j2P=h8();j2P.JSC$7939_loader_=gw;j2P.setBatchModeEnabled(!0)}
(function(){var M=document.querySelector("ytd-app");if(!M)throw Error("Gj");M=new MD({root:M,injector:_.h()});M.install(E8b);var d={};M.install((d.initialized={priority:10,callback:jki},d));_.Q("wp_lat_b")&&(d={},M.install((d.initialized={priority:10,callback:function(){lwj()}},d)));
d={};M.install((d.rendered={priority:0,callback:IhA},d));d={};M.install((d.rendered={priority:0,callback:function(){_.IQ.addLowPriorityJob(function(){_.hsV>1&&(W4r(),Qk6())},4E4)}},d));
M.install(F1T);M.install(dv$);M.install(gt9);ydb||(ydb=!0,Object.assign(G5,{handleError:Iw2,enableComponentStacksInErrorMessages:!1}),JQv=CML,qDA=vz2,e9Z=hFq,SDA=Qwp,_.Q("ytwiz_enable_debug_component_props")&&t5p());M.install(D9T);M.install(Eed);M.install(R6r);M.install(LAP);M.install(ui9);M.install(khG);M.install(Y0i);_.Q("kevlar_enable_mss_lazy_load")&&M.install(Rnd);M.install(d9J);M.install(FnP);if(!_.KF("IS_SHELL_LOAD")||_.Q("kevlar_fetch_initial_data_promise_client")||_.Q("sw_nav_preload_pbj")){var N=
_.FO(window.location.href);d=N&&N==="/watch";N=N&&N.match(WnT);d?M.install(kBY):N?M.install(Vli):M.install($vD)}else M.install(x$P);M.install(VvJ);_.Q("web_enable_prefetching_videos_on_home")&&M.install(px$);_.Q("start_client_gcf")&&M.install(geY);M.install(eZJ);(new NxL).increment("INSTALLED");M.install(W1d);M.install(U$i);M.transition("initialized");ERA()})();
_.EW=[[["eWM4MXA2ZW5wbmtpbmQjaG4=","d3l4ZXRxbnFzZXZhbHVlIzhl"],"Y2Z0ZnExbHNhZEFEX1BMQUNFTUVOVF9LSU5EX0VORCMzcg=="]];_.Z4=["MmwybHF5MGJjbWdsb2JhbENhbGxiYWNrcyM2eA==","ZTFpODViczNkZW9uQWJub3JtYWxpdHlEZXRlY3RlZCN5Yg==","OHVnOHl2ejh4dm9uQWRTa2lwI3Vy","czU4enY3ZThwNXJhd19wbGF5ZXJfcmVzcG9uc2Ujazg=","OGRtbmo1NnU3c2FkUGxhY2VtZW50Q29uZmlnI2Y="];_.bg="MmwybHF5MGJjbWdsb2JhbENhbGxiYWNrcyM2eA== ZTFpODViczNkZW9uQWJub3JtYWxpdHlEZXRlY3RlZCN5Yg== OHVnOHl2ejh4dm9uQWRTa2lwI3Vy czU4enY3ZThwNXJhd19wbGF5ZXJfcmVzcG9uc2Ujazg= dzE2eXA0cWJ5aHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNkNw== YXR4bnk2aDI4NWFiX3NhX2VmI3Jk OGRtbmo1NnU3c2FkUGxhY2VtZW50Q29uZmlnI2Y=".split(" ");
_._ModuleManager_initialize=function(M,d){if(!_.pk){if(!_.mx)return;_.Vx6(_.mx())}_.pk.setAllModuleInfoString(M,d)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.hH=function(M,d,N,R,X){var A={};d&&(A[d]=N);R?A.errorType=R:X&&(A.errorReason=X);_.hQ(M,A);_.Qc()};
_.Q8=function(M,d){_.gES(M,_.ep(d))};
_.qD=function(M){var d=_.K4();return _.srd(d,M,1)};
_.kQ({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var M=this.query;M&&(this.full||M[0]==="("||(M="("+M+")"),this._mq=window.matchMedia(M),this._add(),this.queryHandler(this._mq))},
queryHandler:function(M){this._setQueryMatches(M.matches)}});var bIi;var end;var HIG=function(){};
_.F=HIG.prototype;_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._focusedChanged=function(){};
_.F._createRipple=function(){};
_.F.registered=function(){};
_.F._invalidChanged=function(){};
_.F.hasValidator=function(){};
_.F.validate=function(){};
_.F._getValidity=function(){};
_.F._requiredChanged=function(){};
_.F._valueChanged=function(){};
_.F._checkedChanged=function(){};
_.F._buttonStateChanged=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
HIG=_.kQ({is:"tp-yt-paper-radio-button",_template:function(){if(end!==void 0)return end;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;bIi===void 0&&(bIi=document.createElement("template"));var R=bIi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return end=M},
behaviors:[_.Ibg],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(){_.bM(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var M=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),d=Math.floor(3*M);d%2!==M%2&&d++;this.updateStyles({"--paper-radio-button-ink-size":d+"px"})}})}});var nte;var iIJ;_.kQ({_template:function(){if(iIJ!==void 0)return iIJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;nte===void 0&&(nte=document.createElement("template"));var R=nte;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return iIJ=M},
is:"tp-yt-paper-radio-group",behaviors:[_.SLz],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(M){var d=this._valueToItem(M);if(!d||!d.hasAttribute("disabled")){if(this.selected){d=this._valueToItem(this.selected);if(this.selected==M)if(this.allowEmptySelection)M="";else{d&&(d.checked=!0);return}d&&
(d.checked=!1)}_.sH.select.apply(this,[M]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(M){this._focusPrevious();M.preventDefault();this._activateFocusedItem()},
_onDownKey:function(M){this._focusNext();M.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(M){_.cIz._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(M){_.cIz._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.sH._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.jO._resetTabindices.apply(this,arguments);this.items.forEach(function(M){M.removeAttribute("aria-selected")},this)}});var fqT;_.pO("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var IE=function(){return _.n.apply(this,arguments)||this};
_.v(IE,_.n);_.F=IE.prototype;_.F.computeHasPrimaryIcon=function(M){return!(!M.icon&&!M.thumbnail)};
_.F.computeHasSecondary=function(M){return!(!M.secondaryIcon&&!M.secondaryNotificationText)};
_.F.computeHideSecondaryString=function(M){return!_.Q("disable_hide_empty_secondary_string")&&!M.secondaryNotificationText};
_.F.computeCompactLinkStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeHasFitHeight=function(M){return M==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.F.isActiveEndpoint=function(M){return(M=this.get("commandMetadata.webCommandMetadata.url",M))?_.FO(window.location.href)!=="/account_transfer_channel"&&_.FO(window.location.href)!=="/gaia_link"&&_.FO(window.location.href)!=="/channel_switcher"||M!=="/account"?_.FO(window.location.href)===M:!0:!1};
_.F.onTap=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.dU(this.hostElement,[this.data.serviceEndpoint])};
IE.prototype.onTap=IE.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.a("design:type",Boolean)],IE.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.a("design:type",String)],IE.prototype,"compactLinkStyle",void 0);
_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",Object)],IE.prototype,"icon",void 0);_.G([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.a("design:type",Object)],IE.prototype,"secondaryIcon",void 0);_.G([_.H({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],IE.prototype,"hasSecondary",void 0);_.G([_.H({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],IE.prototype,"hideSecondaryString",void 0);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IE.prototype,"onTap",null);IE=_.G([_.f({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],IE);
_.L(IE,"ytd-compact-link-renderer",function(){if(fqT!==void 0)return fqT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return fqT=M},{mode:1});var Ln$;_.pO("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var vK=function(){var M=_.n.apply(this,arguments)||this;M.role="link";M.tabindex="0";M.actionMap=_.Q("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return M};
_.v(vK,_.n);_.F=vK.prototype;_.F.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.OO()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.F.getCurrentTheme=function(){return _.j2()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.OO()};
_.F.onThemeSelected=function(M,d){var N=M||d?M:_.vN(),R=(N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.K4L(_.FO(window.location.href));_.TR(0,165,M);_.TR(0,174,d);this.prefs.save();R&&_.ZI(this.hostElement,"yt-dark-mode-toggled-action",[N]);_.ZI(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.onTap=function(){this.data.serviceEndpoint&&_.dU(this.hostElement,[this.data.serviceEndpoint])};
_.F.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.F.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.F.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
vK.prototype.onTap=vK.prototype.onTap;vK.prototype.dataChanged=vK.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],vK.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.GJ),_.a("design:type",Object)],vK.prototype,"paperItemBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],vK.prototype,"data",void 0);_.G([_.H({value:function(){return _.kS()}}),
_.a("design:type",_.ZV)],vK.prototype,"prefs",void 0);_.G([_.H(),_.a("design:type",Object)],vK.prototype,"label",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vK.prototype,"role",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vK.prototype,"tabindex",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vK.prototype,"dataChanged",null);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vK.prototype,"onTap",null);vK=_.G([_.f({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],vK);
_.L(vK,"ytd-toggle-theme-compact-link-renderer",function(){if(Ln$!==void 0)return Ln$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ln$=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.eU=function(M,d,N){_.JA(_.oki)(void 0,M,d,N)};
_.HB=function(M){return function(d,N){var R=M||N.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(d,N,{get:function(){var X;return this.$?this.$[R]:(X=_.YB(this))==null?void 0:X.querySelector("#"+R)},
enumerable:!0,configurable:!0})}};_.nn=function(M){M=M===void 0?!1:M;_.DL.call(this);this.pubSub_=new _.lk(M);_.RW(this,this.pubSub_)};
_.RX(_.nn,_.DL);_.nn.prototype.subscribe=function(M,d,N){return this.isDisposed()?0:this.pubSub_.subscribe(M,d,N)};
_.nn.prototype.unsubscribe=function(M,d,N){return this.isDisposed()?!1:this.pubSub_.unsubscribe(M,d,N)};
_.nn.prototype.unsubscribeByKey=function(M){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(M)};
_.nn.prototype.publish=function(M,d){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Xe9=function(){_.hH("ypcRedeemFlowStarted")},RK=function(M){_.hH("ypcRedeemFlowFailed",void 0,void 0,void 0,M)},FmG=function(M,d,N){d&&N&&(M.videos.forEach(function(R){R.videoId===d&&(R.itemId=N)}),M.recommendedVideos.forEach(function(R){R.videoId===d&&(R.itemId=N)}))};var ADC;var VR9;/*

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
*/
_.kQ({_template:function(){if(VR9!==void 0)return VR9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;ADC===void 0&&(ADC=document.createElement("template"));var R=ADC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return VR9=M},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(M,d){var N=this._resolveSrc(M);N!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",M===""||d?this._setLoading(!1):(this._resolvedSrc=N,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var M=this.$.sizedImgDiv.style,d=this.$.placeholder.style;M.backgroundSize=d.backgroundSize=this.sizing;M.backgroundPosition=d.backgroundPosition=this.sizing?this.position:"";M.backgroundRepeat=d.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(M){M=_.Ca(M,this.$.baseURIAnchor.href);M.length>=2&&M[0]==="/"&&M[1]!=="/"&&(M=(location.origin||location.protocol+"//"+location.host)+M);return M}});var l8J;var $t4;_.kQ({_template:function(){if($t4!==void 0)return $t4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;l8J===void 0&&(l8J=document.createElement("template"));var R=l8J;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return $t4=M},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(M){return M?"false":"true"},
_headingChanged:function(M){var d=this.getAttribute("heading"),N=this.getAttribute("aria-label");typeof N==="string"&&N!==d||this.setAttribute("aria-label",M)},
_computeHeadingClass:function(M){return M?" over-image":""},
_computeAnimated:function(M){return M}});var BeG=new _.x("addRendererToItemSectionAction");var kdi;var X_=function(){return _.n.apply(this,arguments)||this};
_.v(X_,_.n);X_.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X_.prototype,"rendererBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],X_.prototype,"dismissibleItemBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],X_.prototype,"rendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],X_.prototype,"data",void 0);X_=_.G([_.f({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],X_);
_.L(X_,"ytd-comment-history-entry-renderer",function(){if(kdi!==void 0)return kdi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kdi=M},{mode:1});var Teb;_.pO("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.pO("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var F_=function(){return _.n.apply(this,arguments)||this};
_.v(F_,_.n);_.F=F_.prototype;_.F.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.F.onTap=function(){this.data.recordClickEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var M=this.data.navigationEndpoint;M&&_.q(M,_.sP)&&_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})};
_.F.readChanged=function(){var M;_.t2(this.hostElement,"unread",!((M=this.data)==null?0:M.read))};
_.F.dataChanged=function(){this.data&&_.t2(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.F.computeThumbnailSize=function(){var M;return((M=this.data)==null?0:M.highPriorityNotification)?32:48};
_.F.getEndpointURL=function(M){return M&&!_.q(M,_.sP)?this.componentBehavior.computeHref_(M):null};
_.F.getEndpointData=function(M){return M&&!_.q(M,_.sP)?M:null};
F_.prototype.computeThumbnailSize=F_.prototype.computeThumbnailSize;F_.prototype.dataChanged=F_.prototype.dataChanged;F_.prototype.readChanged=F_.prototype.readChanged;F_.prototype.onKeyUp=F_.prototype.onKeyUp;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],F_.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F_.prototype,"data",void 0);_.G([_.H({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.a("design:type",Number)],F_.prototype,"thumbnailSize",void 0);_.G([_.C3("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],F_.prototype,"onKeyUp",null);
_.G([_.xB("data.read"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F_.prototype,"readChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F_.prototype,"dataChanged",null);_.G([_.xB("data.highPriorityNotification"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],F_.prototype,"computeThumbnailSize",null);
F_=_.G([_.f({is:"ytd-notification-renderer",disableElementRegistration:!0})],F_);
_.L(F_,"ytd-notification-renderer",function(){if(Teb!==void 0)return Teb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Teb=M},{mode:1});var DtC;var AB=function(){return _.n.apply(this,arguments)||this};
_.v(AB,_.n);AB.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"}}}};
AB.prototype.computeActionButtonClass=function(M){return!M.actionButtons||M.actionButtons.length<=1?"single-button":M.description?"vertical-buttons":"horizontal-buttons"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AB.prototype,"data",void 0);AB=_.G([_.f({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],AB);
_.L(AB,"ytd-playlist-show-metadata-renderer",function(){if(DtC!==void 0)return DtC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return DtC=M},{mode:1});var gfP;_.pO("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Vj=function(){return _.n.apply(this,arguments)||this};
_.v(Vj,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vj.prototype,"data",void 0);Vj=_.G([_.f({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Vj);
_.L(Vj,"ytd-purchase-item-renderer",function(){if(gfP!==void 0)return gfP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return gfP=M},{mode:1});var WmG;var wei={};wei.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(M){if(M)return M.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(M){if(M==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.pO("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var l3=function(){return _.n.apply(this,arguments)||this};
_.v(l3,_.n);l3.prototype.onYtNavigate=function(M){var d=this.openPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);d&&(M.stopPropagation(),this.openPopupBehavior.openPopup(d))};
l3.prototype.onYtNavigate=l3.prototype.onYtNavigate;_.G([_.S(wei.YtSimpleTextSectionBehavior),_.a("design:type",Object)],l3.prototype,"ytSimpleTextSectionBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],l3.prototype,"openPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],l3.prototype,"data",void 0);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],l3.prototype,"onYtNavigate",null);l3=_.G([_.f({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],l3);
_.L(l3,"ytd-simple-text-section-renderer",function(){if(WmG!==void 0)return WmG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return WmG=M},{mode:1});var pei;_.pO("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var $R=function(){return _.n.apply(this,arguments)||this};
_.v($R,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$R.prototype,"data",void 0);$R=_.G([_.f({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],$R);
_.L($R,"ytd-unlimited-page-feature-info-renderer",function(){if(pei!==void 0)return pei;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pei=M},{mode:1});var mtr;var hP9;var Bb=function(){return _.n.apply(this,arguments)||this};
_.v(Bb,_.n);Bb.prototype.dataChanged=function(){if(this.data){var M=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);M&&(M=_.Hz(M,screen.width),this.hostElement.style.backgroundImage="url("+M+")")}};
Bb.prototype.dataChanged=Bb.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bb.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bb.prototype,"dataChanged",null);Bb=_.G([_.f({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Bb);
_.L(Bb,"ytd-post-redemption-section-renderer",function(){if(hP9!==void 0)return hP9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return hP9=M},{mode:1});var Q9b;var kR=function(){return _.n.apply(this,arguments)||this};
_.v(kR,_.n);kR.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kR.prototype,"data",void 0);kR=_.G([_.f({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],kR);
_.L(kR,"ytd-ypc-post-redemption-renderer",function(){if(Q9b!==void 0)return Q9b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Q9b=M},{mode:1});_.pO("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var TI=function(){var M=_.n.apply(this,arguments)||this;M.MIN_CODE_LENGTH=12;M.MAX_CODE_LENGTH=24;return M};
_.v(TI,_.n);_.F=TI.prototype;_.F.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.F.created=function(){this.riskService=new _.Gzi;this.loadPaymentThenable=_.U7A(_.rK("YPC_MB_URL"))};
_.F.ready=function(){var M=this;this.code.addEventListener("keypress",function(d){M.onCodeInputKeypress(d)})};
_.F.dataChanged=function(){var M=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(d){d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,N.type==="attributes"&&N.attributeName==="dark"&&M.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.F.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var M=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+M+")")}};
_.F.computeRedeemButton=function(M){(M=this.get("redeemButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.F.onRedeemButtonTap=function(M){M.stopPropagation();Xe9();this.redeemCode()};
_.F.redeemCode=function(){var M=this;this.isLoading=!0;var d=this.riskService.init();_.qc([d,this.loadPaymentThenable]).then(function(){var N=M.data.redeemButton.buttonRenderer.serviceEndpoint,R=_.aa2(),X=payments.business.integration.ClientTokenFactory.createClientToken(_.q(N,_.jhd).countryCode,R);R={c:M.code.value.trim(),rd:window.btoa(R),ctk:X};N&&_.h().resolve(_.xV).resolveCommand(N,{form:Object.assign({},R,{element:M.hostElement})})},function(){M.showGenericError();
RK("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.yD(Error("Ul"))})};
_.F.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isLoading=!1;var d,N;this.errorMessage=(d=M.detail)==null?void 0:(N=d.data)==null?void 0:N.errorMessage;var R,X;this.postRedemptionRenderer=(R=M.detail)==null?void 0:(X=R.data)==null?void 0:X.renderer;var A,l;if(M=(A=M.detail)==null?void 0:(l=A.data)==null?void 0:l.redirectEndpoint)this.isLoading=!0,_.YP(this.hostElement,"yt-navigate",{endpoint:M});this.errorMessage?RK("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
M)&&_.hH("ypcRedeemFlowSucceeded")};
_.F.onYtServiceRequestError=function(M){M.stopPropagation();this.isLoading=!1;if(M=this.get("detail.error.message",M))this.errorMessage=_.ep(M);RK("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.F.onInvokeInstrumentManagerActionCompleted=function(M){M.stopPropagation();this.redeemCode()};
_.F.onInvokeInstrumentManagerActionError=function(M){M.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",M)){case "instrumentManagerLoadError":this.showGenericError();RK("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();RK("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.hH("ypcRedeemFlowCancelled")}};
_.F.onInput=function(){var M=this;_.OH(this,"onInput",function(){var d=M.code.value.trim();M.redeemButtonDisabled=d.length<M.MIN_CODE_LENGTH||d.length>M.MAX_CODE_LENGTH},200)};
_.F.onCodeInputKeypress=function(M){M.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Xe9(),this.redeemCode())};
_.F.computeImageUrl=function(M){return M?_.Hz(M.thumbnails,600):null};
_.F.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
TI.prototype.onInvokeInstrumentManagerActionError=TI.prototype.onInvokeInstrumentManagerActionError;TI.prototype.onInvokeInstrumentManagerActionCompleted=TI.prototype.onInvokeInstrumentManagerActionCompleted;TI.prototype.onYtServiceRequestError=TI.prototype.onYtServiceRequestError;TI.prototype.onYtServiceRequestCompleted=TI.prototype.onYtServiceRequestCompleted;TI.prototype.dataChanged=TI.prototype.dataChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TI.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],TI.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Boolean)],TI.prototype,"redeemButtonDisabled",void 0);
_.G([_.H(),_.a("design:type",Object)],TI.prototype,"errorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],TI.prototype,"postRedemptionRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],TI.prototype,"observer",void 0);_.G([_.Z3("#code"),_.a("design:type",HTMLInputElement)],TI.prototype,"code",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TI.prototype,"dataChanged",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TI.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TI.prototype,"onYtServiceRequestError",null);
_.G([_.C3("yt-invoke-instrument-manager-action-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TI.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.G([_.C3("yt-invoke-instrument-manager-action-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TI.prototype,"onInvokeInstrumentManagerActionError",null);TI=_.G([_.f({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],TI);
_.L(TI,"ytd-redeem-code-renderer",function(){if(mtr!==void 0)return mtr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return mtr=M},{mode:1});var qai;_.pO("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var DT=function(){var M=_.n.apply(this,arguments)||this;M.businessEmailDisplayState="HIDE_SECTION";return M};
_.v(DT,_.n);_.F=DT.prototype;_.F.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}}}}}};
_.F.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"};
_.F.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.F.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.rB("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.F.onYtServiceRequestCompleted=function(M){var d;if((d=M.detail.data)==null?0:d.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var N;if((N=M.detail.data)==null?0:N.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.F.computeEmailHref=function(M){return"mailto:"+M};
_.F.computeSafeUrl=function(M){if(M)return _.gH(M)};
_.F.onBusinessEmailCaptchaSubmit=function(){var M;(M=this.data)!=null&&M.onBusinessEmailRevealClickCommand&&(M=this.JSC$18935_captchaTextarea.value)&&(M={recaptcha_response_token:M,channel_id:this.data.channelId},_.h().resolve(_.xV).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},M,{element:this.hostElement})}))};
_.F.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Hm.Object.defineProperties(DT.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.primaryLinks)&&!((d=this.data)==null?0:d.links)&&this.data.primaryLinks.every(function(N){return N.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.primaryLinks)&&!((d=this.data)==null?0:d.links)&&!this.shouldShowNewLinks}}});
DT.prototype.onYtServiceRequestCompleted=DT.prototype.onYtServiceRequestCompleted;DT.prototype.dataChanged=DT.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],DT.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.Z3("#g-recaptcha-response"),_.a("design:type",HTMLTextAreaElement)],DT.prototype,"JSC$18935_captchaTextarea",void 0);_.G([_.H(),_.a("design:type",Object)],DT.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],DT.prototype,"businessEmailDisplayState",void 0);_.G([_.H(),_.a("design:type",String)],DT.prototype,"businessEmail",void 0);_.G([_.H(),_.a("design:type",String)],DT.prototype,"businessEmailErrorMessage",void 0);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DT.prototype,"hideDetailsSection",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DT.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DT.prototype,"shouldShowNewLinks",null);_.G([_.z("data","shouldShowLinks"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DT.prototype,"shouldShowLegacyLinks",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DT.prototype,"onYtServiceRequestCompleted",null);DT=_.G([_.f({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],DT);
_.L(DT,"ytd-channel-about-metadata-renderer",function(){if(qai!==void 0)return qai;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qai=M},{mode:1});var I89;_.pO("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var g8=function(){return _.n.apply(this,arguments)||this};
_.v(g8,_.n);g8.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],g8.prototype,"data",void 0);g8=_.G([_.f({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],g8);
_.L(g8,"ytd-channel-featured-content-renderer",function(){if(I89!==void 0)return I89;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return I89=M},{mode:1});var vfJ;_.pO("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Wb=function(){var M=_.n.apply(this,arguments)||this;M.roundContainer=!0;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(Wb,_.n);_.F=Wb.prototype;_.F.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.dataChanged=function(){this.imageWidth=this.imageHeight=24;var M=this.data;M.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!M.style&&M.image&&M.image.thumbnails.length&&(M=M.image.thumbnails[0],this.imageWidth=M.width||0,this.imageHeight=M.height||0)};
_.F.computeSource=function(M){return M.secondarySource?_.HD(M.secondarySource):_.HD(M.source)};
_.F.computeClarifyStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.F.isLargeStyle=function(M){return M==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.F.computeBackgroundStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.F.computeHasActionButton=function(M){return!!M.actionButton};
_.F.computeHasBottomSection=function(M){return!!M.ctaHasBottomSection};
_.F.computeIsSourceMissing=function(M){return M.ctaHasBottomSection===!1?!0:M&&this.computeSource(M)?!1:!0};
_.F.computeSecondaryEndpoint=function(M){return M.secondaryEndpoint||M.endpoint};
Wb.prototype.dataChanged=Wb.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wb.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],Wb.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],Wb.prototype,"imageHeight",void 0);
_.G([_.H({computed:"computeSecondaryEndpoint(data)"}),_.a("design:type",Object)],Wb.prototype,"secondaryEndpoint",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.a("design:type",Boolean)],Wb.prototype,"hasActionButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.a("design:type",Boolean)],Wb.prototype,"hasBottomSection",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.a("design:type",Boolean)],Wb.prototype,"missingSource",void 0);_.G([_.H({computed:"computeIcon_(data.icon)"}),_.a("design:type",String)],Wb.prototype,"icon",void 0);_.G([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.a("design:type",String)],Wb.prototype,"secondaryIcon",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.a("design:type",String)],Wb.prototype,"clarifyStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.a("design:type",String)],Wb.prototype,"backgroundStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Wb.prototype,"roundContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Wb.prototype,"amsterdamEnabled",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Wb.prototype,"dataChanged",null);
Wb=_.G([_.f({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Wb);
_.L(Wb,"ytd-clarification-renderer",function(){if(vfJ!==void 0)return vfJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return vfJ=M},{mode:1});var Oir;var j9C;var w8=function(){var M=_.n.apply(this,arguments)||this;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(w8,_.n);_.F=w8.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.F.computeIcon=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.F.computeUseContacts=function(M){return!!M.contacts&&M.contacts.length>0};
_.F.computePhoneContact=function(M){var d,N;return(d=M.contacts)==null?void 0:(N=d.find(function(R){var X;return(R==null?void 0:(X=R.icon)==null?void 0:X.iconType)==="PHONE"}))==null?void 0:N.actionText};
_.F.computeSmsContact=function(M){var d,N;return(d=M.contacts)==null?void 0:(N=d.find(function(R){var X;return(R==null?void 0:(X=R.icon)==null?void 0:X.iconType)==="SMS"}))==null?void 0:N.actionText};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],w8.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],w8.prototype,"amsterdamEnabled",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.a("design:type",Boolean)],w8.prototype,"useContacts",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.a("design:type",String)],w8.prototype,"phoneContact",void 0);w8=_.G([_.f({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],w8);
_.L(w8,"ytd-single-action-emergency-support-renderer",function(){if(j9C!==void 0)return j9C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return j9C=M},{mode:1});_.pO("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var pw=function(){var M=_.n.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.Q("enable_desktop_amsterdam_info_panels");return M};
_.v(pw,_.n);pw.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pw.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],pw.prototype,"amsterdamEnabled",void 0);
pw=_.G([_.f({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],pw);
_.L(pw,"ytd-emergency-onebox-renderer",function(){if(Oir!==void 0)return Oir;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Oir=M},{mode:1});var s9C;_.pO("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var mr=function(){return _.n.apply(this,arguments)||this};
_.v(mr,_.n);mr.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mr.prototype,"data",void 0);mr=_.G([_.f({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],mr);
_.L(mr,"ytd-exploratory-results-renderer",function(){if(s9C!==void 0)return s9C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return s9C=M},{mode:1});var Plb;_.pO("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var hB=function(){var M=_.n.apply(this,arguments)||this;M.messageData=null;return M};
_.v(hB,_.n);_.F=hB.prototype;_.F.onServiceRequestCompleted=function(M,d){M=d.actions||[];d=0;for(var N=M.length;d<N;d++){var R=M[d],X=void 0,A=void 0;if((X=_.q(R,_.p9))==null?0:(A=X.item)==null?0:A.messageRenderer)this.messageData=_.q(R,_.p9).item.messageRenderer}};
_.F.dataChanged=function(){var M=this.data;this.hostElement.hidden=!1;_.t2(this.hostElement,"is-channel",M&&!M.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.F.computeThumbnailWidth=function(M){return M?126:56};
_.F.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.F.onSubmitTap=function(){var M=this.data,d=this.selectedResponseIndex;M!==void 0&&d!==void 0&&(M=M.responses[d],M.responseData&&_.h().resolve(_.xV).resolveCommand(M.responseData,{form:{element:this.hostElement}}))};
_.F.onDismissTap=function(){this.hostElement.hidden=!0;var M=this.data;M!==void 0&&M.dismissalEndpoint&&_.h().resolve(_.xV).resolveCommand(M.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
hB.prototype.onSelectedResponseIndexChange=hB.prototype.onSelectedResponseIndexChange;hB.prototype.dataChanged=hB.prototype.dataChanged;hB.prototype.onServiceRequestCompleted=hB.prototype.onServiceRequestCompleted;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hB.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],hB.prototype,"messageData",void 0);
_.G([_.H(),_.a("design:type",Number)],hB.prototype,"selectedResponseIndex",void 0);_.G([_.Z3("#submit-button"),_.a("design:type",HTMLButtonElement)],hB.prototype,"submitButton",void 0);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],hB.prototype,"onServiceRequestCompleted",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hB.prototype,"dataChanged",null);
_.G([_.xB("selectedResponseIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hB.prototype,"onSelectedResponseIndexChange",null);hB=_.G([_.f({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],hB);
_.L(hB,"ytd-feedback-elicitation-single-question-renderer",function(){if(Plb!==void 0)return Plb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Plb=M},{mode:1});var ofG;var Qj=function(){return _.n.apply(this,arguments)||this};
_.v(Qj,_.n);Qj.prototype.computeThumbnailWidth=function(M){return M?602:428};
Qj.prototype.updateWideFromBinding=function(M){this.wide=M.detail.value};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],Qj.prototype,"wide",void 0);Qj=_.G([_.f({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Qj);
_.L(Qj,"ytd-newspaper-hero-video-renderer",function(){if(ofG!==void 0)return ofG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ofG=M},{mode:1});var rDP;var q3=function(){return _.n.apply(this,arguments)||this};
_.v(q3,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q3.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q3.prototype,"data",void 0);q3=_.G([_.f({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],q3);
_.L(q3,"ytd-newspaper-mini-video-renderer",function(){if(rDP!==void 0)return rDP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return rDP=M},{mode:1});var KmD;_.pO("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var IK=function(){return _.n.apply(this,arguments)||this};
_.v(IK,_.n);IK.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"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IK.prototype,"data",void 0);IK=_.G([_.f({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],IK);
_.L(IK,"ytd-newspaper-renderer",function(){if(KmD!==void 0)return KmD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return KmD=M},{mode:1});var yDJ;_.pO("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var vb=function(){var M=_.n.apply(this,arguments)||this;M.isSegment=!1;M.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};M.nextContinuation={continuationType:"playlistVideoListContinuation"};return M};
_.v(vb,_.n);_.F=vb.prototype;_.F.attached=function(){_.h();var M;(M=_.h().resolve(_.CF(_.yl)))!=null&&(M.playlistVideoListElement=this.hostElement)};
_.F.detached=function(){var M;(M=_.h().resolve(_.CF(_.yl)))!=null&&(M.playlistVideoListElement=void 0);M=_.h().resolve(_.CF(_.L0));_.Q("web_enable_voting_animation")&&M&&(M.parentElem=void 0,M.videos=[],M.continuationsPresent=!1,M.showRefreshPill=!1)};
_.F.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"}}}}}};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.F.dataChanged=function(){var M=_.h().resolve(_.CF(_.L0));if(_.Q("web_enable_voting_animation")&&this.data&&M){var d=_.K(this.hostElement).querySelector("#contents");d&&(M.parentElem=d);M.addVideos(this.data.contents)}_.LBJ(this.ytReorderableBehavior)};
_.F.onRendererstamperFinished=function(){this.canReorder&&_.toV(this.ytReorderableBehavior,_.K(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.F.onPlaylistReloading=function(){this.isReloading=!0};
_.F.onUpdateSetVideoId=function(M){if(M.detail&&this.data&&this.data.contents){var d=M.detail;M=this.data.contents.findIndex(function(X){var A;return((A=X.playlistVideoRenderer)==null?void 0:A.videoId)===d.videoId});
if(!(M<0)&&d.setVideoId&&(this.set("data.contents."+M+".playlistVideoRenderer.setVideoId",d.setVideoId),_.Q("web_enable_voting_animation"))){var N;if(M=_.q((N=this.data.contents[M].playlistVideoRenderer)==null?void 0:N.engagementBar,_.pM2)){var R;(R=M.actions)==null||R.forEach(function(X){if(X=_.q(X,_.m7N))X.itemId=d.setVideoId})}(N=_.h().resolve(_.CF(_.L0)))&&FmG(N,d.videoId,d.setVideoId)}}};
_.F.computeContentsClass=function(M){return M?"reloading":""};
_.F.computeIsSortable=function(M,d){return M&&d>0&&!this.isSegment&&!_.Q("shorts_in_playlists_web")};
_.F.computeIsEditable=function(M){return M};
_.F.computeCanReorder=function(M){return M};
_.F.handlePlaylistRemoveVideosAction=function(M){if(this.get("playlistRemoveVideosAction.setVideoIds",M)&&this.data&&this.data.contents){M=_.q(M,_.UIV).setVideoIds;for(var d=this.data.contents.length-1;d>=0;){var N=this.data.contents[d].playlistVideoRenderer;N&&N.setVideoId&&M.includes(N.setVideoId)&&this.splice("data.contents",d,1);d--}_.ZI(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.F.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".playlistVideoRenderer.index",_.ep(String(M+1)))};
_.F.handleDrop=function(M){M=M.currDragItem;var d=_.er(M.parentNode.childNodes,M),N=this.data.contents.splice(Number(_.HD(M.data.index))-1,1)[0];this.data.contents.splice(d,0,N);d=d?this.get("contents."+(d-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();M=this.buildReorderServiceEndpoint(M.data.setVideoId,d);this.ytComponentBehavior.resolveCommand(M)};
_.F.buildReorderServiceEndpoint=function(M,d){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",M),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",d),this.data.onReorderEndpoint):null};
_.F.handleUpdatePlaylistAction=function(M){var d;(M=_.q((d=_.q(M,_.uW3))==null?void 0:d.updatedRenderer,_.$mm))&&this.canReorder!==M.canReorder&&this.set("data.canReorder",M.canReorder);M&&M.contents&&(this.set("data.contents",M.contents),this.isReloading=!1);M&&M.continuations&&this.set("data.continuations",M.continuations)};
_.F.handleAddRendererToItemSectionAction=function(M){var d,N=(d=_.q(M,BeG))==null?void 0:d.renderer,R;N&&((R=_.q(M,BeG))==null?void 0:R.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,N),M=_.h().resolve(_.CF(_.L0)),_.Q("web_enable_voting_animation")&&M&&(N&&(d=_.wMA(N))&&M.recommendedVideos.push({itemId:d,videoId:_.hYj(N),voteCount:_.Q$i(N),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.F.isVotingEnabledOnPlaylist=function(M){if(!M)return!1;M=_.V(M);for(M=M.next();!M.done;M=M.next()){var d=void 0;return!!_.q((d=M.value.playlistVideoRenderer)==null?void 0:d.engagementBar,_.pM2)}return!1};
_.F.onAppendContinuationItemsActionFinished=function(){var M;this.isVotingEnabledOnPlaylist((M=this.data)==null?void 0:M.contents)&&(this.updateIndices(),M=_.h().resolve(_.CF(_.L0)),_.Q("web_enable_voting_animation")&&M&&this.data&&M.addVideos(this.data.contents))};
_.F.updateVideoData=function(M){if(M.detail&&this.data&&this.data.contents){var d=M.detail;M=d.toIdx;var N=d.itemId,R=d.newVoteCount,X=d.voteStatus;d=d.hideItem;var A,l,k=(A=this.data)==null?void 0:(l=A.contents)==null?void 0:l.findIndex(function(p){return _.wMA(p)===N});
if(!(k<0)){A=this.data.contents[k];var T;if((T=A.playlistVideoRenderer)==null?0:T.voteCount)A.playlistVideoRenderer.voteCount=R;var W;if(T=_.q((W=A.playlistVideoRenderer)==null?void 0:W.engagementBar,_.pM2)){var w;(w=T.actions)==null||w.forEach(function(p){(p=_.q(p,_.m7N))&&p.initialState&&(p.initialState.votes=R,p.initialState.status=X)})}this.data.contents.splice(k,1);
d||this.data.contents.splice(M,0,A);this.updateIndices()}}};
vb.prototype.updateVideoData=vb.prototype.updateVideoData;vb.prototype.onAppendContinuationItemsActionFinished=vb.prototype.onAppendContinuationItemsActionFinished;vb.prototype.onUpdateSetVideoId=vb.prototype.onUpdateSetVideoId;vb.prototype.onPlaylistReloading=vb.prototype.onPlaylistReloading;vb.prototype.onRendererstamperFinished=vb.prototype.onRendererstamperFinished;vb.prototype.dataChanged=vb.prototype.dataChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],vb.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],vb.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.S(_.GwJ),_.a("design:type",Object)],vb.prototype,"ytReorderableBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],vb.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],vb.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vb.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],vb.prototype,"isReloading",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vb.prototype,"isSegment",void 0);_.G([_.H({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.a("design:type",Boolean)],vb.prototype,"isSortable",void 0);_.G([_.H({computed:"computeIsEditable(data.isEditable)"}),_.a("design:type",Boolean)],vb.prototype,"isEditable",void 0);_.G([_.H({computed:"computeCanReorder(data.canReorder)"}),_.a("design:type",Boolean)],vb.prototype,"canReorder",void 0);
_.G([_.H({value:101}),_.a("design:type",Number)],vb.prototype,"scrollMargin",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vb.prototype,"dataChanged",null);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vb.prototype,"onRendererstamperFinished",null);
_.G([_.C3("yt-playlist-reloading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vb.prototype,"onPlaylistReloading",null);_.G([_.C3("yt-update-set-video-id"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],vb.prototype,"onUpdateSetVideoId",null);
_.G([_.C3("yt-append-continuation-items-action-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vb.prototype,"onAppendContinuationItemsActionFinished",null);_.G([_.C3("yt-update-video-data-voting-animation"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],vb.prototype,"updateVideoData",null);vb=_.G([_.f({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],vb);
_.L(vb,"ytd-playlist-video-list-renderer",function(){if(yDJ!==void 0)return yDJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return yDJ=M},{mode:_.G3("kevlar_poly_si_batch_j047")?1:2});var JDi;var Or=function(){return _.n.apply(this,arguments)||this};
_.v(Or,_.n);Or.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"}}}}};
Or.prototype.onTextWrapperTap=function(M){var d=this.data&&this.data.navigationEndpoint;d&&!_.Sm(_.J2(M),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.YP(this.hostElement,"yt-navigate",{endpoint:d})};
Or.prototype.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");M&&M.commandMetadata&&_.q(M.commandMetadata,_.vq)&&_.q(M.commandMetadata,_.vq).fireAutomatically&&_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})};
Or.prototype.dataChanged=Or.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Or.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Or.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ck),_.a("design:type",Object)],Or.prototype,"ytdLockupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Or.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],Or.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],Or.prototype,"biggerThumbsStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Or.prototype,"leftAligned",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Or.prototype,"dataChanged",null);Or=_.G([_.f({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Or);
_.L(Or,"ytd-movie-renderer",function(){if(JDi!==void 0)return JDi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return JDi=M},{mode:1});var cDT;var j_=function(){var M=_.n.apply(this,arguments)||this;M.rounded=!0;M.pageAttachedTo=void 0;M.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return M};
_.v(j_,_.n);j_.prototype.attached=function(){this.pageAttachedTo=_.h().resolve(_.em).getCurrentPage();_.YP(this.hostElement,"yt-player-attached",this.player)};
j_.prototype.detached=function(){var M;if((M=this.pageAttachedTo)==null?0:M.hostElement)_.YP(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
j_.prototype.dataChanged=function(){var M;if((M=this.data)==null?0:M.videoId)M={video_id:this.data.videoId,autoplay:!0},!_.Q("miniplayer_stop_channel_video_autoplay_killswitch")&&_.h().resolve(_.et).isMiniplayerActive()&&(M.pause_at_start=!0,M.autoplay=!1),this.player.loadVideoWithPlayerVars(M)};
j_.prototype.handleSignalActionPausePlayer=function(){_.iG().pause()};
j_.prototype.dataChanged=j_.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],j_.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],j_.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],j_.prototype,"rounded",void 0);_.G([_.Z3("#player"),_.a("design:type",Object)],j_.prototype,"player",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],j_.prototype,"dataChanged",null);j_=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],j_);
_.L(j_,"ytd-channel-video-player-renderer",function(){if(cDT!==void 0)return cDT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return cDT=M},{mode:1});var Sa4;var zPi;var bii;var sr=function(){var M=_.n.apply(this,arguments)||this;M.playing=!1;M.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.d3(M);M.active=!1;return M};
_.v(sr,_.n);_.F=sr.prototype;_.F.detached=function(){this.stop()};
_.F.play=function(){var M=this,d,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return M.active=!0,d=M.get("data.inlinePlaybackEndpoint.watchEndpoint"),N=d.videoId||M.data.videoId,R=d.startTimeSeconds||0,X=d.playerParams||null,_.Q("kevlar_player_update_killswitch")?_.D(l,M.playerEl.update({args:{video_id:N,startSeconds:R,player_params:X}}),2):(M.playerEl.loadVideoWithPlayerVars({video_id:N,startSeconds:R,player_params:X,autoplay:!0}),l.jumpTo(2));if(l.nextAddress!=4)return _.D(l,M.playerEl.getPlayerPromise(),
4);A=l.yieldResult;A.unloadModule("annotations_module");A.addEventListener("onStateChange",function(k){M.onPlayerStateChange(k)});
_.Vy(l)})};
_.F.onPlayerStateChange=function(M){if(this.active)switch(this.playing=M===1,M){case 1:_.YP(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.YP(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.F.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.F.resize=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.playerEl.getPlayerPromise(),2);d=N.yieldResult;d.setSize(NaN,NaN);_.Vy(N)})};
_.G([_.H(),_.a("design:type",Object)],sr.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sr.prototype,"playing",void 0);_.G([_.H(),_.a("design:type",Object)],sr.prototype,"playerId",void 0);_.G([_.Z3("#player"),_.a("design:type",Object)],sr.prototype,"playerEl",void 0);sr=_.G([_.f({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],sr);
_.L(sr,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(bii!==void 0)return bii;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return bii=M},{mode:1});var eP$;var HiT;var Pb=function(){var M=_.n.apply(this,arguments)||this;M.width=0;return M};
_.v(Pb,_.n);_.F=Pb.prototype;_.F.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ux(this,this.onEnded));this.mp4El.addEventListener("error",_.ux(this,this.onError))};
_.F.detached=function(){this.videoEl.removeEventListener("ended",_.ux(this,this.onEnded));this.mp4El.removeEventListener("error",_.ux(this,this.onError))};
_.F.play=function(){var M=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var d=this.videoEl.play();d?d.then(function(){M.handleVideoStartPlaying()}).catch(function(){_.YP(M.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.YP(this.hostElement,"yt-video-thumbnail-not-playing")};
_.F.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.F.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.F.dataChanged=function(){var M;if((M=this.data)==null?0:M.thumbnailPlaceholder)M=_.Hz(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+M+")";this.stop();this.autoplay&&this.play()};
_.F.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.F.onEnded=function(){this.stop();_.YP(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.F.onError=function(){_.YP(this.hostElement,"yt-video-thumbnail-error")};
_.F.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.F.getVideoThumbnail=function(M){if(M&&M.length)return M[0]};
Pb.prototype.dataChanged=Pb.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],Pb.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Pb.prototype,"animatePlaceholderOnEntrance",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Pb.prototype,"autoplay",void 0);_.G([_.H({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.a("design:type",Object)],Pb.prototype,"videoThumbnail",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Pb.prototype,"loop",void 0);_.G([_.H(),_.a("design:type",Boolean)],Pb.prototype,"isVideoPlaying",void 0);_.G([_.H(),_.a("design:type",Object)],Pb.prototype,"width",void 0);_.G([_.Z3("#mp4"),_.a("design:type",HTMLElement)],Pb.prototype,"mp4El",void 0);_.G([_.Z3("#placeholder"),_.a("design:type",HTMLElement)],Pb.prototype,"placeholderEl",void 0);_.G([_.Z3("#video"),_.a("design:type",HTMLVideoElement)],Pb.prototype,"videoEl",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pb.prototype,"dataChanged",null);Pb=_.G([_.w4({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Pb);
_.L(Pb,"yt-video-as-thumbnail-details",function(){if(HiT===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;eP$===void 0&&(eP$=document.createElement("template"));var R=eP$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);HiT=M}M=HiT;return M},{mode:2});var oK=function(){var M=_.n.apply(this,arguments)||this;M.disableGridStateAware=!1;M.animationEnabled=_.Q("enable_web_ketchup_hero_animation");M.transitioningOut=!1;M.narrow=!1;M.narrower=!1;M.isCarouselInFeed=!1;M.videoTimeoutJobId=0;M.panelTimeoutJobId=0;M.panelTimeoutJobStartMs=0;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.v(oK,_.n);_.F=oK.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.F.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var M;this.player&&((M=this.data)==null?0:M.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.F.attached=function(){this.onWindowResized()};
_.F.detached=function(){this.clearTimeouts()};
_.F.onWindowResized=function(){this.updateSize()};
_.F.computePanelLayout=function(M){return M&&M.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.F.playVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.play();var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.play()};
_.F.stopVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.stop();var d;this.player&&((d=this.data)==null?0:d.inlinePlaybackRenderer)&&this.player.stop()};
_.F.transitionOut=function(){var M=this;this.transitioningOut=!0;return new Promise(function(d){var N=function(){_.K(M.hostElement).querySelector("#action-button").removeEventListener("animationend",N);_.IQ.cancelJob(R);d();M.transitioningOut=!1};
var R=_.gL(_.IQ,N,1E3);_.K(M.hostElement).querySelector("#action-button").addEventListener("animationend",N);M.player&&(M.player.playing=!1)})};
_.F.computeMetadataOrder=function(M){return M&&M.metadataOrder&&M.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?M.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.F.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.F.computeAvatarSize=function(M){return M&&M.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.F.onContentClick=function(M){if(!_.Sm(_.J2(M),this.hostElement,["A".toString(),"BUTTON".toString()])){var d;if((d=this.data)==null?0:d.navigationEndpoint){var N;this.componentBehavior.resolveCommand((N=this.data)==null?void 0:N.navigationEndpoint)}}};
_.F.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.F.setBackgroundImage=function(M){if(M=this.getBackgroundImageUrl(M))_.K(this.hostElement).querySelector("#hero").style.backgroundImage="url("+M+")"};
_.F.setScrimLayer=function(M){var d=this.getScrimLayerColorStops(M);M=((M==null?void 0:M.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(M=180);_.rK("HTML_DIR")==="rtl"&&(M=-M);d&&(_.K(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+M+"deg, "+d+")")};
_.F.isNarrower=function(){return this.hostElement.clientWidth<oK.NARROW_VERSION_SIZE};
_.F.getScrimLayerColorStops=function(){var M,d=(M=this.data)==null?void 0:M.scrimColorValues;if(!d)return null;if(d.length===1)return M=_.ml(d[0]),M+" 0%, "+M+" 100%";if(d.length===3){var N=[0,72,98];return d.map(function(R,X){return _.ml(R)+" "+N[X]+"%"}).join(",")}return null};
_.F.getBackgroundImageUrl=function(M){return M&&M.largeFormFactorBackgroundThumbnail?_.Hz((M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.F.onPlaying=function(){this.startVideoTimeout()};
_.F.onEnded=function(){this.rotate()};
_.F.startPanelTimeout=function(){var M=this;if(!this.panelTimeoutJobId){var d=this.get("data.minPanelDisplayDurationMs");d&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.gL(_.IQ,function(){M.rotate()},d))}};
_.F.startVideoTimeout=function(){var M=this;if(!this.videoTimeoutJobId){_.IQ.cancelJob(this.panelTimeoutJobId);var d=Date.now()-this.panelTimeoutJobStartMs;d=Math.max(0,this.get("data.minPanelDisplayDurationMs")-d);d=Math.max(this.get("data.minVideoPlayDurationMs")||0,d);this.videoTimeoutJobId=_.gL(_.IQ,function(){M.rotate()},d)}};
_.F.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.IQ.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.IQ.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.F.rotate=function(){this.clearTimeouts();_.YP(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Hm.Object.defineProperties(oK.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#video")}}});
_.Hm.Object.defineProperties(oK,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
oK.prototype.onEnded=oK.prototype.onEnded;oK.prototype.onPlaying=oK.prototype.onPlaying;oK.prototype.dataChanged=oK.prototype.dataChanged;_.G([_.S(_.ok),_.a("design:type",Object)],oK.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],oK.prototype,"componentBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],oK.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.f5L),_.a("design:type",Object)],oK.prototype,"ytBooleanLogicBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"disableGridStateAware",void 0);_.G([_.H(),_.a("design:type",Object)],oK.prototype,"data",void 0);_.G([_.H({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.a("design:type",String)],oK.prototype,"panelLayout",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"animationEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"transitioningOut",void 0);
_.G([_.H({computed:"computeMetadataOrder(data)"}),_.a("design:type",Boolean)],oK.prototype,"metadataOrder",void 0);_.G([_.H({computed:"computeByline(data)"}),_.a("design:type",Object)],oK.prototype,"byline",void 0);_.G([_.H({computed:"computeAvatarSize(data)"}),_.a("design:type",Number)],oK.prototype,"avatarSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"narrow",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"narrower",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"layoutStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],oK.prototype,"isCarouselInFeed",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oK.prototype,"dataChanged",null);_.G([_.C3("yt-default-promo-panel-renderer-playing"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oK.prototype,"onPlaying",null);
_.G([_.C3("yt-default-promo-panel-renderer-ended"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oK.prototype,"onEnded",null);oK=_.G([_.f({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],oK);
_.L(oK,"ytd-default-promo-panel-renderer",function(){if(zPi!==void 0)return zPi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zPi=M},{mode:1});_.pO("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var r8=function(){var M=_.n.apply(this,arguments)||this;M.narrower=!1;M.dotMenuVisible=!1;M.paginationThumbnailsVisible=!1;M.active=!0;M.disableGridStateAware=!1;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.v(r8,_.n);_.F=r8.prototype;_.F.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]]"}}}}}};
_.F.attached=function(){this.onWindowResized()};
_.F.detached=function(){this.jobId&&_.IQ.cancelJob(this.jobId);this.updateSizeJobId&&_.IQ.cancelJob(this.updateSizeJobId)};
_.F.onWindowResized=function(){this.updateSize()};
_.F.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.F.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.F.setCarouselItem=function(M){M>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.IQ.cancelJob(this.jobId);var d=this.getCurrentPanelElement();d&&d.stopVideo();this.currentItemIndex=M%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(d||(d=this.getCurrentPanelElement()),d.playVideo()):this.startRotationJob()};
_.F.scrollThumbnails=function(M){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var d=this.getCurrentPaginationElement();if(d){var N=_.K(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?N.style.transform="translateX(0)":(d=d.offsetWidth+8,N.style.transform="translateX(-"+d*(M-Math.ceil(Math.floor(this.overlay.offsetWidth/d)/2)+1)+"px)")}}};
_.F.onDataChanged=function(){var M=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.m$(_.IQ,function(){M.getCurrentPanelElement().updateSize();M.updateSize()}))};
_.F.getCurrentPanelElement=function(){return _.K(_.K(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.F.getCurrentPaginationElement=function(){return _.K(_.K(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.F.getNavigationClass=function(M,d){return M===d?"selected":""};
_.F.getNavigationDurationStyle=function(M){return"animation-duration:"+(this.get("data.carouselItems."+M+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.F.onNavigationTap=function(M){var d=this,N=M.model.index;N!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){d.setCarouselItem(N)}),this.autorotateActive=!1)};
_.F.onVideoThumbnailEnded=function(){var M=this;if(this.shouldRotate()){var d=this.getCurrentPaginationElement();d&&(d.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){d.classList.remove("finished");M.setNextCarouselItem()}))}};
_.F.onVideoThumbnailError=function(){this.startRotationJob()};
_.F.onVideoNotPlaying=function(){this.startRotationJob()};
_.F.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.F.startRotationJob=function(){var M=this;_.IQ.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.IQ.addLowPriorityJob(function(){M.getCurrentPanelElement().transitionOut().then(function(){M.setNextCarouselItem()})},this.rotationTimeout))};
_.F.computeDotMenuVisible=function(M,d){return!!M&&!!M.carouselItems&&M.carouselItems.length>1&&!M.paginationThumbnails||!!d};
_.F.computePaginationThumbnailsVisible=function(M,d){var N,R;return((R=M==null?void 0:(N=M.paginationThumbnails)==null?void 0:N.length)!=null?R:0)>1&&!d};
_.F.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.F.computePaginatorAlignment=function(M){return(M==null?void 0:M.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.F.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.F.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.F.isNarrower=function(M){return(M!=null?M:0)<oK.NARROW_VERSION_SIZE};
r8.prototype.activeChanged=r8.prototype.activeChanged;r8.prototype.onVideoNotPlaying=r8.prototype.onVideoNotPlaying;r8.prototype.onVideoThumbnailError=r8.prototype.onVideoThumbnailError;r8.prototype.onVideoThumbnailEnded=r8.prototype.onVideoThumbnailEnded;r8.prototype.onDataChanged=r8.prototype.onDataChanged;_.G([_.S(_.ok),_.a("design:type",Object)],r8.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],r8.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],r8.prototype,"currentItem",void 0);
_.G([_.H(),_.a("design:type",Number)],r8.prototype,"currentItemIndex",void 0);_.G([_.H(),_.a("design:type",Number)],r8.prototype,"rotationTimeout",void 0);_.G([_.H(),_.a("design:type",Number)],r8.prototype,"loopCount",void 0);_.G([_.H({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.a("design:type",String)],r8.prototype,"paginatorAlignment",void 0);_.G([_.H(),_.a("design:type",Number)],r8.prototype,"jobId",void 0);
_.G([_.H(),_.a("design:type",Number)],r8.prototype,"updateSizeJobId",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],r8.prototype,"isCarouselInFeed",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"narrower",void 0);_.G([_.H({computed:"computeDotMenuVisible(data, narrower)"}),_.a("design:type",Object)],r8.prototype,"dotMenuVisible",void 0);
_.G([_.H({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.a("design:type",Object)],r8.prototype,"paginationThumbnailsVisible",void 0);_.G([_.H({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.a("design:type",String)],r8.prototype,"layoutType",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],r8.prototype,"autorotateActive",void 0);_.G([_.H(),_.a("design:type",Object)],r8.prototype,"active",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],r8.prototype,"disableGridStateAware",void 0);_.G([_.Z3("#overlay"),_.a("design:type",HTMLElement)],r8.prototype,"overlay",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"onDataChanged",null);
_.G([_.C3("yt-video-thumbnail-ended"),_.C3("yt-default-promo-panel-renderer-rotate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"onVideoThumbnailEnded",null);_.G([_.C3("yt-video-thumbnail-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"onVideoThumbnailError",null);
_.G([_.C3("yt-video-thumbnail-not-playing"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"onVideoNotPlaying",null);_.G([_.NS("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],r8.prototype,"activeChanged",null);r8=_.G([_.f({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],r8);
_.L(r8,"ytd-carousel-item-renderer",function(){if(Sa4!==void 0)return Sa4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Sa4=M},{mode:2});var nfr;var iir;var f8C;var Lm4;var Kw=function(){var M=_.n.apply(this,arguments)||this;M.originalQuery=null;M.originalEndpoint=null;return M};
_.v(Kw,_.n);Kw.prototype.computeShowOriginalQueryWithoutEndpoint_=function(M,d){return!(!M||d)};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Kw.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"correctedText",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"correctedQuery",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"correctedEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"originalText",void 0);_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"originalQuery",void 0);
_.G([_.H(),_.a("design:type",Object)],Kw.prototype,"originalEndpoint",void 0);_.G([_.H({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.a("design:type",Boolean)],Kw.prototype,"showOriginalQueryWithoutEndpoint",void 0);Kw=_.G([_.w4({is:"yt-search-query-correction",disableElementRegistration:!0})],Kw);
_.L(Kw,"yt-search-query-correction",function(){if(Lm4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;f8C===void 0&&(f8C=document.createElement("template"));var R=f8C;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Lm4=M}M=Lm4;return M},{mode:2});_.pO("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var yj=function(){return _.n.apply(this,arguments)||this};
_.v(yj,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yj.prototype,"data",void 0);yj=_.G([_.w4({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],yj);
_.L(yj,"yt-did-you-mean-renderer",function(){if(iir===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;nfr===void 0&&(nfr=document.createElement("template"));var R=nfr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);iir=M}M=iir;return M},{mode:2});var tRb;var GdP;_.pO("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var JB=function(){return _.n.apply(this,arguments)||this};
_.v(JB,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JB.prototype,"data",void 0);JB=_.G([_.w4({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],JB);
_.L(JB,"yt-including-results-for-renderer",function(){if(GdP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;tRb===void 0&&(tRb=document.createElement("template"));var R=tRb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);GdP=M}M=GdP;return M},{mode:2});var a8e;var Ut4;_.pO("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var cb=function(){return _.n.apply(this,arguments)||this};
_.v(cb,_.n);cb.prototype.computeExtraClasses_=function(M,d){var N="";M&&(N+=" "+M.toLowerCase().replace(/_/g,"-"));d&&(N+=" "+d.toLowerCase().replace(/_/g,"-"));return N};
cb.prototype.computeUrlImg_=function(){var M=this.data;M.image&&(_.K(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Hz(M.image.thumbnails,Number.MAX_VALUE)+")")};
cb.prototype.computeUrlImg_=cb.prototype.computeUrlImg_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cb.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cb.prototype,"computeUrlImg_",null);cb=_.G([_.w4({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],cb);
_.L(cb,"yt-music-pass-feature-info-renderer",function(){if(Ut4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;a8e===void 0&&(a8e=document.createElement("template"));var R=a8e;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ut4=M}M=Ut4;return M},{mode:2});var u9i;var ClD;_.pO("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var S_=function(){return _.n.apply(this,arguments)||this};
_.v(S_,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S_.prototype,"data",void 0);S_=_.G([_.w4({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],S_);
_.L(S_,"yt-no-results-found-showing-results-for-renderer",function(){if(ClD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;u9i===void 0&&(u9i=document.createElement("template"));var R=u9i;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ClD=M}M=ClD;return M},{mode:2});var xt4;var Yai;_.pO("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var zI=function(){return _.n.apply(this,arguments)||this};
_.v(zI,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zI.prototype,"data",void 0);zI=_.G([_.w4({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],zI);
_.L(zI,"yt-results-without-quotes-renderer",function(){if(Yai===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;xt4===void 0&&(xt4=document.createElement("template"));var R=xt4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Yai=M}M=Yai;return M},{mode:2});var Zir;var EfT;_.pO("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var b3=function(){return _.n.apply(this,arguments)||this};
_.v(b3,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],b3.prototype,"data",void 0);b3=_.G([_.w4({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],b3);
_.L(b3,"yt-search-no-results-renderer",function(){if(EfT===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Zir===void 0&&(Zir=document.createElement("template"));var R=Zir;N.call(d,R.content.cloneNode(!0),M.content.firstChild);EfT=M}M=EfT;return M},{mode:2});var Myr;var dDb;_.pO("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var e_=function(){return _.n.apply(this,arguments)||this};
_.v(e_,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e_.prototype,"data",void 0);e_=_.G([_.w4({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],e_);
_.L(e_,"yt-showing-results-for-renderer",function(){if(dDb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Myr===void 0&&(Myr=document.createElement("template"));var R=Myr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);dDb=M}M=dDb;return M},{mode:2});var Nw9;var RGi;var XKe;var FOJ;var Hb=function(){var M=_.n.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.v(Hb,_.n);Hb.prototype.toggleAnswer_=function(M){var d=_.cN(M);d&&d.classList.contains("yt-simple-endpoint")||(M.preventDefault(),M.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Hb.prototype.toggleAnswer_=Hb.prototype.toggleAnswer_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hb.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hb.prototype,"answerExpanded",void 0);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Hb.prototype,"toggleAnswer_",null);
Hb=_.G([_.w4({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Hb);
_.L(Hb,"yt-generic-faq-question-renderer",function(){if(FOJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;XKe===void 0&&(XKe=document.createElement("template"));var R=XKe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);FOJ=M}M=FOJ;return M},{mode:2});_.pO("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var nw=function(){return _.n.apply(this,arguments)||this};
_.v(nw,_.n);nw.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],nw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nw.prototype,"data",void 0);nw=_.G([_.w4({is:"yt-faq-section-renderer",disableElementRegistration:!0})],nw);
_.L(nw,"yt-faq-section-renderer",function(){if(RGi===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Nw9===void 0&&(Nw9=document.createElement("template"));var R=Nw9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);RGi=M}M=RGi;return M},{mode:2});var AHG;var Vyi;_.pO("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var i3=function(){return _.n.apply(this,arguments)||this};
_.v(i3,_.n);
i3.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],i3.prototype,"data",void 0);i3=_.G([_.w4({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],i3);
_.L(i3,"yt-offer-item-expanded-renderer",function(){if(Vyi===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;AHG===void 0&&(AHG=document.createElement("template"));var R=AHG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Vyi=M}M=Vyi;return M},{mode:2});var lXq;var $DD;_.pO("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var fw=function(){return _.n.apply(this,arguments)||this};
_.v(fw,_.n);
fw.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"}}}}};
fw.prototype.computeFullWidthMode=function(M){return!(!M||!M.fullWidthMode)};
fw.prototype.computeBorderlessMode=function(M){return!(!M||!M.borderlessMode)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.a("design:type",Boolean)],fw.prototype,"fullWidthMode",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.a("design:type",Boolean)],fw.prototype,"borderlessMode",void 0);fw=_.G([_.w4({is:"yt-offer-item-renderer",disableElementRegistration:!0})],fw);
_.L(fw,"yt-offer-item-renderer",function(){if($DD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;lXq===void 0&&(lXq=document.createElement("template"));var R=lXq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);$DD=M}M=$DD;return M},{mode:2});var BwC;var kv4;_.pO("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Lw=function(){return _.n.apply(this,arguments)||this};
_.v(Lw,_.n);Lw.prototype.computeAriaLevel_=function(M){return this.getLevelID_(M)};
Lw.prototype.getLevelID_=function(M){return(M=M.match(/[0-9]+$/))&&M.length==1?M[0]:"1"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lw.prototype,"data",void 0);_.G([_.H({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.a("design:type",String)],Lw.prototype,"ariaLevel",void 0);_.G([_.H({value:"heading",reflectToAttribute:!0}),_.a("design:type",String)],Lw.prototype,"role",void 0);
_.G([_.H({value:-1,reflectToAttribute:!0}),_.a("design:type",Number)],Lw.prototype,"tabindex",void 0);Lw=_.G([_.w4({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Lw);
_.L(Lw,"yt-subscription-product-header-renderer",function(){if(kv4===void 0){var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;BwC===void 0&&(BwC=document.createElement("template"));var R=BwC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);kv4=M}M=kv4;return M},{mode:2});var Tw$;var DDP;_.pO("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var tB=function(){return _.n.apply(this,arguments)||this};
_.v(tB,_.n);tB.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:_.md("menuRenderer"),events:!0}}};
tB.prototype.onStampFinished_=function(){_.K(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
tB.prototype.onStampFinished_=tB.prototype.onStampFinished_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tB.prototype,"data",void 0);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tB.prototype,"onStampFinished_",null);
tB=_.G([_.w4({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],tB);
_.L(tB,"yt-subscription-product-renderer",function(){if(DDP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Tw$===void 0&&(Tw$=document.createElement("template"));var R=Tw$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);DDP=M}M=DDP;return M},{mode:2});var gKJ;var WO4;_.pO("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var GI=function(){return _.n.apply(this,arguments)||this};
_.v(GI,_.n);GI.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
GI.prototype.imageScrimColorValuesChanged_=function(){var M,d=(M=this.data)==null?void 0:M.imageScrimColorValues;_.K(this.hostElement).querySelector("#scrim").style.backgroundColor=d?_.ml(d[0]):"transparent"};
GI.prototype.imageScrimColorValuesChanged_=GI.prototype.imageScrimColorValuesChanged_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GI.prototype,"data",void 0);
_.G([_.xB("data.imageScrimColorValues"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],GI.prototype,"imageScrimColorValuesChanged_",null);GI=_.G([_.w4({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],GI);
_.L(GI,"yt-subscription-product-upsell-offer-renderer",function(){if(WO4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;gKJ===void 0&&(gKJ=document.createElement("template"));var R=gKJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);WO4=M}M=WO4;return M},{mode:2});var wK9;var pKq;var mDY;var hGT;var QET;var qJe;var aK=function(){return _.n.apply(this,arguments)||this};
_.v(aK,_.n);aK.prototype.onYtServiceRequestError_=function(M){_.Q8(this.hostElement,M.detail.error.message)};
aK.prototype.onYtServiceRequestError_=aK.prototype.onYtServiceRequestError_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aK.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],aK.prototype,"collapsible",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],aK.prototype,"isManageRed",void 0);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],aK.prototype,"onYtServiceRequestError_",null);aK=_.G([_.w4({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],aK);
_.L(aK,"yt-single-ypc-offer-renderer",function(){if(qJe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;QET===void 0&&(QET=document.createElement("template"));var R=QET;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qJe=M}M=qJe;return M},{mode:2});var Ur=function(){return _.n.apply(this,arguments)||this};
_.v(Ur,_.n);Ur.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ur.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Ur.prototype,"isManageRed",void 0);Ur=_.G([_.w4({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Ur);
_.L(Ur,"yt-single-ypc-offer-list-renderer",function(){if(hGT===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;mDY===void 0&&(mDY=document.createElement("template"));var R=mDY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);hGT=M}M=hGT;return M},{mode:2});var IXD;var vKb;_.pO("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var u3=function(){return _.n.apply(this,arguments)||this};
_.v(u3,_.n);u3.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],u3.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],u3.prototype,"isManageRed",void 0);u3=_.G([_.w4({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],u3);
_.L(u3,"yt-ypc-offers-list-renderer",function(){if(vKb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;IXD===void 0&&(IXD=document.createElement("template"));var R=IXD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vKb=M}M=vKb;return M},{mode:2});_.pO("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Cw=function(){return _.n.apply(this,arguments)||this};
_.v(Cw,_.n);
Cw.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cw.prototype,"data",void 0);Cw=_.G([_.w4({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Cw);
_.L(Cw,"yt-unlimited-manage-subscription-page-renderer",function(){if(pKq===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;wK9===void 0&&(wK9=document.createElement("template"));var R=wK9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);pKq=M}M=pKq;return M},{mode:2});var Ol4;var jEJ;var xR=function(){return _.n.apply(this,arguments)||this};
_.v(xR,_.n);_.F=xR.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.F.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.onKeypress_=function(M){M.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.F.handleHeaderTap_=function(M){M.preventDefault();M.stopPropagation();this.expandOffers_()};
_.F.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.F.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
xR.prototype.dataChanged_=xR.prototype.dataChanged_;_.G([_.S(_.pG),_.a("design:type",Object)],xR.prototype,"ironA11yKeysBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xR.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],xR.prototype,"offersVisible_",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xR.prototype,"dataChanged_",null);xR=_.G([_.w4({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],xR);
_.L(xR,"yt-collapsible-ypc-offer-renderer",function(){if(jEJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Ol4===void 0&&(Ol4=document.createElement("template"));var R=Ol4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);jEJ=M}M=jEJ;return M},{mode:2});var sEP;var PFY;_.pO("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var YR=function(){return _.n.apply(this,arguments)||this};
_.v(YR,_.n);_.F=YR.prototype;_.F.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.F.dataChanged_=function(){if(this.data.backgroundImage){var M=_.Hz(this.data.backgroundImage.thumbnails,screen.width),d=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=d?"linear-gradient(180deg, "+d+"), url("+M+")":"url("+M+")";this.data.gtmId&&_.kH(this.data.gtmId,_.rK("GL",""))}};
_.F.onYtServiceRequestError_=function(M){_.Q8(this.hostElement,M.detail.error.message)};
_.F.getScrimLayerColorStops_=function(){var M,d,N=(M=this.data.unlimitedHeaderV2Data)==null?void 0:(d=M.unlimitedHeaderV2Data)==null?void 0:d.scrimLayerColors;if(!N)return null;var R=100/N.length;return N.map(function(X,A){A*=R;return _.ml(X)+" "+A+"%"}).join(",")};
_.F.computeLogoWithPadding=function(M){var d,N,R;return(M=(d=M.unlimitedLogoImage)==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
YR.prototype.onYtServiceRequestError_=YR.prototype.onYtServiceRequestError_;YR.prototype.dataChanged_=YR.prototype.dataChanged_;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.G([_.H({computed:"computeLogoWithPadding(data)"}),_.a("design:type",Boolean)],YR.prototype,"logoWithPadding",void 0);
_.G([_.H(),_.a("design:type",Object)],YR.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YR.prototype,"dataChanged_",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],YR.prototype,"onYtServiceRequestError_",null);YR=_.G([_.w4({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],YR);
_.L(YR,"yt-unlimited-page-header-renderer",function(){if(PFY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;sEP===void 0&&(sEP=document.createElement("template"));var R=sEP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);PFY=M}M=PFY;return M},{mode:2});var oK$;var rHd;_.pO("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ZT=function(){return _.n.apply(this,arguments)||this};
_.v(ZT,_.n);ZT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZT.prototype,"data",void 0);ZT=_.G([_.w4({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ZT);
_.L(ZT,"yt-unlimited-user-notification-renderer",function(){if(rHd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;oK$===void 0&&(oK$=document.createElement("template"));var R=oK$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rHd=M}M=rHd;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ZED=_.SG(function(M){var d=_.cu(M,{numberOfChips:5}).numberOfChips;return _.g("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.g(_.TN,{each:function(){return Array(d==null?void 0:d())}},function(){return _.g("div",{class:"ytGhostChipShelfChip"})}))},"Vf");_.EYD=_.SG(function(M){var d=_.EL(),N=_.h().resolve(_.rk);_.QD(function(){requestAnimationFrame(function(){var X;(X=d.lottieEl)==null||X.addEventListener("DOMLoaded",function(){var A;(A=M.onLottieLoaded)==null||A.call(M)})})});
var R={};return _.g("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var X;return((X=M.data)==null?void 0:X.call(M).targetId)||""}},_.g(_.Yj,{className:_.xj((R.ytChatLoadingViewModelRtl=N==="rtl",R)),
animationName:"YOUCHAT_LOADER",data:function(){var X;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((X=M.data)==null?void 0:X.call(M).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:d}))},"Wf");
}catch(e){_._DumpException(e)}
try{
var rwC,Ki9,ywG,Jw$,cwP,Sq4,zOT,iF,fl,eOq,Hyi,n4J,fue,xyC,Ll,CC4,Gt$,ute,Uyb,aui,tMY,Yq9,ZyG,E4b,Mzd,tH,dQP,Nxr,Ryd,lLY,VzG,A8i,XUG,FxD,$Qr,Bxi,k5P,TxJ,DQ4,pU9,QW4,qsi,IL$,Oki,sWb,oaJ,r8J,Kxi,y8T,c8G,SsP,zyD,bkd,ey9,HkC,na9,fL4,aLG,G5Y,Lx$,UQ$,tzJ,uxC,Zkb,Ys4,C_D,xQT,UJ,EaJ,N0G,lKq,$Fe,B09,kTb,T0i,DFr,gTC,WFG,wg4,pgC,hM$,Q4q,qoe,byP,FF$;
_.HK=function(M){var d=new _.WJ("Error accessing DB");return _.nyS().then(function(N){return new Promise(function(R,X){try{var A=N.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(M);A.onsuccess=function(){var l=A.result;R(l?l.value:null)};
A.onerror=function(){d.params={key:M,source:"onerror"};X(d)}}catch(l){d.params={key:M,
thrownError:String(l)},X(d)}})},function(){return null})};
_.o4G=function(M,d){var N=_.wxj(d);N!=="javascript:"&&N!=="data:"&&M.setAttribute("href",d)};
rwC=function(M,d){return _.Rz(M.entities,"flowStateEntity",d)};
Ki9=function(M){return(M=M.getOption("captions","track"))?!!M.displayName:!1};
ywG=function(M,d){d=d.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(d==null||!d.length)return M;var N=d.filter(function(l){return l});
d=M.filter(function(l){return l.languageCode.startsWith("en")});
N=_.V(N);for(var R=N.next();!R.done;R=N.next())if(R=R.value,d.length){var X=d[0],A=Object.assign({},X);X.languageCode!==R.languageCode&&(A.displayName=X.languageName+" >> "+R.languageName,A.translationLanguage=R,M.push(A))}return M};
Jw$=function(M){var d,N=(d=M.getOption("captions","tracklist",{includeAsr:!0}))!=null?d:[];_.Q("mweb_watch_captions_enable_auto_translate")&&(N=ywG(N,M));return N};
cwP=function(M){return _.Sr(M,function(d){return d.languageCode==="en"})};
Sq4=function(M){var d=nl;if(Ki9(M))M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{});else{var N=_.Sr(Jw$(M),function(R){return R.displayName===d});
M.setOption("captions","track",N)}};
zOT=function(M){if(!M)return 0;var d=M.getPresentingPlayerType(),N=M.getVideoData();return N&&N.isLive?(M=M.getProgressState(d),M.seekableEnd-M.seekableStart):M.getDuration(d)};
iF=function(M,d){_.ca(d,M,function(){return byP[d]},function(N){byP[d]=N;
if(!_.Q("mweb_player_ve_show_ks")){var R=_.Ou(0);R&&N&&_.SD(R,N)}})};
fl=function(M){(M=byP[M])&&_.XD(_.Nx(),M)};
eOq=function(M,d){for(var N=_.V(Object.keys(M)),R=N.next();!R.done;R=N.next())if(R=R.value,M[R]!==d[R])return!1;return!0};
Hyi=function(){return document.getElementById("player-control-overlay")};
n4J=function(M){M!==-1&&!_.Q("player_controls_log_creation_killswitch")&&Hyi()&&(_.v1("pcu_cs",M),_.v1("pcu_ce"))};
fue=function(M){return _.g("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(M.subscribeButton?[M.subscribeButton,M.channelAccess]:[M.channelAccess]).map(function(d){return _.g("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.g("div",{class:"yt-profile-identity-info-view-model-wiz--button"},iy$(d)))}))};
_.Lii=function(M){var d=M.data;M=M.hideDivider;var N={};N=(N["yt-profile-identity-info-view-model-wiz__frame"]=!0,N["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!d.channelBanner,N);N={class:_.ZH(N)};var R,X={imageBannerViewModel:{image:(R=d.channelBanner)==null?void 0:R.image,style:"IMAGE_BANNER_STYLE_INSET"}};R=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},d.channelBanner?_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
iy$(X,{imageBannerViewModel:{isPositionRelative:!0}})):null);X=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},iy$(d.avatar));var A;var l=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},d.channelDisplayName),d.verifiedOrOacBadge?_.g("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.g(_.Jt,{data:{thumbnails:[{url:(A=d.verifiedOrOacBadge)==null?void 0:A.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);A=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},l,iy$(d.threeDotMenu));l=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.g("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.g("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},d.channelHandle),d.channelPronouns&&d.channelHandle?_.g("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.g("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},d.channelPronouns)),_.g("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.g("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},d.leftOfBulletInfo),d.leftOfBulletInfo&&d.rightOfBulletInfo?_.g("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.g("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},d.rightOfBulletInfo)));A=_.g("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},A,l);return _.g("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.g("div",N,R,_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},X,A),d.channelDescription?_.g("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},d.channelDescription):
null,fue(d),M?null:_.g("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
xyC=function(M,d){var N=_.Jy(M,{}),R=tMY("top",d),X=tMY("bottom",d),A=tMY("left",d),l=tMY("right",d);return _.Xc({top:function(){return Ll(N().position,R)},
bottom:function(){return Ll(N().position,X)},
left:function(){return Ll(N().position,A)},
right:function(){return Ll(N().position,l)},
position:function(){return Ll(N().positionType,Gt$)},
height:function(){return Ll(N().height,tH)},
width:function(){return Ll(N().width,tH)},
"min-width":function(){return Ll(N().minWidth,tH)},
"min-height":function(){return Ll(N().minHeight,tH)},
"max-width":function(){return Ll(N().maxWidth,tH)},
"max-height":function(){return Ll(N().maxHeight,tH)},
"aspect-ratio":function(){return Ll(N().aspectRatio,String)},
"margin-top":function(){return Ll(N().margin,R)},
"margin-bottom":function(){return Ll(N().margin,X)},
"margin-left":function(){return Ll(N().margin,A)},
"margin-right":function(){return Ll(N().margin,l)},
"padding-top":function(){return Ll(N().padding,R)},
"padding-bottom":function(){return Ll(N().padding,X)},
"padding-left":function(){return Ll(N().padding,A)},
"padding-right":function(){return Ll(N().padding,l)},
"flex-direction":function(){return Ll(N().flexDirection,aui)},
"justify-content":function(){return Ll(N().justifyContent,Uyb)},
"align-items":function(){return Ll(N().alignItems,ute)},
"flex-grow":function(){return Ll(N().flexGrow,String)},
"flex-shrink":function(){return Ll(N().flexShrink,String)},
"flex-basis":function(){return Ll(N().flexBasis,tH)},
"align-self":function(){return Ll(N().alignSelf,ute)},
"flex-wrap":function(){return Ll(N().flexWrap,CC4)},
"align-content":function(){return Ll(N().alignContent,ute)}})};
Ll=function(M,d){return M!==void 0?d(M):void 0};
CC4=function(M){switch(M){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Gt$=function(M){switch(M){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
ute=function(M){switch(M){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
Uyb=function(M){switch(M){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
aui=function(M){switch(M){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
tMY=function(M,d){var N=d==="rtl";switch(M){case "top":var R=Yq9;break;case "bottom":R=ZyG;break;case "left":R=E4b;break;default:R=Mzd}return function(X){return Ll(R(X,N),tH)}};
Yq9=function(M){var d=M.top;var N=M.vertical;M=M.all;var R;return(R=d!=null?d:N)!=null?R:M};
ZyG=function(M){var d=M.bottom;var N=M.vertical;M=M.all;var R;return(R=d!=null?d:N)!=null?R:M};
E4b=function(M,d){var N=M.left;var R=M.end;var X=M.start;var A=M.horizontal;M=M.all;var l,k;return(k=(l=N!=null?N:d?R:X)!=null?l:A)!=null?k:M};
Mzd=function(M,d){var N=M.right;var R=M.end;var X=M.start;var A=M.horizontal;M=M.all;var l,k;return(k=(l=N!=null?N:d?X:R)!=null?l:A)!=null?k:M};
tH=function(M){var d=M.value;switch(M.unit){case "YPC_DIMENSION_UNIT_POINT":return d+"px";case "YPC_DIMENSION_UNIT_FRACTION":return d+"%";default:return""+d}};
dQP=function(M){switch(M){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
Nxr=function(M){var d=M!=null?M:{};M=d.fontRole;var N=d.fontSize;d=d.fontWeight;if(M!==null&&N!==null)switch(M){case "YPC_FONT_ROLE_DISPLAY":switch(N){case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(N){case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return d===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(N){case "YPC_FONT_SIZE_XL":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return d==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Ryd=function(M,d){return _.Rz(M.entities,"pdpStateEntity",d)};
lLY=function(M,d,N){function R(W){return Object.values(W).map(function(w){var p=w.productId;w=w.pricingOptionIndex;return XUG(X(p).pricingOptions,w).pricingOptionId})}
function X(W){return k().get(W)}
function A(W){W=R(W);N(W)}
var l=FxD([M,d],function(W,w){var p=W==null?void 0:W.selectedPricingOptions;W={};var m=!0;if(p&&w.length)for(var I=_.V(w),O=I.next();!O.done;O=I.next()){O=O.value;var y=A8i(O.pricingOptions,function(c){a:{c=c.pricingOptionId;for(var e=_.V(p),t=e.next();!t.done;t=e.next())if(t.value===c){c=!0;break a}c=!1}return c});
y>=0&&(m=!1,W[O.groupId]={productId:O.productId,pricingOptionIndex:y})}m&&w.length&&(W[w[0].groupId]={productId:w[0].productId,pricingOptionIndex:0});return W}),k=FxD([d],function(W){return new Map(W.map(function(w){return[w.productId,
w]}))}),T=FxD([d],function(W){var w=new Map;
W=_.V(W);for(var p=W.next();!p.done;p=W.next()){var m=p.value;p=m.groupId;var I=m.productId;m=_.V(VzG(m.pricingOptions));for(var O=m.next();!O.done;O=m.next()){var y=_.V(O.value);O=y.next().value;y=y.next().value;w.set(y.pricingOptionId,{groupId:p,productId:I,index:O,pricingOption:y})}}return w});
return{getProductById:X,isProductSelected:function(W){var w=X(W);if(!w)return!1;var p;return((p=l()[w.groupId])==null?void 0:p.productId)===W},
getSelectedPricingOptions:function(){return Object.values(l()).map(function(W){var w=W.productId;W=W.pricingOptionIndex;return XUG(X(w).pricingOptions,W)})},
getSelectedProductByGroupId:function(W){var w;return(W=(w=l()[W])==null?void 0:w.productId)?X(W):void 0},
onProductSelected:function(W){var w=X(W);if(w){var p=l(),m;if(((m=p[w.groupId])==null?void 0:m.productId)!==W){var I,O;m=(O=(I=p[w.groupId])==null?void 0:I.pricingOptionIndex)!=null?O:0;I=0;for(O=w.pricingOptions[Symbol.iterator]();!O.next().done;)++I;I<=m&&(m=0);I={};A(Object.assign({},p,(I[w.groupId]={productId:W,pricingOptionIndex:m},I)))}}},
onPricingOptionSelected:function(W){var w=T().get(W);if(w){W=w.groupId;var p=w.productId;w=w.index;var m=l(),I,O;if(((I=m[W])==null?void 0:I.productId)!==p||((O=m[W])==null?void 0:O.pricingOptionIndex)!==w)I={},A(Object.assign({},m,(I[W]={productId:p,pricingOptionIndex:w},I)))}},
onClearGroupSelected:function(W){var w=l();w[W]&&(w=Object.fromEntries(Object.entries(w).filter(function(p){return _.V(p).next().value!==W})),A(w))}}};
VzG=function(M){return function N(){var R,X,A,l,k;return _.C3Z(N,function(T){switch(T.nextAddress){case 1:_.Nv(T,2),R=0,X=_.V(M),A=X.next();case 4:if(A.done){T.jumpTo(2);break}l=A.value;k=_.x36;return _.D(T,[R++,l],7);case 7:k(T.yieldResult);A=X.next();T.jumpTo(4);break;case 2:_.du(T),_.Xg(T,0)}})}()};
A8i=function(M,d){M=_.V(VzG(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(d(R))return N}return-1};
XUG=function(M,d){M=_.V(VzG(M));for(var N=M.next();!N.done;N=M.next()){var R=_.V(N.value);N=R.next().value;R=R.next().value;if(N===d)return R}};
FxD=function(M,d){var N,R;return function(){for(var X=M.map(function(l){return l()}),A=0;A<X.length;A++)if(!N||X[A]!==N[A]){N=X;
R=d.apply(null,_.wu(X));break}return R}};
$Qr=function(M){var d;return!!(M.productId&&M.groupId&&((d=M.pricingOptions)==null?0:d.length)&&M.pricingOptions.every(function(N){return N.pricingOptionId}))};
Bxi=function(M,d,N){return lLY(M,FxD([d],function(R){return R.filter($Qr)}),N)};
k5P=function(M,d){return d.length===0?[M]:[M.slice(0,d[0]),M.slice(d[0])].filter(function(N){return N.length>0})};
TxJ=function(M){switch(M){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
DQ4=function(M,d,N,R){R=Object.assign({},R);_.gk(R,Gv,{selectedOptionId:M,primaryButtonOverride:N});_.r4().dispatch(_.la("flowStateEntity",d,R))};
_.wU4=function(){if(!gae){var M=_.V(_.d0(new Map,void 0,"UJImUe"));gae=M.next().value;WxY=M.next().value}return gae};
pU9=function(M){if(M)return _.wU4()().get(M)};
_.mQG=function(M,d){if(M&&d){var N=_.wU4();N().set(M,d);M=N();WxY(new Map(M))}};
_.hyd=function(M){return{onSubmit:function(){var d;(d=pU9(M()))==null||d.onSubmit()},
isValid:function(){var d=pU9(M());return d?d.isValid():!0},
isSubmitting:function(){var d,N;return!!((d=pU9(M()))==null?0:(N=d.isSubmitting)==null?0:N.call(d))}}};
QW4=function(M,d){return _.Rz(M.entities,"contextNoteFeedEntityPayload",d)};
qsi=function(M){M.style.height="auto";M.style.height=M.scrollHeight+"px"};
IL$=function(M){return[M.syncStep,M.asyncStep].filter(function(d){return d!==void 0})};
Oki=function(M){var d,N,R;if(M=(d=M.structuredContextNoteFormSchema)==null?void 0:(N=d.fieldSchemas)==null?void 0:(R=N.noteBody)==null?void 0:R.validationSchema)for(d=_.V(IL$(M)),N=d.next();!N.done;N=d.next()){N=N.value.rules;if(!N)break;N=_.V(N);for(N=N.next();!N.done;N=N.next())return _.q(N.value,_.vae)}};
sWb=function(M){if(M){M=_.V(IL$(M));for(var d=M.next();!d.done;d=M.next()){d=d.value.rules;if(!d)break;d=_.V(d);for(d=d.next();!d.done;d=d.next())return _.q(d.value,jWG)}}};
oaJ=function(M){if(M){M=_.V(IL$(M));for(var d=M.next();!d.done;d=M.next()){d=d.value.rules;if(!d)break;d=_.V(d);for(d=d.next();!d.done;d=d.next())return _.q(d.value,P_d)}}};
r8J=function(M){M=/^https?:\/\//.test(M)?M:"http://"+M;try{var d=_.Kk(M)}catch(N){return!1}if(d.toString()!==M)return!1;M=d.JSC$7917_domain_.split(".");return M.length>1&&M.every(function(N){return!!N})};
Kxi=function(M,d,N,R){var X;R=(X=R.structuredContextNoteData)==null?void 0:X.createCommentEndpoint;if(X=_.q(R,_.xsL))return X.commentText=_.ep(M),X.videoPositionMention=d,X.sources=N,R};
y8T=function(M){return M==null?void 0:M.stringValue};
c8G=function(M,d,N){M=M.map(function(R,X){return{listItemViewModel:{title:R.title,subtitle:R.subtitle,leadingImage:R.leadingImage,trailingImage:X===d?J89:void 0,rendererContext:{commandContext:{onTap:R.onTap}}}}});
return Object.assign({},N&&{header:{panelHeaderViewModel:{title:N}}},{content:{listViewModel:{listItems:M}}})};
SsP=function(M,d){if(M&&d)switch(d){case "SELECTION_TYPE_BOOL":return M.boolValue;case "SELECTION_TYPE_INT":return M.intValue;case "SELECTION_TYPE_STRING":return M.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return M.privacyStatusValue}};
zyD=function(M){var d;M=(d=M.options)==null?void 0:d.findIndex(function(N){return N.isSelected});
return M===void 0?-1:M};
bkd=function(M,d,N){var R=function(){return M().label},X={},A=_.xj("ytDropdownViewModelLabel",(X.ytDropdownViewModelLabelError=d,X));
return _.g(_.kV,{cond:function(){return M().label&&!(N()===-1&&M().label&&!M().placeholderText)},
then:function(){return _.g("div",{class:A},_.g(_.lG,{text:R}))}})};
ey9=function(M,d){var N={};N=_.xj("ytDropdownViewModelTitle",(N.ytDropdownViewModelTitlePlaceholder=function(){return d()===-1},N));
return _.g("div",{class:N},_.g(_.lG,{text:function(){var R=M();var X=d();if(X===-1)R=R.placeholderText?R.placeholderText:R.label;else{var A,l;R=(A=R.options)==null?void 0:(l=A[X])==null?void 0:l.title}return R}}))};
HkC=function(M,d){var N=function(){return M().hint};
return _.g(_.GT,null,_.g(_.kV,{cond:function(){return N()&&!d()},
then:function(){return _.g("div",{class:_.xj("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.g(_.lG,{text:N,className:"ytDropdownViewModelSupportText"}))}}),_.g(_.kV,{cond:d,
then:function(){return _.g("div",{id:"dropdown-view-model-error",role:"alert",class:_.xj("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.g(_.Fc,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.g(_.lG,{text:d,className:"ytDropdownViewModelSupportText"}))}}))};
na9=function(M,d){var N=_.h().resolve(_.r7L);_.IJ(function(){var R=M().id;R&&N!=null&&N.dropdownMap.set(R,d)})};
fL4=function(M){M=_.q(M.scheduleButton,ikP);M=_.q(M==null?void 0:M.primaryButton,_.QM);M=_.q(M==null?void 0:M.onTap,_.mX);var d,N,R=((N=_.q(M,_.XP))==null?void 0:N.commands)||[M];N=_.V(R);for(M=N.next();!M.done&&!(d=_.q(M.value,_.uNo));M=N.next());var X;d=(X=d)==null?void 0:X.createBroadcastRequest;if(!d)throw Error("Ij");return d};
aLG=function(M,d,N){N=N===void 0?{}:N;var R,X;return _.B(function(A){if(R=Lx$(d))return A.return(R);(X=tzJ(M,d,N))&&G5Y(d,X);return A.return(X)})};
G5Y=function(M,d){var N=UQ$(M);N&&d.then(function(R){_.h().resolve(_.Y0).put(N,new _.Zh({innertubeResponse:R}))})};
Lx$=function(M){if(M=UQ$(M)){var d=_.h().resolve(_.Y0);if(d.has(M))return d.get(M).then(function(N){return N==null?void 0:_.Vr(N)})}return null};
UQ$=function(M){var d=_.q(M.endpoint,_.nL);if(d!=null&&d.videoId)return d={videoId:d.videoId},_.Q("web_imp_player_mute_params")&&(d.mutedAtStart=M.startPlaybackInMutedState),_.Hl("inline_playback",d)};
tzJ=function(M,d,N){M=_.rT(M,d.endpoint,uxC(d,N)).then(function(R){return R});
return Promise.resolve(M)};
uxC=function(M,d){d=_.Q("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!M.startPlaybackInMutedState},d):Object.assign({},{vis:5,autonav:"1"},d);var N;d={contentPlaybackContext:_.BN(d,(N=_.q(M.endpoint.commandMetadata,_.an))==null?void 0:N.url,window.location.href)};_.Q("web_imp_player_mute_params")&&(d.overrideMutedAtStart=!M.startPlaybackInMutedState);return d};
Zkb=function(M,d){var N=window.MutationObserver;N&&(aE=new N(function(R,X){R=_.V(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var l;if(l=A.type==="childList"&&A.target)a:{l=M;A=C_D(A.target);l=C_D(l);for(var k=null,T=0;T<A.length;T++)if(l.includes(A[T])){if(T===0){l=!1;break a}k=A[T];break}k?(A=xQT(A,k),l=xQT(l,k),l=A<l):l=!1}if(l){d();X.disconnect();break}}}),(N=Ys4())&&aE.observe(N,{childList:!0,
subtree:!0}))};
Ys4=function(){var M=document.getElementsByTagName("ytd-rich-grid-renderer");if(M.length>0)return M[0];M=document.getElementsByTagName("ytd-section-list-renderer");return M.length>0?M[0]:null};
C_D=function(M){for(var d=[];M;)d.push(M),M=M.parentElement;return d};
xQT=function(M,d){var N=Array.from(d.children);d=M.indexOf(d);return d>0?N.indexOf(M[d-1]):-1};
UJ=function(M,d,N){N=N===void 0?{}:N;return _.le(M,N,d)};
EaJ=function(M){return M==null?void 0:M.filter(function(d){return d.premiereTrailerBadgeRenderer})};
N0G=function(M,d){var N="",R="";switch(M){case -1:case 0:N=d?"VOLUME_OFF":"VOLUME_OFF_FILLED";R=M9b;break;case 1:N=d?"VOLUME_UP_OUTLINE":"VOLUME_UP";R=dF9;break;default:_.RC(M)}return{iconName:N,ariaLabel:R}};
lKq=function(M,d){var N=RMb,R=_.V(_.d0(XgY(new FF$(function(){},N,d)),void 0,"PAnyd")),X=R.next().value,A=R.next().value,l=new FF$(function(k){A(k)},N,d);
_.Wg(function(){Promise.resolve().then(function(){var k,T=(k=M())!=null?k:{};l.playerControlsData=T;_.Q("player_controls_skip_double_signal_old")&&(l.lastSeenPlayerApi=_.b5(T.playerApi));_.Q("player_controls_skip_double_signal_old")||(l.lastSeenPlayerApi=_.b5(T.playerApi));AlP(l)});
_.mF(function(){V9d(l)})});
_.mF(function(){V9d(l)});
return function(){return X()}};
$Fe=function(M){return function(d){var N=M(),R={playerState:d};if(d===1){var X;(X=N.playerApi)==null||X.loadModule("captions")}if(d===0){var A;(A=N.playerApi)==null||A.unloadModule("captions")}(d!==-1||_.Q("web_imp_controls_set_player_state_killswitch"))&&N.setState(R)}};
B09=function(M){return function(d){M().setState({playbackRate:d})}};
kTb=function(M){return function(d){var N=M(),R=N.playerApi,X=R==null?void 0:R.getVideoData(),A=(X==null?void 0:X.isLive)||!1;X=X==null?void 0:X.video_id;A={videoDuration:zOT(R||void 0),isLive:A,videoId:X};A.videoId!==N.videoId&&(A=Object.assign({},_.dCN(R),A));if(d==null?0:d.playertype)A.playerType=d.playertype;if(R){A.captionsAvailable=!!R.getOptions("captions");d=A;var l;X=(l=R.getStoryboardLevel(R.getNumberOfStoryboardLevels()-1))==null?void 0:l.intervalMs;d.storyboardInterval=X?X/1E3:void 0;A.captionsAvailable&&
(A.captionsEnabled=Ki9(R))}A.volumeMuted=!(R==null||!R.isMuted());N.setState(A)}};
T0i=function(M){return function(d){var N=M(),R=N.playerApi;if(R){var X=R.getPresentingPlayerType();d={playedTime:d||0,percentLoaded:R.getVideoLoadedFraction(),playerType:X};N.playerState===0&&(d.playedTime=N.videoDuration);N.isLive&&(X=R.getProgressState(X),d.playedTime-=X.seekableStart,d.videoDuration=zOT(R));if(N.playerType===1)R=!1;else{var A;if(_.Q("embeds_emc3ds_dompaused_fix")&&((A=N.uxConfig)==null?0:A.showCuedOverlay)){var l;R=!((l=N.playerApi)==null?0:l.getPlayerStateObject(N.playerType).isDomPaused)}else R=
!0}R&&delete d.playedTime;N.setState(d)}}};
DFr=function(M){return function(){var d=M(),N,R,X,A={volume:(X=(N=d.playerApi)==null?void 0:N.getVolume())!=null?X:0,volumeMuted:!((R=d.playerApi)==null||!R.isMuted())};d.setState(A)}};
gTC=function(M){return function(){var d=M(),N=d.playerApi;if(N){var R={captionsAvailable:!!N.getOptions("captions")};R.captionsAvailable&&(R.captionsEnabled=Ki9(N));d.setState(R)}}};
WFG=function(M){return function(){var d=M();if(d.playerApi&&!(d.volumeMuted||d.controlsVisible&&d.isProbablyAScreenreaderUser)){d.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var N;(N=document.querySelector(".player-control-play-pause-icon"))==null||N.focus()}}};
wg4=function(M){return{appApi:Object.assign({},_.uJZ(),{showCaptionsToggleToast:function(d){var N,R;(R=(N=M()).showCaptionsToggleToast)==null||R.call(N,d)},
openInMiniplayer:function(){var d,N;(N=(d=M()).openInMiniplayer)==null||N.call(d)}})}};
pgC=function(M,d){var N,R,X;return!!(M==null?0:(N=M.playerResponse)==null?0:(R=N.playerConfig)==null?0:(X=R.inlinePlaybackConfig)==null?0:X.showScrubbingControls)&&!(d==null?0:d.hideScrubbingControls)};
_.mFq=function(M){var d=!M.miniplayerIsActive;return[5,2,0].includes(M.miniplayerPlaybackState)||d};
hM$={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Q4q=function(M,d){var N,R,X,A,l;_.B(function(k){if(!d.length)return k.return([]);N=[];R=_.V(d);for(X=R.next();!X.done;X=R.next())A=X.value,(l=M.resolveIcon(A))&&!M.iconCache[l.url]&&N.push(_.igJ(M,l).then(function(){}).catch(function(){}));
return k.return(Promise.all(N))})};
qoe=function(M,d){var N=[];d=(new Set(d)).values();d=_.V(d);for(var R=d.next();!R.done;R=d.next()){R=R.value;for(var X=_.V(Object.values(hM$)),A=X.next();!A.done;A=X.next())N.push({iconName:R,iconStyle:A.value})}Q4q(M.iconManager,N)};
_.IKe=function(M,d,N){var R=N!=null?N:M.iconsToFetch;R!=null&&R.length?d!==void 0&&d>=0?_.gL(_.IQ,function(){qoe(M,R)},d):qoe(M,R):Promise.resolve()};
byP={};
FF$=function(M,d,N){var R=this;this.renderFn=M;this.listeners=d;this.context=N;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var X;this.lastSeenPlayerApi=_.b5((X=this.playerControlsData)==null?void 0:X.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.dCN(),void 0);_.Q("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){XgY(R).setState({playerState:-1});R.resetRecentlyNavigatedJobId&&_.IQ.cancelJob(R.resetRecentlyNavigatedJobId);R.recentlyNavigated=
!0;R.resetRecentlyNavigatedJobId=_.IQ.addJob(function(){R.recentlyNavigated=!1},8,1E4)})};
FF$.prototype.setState=function(M){if(!_.Q("mweb_player_skip_no_op_state_changes")||!eOq(M,this.state))if(this.state=Object.assign({},this.state,M),!_.Q("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)M=-1,_.Q("player_controls_log_creation_killswitch")||Hyi()||(M=(0,_.Gs)()),_.v1("pcu_s"),_.v1("pcu_se"),_.v1("pcu_rs"),this.renderFn(XgY(this)),_.v1("pcu_re"),n4J(M),_.IQ.addJob(function(){_.v1("pcu_ap")},8)};
var XgY=function(M){var d;var N=_.b5((d=M.playerControlsData)==null?void 0:d.playerApi);return Object.assign({},M.state,{setState:M.boundSetState,domMeasurements:{progressBarLineRect:M.progressBarLineRect},playerApi:N,appApi:M.context.appApi,playerContainer:M.context.playerContainer,playerControlContainer:M.context.playerControlContainer,uxConfig:M.context.uxConfig})},AlP=function(M){M.listeners.forEach(function(d){M.eventListenerCleanupFunctions.push(d.register(function(){return XgY(M)},function(){return M.getData()}))})},
V9d=function(M){M.eventListenerCleanupFunctions.forEach(function(d){d()});
M.eventListenerCleanupFunctions.length=0};
FF$.prototype.getData=function(){return this.playerControlsData};
var uF=new _.x("abuseReportFlowState");var vTP=new _.x("feedbackFormFlowState");var Ouq=new _.x("inputBoxViewModel");var j4P=new _.x("flowNextStepCommand");var s4J=new _.x("flowPrevStepCommand");var PdP=new _.x("updateFlowCommand");_.oT9=new _.x("flowStepRenderer");_.vae=new _.x("lengthValidationRule");var jWG=new _.x("regexValidationRule");var P_d=new _.x("selectedValidationRule");var rle=new _.x("talkToRecsViewModel");var KFq=new _.x("creatorGoalSetUpFlowDropdownItemViewModel");var yld=new _.x("creatorGoalSetUpFlowDropdownViewModel");_.JlC=new _.x("radioButtonGroupViewModel");var ikP=new _.x("panelFooterViewModel");var cl9=new _.x("ypcCancelRecurrenceCommand");var SoG=new _.x("cancellationFlowState");var Gv=new _.x("premiumPurchaseFlowState");var zMe=new _.x("surveyAnswerCardRenderer");var bu9=new _.x("showMoreButtonRenderer");var eMq;var Hub,nTT=function(){if(Hub!==void 0)return Hub;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;eMq===void 0&&(eMq=document.createElement("template"));var R=eMq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Hub=M};var Cl=function(){var M=_.n.apply(this,arguments)||this;M.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";M.goalDescription="";M.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";M.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";M.startButtonId="start-button";M.exampleButtonId="example-button";return M};
_.v(Cl,_.n);_.F=Cl.prototype;_.F.getGoalDropdownItems=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.purchaseTargetDropdown,yld))==null?void 0:d.dropdownItems};
_.F.getTimerDropdownItems=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.timerDropdown,yld))==null?void 0:d.dropdownItems};
_.F.getColorDropdownItems=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.colorDropdown,yld))==null?void 0:d.dropdownItems};
_.F.getDropdownItemText=function(M){var d;return(d=_.q(M,KFq))==null?void 0:d.itemLabel};
_.F.getDropdownItemValue=function(M){M=_.q(M,KFq);return(M==null?void 0:M.timeLimit)||(M==null?void 0:M.purchaseTarget)||(M==null?void 0:M.eligiblePurchaseType)};
_.F.updateFlowState=function(M){_.ZI(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:M}])};
_.F.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.F.updateGoalValue=function(M){this.goal=M.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.F.onTextValueChanged=function(M){this.goalDescription=M.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.F.updateTimerValue=function(M){this.timer=M.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.F.updateTierValue=function(M){this.tier=M.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.F.getButtonViewModel=function(M){M=(M==null?void 0:M.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var d,N=_.q((d=this.data)==null?void 0:d.startGoalButton,_.QM);return Object.assign({},N,{state:M})};
_.Hm.Object.defineProperties(Cl,{template:{configurable:!0,enumerable:!0,get:function(){return nTT()}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"goal",void 0);_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"goalDescription",void 0);_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"timer",void 0);_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"tier",void 0);
_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"startButtonId",void 0);_.G([_.H(),_.a("design:type",Object)],Cl.prototype,"exampleButtonId",void 0);Cl=_.G([_.w4({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Cl);_.L(Cl,"yt-creator-goal-set-up-flow-view-model",function(){return nTT()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var iub;var fK$;var LF$;var xK=function(){return _.n.apply(this,arguments)||this};
_.v(xK,_.n);_.G([_.H(),_.a("design:type",Object)],xK.prototype,"data",void 0);xK=_.G([_.w4({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],xK);
_.L(xK,"yt-survey-answer-card-renderer",function(){if(LF$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;fK$===void 0&&(fK$=document.createElement("template"));var R=fK$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);LF$=M}M=LF$;return M},{mode:2});var t9Y;var GTG;var YK=function(){return _.n.apply(this,arguments)||this};
_.v(YK,_.n);_.F=YK.prototype;_.F.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.F.selectedItemChanged=function(M){_.ZI(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[M.feedbackToken||""]}])};
_.F.surveyAnswerCardRendererClicked=function(M){if(M.target&&_.q(M.model.item,zMe)){var d=M.target;M=_.q(M.model.item,zMe);M.onTapCommand?_.Ni(d,[M.onTapCommand],d):this.data.onTapCommand&&_.Ni(d,[this.data.onTapCommand],d);this.selectedItemChanged(M)}};
_.F.checkIsCancellationStyle=function(M){return M==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.F.updateSelectedItemFromBinding=function(M){this.selectedItem=M.detail.value};
YK.prototype.onSelectedItemChanged=YK.prototype.onSelectedItemChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],YK.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],YK.prototype,"selectedItem",void 0);_.G([_.H({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.a("design:type",Boolean)],YK.prototype,"isCancellationStyle",void 0);
_.G([_.xB("selectedItem"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YK.prototype,"onSelectedItemChanged",null);YK=_.G([_.w4({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],YK);
_.L(YK,"yt-survey-flow-step-renderer",function(){if(GTG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;t9Y===void 0&&(t9Y=document.createElement("template"));var R=t9Y;N.call(d,R.content.cloneNode(!0),M.content.firstChild);GTG=M}M=GTG;return M},{mode:2});var ZX=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return M};
_.v(ZX,_.n);ZX.prototype.handleSurveyFlowStepOptionChanged=function(M){this.ytdReduxBehavior.dispatch(_.YS({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:M}));_.ZI(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],ZX.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZX.prototype,"data",void 0);ZX=_.G([_.f({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],ZX);
_.L(ZX,"ytd-survey-flow-step-renderer",function(){if(iub!==void 0)return iub;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return iub=M},{mode:1});var iy$;iy$=_.W5({avatarViewModel:_.If,buttonViewModel:_.o0,subscribeButtonViewModel:_.pK3,imageBannerViewModel:_.mp});_.aKi=_.Ez(_.Lii);_.aR(_.Lii);var UFY;var EJ=function(){return _.n.apply(this,arguments)||this};
_.v(EJ,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EJ.prototype,"data",void 0);EJ=_.G([_.f({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],EJ);
_.L(EJ,"ytd-channel-history-renderer",function(){if(UFY!==void 0)return UFY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return UFY=M},{mode:1});var uIY;var Ma=function(){return _.n.apply(this,arguments)||this};
_.v(Ma,_.n);_.G([_.H(),_.a("design:type",Object)],Ma.prototype,"data",void 0);Ma=_.G([_.f({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Ma);
_.L(Ma,"ytd-feature-enablement-info-renderer",function(){if(uIY!==void 0)return uIY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return uIY=M},{mode:1});var Cd9;var xFr;var dv=function(){var M=_.n.apply(this,arguments)||this;M.textBoxMaxLength=_.Q("enable_tvod_campaign_code_integration")?15:12;return M};
_.v(dv,_.n);_.F=dv.prototype;_.F.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.F.onSubmit=function(){var M=this.data.serviceEndpoint,d=_.q(M,_.Ec);d&&M&&(d.couponCode=this.userInput,_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}}))};
_.F.validate=function(){var M=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=M&&!this.data.errorMessage;this.showErrorMessage=M&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.Q("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.F.computeStyle=function(M){return M};
_.F.computeShowValidationBelowInput=function(M){return M!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.F.updateUserInputFromBinding=function(M){this.userInput=M.currentTarget.value};
_.F.updateShowErrorMessageFromBinding=function(M){this.showErrorMessage=M.detail.value};
_.Hm.Object.defineProperties(dv.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
dv.prototype.dataChanged=dv.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dv.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],dv.prototype,"userInput",void 0);_.G([_.H(),_.a("design:type",Boolean)],dv.prototype,"disableApplyButton",void 0);_.G([_.H(),_.a("design:type",Boolean)],dv.prototype,"hideApplyButton",void 0);
_.G([_.H(),_.a("design:type",Boolean)],dv.prototype,"hideErrorMessage",void 0);_.G([_.H(),_.a("design:type",Boolean)],dv.prototype,"showTick",void 0);_.G([_.H(),_.a("design:type",Boolean)],dv.prototype,"showErrorMessage",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],dv.prototype,"couponStyle",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.a("design:type",Boolean)],dv.prototype,"showValidationBelowInput",void 0);_.G([_.H(),_.a("design:type",Object)],dv.prototype,"textBoxMaxLength",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dv.prototype,"dataChanged",null);
_.G([_.z("showTick","showErrorMessage","userInput"),_.a("design:type",String),_.a("design:paramtypes",[])],dv.prototype,"validationState",null);dv=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],dv);
_.L(dv,"ytd-ypc-coupon-renderer",function(){if(xFr!==void 0)return xFr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return xFr=M},{mode:1});var Na=function(){return _.n.apply(this,arguments)||this};
_.v(Na,_.n);Na.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"}}}};
Na.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Na.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],Na.prototype,"buttonStyle",void 0);Na=_.G([_.f({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Na);
_.L(Na,"ytd-flow-bottom-bar-renderer",function(){if(Cd9!==void 0)return Cd9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Cd9=M},{mode:1});var YoC;var ZuJ;var ET9;var RB=function(){return _.n.apply(this,arguments)||this};
_.v(RB,_.n);RB.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RB.prototype.focus=function(M){this.title&&_.e6(this.title,M)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RB.prototype,"data",void 0);_.G([_.Z3("#title"),_.a("design:type",HTMLElement)],RB.prototype,"title",void 0);RB=_.G([_.f({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],RB);
_.L(RB,"ytd-flow-top-bar-renderer",function(){if(ET9!==void 0)return ET9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ET9=M},{mode:1});var MxG;var dVG;var NKr;var Xa=function(){return _.n.apply(this,arguments)||this};
_.v(Xa,_.n);Xa.prototype.freeTextValueChanged=function(){_.ZI(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Xa.prototype.updateFreeTextValueFromBinding=function(M){this.freeTextValue=M.detail.value};
_.Hm.Object.defineProperties(Xa.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(d=(M=this.data)==null?void 0:M.responseMaxLength)!=null?d:500,R;return((R=this.freeTextValue)!=null?R:"").length>=N?"maxed-out":""}}});
Xa.prototype.freeTextValueChanged=Xa.prototype.freeTextValueChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xa.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Xa.prototype,"freeTextValue",void 0);_.G([_.Z3("#user-input"),_.a("design:type",HTMLTextAreaElement)],Xa.prototype,"input",void 0);
_.G([_.z("freeTextValue"),_.a("design:type",Object),_.a("design:paramtypes",[])],Xa.prototype,"characterLimitClass",null);_.G([_.xB("freeTextValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Xa.prototype,"freeTextValueChanged",null);Xa=_.G([_.w4({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Xa);
_.L(Xa,"yt-free-text-input-flow-step-renderer",function(){if(NKr===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;dVG===void 0&&(dVG=document.createElement("template"));var R=dVG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);NKr=M}M=NKr;return M},{mode:2});var Fa=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return M};
_.v(Fa,_.n);Fa.prototype.handleFreeTextFlowStepInputChanged=function(M){_.ZI(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Fa.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Fa.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fa.prototype,"data",void 0);Fa=_.G([_.f({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Fa);
_.L(Fa,"ytd-free-text-input-flow-step-renderer",function(){if(MxG!==void 0)return MxG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return MxG=M},{mode:1});var R$C;var Xyi;var A0=function(){return _.n.apply(this,arguments)||this};
_.v(A0,_.n);_.G([_.H(),_.a("design:type",Object)],A0.prototype,"data",void 0);A0=_.G([_.f({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],A0);
_.L(A0,"ytd-metadata-line-renderer",function(){if(Xyi!==void 0)return Xyi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Xyi=M},{mode:1});var V_=function(){return _.n.apply(this,arguments)||this};
_.v(V_,_.n);V_.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],V_.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],V_.prototype,"isMasthead",void 0);V_=_.G([_.f({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],V_);
_.L(V_,"ytd-media-product-renderer",function(){if(R$C!==void 0)return R$C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return R$C=M},{mode:1});var FID;var lp=function(){return _.n.apply(this,arguments)||this};
_.v(lp,_.n);lp.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
lp.prototype.onBillboardImageLoaded=function(){_.YP(this.hostElement,"yt-refit")};
lp.prototype.onBillboardImageLoaded=lp.prototype.onBillboardImageLoaded;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lp.prototype,"data",void 0);_.G([_.Z3("#billboardImage"),_.a("design:type",Object)],lp.prototype,"billboardImage",void 0);_.G([_.C3("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lp.prototype,"onBillboardImageLoaded",null);
lp=_.G([_.f({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],lp);
_.L(lp,"ytd-billboard-masthead-renderer",function(){if(FID!==void 0)return FID;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return FID=M},{mode:1});var AAG;var $r=function(){var M=_.n.apply(this,arguments)||this;M.smallSize=!1;return M};
_.v($r,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$r.prototype,"ytComponentBehaviorType",void 0);_.G([_.H(),_.a("design:type",Object)],$r.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$r.prototype,"smallSize",void 0);$r=_.G([_.f({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],$r);
_.L($r,"ytd-bullet-formatted-string",function(){if(AAG!==void 0)return AAG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return AAG=M},{mode:1});var Vxb;var BB=function(){return _.n.apply(this,arguments)||this};
_.v(BB,_.n);BB.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BB.prototype,"data",void 0);BB=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],BB);
_.L(BB,"ytd-offer-detail-renderer",function(){if(Vxb!==void 0)return Vxb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Vxb=M},{mode:1});var lRC;var kr=function(){return _.n.apply(this,arguments)||this};
_.v(kr,_.n);kr.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kr.prototype,"data",void 0);kr=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],kr);
_.L(kr,"ytd-offer-detail-step-renderer",function(){if(lRC!==void 0)return lRC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lRC=M},{mode:1});var $V4;var Tp=function(){var M=_.n.apply(this,arguments)||this;M.isInOfferModule=!1;return M};
_.v(Tp,_.n);_.F=Tp.prototype;_.F.computeHasEndpoint=function(){var M;return!((M=this.data)==null||!M.onClickCommand)};
_.F.dataChanged=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.F.detached=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.F.handleClickEvent=function(){var M;if((M=this.data)==null?0:M.onClickCommand){var d;this.componentBehavior.resolveCommand((d=this.data)==null?void 0:d.onClickCommand)}};
_.F.onContentKeyDown=function(M){M.key==="Enter"?this.handleClickEvent(M):M.key===" "&&M.preventDefault()};
_.F.onContentKeyUp=function(M){M.key===" "&&this.handleClickEvent(M)};
Tp.prototype.dataChanged=Tp.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Tp.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Tp.prototype,"data",void 0);_.G([_.H({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Tp.prototype,"hasEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Tp.prototype,"isInOfferModule",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tp.prototype,"dataChanged",null);Tp=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Tp);
_.L(Tp,"ytd-channel-masthead-renderer",function(){if($V4!==void 0)return $V4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $V4=M},{mode:1});var BKC;var DJ=function(){var M=_.n.apply(this,arguments)||this;M.thumbnailObjectFit="CONTAIN";M.thumbnailObjectPosition="LEFT";M.isExpanded=!1;return M};
_.v(DJ,_.n);_.F=DJ.prototype;_.F.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.F.dataChanged=function(){this.resetStates()};
_.F.computeisTapOnOfferInfoContainerEnabled=function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.F.onExpandBtnClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.showMoreButtonRenderer,bu9);d&&_.FD(_.Nx(),d.trackingParams);this.isExpanded=!this.isExpanded};
_.F.onOfferInfoClick=function(M){this.isTapOnOfferInfoContainerEnabled&&(_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.zx(_.J2(M)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.F.onBottomBarClick=function(){this.executeTapCommand()};
_.F.executeTapCommand=function(){var M,d=(M=this.data)==null?void 0:M.tapCommand;d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.resetStates=function(){this.isExpanded=!1};
_.Hm.Object.defineProperties(DJ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var M=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),d,N,R;return((d=this.data)==null?void 0:d.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&M&&!!((N=this.data)==null?0:(R=N.benefits)==null?0:R.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((d=_.q((M=this.data)==null?void 0:M.showMoreButtonRenderer,bu9))==null?void 0:d.showMoreButtonTitle)||((N=this.data)==null?void 0:N.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((d=_.q((M=this.data)==null?void 0:M.showMoreButtonRenderer,bu9))==null?void 0:d.showLessButtonTitle)||((N=this.data)==null?void 0:N.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var M;return(M=this.showLessButtonTitle)!=null?M:""}var d;return(d=this.showMoreButtonTitle)!=null?d:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((d=this.data)==null?0:d.footerTitle)||((N=this.data)==null?0:N.footerSubtitle))}}});
DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",String)],DJ.prototype,"thumbnailObjectFit",void 0);
_.G([_.H(),_.a("design:type",String)],DJ.prototype,"thumbnailObjectPosition",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.a("design:type",Boolean)],DJ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],DJ.prototype,"isExpanded",void 0);_.G([_.H(),_.a("design:type",Object)],DJ.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.footerIcon)"}),_.a("design:type",String)],DJ.prototype,"icon",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DJ.prototype,"dataChanged",null);_.G([_.z("data.thumbnail"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DJ.prototype,"hasThumbnail",null);_.G([_.z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DJ.prototype,"enableExpandButton",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DJ.prototype,"enableOfferContentIcon",null);_.G([_.z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],DJ.prototype,"showMoreButtonTitle",null);_.G([_.z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.a("design:type",Object),_.a("design:paramtypes",[])],DJ.prototype,"showLessButtonTitle",null);
_.G([_.z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.a("design:type",String),_.a("design:paramtypes",[])],DJ.prototype,"expandedBtnText",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],DJ.prototype,"enableBottomBar",null);DJ=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],DJ);
_.L(DJ,"ytd-offer-card-renderer",function(){if(BKC!==void 0)return BKC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return BKC=M},{mode:1});var kN9;var gv=function(){return _.n.apply(this,arguments)||this};
_.v(gv,_.n);gv.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"}}}};
gv.prototype.onClick=function(M){if(!_.Sm(M.composedPath()||[],this.hostElement,["A".toString()])){var d,N;if((M=(N=_.q((d=this.data)==null?void 0:d.actionButton,_.K9))==null?void 0:N.command)&&!this.ytComponentBehavior.resolveCommand(M)){var R;(R=_.Nx())==null||R.clickCommand(M);_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})}}};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],gv.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gv.prototype,"data",void 0);gv=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],gv);
_.L(gv,"ytd-offer-content-renderer",function(){if(kN9!==void 0)return kN9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kN9=M},{mode:1});var TKT;var WB=function(){return _.n.apply(this,arguments)||this};
_.v(WB,_.n);WB.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Hm.Object.defineProperties(WB.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.title)||!((d=this.data)==null||!d.description)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WB.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],WB.prototype,"hasHeaderData",null);WB=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],WB);
_.L(WB,"ytd-offer-section-renderer",function(){if(TKT!==void 0)return TKT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return TKT=M},{mode:1});var DV$;var wv=function(){return _.n.apply(this,arguments)||this};
_.v(wv,_.n);
wv.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wv.prototype,"data",void 0);wv=_.G([_.f({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],wv);
_.L(wv,"ytd-offer-selection-step-renderer",function(){if(DV$!==void 0)return DV$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return DV$=M},{mode:1});var gVY;var pn=function(){return _.n.apply(this,arguments)||this};
_.v(pn,_.n);pn.prototype.computeStyle=function(M){return M};
pn.prototype.computeImageWidth=function(M){return M==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.G([_.H({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.a("design:type",String)],pn.prototype,"containerStyle",void 0);_.G([_.H({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.a("design:type",String)],pn.prototype,"imageWidth",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pn.prototype,"data",void 0);
pn=_.G([_.f({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],pn);
_.L(pn,"ytd-confirmation-masthead-renderer",function(){if(gVY!==void 0)return gVY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return gVY=M},{mode:1});var WI4;var me=function(){return _.n.apply(this,arguments)||this};
_.v(me,_.n);me.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],me.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.a("design:type",String)],me.prototype,"containerStyle",void 0);me=_.G([_.f({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],me);
_.L(me,"ytd-purchase-complete-detail-renderer",function(){if(WI4!==void 0)return WI4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return WI4=M},{mode:1});var wyY;var h0=function(){var M=_.n.apply(this,arguments)||this;M.scriptsAppended=!1;return M};
_.v(h0,_.n);h0.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"}}}};
h0.prototype.onDataChanged=function(){var M=this.get("data.gtmId");M&&(_.kH(M,_.rK("GL","")),this.setupConversionTracking())};
h0.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("noscript");M.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(M);this.scriptsAppended=!0}};
h0.prototype.onDataChanged=h0.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h0.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],h0.prototype,"scriptsAppended",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h0.prototype,"onDataChanged",null);h0=_.G([_.f({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],h0);
_.L(h0,"ytd-purchase-complete-step-renderer",function(){if(wyY!==void 0)return wyY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wyY=M},{mode:1});var pyJ;var Q_=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Q_,_.n);Q_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q_.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Q_.prototype,"darkerDarkTheme",void 0);Q_=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Q_);
_.L(Q_,"ytd-ypc-transaction-error-message-renderer",function(){if(pyJ!==void 0)return pyJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return pyJ=M},{mode:1});var mVG;var h$G;var qa=function(){var M=_.n.apply(this,arguments)||this;M.handlePhoneVerificationSuccess=function(d){if(M.isValidPhoneVerificationCompletionMessageEvent(d)){var N;((N=M.data)==null?0:N.nextStepCommand)&&M.ytComponentBehavior.resolveCommand(M.data.nextStepCommand)}};
return M};
_.v(qa,_.n);qa.prototype.isValidPhoneVerificationCompletionMessageEvent=function(M){if(M.data!=="yt-phone-verification-complete")return!1;M=_.GN(M.origin);return M!==null&&M.includes("youtube.com")};
qa.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
qa.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],qa.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qa.prototype,"data",void 0);qa=_.G([_.w4({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],qa);
_.L(qa,"yt-feature-enablement-soft-entry-renderer",function(){if(h$G===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;mVG===void 0&&(mVG=document.createElement("template"));var R=mVG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);h$G=M}M=h$G;return M},{mode:1});var QJT;var qlY;var IRD;var vVe;var IB=function(){return _.n.apply(this,arguments)||this};
_.v(IB,_.n);_.G([_.H(),_.a("design:type",Object)],IB.prototype,"data",void 0);IB=_.G([_.w4({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],IB);
_.L(IB,"yt-benefits-item-renderer",function(){if(vVe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;IRD===void 0&&(IRD=document.createElement("template"));var R=IRD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);vVe=M}M=vVe;return M},{mode:2});var OFC;var jJP;var vB=function(){return _.n.apply(this,arguments)||this};
_.v(vB,_.n);vB.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
vB.prototype.computeisWithoutPadding=function(){var M;return((M=this.data)==null?void 0:M.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vB.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.a("design:type",Boolean)],vB.prototype,"isWithoutPadding",void 0);vB=_.G([_.w4({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],vB);
_.L(vB,"yt-benefits-section-renderer",function(){if(jJP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;OFC===void 0&&(OFC=document.createElement("template"));var R=OFC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);jJP=M}M=jJP;return M},{mode:2});var Ow=function(){return _.n.apply(this,arguments)||this};
_.v(Ow,_.n);Ow.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ow.prototype.computeisUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ow.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.a("design:type",Boolean)],Ow.prototype,"isUsingLargeWidth",void 0);Ow=_.G([_.w4({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Ow);
_.L(Ow,"yt-benefits-flow-step-renderer",function(){if(qlY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;QJT===void 0&&(QJT=document.createElement("template"));var R=QJT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qlY=M}M=qlY;return M},{mode:2});var sJY;var Ps4;var jU=function(){return _.n.apply(this,arguments)||this};
_.v(jU,_.n);jU.prototype.checkIsUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.G([_.H(),_.a("design:type",Object)],jU.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.G([_.H({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.a("design:type",Boolean)],jU.prototype,"isUsingLargeWidth",void 0);jU=_.G([_.w4({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],jU);
_.L(jU,"yt-confirmation-flow-step-renderer",function(){if(Ps4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;sJY===void 0&&(sJY=document.createElement("template"));var R=sJY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ps4=M}M=Ps4;return M},{mode:2});var oVe;var rAb;var sw=function(){return _.n.apply(this,arguments)||this};
_.v(sw,_.n);_.G([_.H(),_.a("design:type",Object)],sw.prototype,"data",void 0);sw=_.G([_.w4({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],sw);
_.L(sw,"yt-info-flow-step-renderer",function(){if(rAb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;oVe===void 0&&(oVe=document.createElement("template"));var R=oVe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rAb=M}M=rAb;return M},{mode:2});var KID;var yAD;var PB=function(){return _.n.apply(this,arguments)||this};
_.v(PB,_.n);_.G([_.H(),_.a("design:type",Object)],PB.prototype,"data",void 0);PB=_.G([_.w4({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],PB);
_.L(PB,"yt-info-list-flow-step-renderer",function(){if(yAD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;KID===void 0&&(KID=document.createElement("template"));var R=KID;N.call(d,R.content.cloneNode(!0),M.content.firstChild);yAD=M}M=yAD;return M},{mode:2});var JAT=_.SG(function(M){var d=M.data;return _.g("styled-text-view-model",{class:_.xj("ytStyledTextViewModelHost",function(){return Nxr(d().fontAttributes)},function(){return dQP(d().color)})},_.g(_.lG,{text:function(){return d().text},
ariaLabel:function(){var N,R,X;return(X=(N=d().accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:""}}))},"Je");
JAT.idomCompat=!0;var cAi=_.SG(function(M){var d=function(){var X,A,l,k;return(k=(l=(X=M.alt)==null?void 0:X.call(M))!=null?l:(A=M.data().accessibilityData)==null?void 0:A.label)!=null?k:""},N=function(){return M.data().imageWidth},R=function(){return M.data().imageHeight};
return _.g("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.g(_.kV,{cond:function(){var X=M.data();if(X){var A,l,k;var T=((A=_.h().resolve(_.CF(_.Pz)))==null?0:A())?(l=X.imageDark)!=null?l:X.imageLight:(k=X.imageLight)!=null?k:X.imageDark}else T=void 0;return T},
then:function(X){return _.g(_.Jt,Object.assign({},M,{data:X,alt:d,targetWidth:N,targetHeight:R,preserveHeight:!0,preserveWidth:!0}))}}))},"Ke");
cAi.idomCompat=!0;var oB=_.SG(function(M){var d=M.data;M=_.Jy(function(){return d().slots},[]);
var N=_.Jy(function(){return d().layoutProperties},{}),R=_.h().resolve(_.rk);
return _.g("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:xyC(N,R)},_.g(_.TN,{each:M,keyBy:"INDEX"},function(X){return _.g("div",{class:"ytContainerLayoutViewModelSlot",style:xyC(function(){return X().layoutProperties},R)},_.g(_.ho,{data:function(){return X().contents}},{containerLayoutViewModel:oB,
badgeViewModel:_.nN,buttonViewModel:_.o0,styledTextViewModel:JAT,contentPreviewImageViewModel:function(A){return _.g(_.iK,{data:A.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(A){return _.g(cAi,{data:A.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Le");
oB.idomCompat=!0;var Sl4=_.SG(function(M){var d=M.data;var N=M.stateFns;var R=function(){var W=d(),w=W.productId;return!(!W.clearGroupId&&!w)},X=function(){var W=d(),w=W.clearGroupId;
return(W=W.productId)?N().isProductSelected(W):w?N().getSelectedProductByGroupId(w)==null:!1},A=function(){var W=d(),w=W.clearGroupId;
if(W=W.productId)N().onProductSelected(W);else if(w)N().onClearGroupSelected(w)},l=function(){var W=d(),w=W.clearGroupId;
if(W=W.productId){var p;return"group:"+(((p=N().getProductById(W))==null?void 0:p.groupId)||"")}return w?"group:"+w:""},k=_.Jy(function(){return d().header},[]),T=_.Jy(function(){return d().body},[]);
return _.g("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.g(_.kV,{cond:function(){return k().length>0||R()},
then:function(){return _.g("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.g("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.g(_.ho,{data:k},{containerLayoutViewModel:function(W){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(oB,{data:W.data}))},
styledTextViewModel:function(W){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(JAT,{data:W.data}))}})),_.g(_.kV,{cond:R,
then:function(){return _.g("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.g(_.DN,{checked:X,name:l,onChange:A}))}}))}}),_.g(_.kV,{cond:function(){return T().length>0},
then:function(){return _.g("div",null,_.g(_.ho,{data:T},{containerLayoutViewModel:function(W){return _.g("div",{class:"ytPdpCardSectionViewModelContentItem"},_.g(oB,{data:W.data}))}}))}}))},"Me");
Sl4.idomCompat=!0;var z$G=_.SG(function(M){var d=M.data;var N=M.stateFns;return _.g("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.g(_.kV,{cond:function(){return d().banner},
then:function(R){return _.g("div",{class:"ytPdpCardViewModelBanner"},_.g(_.lG,{text:R}))}}),_.g(_.ho,{data:function(){return d().sections}},{pdpCardSectionViewModel:function(R){R=R.data;
var X={};return _.g("div",{class:_.xj("ytPdpCardViewModelSectionContainer",(X.ytPdpCardViewModelShowDividers=function(){return d().showDividers},X))},_.g(Sl4,{data:R,
stateFns:N}))}}))},"Ne");
z$G.idomCompat=!0;var bF9=_.SG(function(M){var d=M.data;var N=M.isOverlay;M={};return _.g("pdp-masthead-view-model",{class:_.xj("ytPdpMastheadViewModelHost",(M.ytPdpMastheadViewModelIsOverlay=N,M))},_.g(_.ho,{data:function(){return d().image}},{contentPreviewImageViewModel:_.iK,
themedImageViewModel:function(R){return _.g(cAi,{data:R.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.g(_.kV,{cond:function(){return d().title},
then:function(R){return _.g("h1",{class:"ytPdpMastheadViewModelHeading"},_.g(_.lG,{text:R,isOverlay:N}))}}),_.g(_.TN,{each:function(){var R;
return(R=d().finePrint)!=null?R:[]}},function(R){return _.g("div",{class:"ytPdpMastheadViewModelFinePrint"},_.g(_.lG,{text:R,
isOverlay:N}))}))},"Oe");
bF9.idomCompat=!0;var e$r=_.SG(function(M){var d=M.data;var N=M.stateFns;return _.g("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.g(_.TN,{each:function(){var R=N().getSelectedPricingOptions().map(function(A){return A.pricingOptionId}),X=N().getSelectedProductByGroupId(d().groupId);
return X?X.pricingOptions.map(function(A){return{pricingOption:A,isSelected:R.includes(A.pricingOptionId)}}):(_.IR(Error("Hj`"+d().groupId)),[])},
keyBy:"INDEX"},function(R){return _.g("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.g(_.ho,{data:function(){return R().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:oB})),_.g("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.g(_.DN,{checked:function(){return R().isSelected},
onClick:function(){N().onPricingOptionSelected(R().pricingOption.pricingOptionId);var X=R().pricingOption.onSelectPricingOption;if(X=_.ht(X)){var A;(A=_.h().resolve(_.xV))==null||A.resolveCommand(X)}}})))}))},"Pe");
e$r.idomCompat=!0;var HFP=_.SG(function(M){var d=M.data;var N=M.stateFns;return _.g("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.g(_.ho,{data:function(){var R,X;return(X=(R=N().getSelectedPricingOptions()[0])==null?void 0:R.primaryButton)!=null?X:d().emptyStateButton}},{buttonViewModel:_.o0}))},"Qe");
HFP.idomCompat=!0;var nVq=_.SG(function(M){var d=M.stateFns;return _.g("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.g(_.ho,{data:function(){return d().getSelectedPricingOptions().flatMap(function(N){return N.summaryLines}).filter(function(N){return!!N})}},{containerLayoutViewModel:function(N){return _.g("div",{class:"ytPdpSummaryViewModelLineItem"},_.g(oB,{data:N.data}))}}))},"Re");
nVq.idomCompat=!0;var iFi=_.SG(function(M){function d(c){var e=l();_.yE(_.v5("pdpStateEntity",e,{key:e,selectedPricingOptions:c}))}
var N=M.data;var R=M.internalScrolling;var X=M.stateFnsForTesting;var A=_.Jy(function(){return N().allProducts},[]),l=_.Jy(function(){return N().pdpStateEntityKey},""),k=_.FT(Ryd,l),T=_.Al(function(){_.QJ(!0);
var c;return(c=X==null?void 0:X())!=null?c:Bxi(k,A,d)},void 0,"POBqwe"),W=_.Jy(function(){return N().body},[]),w=_.Jy(function(){return N().columnBreakHints},[]),p=function(){return N().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},m=function(){return p()||N().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},I=_.Al(function(){var c=_.Uc(N().background),e;
if(c==null?0:(e=c.sources)==null?0:e.length){var t=t===void 0?!0:t;c=_.zE6(void 0,c.sources,void 0,t,t?1E3:void 0,t?void 0:1E3)}else c=null;return c},void 0,"BkCmEd");
M=_.Xc({"--pdp-view-model-background":function(){return I()?"url("+I()+")":void 0}});
var O={};R=_.xj("ytPdpViewModelHost",(O.ytPdpViewModelHasBackground=function(){return m()||!!I()},O.ytPdpViewModelHasDarkBackground=m,O.ytPdpViewModelHasScrim=p,O.ytPdpViewModelInternalScrolling=_.Jy(R,!1),O));
var y=function(c){var e={};return _.xj("ytPdpViewModelItem",(e.ytPdpViewModelFullBleed=function(){return _.KOj(c())==="dividerViewModel"||_.KOj(c())==="sectionHeaderViewModel"},e.ytPdpViewModelNoVerticalPadding=function(){return _.KOj(c())==="sectionHeaderViewModel"},e))};
_.IJ(function(){var c=N().onStartCommand;if(c&&(c=_.ht(c))){var e;(e=_.h().resolve(_.xV))==null||e.resolveCommand(c)}});
return _.g("pdp-view-model",{class:R,style:M},_.g("div",{class:"ytPdpViewModelColumnContainer"},_.g(_.TN,{each:function(){return k5P(W(),w())},
keyBy:"INDEX"},function(c){return _.g("div",{class:"ytPdpViewModelColumn"},_.g(_.ho,{data:c},{containerLayoutViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(oB,{data:e}))},
dividerViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(_.M_V,{data:e}))},
pdpCardViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(z$G,{data:e,
stateFns:T}))},
pdpMastheadViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(bF9,{data:e,
isOverlay:m}))},
pdpPricingOptionSelectorViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(e$r,{data:e,
stateFns:T}))},
pdpPrimaryButtonViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(HFP,{data:e,
stateFns:T}))},
pdpSummaryViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(nVq,{data:e,
stateFns:T}))},
sectionHeaderViewModel:function(e,t){e=e.data;return _.g("div",{class:y(function(){return c()[t()]})},_.g(_.U6,{data:e}))}}))})))},"Se");
iFi.idomCompat=!0;_.eC(iFi,"pdp-view-model",{props:{data:_.cA,stateFnsForTesting:_.bI,internalScrolling:_.bI}});var fRe=_.SG(function(M){var d=M.data;var N=M.className;var R=_.FT(_.dz,function(){return d().flowStateEntityKey});
return _.g("ytm-premium-purchase-button-renderer",{class:_.xj("yt-premium-purchase-button-renderer",N)},_.g(_.ho,{data:function(){var X;return(X=_.q(R(),Gv))==null?void 0:X.primaryButtonOverride}},{buttonRenderer:function(X){return _.g(_.or,{data:X.data,
className:N})},
buttonViewModel:function(X){return _.g(_.o0,{data:X.data,className:N})}}))},"Te");
fRe.idomCompat=!0;var LIC=_.SG(function(M){var d=M.data;var N=function(){return TxJ(d().style)},R=_.xj("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",N),X=_.xj("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",N);
return _.g("yt-flow-bottom-bar-renderer",{class:_.xj("yt-flow-bottom-bar-renderer",M.className,N)},_.g(_.ho,{data:function(){return d().secondaryButton}},{buttonRenderer:function(A){return _.g(_.or,{data:A.data,
className:X})},
buttonViewModel:function(A){return _.g(_.o0,{data:A.data,className:X})},
premiumPurchaseButtonRenderer:function(A){return _.g(fRe,{data:A.data,className:X})}}),_.g(_.ho,{data:function(){return d().primaryButton}},{buttonRenderer:function(A){return _.g(_.or,{data:A.data,
className:R})},
buttonViewModel:function(A){return _.g(_.o0,{data:A.data,className:R})},
premiumPurchaseButtonRenderer:function(A){return _.g(fRe,{data:A.data,className:R})}}))},"Ue");
LIC.idomCompat=!0;_.eC(LIC,"yt-flow-bottom-bar-renderer",{props:{data:_.cA,className:_.cA}});var tx9=_.SG(function(M){return _.g("yt-offer-summary-renderer",{class:_.xj(M.className,"ytOfferSummaryRendererHost")},_.g("div",{class:"ytOfferSummaryRendererTextContainer"},_.g("div",{class:"ytOfferSummaryRendererEyebrowText"},_.g(_.lG,{text:function(){return M.data().eyebrowText}})),_.g("div",{class:"ytOfferSummaryRendererTitle"},_.g(_.lG,{text:function(){return M.data().title}})),_.g("div",{class:"ytOfferSummaryRendererSubtitle"},_.g(_.lG,{text:function(){return M.data().subtitle}})),_.g("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.g(_.TN,{each:function(){var d;
return(d=M.data().featureListData)!=null?d:[]}},function(d){var N;
return _.g("div",{class:"ytOfferSummaryRendererFeatureList"},_.g(_.Fc,{icon:(N=d.icon)==null?void 0:N.iconType,className:d.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.g("div",{class:"ytOfferSummaryRendererFeatureListText"},_.g(_.lG,{text:d.text})))})),_.g("div",{class:"ytOfferSummaryRendererDescription"},_.g(_.lG,{text:function(){return M.data().description}}))))},"Ve");_.eC(_.SG(function(M){var d={};d=_.xj("ytOfferSummaryFlowStepRendererHost",(d.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=M.shouldDisableHeaderTopMargin,d));return _.g("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:d},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.g("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.g(_.lG,{text:function(){return M.data().header}})),_.g("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.g(_.lG,{text:function(){return M.data().subtitle}}))),_.g("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.g(_.ho,{data:function(){return M.data().offerSummary}},{offerSummaryRenderer:function(N){return _.g(tx9,{data:N.data,
className:M.flowClassName})}})))},"We"),"yt-offer-summary-flow-step-renderer",{props:{data:_.bI,
flowClassName:_.bI,flowStateEntityKey:_.bI,shouldDisableHeaderTopMargin:_.bI}});var GNY=_.SG(function(M){var d=M.data;var N=M.className;var R=M.flowStateEntityKey;var X=M.selectionStepStyle;M=_.dT(function(T){var W=d(),w=R==null?void 0:R();T.target&&(T.stopPropagation(),T=w||"",w=_.dz(_.r4().getState(),T),W=Object.assign({},w,{premiumPurchaseFlowState:{selectedOptionId:W.optionId,primaryButtonOverride:W.primaryButtonOverride}}),_.r4().dispatch(_.la("flowStateEntity",T,W)));return!1});
var A=function(){return(R==null?void 0:R())||""},l=_.FT(_.dz,A);
_.IJ(function(){var T=d(),W=A(),w=l();!_.q(w,Gv)&&T.defaultSelected&&W!==""&&T.primaryButtonOverride&&DQ4(T.optionId||"",W,T.primaryButtonOverride,w)});
var k={};return _.g("ytm-option-item-renderer",{"on:click":M,class:_.xj(N,"ytm-option-item-renderer",(k["ytm-option-item-renderer--lp2-style"]=function(){return(X==null?void 0:X())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},k))},_.g("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.g("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var T=d(),W=A(),w=l();w=_.q(w,Gv);return(w?(w==null?void 0:w.selectedOptionId)||"":T.defaultSelected&&W!==""?(T==null?void 0:T.optionId)||"":"")===d().optionId},
name:("input"+_.s$(_.PC)).toString()})),_.g("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.g(_.kV,{cond:function(){return d().eyebrowText},
then:function(){return _.g("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.g(_.lG,{text:function(){return d().eyebrowText}}))}}),_.g("div",{class:"ytm-option-item-renderer__option-item-title"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.g(_.lG,{text:function(){return d().subtitle}})),_.g("div",{class:"ytm-option-item-renderer__option-item-description"},_.g(_.lG,{text:function(){return d().description}}))))},
"Xe");var aRG=_.SG(function(M){var d=M.data;var N=M.flowClassName;var R=M.flowStateEntityKey;var X=M.selectionStepStyle;return _.g("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.g("div",{class:"yt-option-section-renderer__option-section-header-section"},_.g("div",{class:"yt-option-section-renderer__option-section-header"},_.g(_.lG,{text:function(){return d().title}}),_.g(_.ho,{data:function(){return d().titleBadge}},{badgeViewModel:function(A){return _.g(_.nN,
{data:A.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(){return _.g("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.g(_.lG,{text:function(){return d().subtitle}}))}}),_.g(_.kV,{cond:function(){return d().featureListData},
then:function(A){return _.g("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.g(_.TN,{each:A},function(l){var k;return _.g("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.g(_.Fc,{icon:(k=l.icon)==null?void 0:k.iconType,className:l.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.g("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.g(_.lG,{text:l.text})))}))}}),_.g(_.TN,{each:function(){return d().sectionDisclaimers||[]}},function(A){return _.g("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.g(_.lG,{text:A}))})),_.g(_.ho,{data:function(){return d().optionItems}},{optionItemRenderer:function(A){return _.g("div",{class:"yt-option-section-renderer__option-item"},_.g(GNY,{data:A.data,
className:N,flowStateEntityKey:R,selectionStepStyle:X}))}}),_.g(_.kV,{cond:function(){return d().offerText},
then:function(){return _.g("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.g(_.lG,{text:function(){return d().offerText}}))}}))},"Ye");
aRG.idomCompat=!0;var UVC=_.SG(function(M){var d=M.data;var N=M.flowClassName;var R=M.flowStateEntityKey;M=M.isDesktop;var X=function(){var W;return(W=d().flowStateEntityKey)!=null?W:R==null?void 0:R()},A=function(){return(X==null?void 0:X())||""},l=function(){return d().style},k=_.FT(_.dz,A);
_.IJ(function(){var W=d(),w=A(),p=k();!_.q(p,Gv)&&W.noPreselect&&w!==""&&W.defaultButtonOverride&&DQ4("default",w,W.defaultButtonOverride,p)});
var T={};return _.g("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.xj("ytm-option-selection-flow-step-renderer",(T["ytm-option-selection-flow-step-renderer--desktop"]=M,T["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return d().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},T))},_.g("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"},
_.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.g(_.lG,{text:function(){return d().header}})),_.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.g(_.lG,{text:function(){return d().subtitle}}))),_.g(_.ho,{data:function(){return d().optionItems||[]}},{optionItemRenderer:function(W){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.g(GNY,{data:W.data,
className:N,flowStateEntityKey:X,selectionStepStyle:l}))},
optionSectionRenderer:function(W){return _.g("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.g(aRG,{data:W.data,flowClassName:N,flowStateEntityKey:X,selectionStepStyle:l}))}}))},"Ze");
UVC.idomCompat=!0;_.eC(UVC,"yt-option-selection-flow-step-renderer",{props:{data:_.cA,flowClassName:_.cA,flowStateEntityKey:_.cA,isDesktop:_.cA}});var gae,WxY;_.rv=_.SG(function(M){var d=_.cu(M,{type:1,disablePadding:!1,disablePrimaryButton:!1}),N=d.data,R=d.type;M=d.disablePadding;var X=d.disablePrimaryButton,A=d.onClickPrimaryButton,l=function(){return N().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},k=function(){return{disabled:X(),
state:X()?"disabled":"active"}},T=function(){return N().leadingLabel||N().trailingLabel};
d={};return _.g("yt-panel-footer-view-model",{class:_.xj("yt-panel-footer-view-model-wiz",(d["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return N().shouldHideDivider},d["yt-panel-footer-view-model-wiz--disable-padding"]=M,d))},_.g(_.kV,{cond:T,
then:function(){var W={},w={};return _.g("div",{class:_.xj("yt-panel-footer-view-model-wiz__text-row",(W["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var p=N();return!(!p.leadingLabel&&!p.trailingLabel||!p.primaryButton&&!p.secondaryButton)},W))},_.g(_.lG,{text:function(){return N().leadingLabel},
className:_.xj((w["yt-panel-footer-view-model-wiz--text-padding"]=T,w))}),_.g(_.lG,{text:function(){return N().trailingLabel}}))}}),_.g(_.kV,{cond:l,
then:function(){var W={};return _.g("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.g("div",{class:_.xj("yt-panel-footer-view-model-wiz__primary-button",(W["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return N().secondaryButton},W))},_.g(_.ho,{data:function(){return N().primaryButton}},{buttonViewModel:function(w){return _.g(_.o0,{data:w.data,
buttonOverrides:k,onClick:A})}})),_.g(_.ho,{data:function(){return N().secondaryButton}},{buttonViewModel:_.o0}))}}),_.g(_.kV,{cond:function(){return!l()},
then:function(){var W={},w={},p={};return _.g("div",{class:_.xj("yt-panel-footer-view-model-wiz__button-row",(W["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===R()},W))},_.g("div",{class:_.xj("yt-panel-footer-view-model-wiz__button-row--left-button",(w["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===R()},w["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!N().secondaryButton||0===R()},w["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===R()},w))},_.g(_.ho,{data:function(){return N().secondaryButton}},{buttonViewModel:_.o0})),_.g("div",{class:_.xj("yt-panel-footer-view-model-wiz__primary-button",(p["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===R()||1===R()},p["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===R()},p))},_.g(_.ho,{data:function(){return N().primaryButton}},{buttonViewModel:function(m){return _.g(_.o0,{data:m.data,
buttonOverrides:k,onClick:A})}})))}}))},"$e");
_.rv.idomCompat=!0;_.uoP=_.SG(function(M){M=_.cu(M,{disablePadding:!1});var d=M.data,N=M.disablePadding;M=_.hyd(function(){return d().formId});
var R=M.onSubmit,X=M.isValid,A=M.isSubmitting;return _.g("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.g(_.ho,{data:function(){return d().panelFooter}},{panelFooterViewModel:function(l){return _.g(_.rv,{data:l.data,
onClickPrimaryButton:function(){R()},
disablePrimaryButton:function(){return!X()||A()},
disablePadding:N})}}))},"af");_.eC(_.uoP,"yt-form-footer-view-model",{props:{data:_.cA,disablePadding:_.cA}});_.eC(_.SG(function(M){return _.g("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.g(_.kV,{cond:function(){var d;return(d=M.data())==null?void 0:d.image},
then:function(d){return _.g(_.Jt,{data:d,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.g(_.lG,{text:function(){var d;
return(d=M.data())==null?void 0:d.title}})),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.g(_.lG,{text:function(){var d;
return(d=M.data())==null?void 0:d.subtitle}})),_.g("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.g(_.ho,{data:function(){var d;
return(d=M.data())==null?void 0:d.viewTipsButton}},{buttonViewModel:_.o0}))))},"bf"),"yt-contributor-zero-state-view-model",{props:{data:_.cA}});var CsC=_.SG(function(M){var d=_.FT(QW4,_.Jy(function(){var N;return(N=M.data())==null?void 0:N.noteFeedEntityKey},""));
return _.g("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.g(_.kV,{cond:function(){var N,R;return(N=M.data())==null?void 0:(R=N.noteData)==null?void 0:R.isPinned},
then:function(){return _.g(_.Fc,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.g(_.lG,{text:function(){var N,R;
return(N=M.data())==null?void 0:(R=N.noteData)==null?void 0:R.headerText}}),_.g("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.g(_.lG,{text:function(){var N,R;
return(N=M.data())==null?void 0:(R=N.noteData)==null?void 0:R.delimiter}})),_.g(_.lG,{text:function(){var N,R;
return(N=d())==null?void 0:(R=N.contributorNote)==null?void 0:R.publishedTimeText}})),_.g(_.ho,{data:function(){var N,R,X,A=(N=M.data())==null?void 0:N.noteData;
N=(R=d())==null?void 0:(X=R.contributorNote)==null?void 0:X.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:A.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:A.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:A.deleteDialogTitle}]},dialogMessages:[{runs:[{text:A.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.deleteActionText}]},command:{performCommentActionEndpoint:{action:N}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.g("div",{class:"ytNoteViewModelNoteContent"},_.g(_.lG,{text:function(){var N,R;
return(N=d())==null?void 0:(R=N.contributorNote)==null?void 0:R.text}})))},"cf");
CsC.idomCompat=!0;_.eC(CsC,"yt-note-view-model",{props:{data:_.cA}});var Kn=_.SG(function(M){var d=_.cu(M,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),N=d.label,R=d.text,X=d.placeholder,A=d.hint;M=d.rows;var l=d.overflowStyle,k=d.outline,T=d.disabled,W=d.disableNewLines,w=d.characterLimit,p=d.validation,m=d.onInput,I=_.e5();d=_.V(_.Rq(function(){return R()}));
var O=d.next().value,y=d.next().value;d=_.V(_.d0(!1,void 0,"fXvinf"));var c=d.next().value,e=d.next().value,t=function(){e(!0)},C=function(){e(!1)};
_.IJ(function(){var Hj=I.value,LZ=l(),w3=O();LZ==="expand-vertically"&&w3&&qsi(Hj);I.value.addEventListener("focusin",t);I.value.addEventListener("focusout",C)});
_.mF(function(){I.value.removeEventListener("focusin",t);I.value.removeEventListener("focusout",C)});
var U=function(){var Hj;return(Hj=p())==null?void 0:Hj.validate(O())},Fi=function(){return w()&&!U()&&O().length>w().maxChars},Y=function(){return!!U()||Fi()};
d=_.dT(function(Hj){if(!Hj.currentTarget)return!1;Hj=Hj.currentTarget;y(Hj.value);l()==="expand-vertically"&&qsi(Hj);m==null||m(Hj.value);return!0});
var $i=_.dT(function(Hj){W()&&Hj.key==="Enter"&&Hj.preventDefault();return!1}),vj=_.dT(function(){I.value.focus()}),Pj=function(){return X()||N()},sS={},tL={},b2={};
return _.g("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.g("div",{class:_.xj("ytStandardsTextareaShapeTextareaContainer",(sS.ytStandardsTextareaShapeTextareaContainerOutline=k,sS.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=T,sS.ytStandardsTextareaShapeTextareaContainerOutlineError=Y,sS)),"on:click":vj},_.g("label",{class:_.xj("ytStandardsTextareaShapeLabel",(tL.ytStandardsTextareaShapeLabelFocused=c,tL.ytStandardsTextareaShapeLabelDisabled=T,tL.ytStandardsTextareaShapeLabelError=
function(){return Y()&&!T()},tL.ytStandardsTextareaShapeLabelHidden=function(){return!c()&&!O()&&!!Pj()},tL))},N),_.g("div",{class:_.xj("ytStandardsTextareaShapePlaceholder",(b2.ytStandardsTextareaShapePlaceholderVisible=function(){return!c()&&!O()},b2)),
"aria-hidden":"true"},Pj),_.g("textarea",{el:I,class:"ytStandardsTextareaShapeTextarea",rows:M,disabled:T,placeholder:Pj,"on:input":d,"on:keydown":$i},O)),_.g(_.kV,{cond:function(){return A()&&!Y()},
then:function(){var Hj={};return _.g("div",{class:_.xj("ytStandardsTextareaShapeHint",(Hj.ytStandardsTextareaShapeHintDisabled=T,Hj))},_.g("div",{class:"ytStandardsTextareaShapeHintHintMessage"},A))}}),_.g(_.kV,{cond:U,
then:function(){return _.g(xVd,{disabled:T},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},U))}}),_.g(_.kV,{cond:w,
then:function(Hj){return _.g(_.kV,{cond:Fi,then:function(){return _.g(xVd,{disabled:T},_.g("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Hj().errorMessage}),_.g("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return O().length+"/"+Hj().maxChars}))}})}}))},"df");
Kn.idomCompat={callbacks:{onInput:!0}};var xVd=_.SG(function(M){var d={};return _.g("div",{class:_.xj("ytStandardsTextareaShapeError",(d.ytStandardsTextareaShapeErrorDisabled=M.disabled,d)),role:"alert"},_.g(_.Fc,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),M.children)},"ef");_.YlT=_.SG(function(M){var d=M.data;return _.g("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.g(Kn,{text:M.text,label:function(){var N;return(N=d().contentProperties)==null?void 0:N.labelText},
placeholder:function(){var N;return(N=d().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=d().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=d().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=d().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:M.disabled,disableNewLines:function(){var N;return(N=d().displayProperties)==null?void 0:N.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var N;return(N=d().displayProperties)==null?void 0:N.rows}}))},"ff");_.ZFJ=_.SG(function(M){var d=M.data;return _.g("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.g(Kn,{text:M.text,label:function(){var N;return(N=d().contentProperties)==null?void 0:N.labelText},
placeholder:function(){var N;return(N=d().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=d().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=d().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=d().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var N;return(N=d().displayProperties)==null?void 0:N.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var N;return(N=d().displayProperties)==null?void 0:N.rows}}))},"gf");var EVb=_.SG(function(M){var d=_.V(_.Rq(function(){var Pj,sS;return((Pj=M.data().structuredContextNoteFormSchema)==null?0:(sS=Pj.initialValues)==null?0:sS.noteBody)?M.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),N=d.next().value,R=d.next().value;
d=_.V(_.Rq(function(){M.data();return!1}));
var X=d.next().value,A=d.next().value;d=_.V(_.Rq(function(){M.data();return!1}));
var l=d.next().value,k=d.next().value;d=_.V(_.Rq(function(){var Pj,sS;return((Pj=M.data().structuredContextNoteFormSchema)==null?0:(sS=Pj.initialValues)==null?0:sS.timestamp)?M.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var T=d.next().value,W=d.next().value;d=_.V(_.Rq(function(){M.data();return!1}));
var w=d.next().value,p=d.next().value;d=_.V(_.Rq(function(){var Pj,sS;return((Pj=M.data().structuredContextNoteFormSchema)==null?0:(sS=Pj.initialValues)==null?0:sS.sources)?[M.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var m=d.next().value,I=d.next().value;d=_.V(_.Rq(function(){M.data();return!1}));
var O=d.next().value,y=d.next().value;d=_.V(_.Rq(function(){return!1}));
var c=d.next().value,e=d.next().value;_.IJ(function(){var Pj;_.mQG((Pj=M.data().structuredContextNoteFormSchema)==null?void 0:Pj.id,{isSubmitting:c,onSubmit:function(){e(!0);var sS=Kxi(N(),T(),m(),M.data()),tL=_.h().resolve(_.xV);sS&&tL&&tL.resolveCommand(sS,{commandController:{onSuccess:function(){e(!1)}}})},
isValid:function(){return X()&&!l()&&!w()&&!O()}})});
var t=function(Pj){if(Pj!==void 0&&(R(Pj),!X()&&Pj.length>0&&A(!0),X())){var sS=Oki(M.data());if(sS){var tL=sS.minLength;sS=sS.maxLength;tL&&Pj.length<tL?k(!0):sS&&Pj.length>sS?k(!0):k(!1)}}},C=function(Pj){if(Pj!==void 0){W(Pj);
if(Pj.length>0){var sS,tL,b2,Hj,LZ=sWb((sS=M.data())==null?void 0:(tL=sS.structuredContextNoteFormSchema)==null?void 0:(b2=tL.fieldSchemas)==null?void 0:(Hj=b2.timestamp)==null?void 0:Hj.validationSchema);if(LZ&&(sS=LZ.regex)&&!(new RegExp(sS)).test(Pj)){p(!0);return}}p(!1)}},U=function(Pj){if(Pj!==void 0){var sS=Pj.split(/[ \n]/).map(function(tL){return tL.trim()});
I(sS);if(Pj.length>0)for(Pj=_.V(sS),sS=Pj.next();!sS.done;sS=Pj.next())if(!r8J(sS.value)){y(!0);return}y(!1)}},Fi=function(){return{validate:function(Pj){if(X()){var sS=Oki(M.data());
if(sS){var tL=sS.minLength;sS=sS.translations;if(tL&&Pj.length<tL)return sS==null?void 0:sS.minLengthErrorMessage}}}}},Y=function(){var Pj=Oki(M.data()),sS=Pj==null?void 0:Pj.maxLength,tL;
Pj=Pj==null?void 0:(tL=Pj.translations)==null?void 0:tL.maxLengthErrorMessage;if(sS&&Pj)return{maxChars:sS,errorMessage:Pj}},$i=function(){return{validate:function(Pj){if(Pj){var sS,tL,b2,Hj,LZ=sWb((sS=M.data())==null?void 0:(tL=sS.structuredContextNoteFormSchema)==null?void 0:(b2=tL.fieldSchemas)==null?void 0:(Hj=b2.timestamp)==null?void 0:Hj.validationSchema);
if(LZ&&(sS=LZ.regex,LZ=LZ.translations,sS&&!(new RegExp(sS)).test(Pj)))return LZ==null?void 0:LZ.regexErrorMessage}}}},vj=function(){return{validate:function(Pj){if(Pj){var sS,tL,b2,Hj,LZ=oaJ((sS=M.data())==null?void 0:(tL=sS.structuredContextNoteFormSchema)==null?void 0:(b2=tL.fieldSchemas)==null?void 0:(Hj=b2.sources)==null?void 0:Hj.validationSchema);
if(LZ&&(sS=LZ.translations,sS==null?0:sS.selectedErrorMessage))for(Pj=Pj.split(/[ \n]/).map(function(w3){return w3.trim()}),Pj=_.V(Pj),tL=Pj.next();!tL.done;tL=Pj.next())if(!r8J(tL.value))return Pj=void 0,(Pj=sS)==null?void 0:Pj.selectedErrorMessage}}}};
return _.g("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.ho,{data:function(){var Pj;return(Pj=M.data())==null?void 0:Pj.noteContents}},{textFormFieldViewModel:function(Pj){return _.g(_.ZFJ,{data:Pj.data,
onInput:t,validation:Fi,characterLimit:Y})},
textFieldViewModel:function(Pj){return _.g(_.YlT,{data:Pj.data,onInput:t,validation:Fi,characterLimit:Y})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.ho,{data:function(){var Pj;
return(Pj=M.data())==null?void 0:Pj.noteTimestamp}},{textFormFieldViewModel:function(Pj){return _.g(_.ZFJ,{data:Pj.data,
onInput:C,validation:$i})},
textFieldViewModel:function(Pj){return _.g(_.YlT,{data:Pj.data,onInput:C,validation:$i})}})),_.g("div",{class:"ytStructuredContextNoteViewModelTextField"},_.g(_.ho,{data:function(){var Pj;
return(Pj=M.data())==null?void 0:Pj.noteSources}},{textFormFieldViewModel:function(Pj){return _.g(_.ZFJ,{data:Pj.data,
onInput:U,validation:vj})},
textFieldViewModel:function(Pj){return _.g(_.YlT,{data:Pj.data,onInput:U,validation:vj})}})))},"hf");
EVb.idomCompat=!0;_.eC(EVb,"yt-structured-context-note-view-model",{props:{data:_.cA}});var MwY=_.SG(function(M){var d=_.V(_.Rq(function(){var A;if((A=M.controlled)==null?0:A.call(M))return[];var l;return(((l=M.data())==null?void 0:l.chips)||[]).map(function(k){k=_.q(k,_.cq);if(k==null?0:k.selected)return y8T(k.chipValue)}).filter(function(k){return k!==void 0})})),N=d.next().value,R=d.next().value,X=function(A){var l=y8T(A.chipValue);
if(l!==void 0){var k;if((k=M.controlled)==null?0:k.call(M))return void M.controlled().onTap(l);A=N().includes(l)?[].concat(_.wu(N().filter(function(W){return W!==l}))):[].concat(_.wu(N()),[l]);
R(A);var T;if((T=M.uncontrolled)==null?0:T.call(M))M.uncontrolled().onUpdate(A)}};
return _.g("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.g(_.TN,{each:function(){return M.data().chips||[]}},function(A){return _.g("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.g(_.Ebd,{data:function(){return _.q(A,_.cq)},
selected:function(){var l;if(l=_.q(A,_.cq)){var k=y8T(l.chipValue);if(k!==void 0){var T;l=((T=M.controlled)==null?0:T.call(M))?M.controlled().selectedValues.includes(k):N().includes(k)}else l=void 0}else l=!1;return l},
callback:X}))}))},"jf");var dBY=_.SG(function(M){var d=M.data;var N=function(){var k;return((k=d())==null?void 0:k.flowStateKey)||""},R=_.FT(_.dz,N),X=function(){var k;
return(k=_.q(R(),vTP))==null?void 0:k.chips},A=function(k){if(k!==void 0){var T=X()||[];
T=T.find(function(W){return W===k})?T.filter(function(W){return W!==k}):[].concat(_.wu(T),[k]);
T=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.q(R(),vTP),{chips:T})});_.yE(_.la("flowStateEntity",N(),T))}},l=function(){var k;
return _.q((k=d())==null?void 0:k.inputBox,Ouq)};
M=_.m2(function(k){var T=l();T=!(T==null?0:T.maxChars)||k.length<=T.maxChars;k=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.q(R(),vTP),{detail:k}),abuseReportFlowState:Object.assign({},_.q(R(),uF),{navigationEnabled:T})});_.yE(_.la("flowStateEntity",N(),k))},150);
return _.g("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.g("div",{class:"ytFeedbackFormViewModelChips"},_.g(_.ho,{data:function(){var k;return(k=d())==null?void 0:k.chipSelection}},{chipSelectionFormFieldViewModel:function(k){return _.g(MwY,{data:k.data,
controlled:function(){return{selectedValues:X()||[],onTap:A}}})}})),_.g("div",{class:"ytFeedbackFormViewModelInputBox"},_.g(Kn,{text:function(){var k;
return(k=_.q(R(),vTP))==null?void 0:k.detail},
placeholder:function(){var k;return((k=l())==null?void 0:k.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var k=l();if(k&&k.maxChars)return{maxChars:k.maxChars,errorMessage:k.maxCharsExceededErrorMessage||""}},
onInput:M})),_.g("div",{class:"ytFeedbackFormViewModelFooterText"},_.g(_.lG,{text:function(){return d().footerText}})))},"kf");
dBY.idomCompat=!0;_.eC(dBY,"yt-feedback-form-view-model",{props:{data:_.cA}});var N2G=_.SG(function(M){var d=M.data;var N=function(){return d().flowStateKey||""},R=_.FT(rwC,N),X=function(){return _.q(R(),uF)},A=function(){if(_.Q("enable_gff_accessibility_fix")){var l=!0,k;
if((k=X())==null?0:k.navigationEnabled){var T;_.vz((T=X())==null?void 0:T.navigationCommand);l=!1}k=Object.assign({},R(),{abuseReportFlowState:Object.assign({},X(),{isReportFormDirty:l})});_.yE(_.la("flowStateEntity",N(),k))}else _.vz((l=X())==null?void 0:l.navigationCommand)};
return _.g("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.g("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.g(_.ho,{data:function(){return d().cancelButton}},{buttonViewModel:function(l){return _.g(_.o0,{data:l.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:A})}}),_.g(_.ho,{data:function(){var l;
if(d().navButton){var k=Object;var T=k.assign,W=_.q(d().navButton,_.QM),w=((l=X())==null?0:l.navigationEnabled)||_.Q("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",p,m;l=_.q((p=X())==null?void 0:p.navigationCommand,_.mX);p=(m=_.q(l,_.JQ))==null?void 0:m.url;k={buttonViewModel:T.call(k,{},W,{state:w,iconName:p?"OPEN_IN_NEW":""})}}else k=void 0;return k}},{buttonViewModel:function(l){return _.g(_.o0,{data:l.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:A})}})))},"lf");
N2G.idomCompat=!0;_.eC(N2G,"yt-report-form-bottom-bar-view-model",{props:{data:_.cA}});var RaG=_.SG(function(M){var d=M.nextStep;return _.g("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.g("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.g(_.Fc,{icon:function(){return d().iconName||""}})),_.g("div",null,_.g(_.lG,{text:function(){return d().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"mf"),XJd=_.SG(function(M){var d=M.data;
var N,R=(N=_.h().resolve(_.CF(_.Pz)))==null?void 0:N(),X=_.FT(_.dz,function(){return d().flowStateKey||""});
return _.g("yt-report-form-confirmation-page-view-model",{class:function(){var A;return((A=_.q(X(),uF))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.g("div",{class:function(){var A;
return((A=_.q(X(),uF))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.g(_.Jt,{data:function(){return R&&d().imageDark?d().imageDark:d().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return d().confirmationHeader}),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.g(_.lG,{text:function(){return d().confirmationText}})),_.g("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.g(_.lG,{text:function(){return d().lawEnforcementText}})),
_.g("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return d().whatToExpectHeader}),_.g(_.kV,{cond:function(){return d().nextSteps},
then:function(A){return _.g("div",null,_.g(_.TN,{each:A},function(l){return _.g(RaG,{nextStep:l})}))}}),_.g(_.kV,{cond:function(){return d().legalReportText},
then:function(A){return _.g("div",null,_.g(_.lG,{text:A,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"nf");
XJd.idomCompat=!0;_.eC(XJd,"yt-report-form-confirmation-page-view-model",{props:{data:_.cA}});var FDb=_.SG(function(M){var d=M.data;var N=function(){var A;return((A=_.q(d().inputBox,Ouq))==null?void 0:A.maxChars)||500},R=function(){return d().flowStateKey||""},X=_.FT(_.dz,R);
M=_.m2(function(A){A=Object.assign({},X(),{flowFormState:{isValid:A.length<=N()},abuseReportFlowState:{userComments:A,navigationEnabled:!(A.length>N()),isReportFormDirty:!0}});_.r4().dispatch(_.v5("flowStateEntity",R(),A))},150);
_.IJ(function(){var A=Object.assign({},X(),{flowFormState:{isValid:!0}});_.r4().dispatch(_.v5("flowStateEntity",R(),A))});
return _.g("yt-report-form-details-page-view-model",{class:function(){var A;return((A=_.q(X(),uF))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.g("h1",{class:function(){var A;
return((A=_.q(X(),uF))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return d().detailsPageHeader}),_.g("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.g(_.lG,{text:function(){return d().bodyText}})),_.g("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.g(Kn,{label:function(){var A;
return((A=_.q(d().inputBox,Ouq))==null?void 0:A.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var A;return{errorMessage:((A=_.q(d().inputBox,Ouq))==null?void 0:A.maxCharsExceededErrorMessage)||"",maxChars:N()}},
onInput:M})))},"of");
FDb.idomCompat=!0;_.eC(FDb,"yt-report-form-details-page-view-model",{props:{data:_.cA}});var AmJ=_.SG(function(M){var d=M.data;var N=M.selectedKey;var R=M.onSelected;var X=M.groupName;var A=function(){return d().text},l=function(){return d().attributedText},k=function(){return d().subtext},T=function(){return d().attributedSubtext},W=_.g("div",{class:"ytRadioButtonItemViewModelLabel"},_.g(_.kV,{cond:A,
then:function(){return _.g("div",null,A)}}),_.g(_.kV,{cond:l,
then:function(){return _.g(_.lG,{text:l})}}),_.g(_.kV,{cond:k,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},k)}}),_.g(_.kV,{cond:T,
then:function(){return _.g("div",{class:"ytRadioButtonItemViewModelSubText"},_.g(_.lG,{text:T}))}})),w=function(){if(l()){var m;
return(m=l())==null?void 0:m.content}return A()},p=function(){if(T()){var m;
return(m=T())==null?void 0:m.content}return k()};
M={};return _.g("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.g(_.DN,{name:X,checked:function(){return!(N==null||!N()||d().key!==(N==null?void 0:N()))},
onChange:function(m){R==null||R(m.target,d(),X==null?void 0:X())},
labelRenderable:function(){return W},
ariaLabel:function(){return p()?w()+", "+p():w()},
className:_.xj((M.ytRadioButtonItemViewModelSubTitle=function(){return!!d().subtext},M))}))},"pf");_.Vw4=_.SG(function(M){var d=M.data;var N=M.onSelected;var R=M.selectedKey;var X=M.groupName;return _.g("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.g("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.g(_.ho,{data:function(){return d().radioButtons}},{radioButtonItemViewModel:function(A){var l=A.data;
return _.g(AmJ,{data:l,onSelected:N,selectedKey:R,groupName:function(){var k;return(k=X==null?void 0:X())!=null?k:l().key}})}})))},"qf");var lsJ=_.SG(function(M){var d=M.data;var N=_.Hh(),R=function(){return d().flowStateKey||""},X=_.FT(_.dz,R),A=function(){return _.q(X(),uF)};
_.Wg(function(){var l,k;if(((l=A())==null?0:l.isReportFormDirty)&&((k=A())==null||!k.navigationEnabled)&&_.Q("enable_gff_accessibility_fix")){var T;if(((T=A())==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var W;(W=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||W.scrollIntoView()}else{var w;(w=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||w.scrollIntoView()}}});
return _.g("yt-report-form-reason-select-page-view-model",{class:function(){var l;return((l=A())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.g("h1",{class:function(){var l;
return((l=A())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return d().pageHeader}),_.g("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.g(_.lG,{text:function(){return d().bodyText}})),_.g("div",{class:function(){var l;
return((l=A())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.g(_.kV,{cond:function(){var l,k;
return((l=A())==null?void 0:l.isReportFormDirty)&&!((k=A())==null?0:k.navigationEnabled)&&_.Q("enable_gff_accessibility_fix")},
then:function(){return _.g("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:N},_.g(_.Fc,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.g("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return d().emptyReasonSelectErrorMessage}))}}),_.g(_.Vw4,{data:function(){return _.q(d().radioButtonGroup,_.JlC)},
onSelected:function(l,k){l=Object.assign({},X(),{abuseReportFlowState:Object.assign({},A(),{reasonKey:k.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:k.command})});_.yE(_.la("flowStateEntity",R(),l))},
selectedKey:function(){var l;return(l=A())==null?void 0:l.reasonKey},
groupName:"report-form-reason-select-page"})))},"rf");
lsJ.idomCompat=!0;_.eC(lsJ,"yt-report-form-reason-select-page-view-model",{props:{data:_.cA}});var $Bd=_.SG(function(M){var d=M.data;var N,R=(N=_.h().resolve(_.CF(_.Pz)))==null?void 0:N();return _.g("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.g("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.g(_.Jt,{data:function(){return R&&d().imageDark?d().imageDark:d().image},
alt:""})),_.g("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.g("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return d().header}),_.g(_.lG,{text:function(){return d().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"sf");
$Bd.idomCompat=!0;_.eC($Bd,"yt-report-form-sign-in-page-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=function(){var W;return(W=d().textInputPlaceholder)==null?void 0:W.content},R=function(W){W=W.target.value.trim();
var w=d().onUpdateText;w&&_.vz(w,{form:{userQuery:W}});d().userQuery=W},X=_.m2(function(W){R(W)},150),A=_.dT(function(W){X(W);
return!1}),l=_.dT(function(W){W.key==="Enter"&&(R(W),(W=d().onNextStepCommand)&&_.vz(W,{}));
return!1}),k=_.e5(),T=function(){if(_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")){var W,w,p;
(p=(w=(W=k.value)==null?void 0:W.closest("ytd-flow-step-renderer"))==null?void 0:w.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||p.click()}};
return _.g("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:k},_.g("div",{class:"ytwTalkToRecsTopCornerButton"},_.g(_.ho,{data:function(){return d().topCornerButton}},{buttonViewModel:_.o0})),_.g("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.g("div",{class:"ytwTalkToRecsTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"ytwTalkToRecsSubtitle"},_.g(_.lG,{text:function(){return d().subtitle}})),_.g("div",{class:"ytwTalkToRecsChipsShelf"},_.g(_.ho,{data:function(){return d().answersShelf}},
{chipsShelfViewModel:function(W){return _.g(_.V_d,{data:W.data,
callback:T})}})),_.g(_.kV,{cond:function(){return d().showOpenTextInput&&!_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.g("div",{class:"ytwTalkToRecsUserInputBox"},_.g("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:N,value:function(){return d().userQuery},
"on:input":A,"on:keyup":l}))}})))},"tf"),"yt-talk-to-recs-view-model",{props:{data:_.cA}});var J89={sources:[{clientResource:{imageName:"CHECK"}}]};_.B29=_.SG(function(M){var d=_.e5();M=_.cu(M,{error:void 0});var N=M.data,R=M.error,X=M.onSelected;M=_.V(_.Rq(function(){return zyD(N())}));
var A=M.next().value,l=M.next().value;na9(N,function(p){l(p);var m,I,O=SsP((m=N().options)==null?void 0:(I=m[p])==null?void 0:I.value,N().type);X==null||X(O);d.value.focus()});
M=_.dT(function(){if(!N().disabled){var p=N(),m=A(),I=d.value;p.options&&(p=c8G(p.options,m,p.label),_.h().resolve(_.Wc).openSheet({viewModel:p},I))}});
var k=_.inS(),T=function(){return!!R()},W=function(){return!!N().disabled},w={};
w=_.xj("ytDropdownViewModelDropdownContainer",(w.ytDropdownViewModelDropdownContainerErrorBorder=T,w.ytDropdownViewModelDropdownContainerDisabled=W,w));return _.g("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.g("div",{class:w,"on:click":M,el:d,role:"combobox",tabindex:0,"on:keydown":k,"aria-invalid":T,"aria-disabled":W,"aria-describedby":function(){return T()?"dropdown-view-model-error":void 0}},_.g("div",{class:"ytDropdownViewModelText"},bkd(N,T,A),ey9(N,A)),_.g("div",{class:"ytDropdownViewModelChevronDown"},
_.g(_.Fc,{icon:"CHEVRON_DOWN"}))),HkC(N,R))},"uf");_.eC(_.SG(function(M){var d=M.data;var N=function(X){var A=fL4(d());A.videoMetadata||(A.videoMetadata={});A.videoMetadata.sponsorshipsMetadata||(A.videoMetadata.sponsorshipsMetadata={});A.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(X)},R=function(X){var A=fL4(d());
A.scheduledRedirectMetadata||(A.scheduledRedirectMetadata={});A.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(X)};
return _.g("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.g("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.g("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.g(_.lG,{text:function(){return d().title}}),_.g(_.Fc,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.g(_.lG,{text:function(){return d().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.g(_.ho,{data:function(){return d().tierChoices}},{dropdownViewModel:function(X){return _.g("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.g(_.B29,{data:X.data,
onSelected:N}))}}),_.g(_.ho,{data:function(){return d().startTimeChoices}},{dropdownViewModel:function(X){return _.g("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.g(_.B29,{data:X.data,
onSelected:R}))}}),_.g(_.lG,{text:function(){return d().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.g("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.g(_.ho,{data:function(){return d().scheduleButton}},{panelFooterViewModel:_.rv})))},"vf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;M=M.className===void 0?"":M.className;var N=_.FT(rwC,function(){return d().flowStateEntityKey||""}),R={};
R=_.xj("ytFlowBottomBarViewModelFlowBottomBarButtons",(R.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},R));
var X={},A=_.xj("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",R,(X.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},X));
X={};var l=_.xj("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",R,(X.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},X));
R={};R=_.xj("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return d().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
R));
return _.g("yt-flow-bottom-bar-view-model",{class:_.xj("ytFlowBottomBarViewModelHost",M)},_.g(_.kV,{cond:function(){var k;return(k=d())==null?void 0:k.textSection},
then:function(k){return _.g("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.g(_.lG,{text:k}))}}),_.g("div",{class:R},_.g(_.ho,{data:function(){return d().secondaryButton}},{buttonViewModel:function(k){return _.g(_.o0,{data:k.data,
className:l})}}),_.g(_.ho,{data:function(){return d().primaryButton}},{buttonViewModel:function(k){return _.g(_.o0,{data:k.data,
className:A,buttonOverrides:function(){var T;return{disabled:!((T=N())==null||!T.primaryButtonDisabled)}}})}})))},"wf"),"yt-flow-bottom-bar-view-model",{props:{data:_.cA,
className:_.bI}});var ks$="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),y_=function(){var M=_.n.apply(this,arguments)||this;M.enableScrollingFix=!0;M.bottomBar=!1;M.hideBottomBar=!1;M.fitContent=!1;return M};
_.v(y_,_.n);_.F=y_.prototype;_.F.ready=function(){_.Q("enable_pdp_icon_prefetch")&&_.IKe(_.h().resolve(_.Yf),0,ks$)};
_.F.focus=function(M){this.topBar?_.e6(this.topBar,M):this.paperDialog.focus(M)};
_.F.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16711_scroller&&(this.JSC$16711_scroller.dialogElement=this.paperDialog,this.JSC$16711_scroller.attached&&typeof this.JSC$16711_scroller.attached==="function"&&this.JSC$16711_scroller.attached())};
_.F.onDataChanged=function(){var M;this.fitContent=!((M=this.data)==null||!M.fitContent);var d;this.bottomBar=!((d=this.data)==null||!d.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.F.onProgressChanged=function(){var M,d,N=((d=(M=this.data)==null?void 0:M.progress)!=null?d:0)*100;this.progressElement.style.width=N+"%"};
_.F.isProgressHidden=function(){var M;return!((M=this.data)==null?0:M.progress)};
_.F.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(M){return _.Q("enable_wiz_next_lp2_msof")&&M&&!M.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Hm.Object.defineProperties(y_.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var M;return _.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.q((M=this.data)==null?void 0:M.content,rle)}}});
y_.prototype.onProgressChanged=y_.prototype.onProgressChanged;y_.prototype.onDataChanged=y_.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],y_.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],y_.prototype,"enableScrollingFix",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],y_.prototype,"bottomBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],y_.prototype,"hideBottomBar",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],y_.prototype,"containsExploreHub",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],y_.prototype,"fitContent",void 0);_.G([_.Z3("#progress"),_.a("design:type",HTMLElement)],y_.prototype,"progressElement",void 0);
_.G([_.Z3("#scroller"),_.a("design:type",Object)],y_.prototype,"JSC$16711_scroller",void 0);_.G([_.Z3("ytd-flow-top-bar-renderer"),_.a("design:type",HTMLElement)],y_.prototype,"topBar",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y_.prototype,"onDataChanged",null);_.G([_.xB("data.progress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y_.prototype,"onProgressChanged",null);
y_=_.G([_.f({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],y_);
_.L(y_,"ytd-flow-step-renderer",function(){if(ZuJ!==void 0)return ZuJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZuJ=M},{mode:1});var T2q=function(M){this.resolveCommand=M;this.steps={}},DB$=function(M,d){d=_.V(d||[]);
for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=Object.values(N)[0],X=void 0;if((X=R)==null?0:X.stepId)M.steps[R.stepId]=N}},wJr=function(M,d){var N,R,X,A,l;
return _.B(function(k){if((N=M.state)==null||!N.currentStepId)return k.return(void 0);R=gYP(M);if(!R)return k.return(WDC(M));if(X=_.q(R,_.oT9)){var T;((T=X.screenLoggingData)==null?0:T.screenVeType)&&_.dm(_.Nx(),X.screenLoggingData.screenVeType);((A=X)==null?0:A.onStepStartCommand)&&M.resolveCommand((l=X)==null?void 0:l.onStepStartCommand,{})}if(X&&d){T=X;var W,w,p,m;((W=d.flowLoggingData)==null?0:W.eventNamespace)&&((w=T.flowEventData)==null?0:w.eventType)&&((p=T.flowEventData)==null?0:p.eventMetadata)&&
((m=d.flowLoggingData)==null?0:m.flowType)&&(W=_.df(d.flowLoggingData.eventNamespace,T.flowEventData.eventType,T.flowEventData.eventMetadata),_.NX(_.Rj(),W,d.flowLoggingData.flowType));d.steps&&!d.steps.includes(R)&&d.steps.push(R)}return k.return(R)})};
T2q.prototype.back=function(){var M;(M=this.state)!=null&&M.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
T2q.prototype.handleUpdateFlowCommand=function(M){M.steps&&DB$(this,M.steps);M.entityUpdateCommand&&this.resolveCommand(M.entityUpdateCommand,{});M.flowContinuationCommand&&(M=M.flowContinuationCommand)&&(this.getFlowContinuationCommand=M);this.awaitFlowContinuation&&(this.awaitFlowContinuation(gYP(this)),this.awaitFlowContinuation=void 0)};
T2q.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var WDC=function(M){return _.B(function(d){return M.getFlowContinuationCommand?d.return(new Promise(function(N){M.awaitFlowContinuation=N;M.getFlowContinuationCommand&&M.resolveCommand(M.getFlowContinuationCommand,{flow_state:M.state})})):d.return(Promise.resolve(void 0))})},gYP=function(M){var d;
if((d=M.state)!=null&&d.currentStepId)return M.steps[M.state.currentStepId]};var J0=function(){var M=_.n.apply(this,arguments)||this;M.flowState=new T2q(function(d,N){N=N===void 0?{}:N;_.YQ.instance.resolveCommand(d,{form:{form:N,element:M.hostElement}})});
M.initialState=!0;M.isLoading=!1;M.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return M};
_.v(J0,_.n);_.F=J0.prototype;_.F.onPopupClosed=function(M){M&&this.hostElement!==M.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.F.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.F.focus=function(M){var d=this;_.vu(function(){var N=_.K(d.hostElement).querySelector("ytd-flow-step-renderer");N.topBar?N.focus(M):d.topBar&&_.e6(d.topBar,M)},1)};
_.F.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.F.computeTopBarHidden=function(M){var d;return!((d=_.q(M,_.oT9))==null||!d.topBarOverride)};
_.F.dataChanged=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){((d=M.data)==null?0:d.steps)&&DB$(M.flowState,M.data.steps);if((N=M.data)==null?0:N.flowContinuationCommand){var X=M.flowState,A=M.data.flowContinuationCommand;A&&(X.getFlowContinuationCommand=A)}return _.D(R,wJr(M.flowState,M.data),2)}M.currentFlowStep=R.yieldResult;_.Vy(R)})};
_.F.flowChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){if(!M.flow)return N.return();M.flowState.state=M.flow;M.isLoading=!0;return _.D(N,wJr(M.flowState,M.data),2)}d=N.yieldResult;if(!d||M.flow.isLoading)return N.return();M.currentFlowStep=d;M.initialState=!1;M.isLoading=!1;M.autofocusAndRefit();_.Vy(N)})};
_.F.autofocusAndRefit=function(){var M=this,d=_.h().resolve(_.CF(_.TH)),N=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),R=document.querySelector("yt-report-form-confirmation-page-view-model"),X=document.querySelector("yt-report-form-details-page-view-model"),A=document.querySelector("yt-report-form-reason-select-page-view-model"),l=document.querySelector("yt-contributor-zero-state-view-model"),
k=document.querySelector("yt-structured-context-note-view-model"),T=document.querySelector("yt-note-view-model");(!N&&d&&d.isKeyBoardInUse()||R||!N&&X||!N&&A||l||k||T)&&_.Hf(this.hostElement);_.bM(this,function(){_.YP(M.hostElement,"yt-refit")})};
_.F.handleUpdateFlowCommand=function(M){this.data&&(M=_.q(M,PdP),M.targetId===this.data.targetId&&(M.flowContinuationCommand&&(this.data.flowContinuationCommand=M.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(M),this.autofocusAndRefit()))};
_.F.handleFlowNextStepCommand=function(M){this.data&&this.flow&&this.flow.key&&(M=_.q(M,j4P),M.targetId===this.data.targetId&&(M=M.stepId||"",this.ytdReduxBehavior.dispatch(_.v5("flowStateEntity",this.flow.key,{currentStepId:M,stepIdStack:(this.flow.stepIdStack||[]).concat(M)}))))};
_.F.handleFlowPrevStepCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.q(M,s4J),M.targetId===this.data.targetId)){var d=[].concat(_.wu(this.flow.stepIdStack||[]));d.length>1?(d.pop(),this.ytdReduxBehavior.dispatch(_.v5("flowStateEntity",this.flow.key,{currentStepId:d[d.length-1],stepIdStack:d}))):M.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(M.onFirstStepCommand)}};
_.F.handleYpcCancelRecurrenceCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.q(M,cl9),M.targetId===this.data.targetId&&M.endpointCommand)){var d=_.q(this.flow,SoG);d&&_.q(M.endpointCommand,_.qnC)&&(_.q(M.endpointCommand,_.qnC).feedbackData=d.surveyFeedback);this.ytComponentBehavior.resolveCommand(M.endpointCommand)}};
_.F.handlePartialUpdateFlowStateEntity=function(M){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.v5("flowStateEntity",this.flow.key,M,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
J0.prototype.flowChanged=J0.prototype.flowChanged;J0.prototype.dataChanged=J0.prototype.dataChanged;J0.prototype.onPopupClosed=J0.prototype.onPopupClosed;_.G([_.S(_.Op),_.a("design:type",Object)],J0.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],J0.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],J0.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],J0.prototype,"initialState",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],J0.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],J0.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],J0.prototype,"currentFlowStep",void 0);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],J0.prototype,"onPopupClosed",null);_.G([_.H({selectorArgs:["data.flowStateEntityKey"],selector:rwC}),_.a("design:type",Object)],J0.prototype,"flow",void 0);_.G([_.Z3("ytd-flow-top-bar-renderer"),_.a("design:type",HTMLElement)],J0.prototype,"topBar",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],J0.prototype,"dataChanged",null);_.G([_.NS("flow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],J0.prototype,"flowChanged",null);J0=_.G([_.f({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],J0);
_.pJb=_.ty()(J0,"ytd-flow-root-renderer",function(){if(YoC!==void 0)return YoC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return YoC=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var mBb;var aE=null;_.eC(_.SG(function(M){return _.g("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.g("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.g(_.lG,{text:function(){return M.data().text}}),_.g("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"xf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.cA}});var haT=_.SG(function(M){var d=M.playerControlsProps;var N=M.isShortsPage;return _.g("yt-bigboard",null,_.g(_.kV,{cond:function(){return d().isDragging},
then:function(){return _.g("div",{class:"ytBigboardStoryboardHost"},_.g(_.kPq,{progressBarProps:d,isShortsPage:N}))}}))},"yf");
haT.idomCompat=!0;_.cB={ACCOUNT_LABEL:UJ("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:UJ("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:UJ("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:UJ("AD_BADGE_HINT"),AD_BADGE_TEXT:UJ("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:UJ("ALL_CHANNELS_LABEL"),AMBIENT_MODE:UJ("AMBIENT_MODE"),AMBIENT_MODE_OFF:UJ("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:UJ("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:UJ("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:UJ("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:UJ("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:UJ("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:UJ("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:UJ("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:UJ("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:UJ("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:UJ("AUTOPLAY_UP_NEXT_IN"),BACK:UJ("BACK"),CANCEL:UJ("CANCEL"),CHANNEL_SWITCHER_LABEL:UJ("CHANNEL_SWITCHER_LABEL"),CLOSE:UJ("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:UJ("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:UJ("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:UJ("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:UJ("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:UJ("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:UJ("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:UJ("COMMENT_MODAL_CONTENT"),CONFIRM_OK:UJ("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:UJ("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:UJ("COPIED_TO_CLIPBOARD"),COPY:UJ("COPY"),COPY_DEBUG_INFO:UJ("COPY_DEBUG_INFO"),COPY_EMBED_CODE:UJ("COPY_EMBED_CODE"),COPY_LINK_LABEL:UJ("COPY_LINK_LABEL"),
COPY_VIDEO_URL:UJ("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:UJ("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:UJ("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:UJ("DELETE_FROM_DOWNLOADS"),DIALOG:UJ("DIALOG"),DONE:UJ("DONE"),DOWNLOAD:UJ("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:UJ("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:UJ("FLAG_CONFIRM"),FLAG_CONTENT:UJ("FLAG_CONTENT"),FLAG_LABEL:UJ("FLAG_LABEL"),FLAG_TITLE:UJ("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:UJ("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:UJ("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:UJ("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:UJ("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:UJ("HIDE_SEARCH_FILTERS_LABEL"),HOME:UJ("HOME","Home"),INVALID_RESPONSE_RECEIVED:UJ("INVALID_RESPONSE_RECEIVED"),LIBRARY:UJ("LIBRARY","Library"),LISTENING:UJ("LISTENING"),LOADING:UJ("LOADING"),LONG_PRESS_MIC_TO_SPEAK:UJ("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:UJ("LOOP"),MENU_DESKTOP:UJ("MENU_DESKTOP"),MENU_EXIT:UJ("MENU_EXIT"),
MENU_FEEDBACK:UJ("MENU_FEEDBACK"),MENU_HELP:UJ("MENU_HELP"),MENU_IMPRESSUM:UJ("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:UJ("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:UJ("MENU_SETTINGS"),MENU_SIGN_IN:UJ("MENU_SIGN_IN"),MENU_TITLE:UJ("MENU_TITLE"),MENU_YOUR_DATA:UJ("MENU_YOUR_DATA"),MORE_INFO:UJ("MORE_INFO"),MORE_OPTIONS:UJ("MORE_OPTIONS"),MUTE_VOLUME:UJ("MUTE_VOLUME"),NEW_PLAYLIST:UJ("NEW_PLAYLIST"),NEXT_VIDEO:UJ("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:UJ("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:UJ("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:UJ("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:UJ("NOT_FOUND_TITLE"),NO_DOWNLOADS:UJ("NO_DOWNLOADS"),NO_MIC_INPUT:UJ("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:UJ("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:UJ("OOPS_MESSAGE"),OPEN_APP:UJ("OPEN_APP"),OPEN_YOUTUBE:UJ("OPEN_YOUTUBE"),PAUSE:UJ("PAUSE"),PLAY:UJ("PLAY"),PLAYER_CAPTION:UJ("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:UJ("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:UJ("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:UJ("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:UJ("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:UJ("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:UJ("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:UJ("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:UJ("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:UJ("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:UJ("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:UJ("PLAYER_MINIMIZE"),PLAYER_NEXT:UJ("PLAYER_NEXT"),PLAYER_PAUSE:UJ("PLAYER_PAUSE"),PLAYER_PLAY:UJ("PLAYER_PLAY"),
PLAYER_PREVIOUS:UJ("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:UJ("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:UJ("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:UJ("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:UJ("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:UJ("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:UJ("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:UJ("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:UJ("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:UJ("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:UJ("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:UJ("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:UJ("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:UJ("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:UJ("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:UJ("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:UJ("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:UJ("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:UJ("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:UJ("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:UJ("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:UJ("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:UJ("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:UJ("PLAY_ALL"),PLEASE_FIX_ERRORS:UJ("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:UJ("PREVIOUS_VIDEO"),PRIVACY_POLICY:UJ("PRIVACY_POLICY"),RELOAD:UJ("RELOAD"),REQUIRED_LABEL:UJ("REQUIRED_LABEL"),SAVE_PLAYLIST:UJ("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:UJ("SCRUB_SLIDE_USER_EDU"),SEARCH:UJ("SEARCH","Search"),SEARCH_APPEND_LABEL:UJ("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:UJ("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:UJ("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:UJ("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:UJ("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:UJ("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:UJ("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:UJ("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:UJ("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:UJ("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:UJ("SEEK_SLIDER"),SETTINGS_LABEL:UJ("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:UJ("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:UJ("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:UJ("SHOW_LESS"),SHOW_MORE:UJ("SHOW_MORE"),SHOW_PLAYER_CONTROLS:UJ("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:UJ("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:UJ("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:UJ("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:UJ("SIGN_IN_ON_WEB"),STABLE_VOLUME:UJ("STABLE_VOLUME"),
STABLE_VOLUME_OFF:UJ("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:UJ("STABLE_VOLUME_ON"),STATS_FOR_NERDS:UJ("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:UJ("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:UJ("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:UJ("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:UJ("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:UJ("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:UJ("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:UJ("TIMESTAMP_SECONDS"),TOGGLE_OFF:UJ("TOGGLE_OFF"),
TOGGLE_ON:UJ("TOGGLE_ON"),TRENDING:UJ("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:UJ("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:UJ("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:UJ("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:UJ("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:UJ("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:UJ("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:UJ("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:UJ("VIDEO_LINK_LABEL")};var Qcb=_.SG(function(M){var d=M.playerApi;M=_.e5(function(X){iF(X,36843)});
var N=UJ("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),R=_.dT(function(){fl(36843);d&&d().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.g("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.g("button",{el:M,class:"ytPlayerControlsJumpForwardButtonButton",title:N,"aria-label":N,"on:click":R},_.g("span",null,_.g(_.Fc,{icon:"FAST_FORWARD"}))))},"zf");var qdC=_.SG(function(M){var d=M.appApi;M=_.e5(function(X){iF(X,62946)});
var N=UJ("OPEN_IN_MINIPLAYER"),R=_.dT(function(){fl(62946);var X,A;(A=(X=d()).openInMiniplayer)==null||A.call(X);return!1});
return _.g("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.g("button",{el:M,class:"ytMiniplayerButtonButton",title:N,"aria-label":N,"on:click":R},_.g(_.Fc,{icon:"PICTURE_IN_PICTURE",active:!1})))},"Af");var Isq=_.SG(function(M){var d=M.playerApi;M=_.e5(function(l){iF(l,142812)});
var N=_.V(_.d0(!1,void 0,"I3VCyb")),R=N.next().value,X=N.next().value;N=function(){return UJ("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(R()?1:2)})};
var A=_.dT(function(){fl(142812);if(d){var l=d(),k=R();l.setPlaybackRate(k?1:2);X(!R())}return!1});
return _.g("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.g("button",{el:M,class:"ytPlaybackSpeedButtonButton",title:N,"aria-label":N,"on:click":A},_.g("span",null,_.g(_.Fc,{icon:function(){return R()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Bf");var vY9=_.SG(function(M){var d=M.title;var N=M.ariaLabel;var R=M.icon;var X=M.command;var A=M.veType;M=_.e5(function(k){A&&iF(k,A())});
var l=_.dT(function(){A&&fl(A());X&&_.h().resolve(_.xV).resolveCommand(X())});
return _.g("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.g("button",{el:M,class:"ytdThumbnailOverlayButtonButton",title:d,"aria-label":N,"on:click":l},_.g(_.Fc,{icon:R})))},"Cf");var OEq=["en-CA","en","es-MX","fr-CA"];var jcd=_.SG(function(M){var d=_.cu(M,{isOverlay:!1}),N=d.captionIconType,R=d.onClick;M=d.ariaLabel;var X=d.ariaPressed,A=d.isOverlay;d=_.e5(function(T){iF(T,127299)});
var l=_.dT(function(T){fl(127299);R==null||R(T);return!1}),k={};
return _.g("ytm-closed-captioning-button",{class:_.xj("ytmClosedCaptioningButtonHost",(k.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return N()===-1&&A()},k.ytmClosedCaptioningButtonIconDisabled=function(){return N()===-1&&!A()},k))},_.g("button",{el:d,
class:"ytmClosedCaptioningButtonButton",title:M,"aria-label":M,"aria-pressed":X,"on:click":l},_.g(_.Fc,{icon:function(){var T="";var W=_.kS().get("hl");W=!W||OEq.includes(W)?"CLOSED_CAPTION":"SUBTITLES";var w=N();switch(w){case -1:case 0:T=W;break;case 1:T=W+"_FILLED";break;default:_.RC(w)}return T}})))},"Df");
jcd.idomCompat={callbacks:{onClick:!0}};var nl="";var sc9=_.SG(function(M){var d=M.playerControlsProps,N=M.onClickFn;M=_.Al(function(){var A=d(),l=-1;A.captionsAvailable&&(l=A.captionsEnabled?1:0);return l},void 0,"WecR8e");
var R=_.Al(function(){var A=d();return A.captionsAvailable?_.le(A.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.le("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),X=_.Al(function(){var A=d();
A=A.captionsAvailable?A.captionsEnabled:void 0;return A},void 0,"Q17ly");
return _.g("yt-closed-captions-toggle-button",null,_.g(jcd,{captionIconType:M,ariaLabel:R,ariaPressed:X,onClick:function(A){var l=d();if(l.captionsAvailable){var k=l.playerApi;if(k){var T=l.playerApi;if(T){var W=nl;if(W){T=T.getOption("captions","track");var w;nl=(w=T?T.displayName:null)!=null?w:W}else T.getOptions("captions")?(W=Jw$(T),nl=W.length?(w=cwP(W))?w.displayName:W[0].displayName:""):nl=""}Sq4(k);_.Q("mweb_disable_set_state_captions_killswitch")&&l.setState({captionsEnabled:!l.captionsEnabled})}}var p,
m;(m=(p=l.appApi).showCaptionsToggleToast)==null||m.call(p,l);N==null||N(A)},
isOverlay:!0}))},"Ef");var PkC=_.SG(function(M){var d=M.data;return _.g("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.g(_.a0,{data:function(){return{type:16,text:_.Hvv(d().label)}}}))},"Ff");var oY4=_.SG(function(M){var d=_.xj("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return M.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return M.size()==="small"?M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.g("animated-seek-arrows",{class:_.xj("ytPlayerControlsAnimatedSeekArrowsHost")},_.g("span",{class:d}),_.g("span",{class:d}),_.g("span",{class:d}))},"Gf");
oY4.idomCompat=!0;var rm4=_.SG(function(){var M=_.le("PLAYER_SECONDS",{seconds_placeholder:"30"}),d=_.V(_.d0(!1,void 0,"Yj8msb")),N=d.next().value,R=d.next().value,X=_.V(_.d0(!1,void 0,"r9Z50e"));d=X.next().value;var A=X.next().value;X={};var l=_.xj("jumpForwardOverlayOverlay",(X.jumpForwardOverlayOverlayHidden=d,X));_.IJ(function(){var k=null,T=null,W=function(){k!==null&&_.Pa().cancelJob(k);T!==null&&_.Pa().cancelJob(T);A(!0);R(!0);_.Lq(_.Pa(),function(){A(!1)});
k=_.Lq(_.Pa(),function(){A(!0);T=_.Lq(_.Pa(),function(){R(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",W);_.mF(function(){window.removeEventListener("jump-forward-clicked",W)})});
return _.g("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.g(_.kV,{cond:N,then:function(){return _.g("div",{class:l},_.g(oY4,{direction:1,size:"large"}),_.g("div",null,M))}}))},"Hf");var dF9=_.cB.MUTE_VOLUME,M9b=_.cB.UNMUTE_VOLUME,KDD=_.SG(function(M){var d=M.muteIconType;var N=M.onClick;var R=M.useOutlineIcon;M=_.e5(function(l){iF(l,28662)});
var X=function(){return N0G(d(),R==null?void 0:R()).ariaLabel},A=_.dT(function(l){fl(28662);
N==null||N(l);return!1});
return _.g("ytm-mute-button",{class:"ytmMuteButtonHost"},_.g("button",{el:M,class:"ytmMuteButtonButton",title:X,"aria-label":X,"on:click":A},_.g("span",null,_.g(_.Fc,{icon:function(){return N0G(d(),R==null?void 0:R()).iconName}}))))},"If");var ym$=_.SG(function(M){var d=M.volumeProps;var N=M.onClickFn;var R=M.useOutlineIcon;return _.g("yt-mute-toggle-button",null,_.g(KDD,{muteIconType:function(){var X=d(),A=!_.Q("mweb_treat_zero_volume_as_muted_killswitch")&&X.volume===0;return X.volumeMuted||A?0:1},
onClick:function(X){var A=d().playerApi;A&&(A.isMuted()?A.unMute():A.mute(!1));N==null||N(X)},
useOutlineIcon:function(){return!(R==null||!R())}}))},"Jf");
ym$.idomCompat=!0;var Jmr=_.SG(function(M){var d=M.data;var N=_.e5();M=_.dT(function(){N.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.g("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:N,"on:animationend":M},_.g(_.VX,{command:function(){return d().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.g(_.kV,{cond:function(){var R;return(R=d().icon)==null?void 0:R.iconType},
then:function(){return _.g("span",null,_.g(_.Fc,{icon:function(){var R;return(R=d().icon)==null?void 0:R.iconType}}))}}),_.g("div",{class:"ytmPaidContentOverlayText"},_.g(_.lG,{text:function(){return d().text}})),_.g(_.kV,{cond:function(){return d().navigationEndpoint},
then:function(){return _.g(_.Fc,{icon:"CHEVRON_RIGHT"})}})))},"Kf");
Jmr.idomCompat=!0;var RMb=[].concat(_.wu([{register:function(M){var d=DFr(M),N;(N=M().playerApi)==null||N.addEventListener("onVolumeChange",d);return function(){}}},
{register:function(M){var d=gTC(M);M=M().playerApi;M==null||M.addEventListener("captionschanged",d);M==null||M.addEventListener("captionssettingschanged",d);M==null||M.addEventListener("onCaptionsTrackListChanged",d);return function(){}}},
{register:function(M){if(!_.Q("mweb_screenreader_accessible_player"))return function(){};
var d=WFG(M),N=document.querySelector("video");N==null||N.addEventListener("touchend",d);return function(){N==null||N.removeEventListener("touchend",d)}}},
{register:function(M){if(!_.Q("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var d=WFG(M),N=document.querySelector("video");N==null||N.addEventListener("focus",d);return function(){N==null||N.removeEventListener("focus",d)}}}]),[{register:function(M){var d=$Fe(M),N;
(N=M().playerApi)==null||N.addEventListener("onStateChange",d);return function(){}}},
{register:function(M){var d=B09(M),N;(N=M().playerApi)==null||N.addEventListener("onPlaybackRateChange",d);return function(){}}},
{register:function(M){var d=kTb(M),N;(N=M().playerApi)==null||N.addEventListener("onVideoDataChange",d);return function(){}}},
{register:function(M){var d=T0i(M),N,R;(N=M())==null||(R=N.playerApi)==null||R.addEventListener("onVideoProgress",d);return function(){}}}]);var cmb=_.SG(function(M){var d=M.data;var N=function(){return _.le("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+d().playbackRate})};
return _.g(_.kV,{cond:function(){return d().playbackRate&&d().playbackRate!==1},
then:function(){return _.g("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.g("div",{class:"ytPlaybackRateOverlayOverlay"},_.g(oY4,{direction:1,size:"small"}),_.g("div",{class:"ytPlaybackRateOverlayLabel"},N)))}})},"Lf");var Sdq=_.SG(function(M){var d=M.data;return _.g("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.g(_.kV,{cond:function(){var N,R=(N=d())==null?void 0:N.playerResponse,X;return R==null?void 0:(X=R.paidContentOverlay)==null?void 0:X.paidContentOverlayRenderer},
then:function(N){return _.g(Jmr,{data:N})}}))},"Nf"),zad=_.SG(function(M){var d=M.props;
var N=M.data;var R=M.options;var X=function(){var W,w,p,m;return(W=N())==null?void 0:(w=W.playerResponse)==null?void 0:(p=w.playerConfig)==null?void 0:(m=p.inlinePlaybackConfig)==null?void 0:m.showAudioControls},A=function(){var W,w;
if(X()&&((W=R())==null?void 0:(w=W.additionalButton)==null?void 0:w.button)!==void 0){var p,m,I;W=(p=N())==null?void 0:(m=p.playerApi)==null?void 0:(I=m.getSize())==null?void 0:I.height;if(!(W===void 0||W<184)){var O,y;return(O=R())==null?void 0:(y=O.additionalButton)==null?void 0:y.button}}},l=function(){var W,w;
return(W=R())==null?void 0:(w=W.additionalButton)==null?void 0:w.thumbnailOverlayButtonRenderers},k=function(){var W,w;
return(W=R())==null?void 0:(w=W.additionalButton)==null?void 0:w.thumbnailOverlayButtonViewModels},T=function(){var W=[_.g(ym$,{volumeProps:d}),
_.g(sc9,{playerControlsProps:d})];A()===1&&W.push(_.g(Qcb,{playerApi:function(){return d().playerApi}}));
A()===2&&W.push(_.g(qdC,{appApi:function(){return d().appApi}}));
A()===3&&W.push(_.g(Isq,{playerApi:function(){return d().playerApi}}));
var w=l();if(A()===4&&w){w=_.V(w);for(var p=w.next(),m={};!p.done;m={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$567:void 0},p=w.next()){p=p.value;m.tooltip$jscomp$2=p.tooltip;var I=void 0,O=void 0;m.ariaLabel$jscomp$21=((I=p.accessibility)==null?void 0:(O=I.accessibilityData)==null?void 0:O.label)||m.tooltip$jscomp$2;I=void 0;m.icon$jscomp$55=(I=p.icon)==null?void 0:I.iconType;m.command$jscomp$567=p.command;m.tooltip$jscomp$2&&m.ariaLabel$jscomp$21&&m.icon$jscomp$55&&
W.push(_.g(vY9,{title:function(y){return function(){return y.tooltip$jscomp$2}}(m),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$21}}(m),
icon:function(y){return function(){return y.icon$jscomp$55}}(m),
command:function(y){return function(){return y.command$jscomp$567}}(m)}))}}w=k();
if(A()===4&&w)for(w=_.V(w),p=w.next(),m={};!p.done;m={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$56:void 0,command$jscomp$568:void 0},p=w.next())p=p.value,m.tooltip$jscomp$3=p.title,m.ariaLabel$jscomp$22=p.accessibilityText||m.tooltip$jscomp$3,m.icon$jscomp$56=p.iconName,m.command$jscomp$568=_.ht(p.onTap),m.tooltip$jscomp$3&&m.ariaLabel$jscomp$22&&m.icon$jscomp$56&&W.push(_.g(vY9,{title:function(y){return function(){return y.tooltip$jscomp$3}}(m),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$22}}(m),
icon:function(y){return function(){return y.icon$jscomp$56}}(m),
command:function(y){return function(){return y.command$jscomp$568}}(m)}));
return W};
return _.g(_.kV,{cond:X,then:function(){return _.g("div",{class:"ytInlinePlayerControlsTopRightControls"},_.g(_.TN,{each:T},function(W){return _.g("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.g("div",{class:"ytInlinePlayerControlsButtonIcon"},W))}))}})},"Of"),HE9=_.SG(function(M){var d=M.props;
var N=M.data;var R=M.options;M={};M=_.xj("ytInlinePlayerControlsBottomRightControls",(M.ytInlinePlayerControlsBottomRightControlsHidden=function(){var X;return pgC(N(),R())&&((X=R())==null?void 0:X.insetProgressBar)&&(d().isHovering||d().isDragging)},M));
return _.g("div",{class:M},_.g(bED,{data:N}),_.g(_.kV,{cond:function(){var X;return!((X=R())==null?0:X.hideTimeDisplay)},
then:function(){return _.g(eai,{props:d})}}))},"Pf"),bED=_.SG(function(M){var d=M.data;
return _.g(_.ho,{data:function(){var N;return EaJ((N=d())==null?void 0:N.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:PkC})},"Qf"),eai=_.SG(function(M){var d=M.props;
return _.g(_.kV,{cond:function(){return d().isLive},
then:function(){return _.g(nYC,null)},
else:function(){return _.g(iEC,{props:d})}})},"Rf"),iEC=_.SG(function(M){var d=M.props;
return _.g("div",{class:_.xj("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.cB.PLAYER_TIME_ELAPSED+" "+_.vXq(d().playedTime)}},_.g(_.a0,{data:function(){return{type:16,
text:_.vXq(d().videoDuration-d().playedTime)}}}))},"Sf"),nYC=_.SG(function(){return _.g("div",{class:_.xj("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.g(_.a0,{data:{type:17,
text:_.cB.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Tf"),fsT=_.SG(function(M){var d=M.props;
var N=M.data;var R=M.options;return _.g(_.pQ9,{progressBarProps:d,config:function(){var X,A=_.q((X=N())==null?void 0:X.multiMarkersPlayerBar,_.UTV),l;X=((l=R())==null?0:l.insetProgressBar)?2:1;var k;l=(k=R())==null?void 0:k.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:X,chapterData:A,isInlinePlayback:!0,doSeekOnClick:l,playheadDotBehavior:l?1:0}}})},"Uf");_.eC(_.SG(function(M){var d=M.data;var N=M.appApi;var R=M.options;var X=lKq(d,wg4(N));M={};N={};return _.g("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.g("div",{class:_.xj("ytInlinePlayerControlsDarkenedOverlay",(M.ytInlinePlayerControlsDarkenedOverlayShow=function(){return X().isHovering},M))}),_.g(rm4,null),_.g(cmb,{data:X}),_.g(Sdq,{data:d}),_.g(haT,{playerControlsProps:X,
isShortsPage:!1}),_.g("div",{class:_.xj((N.ytInlinePlayerControlsControlsHidden=function(){return X().isDragging},N))},_.g(zad,{props:X,
data:d,options:R}),_.g(HE9,{props:X,data:d,options:R})),_.g(_.kV,{cond:function(){return pgC(d(),R())},
then:function(){return _.g(fsT,{props:X,data:d,options:R})}}))},"Mf"),"yt-inline-player-controls",{props:{data:_.cA,
appApi:_.bI,options:_.cA}});var SU=function(){var M=_.n.apply(this,arguments)||this;M.opts=null;M.playerControlsData=null;M.playerControlsAppApi={openInMiniplayer:function(){M.openInMiniplayer()}};
M.playerControlsOptions={};M.noAnimation=!1;M.playbackIntentTriggered=!1;M.positionData=null;M.hidden=!0;M.active=!1;M.playing=!1;M.videoPreviewDataIndex=0;M.JSC$16766_playerPromise=null;M.player=null;M.enableAudioControls=!1;M.hasBeenUnmuted=!1;M.captionsHaveBeenTurnedOff=!1;M.JSC$16766_playerEvents=new Map;M.videoPreviewFetchRequest=null;M.scheduledPreviewEndJobId=null;M.JSC$16766_preventProgressSaveTimer=null;M.watchEndpointStartTimeUpdaterInterval=null;M.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};M.windowOnBlurFn=function(){M.deactivate()};
return M};
_.v(SU,_.n);_.F=SU.prototype;
_.F.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.Q("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.F.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16766_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16766_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16766_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16766_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ux(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ux(this,this.onScroll))};
_.F.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ux(this,this.onScroll))};
_.F.onPageTypeChange=function(){this.deactivate()};
_.F.onWindowResized=function(){this.deactivate()};
_.F.onCaptionsChanged=function(M){M=!!M.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!M);this.setCaptionSize()};
_.F.setCaptionSize=function(){var M;if(this.active&&!this.captionsHaveBeenTurnedOff&&((M=this.player)==null?0:M.getCaptionWindowContainerId())){var d;(d=this.player)==null||d.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.F.currentPageAllowed=function(){return!this.isWatchPage};
_.F.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var M=this.positionData,d=M.initialTopPosition,N=M.initialHorizontalPosition;_.UO(this.hostElement,{"--ytd-video-preview-translate-left":M.finalHorizontalPosition-N+"px","--ytd-video-preview-translate-top":M.finalTopPosition-d+"px","--ytd-video-preview-original-top-position":d+"px","--ytd-video-preview-original-horizontal-position":N+"px",
"--ytd-video-preview-initial-scale":"scale("+M.initialScale+")","--ytd-video-preview-width":M.videoPreviewWidth+"px","--ytd-video-preview-height":M.videoPreviewHeight+"px"});return!0};
_.F.handleOpenVideoPreviewAction=function(M){var d=this,N;return _.B(function(R){if(!d.currentPageAllowed())return R.return(0);d.opts=M;return(N=d.alignVideoPreviewForAnimation(M.thumbnail))?R.return(d.activate()):R.return(0)})};
_.F.onMouseLeave=function(M){this.shouldDeactivateOnMouseLeave(M)&&this.deactivate()};
_.F.onScroll=function(){var M,d;((M=this.opts)==null?0:M.isAutoplay)&&((d=this.opts)==null?0:d.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.F.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.IQ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.F.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.F.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",SU.JSC$16765_DEFAULT_CLICK_LOCATION_BEHAVIOR,SU.JSC$16765_CLICK_LOCATION_ID_MAP)};
_.F.shouldDeactivateOnMouseLeave=function(M){M=M.relatedTarget;if(!M)return!0;var d;return(d=this.opts)!=null&&d.mediaRenderer?!_.L3(this.opts.mediaRenderer).contains(M):!0};
_.F.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.F.onPlaybackStart=function(){var M=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$16766_preventProgressSaveTimer=
_.Lq(_.IQ,function(){M.resetPreventProgressSaveTimer()},1E4);
var d;if((d=this.opts)==null?0:d.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Lq(_.IQ,function(){M.hasMultipleVideoPreviews()?M.startPlaybackForNextVideo():M.deactivate()},this.opts.videoPreviewDurationMs);
var N;this.player.setGlobalCrop(((N=this.opts)==null?0:N.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.F.getRoundedCornersSize=function(){var M;if((M=this.opts)==null?0:M.roundedCornersSize){var d;return(d=this.opts)==null?void 0:d.roundedCornersSize}var N;if((N=this.opts)==null?0:N.enableRounding){var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="small")return 1;var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="medium")return 2;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="large")return 3}return _.Q("web_imp_inset_progress_bar")?3:0};
_.F.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.F.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.F.onMediaContainerClick=function(M){this.isShortcutClick(M)||(this.navigateToWatch(M),M.preventDefault(),M.stopPropagation())};
_.F.activate=function(){var M=this,d,N,R,X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:if(!M.currentPageAllowed())return w.return(0);N=(d=M.videoPreviewData)==null?void 0:d.inlinePlaybackEndpoint;R=_.Pi.instance;if(!N||!R)return w.return(0);M.playbackIntentTriggered=!0;((X=M.opts)==null?0:X.mediaRenderer)&&((A=M.opts)==null||!A.isAutoplay)&&Zkb(M.opts.mediaRenderer,function(){M.deactivate()});
_.bM(M,function(){M.revealPreviewUi()});
l={};_.Q("enable_unknown_lact_fix_on_html5")&&(_.h().resolve(_.gT),l.lact=_.aQ());M.videoPreviewFetchRequest=aLG(R,M.getInlinePlaybackRequestData(M.videoPreviewData),l);_.Mv(w,2);return _.D(w,M.videoPreviewFetchRequest,4);case 4:k=w.yieldResult;if(((T=k)==null?void 0:(W=T.playabilityStatus)==null?void 0:W.status)==="OK")return w.return(M.handlePlayerResponse(k));throw Error("Jj");case 2:_.Fg(w),M.deactivate();case 3:return w.return(1)}})};
_.F.getInlinePlaybackRequestData=function(M){var d,N=_.Q("web_imp_player_mute_params")?((d=this.opts)==null?void 0:d.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:M.inlinePlaybackEndpoint,startPlaybackInMutedState:N}};
_.F.handlePlayerResponse=function(M){var d=this,N,R,X,A,l,k,T,W,w,p;return _.B(function(m){if(m.nextAddress==1){N=d.getInlinePlaybackVideoId();if(!(((R=M)==null?0:(X=R.videoDetails)==null?0:X.videoId)&&d.currentPageAllowed()&&d.playbackIntentTriggered&&d.opts&&N))return d.deactivate(),m.return(0);if(M.videoDetails.videoId!==N)return m.return(0);d.enableAudioControls=!!((A=M.playerConfig)==null?0:(l=A.inlinePlaybackConfig)==null?0:l.showAudioControls);M.trackingParams=d.getInlinePlaybackTrackingParams();
if(!d.inlinePlayer)return m.return(0);k={};if(W=_.q((T=d.videoPreviewData)==null?void 0:T.inlinePlaybackEndpoint,_.nL))k.watch_endpoint=W;if(d.videoPreviewData){var I,O=(I=_.q(d.videoPreviewData.inlinePlaybackEndpoint,_.nL))==null?void 0:I.startTimeSeconds;O!==void 0&&(M.playerConfig||(M.playerConfig={}),M.playerConfig.playbackStartConfig||(M.playerConfig.playbackStartConfig={}),M.playerConfig.playbackStartConfig.startPosition||(M.playerConfig.playbackStartConfig.startPosition={}),M.playerConfig.playbackStartConfig.startSeconds=
O,M.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(O*1E3))}d.inlinePlayer.loadVideoWithPlayerResponse(M,k);if(d.JSC$16766_playerPromise)return m.jumpTo(2);d.JSC$16766_playerPromise=d.inlinePlayer.getPlayerPromise();return _.D(m,d.JSC$16766_playerPromise,3)}m.nextAddress!=2&&(w=m.yieldResult,w.setInlinePreview(!0),w.setSizeStyle(!1,!0),d.ytPlayerListenerBehavior.listenToPlayerEvents(w,d.JSC$16766_playerEvents),d.player=w,_.YP(d.hostElement,"player-api-ready"));((p=d.opts)==
null?0:p.showPlayerControls)&&d.videoPreviewData&&d.player&&(d.playerControlsData={playerResponse:M,isInlinePlayback:!0,thumbnailOverlays:d.videoPreviewData.thumbnailOverlays,playerApi:d.player},d.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!d.unroundCornersForPlayback,additionalButton:d.getAdditionalButtonType(d.videoPreviewData.thumbnailOverlays)});return m.return(2)})};
_.F.revealPreviewUi=function(){var M=this;this.playbackIntentTriggered&&_.fbS(this,function(){M.hasThumbnailPositionChangedSinceTriggered()||(M.updateActiveState(!0),M.noAnimation=!1)})};
_.F.hasThumbnailPositionChangedSinceTriggered=function(){var M=this.positionData,d=this.getThumbnailPositionData();return(M==null?void 0:M.initialTopPosition)!==(d==null?void 0:d.initialTopPosition)||(M==null?void 0:M.initialHorizontalPosition)!==(d==null?void 0:d.initialHorizontalPosition)};
_.F.getThumbnailPositionData=function(){var M,d;if((d=this.opts)==null||!d.thumbnail)return null;d=this.opts.thumbnail;var N=((M=this.opts)==null?0:M.cropPlayerToFillThumbnailHorizontally)?!1:!0;var R=d.getBoundingClientRect();M=R.width;d=R.height;var X=R.top+window.scrollY;R=R.left+window.scrollX;var A=N?Math.ceil(M):M;N=N?Math.ceil(d):d;var l=M/A;M={initialScale:l,initialTopPosition:X-12*l,finalTopPosition:X-12-(N-d)/2,initialHorizontalPosition:R-(12+(A-M)/2),finalHorizontalPosition:R-12-(A-M)/
2,videoPreviewWidth:A,videoPreviewHeight:N};return M};
_.F.updateActiveState=function(M){this.active=M;this.ytdReduxBehavior.dispatch(_.YS({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:M}))};
_.F.stopPlayer=function(M){M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(M)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.IQ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.F.deactivate=function(M){M=M===void 0?{}:M;M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;aE&&(aE.disconnect(),aE=null);this.stopPlayer({resetWatchEndpointStartTime:M});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.F.isValidThumbnailOverlayButton=function(M,d){M=M.thumbnailOverlayButtonRenderer;var N;return!!M&&!!M.tooltip&&!((N=M.icon)==null||!N.iconType)&&d.includes(M.icon.iconType)};
_.F.isValidThumbnailOverlayButtonViewModel=function(M,d){var N;M=_.q((N=M.thumbnailOverlayButtonViewModel)==null?void 0:N.overlayButton,_.QM);return!!M&&!!M.title&&!!M.iconName&&d.includes(M.iconName)};
_.F.getAdditionalButtonType=function(M){var d=this;if(_.Q("web_imp_fastforward_button"))return{button:1};if(_.Q("web_imp_miniplayer_button"))return{button:2};if(_.Q("web_imp_playback_speed_button"))return{button:3};var N=["AUTO_AWESOME"],R=(M||[]).filter(function(A){return d.isValidThumbnailOverlayButton(A,N)}).map(function(A){return A.thumbnailOverlayButtonRenderer});
if(R.length)return{button:4,thumbnailOverlayButtonRenderers:R};var X=["AUTO_AWESOME"];M=(M||[]).filter(function(A){return d.isValidThumbnailOverlayButtonViewModel(A,X)}).map(function(A){return _.q(A.thumbnailOverlayButtonViewModel.overlayButton,_.QM)});
if(M.length)return{button:4,thumbnailOverlayButtonViewModels:M}};
_.F.allowCaptions=function(){var M;return!((M=this.opts)==null?0:M.forceCaptionsOff)};
_.F.allowUnmuting=function(){var M;return this.enableAudioControls&&!((M=this.opts)==null?0:M.forceMutedVolume)};
_.F.beginStartTimeUpdater=function(){var M=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Rc(function(){M.updateWatchEndpointStartTime()},1E3)};
_.F.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.F.resetPreventProgressSaveTimer=function(){this.JSC$16766_preventProgressSaveTimer!==null&&(_.IQ.cancelJob(this.JSC$16766_preventProgressSaveTimer),this.JSC$16766_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.F.updateWatchEndpointStartTime=function(M){var d=this.videoPreviewData;if(this.player&&d!=null&&d.inlinePlaybackEndpoint&&!this.JSC$16766_preventProgressSaveTimer){M=M?0:Math.floor(this.player.getCurrentTime());var N=_.q(d.navigationEndpoint,_.nL);N&&(N.startTimeSeconds=M);if(d=_.q(d.inlinePlaybackEndpoint,_.nL))d.startTimeSeconds=M}};
_.F.isShortcutClick=function(M){return!!M&&(M.ctrlKey||M.shiftKey||M.metaKey)};
_.F.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.F.openInMiniplayer=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){N=(d=M.videoPreviewData)==null?void 0:d.navigationEndpoint;if(!N)return R.return();_.$O().lockupActivation=!0;return _.D(R,_.x4z(_.h().resolve(_.et),N),2)}_.$O().userActivation=!0;_.Vy(R)})};
_.F.navigateToWatch=function(M){var d,N=(d=this.videoPreviewData)==null?void 0:d.navigationEndpoint;if(N){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(N,M,!0);else{if(_.Q("web_thumbnail_to_watch_transition")){var R,X;(R=this.opts)==null||(X=R.onNavigateToWatchCallback)==null||X.call(R)}_.YP(this.hostElement,"yt-navigate",{endpoint:N})}this.deactivate()}};
_.F.getInlinePlaybackVideoId=function(){var M,d;return(d=_.q((M=this.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.nL))==null?void 0:d.videoId};
_.F.getInlinePlaybackTrackingParams=function(){var M,d;return(M=this.videoPreviewData)==null?void 0:(d=M.inlinePlaybackEndpoint)==null?void 0:d.clickTrackingParams};
_.F.hasMultipleVideoPreviews=function(){var M;return!!(((M=this.opts)==null?0:M.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.F.startPlaybackForNextVideo=function(){var M;(M=this.opts)!=null&&M.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.Hm.Object.defineProperties(SU.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null?0:M.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null||!M.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var M;if(Array.isArray((M=this.opts)==null?void 0:M.videoPreviewData)){var d;return(d=this.opts)==null?void 0:d.videoPreviewData[this.videoPreviewDataIndex]}var N;return(N=this.opts)==null?void 0:N.videoPreviewData}}});
SU.prototype.onIsAdsVideoChange=SU.prototype.onIsAdsVideoChange;SU.prototype.onInlinePreviewIsEnabledChange=SU.prototype.onInlinePreviewIsEnabledChange;SU.prototype.optsChanged=SU.prototype.optsChanged;SU.prototype.onMouseLeave=SU.prototype.onMouseLeave;SU.JSC$16765_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);SU.JSC$16765_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"}];
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],SU.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],SU.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],SU.prototype,"componentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],SU.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tN.YtSparklesClickLocationBehavior),_.a("design:type",Object)],SU.prototype,"ytSparklesClickLocationBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SU.prototype,"opts",void 0);_.G([_.H(),_.a("design:type",Object)],SU.prototype,"playerControlsData",void 0);
_.G([_.H(),_.a("design:type",Object)],SU.prototype,"playerControlsAppApi",void 0);_.G([_.H(),_.a("design:type",Object)],SU.prototype,"playerControlsOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SU.prototype,"noAnimation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SU.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SU.prototype,"active",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],SU.prototype,"playing",void 0);_.G([_.H({selector:_.y6j}),_.a("design:type",Boolean)],SU.prototype,"inlinePreviewIsEnabled",void 0);_.G([_.H(),_.a("design:type",String)],SU.prototype,"pagePath",void 0);_.G([_.H({selector:_.OW}),_.a("design:type",Boolean)],SU.prototype,"isWatchPage",void 0);_.G([_.z("videoPreviewData"),_.a("design:type",Object),_.a("design:paramtypes",[])],SU.prototype,"thumbnailData",null);
_.G([_.z("opts","active"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],SU.prototype,"hidePlayerControls",null);_.G([_.z("opts"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],SU.prototype,"isAdsVideo",null);_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],SU.prototype,"roundedCornersSmall",null);
_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],SU.prototype,"roundedCornersMedium",null);_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],SU.prototype,"roundedCornersLarge",null);_.G([_.z("opts"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],SU.prototype,"unroundCornersForPlayback",null);
_.G([_.z("opts","videoPreviewDataIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],SU.prototype,"videoPreviewData",null);_.G([_.H(),_.a("design:type",Object)],SU.prototype,"videoPreviewDataIndex",void 0);_.G([_.Z3("#inline-player"),_.a("design:type",Object)],SU.prototype,"inlinePlayer",void 0);_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[MouseEvent]),_.a("design:returntype")],SU.prototype,"onMouseLeave",null);
_.G([_.NS("opts"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SU.prototype,"optsChanged",null);_.G([_.NS("inlinePreviewIsEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SU.prototype,"onInlinePreviewIsEnabledChange",null);_.G([_.xB("isAdsVideo"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SU.prototype,"onIsAdsVideoChange",null);
SU=_.G([_.f({is:"ytd-video-preview",disableElementRegistration:!0})],SU);
_.L(SU,"ytd-video-preview",function(){if(mBb!==void 0)return mBb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return mBb=M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var tlD;var GBb;/*

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
*/
_.kQ({_template:function(){if(GBb!==void 0)return GBb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;tlD===void 0&&(tlD=document.createElement("template"));var R=tlD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return GBb=M},
is:"tp-yt-paper-checkbox",behaviors:[_.Ibg],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.bM(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var M=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),d="px",N=M.match(/[A-Za-z]+$/);N!==null&&(d=N[0]);M=parseFloat(M);N=8/3*M;d==="px"&&(N=Math.floor(N),N%2!==M%2&&N++);this.updateStyles({"--paper-checkbox-ink-size":N+
d})}})},
_computeCheckboxClass:function(M,d){var N="";M&&(N+="checked ");d&&(N+="invalid");return N},
_computeCheckmarkClass:function(M){return M?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Qfm._createRipple.call(this)}});var aqe=new _.x("radioButtonSurveyOptionRenderer"),Uve=new _.x("checkboxSurveyOptionRenderer");var ug4;var C6i;var xvi=0,OJ=function(){var M=_.n.call(this)||this;M.selected=!1;M.isOverlay=!1;M.inputId="toggle-option-"+xvi;xvi++;return M};
_.v(OJ,_.n);OJ.prototype.onTap=function(){_.YP(this.hostElement,"ytd-toggle-option-clicked")};
_.G([_.H(),_.a("design:type",String)],OJ.prototype,"label",void 0);_.G([_.H(),_.a("design:type",String)],OJ.prototype,"inputId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],OJ.prototype,"selected",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],OJ.prototype,"isOverlay",void 0);OJ=_.G([_.f({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.a("design:paramtypes",[])],OJ);
_.L(OJ,"ytd-toggle-option-renderer",function(){if(C6i!==void 0)return C6i;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return C6i=M},{mode:1});var jy=function(){var M=_.n.apply(this,arguments)||this;M.isToggleOption=!1;M.isOverlay=!1;return M};
_.v(jy,_.n);jy.prototype.onTap=function(M){M.preventDefault();this.data&&(M=!this.data.checked,this.set("data.checked",M),_.YP(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:M,value:this.data.value}))};
_.Hm.Object.defineProperties(jy.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
jy.prototype.onTap=jy.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jy.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],jy.prototype,"isToggleOption",void 0);_.G([_.H(),_.a("design:type",Object)],jy.prototype,"isOverlay",void 0);_.G([_.z("data.responseText"),_.a("design:type",String),_.a("design:paramtypes",[])],jy.prototype,"label",null);
_.G([_.C3("ytd-toggle-option-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],jy.prototype,"onTap",null);jy=_.G([_.f({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],jy);
_.L(jy,"ytd-checkbox-survey-option-renderer",function(){if(ug4!==void 0)return ug4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ug4=M},{mode:1});var Y_q;var ZIP;var sJ=function(){var M=_.n.apply(this,arguments)||this;M.checked=!1;M.isToggleOption=!1;return M};
_.v(sJ,_.n);sJ.prototype.onTap=function(){this.data&&(this.checked?_.ZI(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ZI(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
sJ.prototype.onTap=sJ.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sJ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],sJ.prototype,"checked",void 0);_.G([_.H(),_.a("design:type",Object)],sJ.prototype,"isToggleOption",void 0);_.G([_.C3("ytd-toggle-option-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],sJ.prototype,"onTap",null);
sJ=_.G([_.f({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],sJ);
_.L(sJ,"ytd-radio-button-survey-option-renderer",function(){if(ZIP!==void 0)return ZIP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZIP=M},{mode:1});var PK=function(){var M=_.n.apply(this,arguments)||this;M.disableAnimation=!1;M.isToggleOption=!0;M.followUpSurveyCommand=null;M.selectedRatingEndpoint=null;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.styleOverrideAttribute=!0;M.isDarkMode=!1;M.isSubmitted=!1;M.roundedContainer=!0;M.improveShortsResponseRate=_.Q("web_improve_shorts_response_rate");M.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(PK,_.n);_.F=PK.prototype;
_.F.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"}}}}};
_.F.attached=function(){var M=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(N){var R;if((R=N[0])!=null&&R.isIntersecting){_.Mx().reportShown(M.hostElement);var X;(X=M.intersectionObserver)==null||X.unobserve(M.hostElement)}},{rootMargin:"0px",
threshold:.6});var d;(d=this.intersectionObserver)==null||d.observe(this.hostElement)};
_.F.onDarkModeToggledAction=function(M){this.isDarkMode=M};
_.F.dataChanged=function(){var M;if(((M=this.data)==null?void 0:M.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var d;((d=this.data)==null?void 0:d.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var N,R,X,A;this.darkColorPalette=(N=this.data)==null?void 0:(R=N.inlineContent)==null?void 0:(X=R.compactVideoRenderer)==null?void 0:(A=X.thumbnail)==null?
void 0:A.darkColorPalette;var l,k,T,W;this.lightColorPalette=(l=this.data)==null?void 0:(k=l.inlineContent)==null?void 0:(T=k.compactVideoRenderer)==null?void 0:(W=T.thumbnail)==null?void 0:W.lightColorPalette;var w,p;if(((w=this.data)==null?0:(p=w.inlineContent)==null?0:p.compactVideoRenderer)&&this.isShortsStyle){var m,I,O,y;M=_.nq((m=this.data)==null?void 0:(I=m.inlineContent)==null?void 0:(O=I.compactVideoRenderer)==null?void 0:(y=O.thumbnail)==null?void 0:y.thumbnails);_.UO(this.hostElement,
{"--yt-background-url":"url("+M+")"})}};
_.F.handleRequestCompletion=function(){this.hostElement.hidden&&_.YP(this.hostElement,"yt-dismissible-item-dismissed")};
_.F.onPopupClosed=function(M){var d;((d=M.detail)==null?void 0:d.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ZI(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.F.handleInlineSurveyRatingSelect=function(M,d){var N=this;this.selectedRatingEndpoint=M;this.followUpSurveyCommand=d;this.expanded=!!M;this.getOptionRenderers().forEach(function(R,X){N.notifyPath("followUpSurveyCommand.followUpOptions."+X+".checkboxSurveyOptionRenderer.checked");N.set("followUpSurveyCommand.followUpOptions."+X+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),M=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ZI(this.hostElement,"yt-reel-non-video-content-dismissal-command",[M]))};
_.F.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ZI(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var M,d=(M=this.data)==null?void 0:M.dismissalEndpoint;d&&this.ytComponentBehavior.resolveCommand(d)}};
_.F.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ZI(this.hostElement,"yt-close-popup-action"))};
_.F.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var M=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{M=this.getOptionRenderers().filter(function(R){return R.checked});
if(M.length===0)return;M=M.map(function(R){return R.responseEndpoint})}var d=[];
M.forEach(function(R,X){X!==0&&(R=_.q(R,_.yr))&&R.feedbackToken&&d.push(R.feedbackToken)});
if(M=M[0]){var N={};d.length>0&&(N.extra_feedback_tokens=d);this.ytComponentBehavior.resolveCommand(M,{form:N})}}};
_.F.getOptionRenderers=function(){var M=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(d){M.isSingleSelect=!!_.q(d,aqe);return M.isSingleSelect?_.q(d,aqe):_.q(d,Uve)}):[]};
_.F.handleInlineSurveyOptionSelect=function(M){M=this.optionSelector.indexOf(M);M!==-1&&this.optionSelector.selectIndex(M)};
_.F.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.F.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
_.F.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M=M&&this.maybeGetBackgroundColor(M);this.dismissibleEl.style.backgroundColor=!M||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.p3(M)};
_.Hm.Object.defineProperties(PK.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
PK.prototype.colorPaletteChanged=PK.prototype.colorPaletteChanged;PK.prototype.onPopupClosed=PK.prototype.onPopupClosed;PK.prototype.handleRequestCompletion=PK.prototype.handleRequestCompletion;PK.prototype.dataChanged=PK.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],PK.prototype,"actionHandlerBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],PK.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],PK.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.Z3("#follow-up-survey-options"),_.a("design:type",Object)],PK.prototype,"optionSelector",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],PK.prototype,"disableAnimation",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"isToggleOption",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"followUpSurveyCommand",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"selectedRatingEndpoint",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],PK.prototype,"expanded",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PK.prototype,"isSlimlineSurveyFollowUp",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PK.prototype,"isShortsStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PK.prototype,"styleOverrideAttribute",void 0);_.G([_.H(),_.a("design:type",Boolean)],PK.prototype,"isSingleSelect",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"isDarkMode",void 0);
_.G([_.H(),_.a("design:type",Object)],PK.prototype,"lightColorPalette",void 0);_.G([_.H(),_.a("design:type",Object)],PK.prototype,"darkColorPalette",void 0);_.G([_.z("selectedRatingEndpoint","isShortsStyle"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],PK.prototype,"isOptionSelected",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PK.prototype,"roundedContainer",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],PK.prototype,"improveShortsResponseRate",void 0);_.G([_.Z3("#dismissible"),_.a("design:type",HTMLElement)],PK.prototype,"dismissibleEl",void 0);_.G([_.Z3("#dismiss-button yt-icon-button"),_.a("design:type",HTMLElement)],PK.prototype,"dismissButtonEl",void 0);_.G([_.Z3("#inline-survey-header yt-icon-button"),_.a("design:type",HTMLElement)],PK.prototype,"inlineHeaderDismissButtonEl",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PK.prototype,"dataChanged",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PK.prototype,"handleRequestCompletion",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],PK.prototype,"onPopupClosed",null);
_.G([_.xB("darkColorPalette","lightColorPalette","isDarkMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],PK.prototype,"colorPaletteChanged",null);PK=_.G([_.f({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],PK);
_.L(PK,"ytd-inline-survey-renderer",function(){if(Y_q!==void 0)return Y_q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Y_q=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var mjJ,h2G,QVY;mjJ=function(M){return _.Q("kevlar_watch_cinematics_invisible")||M.fullscreen&&_.Q("kevlar_watch_cinematics_invisible_in_fullscreen")||M.theater&&!M.fullscreen&&_.Q("kevlar_watch_cinematics_invisible_in_theater")};
h2G=function(){var M=document.createElement("canvas"),d=M.getContext("2d");if(!d)throw Error("Yl");_.c6(M,{position:"absolute",width:"100%",height:"100%"});return{element:M,context:d}};
QVY=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.Q("kevlar_watch_cinematics_css_blur")};
_.qvC=function(M,d,N){return Math.abs(M-d)<=(N||1E-6)};
_.IZb=function(M,d){return M==d?!0:M&&d?M.width==d.width&&M.height==d.height:!1};_.vEY=new _.x("notificationActionRenderer");var OY9=function(M){var d=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.MX;this.element.addEventListener("load",function(){d.loaded=!0;d.resolver.resolve(d.element)});
this.element.addEventListener("error",function(){d.failed=!0});
this.element.src=M};var jVD=function(M,d){this.image=M;this.frame=d};
jVD.prototype.drawToCanvas=function(M,d){var N=this.frame.width/this.frame.columns,R=this.frame.height/this.frame.rows,X=d.offsetX,A=d.offsetY;mjJ(d)?(M.fillStyle=d.fullscreen?"#000":"#0f0f0f",M.fillRect(X,A,(d==null?void 0:d.width)||N,(d==null?void 0:d.height)||R)):M.drawImage(this.image,this.frame.column*N,this.frame.row*R,N,R,X,A,(d==null?void 0:d.width)||N,(d==null?void 0:d.height)||R)};
var sVP=function(M){this.color=M};
sVP.prototype.drawToCanvas=function(M,d){var N=d.offsetX,R=d.offsetY,X=d.width,A=d.height;M.fillStyle=mjJ(d)?d.fullscreen?"#000":"#0f0f0f":this.color;M.fillRect(N,R,X,A)};var xX=function(M,d){_.nn.call(this);this.playerApi=d;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.R8(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();PqY(this,M);_.oEd(this);this.update()},ypb;
_.v(xX,_.nn);xX.prototype.addEventListeners=function(){var M=this,d=function(){M.update()},N=function(X){M.paused||(X.type==="newdata"&&(M.mosaics.clear(),rpJ(M),YX(M)),_.oEd(M),M.update())},R=function(){M.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",d);this.playerApi.addEventListener("onVideoDataChange",N);this.playerApi.addEventListener("onStateChange",R);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoProgress",d);M.playerApi.removeEventListener("onVideoDataChange",N);M.playerApi.removeEventListener("onStateChange",R)})};
var PqY=function(M,d){M.cinematicContainerRenderer!==d&&(M.cinematicContainerRenderer=d,rpJ(M),YX(M),M.colorStoreUpdateJobId=_.IQ.addLowPriorityJob(function(){var N;if((N=M.cinematicContainerRenderer.colorStore)!=null&&N.sampledColors){N=Infinity;for(var R=_.V(M.cinematicContainerRenderer.colorStore.sampledColors),X=R.next();!X.done;X=R.next()){X=X.value;var A=Number(X.key);A!==0&&A<N&&(N=A);A=_.ml(X.value);M.colorStore.set(X.key,A)}M.colorStoreTimeInterval=N}}))},rpJ=function(M){M.colorStoreUpdateJobId&&
(_.IQ.cancelJob(M.colorStoreUpdateJobId),M.colorStoreUpdateJobId=void 0);
M.colorStore.clear();M.currentStoryboardColor=void 0},Koi=function(M,d){var N;
return(N=M.getStoryboardFrame(d))==null?void 0:N.url};
xX.prototype.onPlayerStateChange=function(){this.update()};
xX.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.oEd=function(M){var d=M.getStoryboardFrame(0);d&&(d=new _.R8(d.width/d.columns,d.height/d.rows),_.IZb(M.currentStoryboardSize,d)||(M.currentStoryboardSize=d,M.publish("STORYBOARD_SIZE_CHANGED",M.currentStoryboardSize)))};
ypb=function(M,d){M.currentStoryboardIndex=d;M.pendingStoryboardIndex=NaN;d=M.getStoryboardFrame(M.currentStoryboardIndex);M.currentStoryboard=new jVD(M.mosaics.get(d.url).element,d);M.publish("STORYBOARD_CHANGED",M.currentStoryboard);M.lastUpdateTime=(0,_.Gs)()};
xX.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var YX=function(M){M.currentStoryboardIndex=NaN;M.pendingStoryboardIndex=NaN;M.currentStoryboard&&(M.currentStoryboard=void 0,M.publish("STORYBOARD_CHANGED",void 0));M.lastUpdateTime=NaN};
xX.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)YX(this);else{var M=this.playerApi.getPlayerState(1);if(M===-1||M===5||M===0)YX(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Gs)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(M=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){M=""+Math.round(M*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var d=this.colorStore.get(M);d?d!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=d,this.currentStoryboard=new sVP(d),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Gs)()):(_.vh(new _.WJ("Could not find color for timestamp: "+M,this.cinematicContainerRenderer)),YX(this))}else YX(this);else Jpi(this,M)}};
var Jpi=function(M,d){var N=M.getStoryboardFrameIndex(d);if(N!==M.currentStoryboardIndex&&N!==M.pendingStoryboardIndex){d=Koi(M,N);var R=M.mosaics.get(d);R?R.loaded&&ypb(M,N):(M.pendingStoryboardIndex=N,N=new OY9(d),M.mosaics.set(d,N),N.resolver.promise.then(function(){if(!M.isDisposed()&&!M.paused&&!isNaN(M.pendingStoryboardIndex)){var X=Koi(M,M.pendingStoryboardIndex);if(X){var A;(A=M.mosaics.get(X))!=null&&A.loaded&&ypb(M,M.pendingStoryboardIndex)}else YX(M)}}))}};
xX.prototype.getStoryboardFrameIndex=function(M){var d=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(M,d)};
xX.prototype.getStoryboardFrame=function(M){var d=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,N,R;return((R=(N=this.playerApi).getStoryboardFrame)==null?void 0:R.call(N,M,d))||null};
xX.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var EZ=function(M,d,N,R){R=R===void 0?!1:R;_.DL.call(this);this.cinematicContainerRenderer=d;this.playerApi=N;this.theater=this.fullscreen=!1;var X;this.ambientLightThemeEnabled=!R&&!!(d==null?0:(X=d.config)==null?0:X.enableInLightTheme);this.ambientFullscreenEnabled=R&&_.Q("web_cinematic_fullscreen");this.container=document.createElement("div");M.appendChild(this.container);var A;if(_.Q("web_cinematic_theater_mode")||_.Q("web_cinematic_fullscreen")||(d==null?0:(A=d.config)==null?0:A.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);cpJ(this);M=this.ambientV2Container||this.container;this.backCanvas=h2G();this.frontCanvas=h2G();M.appendChild(this.backCanvas.element);M.appendChild(this.frontCanvas.element);this.storyboardManager=new xX(d,this.playerApi);_.RW(this,this.storyboardManager);this.addEventListeners();SvP(this)?z24(this,100+Z5(this)*3*2,100+Z5(this)*3*2):bYq(this);e2r(this,this.storyboardManager.currentStoryboard)};
_.v(EZ,_.DL);var cpJ=function(M){M.ambientV2Container?HYr(M):(_.c6(M.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+nET(M)+", "+iYP(M)+")"}),QVY()&&_.c6(M.container,"filter","blur("+_.ZR("cinematic_watch_css_filter_blur_strength",40)+"px)"))},HYr=function(M){if(M.ambientV2Container){var d=M.playerApi.getVideoAspectRatio();
_.c6(M.container,{"aspect-ratio":""+d,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.c6(M.ambientV2Container,{"aspect-ratio":""+d,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+nET(M)+", "+iYP(M)+")"});QVY()&&_.c6(M.ambientV2Container,"filter","blur("+_.ZR("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
EZ.prototype.setFullscreen=function(M,d){this.fullscreen=M;this.theater=!!d;cpJ(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),M=this.storyboardManager.currentStoryboard,fZb(this),M&&LoG(this,M)};
EZ.prototype.addEventListeners=function(){var M=this,d=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(X){e2r(M,X)}),N=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){bYq(M)});
this.addOnDisposeCallback(function(){M.storyboardManager.unsubscribeByKey(d);M.storyboardManager.unsubscribeByKey(N)});
if(this.ambientV2Container){var R=function(){HYr(M)};
this.playerApi.addEventListener("onVideoDataChange",R);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoDataChange",R)})}};
var bYq=function(M){if(!SvP(M)){var d=M.storyboardManager.currentStoryboardSize;isNaN(d.width)||isNaN(d.height)||z24(M,Number(d.width)+Z5(M)*3*2,Number(d.height)+Z5(M)*3*2)}},z24=function(M,d,N){M.backCanvas.element.width=d;
M.backCanvas.element.height=N;M.frontCanvas.element.width=d;M.frontCanvas.element.height=N},SvP=function(M){return M.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},e2r=function(M,d){var N=M.frontCanvas.element.getAnimations()[0];
N?(N.pause(),M.backCanvas.context.globalAlpha=Number(getComputedStyle(M.frontCanvas.element).opacity),M.frontCanvas.element.style.opacity="0",N.finish()):M.backCanvas.context.globalAlpha=1;M.backCanvas.context.drawImage(M.frontCanvas.element,0,0,M.backCanvas.element.width,M.backCanvas.element.height);fZb(M);d&&LoG(M,d);d=d?M.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.ZR("cinematic_watch_fade_out_duration",500);N=_.ZR("cinematic_watch_transition_frame_rate")/1E3;var R=
{};N&&(R={easing:"steps("+Math.round(d*N)+")"});M.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:d,iterations:1},R));M.frontCanvas.element.style.opacity="1"},fZb=function(M){var d=M.ambientLightThemeEnabled,N=M.ambientLightThemeEnabled||M.ambientFullscreenEnabled&&!_.Q("web_cinematic_fullscreen_v2");
M.frontCanvas.context.fillStyle=M.theater&&d||M.fullscreen&&N?"#000":"#0f0f0f";QVY()||(M.frontCanvas.context.filter="blur(0)");M.frontCanvas.context.fillRect(0,0,M.frontCanvas.element.width,M.frontCanvas.element.height)},LoG=function(M,d){QVY()||(M.frontCanvas.context.filter="blur("+Z5(M)+"px)");
M.frontCanvas.context.globalAlpha=_.ZR("cinematic_watch_effect_opacity",.4);var N={offsetX:Z5(M)*3,offsetY:Z5(M)*3,theater:M.theater,fullscreen:M.fullscreen};SvP(M)&&(N.width=100,N.height=100);d.drawToCanvas(M.frontCanvas.context,N);M.frontCanvas.context.globalAlpha=1},Z5=function(M){var d;
return(d=M.cinematicContainerRenderer.config.blurStrength)!=null?d:5},nET=function(M){var d,N;
if((M.fullscreen||M.theater)&&((d=M.cinematicContainerRenderer.config)==null?0:(N=d.watchFullscreenConfig)==null?0:N.colorSourceWidthMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var R;return(R=M.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?R:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier},iYP=function(M){var d,N;
if((M.fullscreen||M.theater)&&((d=M.cinematicContainerRenderer.config)==null?0:(N=d.watchFullscreenConfig)==null?0:N.colorSourceHeightMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var R;return(R=M.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?R:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
EZ.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);this.container.remove()};
EZ.prototype.clear=function(){e2r(this)};
EZ.prototype.pause=function(){this.storyboardManager.pause()};var tAC;tAC=_.pe(function(){var M,d,N=!((d=(M=document.createElement("canvas")).getContext)==null||!d.call(M,"2d")),R;M=!((R=CSS)==null||!R.supports("filter: blur(0)"));R=!!Element.prototype.animate&&!!Element.prototype.getAnimations;d=_.Q("web_cinematic_fullscreen")||_.Q("web_cinematic_theater_mode")||_.Q("web_cinematic_light_theme")||!1;var X;return N&&M&&R&&(!d||!((X=CSS)==null||!X.supports("aspect-ratio: 1 / 1")))});
_.M5=function(M,d){_.nn.call(this);this.container=M;this.playerApi=d;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=GyJ(this);this.update()};
_.v(_.M5,_.nn);_.aZr=function(M){var d=document.documentElement.hasAttribute("dark");M.isDarkModeEnabled=d;M.update()};
_.UjT=function(M,d){M.settingEnabled=d;M.update()};
_.M5.prototype.setFullscreen=function(M,d){this.fullscreen=M;this.theater=!!d;this.update()};
_.udP=function(M,d){M.cinematicContainerRenderer=d;M.cinematicContainerRenderer&&(M.cinematicsVe=_.Tx(M.isShorts()?227858:159022),_.NT(_.Nx(),M.cinematicsVe),M.loggingClientData={watchCinematicContainerData:{presentationStyle:M.cinematicContainerRenderer.presentationStyle}});M.update()};
_.M5.prototype.isShorts=function(){var M,d;return((M=this.cinematicContainerRenderer)==null?void 0:(d=M.config)==null?void 0:d.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.M5.prototype.isAllowed=function(){var M;if(M=tAC()){var d,N,R;M=((N=this.cinematicContainerRenderer)==null?void 0:N.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((R=this.cinematicContainerRenderer)==null||!R.colorStore)||((d=this.cinematicContainerRenderer)==null?void 0:d.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(M)if(_.Q("web_cinematics_pausing")){var X,A;M=this.isDarkModeEnabled||!!((X=this.cinematicContainerRenderer)==
null?0:(A=X.config)==null?0:A.enableInLightTheme)}else{var l,k;X=!!((l=this.cinematicContainerRenderer)==null?0:(k=l.config)==null?0:k.enableInLightTheme)&&(_.rK("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);M=this.isDarkModeEnabled||X}if(l=M){var T,W;l=!((W=(T=this.prefersReducedMotionQuery)==null?void 0:T.matches)!=null&&W)}return l};
_.M5.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var GyJ=function(M){if(!_.Q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var d=window.matchMedia("(prefers-reduced-motion: reduce)"),N=function(){M.update()};
d.addListener(N);M.addOnDisposeCallback(function(){d.removeListener(N)});
return d}};
_.M5.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var M=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new EZ(this.container,M,this.playerApi,this.isDarkModeEnabled),_.RW(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var d=this.currentCinematicEffect;d.cinematicContainerRenderer!==
M&&(d.cinematicContainerRenderer=M,PqY(d.storyboardManager,M),cpJ(d));M=_.kS();_.TR(0,194,!0);M.save();M=_.Ou();this.cinematicsVe&&M&&_.zR(M,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(M=_.Ou(),this.cinematicsVe&&M&&_.be(M,[this.cinematicsVe],!1,this.loggingClientData),_.tw(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Hm.Object.defineProperties(_.M5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var u0J;var Cod;_.kQ({_template:function(){if(Cod!==void 0)return Cod;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=
M.content,N=d.insertBefore;u0J===void 0&&(u0J=document.createElement("template"));var R=u0J;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Cod=M},
is:"tp-yt-iron-pages",behaviors:[_.sj,_.sH],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var SwY;_.zlq=function(){if(_.Q("kevlar_home_skeleton")&&!SwY){var M=document.querySelector("#home-page-skeleton");M&&(_.v1("hgcr"),_.l_(M),SwY=!0)}};
SwY=!1;_.Ww=new _.x("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var yHq,JHq,cH9,SJP,zGP,eGr,HlC,fXe,tye,Gvi,LOi,nK$,ild,ukY,CFP;_.KOP=function(M,d,N){d=d===void 0?5:d;if(d!==0){var R=typeof M==="function"?M():document.querySelector(M);R?(N==null?0:N.enableSmartFocus)?_.Xyr(R):R.focus():setTimeout(function(){_.KOP(M,d-1,N)},500)}};
yHq=function(M){return _.Bhi(_.$1N(M&16777215))<.5};
JHq=function(M,d,N){var R=N.minimumRowsOfVideosBetweenSections===void 0?1:N.minimumRowsOfVideosBetweenSections;return M<(N.minimumRowsOfVideosAtStart===void 0?2:N.minimumRowsOfVideosAtStart)||d!==null&&M-d<=R?!1:!0};
cH9=function(M,d){var N=0,R=0;M=_.V(M);for(var X=M.next();!X.done;X=M.next()){var A=X.value;if(A.richItemRenderer)A.richItemRenderer.rowIndex=R,A.richItemRenderer.colIndex=N++,N===d&&(N=0,R++);else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.rowIndex=R,A.richGroupRenderer.colIndex=N,N+=A.richGroupRenderer.numColumns,N===d&&(N=0,R++);else if(A.richSectionRenderer){var l=X=void 0;if(A=_.q((X=A)==null?void 0:(l=X.richSectionRenderer)==null?void 0:l.content,_.sem))A.rowIndex=
R++}}};
SJP=function(M,d){var N=d.contentElement;d=d.rendererToTagNameMap;if(N&&d&&d.size!==0){for(var R=new Map,X=_.V(N.children),A=X.next();!A.done;A=X.next()){A=A.value;var l=A.tagName.toLowerCase(),k=R.get(l);k||(k=[],R.set(l,k));k.push(A)}if(R.size!==0)for(X=Math.min(M.length,N.children.length),A=new Map,l=0;l<X;l++){k=Object.keys(M[l])[0];k=d.get(k);if(!k)break;var T=A.get(k);T===void 0&&(T=0,A.set(k,T));var W=R.get(k);if(!W||T>=W.length)break;A.set(k,T+1);k=W[T];T=N.children[l];T!==k&&(_.gUZ=!0,_.WWZ.set(k,
!0),N.insertBefore(k,T),_.WWZ.delete(k),_.gUZ=!1)}}};
zGP=function(M,d,N,R,X,A,l){R=R===void 0?{}:R;if(!M||!M.length)return[];M=M.slice();var k=[],T=[];X=null;for(var W=0,w=function(e){T.sort(function(U,Fi){return Fi.skippedOnRow-U.skippedOnRow});
for(var t,C=(t=T.shift())==null?void 0:t.content;C;)!C.richSectionRenderer&&e||k.push(C),t=void 0,C=(t=T.shift())==null?void 0:t.content},p=[];M.length>0||T.length>0;){for(var m=[],I=d;I>0;){var O=void 0,y=void 0,c=(y=T[0]&&T[0].skippedOnRow<W?(O=T.shift())==null?void 0:O.content:void 0)!=null?y:M.shift();
if(!c)break;if(c.richItemRenderer)O=c.richItemRenderer.targetId,y=void 0,O&&((y=l)==null?0:y.has(O))&&p.push(l.get(O)),m.push(c),I--;else if(c.richGroupRenderer&&c.richGroupRenderer.numColumns!==void 0)c.richGroupRenderer.numColumns<=I?(m.push(c),I-=c.richGroupRenderer.numColumns):I===d&&c.richGroupRenderer.numColumns>d?(m.push({richGroupRenderer:Object.assign({},c.richGroupRenderer,{numColumns:d})}),I=0):T.push({content:c,skippedOnRow:W});else if(c.richSectionRenderer)if(JHq(W,X,R)&&I===d){k.push(c);
X=W;W++;continue}else T.push({content:c,skippedOnRow:W});else if(c.continuationItemRenderer){w(!0);k.push(c);I=0;break}if(I===0)k.push.apply(k,_.wu(m));else if(!N&&M.length===0){w(!1);k.push.apply(k,_.wu(m));I=0;break}}W++;p=_.V(p);for(m=p.next();!m.done;m=p.next())k.push(m.value),W++;p=[]}cH9(k,d);A&&SJP(k,A);return k};
eGr=function(M){var d=M.data;var N=M.uniqueId;M=M.overrides;var R,X=((R=d.timedAnimationData)==null?void 0:R.animationTiming)||[];return _.g("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.g(_.EKN,{settings:{uniqueId:N,timings:X,experimentEnabled:X.length>0,enabled:X.length>0}},blP(d.buttonRenderer,{buttonRenderer:{buttonOverrides:M}})))};
HlC=function(M){return M.talkToRecs};
fXe=function(M,d){if(d){var N=_.iY().getState().entities.flowStateEntity,R=nK$(M),X=[d];R&&R!==d&&X.push(R);var A=!0,l;if(N&&M.flowStateEntityKey&&((l=N[M.flowStateEntityKey])==null?void 0:l.primaryButtonDisabled)!==void 0){var k;A=!((k=N[M.flowStateEntityKey])==null||!k.primaryButtonDisabled)}ild(M,R!=null?R:d,X,A)}};
tye=function(M){return _.kO(_.iY(),function(d){return d.entities.flowStateEntity},function(d,N){if(M.flowStateEntityKey){var R,X=d==null?void 0:(R=d[M.flowStateEntityKey])==null?void 0:R.currentStepId,A;
N=N==null?void 0:(A=N[M.flowStateEntityKey])==null?void 0:A.currentStepId;A=_.iY().getState().talkToRecs;if(X&&X!==N){var l;d=(d==null?void 0:(l=d[M.flowStateEntityKey])==null?void 0:l.stepIdStack)||Object.keys(A.stepStates);l=!LOi(A==null?void 0:A.stepStates[X]);ild(M,X,d,l)}}})};
Gvi=function(M){return _.kO(_.iY(),HlC,function(d){var N=nK$(M);if(N){var R=Object.keys(d.stepStates);d=!LOi(d==null?void 0:d.stepStates[N]);ild(M,N,R,d)}})};
LOi=function(M){var d=Object.keys((M==null?void 0:M.selectionStates)||{}).reduce(function(A,l){return A||(M==null?void 0:M.selectionStates[l].isSelected)},!1),N,R,X=!!(M==null?0:(N=M.userQuery)==null?0:(R=N.userQuery)==null?0:R.trim());
return d||X};
nK$=function(M){if(M.flowStateEntityKey){var d,N,R=(d=_.iY().getState().entities.flowStateEntity)==null?void 0:(N=d[M.flowStateEntityKey])==null?void 0:N.currentStepId;if(R)return R}};
ild=function(M,d,N,R){_.iY().dispatch(_.la("flowStateEntity",M.flowStateEntityKey,{currentStepId:d,stepIdStack:N,key:M.flowStateEntityKey,primaryButtonDisabled:R}))};
_.aXC=function(M,d){return _.Rz(M.entities,"youchatPendingResponseEntity",d)};
_.UDe=function(M){return function(d){_.yE(_.la("youchatPendingResponseEntity",M,{entityKey:M,isPendingResponse:d}))}};
ukY=function(M){M==null||M.addEventListener("DOMLoaded",function(){M.goToAndPlay(M.totalFrames-48,!0)})};var xDP;_.kQ({_template:function(){if(xDP!==void 0)return xDP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
var d=M.content,N=d.insertBefore;CFP===void 0&&(CFP=document.createElement("template"));var R=CFP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return xDP=M},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var YJb=new _.x("talkToRecsFlowRenderer");var Zld=new _.x("flowRootRenderer");var EKC=new _.x("chipsShelfViewModel");var MU$=new _.x("horizontalShelfViewModel");_.daJ=new _.x("engagementPanelSectionListRenderer");var NvD=new _.x("conversationResourceViewModel");var Rld=function(){this.horizontal=!1},XBT=function(M,d){M.horizontal=d};
Rld.prototype.position=function(M,d,N,R){R=R===void 0?1:R;M=this.delta(M)*R+d;R=Math.max(d,N);return M>=Math.min(d,N)&&M<=R?M:N};
Rld.prototype.axis=function(M){M=this.direction(M);return M==="up"||M==="down"?"Y":"X"};var Er=function(M,d,N){d=d===void 0?_.Rh():d;this.target=M;this.manager=d;this.touchAction=N;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Er.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(_.wu(this.events)));for(var M=_.V(this.events),d=M.next();!d.done;d=M.next())this.listen(d.value)}};
Er.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.wu(this.events)));for(var M=_.V(this.events),d=M.next();!d.done;d=M.next())this.unlisten(d.value)}};
Er.prototype.listen=function(M){this.eventMap[M]&&this.target.addEventListener(M,this.eventMap[M])};
Er.prototype.unlisten=function(M){this.eventMap[M]&&this.target.removeEventListener(M,this.eventMap[M])};var Mg=function(){Rld.apply(this,arguments)};
_.v(Mg,Rld);Mg.prototype.direction=function(M){var d=M.detail;M=d.deltaY;d=d.deltaX;return M&&!this.horizontal?M>0?"down":"up":d&&this.horizontal?d>0?"right":"left":"none"};
Mg.prototype.distance=function(M){return Math.abs(this.delta(M))};
Mg.prototype.delta=function(M){var d=this.direction(M),N=M.detail;M=N.deltaX;N=N.deltaY;return d==="up"||d==="down"?N||0:M||0};
Mg.prototype.velocity=function(M){var d=this.direction(M),N=M.detail;M=N.velocityX;N=N.velocityY;return Math.abs(d==="up"||d==="down"?N||0:M||0)};_.da=function(M,d,N,R,X,A){X=X===void 0?new Mg:X;A=A===void 0?_.Rh():A;Er.call(this,d,A,R);var l=this;this.element=M;this.target=d;this.config=N;this.input=X;this.manager=A;this.events=["panstart","panmove","panend"];this.onPanStart=function(){l.config.draggingClass&&l.element.classList.add(l.config.draggingClass);l.config.startAction&&l.config.startAction()};
this.onPanMove=function(k){var T=Fer(l,k);if(T){l.move(k,T);T.fade&&l.fade(k,T);var W=l.input.direction(k);T.moveAction&&T.moveAction(A09(l,k,T),W)}};
this.onPanEnd=function(k){var T,W,w,p,m,I;return _.B(function(O){if(O.nextAddress==1){l.animationRequestId&&cancelAnimationFrame(l.animationRequestId);l.animationRequestId=void 0;T=Fer(l,k);if(!T)return O.return();W=T;w=W.triggerAction;p=W.fade;m=W.disableFinish;I=W.translateBack;var y=l.input.velocity(k),c=l.input.distance(k),e=l.threshold(T);return y>.3&&c>10||c>e?m?O.jumpTo(6):p?_.D(O,VUG(l,k),6):_.D(O,lJe(l,k,T),6):I?_.D(O,l.translateBack(k),3):O.jumpTo(3)}O.nextAddress!=3&&w&&w();l.config.draggingClass&&
l.element.classList.remove(l.config.draggingClass);l.reset();_.Vy(O)})};
M=Object.keys(N.triggers);this.directions=new Set(M);XBT(this.input,this.directions.has("right")||this.directions.has("left"))};
_.v(_.da,Er);_.da.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Fer=function(M,d){d=M.input.direction(d);return M.config.triggers[d]};
_.da.prototype.move=function(M,d){var N=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var R=N.input.axis(M),X=N.input.position(M,N.config.startPosition,d.endPosition,d.moveRatio||1);N.element.style.transform="translate"+R+"("+X+"px)";N.animationRequestId=void 0}))};
var A09=function(M,d,N){var R=N.moveRatio||1;N=Math.abs(M.config.startPosition-N.endPosition);return Math.min(M.input.distance(d)*R,N)/N};
_.da.prototype.fade=function(M,d){var N=d.endOpacity;M=A09(this,M,d);M>0&&(this.element.style.opacity=""+(((N||0)-1)*M+1))};
_.da.prototype.threshold=function(M){return M.threshold?M.threshold:Math.abs(M.endPosition-this.config.startPosition)/3};
var lJe=function(M,d,N){var R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return R=M.input.delta(d)+M.config.startPosition,X=M.input.axis(d),A=N,l=A.endPosition,k=A.transitionEndPosition,W=(T=k)!=null?T:l,_.D(w,M.element.animate([{transform:"translate"+X+"("+R+"px)"},{transform:"translate"+X+"("+W+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+X+"("+W+"px)";_.Vy(w)})};
_.da.prototype.translateBack=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(!d.element.style.transform)return X.return();N=d.input.axis(M);R=d.config.startPosition;return _.D(X,d.element.animate([{transform:d.element.style.transform},{transform:"translate"+N+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}d.element.style.transform="translate"+N+"("+R+"px)";_.Vy(X)})};
var VUG=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=M.input.delta(d)+M.config.startPosition,R=M.input.axis(d),X=N+70,A=M.element.style.opacity===""?1:M.element.style.opacity,_.D(l,M.element.animate([{transform:"translate"+R+"("+N+"px)",opacity:A},{transform:"translate"+R+"("+X+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+R+"("+X+"px)";M.element.style.opacity="0";_.Vy(l)})};var Ng=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;M.scrollRate=3;M.autoScrollAnimationStart=0;M.autoScrollPaused=!1;M.autoScrollRafId=0;return M};
_.v(Ng,_.MS);_.F=Ng.prototype;_.F.created=function(){var M=this;this.boundAutoScrollHandler=function(d){M.autoScroll(d)}};
_.F.detached=function(){this.hostElement.removeEventListener("mouseout",_.ux(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ux(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ux(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.F.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ux(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ux(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ux(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ux(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ux(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ux(this,this.endAutoScroll)),this.endAutoScroll())};
_.F.autoScroll=function(M){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=M);var d;if(d=!this.autoScrollPaused&&this.scrollTarget)d=this.scrollTarget,d=d.scrollHeight-d.scrollTop!==d.clientHeight;d&&(d=1E3/this.scrollRate,M-=this.autoScrollAnimationStart,M>d&&(this.scrollTarget.scrollTop+=Math.ceil(M/d),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.F.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.F.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Ng.prototype.autoScrollEnabledChanged=Ng.prototype.autoScrollEnabledChanged;_.G([_.H(),_.a("design:type",Object)],Ng.prototype,"scrollRate",void 0);_.G([_.H(),_.a("design:type",Object)],Ng.prototype,"scrollTarget",void 0);_.G([_.H(),_.a("design:type",Boolean)],Ng.prototype,"autoScrollEnabled",void 0);_.G([_.xB("autoScrollEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ng.prototype,"autoScrollEnabledChanged",null);Ng=_.G([_.d4()],Ng);_.$aq=[Ng.prototype];var BvJ;_.eC(_.gV,"yt-avatar-stack-view-model",{props:{className:_.cA,data:_.cA,isOverlay:_.cA,useMediumText:_.cA,decorations:_.cA,hideAvatar:_.cA}});var blP=_.W5({buttonRenderer:_.or});_.aR(eGr);_.aA(eGr,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var R3=function(){var M=_.n.apply(this,arguments)||this;M.hideJoinButtonBeforeSubscribed=_.Q("hide_join_button_before_subscribed");M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return M};
_.v(R3,_.n);_.F=R3.prototype;
_.F.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"}}}};
_.F.updateJoinButtonOverrides=function(){var M,d;(M=_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(d=M.polymerController)==null||d.set("overrides",this.joinButtonOverrides);if(M=_.K(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))M.overrides=this.joinButtonOverrides};
_.F.handleButtonRefreshAction=function(M){if(M=_.q(M,_.UnL))this.set("data.membershipButton",M.membershipButton),this.notifyPath("data.membershipButton")};
_.F.onYtServiceRequestError=function(M){_.Q8(this.hostElement,M.detail.error.message)};
_.F.handleUnsubscribeAction=function(){var M,d,N;((M=this.data)==null?void 0:(d=M.membershipButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.style)==="STYLE_PRIMARY"&&_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Hm.Object.defineProperties(R3.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.subscriptionStateEntity)==null||!M.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.membershipButton,N;M=(d==null?void 0:d.buttonRenderer)||_.q(d==null?void 0:(N=d.timedAnimationButtonRenderer)==null?void 0:N.buttonRenderer,_.K9);return(M==null?void 0:M.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(M==null?void 0:M.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(M==null?void 0:M.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
R3.prototype.onYtServiceRequestError=R3.prototype.onYtServiceRequestError;R3.prototype.updateJoinButtonOverrides=R3.prototype.updateJoinButtonOverrides;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],R3.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],R3.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R3.prototype,"data",void 0);_.G([_.z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],R3.prototype,"hideJoin",null);_.G([_.H(),_.a("design:type",String)],R3.prototype,"subscribeKey",void 0);_.G([_.H({selectorArgs:["subscribeKey"],selector:_.xF}),_.a("design:type",Object)],R3.prototype,"subscriptionStateEntity",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],R3.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.G([_.z("subscriptionStateEntity"),_.H({reflectToAttribute:!0}),_.a("design:type",Object),_.a("design:paramtypes",[])],R3.prototype,"subscribed",null);_.G([_.z("subscribed","data.membershipButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],R3.prototype,"joinButtonOverrides",null);
_.G([_.xB("joinButtonOverrides"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],R3.prototype,"updateJoinButtonOverrides",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],R3.prototype,"onYtServiceRequestError",null);R3=_.G([_.f({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],R3);
_.L(R3,"ytd-video-owner-renderer",function(){if(BvJ!==void 0)return BvJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return BvJ=M},{mode:1});var kp$;var XJ=function(){var M=_.n.apply(this,arguments)||this;M.buttonUpdate=_.Q("web_button_rework");M.dismissButtonOverrides=_.Q("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;M.forceDarkTheme=!1;M.forceLightTheme=!1;M.dynamicTextHeight=94;M.hasOverflowButton=!1;M.isInfeedModernization=!1;return M};
_.v(XJ,_.n);_.F=XJ.prototype;_.F.computeUrlImg=function(M){if(M)return _.nq(M.thumbnails)};
_.F.getLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.F.getLogoClassName=function(M){return this.logoWithPadding(M)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.F.logoWithPadding=function(M){var d,N;return(M=(d=M.thumbnails)==null?void 0:(N=d[0])==null?void 0:N.height)&&M%31===0?!0:!1};
_.F.sendImpressionEndpoints=function(M){M.impressionEndpoints&&_.dU(this.hostElement,M.impressionEndpoints)};
_.F.observeBasicPalette=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.colorData)==null?void 0:d.basicColorPaletteData;N?_.Wi(this.hostElement,N):_.Wi(this.hostElement,{})};
_.F.observeDataChanged=function(){var M;this.dynamicTextHeight=((M=this.data)==null?0:M.supplementalText)?74:94;var d;this.hasSupplementalText=!((d=this.data)==null||!d.supplementalText);if(_.Q("web_button_rework")){var N,R,X,A;M=(N=this.data)==null?void 0:(R=N.actionButton)==null?void 0:(X=R.buttonRenderer)==null?void 0:(A=X.colorData)==null?void 0:A.basicColorPaletteData;var l,k,T;if(!((l=this.data)==null?0:(k=l.actionButton)==null?0:(T=k.buttonRenderer)==null?0:T.style)&&M){this.computeIsInfeedModernization(this.data)||
(M.borderColor=M.foregroundTitleColor);var W,w;this.set("data.actionButton.buttonRenderer",_.wF.unsafeClone((W=this.data)==null?void 0:(w=W.actionButton)==null?void 0:w.buttonRenderer))}}};
_.F.observeDataForCounterfactual=function(){if(_.Q("kevlar_banner_cf_extra_logging")){var M;((M=this.data)==null?0:M.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.F.computeSupplementalStyle=function(){var M;if((M=this.data)!=null&&M.supplementalText){var d,N,R;if((d=this.data)==null?0:(N=d.colorData)==null?0:(R=N.basicColorPaletteData)==null?0:R.foregroundActivatedColor)return M=_.p3(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+M+"; --yt-endpoint-hover-color:"+M+"; --yt-endpoint-visited-color:"+M+"; --yt-formatted-string-bold-font-weight:700;"}};
_.F.computeForcedDarkTheme=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.style,X,A,l;M=yHq(((X=this.data)==null?void 0:(A=X.colorData)==null?void 0:(l=A.basicColorPaletteData)==null?void 0:l.backgroundColor)||0);return R&&M};
_.F.computeForcedLightTheme=function(){var M,d,N,R=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.style,X,A,l;M=!yHq(((X=this.data)==null?void 0:(A=X.colorData)==null?void 0:(l=A.basicColorPaletteData)==null?void 0:l.backgroundColor)||0);return R&&M};
_.F.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.F.computeHasTitle=function(M){return!!M.title};
_.F.computeTitleMaxFontSize=function(M){return this.computeHasOverflowButton(M)?28:64};
_.F.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.F.computeIsInfeedModernization=function(){var M,d,N,R,X=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:(R=N.colorData)==null?void 0:R.basicColorPaletteData;return(X==null?void 0:X.backgroundColor)===452984831||(X==null?void 0:X.backgroundColor)===218103808};
XJ.prototype.observeDataForCounterfactual=XJ.prototype.observeDataForCounterfactual;XJ.prototype.observeDataChanged=XJ.prototype.observeDataChanged;XJ.prototype.observeBasicPalette=XJ.prototype.observeBasicPalette;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],XJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],XJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],XJ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],XJ.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],XJ.prototype,"hasSupplementalText",void 0);_.G([_.H(),_.a("design:type",Object)],XJ.prototype,"dismissButtonOverrides",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.a("design:type",Boolean)],XJ.prototype,"hasTitle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.a("design:type",Object)],XJ.prototype,"forceDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.a("design:type",Object)],XJ.prototype,"forceLightTheme",void 0);_.G([_.H(),_.a("design:type",Object)],XJ.prototype,"dynamicTextHeight",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.a("design:type",Object)],XJ.prototype,"hasOverflowButton",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.a("design:type",Object)],XJ.prototype,"isInfeedModernization",void 0);_.G([_.xB("data.colorData.basicColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XJ.prototype,"observeBasicPalette",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XJ.prototype,"observeDataChanged",null);_.G([_.xB("data.isVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],XJ.prototype,"observeDataForCounterfactual",null);XJ=_.G([_.f({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],XJ);
_.L(XJ,"ytd-banner-promo-renderer",function(){if(kp$!==void 0)return kp$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kp$=M},{mode:1});var Tvr;var Daq;var grC;var FJ=function(){return _.n.apply(this,arguments)||this};
_.v(FJ,_.n);_.G([_.H(),_.a("design:type",Object)],FJ.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);FJ=_.G([_.f({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],FJ);
_.L(FJ,"ytd-hashtag-grid-tile-renderer",function(){if(grC!==void 0)return grC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return grC=M},{mode:1});var AF=function(){return _.n.apply(this,arguments)||this};
_.v(AF,_.n);AF.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
AF.prototype.updateRichGridTrendingHashtagsVisibility=function(){var M,d;if(((M=this.data)==null||!M.isExpanded)&&(d=this.data)!=null&&d.tiles){M=this.data.tiles.length;d=M>this.richGridItemsPerRow?this.richGridItemsPerRow+1:M;var N=Math.ceil(M/d);this.fullyVisibleRows=M%d===1&&N===2?1:Math.min(N,2);this.isShowMoreVisible=this.fullyVisibleRows<N}};
AF.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
AF.prototype.updateRichGridTrendingHashtagsVisibility=AF.prototype.updateRichGridTrendingHashtagsVisibility;_.G([_.H(),_.a("design:type",Object)],AF.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],AF.prototype,"fullyVisibleRows",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],AF.prototype,"isShowMoreVisible",void 0);_.G([_.H({selector:_.Iz,value:0}),_.a("design:type",Number)],AF.prototype,"richGridItemsPerRow",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],AF.prototype,"ytdReduxBehavior",void 0);_.G([_.xB("data","richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AF.prototype,"updateRichGridTrendingHashtagsVisibility",null);
AF=_.G([_.f({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],AF);
_.L(AF,"ytd-hashtag-grid-shelf-renderer",function(){if(Daq!==void 0)return Daq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Daq=M},{mode:1});var WeD;var wBr;var Vv=function(){var M=_.n.apply(this,arguments)||this;M.visibleVideos=[];M.hiddenVideos=[];M.modern=_.Q("web_modern_buttons");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(Vv,_.n);_.F=Vv.prototype;_.F.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.F.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"}}}};
_.F.dataChanged=function(){var M=this;this.requestElementsPerRow();var d,N;this.currentColorPalette=this.isDarkTheme?(d=this.data)==null?void 0:d.darkColorData:(N=this.data)==null?void 0:N.lightColorData;var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.bM(this,function(){M.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.F.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.F.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.F.computeIsFirstFeedItem=function(M){return M};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.F.getCurrentLogo=function(M,d){if(M)return d?M.darkLogoImage:M.lightLogoImage};
_.F.computeTitleStyle=function(M){var d;if((d=this.data)!=null&&d.title&&M&&M.textPrimary!==void 0)return"color:"+_.p3(M.textPrimary)+";"};
_.F.computeSubtitleStyle=function(M){var d;if((d=this.data)!=null&&d.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.p3(M.textSecondary)+";"};
_.F.computeDismissIconStyle=function(M){if(this.data&&this.data.dismissButton&&M&&M.textPrimary!==void 0)return"--yt-button-color:"+_.p3(M.textPrimary)+";"};
_.F.computeOverflowButtonStyle=function(M){if(this.data&&this.data.overflowButton&&M&&M.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.p3(M.textPrimary)+";--yt-spec-icon-active-other:"+_.p3(M.textPrimary)+";"};
_.F.computeBackgroundStyle=function(M){if(M&&this.data){var d="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var N=_.nq((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);N&&(d+='background-image:url("'+N+'");')}M.backgroundColor!==void 0&&(d+="background-color:"+_.ml(M.backgroundColor)+";");return d}};
_.F.computeButton=function(){var M,d=Object.assign({},_.q((M=this.data)==null?void 0:M.showMoreButton,_.K9));if(this.modern&&d){d.style="STYLE_MONO_OUTLINE";var N;if(M=(N=this.currentColorPalette)==null?void 0:N.textPrimary)d.colorData={basicColorPaletteData:{foregroundTitleColor:M,borderColor:M}}}return d};
_.F.shouldShowBottomButton=function(M,d){return!(M==null?0:M.header)&&!(M==null||!M.primaryButton)&&d<3};
_.F.checkExpanded=function(M){this.isExpanded=M&&M.content?this.hiddenVideos.length===0:!0};
_.F.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.F.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.F.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.F.computeHasSectionHeader=function(M){return!!M.header};
_.F.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var M;if((M=this.data.primaryButton)==null?0:M.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var d;((d=this.data.dismissButton)==null?0:d.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var N,R;((N=this.data)==null?0:(R=N.primaryButton)==null?0:R.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.F.setVisibleVideos=function(M){if(this.data&&this.data.content)if(this.data.content.length){var d=this.data.content.length;this.data.header?M?(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.slimItemsPerRow),d)):(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow),d)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(d,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow),d)):(this.visibleVideos=this.data.content.slice(0,Math.min(d,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(d,this.elementsPerRow-1),d))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.F.setHasMovieRenderer=function(){var M;if((M=this.data)!=null&&M.content){var d;this.hasMovieRenderer=!!_.q((d=this.data)==null?void 0:d.content[0],_.dGg)}else this.hasMovieRenderer=!1};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
_.F.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var M=_.V(this.hiddenMediaRenderers),d=M.next();!d.done;d=M.next())d.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(M=_.K(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&M.focus()}};
_.F.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.F.logoWithPadding=function(M){var d,N,R;return(M=(d=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
_.F.onUpdateElementsPerRowAction=function(M,d,N){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M);N&&this.slimItemsPerRow!==N&&(this.slimItemsPerRow=N)};
Vv.prototype.slimItemsPerRowChanged=Vv.prototype.slimItemsPerRowChanged;Vv.prototype.elementsPerRowChanged=Vv.prototype.elementsPerRowChanged;Vv.prototype.dataChanged=Vv.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],Vv.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Vv.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Vv.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vv.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Vv.prototype,"currentColorPalette",void 0);_.G([_.H(),_.a("design:type",Array)],Vv.prototype,"visibleVideos",void 0);_.G([_.H(),_.a("design:type",Array)],Vv.prototype,"hiddenVideos",void 0);
_.G([_.H(),_.a("design:type",Object)],Vv.prototype,"primaryButton",void 0);_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],Vv.prototype,"elementsPerRow",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Vv.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Vv.prototype,"isExpanded",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Vv.prototype,"largeTitle",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Vv.prototype,"hasMovieRenderer",void 0);_.G([_.H(),_.a("design:type",Number)],Vv.prototype,"slimItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Boolean)],Vv.prototype,"showLightVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Boolean)],Vv.prototype,"showDarkVideoMetadata",void 0);_.G([_.H(),_.a("design:type",Number)],Vv.prototype,"videoMetadataColor",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],Vv.prototype,"miniMode",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.a("design:type",Boolean)],Vv.prototype,"isFirstFeedItem",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.a("design:type",Boolean)],Vv.prototype,"hasSectionHeader",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],Vv.prototype,"roundedContainer",void 0);_.G([_.EO("#visible-video-container ytd-rich-grid-media"),_.a("design:type",Array)],Vv.prototype,"visibleMediaRenderers",void 0);_.G([_.EO("#hidden-video-container ytd-rich-grid-media"),_.a("design:type",Array)],Vv.prototype,"hiddenMediaRenderers",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Vv.prototype,"modern",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vv.prototype,"dataChanged",null);_.G([_.xB("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vv.prototype,"elementsPerRowChanged",null);_.G([_.xB("slimItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vv.prototype,"slimItemsPerRowChanged",null);
Vv=_.G([_.f({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Vv);
_.L(Vv,"ytd-brand-video-shelf-renderer",function(){if(wBr!==void 0)return wBr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wBr=M},{mode:1});var pBr;var l9=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(l9,_.n);_.F=l9.prototype;_.F.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.F.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"}}}};
_.F.dataChanged=function(){this.requestElementsPerRow();var M,d;this.currentColorPalette=this.isDarkTheme?(M=this.data)==null?void 0:M.darkColorData:(d=this.data)==null?void 0:d.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.F.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.F.computeIsFirstFeedItem=function(M){return M};
_.F.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(M),this.updateButtonPalette())};
_.F.shouldShowThumbnailInMetadata=function(M){return M<=1};
_.F.computeVideoMetadataColor=function(){if(this.data){var M;if((M=this.currentColorPalette)==null?0:M.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.F.computeTitleStyle=function(M){var d;if((d=this.data)!=null&&d.title&&M&&M.textPrimary!==void 0)return"color:"+_.p3(M.textPrimary)+";"};
_.F.computeSubtitleStyle=function(M){var d;if((d=this.data)!=null&&d.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.p3(M.textSecondary)+";"};
_.F.computeOverflowButtonStyle=function(M){var d;if(this.data&&this.data.overflowButton&&(M==null?0:(d=M.dismissButtonColorData)==null?0:d.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.p3(M.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.p3(M.dismissButtonColorData.foregroundTitleColor)+";"};
_.F.computeBackgroundStyle=function(M){if(M&&this.data){var d="";M.backgroundColor!==void 0&&(d+="background-color:"+_.ml(M.backgroundColor)+";");return d}};
_.F.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.F.updateButtonPalette=function(){if(this.data){var M;if((M=this.data.primaryButton)==null?0:M.buttonRenderer){var d;if((d=this.currentColorPalette)==null?0:d.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var N;((N=this.currentColorPalette)==null?0:N.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)})}}};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
_.F.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
l9.prototype.elementsPerRowChanged=l9.prototype.elementsPerRowChanged;l9.prototype.dataChanged=l9.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],l9.prototype,"ytdDismissibleItemBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],l9.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],l9.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],l9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],l9.prototype,"currentColorPalette",void 0);_.G([_.H(),_.a("design:type",Object)],l9.prototype,"primaryButton",void 0);
_.G([_.H({reflectToAttribute:!0,value:3}),_.a("design:type",Number)],l9.prototype,"elementsPerRow",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],l9.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],l9.prototype,"titleSize",void 0);_.G([_.H(),_.a("design:type",Number)],l9.prototype,"videoMetadataColor",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],l9.prototype,"miniMode",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.a("design:type",Boolean)],l9.prototype,"isFirstFeedItem",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],l9.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.a("design:type",Boolean)],l9.prototype,"hasOverflowButton",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l9.prototype,"dataChanged",null);_.G([_.xB("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],l9.prototype,"elementsPerRowChanged",null);l9=_.G([_.f({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],l9);
_.L(l9,"ytd-brand-video-singleton-renderer",function(){if(pBr!==void 0)return pBr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return pBr=M},{mode:_.G3("kevlar_poly_si_batch_j070")?1:2});var mai;var hld=_.SG(function(M){var d=M.data;return _.g(_.Jt,{data:function(){return d().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(d().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var N=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":N=88;break a;default:N=88}return N},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return d().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Vh"),qwJ=_.SG(function(M){var d=M.metadataRow;
var N=M.delimiter;return _.g(_.TN,{each:function(){return d().textParts||[]},
keyBy:"INDEX"},function(R,X){return _.g(_.GT,null,_.g(_.lG,{text:R,noWrap:!0,userInput:!0}),_.g(QBq,{delimiter:N,max:function(){return d().textParts.length},
index:X}))})},"Wh"),QBq=_.SG(function(M){var d=M.delimiter;
var N=M.max;var R=M.index;return _.g(_.kV,{cond:function(){return(d==null?void 0:d())&&N()-1>R()},
then:function(){return _.g("span",null,d)}})},"Xh"),IJi=_.SG(function(M){var d=M.data;
M={};return _.g("yt-profile-page-header-information-view-model",{class:_.xj("profile-page-header-information-view-model-wiz",(M["profile-page-header-information-view-model-wiz--mobile"]=!1,M))},_.g(_.kV,{cond:function(){return d().onTap},
then:function(){return _.g(_.VX,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.ht(d().onTap)}},_.g(_.ho,{data:function(){return d().thumbnail}},{profilePageHeaderThumbnailViewModel:hld}))},
else:function(){return _.g("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.g(_.ho,{data:function(){return d().thumbnail}},{profilePageHeaderThumbnailViewModel:hld}))}}),_.g("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.g(_.kV,{cond:function(){return d().onTap},
then:function(){return _.g(_.ho,{data:function(){return d().title}},{profilePageHeaderTitleViewModel:function(N){var R=N.data;
return _.g(_.VX,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.ht(R().onTap)}},_.g(_.lG,{text:function(){return R().title}}))}})},
else:function(){return _.g(_.ho,{data:function(){return d().title}},{profilePageHeaderTitleViewModel:function(N){var R=N.data;
return _.g(_.lG,{text:function(){return R().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.g(_.ho,{data:function(){return d().metadata}},{profilePageHeaderMetadataViewModel:function(N){var R=N.data;
return _.g(_.kV,{cond:function(){return R().metadataRows},
then:function(X){return _.g("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.g(_.TN,{each:X,keyBy:"INDEX"},function(A,l){return _.g(_.GT,null,_.g(qwJ,{metadataRow:A,delimiter:" \u2022 "}),_.g(QBq,{delimiter:" \u2022 ",max:function(){return X().length},
index:l}))}))}})}})))},"Yh");
IJi.idomCompat=!0;_.eC(IJi,"yt-profile-page-header-information-view-model",{props:{data:_.cA}});var $z=function(){return _.n.apply(this,arguments)||this};
_.v($z,_.n);$z.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$z.prototype,"data",void 0);$z=_.G([_.f({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],$z);
_.L($z,"ytd-effect-pivot-header-view-model",function(){if(mai!==void 0)return mai;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return mai=
M},{mode:1});var vrG;var Bw=function(){return _.n.apply(this,arguments)||this};
_.v(Bw,_.n);Bw.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bw.prototype,"data",void 0);Bw=_.G([_.f({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Bw);
_.L(Bw,"ytd-source-pivot-header-renderer",function(){if(vrG!==void 0)return vrG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return vrG=M},{mode:1});_.OnJ=_.SG(function(M){var d=M.data;M=_.e5();_.ek(M,function(){return d().rendererContext});
var N=function(){var R;return _.zH((R=d())==null?void 0:R.rendererContext)};
return _.g("content-list-item-view-model",{el:M,class:"ytContentListItemViewModelHost",role:function(){return N()?"listitem":void 0},
tabindex:function(){return N()?0:void 0}},_.g("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.g("div",{class:"ytContentListItemViewModelImageContainer"},_.g(_.kV,{cond:function(){return d().image},
then:function(R){return _.g(_.Jt,{data:R,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.g(_.ho,{data:function(){var R;
return(R=d())==null?void 0:R.avatar}},{avatarViewModel:_.TS})),_.g("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.g("div",{class:"ytContentListItemViewModelTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"ytContentListItemViewModelMetadata"},_.g(_.ho,{data:function(){return d().metadata}},{contentMetadataViewModel:function(R){return _.g(_.$P3,{data:R.data,
layout:1})}})))),_.g("div",{class:"ytContentListItemViewModelActionButton"},_.g(_.ho,{data:function(){var R;
return(R=d())==null?void 0:R.actionButton}},{buttonViewModel:_.o0,
toggleButtonViewModel:_.I0})))},"Zh");_.eC(_.SG(function(M){var d={},N={},R={},X={};return _.g("yt-card-view-model",{class:_.xj("ytCardViewModelHost",M.className,(d.ytCardViewModelOutline=function(){return M.data().cardStyle==="CARD_STYLE_OUTLINE"},d),(N.ytCardViewModelRaised=function(){return M.data().cardStyle==="CARD_STYLE_RAISED"||M.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},N),(R.ytCardViewModelTonal=function(){return M.data().cardStyle==="CARD_STYLE_TONAL"},R),(X.ytCardViewModelInverted=function(){return M.data().cardStyle===
"CARD_STYLE_INVERSE"},X))},_.g(_.ho,{data:function(){return M.data().background}},{cinematicContainerViewModel:function(A){return _.g(_.Lrm,{data:A.data})}}),_.g("div",{class:"ytCardViewModelContentWrapper"},_.g(_.ho,{data:function(){return M.data().content}},{contentListItemViewModel:function(A){return _.g(_.OnJ,{data:A.data})}})),_.g(_.ho,{data:function(){return M.data().dismissAction}},{buttonViewModel:function(A){return _.g(_.o0,{data:A.data})}}))},"$h"),"yt-card-view-model",{props:{data:_.cA,
className:_.cA}});_.eC(_.SG(function(M){var d=function(){return _.q(M.data().flowRoot,Zld)};
_.IJ(function(){var N=d(),R=function(){},X=function(){};
if(N){var A,l,k=(l=_.q((A=N.steps)==null?void 0:A[0],_.oT9))==null?void 0:l.stepId;fXe(N,k||"");R=tye(N);X=Gvi(N)}_.mF(function(){R();R=function(){};
X();X=function(){}})});
return _.g("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.g(_.gwJ,{contentId:function(){return M.data().contentId}},function(){return _.g("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.g(_.kV,{cond:d,
then:function(N){return _.g(_.pJb,{data:N})}}))}))},"ai"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.cA}});_.eC(_.SG(function(){return _.g("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.g("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.g(_.ZED,null)),_.g(_.kyJ,{data:{rows:1},isExploreHub:!0}))},"bi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.eC(_.SG(function(M){var d=M.data;var N=M.standardUnitMinWidth;M=_.e5();var R=_.V((0,_.WoL)(d)),X=R.next().value,A=R.next().value,l=function(){var T,W=(T=X())==null?void 0:T.contents;return W==null||W.length===0},k=function(){A(Object.assign({},X(),{contents:[]}))};
_.Gi(M,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var T=_.q(d().chipsShelf,EKC);if(T!=null&&T!=null&&T.autoselectChipOnVisible){var W,w,p=_.q(T==null?void 0:(W=T.contents)==null?void 0:W[(w=T.autoselectedChipIndex)!=null?w:0],_.cq);p&&p.tapCommand&&_.vz(p.tapCommand)}}});
return _.g("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:M},_.g(_.gwJ,{contentId:function(){return d().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.g("div",null,_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.g(_.ho,{data:function(){return d().header}},{sectionHeaderViewModel:function(T){return _.g(_.U6,{data:T.data,
disableHorizontalPadding:!0})}})),_.g("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.g(_.ho,{data:function(){return d().chipsShelf}},{chipsShelfViewModel:function(T){return _.g(_.V_d,{data:T.data,
callback:k,enableSingleChipSelection:!0})}})),_.g("div",null,_.g(_.kV,{cond:l,
then:function(){return _.g("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.g(_.kyJ,{data:{rows:1},isExploreHub:!0}))}}),_.g(_.ho,{data:function(){var T;
return(T=X())==null?void 0:T.contents}},{richShelfRenderer:function(T){return _.g(_.gxg,{data:T.data,
isInnerShelf:!0,standardUnitMinWidth:N})}})))}))},"ci"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.cA,
standardUnitMinWidth:_.cA}});var kz=function(){return _.n.apply(this,arguments)||this};
_.v(kz,_.n);
kz.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
kz.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.G([_.S(_.Op),_.a("design:type",Object)],kz.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],kz.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kz.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Number)],kz.prototype,"standardUnitMinWidth",void 0);kz=_.G([_.f({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],kz);
_.L(kz,"ytd-rich-section-renderer",function(){if(WeD!==void 0)return WeD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return WeD=M},{mode:_.G3("kevlar_poly_si_batch_j029")?
1:2});_.eC(_.aKi,"yt-profile-identity-info-view-model",{props:{data:_.cA,hideDivider:_.cA}});_.eC(_.MNe,"yt-page-header-view-model",{props:{data:_.cA,noPadding:_.cA,enableBanner:_.cA,cinematicContainerTopbarOffset:_.cA,allowCinematicContainerOverflow:_.cA,displayAsSidebar:_.cA,displayAsPanel:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=function(){var X;return(X=d().numColumns)!=null?X:2},R=function(){return N()>1?3:2};
M={};return _.g("ytd-rich-grid-group",{class:_.xj("ytdRichGridGroupHost",(M.ytdRichGridGroupHostFirstColumn=function(){return d().colIndex===0},M)),
style:_.Xc({"--ytd-rich-grid-group-num-columns":N,"--ytd-rich-grid-items-per-group":R})},_.g("div",{class:"ytdRichGridGroupContents"},_.g(_.ho,{data:function(){var X;return(X=d().contents)==null?void 0:X.slice(0,R())}},{richItemRenderer:function(X){return _.g(_.TC3,{data:X.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"di"),"ytd-rich-grid-group",{props:{data:_.cA}});var TC=function(){var M=_.n.apply(this,arguments)||this;M.resizeOnObserverInit=!1;M.isInlinePreviewDisabled=_.Q("web_disable_inline_preview");M.disableStickyFilterBar=!1;M.transparentBackgroundChipsBar=!1;M.hideChipsBar=!1;M.isWatchDefaultLayout=!0;M.continuationShowButton=!1;M.rowReducedHorizontalMargin=!1;M.useCompactList=!1;M.manualDownloadsPresent=!1;M.smartDownloadsPresent=!1;M.shouldRenderDownloadsBanner=!1;M.hasOptedIntoSmartDownloads=!1;M.elementsPerRow=4;M.typographyBump=!1;M.showGnomeContents=
!1;M.showExploreHubContents=!1;M.slimItemsPerRow=1;M.pageLoadingFromNavigation=!1;M.loggingRefactor=_.Q("kevlar_rich_grid_logging_fix");M.resizeObserver=null;M.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};M.rendererToTagNameMap=
new Map(Object.entries(M.contentMapping()).map(function(d){var N=_.V(d);d=N.next().value;N=N.next().value;return[d,N.component]}));
M.insertedContent=new Map;return M};
_.v(TC,_.n);_.F=TC.prototype;_.F.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var M=_.V(_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),d=M.next();!d.done;d=M.next())d.value.useCompactList=this.useCompactList};
_.F.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var M=_.V(_.K(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),d=M.next();!d.done;d=M.next())d=d.value,d.sizing=this.sizing,d.typographyBump=this.typographyBump};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.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]]"},
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]]"}}}};
_.F.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}}};
_.F.attached=function(){document.addEventListener("yt-page-type-changed",_.ux(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.ua(this.resizeObserved,_.ZR("rich_grid_resize_delay_ms",50),this)};
_.F.detached=function(){var M;(M=this.resizeObserver)==null||M.disconnect();document.removeEventListener("yt-page-type-changed",_.ux(this,this.onPageChange))};
_.F.insertRichSection=function(M){var d=M.richItemTargetId;M=M.richSectionRendererToInsert;d&&M&&(this.insertedContent.set(d,M),this.reflowContent())};
_.F.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.F.computeIsInlinePreviewEnabled=function(M,d,N){return _.Q("web_disable_inline_preview")?!1:!N&&_.mFq({miniplayerIsActive:M,miniplayerPlaybackState:d})};
_.F.computeSizing=function(){var M=_.Wuj(this.data);if(M||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return M?this.useCompactList?"COMPACT":M:this.miniMode?"COMPACT":_.Q("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.F.updateItemMinAndMaxWidth=function(){var M=_.ZR("rich_grid_max_item_width",500);M>0&&_.UO(this.hostElement,{"--ytd-rich-grid-item-max-width":M+"px"});var d;M=this.getRichItemMinWidth((d=this.hostElement)==null?void 0:d.clientWidth);M>0&&_.UO(this.hostElement,{"--ytd-rich-grid-item-min-width":M+"px"})};
_.F.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.F.resizeObserved=function(){_.Eu(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.F.navigateBackToHome=function(){_.Q("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var M=_.h().resolve(_.em).isOnWatch(),d,N=((d=_.mhS(location.pathname))==null?void 0:d.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(N)||M)&&this.gnomeContents&&_.Q("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);M&&this.exploreHubContents&&_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.iY().dispatch(_.YS({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.F.onPageChange=function(){var M=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Q("disable_chip_select_on_nav")||_.Eu(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.IQ.addJob(function(){M.pageLoadingFromNavigation=!1;_.Q("disable_chip_select_on_nav")&&_.Q("h5_reset_cache_and_filter_before_update_masthead")&&M.resetCacheAndIsFilteredFeed();M.setMasthead();M.maybeSetBigYoodle();M.forceRefreshAndLog();M.terminateVideoPreview();_.Q("web_hide_gnome_until_user_navigates_back_to_home")&&
(M.dataChanged(),_.bM(M,function(){if(M.showGnomeContents){var d=Array.from(_.K(M.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(R){R=_.K(R).querySelector("ytd-rich-shelf-renderer");return!!R&&R.isGnomeShelf()});
if(d){d=d.offsetTop-M.contentsElement.offsetTop;var N=_.h().resolve(_.em).getCurrentPage();N&&N.getPageScrollingElement().scrollTo({top:d,behavior:"smooth"})}}}));
_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(M.dataChanged(),_.bM(M,function(){if(M.showExploreHubContents&&!_.Q("web_explore_hub_no_scroll")){var d=Array.from(_.K(M.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(R){return!!R.querySelector("ytd-talk-to-recs-flow-renderer")});
if(d){d=d.offsetTop-M.contentsElement.offsetTop;var N=_.h().resolve(_.em).getCurrentPage();N&&N.getPageScrollingElement().scrollTo({top:d,behavior:"smooth"})}}}))},8)):((_.Q("web_hide_gnome_until_user_navigates_back_to_home")||_.Q("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.F.dataChanged=function(){var M=this,d=_.ZR("web_rich_grid_row_margin",0);d>0&&_.UO(this.hostElement,{"--ytd-rich-grid-row-margin":d+"px"});_.Eu(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.bM(this,function(){M.updateRichItemGridPositions();M.contentsElement&&_.UO(M.hostElement,{"--ytd-rich-grid-content-offset-top":M.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.F.initResizeObserver=function(){var M=this;if(window.ResizeObserver){var d;(d=this.resizeObserver)==null||d.disconnect();var N=!1;this.resizeObserver=new ResizeObserver(function(){if(N){var R;(R=M.resizeObserver)==null||R.disconnect();var X;(X=M.throttledOnResize)==null||X.fire();requestAnimationFrame(function(){var l;(l=M.throttledOnResize)==null||l.fire();M.initResizeObserver()})}else if(N=!0,M.resizeOnObserverInit){var A;
(A=M.throttledOnResize)==null||A.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.F.contentLengthChanged=function(){if(_.Q("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Eu(this.hostElement,"ytd-rich-item-index-update-action")};
_.F.updateElementsPerRow=function(){_.Eu(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.YS({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.YS({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.F.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.F.onRichShelfRendererCollapse=function(M){if(this.shownItems){var d=M.detail;M=this.shownItems.findIndex(function(R){var X,A;return((A=_.q(R==null?void 0:(X=R.richSectionRenderer)==null?void 0:X.content,_.sem))==null?void 0:A.trackingParams)===d});
var N=M+1;M<0||N>=this.contentsElement.children.length||!this.shownItems[N].richItemRenderer||this.contentsElement.children[N].scrollIntoView({behavior:"smooth",block:"start"})}};
_.F.onSoftReloadPage=function(){this.scrollUpToTop()};
_.F.handleRerenderDownloadsData=function(){_.Q("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.F.handlePlaylistRemoveVideosAction=function(M){var d;if(((d=_.q(M,_.UIV))==null?0:d.setVideoIds)&&this.data&&this.data.contents){M=_.q(M,_.UIV).setVideoIds;for(d=this.data.contents.length-1;d>=0;){var N=_.q(this.data.contents[d],_.OP);(N=N&&_.q(N.content,_.r9))&&N.setVideoId&&M.includes(N.setVideoId)&&this.splice("data.contents",d,1);d--}this.updateIndices()}};
_.F.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".richItemRenderer.index",_.ep(String(M+1)))};
_.F.hasTopRowInlinePlayableVideoWithEndorsement=function(M){var d;return!((d=M.slice(0,this.getItemsPerRow()))==null||!d.some(function(N){var R;N=_.q(N==null?void 0:(R=N.richItemRenderer)==null?void 0:R.content,_.bGI);var X;return(N==null?void 0:N.inlinePlaybackEndpoint)&&(N==null?void 0:(X=N.thumbnailOverlays)==null?void 0:X.some(function(A){return A.thumbnailOverlayEndorsementRenderer}))}))};
_.F.refreshGridLayoutNew=function(M,d,N,R){var X=R.postsPerRow;var A=R.slimItemsPerRow;var l=R.gameCardsPerRow;R=R.miniGameCardsPerRow;var k;if((k=this.data)==null||!k.contents||!this.containerWidth)return!1;var T;if((T=this.data.responsiveContainerConfiguration)==null?0:T.responsiveSize){var W=_.B76(this.data.responsiveContainerConfiguration,this.containerWidth),w;k=_.GH(Object.assign({},W,{standardUnitMinWidth:(w=this.data)==null?void 0:w.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&W.isCompactList)}else k=_.GH({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(W=this.data)==null?void 0:W.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=k.typographyBump;w=!1;if(M||this.elementsPerRow!==k.numItems||this.postsPerRow!==X||this.slimItemsPerRow!==A||this.gameCardsPerRow!==
l||this.miniGameCardsPerRow!==R||this.gutter!==k.gutter)w=this.elementsPerRow!==k.numItems,this.elementsPerRow=k.numItems,this.postsPerRow=X,this.slimItemsPerRow=A,this.gameCardsPerRow=l,this.miniGameCardsPerRow=R,this.gutter=k.gutter,this.itemWidth=k.itemWidth,this.reflowContent(d),_.UO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":k.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(N);this.ytdReduxBehavior.dispatch(_.YS({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:k.maxContainerWidth}));return w};
_.F.refreshGridLayout=function(M,d){var N,R=(N=this.hostElement)==null?void 0:N.clientWidth;this.containerWidth=this.adjustRichGridWidth(R,!0);var X;if((X=this.data)==null||!X.contents||!this.containerWidth)return M&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.Q("rg_pending_reflow_ks")&&(M=!0,this.pendingForceReflow=!1);N=this.getRichItemMinWidth(R);var A=this.isShortsPanel?146:194,l=this.getMiniGameCardMinWidth(),k=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
R=N=this.calcElementsPerRow(N,k);(X=N<=3&&this.miniModeAllowed())&&(N=this.calcElementsPerRow(240,4));var T=this.calcMaxSlimElementsPerRow(N,k,this.isDefaultGrid);k=this.calcElementsPerRow(A,T);var W=this.calcElementsPerRow(this.isCompactGrid?A:154,T);A=this.calcElementsPerRow(this.isCompactGrid?A:l,T);l=!1;if(this.sizing)return this.refreshGridLayoutNew(M,d,X,{postsPerRow:R,slimItemsPerRow:k,gameCardsPerRow:W,miniGameCardsPerRow:A});if(M||this.elementsPerRow!==N||this.postsPerRow!==R||this.slimItemsPerRow!==
k||this.gameCardsPerRow!==W||this.miniGameCardsPerRow!==A)l=this.elementsPerRow!==N,this.elementsPerRow=N,this.postsPerRow=R,this.slimItemsPerRow=k,this.gameCardsPerRow=W,this.miniGameCardsPerRow=A,this.reflowContent(d),this.updateElementsPerRow(),_.UO(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)&&_.UO(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(X);_.Eu(this.hostElement,"yt-rich-grid-layout-refreshed");return l};
_.F.getRichItemMinWidth=function(M){var d=_.ZR("rich_grid_min_item_width",310);if(!_.Q("kevlar_disable_min_width_override")){var N,R;d=(R=(N=this.data)==null?void 0:N.minItemWidth)!=null?R:d}return d+_.lfi(M)};
_.F.calcMaxSlimElementsPerRow=function(M,d,N){return(N===void 0?0:N)?M===1?2:M%2===0?_.Q("web_shorts_2_by_3_reduce_items_per_row")&&M>=4?M/2*3-1:M/2*3:_.Q("web_shorts_2_by_3_reduce_items_per_row")&&M>=3?M+1:M+2:d*2};
_.F.adjustRichGridWidth=function(M,d){var N=_.Q("disable_rich_grid_guide_compensation");if(!this.isWatch&&!N){N=_.h().resolve(_.CF(_.rh));var R=N==null?void 0:N.guideElement;if(!(!N||N.getData()||R!=null&&R.opened||N.getMiniGuideVisible()))if(N.canFitPersistentGuide(M)&&N.getGuideExpandsAutomatically()){var X,A,l=Number((X=window.getComputedStyle(this.hostElement))==null?void 0:(A=X.getPropertyValue("--app-drawer-width"))==null?void 0:A.replace("px",""));M-=l||0}else if(N.canFitMiniGuide(M)){var k;
X=Number((l=window.getComputedStyle(this.hostElement))==null?void 0:(k=l.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:k.replace("px",""));M-=X||0}}M>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(M-=d?32:48));return M};
_.F.calcElementsPerRow=function(M,d){var N=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),R=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((N+R)/(M+R))||1,d)};
_.F.reflowContent=function(M){var d=this;if(!this.isReflowing){this.isReflowing=!0;var N,R,X=!!((N=this.data)==null?0:(R=N.contents)==null?0:R.some(function(I){return _.q(I,_.R1)}));
N=this.getItemsPerRow();var A;R=(A=this.data)==null?void 0:A.reflowOptions;M&&(_.v1("rgr_s"),_.bM(this,function(){_.v1("rgr_nrf")}));
M={};(A=_.K(this.hostElement).querySelector("#contents"))&&(M={contentElement:A,rendererToTagNameMap:this.rendererToTagNameMap});A=(A=this.data.contents)?A.slice():[];var l=(_.Q("web_hide_gnome_behind_feed_filter_chip")||_.Q("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,k=_.Q("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,T=-1,W=-1;if(this.isHomePage&&k){for(k=0;k<A.length;k++){var w=void 0,p=void 0;_.q((w=A[k])==null?void 0:
(p=w.richSectionRenderer)==null?void 0:p.content,YJb)&&(W=k)}W>-1&&(this.exploreHubContents=A.splice(W,1))}if(this.isHomePage&&l){for(W=0;W<A.length;W++)p=w=void 0,(k=_.q((w=A[W])==null?void 0:(p=w.richSectionRenderer)==null?void 0:p.content,_.sem))&&l&&(p=w=void 0,k=_.q((w=k)==null?void 0:(p=w.contents)==null?void 0:p[0],_.OP),w=void 0,_.q((w=k)==null?void 0:w.content,_.o5V)&&(T=W));T>-1&&(this.gnomeContents=A.splice(T,1))}var m=zGP(A,N,X,R,this.getRichGridStyle(),M,this.insertedContent);X=function(){d.shownItems=
m;d.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(m),_.bM(this,X)):X()}};
_.F.getFirstRowItems=function(M){for(var d=[],N=0;N<M.length;N++){var R=void 0,X=void 0,A=void 0,l=void 0,k=void 0,T=void 0;if(((R=M[N])==null?void 0:(X=R.richItemRenderer)==null?void 0:X.rowIndex)===0||((A=M[N])==null?void 0:(l=A.richGroupRenderer)==null?void 0:l.rowIndex)===0||((k=M[N])==null?void 0:(T=k.richSectionRenderer)==null?void 0:T.rowIndex)===0)d.push(M[N]);else break}return d};
_.F.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.F.handleChipCloudChipSelectAction=function(M,d){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.Q("web_hide_gnome_behind_feed_filter_chip")&&(d?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.F.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.Q("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.F.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.Q("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.F.terminateVideoPreview=function(){_.Eu(this.hostElement,"yt-terminate-video-preview-action")};
_.F.updateRichItemGridPositions=function(){var M={gridData:{gridColumnCount:this.elementsPerRow}},d;if((d=this.data)==null?0:d.trackingParams)this.loggingRefactor?_.Nx().stateChanged(this.data.trackingParams,M):(d=_.Ou())&&_.nb(d,_.At(this.data.trackingParams),M);_.Eu(this.hostElement,"ytd-rich-item-index-update-action")};
_.F.miniModeAllowed=function(){return _.Q("disable_channels_mini_mode")?!1:this.isChannelPage};
_.F.getMiniGameCardMinWidth=function(){return 154};
_.F.updateMiniMode=function(M){this.miniMode=this.miniModeAllowed()&&M;this.ytdReduxBehavior.dispatch(_.YS({type:"SET_RICH_GRID_MINI_MODE",payload:M}))};
_.F.isCurrentPage=function(){return location.pathname===this.pagePath};
_.F.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var M=_.h().resolve(_.em).getCurrentPage();M&&M.setScrollTop(0)}};
_.F.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.F.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.F.maybeSetBigYoodle=function(){var M,d=(M=this.data)==null?void 0:M.bigYoodle;this.bigYoodleData!==d&&(this.bigYoodleData=d)};
_.F.setMasthead=function(){var M;((M=this.data)==null?0:M.masthead)?this.mastheadData=this.data.masthead:_.Q("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.F.getRichGridStyle=function(){var M,d;return(d=(M=this.data)==null?void 0:M.style)!=null?d:"RICH_GRID_STYLE_UNKNOWN"};
_.F.onIsShortsGridChange=function(){var M=this.ytdReduxBehavior,d=M.dispatch,N=this.getRichGridStyle();d.call(M,_.YS({type:"SET_RICH_GRID_STYLE",payload:N}))};
_.Hm.Object.defineProperties(TC.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var M=_.h().resolve(_.em).getCurrentPage(),d,N,R;return(((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_audio_pivot"||_.Q("web_enable_channel_pivot_panel")&&((N=this.data)==null?void 0:N.targetId)==="browse-feedFEsfv_channel_pivot"||_.Q("web_enable_effect_pivot_panel")&&((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_effect_pivot")&&(M==null?void 0:M.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Q("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.h().resolve(_.em).getCurrentPage())==null?void 0:M.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.h().resolve(_.em).getCurrentPage())==null?void 0:M.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var M;return this.hideChipsBar||(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.Q("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"&&!_.Q("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:M.enableContentSpecificAspectRatio)||((d=this.data)==null?0:(N=d.responsiveContainerConfiguration)==null?0:N.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.ZR("web_continuation_handler_margin",0):0}}});
TC.prototype.onIsShortsGridChange=TC.prototype.onIsShortsGridChange;TC.prototype.onReloadContinuationFinish=TC.prototype.onReloadContinuationFinish;TC.prototype.reflowContent=TC.prototype.reflowContent;TC.prototype.handleRerenderDownloadsData=TC.prototype.handleRerenderDownloadsData;TC.prototype.onRichShelfRendererCollapse=TC.prototype.onRichShelfRendererCollapse;TC.prototype.onRequestElementsPerRow=TC.prototype.onRequestElementsPerRow;TC.prototype.contentLengthChanged=TC.prototype.contentLengthChanged;
TC.prototype.dataChanged=TC.prototype.dataChanged;TC.prototype.onSizingChange=TC.prototype.onSizingChange;TC.prototype.onUseCompactListChange=TC.prototype.onUseCompactListChange;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],TC.prototype,"ironResizableBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],TC.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],TC.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],TC.prototype,"componentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],TC.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],TC.prototype,"miniMode",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],TC.prototype,"shownItems",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],TC.prototype,"isReflowing",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],TC.prototype,"isFilteredFeed",void 0);_.G([_.H({selector:_.P8S}),_.a("design:type",Boolean)],TC.prototype,"guideIsExpanded",void 0);
_.G([_.H({selectorArgs:["entitySelectorType"],selector:function(M,d){if(_.Q("kevlar_modern_downloads_page")&&d&&d!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(d){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var N=M.entities;d=_.mZ(N);var R=_.hT(N),X=_.a1r(M),A=_.GQ6(M);M=_.UsA(M);var l=_.hKZ(N),k=_.D4(d);N=_.QQ(N);return _.RoA(d,R,l,X,A,k,N,M);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return d=_.mZ(M.entities),_.Fb6(d);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return d=
_.W6Z(M.entities),_.APi(d);default:_.vh(new _.WJ("Error: entitySelectorType defined but not matched in selector.",M,d))}}}),
_.a("design:type",Object)],TC.prototype,"entityDrivenRichGridData",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"resizeOnObserverInit",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"bigYoodleData",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"mastheadData",void 0);_.G([_.H(),_.a("design:type",Boolean)],TC.prototype,"isInlinePreviewDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"disableStickyFilterBar",void 0);
_.G([_.H(),_.a("design:type",Object)],TC.prototype,"transparentBackgroundChipsBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TC.prototype,"hideChipsBar",void 0);_.G([_.H(),_.a("design:type",Object)],TC.prototype,"isWatchDefaultLayout",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TC.prototype,"continuationShowButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TC.prototype,"rowReducedHorizontalMargin",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TC.prototype,"useCompactList",void 0);_.G([_.H({selector:function(M){return _.hT(M.entities).length>0}}),
_.a("design:type",Object)],TC.prototype,"manualDownloadsPresent",void 0);_.G([_.H({selector:function(M){return _.mZ(M.entities).length>0}}),
_.a("design:type",Object)],TC.prototype,"smartDownloadsPresent",void 0);_.G([_.H({selector:_.GQ6}),_.a("design:type",Object)],TC.prototype,"shouldRenderDownloadsBanner",void 0);_.G([_.H({selector:_.a1r}),_.a("design:type",Object)],TC.prototype,"hasOptedIntoSmartDownloads",void 0);_.G([_.xB("useCompactList"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"onUseCompactListChange",null);
_.G([_.xB("sizing","typographyBump"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"onSizingChange",null);_.G([_.H({selector:_.J6Z}),_.a("design:type",Number)],TC.prototype,"miniplayerPlaybackState",void 0);_.G([_.H({selector:_.vD}),_.a("design:type",Boolean)],TC.prototype,"miniplayerIsActive",void 0);
_.G([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.a("design:type",Boolean)],TC.prototype,"isInlinePreviewEnabled",void 0);_.G([_.H({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.a("design:type",String)],TC.prototype,"sizing",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],TC.prototype,"elementsPerRow",void 0);
_.G([_.H(),_.a("design:type",Object)],TC.prototype,"typographyBump",void 0);_.G([_.H(),_.a("design:type",Number)],TC.prototype,"itemWidth",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],TC.prototype,"headerElement",void 0);_.G([_.Z3("#contents"),_.a("design:type",HTMLElement)],TC.prototype,"contentsElement",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"dataChanged",null);
_.G([_.NS("data.contents.length"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"contentLengthChanged",null);_.G([_.C3("yt-request-elements-per-row"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"onRequestElementsPerRow",null);
_.G([_.C3("yt-rich-shelf-renderer-collapse"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],TC.prototype,"onRichShelfRendererCollapse",null);_.G([_.NS("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"handleRerenderDownloadsData",null);
_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],TC.prototype,"entitySelectorType",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isSub",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isWatch",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isShortsPanel",null);_.G([_.H({reflectToAttribute:!0}),_.z("isWatch"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"reducedTopMargin",null);_.G([_.H({reflectToAttribute:!0}),_.z("data","isWatch","isWatchDefaultLayout"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"noTopMargin",null);
_.G([_.H({reflectToAttribute:!0}),_.z("isInlinePreviewEnabled","shownItems"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"topRowEndorsement",null);_.G([_.z("data.header"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"hideHeader",null);_.G([_.C3("yt-rich-grid-reflow"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],TC.prototype,"reflowContent",null);
_.G([_.C3("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"onReloadContinuationFinish",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isSlimGrid",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isShortsGrid",null);
_.G([_.z("data","isSlimGrid","isShortsGrid"),_.H(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"noRichItemGutterMargins",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isShortsGridSlim",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isCompactGrid",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"isDefaultGrid",null);_.G([_.z("data.targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"hideChipsBarOnHome",null);_.G([_.z("data.targetId"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"hideChipsBarOnWatch",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TC.prototype,"onIsShortsGridChange",null);_.G([_.z("data.enableContentSpecificAspectRatio"),_.H(),_.a("design:type",Boolean),_.a("design:paramtypes",[])],TC.prototype,"force16By9ThumbnailAspectRatio",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],TC.prototype,"continuationTriggerOffset",null);TC=_.G([_.f({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],TC);
_.L(TC,"ytd-rich-grid-renderer",function(){if(Tvr!==void 0)return Tvr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Tvr=M},{mode:2});var jBd=_.SG(function(M){var d=M.thumbsUp;M=M.thumbsDown;var N=_.V(_.d0(!1,void 0,"OxPsH")),R=N.next().value,X=N.next().value;N=_.V(_.d0(!1,void 0,"V5vWne"));var A=N.next().value,l=N.next().value;return _.g("div",{class:"ytwThumbsUpDownThumbs"},_.g(_.I0,{data:d,onToggle:function(k){X(k);A()&&l(!1)},
buttonShapeOverrides:function(){return{toggled:R()}}}),_.g(_.I0,{data:M,
onToggle:function(k){l(k);R()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:A()}}}))},"ei");
jBd.idomCompat=!0;var PpD=_.SG(function(M){var d=function(){return M.data().pendingStateEntityKey||""},N=_.FT(_.aXC,d),R=function(){var X;
if(!(X=M.disabled())){var A;X=!((A=N())==null||!A.isPendingResponse)}return X};
return _.g("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.g(_.TN,{each:function(){return M.data().chipData||[]},
keyBy:"REFERENCE"},function(X){return _.g(sBr,{data:X,disabled:R,pendingStateKey:d,onError:M.onError})}))},"fi"),sBr=_.SG(function(M){var d=_.e5(),N=_.V(_.d0(!0,void 0,"HBREAe")),R=N.next().value,X=N.next().value,A=function(){return M.data().text.content},l=_.dT(function(k){var T,W,w,p,m,I,O,y;
return _.B(function(c){switch(c.nextAddress){case 1:k.stopPropagation();if(M.disabled())return c.return();W=String(Math.floor(((T=_.ZM())==null?void 0:T.getCurrentTime())||0)*1E3);w="youchat-"+Date.now();p=function(){_.Qu(M.data().onClick||{});var e={continuationCommand:{token:M.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},t={inputComposerFormData:{clientMessageId:w,playerOffsetMs:W}};return new Promise(function(C,U){_.Qu(e,{form:{formData:t},commandController:{onSuccess:function(Fi,
Y){C(Y)},
onServerError:function(Fi,Y){U(Y.error)}}})})};
m=_.UDe(M.pendingStateKey());m(!0);_.KOP("#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");X(!1);_.Mv(c,2);return _.D(c,p(),4);case 4:_.cJ(c,3);break;case 2:I=_.Fg(c),(y=(O=M).onError)==null||y.call(O,I);case 3:m(!1),_.Vy(c)}})});
return _.g(_.kV,{cond:R,then:function(){return _.g("div",{class:"ytwYouChatChipsDataChipWrapper"},_.g("button",{el:d,class:"ytwYouChatChipsDataChip","data-disabled":M.disabled,"on:click":l,tabindex:0},A))}})},"gi");var orq=_.SG(function(M){var d=M.data;return _.g("yt-conversation-resource-view-model",{class:_.xj("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.g(_.kV,{cond:function(){var N;return(N=d().conversationResourceData)==null?void 0:N.learningGuideData},
then:function(N){return _.g(_.TN,{each:function(){return N().sectionData||[]}},function(R){return _.g("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.g(_.lG,{text:function(){return R.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.g("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.g(_.lG,{text:function(){return R.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.g(_.lG,{text:function(){return R.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"hi");
orq.idomCompat=!0;var r0e=_.SG(function(M){var d=function(){var e;return(e=M.data().text)==null?void 0:e.content},N=function(){var e,t;
return(e=M.data().webData)==null?void 0:(t=e.textResult)==null?void 0:t.content},R=_.h().resolve(_.rk),X=_.EL(),A=function(){return M.data().chatResponseStyle},l=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:M.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},k=function(){var e;
return M.data().webData||((e=M.data().text)==null?void 0:e.content)||M.data().videoResultsData||M.data().conversationResourceViewModel},T=function(){var e;
return(e=M.data().videoResultsData)==null?void 0:e.videoShelf},W=function(){var e;
return _.q(((e=M.data().videoResultsData)==null?void 0:e.videoShelf)||{},MU$)},w=function(){var e;
return(e=M.data().webData)==null?void 0:e.sourcesShelf},p=function(){var e;
return _.q(((e=M.data().webData)==null?void 0:e.sourcesShelf)||{},MU$)},m=function(){return _.q(M.data().conversationResourceViewModel||{},NvD)},I=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:M.data().thumbsDownViewModel&&M.data().thumbsUpViewModel},O=function(){return _.q(M.data().thumbsUpViewModel,_.qH)},y=function(){return _.q(M.data().thumbsDownViewModel,_.qH)};
_.QD(function(){requestAnimationFrame(function(){var e;(e=M.shouldAnimateIcon)!=null&&e.call(M)&&ukY(X.lottieEl)})});
var c={};return _.g("you-chat-item-view-model",{class:_.xj("ytwYouChatItemViewModelYouChatItemViewModel",(c.ytwYouChatItemViewModelHostNoPadding=function(){return!1},c)),
"data-target-id":function(){return M.data().id||""}},_.g(_.kV,{cond:k,
then:function(){var e={};return _.g("div",{"aria-hidden":"true"},_.g(_.Yj,{className:_.xj("ytwYouChatItemViewModelIcon",(e.ytwYouChatItemViewModelRtl=R==="rtl",e.ytwYouChatItemViewModelHidden=function(){return!(M.data().hideIcon||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},e)),
animationName:"YOUCHAT_ICON",data:l,animationRef:X}))}}),_.g(_.kV,{cond:k,
then:function(){var e={};return _.g("div",{class:_.xj("ytwYouChatItemViewModelHost",(e.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},e)),
role:"alert"},_.g(_.kV,{cond:d,then:function(t){return _.g(_.hf,{text:t})}}),_.g(_.kV,{cond:N,
then:function(t){return _.g(_.hf,{text:t})}}),_.g(_.kV,{cond:T,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.pm,{data:W,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.g(_.kV,{cond:w,
then:function(){return _.g("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.g(_.pm,{data:p,hasPeek:!0,disableArrows:!1}))}}),_.g(_.kV,{cond:m,
then:function(){return _.g(orq,{data:m})}}),_.g(_.kV,{cond:I,
then:function(){return _.g(jBd,{thumbsUp:O,thumbsDown:y})}}))}}),_.g(_.kV,{cond:function(){return M.data().chipsData},
then:function(e){return _.g(PpD,{data:e,disabled:M.pending,onError:M.onError})}}))},"ii");
r0e.idomCompat={callbacks:{onError:!0,onSend:!0}};var KeC=_.SG(function(M){var d=function(){return M.data().choiceSelectedText};
return _.g("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.g(_.kV,{cond:d,then:function(){return _.g("div",{class:"ytYouChatUserTurnChoiceSelected"},_.g(_.lG,{text:d}))}}),_.g("div",{class:"ytYouChatUserTurnUserMessage"},function(){return M.data().text}))},"ji");var y0Y=_.SG(function(M){var d=_.V((0,_.mjg)(M.data)).next().value;return _.g("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return M.data().targetId||""}},_.g(_.ho,{data:function(){return d().contents}},{accordionViewModel:_.bwI,
chatLoadingViewModel:_.EYD,chatUserTurnViewModel:KeC,learningJourneyLoaderViewModel:_.JBg,lockupViewModel:_.GS,youChatItemViewModel:function(N){return _.g(r0e,{data:N.data,pending:!1})}}))},"ki");_.eC(_.SG(function(M){var d=_.V((0,_.mjg)(M.data)).next().value;return _.g("yt-section-list-renderer",{class:_.xj("ytSectionListRendererHost",M.className),"data-target-id":function(){return M.data().targetId||""}},_.g(_.ho,{data:function(){return d().contents}},{itemSectionRenderer:y0Y}))},"li"),"yt-section-list-renderer",{props:{data:_.cA,
className:_.bI}});var J0C;var c0b;var Dw=function(){return _.n.apply(this,arguments)||this};
_.v(Dw,_.n);_.G([_.H(),_.a("design:type",Object)],Dw.prototype,"data",void 0);Dw=_.G([_.w4({is:"yt-alert-renderer",disableElementRegistration:!0})],Dw);
_.L(Dw,"yt-alert-renderer",function(){if(c0b===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;J0C===void 0&&(J0C=document.createElement("template"));var R=J0C;N.call(d,R.content.cloneNode(!0),M.content.firstChild);c0b=M}M=c0b;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.KnJ=function(M,d){var N,R;d=d===void 0?{}:d;var X,A,l,k,T,W,w,p,m,I,O,y;return _.B(function(c){switch(c.nextAddress){case 1:X=d;A=X.shouldWrap===void 0?!0:X.shouldWrap;l=X.skipTransitionTimeoutMs===void 0?300:X.skipTransitionTimeoutMs;k=X.beforeTransition;T=X.afterTransition;if(!A||!document.startViewTransition||document.visibilityState==="hidden")return c.return(M());N=window.innerWidth;R=window.innerHeight;W=!1;(w=k)==null||w();_.Mv(c,2);p=document.startViewTransition(M);m=setTimeout(function(){p.skipTransition();
W=!0},l);
return _.D(c,p.ready,4);case 4:return clearTimeout(m),_.D(c,p.finished,5);case 5:clearTimeout(m);(I=T)==null||I();_.cJ(c,0);break;case 2:O=_.Fg(c),(y=T)==null||y(),O&&!W&&document.visibilityState!=="hidden"&&N===window.innerWidth&&R===window.innerHeight&&_.qZ(O),_.Vy(c)}})};
_.WK=function(M){return M.watch.isTheaterMode};
_.ySY=function(M){var d=_.Vf("DIV");M&&(d.className=M);d.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";M=_.Vf("DIV");_.tit(M,"200px","200px");d.appendChild(M);document.body.appendChild(d);M=d.offsetWidth-d.clientWidth;_.l_(d);return M};
_.ww=function(){for(var M=Array(36),d=0,N,R=0;R<36;R++)R==8||R==13||R==18||R==23?M[R]="-":R==14?M[R]="4":(d<=2&&(d=33554432+Math.random()*16777216|0),N=d&15,d>>=4,M[R]=_.LdL[R==19?N&3|8:N]);return M.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 JSq=_.a1(['<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>']),
cSe=_.KNg(JSq);cSe.setAttribute("style","display: none;");document.head.appendChild(cSe.content);_.pl=_.sJi(_.ySY);var S_P;var znJ;var mO=function(){var M=_.n.apply(this,arguments)||this;M.icon=null;return M};
_.v(mO,_.n);mO.prototype.dismiss=function(){_.YP(this.hostElement,"yt-live-chat-error-message-dismiss")};
mO.prototype.computeIcon=function(M){return M&&M.iconType?"yt-icons:"+M.iconType.toLowerCase():"yt-icons:close"};
_.G([_.H(),_.a("design:type",Object)],mO.prototype,"data",void 0);_.G([_.H({computed:"computeIcon(data.icon)"}),_.a("design:type",Object)],mO.prototype,"icon",void 0);mO=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],mO);
_.L(mO,"yt-live-chat-error-message-renderer",function(){if(znJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;S_P===void 0&&(S_P=document.createElement("template"));var R=S_P;N.call(d,R.content.cloneNode(!0),M.content.firstChild);znJ=M}M=znJ;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var n6Y,ivD,f_r,LUq,q5,Cib,xzq,Y2G,ZvY,E6d,O4,M0D,d6q,ja,N7G,RoG,XOb,Fbb,APe,V0i,lUq,$6Y,B7b,kFT,T7b,D6r,guC,Wb4,wOP,pO$,m6T,hob,QMi,s4,qGi,IUT,vu4,sMe,Pwr,oue,rPY,KbT,yP9,OTb,jMY,cPb,SGD,zoi,bTT,eoD,JP4,iTr;n6Y=function(M,d){return _.Rz(M.entities,"timedMarkersListSyncEntity",d)};
ivD=function(M,d){return _.Rz(M.entities,"liveReactionsDataEntity",d)};
f_r=function(M,d){M=_.Rz(M.entities,"booleanEntity",d);return!(!M||!M.value)};
LUq=function(M,d){var N=_.Ou();N&&M&&_.c1(N,_.At(M),d)};
_.th4=function(){_.Q("web_watch_log_theater_mode")&&_.orZ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.GOb=function(M,d,N){if(!M.includes("START_TIME_PLACEHOLDER")||!M.includes("END_TIME_PLACEHOLDER"))return M;var R=new Date(0),X=new Date(0);R.setUTCMilliseconds(d);X.setUTCMilliseconds(N);return M.replace("START_TIME_PLACEHOLDER",_.JT(R,7)).replace("END_TIME_PLACEHOLDER",_.JT(X,7))};
q5=function(M){return M.watch.isWatchActive};
_.IF=function(M){return M!=null&&M.watch?M.watch.isWatchFullscreen:!1};
_.a_9=function(M){return M.watch.watchWindowSize};
_.Uzr=function(M){return _.WK(M)||_.IF(M)||_.c06(M)};
_.uAJ=function(M){return!_.Uzr(M)};
_.v9=function(M){return M.watch.watchScrollTop};
Cib=function(M){return M.watch.isLiveChatCollapsed};
xzq=function(M){return M.watch.openEngagementPanels};
Y2G=function(M,d){return _.Rz(M.entities,"booleanEntity",d)};
ZvY=function(){return function(M){_.yE(_.la("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:M}))}};
E6d=function(M){switch(M){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
O4=function(M,d,N){var R=_.ht(N);M&&d&&R&&M.getPlayerPromise().then(function(X){_.LBr(R)&&_.Qc();(new _.Vo(X)).executeCommand(R,d);_.Q("continue_playback_on_desktop_companion_click")||X.pauseVideo()})};
M0D=function(M){var d=_.nO(),N;if(N=_.cy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;N=(R=N())==null?void 0:R.layoutId}else N=null;O4(d,N,M)};
d6q=function(M){var d=_.nO(),N;if(N=_.cy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;N=(R=N())==null?void 0:R.layoutId}else N=null;O4(d,N,M)};
ja=function(M,d){var N=M<0?"-":"";M=Math.abs(M);var R=Math.floor(M/3600),X=Math.floor(M)%3600,A=Math.floor(X/60);X=Math.floor(X)%60;var l="";(d===void 0?0:d)&&(l="."+Math.round((M-Math.floor(M))*10));return R>0?N+R+":"+(A<10?"0"+A:""+A)+":"+(X<10?"0"+X:""+X)+l:N+A+":"+(X<10?"0"+X:""+X)+l};
N7G=function(M){var d=M.match(/[^0-9:\.]/g);if(d&&d.length>0)return null;M=M.split(":");if(M.length===0||M.length>3)return null;d=1;for(var N=0;M.length>0;){var R=M.pop();if(R===void 0)break;var X=Number(R);if(R===""||isNaN(X))return null;N+=X*d;d*=60}return N};
RoG=function(M,d,N,R){M=Math.max(N,M);d=Math.min(d,R-N);M+d>R?(N=R,M=N-d):N=M+d;return{start:M,end:N}};
XOb=function(M,d,N,R,X,A){M<N?M=N:M+X>R&&(M=R-X);d>R&&(d=R);d=Math.min(M+A,Math.max(M+X,d));return{start:M,end:d}};
Fbb=function(M,d,N,R,X,A){d>R?d=R:d-X<N&&(d=N+X);M<N&&(M=N);M=Math.min(d-X,Math.max(d-A,M));return{start:M,end:d}};
APe=function(M){return _.Q("web_transcript_cue_id_killswitch")?String(M):"ytd-transcript-renderer_"+M};
V0i=function(M){return _.Q("web_transcript_cue_id_killswitch")?!0:M.startsWith("ytd-transcript-renderer")};
lUq=function(M){var d=_.nO(),N;if(N=_.cy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;N=(R=N())==null?void 0:R.layoutId}else N=null;O4(d,N,M)};
$6Y=function(M){M.style.height="auto";M.style.height=Math.min(M.scrollHeight||20,80)+"px"};
B7b=function(M,d){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:d}}],insertByPositionInSection:{sectionTargetId:M,position:"INSERTION_POSITION_LAST"}}}]}}}};
kFT=function(M){var d=_.nO(),N;N=(N=_.cy("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.layoutId:null;O4(d,N,M)};
T7b=function(M){var d=_.nO(),N;N=(N=_.cy("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.layoutId:null;O4(d,N,M)};
D6r=function(M,d){d=d===void 0?!1:d;if(M.simpleText)M=[{text:M.simpleText}];else{var N;M=((N=M.runs)!=null?N:[]).map(function(R){return Object.assign({},R)})}if(d)for(d=_.V(M),N=d.next();!N.done;N=d.next())N.value.bold=!0;
return M};
guC=function(M){var d=M.startEndTimeTemplate,N=M.startTimeUtcMillis;M=M.endTimeUtcMillis;if(d&&N&&M)return _.ep(_.GOb(_.HD(d),Number(N),Number(M)))};
Wb4=function(M,d){var N,R,X=M==null?void 0:(N=M.viewCount)==null?void 0:(R=N.videoViewCountRenderer)==null?void 0:R.shortViewCount;if(!d&&X)return X;var A,l;return M==null?void 0:(A=M.viewCount)==null?void 0:(l=A.videoViewCountRenderer)==null?void 0:l.viewCount};
wOP=function(M,d){var N=M==null?void 0:M.relativeDateText;return!d&&N?[N,!0]:[M==null?void 0:M.dateText,!1]};
pO$=function(M,d,N,R,X){R=R===void 0?!0:R;X=X===void 0?"":X;var A=Wb4(M,d),l=_.V(wOP(M,d)),k=l.next().value;l=l.next().value;d=d?M==null?void 0:M.sponsorsOnlyFirstTimeLongText:M==null?void 0:M.sponsorsOnlyFirstTimeShortText;var T=[];N&&A&&T.push(A);!N&&l||!k||T.push(k);M=[].concat(_.wu(T),[d,M==null?void 0:M.stationName,M==null?void 0:M.rating,M?guC(M):void 0,M==null?void 0:M.upNextProgramText,M==null?void 0:M.superTitleLink]).filter(function(W){return!!W});
N={runs:[]};for(A=0;A<M.length;A++)N.runs.push.apply(N.runs,_.wu(D6r(M[A],R))),A<M.length-1&&N.runs.push({text:" "+X+" ",bold:R});return N};
m6T=function(M){if(M)return{runs:[{text:M,bold:!0}]}};
hob=function(M){var d,N,R,X;if(M=M==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.results)==null?void 0:(X=R.results)==null?void 0:X.contents){var A,l;return(l=(A=M.find(function(k){return!!k.videoPrimaryInfoRenderer}))==null?void 0:A.videoPrimaryInfoRenderer)==null?void 0:l.updatedMetadataEndpoint}};
QMi=function(M,d){var N;return(N=M.sourceConfigs)==null?void 0:N.find(function(R){return R.videoId===d})};
s4=function(M){return M==="End of video"||M==="End of playlist"};
qGi=function(M){var d,N,R,X;return(d=M.getWatchNextResponse())==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.playlist)==null?void 0:X.playlist};
IUT=function(M){var d,N,R,X,A,l;return(d=qGi(M))==null?void 0:(N=d.playlistButtons)==null?void 0:(R=N.menuRenderer)==null?void 0:(X=R.topLevelButtons)==null?void 0:(A=X[0])==null?void 0:(l=A.playlistLoopButtonRenderer)==null?void 0:l.playlistLoopStateEntityKey};
vu4=function(M){var d=_.h().resolve(_.oL),N;return(d=(N=_.q(d.getAutoplayEndpoint(),_.nL))==null?void 0:N.playlistId)&&d===M};
sMe=function(M,d,N,R,X){function A(){_.IQ.cancelJob(P9);var l=OTb(d,N/M.getPlaybackRate()),k=l.hours,T=l.minutes;l=(l.seconds*1E3||6E4)/M.getPlaybackRate();M.setVideoTimeLeft(jMY(k,T));R&&M.getPlayerState()!==0&&M.setSleepTimerTimeLeft(jMY(k,T,!0));(k>0||T>0)&&!X&&(P9=_.kM(_.IQ,A,l))}
_.IQ.cancelJob(P9);P9=_.kM(_.IQ,A)};
Pwr=function(M,d,N){function R(){_.IQ.cancelJob(oF);var X=OTb(d,N),A=X.hours;X=X.minutes;var l=6E4/M.getPlaybackRate();if(A>0||X>0)M.setSleepTimerTimeLeft(jMY(A,X,!0)),oF=_.kM(_.IQ,R,l)}
_.IQ.cancelJob(oF);oF=_.kM(_.IQ,R)};
oue=function(M,d){var N=M.getVolume()/(d/500),R=function(X){_.IQ.cancelJob(ro);var A=Math.floor(X-N);M.setVolume(A,!1);A>0&&(ro=_.kM(_.IQ,function(){R(A)},500))};
_.IQ.cancelJob(ro);ro=_.kM(_.IQ,function(){R(M.getVolume())})};
rPY=function(M,d){_.IQ.cancelJob(ro);d&&M.syncVolume()};
KbT=function(){var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.le("SLEEP_TIMER_DISRUPTED")}}}}};_.h().resolve(_.xV).resolveCommand(M)};
yP9=function(M){return(M.getDuration()-M.getProgressState().current)*1E3};
OTb=function(M,d){M=M+d-(0,_.Gs)();if(M<=0)return{hours:0,minutes:0,seconds:0};var N=new JP4(0,0,0,0,0,0,M);M=N.getHours();d=N.getMinutes();N=N.getSeconds();N!==0&&d++;d!==0&&d%60===0&&(M++,d=0);return{hours:M,minutes:d,seconds:N}};
jMY=function(M,d,N){return M>0&&d>0?N?_.le("TIME_LEFT_HOURS_MINUTES",{hours:M.toString(),minutes:d.toString()}):_.le("TIME_HOURS_MINUTES",{hours:M.toString(),minutes:d.toString()}):M>0?N?_.$S("TIME_LEFT_HOURS",M):_.$S("TIME_HOURS",M):N?_.le("TIME_LEFT_MINUTES",{minutes:d.toString()}):_.le("TIME_MINUTES",{minutes:d.toString()})};
cPb=function(M,d){if(M.timelyActions)return M.timelyActions.find(function(N){var R;return((R=_.q(N,K1))==null?void 0:R.cueRangeId)===d})};
SGD=function(M){var d=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.FX(M);M.keyMap_.forEach(function(N,R){_.i2(d,R)||this.remove(R)},M)};
zoi=function(M,d){M.reloadContinuationItemsCommandMatcher=d};
_.yF=function(M,d){M.insertBefore(d,M.childNodes[0]||null)};
bTT=function(M){if(M>=48&&M<=57||M>=96&&M<=106||M>=65&&M<=90||_.B_&&M==0)return!0;switch(M){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.$h;default:return!1}};
eoD=function(M){if(M.altKey&&!M.ctrlKey||M.metaKey||M.keyCode>=112&&M.keyCode<=123)return!1;if(bTT(M.keyCode))return!0;switch(M.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.$h;default:return M.keyCode<166||M.keyCode>183}};
JP4=function(M,d,N,R,X,A,l){this.date=typeof M==="number"?new Date(M,d||0,N||1,R||0,X||0,A||0,l||0):new Date(M&&M.getTime?M.getTime():_.Nn())};
_.RX(JP4,_.hV);_.F=JP4.prototype;_.F.getHours=function(){return this.date.getHours()};
_.F.getMinutes=function(){return this.date.getMinutes()};
_.F.getSeconds=function(){return this.date.getSeconds()};
_.F.getMilliseconds=function(){return this.date.getMilliseconds()};
_.F.getUTCDay=function(){return this.date.getUTCDay()};
_.F.getUTCHours=function(){return this.date.getUTCHours()};
_.F.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.F.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.F.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.F.setHours=function(M){this.date.setHours(M)};
_.F.setMinutes=function(M){this.date.setMinutes(M)};
_.F.setSeconds=function(M){this.date.setSeconds(M)};
_.F.setMilliseconds=function(M){this.date.setMilliseconds(M)};
_.F.setUTCHours=function(M){this.date.setUTCHours(M)};
_.F.setUTCMinutes=function(M){this.date.setUTCMinutes(M)};
_.F.setUTCSeconds=function(M){this.date.setUTCSeconds(M)};
_.F.setUTCMilliseconds=function(M){this.date.setUTCMilliseconds(M)};
_.F.add=function(M){_.hV.prototype.add.call(this,M);M.hours&&this.setUTCHours(this.date.getUTCHours()+M.hours);M.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+M.minutes);M.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+M.seconds)};
_.F.JSC$9123_toIsoString=function(M){var d=_.hV.prototype.JSC$9123_toIsoString.call(this,M);return M?d+"T"+_.dl(this.getHours(),2)+":"+_.dl(this.getMinutes(),2)+":"+_.dl(this.getSeconds(),2):d+"T"+_.dl(this.getHours(),2)+_.dl(this.getMinutes(),2)+_.dl(this.getSeconds(),2)};
_.F.equals=function(M){return this.getTime()==M.getTime()};
_.F.toString=function(){return this.JSC$9123_toIsoString()};
_.F.clone=function(){var M=new JP4(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.HTP=function(M){return _.YS({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:M}})};
_.nuD=function(M){return _.YS({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:M}})};
iTr=new _.x("imageTileRenderer");var fUb=new _.x("adGridCardCollectionViewModel");var LbT=new _.x("carouselTitleViewModel");var t0G=new _.x("ctaCarouselItemViewModel");var GFC=new _.x("textFieldViewModel");_.aU4=new _.x("engagementPanelHeaderShowNavigationButtonCommand");var U6C=new _.x("hideEngagementPanelScrimAction");var u$q=new _.x("setActivePanelItemAction");var Cwi=new _.x("showEngagementPanelScrimAction");var x6T=new _.x("updateEngagementPanelAction");var YGe=new _.x("updateSearchInVideoResultsAction");var ZTi=new _.x("transcriptCueGroupRenderer");var EuJ=new _.x("transcriptCueRenderer");var McC=new _.x("transcriptFooterRenderer");var d8d=new _.x("engagementPanelAdSubtitleRenderer");var Nnd=new _.x("videoDescriptionFantasySectionViewModel");var RRq=new _.x("deleteClipEngagementPanelCommand");var Xde=new _.x("loopCommand");var F_i=new _.x("changeCreatorEndscreenVisibilityCommand");var AR4=new _.x("liveChatCallForQuestionsRenderer");var VcD=new _.x("updateTimedMarkersSyncObserverCommand");var K1=new _.x("timelyActionViewModel");var lO4=new _.x("timelyActionsOverlayViewModel");var $8r=new _.x("repeatChapterCommand");var Bne=new _.x("watchPlayerOverflowMenuCommand");var klb=new _.x("compositeVideoOverlayRenderer");var Tn$=new _.x("sortFilterSubMenuRenderer");var D8e=new _.x("switchListItemViewModel");var gNq=new _.x("inputComposerViewModel");var W_C=new _.x("transcriptEditSegmentCommand");var wdD=new _.x("transcriptUpdateSegmentTextCommand");var pdT=new _.x("transcriptSearchBoxRenderer");var m8J=new _.x("transcriptSegmentListRenderer");var hR9=new _.x("transcriptSegmentRenderer");_.Qvd=new _.x("updateDateTextAction");var qkq=new _.x("updateTitleAction");var IOT=new _.x("updateViewershipAction");var vNJ=new _.x("carouselLockupRenderer");var OC4=new _.x("expandableVideoDescriptionBodyRenderer");var jv4=new _.x("videoDescriptionYouchatSectionViewModel");_.J5=_.ZR("kevlar_watch_page_horizontal_margin",24);_.sve=_.ZR("kevlar_watch_page_columns_top_padding",24);_.PtG=426+_.J5*2;_.c9=_.ZR("kevlar_watch_two_column_width_threshold",1E3);_.Sa=_.J5*2;_.zX=_.ZR("kevlar_watch_secondary_width",402);_.oN$=_.ZR("kevlar_watch_secondary_max_width",600);_.rRd=_.ZR("kevlar_watch_max_player_width",1280);_.K_e=_.ZR("kevlar_watch_flexy_metadata_height",136);_.yRD=_.Sa+310+_.J5;_.JRD=_.Sa+360+_.J5;var cRb={PAUSE_CHAT:18};var SkJ;var zRe;var bP=function(){return _.n.apply(this,arguments)||this};
_.v(bP,_.n);bP.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
bP.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var M=_.q(this.data.button,_.QM);M&&(M.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Hm.Object.defineProperties(bP,{template:{configurable:!0,enumerable:!0,get:function(){if(zRe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;SkJ===void 0&&(SkJ=document.createElement("template"));var R=SkJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);zRe=M}M=zRe;return M}}});
_.G([_.S(_.vA),_.a("design:type",Object)],bP.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({selectorArgs:["data.enabledEntityKey"],selector:f_r,observer:"onEnabledChange"}),_.a("design:type",Boolean)],bP.prototype,"enabled",void 0);_.G([_.H(),_.a("design:type",Object)],bP.prototype,"data",void 0);bP=_.G([_.w4({is:"yt-disableable-button-view-model",noInjection:!0})],bP);var bC$;var eRP;var HCe=["transVert01","transVert02","transVert03"],nNe="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),ea=function(){var M=_.n.apply(this,arguments)||this;M.emojiManager=_.j$;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};M.reactionBuckets=[];M.noEmojiIdentifier="NO_EMOJI";return M};
_.v(ea,_.n);_.F=ea.prototype;_.F.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.F.desktopFountainEmojiSizePxChanged=function(){_.UO(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.F.createUserReactionAnimation=function(M){this.createEmojiAnimation(M,!0)};
_.F.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var M;((M=this.data)==null?0:M.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.la("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.wu(this.emojiContainer.children)).forEach(function(d){d.remove()})};
_.F.detached=function(){this.cleanupFountain()};
_.F.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var M;this.reactionBuckets=_.wF.unsafeClone((M=this.emojiFountainData)==null?void 0:M.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.F.processEmojiBucket=function(M){var d=this;if(this.reactionBuckets&&!(M>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var N=this.reactionBuckets[M];this.generateEmojiAnimations(N);if(M<this.reactionBuckets.length-1){var R;if(N==null?0:(R=N.duration)==null?0:R.seconds)this.emojiBucketTimerId=setTimeout(function(){d.processEmojiBucket(M+1)},Number(N.duration.seconds)*1E3)}}};
_.F.generateEmojiAnimations=function(M){var d=this,N=this.getRandomEmojiIdFromBucketWithOverride(M);if(N&&N!==this.noEmojiIdentifier){var R=0;M.targetEps?(R=this.linearInterpolateBounded(1,20,100,12,M.emojiSizeIndex||0),this.createEmojiAnimation(N,!1,M.emojiAnimationMs,R),R=this.getEmojiDelayMsFromTargetEps(M.targetEps)):(this.createEmojiAnimation(N),R=this.getEmojiDelayMsFromDistribution(M.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){d.generateEmojiAnimations(M)},R)}};
_.F.getRandomEmojiIdFromBucketWithOverride=function(M){if(!(M&&M.reactionsData&&M.reactionsData.length&&M.totalReactions))return this.noEmojiIdentifier;for(var d=M.totalReactions,N=1,R=_.V(M.reactionsData),X=R.next();!X.done;X=R.next())X=X.value,(X.reactionWeightOverride||X.reactionWeightOverride===0)&&X.reactionCount&&(d-=X.reactionCount,N-=X.reactionWeightOverride);R=!0;N<0&&(R=!1,d=M.totalReactions,N=1);if(R&&N>0&&d===0)if(N===1){X=0;for(var A=_.V(M.reactionsData),l=A.next();!l.done;l=A.next())l=
l.value,l.reactionCount&&l.reactionCount>0&&X++;X=1/X;A=_.V(M.reactionsData);for(l=A.next();!l.done;l=A.next())l.value.reactionWeightOverride=X}else for(X=1/(1-N),A=_.V(M.reactionsData),l=A.next();!l.done;l=A.next())l=l.value,l.reactionWeightOverride&&(l.reactionWeightOverride*=X);X=Math.random();A=0;l=_.V(M.reactionsData);for(var k=l.next();!k.done;k=l.next())if(k=k.value,k.reactionCount&&(A=(k.reactionWeightOverride||k.reactionWeightOverride===0)&&R?A+k.reactionWeightOverride:A+N*k.reactionCount/
d,A>X&&(k.reactionCount--,M.totalReactions--,k=this.reactionItemToEmojiString(k),k!==this.noEmojiIdentifier)))return k;return this.noEmojiIdentifier};
_.F.reactionItemToEmojiString=function(M){if(M.unicodeEmojiId)return M.unicodeEmojiId;if(M.emoteId)return M.emoteId;if(M.videoReactionType)switch(M.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.F.createEmojiAnimation=function(M,d,N,R){d=d===void 0?!1:d;this.lastEmojiRequestedForTesting=M;var X=M.startsWith("yt-icons:"),A=_.vG(this.emojiManager,M);if(A||X){var l=document.createElement("emoji");l.classList.add("yt-emoji-fountain-view-model");l.classList.add(HCe[Math.floor(Math.random()*HCe.length)]);var k=document.createElement("div");k.classList.add("yt-emoji-fountain-view-model");k.classList.add("horizontal-container");k.classList.add(nNe[Math.floor(Math.random()*nNe.length)]);d?(N=document.createElement("div"),
N.classList.add("user-reaction-bubble"),N.classList.add("yt-emoji-fountain-view-model"),k.appendChild(N)):(N&&(l.style.animationDuration=N+"ms",k.style.animationDuration=N+"ms"),R&&(l.style.width=R+"px",l.style.height=R+"px"));X?(X=document.createElement("yt-icon"),X.polymerController.icon=M,R&&(X.style.width=R+"px",X.style.height=R+"px"),M=X):M=this.emojiManager.createEmoji(A,!1);M.classList.add("yt-emoji-fountain-view-model");k.appendChild(M);l.appendChild(k);this.emojiContainer.appendChild(l);
l.addEventListener("animationend",function(){l.remove()});
var T,W;if((T=this.data)==null?0:(W=T.loggingDirectives)==null?0:W.trackingParams)d=d?_.Tx(183501):_.Tx(183500),LUq(this.data.loggingDirectives.trackingParams,d),_.ZDZ(d);setTimeout(function(){l&&l.remove()},2E3)}};
_.F.getEmojiDelayMsFromDistribution=function(M){return Math.random()*(M||1)*1E3};
_.F.getEmojiDelayMsFromTargetEps=function(M){return Math.random()*2*(1/M)*1E3};
_.F.linearInterpolateBounded=function(M,d,N,R,X){X=Math.min(Math.max(X,M),N);return(d*(N-X)+R*(X-M))/(N-M)};
ea.prototype.onEmojiFountainDataEntityUpdate=ea.prototype.onEmojiFountainDataEntityUpdate;ea.prototype.desktopFountainEmojiSizePxChanged=ea.prototype.desktopFountainEmojiSizePxChanged;ea.prototype.isActiveChanged=ea.prototype.isActiveChanged;_.G([_.H(),_.a("design:type",_.Id)],ea.prototype,"emojiManager",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],ea.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ea.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(M,d){return _.Rz(M.entities,"emojiFountainDataEntity",d)}}),
_.a("design:type",Object)],ea.prototype,"emojiFountainData",void 0);_.G([_.H(),_.a("design:type",Boolean)],ea.prototype,"isActive",void 0);_.G([_.xB("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ea.prototype,"isActiveChanged",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ea.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",String)],ea.prototype,"lastEmojiRequestedForTesting",void 0);
_.G([_.H({value:function(){return _.ZR("desktop_fountain_emoji_size_px",20)}}),
_.a("design:type",Number)],ea.prototype,"desktopFountainEmojiSizePx",void 0);_.G([_.xB("desktopFountainEmojiSizePx"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ea.prototype,"desktopFountainEmojiSizePxChanged",null);_.G([_.Z3("#emoji-container"),_.a("design:type",HTMLElement)],ea.prototype,"emojiContainer",void 0);
_.G([_.xB("emojiFountainData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ea.prototype,"onEmojiFountainDataEntityUpdate",null);ea=_.G([_.w4({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],ea);
_.L(ea,"yt-emoji-fountain-view-model",function(){if(eRP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;bC$===void 0&&(bC$=document.createElement("template"));var R=bC$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);eRP=M}M=eRP;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var iCq;var fOe;var H9=function(){return _.n.apply(this,arguments)||this};
_.v(H9,_.n);H9.prototype.onChoiceChanged=function(){this.data&&_.UO(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
H9.prototype.onChoiceChanged=H9.prototype.onChoiceChanged;_.G([_.H(),_.a("design:type",Object)],H9.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],H9.prototype,"onChoiceChanged",null);H9=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],H9);
_.L(H9,"yt-live-chat-banner-poll-choice",function(){if(fOe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;iCq===void 0&&(iCq=document.createElement("template"));var R=iCq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);fOe=M}M=fOe;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var L_$;var tcd;var n1=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.small=!1;return M};
_.v(n1,_.n);n1.prototype.computeIsSmall=function(){var M;return((M=this.buttonOverrides)==null?void 0:M.size)==="S"};
n1.prototype.computeId=function(){return this.data&&this.data.targetId};
_.G([_.S(_.On.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],n1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",String)],n1.prototype,"id",void 0);_.G([_.H(),_.a("design:type",Object)],n1.prototype,"buttonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],n1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],n1.prototype,"modern",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.a("design:type",Object)],n1.prototype,"small",void 0);n1=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-button"})],n1);
_.L(n1,"yt-live-chat-button",function(){if(tcd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;L_$===void 0&&(L_$=document.createElement("template"));var R=L_$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);tcd=M}M=tcd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var GlJ;var aOD;var iP=function(){var M=_.n.apply(this,arguments)||this;M.inCollapsedBanner=!1;M.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};M.questionButtonOverrides={style:"mono",type:"filled"};return M};
_.v(iP,_.n);_.F=iP.prototype;_.F.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]]"}}}}}};
_.F.onContextMenuButtonClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
_.F.onYtRendererstamperFinished=function(){this.menuButton=_.K(this.hostElement).querySelector("#menu-button")};
_.F.dataChanged=function(){var M,d;if((d=_.q((M=this.data)==null?void 0:M.overflowMenuButton,_.K9))==null?0:d.command)this.data.contextMenuEndpoint=_.q(this.data.overflowMenuButton,_.K9).command};
_.F.onButtonClick=function(){var M,d=_.q((M=this.data)==null?void 0:M.askQuestionButton,_.K9);if(d){if(d.trackingParams&&(M=_.At(d.trackingParams))){var N=_.Ou();N&&_.eD(N,M)}_.YP(this.hostElement,"innertube-command",d.command)}};
iP.prototype.onYtRendererstamperFinished=iP.prototype.onYtRendererstamperFinished;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],iP.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],iP.prototype,"ytLiveChatItemBehavior",void 0);_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],iP.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],iP.prototype,"inCollapsedBanner",void 0);_.G([_.H(),_.a("design:type",Object)],iP.prototype,"buttonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],iP.prototype,"questionButtonOverrides",void 0);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iP.prototype,"onYtRendererstamperFinished",null);
iP=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],iP);
_.L(iP,"yt-live-chat-call-for-questions-renderer",function(){if(aOD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;GlJ===void 0&&(GlJ=document.createElement("template"));var R=GlJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);aOD=M}M=aOD;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var U8P={};U8P.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var M=this;window.requestAnimationFrame(function(){M.restoreFocusNode_||(M.restoreFocusNode_=document.activeElement);var d=_.doo(M.hostElement);d.length&&d[d.length-1].focus()})},
isAttachedChanged_:function(M,d){M?this.focusChild_():d&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(M){this.hidden||_.J2(M).indexOf(this.hostElement)!==-1||(M.stopPropagation(),this.focusChild_())}};var ubd;var Ct9;var f1=function(){return _.n.apply(this,arguments)||this};
_.v(f1,_.n);f1.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
f1.prototype.onClick=function(M){M.target!==this.confirmButton&&M.target!==this.cancelButton&&(this.hidden=!0)};
_.G([_.Z3("#confirm_button"),_.a("design:type",Object)],f1.prototype,"confirmButton",void 0);_.G([_.Z3("#cancel_button"),_.a("design:type",Object)],f1.prototype,"cancelButton",void 0);_.G([_.H(),_.a("design:type",x89)],f1.prototype,"data",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],f1.prototype,"hidden",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(U8P.YtLiveChatDialogBehavior),_.a("design:type",Object)],f1.prototype,"ytLiveChatDialogBehavior",void 0);f1=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],f1);
var x89=_.L(f1,"yt-live-chat-dialog-renderer",function(){if(Ct9===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ubd===void 0&&(ubd=document.createElement("template"));var R=ubd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ct9=M}M=Ct9;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var YkG;var ZCT,ENr=function(){if(ZCT!==void 0)return ZCT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;YkG===void 0&&(YkG=document.createElement("template"));var R=YkG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return ZCT=M};var Mg4;var d4Y;var L1=function(){var M=_.n.apply(this,arguments)||this;M.tooltip=null;M.data=null;M.id="";M.active=!1;M.icon="";M.disabled=!1;M.showTooltip=!1;M.useToggledActiveState=!0;M.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return M};
_.v(L1,_.n);_.F=L1.prototype;
_.F.dataChanged=function(){var M;((M=this.data)==null?0:M.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.aj)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var d;if((d=this.data)==null?0:d.disabled)this.disabled=!0};
_.F.computeId=function(M){return M};
_.F.computeIcon=function(M,d){if(!M)return"";if(this.useToggledActiveState)return"yt-icons:"+M.toLowerCase();var N,R;return d&&((N=this.data)==null?0:(R=N.toggledIcon)==null?0:R.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+M.toLowerCase()};
_.F.logPDGEntryPoint=function(){_.gyv(_.df("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")};
_.F.immediatelyShowTooltip=function(){var M=_.K(this.hostElement).querySelector("#tooltip");M.animationDelay=0;M.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};M.show()};
_.F.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.F.onClick=function(M){var d;((d=this.data)==null?0:d.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),M.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.YP(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.F.computeShowTooltip=function(M,d){return!!(M&&M.tooltip&&d)};
_.F.maybeUpdateTooltipText=function(){var M=this,d;if((d=this.data)==null?0:d.tooltip){var N=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.aj)(M.tooltip).textContent=N},250)}};
_.F.handleLiveChatActions=function(M){var d=this;M.length&&(this.id!=="creator"&&this.id!=="product-picker"||M.forEach(function(N){(N=d.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",N))&&N.durationSec===N.fullDurationSec&&d.startBubble(d.colorFromDecimal(N.startBackgroundColor))}))};
_.F.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.F.startBubble=function(M){_.UO(this.hostElement,{"--yt-live-chat-monetization-button-glow":M});this.hostElement.setAttribute("bubble","")};
_.F.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.F.colorFromDecimal=function(M){typeof M==="string"&&(M=Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
L1.prototype.onAnimationEnd=L1.prototype.onAnimationEnd;L1.prototype.disabledChanged=L1.prototype.disabledChanged;L1.prototype.dataChanged=L1.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],L1.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.On.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],L1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],L1.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"id",void 0);_.G([_.H({notify:!0,reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"active",void 0);
_.G([_.H({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.a("design:type",Object)],L1.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"disabled",void 0);_.G([_.H({computed:"computeShowTooltip(data, disabled)"}),_.a("design:type",Object)],L1.prototype,"showTooltip",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],L1.prototype,"useToggledActiveState",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"dataChanged",null);_.G([_.xB("disabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],L1.prototype,"disabledChanged",null);_.G([_.C3("animationend"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],L1.prototype,"onAnimationEnd",null);
L1=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],L1);
_.L(L1,"yt-live-chat-icon-toggle-button-renderer",function(){if(d4Y===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Mg4===void 0&&(Mg4=document.createElement("template"));var R=Mg4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);d4Y=M}M=d4Y;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var NCJ;var RBb;var t5=function(){return _.n.apply(this,arguments)||this};
_.v(t5,_.n);t5.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.G([_.H(),_.a("design:type",Object)],t5.prototype,"data",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);t5=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],t5);
_.L(t5,"yt-live-chat-message-input-prompt-header-renderer",function(){if(RBb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;NCJ===void 0&&(NCJ=document.createElement("template"));var R=NCJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);RBb=M}M=RBb;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var XpY;var Fa4;var AcP;var Vg$;var lzb;var $4$;var GX=function(){return _.n.apply(this,arguments)||this};
_.v(GX,_.n);_.G([_.H(),_.a("design:type",Object)],GX.prototype,"data",void 0);GX=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],GX);
_.L(GX,"yt-live-chat-message-subtext-renderer",function(){if($4$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;lzb===void 0&&(lzb=document.createElement("template"));var R=lzb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);$4$=M}M=$4$;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var aF=function(){var M=_.n.apply(this,arguments)||this;M.subtextOnBottom=!1;M.buttonOverrides={style:"mono",type:"tonal"};return M};
_.v(aF,_.n);aF.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aF.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],aF.prototype,"subtextOnBottom",void 0);_.G([_.H(),_.a("design:type",Object)],aF.prototype,"buttonOverrides",void 0);
aF=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],aF);
_.L(aF,"yt-live-chat-message-renderer",function(){if(Vg$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;AcP===void 0&&(AcP=document.createElement("template"));var R=AcP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Vg$=M}M=Vg$;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var BCD;var k8$;var U4=function(){var M=_.n.apply(this,arguments)||this;M.isRemovable=!1;M.hasPrefilledText=!1;M.isInputDirty=!1;M.overCharacterLimit=!1;M.underCharacterLimit=!1;M.showErrorMessage=!1;return M};
_.v(U4,_.n);_.F=U4.prototype;_.F.computeId=function(){return this.data.id};
_.F.computeInputData=function(){return this.data.inputData};
_.F.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.F.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.F.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.F.getLiveChatRichMessageInput=function(){return _.K(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.F.clearInput=function(){_.K(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.F.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.F.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.F.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.F.handleTextInputCharCountChanged=function(M){M=M.detail&&M.detail.characterCount;M!==void 0&&(this.characterCount=M,M!==0&&(this.isInputDirty=!0))};
_.F.onInputFocusOut=function(){this.isInputDirty=!0};
_.F.onClickCloseButton=function(){_.YP(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
U4.prototype.handleTextInputCharCountChanged=U4.prototype.handleTextInputCharCountChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],U4.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.id)"}),_.a("design:type",String)],U4.prototype,"id",void 0);_.G([_.H({computed:"computeInputData(data.inputData)"}),_.a("design:type",Object)],U4.prototype,"inputData",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.a("design:type",Object)],U4.prototype,"isRemovable",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.a("design:type",Object)],U4.prototype,"hasPrefilledText",void 0);_.G([_.H({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.a("design:type",Number)],U4.prototype,"charactersRemaining",void 0);
_.G([_.H(),_.a("design:type",Number)],U4.prototype,"characterCount",void 0);_.G([_.H(),_.a("design:type",Object)],U4.prototype,"isInputDirty",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.a("design:type",Object)],U4.prototype,"overCharacterLimit",void 0);_.G([_.H({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.a("design:type",Object)],U4.prototype,"underCharacterLimit",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.a("design:type",Object)],U4.prototype,"showErrorMessage",void 0);_.G([_.C3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],U4.prototype,"handleTextInputCharCountChanged",null);
U4=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],U4);
_.L(U4,"yt-live-chat-poll-editor-input",function(){if(k8$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;BCD===void 0&&(BCD=document.createElement("template"));var R=BCD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);k8$=M}M=k8$;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var TCq;var D4d;var gxJ={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},uP=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_button_rework_with_live");M.closeButtonOverrides={iconPosition:"icon-only"};M.startButtonOverrides={style:"mono",type:"filled"};M.addOptionButtonOverrides={style:"mono",type:"text"};return M};
_.v(uP,_.n);_.F=uP.prototype;
_.F.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"}}}}};
_.F.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var M;_.q((M=this.data)==null?void 0:M.startButton,_.K9)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.F.computeId=function(){return this.data&&this.data.id||""};
_.F.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.F.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.F.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.F.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.F.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var M=0;M<this.pollEditorInfoWithDefaults.minPollOptions;M++)this.addPollOptionData()};
_.F.getIsValidPoll=function(){var M=this;if(!this.pollEditorInfoWithDefaults)return!1;var d=this.pollEditorInfoWithDefaults,N=d.minPollOptionChars,R=d.maxPollOptionChars,X=d.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>d.maxPollQuestionChars)return!1;d=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(d).every(function(A,l){A=A.characterCount;!A&&X[l]&&(A=M.ytRendererBehavior.getSimpleString(X[l]).length);return A!==void 0&&A>=N&&A<=R})};
_.F.isValidPollChanged=function(){var M;_.q((M=this.data)==null?void 0:M.startButton,_.K9)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.F.addPollOptionData=function(){var M=this.pollEditorInfoWithDefaults,d=M.maxPollOptionChars,N=M.optionPlaceholderText,R=M.customOptionPlaceholderText,X=M.pollOptionData;this.currentNumPollOptions>=M.maxPollOptions||(M={liveChatPollOptionInput:{inputData:{placeholder:R[this.currentNumPollOptions]||N,maxCharacterLimit:d},maxCharacterLimit:d,minCharacterLimit:M.minPollOptionChars,hasPrefilledText:!!R[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=M.minPollOptions}},X.charCountErrorText&&
(M.liveChatPollOptionInput.charCountErrorText=X.charCountErrorText),X.charsRemainingAltLabel&&(M.liveChatPollOptionInput.charsRemainingAltLabel=X.charsRemainingAltLabel),X.removeOptionAltText&&(M.liveChatPollOptionInput.removeOptionAltText=X.removeOptionAltText),this.push("pollOptionsData",M),X=Array.from(_.K(_.K(this.hostElement).querySelector("#poll-options")).children),X.forEach(function(A,l){A.polymerController.set("data.id",l)}),_.K(X[X.length-1]).querySelector("#input").focus())};
_.F.getPollOptionInputValues=function(){var M=this,d=[],N=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),R=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(N).forEach(function(X,A){var l=null;X=X.getLiveChatRichMessageInput();var k;(X==null?0:(k=X.textSegments)==null?0:k.length)?l=_.OL(X):R[A]&&(l=M.formattedStringToLiveChatRichMessageInput(R[A]));d.push(l)});
return d};
_.F.requestCreateAndStartPoll=function(M){var d=this.getPollOptionInputValues();if(!d.some(function(R){return!R})){d={optionText:d};
var N=_.K(_.K(this.hostElement).querySelector("#poll-question")).firstChild;N&&N.liveChatRichMessageInput&&(d.questionText=_.OL(N.liveChatRichMessageInput));_.dU(this.hostElement,[M,d])}};
_.F.selectedChanged=function(){if(this.selected){var M=_.K(_.K(this.hostElement).querySelector("#start-button")).firstElementChild;if(M){var d;(d=_.K(M).querySelector("#button")||_.L3(M).querySelector("button"))==null||d.focus()}}};
_.F.handleTextInputChanged=function(M){var d;((d=M.target)==null?void 0:d.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=M.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.F.handleStartButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),(M=M.detail.args[1])&&this.requestCreateAndStartPoll(M))};
_.F.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.F.handleServiceRequestCompleted=function(M){this.createPollRequestInFlight=!1;(M=M.detail&&M.detail.data)&&M.success&&(_.YP(this.hostElement,"picker-cancelled"),_.ZI(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.F.onCloseClick=function(){_.YP(this.hostElement,"picker-cancelled");_.ZI(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.F.handlePollEditorInputClosed=function(M){var d=this.pollOptionsData.findIndex(function(N){return N.liveChatPollOptionInput.id===M.detail.id});
this.splice("pollOptionsData",d,1);this.isValidPoll=this.getIsValidPoll()};
_.F.onPickerCancelled=function(){this.reset()};
_.F.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var M=_.K(_.K(this.hostElement).querySelector("#poll-question")).firstChild;M&&M.setLiveChatRichMessageInput(null);if(M=_.K(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){M=_.V(Array.from(M));for(var d=M.next();!d.done;d=M.next())d.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.F.formattedStringToLiveChatRichMessageInput=function(M){return M.simpleText?{text_segments:[M.simpleText]}:{text_segments:M.runs}};
_.Hm.Object.defineProperties(uP.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(gxJ,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
uP.prototype.onPickerCancelled=uP.prototype.onPickerCancelled;uP.prototype.handlePollEditorInputClosed=uP.prototype.handlePollEditorInputClosed;uP.prototype.handleServiceRequestCompleted=uP.prototype.handleServiceRequestCompleted;uP.prototype.handleServiceRequestSent=uP.prototype.handleServiceRequestSent;uP.prototype.handleTextInputChanged=uP.prototype.handleTextInputChanged;uP.prototype.selectedChanged=uP.prototype.selectedChanged;uP.prototype.isValidPollChanged=uP.prototype.isValidPollChanged;
uP.prototype.shouldInitializePollChanged=uP.prototype.shouldInitializePollChanged;uP.prototype.dataChanged=uP.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],uP.prototype,"modern",void 0);
_.G([_.H(),_.a("design:type",Object)],uP.prototype,"closeButtonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"startButtonOverrides",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"addOptionButtonOverrides",void 0);_.G([_.H({computed:"computeId(data.id)",reflectToAttribute:!0}),_.a("design:type",String)],uP.prototype,"id",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],uP.prototype,"pollOptionsData",void 0);_.G([_.z("pollEditorInfoWithDefaults"),_.a("design:type",Object),_.a("design:paramtypes",[])],uP.prototype,"pollQuestionData",null);_.G([_.H({value:0}),_.a("design:type",Number)],uP.prototype,"pollQuestionCharacterCount",void 0);_.G([_.z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],uP.prototype,"pollQuestionCharactersRemaining",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.a("design:type",Boolean)],uP.prototype,"overQuestionCharacterLimit",void 0);_.G([_.z("data.pollEditorInfo"),_.a("design:type",Object),_.a("design:paramtypes",[])],uP.prototype,"pollEditorInfoWithDefaults",null);_.G([_.H({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.a("design:type",Number)],uP.prototype,"currentNumPollOptions",void 0);
_.G([_.H({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.a("design:type",Boolean)],uP.prototype,"hasMaxNumPollOptions",void 0);_.G([_.z("pollEditorInfoWithDefaults","pollOptionsData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uP.prototype,"shouldInitializePoll",null);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"isValidPoll",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],uP.prototype,"createPollRequestInFlight",void 0);_.G([_.H(),_.a("design:type",Object)],uP.prototype,"selected",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.a("design:type",Boolean)],uP.prototype,"showQuestionErrorMessage",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"dataChanged",null);_.G([_.xB("shouldInitializePoll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"shouldInitializePollChanged",null);_.G([_.xB("isValidPoll"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"isValidPollChanged",null);
_.G([_.xB("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"selectedChanged",null);_.G([_.C3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uP.prototype,"handleTextInputChanged",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"handleServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uP.prototype,"handleServiceRequestCompleted",null);
_.G([_.C3("yt-live-chat-poll-editor-input-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],uP.prototype,"handlePollEditorInputClosed",null);_.G([_.C3("picker-cancelled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uP.prototype,"onPickerCancelled",null);uP=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],uP);
_.L(uP,"yt-live-chat-poll-editor-panel-renderer",function(){if(D4d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;TCq===void 0&&(TCq=document.createElement("template"));var R=TCq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);D4d=M}M=D4d;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var WaT;var wpD;var C1=function(){return _.n.apply(this,arguments)||this};
_.v(C1,_.n);C1.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
C1.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Hm.Object.defineProperties(C1.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var M,d;return(M=this.data)==null?void 0:(d=M.title)==null?void 0:d.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.ht((M=this.data)==null?void 0:M.onTapCommand)}}});
_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],C1.prototype,"ytEndpointBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],C1.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],C1.prototype,"itemId",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],C1.prototype,"hasPromotion",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],C1.prototype,"innertubeCommand",null);C1=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],C1);
_.L(C1,"yt-live-chat-product-picker-panel-item-view-model",function(){if(wpD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;WaT===void 0&&(WaT=document.createElement("template"));var R=WaT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wpD=M}M=wpD;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ppG;var m4P;var xq=function(){var M=_.n.apply(this,arguments)||this;M.id="product-picker";M.selected=!1;M.closeButtonId="close-button";M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return M};
_.v(xq,_.n);_.F=xq.prototype;_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.F.observeSelected=function(){this.selected&&this.hostElement.focus();var M=_.K(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");M.length&&M[0].focus()};
_.F.onCloseBuyFlow=function(){_.YP(this.hostElement,"picker-cancelled")};
_.F.onCloseClick=function(){_.YP(this.hostElement,"picker-cancelled");var M;((M=this.data)==null?0:M.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.closeButton,_.QM))};
_.F.onCloseEngageWithAudienceEditorPanels=function(){_.YP(this.hostElement,"picker-cancelled")};
xq.prototype.observeSelected=xq.prototype.observeSelected;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],xq.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xq.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xq.prototype,"id",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xq.prototype,"selected",void 0);_.G([_.H(),_.a("design:type",Object)],xq.prototype,"closeButtonId",void 0);_.G([_.xB("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xq.prototype,"observeSelected",null);
xq=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],xq);
_.L(xq,"yt-live-chat-product-picker-panel-view-model",function(){if(m4P===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ppG===void 0&&(ppG=document.createElement("template"));var R=ppG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);m4P=M}M=m4P;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var hBG;var QSr;var Yq=function(){var M=_.n.apply(this,arguments)||this;M.iconId="";M.icon="";M.disabled=!1;M.systemIcons=_.Q("kevlar_system_icons");return M};
_.v(Yq,_.n);_.F=Yq.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.F.computeIconId=function(M){return M&&M.icon&&M.icon.iconType?M.icon.iconType.toLowerCase():""};
_.F.computeIcon=function(M){return M&&M.icon&&M.icon.iconType?(M=M.icon.iconType.toLowerCase(),(M.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+M):""};
_.F.computeDisabled=function(M){return!!M};
_.F.computeCommand=function(M,d){return d?void 0:M};
_.F.computeTooltip=function(M,d){return d&&M?M:""};
_.F.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],Yq.prototype,"ytEndpointBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yq.prototype,"data",void 0);_.G([_.H({computed:"computeIconId(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"iconId",void 0);
_.G([_.H({computed:"computeIcon(data)",reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"icon",void 0);_.G([_.H({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"disabled",void 0);_.G([_.H({computed:"computeCommand(data.command, disabled)"}),_.a("design:type",Object)],Yq.prototype,"command",void 0);_.G([_.H({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.a("design:type",String)],Yq.prototype,"tooltip",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yq.prototype,"systemIcons",void 0);Yq=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Yq);
_.L(Yq,"yt-live-chat-product-button-renderer",function(){if(QSr===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hBG===void 0&&(hBG=document.createElement("template"));var R=hBG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);QSr=M}M=QSr;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var qm9;var Izb;var ZF=function(){var M=_.n.apply(this,arguments)||this;M.selected=!1;M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return M};
_.v(ZF,_.n);_.F=ZF.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.computeId=function(M){return M.id||""};
_.F.onCloseClick=function(){_.YP(this.hostElement,"picker-cancelled")};
_.F.observeSelected=function(){this.selected&&this.hostElement.focus();var M=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");M.length&&M[0].focus()};
_.F.onCloseBuyFlow=function(){_.YP(this.hostElement,"picker-cancelled")};
_.F.onCloseEngageWithAudienceEditorPanels=function(){_.YP(this.hostElement,"picker-cancelled")};
ZF.prototype.observeSelected=ZF.prototype.observeSelected;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ZF.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZF.prototype,"data",void 0);
_.G([_.H({computed:"computeId(data)",reflectToAttribute:!0}),_.a("design:type",String)],ZF.prototype,"id",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZF.prototype,"selected",void 0);_.G([_.xB("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZF.prototype,"observeSelected",null);ZF=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ZF);
_.L(ZF,"yt-live-chat-product-picker-renderer",function(){if(Izb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;qm9===void 0&&(qm9=document.createElement("template"));var R=qm9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Izb=M}M=Izb;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var vxr;var Ojd;var jSP;var sST;var E4=function(){return _.n.apply(this,arguments)||this};
_.v(E4,_.n);E4.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()};
E4.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
E4.prototype.created=function(){this.ids={background:_.ww(),maskOne:_.ww(),maskTwo:_.ww(),gradient:_.ww(),largeBackground:_.ww(),largeGradientOne:_.ww(),largeGradientTwo:_.ww(),largeGradientPath:_.ww()}};
E4.prototype.maybeLoadAnimationBackground=E4.prototype.maybeLoadAnimationBackground;_.G([_.H({value:!1}),_.a("design:type",Boolean)],E4.prototype,"useLargeBackground",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],E4.prototype,"useAnimationBackground",void 0);_.G([_.H({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.a("design:type",Boolean)],E4.prototype,"useRegularBackground",void 0);
_.G([_.H(),_.a("design:type",Object)],E4.prototype,"ids",void 0);_.G([_.H(),_.a("design:type",Object)],E4.prototype,"lottieAnimation",void 0);_.G([_.Z3("#animation-background"),_.a("design:type",HTMLDivElement)],E4.prototype,"animationBackground",void 0);_.G([_.xB("useAnimationBackground"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],E4.prototype,"maybeLoadAnimationBackground",null);
E4=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],E4);
_.L(E4,"yt-live-interactivity-component-background",function(){if(sST===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;jSP===void 0&&(jSP=document.createElement("template"));var R=jSP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);sST=M}M=sST;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Mu=function(){var M=_.n.apply(this,arguments)||this;M.characterCount=0;M.showInputErrorMessage=!1;M.startQnaRequestInFlight=!1;M.modern=_.Q("web_button_rework_with_live");M.buttonOverrides={style:"mono",type:"filled"};M.closeButtonOverrides={iconPosition:"icon-only"};M.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return M};
_.v(Mu,_.n);_.F=Mu.prototype;
_.F.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]]"}}}}}};
_.F.onCharacterCountChanged=function(M){var d,N,R,X,A=(N=_.q(this==null?void 0:(d=this.data)==null?void 0:d.creatorCallForQuestions,AR4))==null?void 0:(R=N.inputField)==null?void 0:(X=R.liveChatTextInputFieldRenderer)==null?void 0:X.maxCharacterLimit,l,k;A!=null&&(M==null?void 0:(l=M.detail)==null?void 0:l.characterCount)!=null&&_.q(this==null?void 0:(k=this.data)==null?void 0:k.startButton,_.K9)&&(d=M.detail.characterCount>A,this.set("data.startButton.buttonRenderer.isDisabled",M.detail.characterCount===
0||d),this.showInputErrorMessage=d)};
_.F.onCloseClick=function(){_.YP(this.hostElement,"picker-cancelled");_.ZI(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.onPickerCancelled=function(){var M=_.K(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.setLiveChatRichMessageInput(null)};
_.F.handleOpenQnaStartPanel=function(){var M=_.K(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.focus()};
_.F.handleStartButtonAction=function(M){var d=this;if(M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),M=M.detail.args[1])){var N=_.K(this.hostElement).querySelector("#qna-creator-text-input-field"),R;(N==null?0:(R=N.liveChatRichMessageInput)==null?0:R.textSegments)&&N.liveChatRichMessageInput.textSegments.length!==0&&(R={rich_message:_.OL(N.liveChatRichMessageInput)},_.dU(this.hostElement,[M,R]).then(function(){_.YP(d.hostElement,"picker-cancelled")}))}};
_.F.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.F.handleServiceRequestCompleted=function(M){var d;M=M==null?void 0:(d=M.detail)==null?void 0:d.data;(M==null?0:M.actions)&&M.actions.length>0?this.startQnaRequestInFlight=!1:_.ZI(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.F.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Mu.prototype.handleServiceRequestError=Mu.prototype.handleServiceRequestError;Mu.prototype.handleServiceRequestCompleted=Mu.prototype.handleServiceRequestCompleted;Mu.prototype.handleServiceRequestSent=Mu.prototype.handleServiceRequestSent;Mu.prototype.onPickerCancelled=Mu.prototype.onPickerCancelled;Mu.prototype.onCharacterCountChanged=Mu.prototype.onCharacterCountChanged;_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"characterCount",void 0);
_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mu.prototype,"showInputErrorMessage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mu.prototype,"startQnaRequestInFlight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Mu.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"buttonOverrides",void 0);
_.G([_.H(),_.a("design:type",Object)],Mu.prototype,"closeButtonOverrides",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],Mu.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.S(_.sb.YtLiveChatItemBehavior),_.a("design:type",_.PG)],Mu.prototype,"ytLiveChatItemBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.G([_.C3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mu.prototype,"onCharacterCountChanged",null);_.G([_.C3("picker-cancelled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mu.prototype,"onPickerCancelled",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Mu.prototype,"handleServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mu.prototype,"handleServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Mu.prototype,"handleServiceRequestError",null);Mu=_.G([_.f({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Mu);
_.L(Mu,"yt-live-chat-qna-start-panel-renderer",function(){if(Ojd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vxr===void 0&&(vxr=document.createElement("template"));var R=vxr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ojd=M}M=Ojd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Ph9;var oxY;var dS=function(){return _.n.apply(this,arguments)||this};
_.v(dS,_.n);dS.prototype.dismiss=function(){_.YP(this.hostElement,"yt-live-chat-error-message-dismiss")};
dS.prototype.edit=function(){_.YP(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.G([_.H(),_.a("design:type",Object)],dS.prototype,"data",void 0);dS=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],dS);
_.L(dS,"yt-live-chat-text-actions-error-message-renderer",function(){if(oxY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Ph9===void 0&&(Ph9=document.createElement("template"));var R=Ph9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);oxY=M}M=oxY;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var rce;var Kae;var yce;var Jcb;var Nu=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.v(Nu,_.n);Nu.prototype.sendReaction=function(){var M,d,N=((M=this.data)==null?void 0:M.emojiId)||((d=this.data)==null?void 0:d.emoteId),R;N&&((R=this.data)==null?0:R.shouldTriggerAnimation)&&_.ZI(this.hostElement,"yt-create-user-reaction-animation",[N]);var X;(M=_.ht((X=this.data)==null?void 0:X.onTap))&&_.Zc(M,this.hostElement);this.showNewnessDot&&_.ZI(this.hostElement,"yt-hide-newness-dot")};
Nu.prototype.onClick=function(M){(!M||M.clientX||M.clientY)&&this.sendReaction()};
Nu.prototype.onKeyDown=function(M){M.key!=="Enter"&&M.key!==" "||M.repeat||this.sendReaction()};
_.Hm.Object.defineProperties(Nu.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!(((M=this.data)==null?0:M.emojiId)||((d=this.data)==null?0:d.emoteId))}}});
_.G([_.H(),_.a("design:type",Object)],Nu.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Nu.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Nu.prototype,"newnessDotEligible",void 0);_.G([_.z("data.maybeShowNewnessDot"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nu.prototype,"showNewnessDot",null);_.G([_.z("data.emojiId","data.emoteId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Nu.prototype,"useYtImage",null);
Nu=_.G([_.w4({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Nu);
_.L(Nu,"yt-reaction-control-panel-button-view-model",function(){if(Jcb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yce===void 0&&(yce=document.createElement("template"));var R=yce;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Jcb=M}M=Jcb;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var ccP;var Sm4;var Ro=function(){var M=_.n.apply(this,arguments)||this;M.reactionControlPanelExpanded=!1;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.v(Ro,_.n);_.F=Ro.prototype;_.F.expandedButtonsChanged=function(){var M,d;_.UO(this.hostElement,{"--expanded-buttons-height":((d=(M=this.expandedButtonsData)==null?void 0:M.length)!=null?d:0)*36+"px"})};
_.F.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}}};
_.F.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.F.onMouseLeave=function(){var M=this;this.collapseTimer=setTimeout(function(){M.reactionControlPanelExpanded=!1},500)};
_.F.onFocusIn=function(){this.onMouseEnter()};
_.F.onFocusOut=function(){this.onMouseLeave()};
_.F.onCollapsedButtonFocusIn=function(){var M=this;setTimeout(function(){var d;(d=M.expandedButtons.querySelector("button"))==null||d.focus()},100)};
_.F.onCollapsedButtonFocusOut=function(M){M.stopPropagation()};
_.Hm.Object.defineProperties(Ro.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var M,d;return _.wF.unsafeClone((M=this.liveReactionsData)==null?void 0:M.emojiButtonData)||((d=this.data)==null?void 0:d.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((M=this.data)==null||!M.maybeShowNewnessDot)}}});
Ro.prototype.expandedButtonsChanged=Ro.prototype.expandedButtonsChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],Ro.prototype,"ytLiveChatReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ro.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ro.prototype,"reactionControlPanelExpanded",void 0);_.G([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:ivD}),_.a("design:type",Object)],Ro.prototype,"liveReactionsData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ro.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Ro.prototype,"newnessDotEligible",void 0);
_.G([_.z("liveReactionsData","data.expandedButtons"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ro.prototype,"expandedButtonsData",null);_.G([_.z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.H({reflectToAttribute:!0}),_.a("design:type",Object),_.a("design:paramtypes",[])],Ro.prototype,"showNewnessDot",null);_.G([_.Z3("#expanded-buttons"),_.a("design:type",HTMLElement)],Ro.prototype,"expandedButtons",void 0);
_.G([_.xB("expandedButtonsData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ro.prototype,"expandedButtonsChanged",null);Ro=_.G([_.w4({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Ro);
_.L(Ro,"yt-reaction-control-panel-view-model",function(){if(Sm4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ccP===void 0&&(ccP=document.createElement("template"));var R=ccP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Sm4=M}M=Sm4;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var FR=new _.Pf("yt-live-chat"),zBJ=Date.parse("2024-7-24"),AZ=function(){var M=_.n.apply(this,arguments)||this;M.emojiManager=_.j$;M.newnessDotEligible=!1;M.newnessDotImpressionCounted=!1;M.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return M};
_.v(AZ,_.n);_.F=AZ.prototype;_.F.emojiCustomizationEnabledChanged=function(){var M;((M=this.data)==null?0:M.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((M=FR.getCreationTime("emoji-customization-count"))&&M<zBJ&&FR.set("emoji-customization-count","0"),M=Number(FR.get("emoji-customization-count"))||0,M<3&&(this.newnessDotEligible=!0,FR.set("emoji-customization-count",(M+1).toString())),this.newnessDotImpressionCounted=!0)};
_.F.hideNewnessDot=function(){this.newnessDotEligible=!1;FR.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.F.handleReactionsMute=function(M){var d=_.Ou(),N=_.Tx(206221),R={checkboxData:{state:M?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};d&&_.eD(d,N,R);this.reactionsMuted=M};
_.F.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.F.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}}};
_.Hm.Object.defineProperties(AZ.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return(!((M=this.liveReactionsData)==null||!M.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
AZ.prototype.liveReactionsSettingChanged=AZ.prototype.liveReactionsSettingChanged;AZ.prototype.emojiCustomizationEnabledChanged=AZ.prototype.emojiCustomizationEnabledChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.vA),_.a("design:type",Object)],AZ.prototype,"ytLiveChatReduxBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],AZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",_.Id)],AZ.prototype,"emojiManager",void 0);_.G([_.H(),_.a("design:type",Object)],AZ.prototype,"newnessDotEligible",void 0);_.G([_.H(),_.a("design:type",Object)],AZ.prototype,"newnessDotImpressionCounted",void 0);
_.G([_.H({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:f_r}),_.a("design:type",Boolean)],AZ.prototype,"liveReactionsSetting",void 0);_.G([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:ivD}),_.a("design:type",Object)],AZ.prototype,"liveReactionsData",void 0);_.G([_.H({value:function(){var M=_.Q("enable_lwe_web_mute"),d=FR.get("allow-reactions");return d===void 0?!1:!d&&M}}),
_.a("design:type",Boolean)],AZ.prototype,"reactionsMuted",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],AZ.prototype,"liveReactionsEnabled",null);_.G([_.xB("data.emojiCustomizationEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AZ.prototype,"emojiCustomizationEnabledChanged",null);
_.G([_.xB("liveReactionsEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AZ.prototype,"liveReactionsSettingChanged",null);AZ=_.G([_.w4({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],AZ);
_.L(AZ,"yt-reaction-control-panel-overlay-view-model",function(){if(Kae===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rce===void 0&&(rce=document.createElement("template"));var R=rce;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Kae=M}M=Kae;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var bjq={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(M){var d=this.$.pickers.selected;if(d){_.K(this.hostElement).removeAttribute(d+"-open");var N="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(N="#picker-buttons",d==="emoji"&&_.K(this.hostElement).querySelector("#emoji-picker-button")&&(N="#emoji-picker-button"));if(N=_.K(this.hostElement).querySelector(N).querySelector("#"+d))N.active=!1}N=M;d==M&&(N=null);d!=M&&
_.K(this.hostElement).setAttribute(M+"-open","");this.$.pickers.selected=N;_.ZI(this.hostElement,"yt-live-chat-picker-changed",[N])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var VA=function(){var M=_.n.apply(this,arguments)||this;M.numSentMessages=0;M.timeoutDurationMs=0;M.timeoutMs=0;M.lastTimeoutTimeMs=0;M.pendingMessageId="";M.hasFiredInitialFocusActions=!1;M.isBeforeFocusEnabled=!0;M.id="";M.characterCount=0;M.maxCharacterLimit=0;M.remainingCharacterCount=0;M.inputExpanded=!1;M.buttonOverrides={iconPosition:"icon-only"};M.inReplyPanel=!1;M.countdownRatio=0;M.isTooltipVisible=!1;M.tooltipTimeout=1E4;M.systemIcons=_.Q("kevlar_system_icons");M.tallerEmojiPicker=_.Q("live_chat_taller_emoji_picker");
M.blockSendMessageWithCountdown=!_.Q("live_chat_enable_send_button_in_slow_mode");M.sendReplyMessageInFlight=!1;M.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};M.onResize=function(){M.maybeToggleCharacterCount()};
return M};
_.v(VA,_.n);_.F=VA.prototype;
_.F.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"}}}};
_.F.attached=function(){window.addEventListener("resize",this.onResize)};
_.F.detached=function(){window.removeEventListener("resize",this.onResize)};
_.F.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.F.sendMessage=function(){var M=this,d,N,R,X;return _.B(function(A){if(M.sendDisabled)return A.return();M.isTooltipVisible&&_.ZI(M.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(M.data.sendButton&&M.data.sendButton.buttonRenderer){M.input.completeEmojis();d=M.data.sendButton.buttonRenderer.serviceEndpoint;if(!d)return A.return();R=((N=_.q(d,_.ZU3))==null?void 0:N.clientIdPrefix)||"";X={client_message_id:R+String(M.numSentMessages++),rich_message:_.OL(M.input.liveChatRichMessageInput)};
M.pendingMessageId=X.client_message_id;M.inReplyPanel&&(M.sendReplyMessageInFlight=!0);_.dU(M.hostElement,[d,X]);M.input.setLiveChatRichMessageInput(null)}_.Vy(A)})};
_.F.handleSendButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),this.sendMessage())};
_.F.onSendCompleted=function(M,d){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(M=this.get("timeoutDurationUsec",d.data))&&this.handleTimeout(Number(M)/1E3);this.errorMessage=this.get("errorMessage",d.data);this.pendingMessageId=""};
_.F.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ZI(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.F.handlePickerButtonToggle=function(M){M=M.detail.targetId;this.ytPickerBehavior.togglePicker_(M);if(M==="emoji")this.input.focus();else if(M==="qna-start-panel"){var d,N;(d=_.K(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(N=d.querySelector("#qna-creator-text-input-field"))==null||N.focus()}};
_.F.onComponentReplaced=function(M){var d,N;M.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((d=M.replacement.liveChatMessageInputRenderer)==null?0:(N=d.headerRenderer)==null?0:N.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.F.onEmojiSelect=function(M){this.input.focus();this.input.insertEmoji(M.detail)};
_.F.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.F.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ZI(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ZI(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.F.onOpenPopupAction=function(M,d){var N=this;d===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ZI(N.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.F.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.F.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.F.focusChanged=function(){this.maybeToggleCharacterCount()};
_.F.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var M=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",M>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.F.computeId=function(){return this.data&&this.data.targetId||""};
_.F.computeSendDisabled=function(M,d,N,R){M=!!(this.blockSendMessageWithCountdown&&N||!M||d&&M>d||R);(d=_.K(this.hostElement).querySelector("#send-button"))&&d.children.length&&(d.children[0].disabled=M);return M};
_.F.handleTimeout=function(M){this.timeoutDurationMs=this.timeoutMs=M;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.F.updateTimeout=function(M){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(M-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=M,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.F.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.F.onErrorMessageEdit=function(M){this.input.setLiveChatRichMessageInput(M.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.F.errorMessageChanged=function(){var M=this;_.vu(function(){_.ZI(M.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.F.computeAuthorNameColor=function(M){var d;if(_.Q("live_chat_author_name_color_usernames")&&(M==null?0:(d=M.authorName)==null?0:d.simpleText))return _.b86(_.eFr(M.authorName.simpleText));if(_.Q("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.b86(_.UH(M.authorSeedColorArgb));if(_.Q("live_chat_colored_usernames"))return"#cc0000";var N;return _.Q("live_chat_simple_color_usernames")&&(M==null?0:(N=M.authorName)==null?0:N.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.UH(M.authorUsernameColorDark):_.UH(M.authorUsernameColorLight):""};
_.F.onIsTooltipVisibleChanged=function(){var M=_.K(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){M.hidden=!1;M.setAttribute("role","alert")},0):(M.hidden=!0,M.removeAttribute("role"))};
_.F.onFocusedChanged=function(M){this.inputFocused=M.detail.value};
_.Hm.Object.defineProperties(VA.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.pickers)==null?void 0:d.find(function(N){return N.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return M?this.ytRendererBehavior.getSimpleString(M):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
VA.prototype.onIsTooltipVisibleChanged=VA.prototype.onIsTooltipVisibleChanged;VA.prototype.errorMessageChanged=VA.prototype.errorMessageChanged;VA.prototype.onErrorMessageEdit=VA.prototype.onErrorMessageEdit;VA.prototype.onErrorMessageDismiss=VA.prototype.onErrorMessageDismiss;VA.prototype.focusChanged=VA.prototype.focusChanged;VA.prototype.characterCountChanged=VA.prototype.characterCountChanged;VA.prototype.onEmojiSelect=VA.prototype.onEmojiSelect;VA.prototype.handlePickerButtonToggle=VA.prototype.handlePickerButtonToggle;
VA.prototype.onSendError=VA.prototype.onSendError;VA.prototype.onSendCompleted=VA.prototype.onSendCompleted;VA.prototype.sendMessage=VA.prototype.sendMessage;VA.prototype.dataChanged=VA.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],VA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(bjq.YtPickerBehavior),_.a("design:type",Object)],VA.prototype,"ytPickerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.On.YtLiveChatTooltipTargetingBehavior),_.a("design:type",Object)],VA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"hasFiredInitialFocusActions",void 0);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"isBeforeFocusEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"data",void 0);_.G([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"id",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"characterCount",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"maxCharacterLimit",void 0);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"remainingCharacterCount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"inputExpanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],VA.prototype,"inputFocused",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],VA.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.G([_.H(),_.a("design:type",_.KV)],VA.prototype,"participantsManager",void 0);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"buttonOverrides",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"inReplyPanel",void 0);_.G([_.z("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"sendDisabled",null);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"countdownRatio",void 0);
_.G([_.z("countdownRatio"),_.a("design:type",Number),_.a("design:paramtypes",[])],VA.prototype,"countdownStrokeDashOffset",null);_.G([_.z("countdownRatio"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"countdownActive",null);_.G([_.z("data.interactionMessage"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"hasInteractionMessage",null);
_.G([_.z("data.emojiPickerButton"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"hasEmojiPickerButton",null);_.G([_.z("data, characterCount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"showAvatar",null);_.G([_.z("data.pickers"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VA.prototype,"hasProductPickerPanelViewModel",null);
_.G([_.H(),_.a("design:type",Object)],VA.prototype,"errorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"genericErrorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"isTooltipVisible",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"tooltipTimeout",void 0);_.G([_.z("data.onInitialFocusCommand"),_.a("design:type",String),_.a("design:paramtypes",[])],VA.prototype,"tooltipMessage",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"tallerEmojiPicker",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],VA.prototype,"authorNameColor",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],VA.prototype,"blockSendMessageWithCountdown",void 0);_.G([_.H(),_.a("design:type",Object)],VA.prototype,"sendReplyMessageInFlight",void 0);
_.G([_.Z3("#input"),_.a("design:type",_.VeV)],VA.prototype,"input",void 0);_.G([_.Z3("#count"),_.a("design:type",HTMLElement)],VA.prototype,"count",void 0);_.G([_.Z3("#input-container"),_.a("design:type",HTMLElement)],VA.prototype,"inputContainer",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"dataChanged",null);
_.G([_.C3("yt-live-chat-send-message"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],VA.prototype,"sendMessage",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[Event,_.ci]),_.a("design:returntype")],VA.prototype,"onSendCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"onSendError",null);
_.G([_.C3("yt-live-chat-icon-toggle-button-renderer-toggle"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VA.prototype,"handlePickerButtonToggle",null);_.G([_.C3("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VA.prototype,"onEmojiSelect",null);
_.G([_.xB("characterCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"characterCountChanged",null);_.G([_.xB("inputFocused"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"focusChanged",null);_.G([_.C3("yt-live-chat-error-message-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"onErrorMessageDismiss",null);
_.G([_.C3("yt-live-chat-error-message-edit"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],VA.prototype,"onErrorMessageEdit",null);_.G([_.xB("errorMessage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"errorMessageChanged",null);_.G([_.xB("isTooltipVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],VA.prototype,"onIsTooltipVisibleChanged",null);
VA=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],VA);
_.L(VA,"yt-live-chat-message-input-renderer",function(){if(Fa4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;XpY===void 0&&(XpY=document.createElement("template"));var R=XpY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Fa4=M}M=Fa4;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var eBJ;var Hjd;var lz=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.firedOnClickCommand=!1;M.inReplyPanel=!1;return M};
_.v(lz,_.n);
lz.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"}}}};
lz.prototype.onButtonToggle=function(M){M.target.disabled||this.ytPickerBehavior.togglePicker_(M.detail.targetId)};
lz.prototype.onClick=function(){var M=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ZI(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return M.firedOnClickCommand=!1},5E3))};
_.Hm.Object.defineProperties(lz.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.panels)==null?void 0:d.find(function(N){return N.liveChatProductPickerPanelViewModel}))!==void 0}}});
lz.prototype.onButtonToggle=lz.prototype.onButtonToggle;_.G([_.S(bjq.YtPickerBehavior),_.a("design:type",Object)],lz.prototype,"ytPickerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lz.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lz.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],lz.prototype,"firedOnClickCommand",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lz.prototype,"inReplyPanel",void 0);_.G([_.z("data.pickers"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],lz.prototype,"hasProductPickerPanelViewModel",null);
_.G([_.C3("yt-live-chat-icon-toggle-button-renderer-toggle"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],lz.prototype,"onButtonToggle",null);lz=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],lz);
_.L(lz,"yt-live-chat-restricted-participation-renderer",function(){if(Hjd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;eBJ===void 0&&(eBJ=document.createElement("template"));var R=eBJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Hjd=M}M=Hjd;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var $G=function(){var M=_.n.apply(this,arguments)||this;M.genericErrorMessage=_.ep("Error, try again.");M.inReplyPanel=!1;M.hideBorder=!1;return M};
_.v($G,_.n);$G.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}}}}}};
_.Hm.Object.defineProperties($G,{template:{configurable:!0,enumerable:!0,get:function(){return ENr()}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$G.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],$G.prototype,"genericErrorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],$G.prototype,"inReplyPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$G.prototype,"hideBorder",void 0);
$G=_.G([_.w4({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],$G);_.L($G,"yt-live-chat-engagement-panel-input-renderer",function(){return ENr()},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var nx$,ijC;nx$=_.Tx(115994);ijC=_.Tx(115993);_.Bo=function(M,d,N){var R=this;var X=N.dragDownAction;this.layer=0;this.JSC$19789_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$19789_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var A=_.Nx();_.RL(A,nx$,this.layer);_.RL(A,ijC,this.layer);this.dragDownAction=function(){X();_.sL(A,{visualElement:R.fullscreen?nx$:ijC})};
this.gesture=new _.da(M,d,this.JSC$19789_watchConfig,"pandown");this.attach()};
_.Bo.prototype.attach=function(){this.gesture.attach()};
_.Bo.prototype.detach=function(){this.gesture.detach()};
_.Bo.prototype.update=function(M){this.fullscreen=M;this.gesture.config=M?this.JSC$19789_watchFullScreenConfig:this.JSC$19789_watchConfig};var fzC={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(M){if(M&&M.length==1&&Array.isArray(M[0].loggingUrls)){M=_.wF.unsafeClone(M[0]);var d=this.macros||{},N=this.getAdModuleClient_();if(!N)return _.RD();M.loggingUrls.forEach(function(R){if(R.baseUrl){var X=R.baseUrl;var A=d;A=A===void 0?{}:A;X=N.getOptions().includes("replaceUrlMacros")?_.nw3(N,"replaceUrlMacros",{url:X,additionalMapping:A}):X;R.baseUrl=X}},this);
M=[M]}return _.dU(this.hostElement,M)},
getAdModuleClient_:function(){var M=_.nO(this);return M?(M=M.getPlayer())?new _.Vo(M):null:null}}]};var Lar;var kG=function(){var M=_.n.apply(this,arguments)||this;M.isCollapsed=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return M};
_.v(kG,_.n);_.F=kG.prototype;_.F.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.onDonateTap=function(){var M=this.get("data.donateButton.buttonRenderer.command");if(M){var d=_.Ou(),N=this.get("data.donateButton.buttonRenderer.trackingParams");d&&N&&_.eD(d,_.At(N));this.ytOpenPopupBehavior.openPopup(M)}};
_.F.onShowMore=function(){this.isCollapsed=!1;var M=_.Ou(),d=this.get("data.expandButton.buttonRenderer.trackingParams");M&&d&&_.eD(M,_.At(d))};
_.F.onShowLess=function(){this.isCollapsed=!0};
_.F.dataChanged=function(){_.UO(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.handleUpdate=function(M){if(M=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",M))this.set("data.startLabel",M.startLabel),this.set("data.endLabel",M.endLabel),this.set("data.progress",M.progress),this.set("data.amountRaisedLabel",M.amountRaisedLabel),this.dataChanged()};
_.F.handleOpenPopupAction=function(M){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",M)&&_.ZI(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.F.computeHeaderBackgroundUrl=function(M,d){if(M)return d?M.headerBackgroundDarkUrl:M.headerBackgroundUrl};
_.F.isProgressBarVisible=function(M){return!(!M||M.progress===void 0)};
_.F.headerBackgroundClass=function(){return _.rK("HTML_DIR")==="rtl"?"flip":""};
kG.prototype.dataChanged=kG.prototype.dataChanged;_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],kG.prototype,"ytOpenPopupBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],kG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],kG.prototype,"isCollapsed",void 0);_.G([_.H({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.a("design:type",String)],kG.prototype,"headerBackgroundUrl",void 0);_.G([_.H(),_.a("design:type",Boolean)],kG.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kG.prototype,"modernPanels",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kG.prototype,"dataChanged",null);kG=_.G([_.f({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],kG);
_.L(kG,"ytd-donation-shelf-renderer",function(){if(Lar!==void 0)return Lar;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Lar=M},{mode:1});var tgY;var Tk=function(){return _.n.apply(this,arguments)||this};
_.v(Tk,_.n);_.G([_.H(),_.a("design:type",Object)],Tk.prototype,"data",void 0);Tk=_.G([_.f({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Tk);
_.L(Tk,"ytd-donation-unavailable-renderer",function(){if(tgY!==void 0)return tgY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return tgY=M},{mode:1});var G8Y;var Dr=function(){return _.n.apply(this,arguments)||this};
_.v(Dr,_.n);Dr.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dr.prototype,"data",void 0);Dr=_.G([_.f({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Dr);
_.L(Dr,"ytd-limited-state-message-renderer",function(){if(G8Y!==void 0)return G8Y;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return G8Y=M},{mode:1});var azC;var gS=function(){return _.n.apply(this,arguments)||this};
_.v(gS,_.n);gS.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
gS.prototype.onTap=function(M){var d=this.data&&this.data.endpoint;d&&!_.Sm(_.J2(M),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.YP(this.hostElement,"yt-navigate",{endpoint:d})};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gS.prototype,"data",void 0);gS=_.G([_.f({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],gS);
_.L(gS,"ytd-autotagging-metadata-renderer",function(){if(azC!==void 0)return azC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return azC=M},{mode:1});var U4r;var Wo=function(){return _.n.apply(this,arguments)||this};
_.v(Wo,_.n);Wo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wo.prototype,"data",void 0);Wo=_.G([_.f({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Wo);
_.L(Wo,"ytd-autotagging-metadata-row-renderer",function(){if(U4r!==void 0)return U4r;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return U4r=M},{mode:1});var uhY;var ChD;var wS=function(){var M=_.n.apply(this,arguments)||this;M.engagementPanelContent=!1;return M};
_.v(wS,_.n);wS.prototype.computeHasDividerLine=function(M,d){return M&&!d};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.a("design:type",Boolean)],wS.prototype,"hasDividerLine",void 0);_.G([_.H(),_.a("design:type",Object)],wS.prototype,"engagementPanelContent",void 0);
wS=_.G([_.f({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],wS);
_.L(wS,"ytd-metadata-row-header-renderer",function(){if(ChD!==void 0)return ChD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ChD=M},{mode:1});var x49;var pM=function(){return _.n.apply(this,arguments)||this};
_.v(pM,_.n);pM.prototype.computeHasDividerLine=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.a("design:type",Boolean)],pM.prototype,"hasDividerLine",void 0);pM=_.G([_.f({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],pM);
_.L(pM,"ytd-metadata-row-renderer",function(){if(x49!==void 0)return x49;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return x49=M},{mode:1});var YmC;var mh=function(){return _.n.apply(this,arguments)||this};
_.v(mh,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mh.prototype,"data",void 0);mh=_.G([_.f({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],mh);
_.L(mh,"ytd-metadata-with-image-row-renderer",function(){if(YmC!==void 0)return YmC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return YmC=M},{mode:1});var ZjY;var hZ=function(){var M=_.n.apply(this,arguments)||this;M.rounded=!0;M.fixie=!1;M.fullWidth=!1;return M};
_.v(hZ,_.n);_.F=hZ.prototype;_.F.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.onDataChanged=function(){var M=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(d){M.onEndpointLinkKeyPress(d)}))};
_.F.onEndpointLinkKeyPress=function(M){M.target===this.endpointLink&&M.keyCode===13&&_.YP(this.hostElement,"click")};
_.F.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var M;if((M=this.data)==null?0:M.endpoint)_.Ni(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.F.onYtNavigate=function(M){this.endpointHref||(M.stopPropagation(),M.preventDefault())};
_.F.onInformationButtonContainerClick=function(M){M.target.id!=="information-button-container"&&(M.stopPropagation(),M.preventDefault())};
_.F.computeStyle=function(M){return M};
_.F.computeIsThumbnailStyle=function(M){return M==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.F.computeThumbnailWidth=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.F.computeThumbnailObjectFit=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Hm.Object.defineProperties(hZ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
hZ.prototype.onYtNavigate=hZ.prototype.onYtNavigate;hZ.prototype.onClick=hZ.prototype.onClick;hZ.prototype.onDataChanged=hZ.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],hZ.prototype,"componentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],hZ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],hZ.prototype,"componentStyle",void 0);_.G([_.H({computed:"computeIsThumbnailStyle(data.style)"}),_.a("design:type",Boolean)],hZ.prototype,"isThumbnailStyle",void 0);_.G([_.H({computed:"computeThumbnailObjectFit(data.style)"}),_.a("design:type",String)],hZ.prototype,"thumbnailObjectFit",void 0);
_.G([_.H({computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],hZ.prototype,"thumbnailWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hZ.prototype,"rounded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hZ.prototype,"fixie",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hZ.prototype,"fullWidth",void 0);_.G([_.Z3("#endpoint-link"),_.a("design:type",HTMLAnchorElement)],hZ.prototype,"endpointLink",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hZ.prototype,"onDataChanged",null);_.G([_.z("data.endpoint"),_.a("design:type",Object),_.a("design:paramtypes",[])],hZ.prototype,"endpointHref",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],hZ.prototype,"onClick",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],hZ.prototype,"onYtNavigate",null);hZ=_.G([_.f({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],hZ);
_.L(hZ,"ytd-rich-metadata-renderer",function(){if(ZjY!==void 0)return ZjY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZjY=M},{mode:_.G3("kevlar_poly_si_batch_j075")?1:2});var Exd;var QA=function(){var M=_.n.apply(this,arguments)||this;M.fixie=!1;M.fullWidth=!1;return M};
_.v(QA,_.n);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(M){return M};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QA.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.a("design:type",Boolean)],QA.prototype,"hasDividerLine",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QA.prototype,"fixie",void 0);_.G([_.H(),_.a("design:type",Object)],QA.prototype,"fullWidth",void 0);
QA=_.G([_.f({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],QA);
_.L(QA,"ytd-rich-metadata-row-renderer",function(){if(Exd!==void 0)return Exd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Exd=M},{mode:1});var qu=function(){var M=_.n.apply(this,arguments)||this;M.engagementPanelContent=!1;M.fixie=!1;M.fullWidth=!1;return M};
_.v(qu,_.n);
qu.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"}}}};
qu.prototype.computeCollapsibleItems=function(M,d,N){return M===void 0||d===void 0||N===void 0||N?[]:M.slice(d)};
qu.prototype.computeAlwaysShownItems=function(M,d){return M&&M.length?M.slice(0,d):[]};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qu.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],qu.prototype,"collapsed",void 0);
_.G([_.H({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.a("design:type",Array)],qu.prototype,"alwaysShownItems",void 0);_.G([_.H({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.a("design:type",Array)],qu.prototype,"collapsibleItems",void 0);_.G([_.H(),_.a("design:type",Object)],qu.prototype,"engagementPanelContent",void 0);_.G([_.H(),_.a("design:type",Object)],qu.prototype,"fixie",void 0);
_.G([_.H(),_.a("design:type",Object)],qu.prototype,"fullWidth",void 0);qu=_.G([_.f({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],qu);
_.L(qu,"ytd-metadata-row-container-renderer",function(){if(uhY!==void 0)return uhY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return uhY=M},{mode:1});var MnY;var Io=function(){var M=_.n.apply(this,arguments)||this;M.currentPageUrl="";M.baseUrl="";M.isHiddenByUser=null;M.hidden=!1;M.showAboveScrim=!1;M.watchNextGrid=_.Q("kevlar_watch_grid");M.modernButtons=_.Q("web_modern_buttons");M.roundedContainer=!0;M.noBorder=!1;M.roundBackground=!_.Q("live_chat_round_background_killswitch");M.overflowHideChat=_.Q("live_chat_overflow_hide_chat");M.forceDarkTheme=!1;M.theaterWatchWhile=!1;M.isListeningForPlayerProgress=!1;M.JSC$19825_playerEvents=new Map;M.isFrameReady=
!1;M.player=null;M.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return M};
_.v(Io,_.n);_.F=Io.prototype;_.F.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Eu(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.F.created=function(){var M=this;this.handleIframeEventListener=function(d){M.handleIframeEvent(d)};
this.handleKeyboardEventListener=function(d){M.handleKeyboardEvent(d)};
this.JSC$19825_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19825_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19825_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19825_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19825_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.F.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()};
_.F.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};
_.F.computeBaseUrl=function(M){var d="/live_chat";this.isChatReplay()&&(d="/live_chat_replay");return _.M2(_.EF(_.Zj(_.Kk(M),d),null),"").toString()};
_.F.dataChanged=function(){_.Q("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.F.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var M=this.url;if(this.isChatReplay()&&this.player){var d=Math.floor(this.player.getProgressState().current*1E3);M=_.J8(_.Kk(M),"playerOffsetMs",d.toString()).toString()}d=this.chatframe;try{var N=M==="about:blank"?_.UpV:_.gH(M),R=d.contentDocument.location,X=_.QL(N);X!==void 0&&R.replace(X)}catch(A){d.src=M}}};
_.F.collapsedChanged=function(){_.YP(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.F.handleIframeEvent=function(M){if(M&&this.baseUrl.startsWith(M.origin)&&M.source===this.chatframe.contentWindow&&_.Me(M.data))if(M.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(M);else if(M.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(M.data["yt-show-feedback-dialog"]){var d=_.h().resolve(_.CF(_.Qod));if(d){var N=M.ports,R;N&&N.length&&(R=function(){N[0].postMessage({})});
M=M.data["yt-show-feedback-dialog"];d.showFeedbackDialog(M.customProductData,M.feedbackContent,R,M.bucket)}}else if(M.data["yt-show-survey"])_.YP(this.hostElement,"yt-show-survey",M.data["yt-show-survey"]);else if(M.data["yt-purchase-membership"])_.h().resolve(_.xV).resolveCommand(M.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(M.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(M.data["yt-tunnel-out-live-service-request"]);else if(M.data["yt-user-activity"])_.G2();
else if(M.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(M.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(M.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(M.data["yt-open-popup"]);else if(M.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(M.data["yt-log-flow-logging-event-command"]);else if(M.data["yt-hide-live-chat"])this.onShowHideChat();else M.data["yt-report-moderation-state-log"]&&
this.player&&(d={cpn:this.player.getVideoData().cpn},_.hQ("liveChatBeingModerated",d))};
_.F.attachLiveChatResponseVeTrackingParams=function(M){M=_.At(M);var d=_.Ou(),N=_.cy("liveChatRenderer.trackingParams",this.data);d&&N&&_.c1(d,_.At(N),M)};
_.F.handleBuyflowMessages=function(M){var d=M.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,N=M.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,R=M.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.x7Z(_.FU(_.yp),d.replace(/-/g,"+").replace(/_/g,"/"),function(X){M.ports[0].postMessage({success:!0,buyFlowResponse:X})},void 0,function(X){M.ports[0].postMessage({success:!1,
error:X&&X.message||"Buyflow rejected without error."})},_.kS().get("hl"),void 0,function(){M.ports[0].postMessage({closed:!0})},N,R)};
_.F.setupPlayerProgressRelay=function(){var M=this;if(!this.isListeningForPlayerProgress){var d=_.iG();d!=null&&d.getPlayerPromise&&(d.getPlayerPromise().then(function(N){M.playerApiReady(N)}),this.isListeningForPlayerProgress=!0)}};
_.F.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.F.playerApiReady=function(M){this.setPlayer(M)};
_.F.playerProgressHandler=function(){if(this.player){var M=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":M.current})}};
_.F.playerAdStartHandler=function(M){this.postToContentWindow({"yt-player-ad-start":M})};
_.F.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.F.playerStateChangeHandler=function(M){this.postToContentWindow({"yt-player-state-change":M})};
_.F.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19825_playerEvents);M&&(this.player=M,this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19825_playerEvents),_.YP(this.hostElement,"player-api-ready"))};
_.F.liveChatPageUrl=function(M,d,N,R){return!N||d?"about:blank":N.liveChatRenderer?(d=_.Kk(this.currentPageUrl).JSC$7917_queryData_,SGD(d),M=_.Kk(M),d.add("continuation",N.liveChatRenderer.continuations[0].reloadContinuationData.continuation),N=_.OO()==="USER_INTERFACE_THEME_DARK",(R||N)&&d.add("dark_theme","true"),_.EF(M,d),R=_.Kk(M.toString()),N=R.JSC$7917_queryData_,"SESSION_INDEX"in _.Py&&(N.add("authuser",_.rK("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Py&&N.add("pageId",_.rK("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Py&&N.add("sdc",_.rK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),R.toString()):""};
_.F.isCollapsed=function(M,d){return d!==null?d:this.isChatReplay()||M&&M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!0:M?M.liveChatRenderer?M.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.Q("live_chat_hide_premiere_replay_message")||M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.F.isHidden=function(M,d,N){var R=d&&d.conversationBarRenderer&&d.conversationBarRenderer.availabilityMessage,X=d&&d.liveChatRenderer&&d.liveChatRenderer.showHideButton,A=d&&d.liveChatRenderer&&d.liveChatRenderer.showButton;return N&&M&&!R&&!A||!N&&M&&!R&&!X?!0:d&&d.liveChatRenderer&&d.liveChatRenderer.initialDisplayState?d.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.F.computeButtonOverride=function(M,d){if(M&&d)return{type:"outline"}};
_.F.setCollapsedState=function(M){_.q(M,_.ewg)&&(this.isHiddenByUser=!!_.q(M,_.ewg).collapsed,!this.isHiddenByUser&&_.Q("enable_teaser_framework_web_client")&&_.ZI(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.F.forwardReduxActionToIframe=function(M){this.postToContentWindow({"yt-live-chat-forward-redux-action":M})};
_.F.onLoopRangeChange=function(M){this.showAboveScrim=!(M==null||!M.postId)};
_.F.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.F.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.F.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.F.sendDarkThemePostMessage=function(M){this.postToContentWindow({"yt-live-chat-set-dark-theme":M})};
_.F.onLiveChatBuyFlowCallback=function(M){this.postToContentWindow({"yt-live-chat-buy-flow-callback":M})};
_.F.handleKeyboardEvent=function(M){(0,_.wF.containsValue)(cRb,M.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:M.type,keyCode:M.keyCode}})};
_.F.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.F.postToContentWindow=function(M){if(this.isFrameReady)try{var d=window.location.protocol+"//"+window.location.host,N;(N=this.chatframe)!=null&&N.contentWindow?this.chatframe.contentWindow.postMessage(M,d):_.vh(new _.WJ("Tried posting a message to an iframe with no content window",M))}catch(R){_.qZ(R)}};
_.F.shouldHideChatFrame=function(M){return M&&_.Q("hide_live_chat_button_when_collapsed")};
_.Hm.Object.defineProperties(Io.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.Q("live_chat_overflow_hide_chat")||_.Q("web_watch_chat_hide_button_killswitch"))return _.Q("live_chat_overflow_hide_chat");var M,d,N,R;return!!((M=this.data)==null?0:(d=M.liveChatRenderer)==null?0:(N=d.header)==null?0:(R=N.liveChatHeaderRenderer)==null?0:R.collapseButton)}}});
Io.prototype.collapsedChanged=Io.prototype.collapsedChanged;Io.prototype.urlChanged=Io.prototype.urlChanged;Io.prototype.dataChanged=Io.prototype.dataChanged;Io.prototype.onShowHideChat=Io.prototype.onShowHideChat;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],Io.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],Io.prototype,"ytOpenPopupBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Io.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Io.prototype,"currentPageUrl",void 0);
_.G([_.H({computed:"computeBaseUrl(currentPageUrl,data)"}),_.a("design:type",Object)],Io.prototype,"baseUrl",void 0);_.G([_.H({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.a("design:type",String)],Io.prototype,"url",void 0);_.G([_.H(),_.a("design:type",Object)],Io.prototype,"isHiddenByUser",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.a("design:type",Object)],Io.prototype,"hidden",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.a("design:type",Boolean)],Io.prototype,"collapsed",void 0);_.G([_.H({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.a("design:type",Boolean)],Io.prototype,"hideChatFrame",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"showAboveScrim",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"watchNextGrid",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Io.prototype,"modernButtons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"noBorder",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Io.prototype,"roundBackground",void 0);
_.G([_.H({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.a("design:type",Object)],Io.prototype,"toggleButtonOverride",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Io.prototype,"overflowHideChat",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"forceDarkTheme",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Io.prototype,"enableShowWithoutHideChatButton",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Io.prototype,"theaterWatchWhile",void 0);_.G([_.Z3("#chatframe"),_.a("design:type",HTMLIFrameElement)],Io.prototype,"chatframe",void 0);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"onShowHideChat",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"dataChanged",null);
_.G([_.xB("url"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"urlChanged",null);_.G([_.xB("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Io.prototype,"collapsedChanged",null);Io=_.G([_.f({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Io);
_.L(Io,"ytd-live-chat-frame",function(){if(MnY!==void 0)return MnY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return MnY=M},{mode:1});var d7r;var vo=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};return M};
_.v(vo,_.n);vo.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=_.p3(this.data.backgroundColor)))};
vo.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var M=this.getFormattedStringLoggingDirectives(this.data.headline);M&&this.rendererBehavior.logExplicitClick(M)}};
vo.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var M=this.getFormattedStringLoggingDirectives(this.data.description);M&&this.rendererBehavior.logExplicitClick(M)}};
vo.prototype.getFormattedStringLoggingDirectives=function(M){return M&&M.runs&&M.runs.length>0&&M.runs[0]&&M.runs[0].loggingDirectives?M.runs[0].loggingDirectives:null};
vo.prototype.dataChanged=vo.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vo.prototype,"rendererBehavior",void 0);_.G([_.S(fzC.YtMacroReplacementBehavior),_.a("design:type",Object)],vo.prototype,"macroReplacementBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vo.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],vo.prototype,"navigationEndpoint",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],vo.prototype,"enableColors",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],vo.prototype,"modern",void 0);_.G([_.H(),_.a("design:type",Object)],vo.prototype,"buttonOverrides",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vo.prototype,"dataChanged",null);vo=_.G([_.f({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],vo);
_.L(vo,"ytd-action-basic-immersive-content-renderer",function(){if(d7r!==void 0)return d7r;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return d7r=M},{mode:1});var NgT;var RYT;var OR=function(){return _.n.apply(this,arguments)||this};
_.v(OR,_.n);OR.prototype.dataChanged=function(){var M;((M=this.data)==null?void 0:M.backgroundColor)!==void 0&&_.UO(this.hostElement,{"--bgu-color":_.p3(this.data.backgroundColor)})};
OR.prototype.onImageTileClick=function(){var M;((M=this.data)==null?0:M.navigationEndpoint)&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var d;((d=this.data)==null?0:d.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Hm.Object.defineProperties(OR.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?void 0:M.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var M,d,N;if(((M=this.data)==null?void 0:(d=M.detailsLine)==null?void 0:d.texts)!=null&&((N=this.data)==null?void 0:N.detailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.detailsLine.texts.map(function(X){return X.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var M,d,N;if(((M=this.data)==null?void 0:(d=M.optionalDetailsLine)==null?void 0:d.texts)!=null&&((N=this.data)==null?void 0:N.optionalDetailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.optionalDetailsLine.texts.map(function(X){return X.text}).join("")}return null}}});
OR.prototype.dataChanged=OR.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OR.prototype,"rendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],OR.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.backgroundColor"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OR.prototype,"hasBackgroundColor",null);
_.G([_.z("data.objectFit"),_.a("design:type",Object),_.a("design:paramtypes",[])],OR.prototype,"getObjectFit",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.tileRenderingStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],OR.prototype,"hasTileMetadata",null);_.G([_.z("data.detailsLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],OR.prototype,"getSecondaryDetails",null);
_.G([_.z("data.optionalDetailsLine"),_.a("design:type",Object),_.a("design:paramtypes",[])],OR.prototype,"getOptionalDetails",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],OR.prototype,"dataChanged",null);OR=_.G([_.f({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],OR);
_.L(OR,"ytd-image-tile-renderer",function(){if(RYT!==void 0)return RYT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return RYT=M},{mode:1});var XMd;var jZ=function(){return _.n.apply(this,arguments)||this};
_.v(jZ,_.n);jZ.prototype.getOpenLinkIcon=function(){return _.Q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
jZ.prototype.onSitelinkTap=function(){_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.Q("kevlar_command_handler_migration_killswitch"))_.Ni(this.hostElement,this.data.clickCommands,this.hostElement);else for(var M=_.V(this.data.clickCommands),d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jZ.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jZ.prototype,"data",void 0);jZ=_.G([_.f({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],jZ);
_.L(jZ,"ytd-sitelink-renderer",function(){if(XMd!==void 0)return XMd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XMd=M},{mode:1});var sR=function(){var M=_.n.apply(this,arguments)||this;M.paddingFix=_.Q("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.v(sR,_.n);sR.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"}}}};
sR.prototype.dataChanged=function(){var M=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;M.ytMacroReplacementBehavior.sendServiceRequestAction([d])})};
sR.prototype.shouldHideFooter=function(M){return!(M&&_.Q("use_ads_engagement_panel_desktop_footer_cta"))};
_.Hm.Object.defineProperties(sR.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((d=this.data)==null?void 0:d.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(N){var R;return(R=_.q(N,iTr))==null?void 0:R.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((d=this.data)==null?void 0:d.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(N){var R;return((R=_.q(N,iTr))==null?void 0:R.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
sR.prototype.dataChanged=sR.prototype.dataChanged;_.G([_.S(fzC.YtMacroReplacementBehavior),_.a("design:type",Object)],sR.prototype,"ytMacroReplacementBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sR.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sR.prototype,"paddingFix",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sR.prototype,"removeBorderFromImageTiles",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],sR.prototype,"useFooteredMetadataRenderingStyle",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sR.prototype,"dataChanged",null);sR=_.G([_.f({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],sR);
_.L(sR,"ytd-action-engagement-panel-content-renderer",function(){if(NgT!==void 0)return NgT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return NgT=M},{mode:1});var FC$;var AgC=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;M=_.e5();_.to(M,function(){return d().interaction},N);
_.Gi(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.vz(A)},
showOption:_.bK});return _.g("ad-grid-card-image-full-metadata-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
customCommandResolver:N})}})),_.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.g(_.kV,{cond:function(){return d().headline},
then:function(R){return _.g(_.lG,{text:R,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.g(_.kV,{cond:function(){return d().detailsLine},
then:function(R){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.g(_.ho,{data:R},{adDetailsLineViewModel:function(X){return _.g(_.tz,{data:X.data,customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.g(_.kV,{cond:function(){return d().secondaryDetailsLine},
then:function(R){return _.g("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.g(_.ho,{data:R},{adDetailsLineViewModel:function(X){return _.g(_.tz,{data:X.data,customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"ri");var Vn$=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;M=_.e5();_.to(M,function(){return d().interaction},N);
_.Gi(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.vz(A)},
showOption:_.bK});return _.g("ad-grid-card-image-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
customCommandResolver:N})}}),_.g("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.g(_.ho,{data:function(){return d().adCardBadge}},{adCardBadgeViewModel:_.FUz})))},"si");var laG=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;M=_.e5();_.to(M,function(){return d().interaction},N);
_.Gi(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.vz(A)},
showOption:_.bK});return _.g("ad-grid-card-text-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.g(_.kV,{cond:function(){return d().title},
then:function(R){return _.g(_.lG,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.g("div",{class:function(){return _.Q("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.g(_.TN,{each:function(){var R;
return((R=d())==null?void 0:R.descriptions)||[]},
keyBy:"INDEX"},function(R){return _.g(_.lG,{text:R,className:function(){return _.Q("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.g("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.g(_.ho,{data:function(){return d().moreInfoButton}},{adButtonViewModel:function(R){return _.g(_.HI,{data:R.data,
customCommandResolver:N})}})))},"ti");var $7$=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;var R=M.adGridCardCollectionStyle;M=_.e5();_.Gi(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.vz(l)},
showOption:_.bK});return _.g("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:M,style:function(){return"grid-template-columns: repeat("+E6d(R?R():d().style)+", minmax(0, 1fr));"}},_.g(_.ho,{data:function(){var X;
return(X=d())==null?void 0:X.gridCards}},{adGridCardImageViewModel:function(X){return _.g(Vn$,{data:X.data,
customCommandResolver:N})},
adGridCardImageFullMetadataViewModel:function(X){return _.g(AgC,{data:X.data,customCommandResolver:N})},
adGridCardTextViewModel:function(X){return _.g(laG,{data:X.data,customCommandResolver:N})}}))},"ui");_.eC(_.SG(function(M){var d=M.data;M=_.e5();_.to(M,function(){return d().interaction},M0D);
_.Gi(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.vz(X)},
showOption:_.bK});return _.g("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:M},_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.g(_.kV,{cond:_.PtA("(min-width: "+((0,_.pl)()+_.c9)+"px)"),then:function(){return _.g(_.ho,{data:function(){return d().adGridCardCollection}},{adGridCardCollectionViewModel:function(N){return _.g($7$,{data:N.data,
customCommandResolver:M0D})}})},
else:function(){return _.g(_.ho,{data:function(){return d().adGridCardCollection}},{adGridCardCollectionViewModel:function(N){return _.g($7$,{data:N.data,
customCommandResolver:M0D,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.g("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.g(_.ho,{data:function(){return d().adButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data,
customCommandResolver:M0D})}})))},"vi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;M=_.e5();_.to(M,function(){return d().interaction},d6q);
_.Gi(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.vz(X)},
showOption:_.bK});return _.g("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:M},_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.g(_.ho,{data:function(){if(_.PtA("(min-width: "+((0,_.pl)()+_.c9)+"px)")())var N=d().adGridCardCollection;else{N=Object.assign({},_.q(d().adGridCardCollection,fUb));var R;N.gridCards!==void 0&&((R=N.gridCards)==null?void 0:R.length)>1?N.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":N.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";N={adGridCardCollectionViewModel:N}}return N}},{adGridCardCollectionViewModel:function(N){return _.g($7$,{data:N.data,
customCommandResolver:d6q})}})),_.g("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.g(_.ho,{data:function(){return d().adButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data,
customCommandResolver:d6q})}})))},"wi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.cA}});var Po=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return M};
_.v(Po,_.n);_.F=Po.prototype;_.F.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"}}}};
_.F.attached=function(){this.getDataFromPlayerAndRender()};
_.F.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.F.getDataFromPlayerAndRender=function(){var M=this,d=_.nO(this.hostElement);d&&d.getPlayerPromise().then(function(N){M.getCachedDataAndListen(N)})};
_.F.getCachedDataAndListen=function(M){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=M)};
_.F.resolveCachedActions=function(){var M=_.cy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(M=M&&M())&&!_.wF.isEmpty(M)&&this.sendUpdateEngagementPanelAction(M);(M=(M=_.cy("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&M())&&!_.wF.isEmpty(M)&&this.sendChangeEngagementPanelVisibilityAction(M);(M=(M=_.cy("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&M())&&!_.wF.isEmpty(M)&&this.sendScrollToEngagementPanelCommand(M)};
_.F.sendUpdateEngagementPanelAction=function(M){var d;_.ZI(this.hostElement,"yt-update-engagement-panel-action",[(d=_.wF.get(M,"action"))!=null?d:M])};
_.F.sendChangeEngagementPanelVisibilityAction=function(M){_.ZI(this.hostElement,"yt-change-engagement-panel-visibility-action",[M])};
_.F.sendScrollToEngagementPanelCommand=function(M){_.ZI(this.hostElement,"yt-scroll-to-engagement-panel-command",[M])};
_.F.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.Q("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.vh(Error("hm"))};
Po.prototype.dataChanged=Po.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Po.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Po.prototype,"componentBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],Po.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Po.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Po.prototype,"player",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Po.prototype,"dataChanged",null);Po=_.G([_.f({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Po);
_.L(Po,"ytd-ads-engagement-panel-content-renderer",function(){if(FC$!==void 0)return FC$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return FC$=M},{mode:1});var Bgq;var oo=function(){var M=_.n.apply(this,arguments)||this;M.player=null;M.JSC$19862_playerEvents=new Map;M.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return M};
_.v(oo,_.n);_.F=oo.prototype;_.F.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]]"}}}}}};
_.F.created=function(){this.player=null;this.JSC$19862_playerEvents=new Map;this.JSC$19862_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19862_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19862_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19862_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.F.attached=function(){var M=this,d=_.nO();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));d&&d.getPlayerPromise().then(function(N){M.setPlayer(N);M.set("isPageLoad",!1)})};
_.F.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19862_playerEvents);this.set("player",M);M&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19862_playerEvents),M.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.F.onLoopRangeChange=function(M){var d=_.h().resolve(_.CF(_.em));if((!d||d.isOnWatch())&&this.hostElement.clientHeight){var N;!M&&((N=this.data)==null?0:N.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.F.onVideoProgress=function(M){var d,N,R=((d=this.player)==null?void 0:(N=d.getPresentingPlayerType)==null?void 0:N.call(d))===2;this.isAdPlaying!==R&&this.set("isAdPlaying",R);var X;if(!R&&(X=this.player)!=null&&X.getLoopRange()){N=this.player.getLoopRange();d=N.startTimeMs;N=N.endTimeMs;R=this.player.getProgressState(1).seekableStart;var A;d<R*1E3&&((A=this.data)==null?0:A.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
M=N<M*1E3;var l;((l=this.player)==null?0:l.getLoopRange())&&M&&this.player.seekTo(d/1E3)}};
_.F.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.F.onYtDeleteClipEngagementPanelCommand=function(M){_.q(M,RRq).command&&this.ytComponentBehavior.resolveCommand(_.q(M,RRq).command)};
_.Hm.Object.defineProperties(oo.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.ep("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],oo.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],oo.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oo.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],oo.prototype,"isAdPlaying",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],oo.prototype,"isPageLoad",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],oo.prototype,"isDarkTheme",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],oo.prototype,"voteCount",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],oo.prototype,"channelEndpoint",null);_.G([_.z("channelEndpoint"),_.a("design:type",Object),_.a("design:paramtypes",[])],oo.prototype,"channelHref",null);oo=_.G([_.f({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],oo);
_.L(oo,"ytd-clip-attribution-renderer",function(){if(Bgq!==void 0)return Bgq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Bgq=M},{mode:1});var kzd;var rS=function(){var M=_.n.apply(this,arguments)||this;M.player=null;M.JSC$19867_playerEvents=new Map;return M};
_.v(rS,_.n);_.F=rS.prototype;_.F.created=function(){this.player=null;this.JSC$19867_playerEvents=new Map;this.JSC$19867_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19867_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19867_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.F.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.F.attached=function(){var M=this,d=_.nO();d&&d.getPlayerPromise().then(function(N){M.setPlayer(N);M.set("isPageLoad",!1)})};
_.F.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19867_playerEvents);this.set("player",M);if(M){this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19867_playerEvents);var d;(M==null?void 0:(d=M.getPresentingPlayerType)==null?void 0:d.call(M))===2&&this.playerAdStartHandler()}};
_.F.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.F.onVideoProgress=function(){var M,d,N=((M=this.player)==null?void 0:(d=M.getPresentingPlayerType)==null?void 0:d.call(M))===2;this.isAdPlaying!==N&&this.set("isAdPlaying",N)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],rS.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],rS.prototype,"isAdPlaying",void 0);
_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],rS.prototype,"isPageLoad",void 0);rS=_.G([_.f({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],rS);
_.L(rS,"ytd-clip-section-footer-renderer",function(){if(kzd!==void 0)return kzd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kzd=M},{mode:1});var Tgd;var D7$;var KM=function(){return _.n.apply(this,arguments)||this};
_.v(KM,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KM.prototype,"data",void 0);KM=_.G([_.f({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],KM);
_.L(KM,"ytd-clip-ad-state-renderer",function(){if(D7$!==void 0)return D7$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return D7$=M},{mode:1});var gbi;var yA=function(){var M=_.n.apply(this,arguments)||this;M.value="";M.valid=!1;M.userChangedValue=!1;M.disabled=!1;M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return M};
_.v(yA,_.n);_.F=yA.prototype;_.F.detached=function(){this.userChangedValue=!1};
_.F.handleKeyDown=function(M){if(_.$h)var d=13;else _.lri&&_.B_?d=13:d=13;M.keyCode===d&&M.preventDefault()};
_.F.handleInput=function(){var M=_.K(this.hostElement).querySelector("#title");if(M){var d=(M.value||"").replace(/\r|\n/g," ");this.set("value",d);M.value=d;this.valid=M.validate();this.userChangedValue=!0}};
_.F.handleBlur=function(){this.valid=_.K(this.hostElement).querySelector("#title").validate()};
_.F.onValueChanged=function(){_.YP(this.hostElement,"title-changed",{title:this.value})};
_.F.onValidChanged=function(){_.YP(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.F.setInput=function(M,d){var N=_.K(this.hostElement).querySelector("#title");N&&(N.value=M,this.handleInput(),d&&(N.invalid=!1,this.valid=!0))};
_.F.onClipCreationDisable=function(){this.set("disabled",!0)};
_.F.onClipCreationEnable=function(){this.set("disabled",!1)};
_.F.onClipCreationVisibilityChange=function(M){var d=this;M.visible?requestAnimationFrame(function(){var N;((N=_.K(d.hostElement).querySelector("#title"))==null?void 0:N.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
yA.prototype.onValidChanged=yA.prototype.onValidChanged;yA.prototype.onValueChanged=yA.prototype.onValueChanged;yA.prototype.handleBlur=yA.prototype.handleBlur;yA.prototype.handleInput=yA.prototype.handleInput;yA.prototype.handleKeyDown=yA.prototype.handleKeyDown;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],yA.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],yA.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"value",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"valid",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"userChangedValue",void 0);_.G([_.H(),_.a("design:type",Object)],yA.prototype,"disabled",void 0);_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],yA.prototype,"handleKeyDown",null);
_.G([_.C3("input"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"handleInput",null);_.G([_.C3("blur"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"handleBlur",null);_.G([_.xB("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"onValueChanged",null);
_.G([_.xB("valid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yA.prototype,"onValidChanged",null);yA=_.G([_.f({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],yA);
_.L(yA,"ytd-clip-creation-text-input-renderer",function(){if(gbi!==void 0)return gbi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return gbi=M},{mode:1});var WCD;var wMG;var pMr;var m7C;var hYP;var JZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};M.pendingStoryboardImages_={};M.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];M.tickLabelInterval=30;M.mediumTickInterval=5;M.largeTickInterval=15;M.aboveRulerHeight=32;M.rulerHeight=50;M.smallTickHeight=4;M.mediumTickHeight=8;M.largeTickHeight=16;M.mediaListeners_=
{};return M};
_.v(JZ,_.n);_.F=JZ.prototype;_.F.attached=function(){var M=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(d){d=_.V(["screen and (min-resolution: "+d+")","screen and (max-resolution: "+d+")"]);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=window.matchMedia(N);R&&(M.mediaListeners_[N]=M.updatePixelRatio_.bind(M),R.addEventListener?R.addEventListener("change",M.mediaListeners_[N]):R.addListener?R.addListener(M.mediaListeners_[N]):delete M.mediaListeners_[N])}})};
_.F.detached=function(){this.setPlayer(null);for(var M=_.V(Object.keys(this.mediaListeners_)),d=M.next();!d.done;d=M.next()){var N=d.value;d=this.mediaListeners_[N];(N=window.matchMedia(N))&&(N.removeEventListener?N.removeEventListener("change",d):N.removeListener&&N.removeListener(d))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.F.onVisibilityChangedAction_=function(M){var d=this;M.visible&&!this.player_&&(M=_.nO())&&M.getPlayerPromise().then(function(N){d.setPlayer(N)})};
_.F.setPlayer=function(M){M&&this.set("player_",M)};
_.F.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.F.setUpCanvas_=function(){var M=this.rulerWidth,d=this.devicePixelRatio_,N=this.visible;this.set("canvasReady_",!1);if(N&&d!==0){N=this.aboveRulerHeight+this.rulerHeight;var R=_.K(this.hostElement).querySelector("#ticks");R.width=M*d;R.height=N*d;R.style.width=M+"px";R.style.height=N+"px";R.getContext("2d").scale(d,d);this.set("canvasReady_",!0)}};
_.F.drawRuler_=function(M,d,N,R,X,A,l,k,T,W,w,p){M&&N&&d&&(M=_.K(this.hostElement).querySelector("#ticks"),d=M.getContext("2d"),d.clearRect(0,0,M.width,M.height),d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),d.lineWidth=2,d.beginPath(),d.moveTo(0,this.aboveRulerHeight),d.lineTo(M.width,this.aboveRulerHeight),d.moveTo(0,M.height),d.lineTo(M.width,M.height),d.stroke(),this.drawRulerTicks_(M,A,X,R),this.drawStoryboardImages_(M,N,A,X,R),d.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
d.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(l-A,R,!1),this.rulerHeight),N=this.timeToPixels_(k-A,R,!1),d.fillRect(N,this.aboveRulerHeight,M.width-N,this.rulerHeight),this.drawSpeedLines_(M,A,p))};
_.F.drawRulerTicks_=function(M,d,N,R){var X=M.getContext("2d");X.save();X.lineWidth=1;for(var A=Math.floor(Math.max(0,d-this.tickLabelInterval));A<d+N;A++){X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var l=(A-d)*R;X.beginPath();X.moveTo(l,M.height);var k=this.smallTickHeight;A%this.largeTickInterval===0?k=this.largeTickHeight:A%this.mediumTickInterval===0&&(k=this.mediumTickHeight);X.lineTo(l,M.height-k);X.stroke();A%this.tickLabelInterval===0&&(X.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),X.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),X.fillText(ja(A),l+4,12),X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),X.moveTo(l,0),X.lineTo(l,this.aboveRulerHeight),X.stroke())}X.restore()};
_.F.percentToHex_=function(M){M=Math.round(M*255).toString(16);M.length<2&&(M="0"+M);return M};
_.F.drawSpeedLines_=function(M,d,N){var R=M.getContext("2d");R.save();var X=Math.min(25,Math.abs(N)-15)/25,A=M.width*.3*X,l=M.width*-.3,k=M.width*1.3,T=this.aboveRulerHeight;M=M.height;var W=Math.round(4*X),w=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");w.length<7&&(w="#"+w.substring(1,4).repeat(2));var p=this.percentToHex_(.5+X/2);p=w+p;w+="00";if(X>0)for(X=0;X<W;X++){var m=l+Math.random()*(k-l),I=T+Math.random()*(M-T),O=A+d%A,y=R.createLinearGradient(m,I,m+O,I);
N<0?(y.addColorStop(0,p),y.addColorStop(.4,p),y.addColorStop(.9,w)):(y.addColorStop(.1,w),y.addColorStop(.6,p),y.addColorStop(1,p));R.strokeStyle=y;R.lineWidth=1;R.beginPath();R.moveTo(m,I);R.lineTo(m+O,I);R.stroke()}R.restore()};
_.F.getStoryboardForTime_=function(M,d,N){N===void 0&&(N=d.getNumberOfStoryboardLevels()-1);M=d.getStoryboardFrameIndex(M,N);return d.getStoryboardFrame(M,N)};
_.F.drawStoryboardImages_=function(M,d,N,R,X){if(!this.disabled){M=M.getContext("2d");var A=this.getStoryboardForTime_(0,d);if(A){var l=A.width/A.columns;A=A.height/A.rows;var k=l/A,T=this.rulerHeight*k;T=this.tickLabelInterval*(k<this.tickLabelInterval*X/this.rulerHeight?1/Math.floor(this.tickLabelInterval*X/T):Math.round(T/(this.tickLabelInterval*X)));var W=T*X,w=this.rulerHeight,p=W/this.rulerHeight,m=Math.floor(Math.max(0,N-T));for(m-=m%T;m<N+R;m+=T){var I=this.getStoryboardForTime_(m,d),O=this.getPreloadedStoryboard_(I.url);
if(O){var y=(m-N)*X,c=this.aboveRulerHeight,e=I.column*l,t=I.row*A;if(k<p){var C=w/(W/k);I=l;C*=A;t+=(A-C)/2}else I=W/(w*k)*l,C=A,e+=(l-I)/2;M.drawImage(O,e,t,I,C,y,c,W,w)}else this.fetchStoryboardImage_(I)}}}};
_.F.getPreloadedStoryboard_=function(M){return this.storyboardImages_.find(function(d){if(d.src==M)return!0;var N=d.src.indexOf(M);return N!=-1&&N==d.src.length-M.length})};
_.F.fetchStoryboardImage_=function(M){var d=this,N=this.getPreloadedStoryboard_(M.url),R=this.pendingStoryboardImages_[M.url];N||R!==void 0||(N=new Promise(function(X){var A=new Image(M.width,M.height);A.src=M.url;A.onload=function(){X(A)};
A.onerror=function(){X(null)}}),this.pendingStoryboardImages_[M.url]=N,N.then(function(X){X&&d.push("storyboardImages_",X);
return X}).finally(function(){delete d.pendingStoryboardImages_[M.url]}))};
_.F.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.F.timeToPixels_=function(M,d,N){M*=d;return N===void 0||N?M+"px":M};
_.F.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
JZ.prototype.drawRuler_=JZ.prototype.drawRuler_;JZ.prototype.setUpCanvas_=JZ.prototype.setUpCanvas_;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],JZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"start",void 0);_.G([_.H({value:30}),_.a("design:type",Number)],JZ.prototype,"end",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],JZ.prototype,"visible",void 0);_.G([_.H(),_.a("design:type",Object)],JZ.prototype,"player_",void 0);_.G([_.H(),_.a("design:type",Number)],JZ.prototype,"tickSpacing",void 0);_.G([_.H(),_.a("design:type",Number)],JZ.prototype,"windowSizeSec",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"rulerWidth",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"rulerShift",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],JZ.prototype,"canvasReady_",void 0);_.G([_.H({value:function(){return[]}}),
_.a("design:type",Array)],JZ.prototype,"storyboardImages_",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],JZ.prototype,"disabled",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"forceRender_",void 0);_.G([_.H({value:1}),_.a("design:type",Number)],JZ.prototype,"devicePixelRatio_",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],JZ.prototype,"windowSpeed",void 0);
_.G([_.xB("visible","devicePixelRatio_","rulerWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JZ.prototype,"setUpCanvas_",null);
_.G([_.xB("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.a("design:returntype")],JZ.prototype,"drawRuler_",null);JZ=_.G([_.w4({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],JZ);
_.L(JZ,"yt-clip-creation-scrubber-canvas",function(){if(hYP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);hYP=M}M=hYP;return M},
{mode:2});var Q$e;var qhG;var co=function(){var M=_.n.apply(this,arguments)||this;M.start=0;M.end=30;M.visible=!1;M.draggingLeft_=!1;M.draggingRight_=!1;M.draggingRuler_=!1;M.draggingWindow_=!1;M.seekableStart=0;M.seekableEnd=0;M.rulerWidth_=0;M.rulerShift_=0;M.windowSlideSpeed=0;M.disabled=!1;M.initialized=!1;M.durationAccessibilityLabel="";M.activeLoopRange_=!1;M.rulerDragMouseStart_=0;M.rulerDragRulerStart_=0;M.rulerDragStartTime_=0;M.rulerDragEndTime_=0;M.dragMouseLastX_=0;M.scrollInterval_=null;M.scrubberVe_=null;M.boundHandlers_=
{};M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.v(co,_.n);_.F=co.prototype;
_.F.created=function(){var M=this;this.JSC$19880_playerEvents=new Map;this.JSC$19880_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19880_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19880_playerEvents.set("onStateChange",this.onStateChange_);var d={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(d).forEach(function(N){M.boundHandlers_[N]=d[N].bind(M)})};
_.F.attached=function(){this.activeLoopRange_=!1;_.K(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.K(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Tx(156731)};
_.F.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.K(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.K(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.F.onVisibilityChangedAction_=function(M){var d=this;M.visible&&!this.player_&&(M=_.nO())&&M.getPlayerPromise().then(function(N){d.setPlayer(N)})};
_.F.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19880_playerEvents);M&&(this.set("player_",M),this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19880_playerEvents))};
_.F.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.F.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.F.beginHandleDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=M.clientX,M.target===_.K(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():M.target===_.K(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.F.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.F.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.F.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.F.beginRulerDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=M.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.F.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.F.beginWindowScroll_=function(){var M=this;this.scrollInterval_=setInterval(function(){var d=M.windowSlideSpeed;if(d=_.qvC(M.start,M.boundedRulerStartLimit_())?d-.1:_.qvC(M.end,M.boundedRulerEndLimit_())?d+.1:0){var N=M.capRulerOffset_(M.rulerShift_+d);N==M.rulerShift_?d=0:(M.set("rulerShift_",N),_.YP(M.hostElement,"set-fixed-length-range",{start:M.start+d,duration:M.end-M.start}))}M.set("windowSlideSpeed",d)},33)};
_.F.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.F.endDrag_=function(){this.logClick();var M=void 0;this.draggingRight_?M=this.end-1:this.draggingLeft_&&(M=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,M);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.F.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.F.updateRulerSize_=function(){this.set("rulerWidth_",_.K(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.F.handleMouseDrag_=function(M){M.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(M):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(M):this.draggingWindow_&&this.handleWindowDrag_(M))};
_.F.handleRulerDrag_=function(M){M=this.pixelsToTime_(M.clientX-this.rulerDragMouseStart_);M=this.capRulerOffset_(this.rulerDragRulerStart_-M);this.set("rulerShift_",M);var d=this.rulerDragStartTime_-(this.rulerDragRulerStart_-M);_.YP(this.hostElement,"set-fixed-length-range",{start:d,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-M)-d})};
_.F.handleWindowDrag_=function(M){var d=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(d);_.YP(this.hostElement,"set-fixed-length-range",{start:this.start+M,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.F.capRulerOffset_=function(M){var d=this.seekableStart-this.pixelsToTime_(16),N=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(d,M),N)};
_.F.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.F.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.F.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.F.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.F.handleWindowHandleDrag_=function(M){var d=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(d);if(this.draggingLeft_){var N=this.start+M;var R=this.end}else this.draggingRight_&&(N=this.start,R=this.end+M);_.YP(this.hostElement,"set-range",{start:N,end:R,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.F.onVideoProgress_=function(M){this.disabled||(M=this.timeToPixels_(M-this.rulerShift_,this.tickSpacing_),_.K(this.hostElement).querySelector("#playhead").style.transform="translateX("+M+")")};
_.F.onClipCreationDisable_=function(){this.endDrag_()};
_.F.timeToPixels_=function(M,d,N){M*=d;return N===void 0||N?M+"px":M};
_.F.pixelsToTime_=function(M){return M/this.tickSpacing_};
_.F.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.F.centerRuler_=function(M,d,N){this.set("rulerShift_",this.capRulerOffset_(M+(d-M)/2-N/2))};
_.F.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.F.updateLoopRange_=function(M,d,N,R,X,A,l){M&&(d&&R&&!N?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(M.pauseVideo(),M.seekTo(X,!1,void 0,void 0,50)):this.draggingRight_?(M.pauseVideo(),M.seekTo(A-.1,!1,void 0,void 0,50)):(l!==void 0?M.seekTo(l,!0,void 0,void 0,50):(d=M.getCurrentTime(),d<X||d>A?M.seekTo(X,!0,void 0,void 0,50):M.seekTo(d,!0,void 0,void 0,50)),M.playVideo()),M.setLoopRange({startTimeMs:X*1E3,endTimeMs:A*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(M.getCurrentTime())):
this.activeLoopRange_&&(M.setLoopRange(null),this.activeLoopRange_=!1))};
_.F.updateHandles_=function(){_.K(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.K(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.F.updateRuler_=function(){var M=this.end,d=this.start,N=this.draggableStartLimit_(),R=this.draggableEndLimit_();(d<N-.001||M>R+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.F.computeDurationLabel_=function(M,d){return M?M.replace("$clip_length",parseFloat(d).toFixed(1)):""};
_.F.computeDuration_=function(M,d){return this.isValidTime_(M)&&this.isValidTime_(d)&&M<d?d-M:0};
_.F.isValidTime_=function(M){return isNaN(parseFloat(M))||M<0?!1:this.player_?M>=this.seekableStart&&M<=this.seekableEnd:!0};
_.F.computeWindowSizeSec_=function(M,d,N){return Math.min((M||12E4)/1E3,N-d)};
_.F.computeTickSpacing_=function(M,d){return d?d/M:1};
_.F.onDragStateChanged_=function(){_.YP(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.F.centerRangeOnTime_=function(M){var d=this.duration;M=RoG(M-d/2,d,this.seekableStart,this.seekableEnd);_.YP(this.hostElement,"set-fixed-length-range",{start:M.start,duration:M.end-M.start})};
_.F.nearlyLessThan_=function(M,d,N){return M+(N===void 0?1E-6:N)<d};
_.F.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var M=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(M,this.start)||this.nearlyLessThan_(this.end,M))&&this.centerRangeOnTime_(M)}};
_.F.onStateChange_=function(M){this.visible&&!this.disabled&&M==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.F.computeDragState_=function(M,d,N,R){return M?"left":d?"right":N?"ruler":R?"window":"none"};
_.F.logClick=function(){var M=_.Ou(),d=_.vl();M&&d&&this.scrubberVe_&&(_.Q("combine_ve_grafts")?_.NT(_.Nx(),this.scrubberVe_,d):_.c1(M,d,this.scrubberVe_),_.eD(M,this.scrubberVe_))};
co.prototype.onDragStateChanged_=co.prototype.onDragStateChanged_;co.prototype.updateRuler_=co.prototype.updateRuler_;co.prototype.updateHandles_=co.prototype.updateHandles_;co.prototype.onUpdateLoopRange=co.prototype.onUpdateLoopRange;co.prototype.onInitializedChanged_=co.prototype.onInitializedChanged_;co.prototype.onVisibleChanged_=co.prototype.onVisibleChanged_;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],co.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",Object)],co.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"start",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"end",void 0);_.G([_.H({computed:"computeDuration_(start, end)"}),_.a("design:type",Number)],co.prototype,"duration",void 0);
_.G([_.H(),_.a("design:type",String)],co.prototype,"lengthTemplate",void 0);_.G([_.H({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.a("design:type",String)],co.prototype,"durationLabel",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"visible",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"player_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"draggingLeft_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"draggingRight_",void 0);
_.G([_.H(),_.a("design:type",Object)],co.prototype,"draggingRuler_",void 0);_.G([_.H({value:!1}),_.a("design:type",Object)],co.prototype,"draggingWindow_",void 0);_.G([_.H({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.a("design:type",Number)],co.prototype,"tickSpacing_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"seekableStart",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"seekableEnd",void 0);
_.G([_.H(),_.a("design:type",Number)],co.prototype,"windowSizeMs",void 0);_.G([_.H({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.a("design:type",Number)],co.prototype,"windowSizeSec_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"rulerWidth_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"rulerShift_",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"windowSlideSpeed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],co.prototype,"disabled",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"initialized",void 0);_.G([_.H(),_.a("design:type",Object)],co.prototype,"durationAccessibilityLabel",void 0);_.G([_.H({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.a("design:type",String)],co.prototype,"dragState",void 0);
_.G([_.xB("visible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onVisibleChanged_",null);_.G([_.xB("initialized"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onInitializedChanged_",null);_.G([_.xB("player_","visible","disabled","initialized","start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onUpdateLoopRange",null);
_.G([_.xB("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"updateHandles_",null);_.G([_.xB("start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"updateRuler_",null);
_.G([_.xB("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],co.prototype,"onDragStateChanged_",null);co=_.G([_.w4({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],co);
_.L(co,"yt-clip-creation-scrubber-view",function(){if(qhG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Q$e===void 0&&(Q$e=document.createElement("template"));var R=Q$e;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qhG=M}M=qhG;return M},{mode:2});var SZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};M.startHighlightTimeout=0;M.endHighlightTimeout=0;return M};
_.v(SZ,_.n);_.F=SZ.prototype;_.F.attached=function(){var M=this;this.startInput.addEventListener("input",function(d){return M.handleStartInput_(d)});
this.endInput.addEventListener("input",function(d){return M.handleEndInput_(d)});
this.startInput.addEventListener("focusout",function(d){return M.handleStartBlur_(d)});
this.endInput.addEventListener("focusout",function(d){return M.handleEndBlur_(d)})};
_.F.setPlayer=function(M){this.set("player_",M)};
_.F.onSetFixedLengthRange_=function(M){var d=M.detail;M=d.start;var N=d.duration,R=d.startLimit;d=d.endLimit;R||(R=this.seekableStart_);d||(d=this.seekableEnd_);M=RoG(M,N,R,d);this.start=M.start;this.end=M.end};
_.F.onSetRange_=function(M){var d=M.detail;M=d.start;var N=d.end,R=d.startLimit;d=d.endLimit;R||(R=this.seekableStart_);d||(d=this.seekableEnd_);if(M=XOb(M,N,R,d,this.minLengthSec,this.maxLengthSec))this.start=M.start,this.end=M.end};
_.F.updateInputs_=function(){var M=this.end,d=this.start;this.startInput.focused||(this.startInput.value=ja(d,!0));this.endInput.focused||(this.endInput.value=ja(M,!0))};
_.F.handleStartInput_=function(M){M=N7G(M.target.value);if(M===null)this.set("startValid",!1);else{var d=this.end,N=XOb(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);N?(this.set("endWillUpdate",N.end!==d),this.set("startValid",N.start===M)):this.set("startValid",!1)}};
_.F.handleEndInput_=function(M){M=N7G(M.target.value);if(M===null)this.set("endValid",!1);else{var d=this.start,N=Fbb(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);N?(this.set("startWillUpdate",N.start!==d),this.set("endValid",N.end===M)):this.set("endValid",!1)}};
_.F.handleStartBlur_=function(M){M=N7G(M.target.value);M===null?this.startInput.value=ja(this.start,!0):this.forceUpdateInputs_(XOb(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.F.handleEndBlur_=function(M){M=N7G(M.target.value);M===null?this.endInput.value=ja(this.end,!0):this.forceUpdateInputs_(Fbb(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.F.forceUpdateInputs_=function(M){M&&(this.start=M.start,this.end=M.end);this.startInput.value=ja(this.start,!0);this.endInput.value=ja(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.F.initializeClipRange_=function(){var M=this.seekableEnd_,d=this.seekableStart_,N=this.visible_,R=this.player_;if(!R||!N||d===null||!M)this.set("initialized",!1);else if(!this.initialized){var X=R.getCurrentTime(),A=this.getDefaultLengthSec_();N=R.getVideoData();var l=R.getPlayerState()==1,k=N.isLive;A=Math.min(A,M-d);X=Math.max(0,X);M=k?Fbb(X-A,X,d,M,this.minLengthSec,this.maxLengthSec):l?RoG(X-A/2,A,d,M):RoG(X,A,d,M);this.start=M.start;this.end=M.end;this.set("initialized",!0);N.isLive&&R.seekTo(M.start);
this.startInput.value=ja(this.start,!0);this.endInput.value=ja(this.end,!0)}};
_.F.onStartChanged_=function(){var M=this;_.YP(this.hostElement,"start-changed",{start:this.start});var d;isNaN((d=this.oldStart)!=null?d:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){M.set("highlightStart",!1);M.startHighlightTimeout=0;M.oldStart=M.start},3E3))};
_.F.onEndChanged_=function(){var M=this;_.YP(this.hostElement,"end-changed",{end:this.end});var d;isNaN((d=this.oldEnd)!=null?d:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){M.set("highlightEnd",!1);M.endHighlightTimeout=0;M.oldEnd=M.end},3E3))};
_.F.onVisibilityChangedAction_=function(M){var d=this;this.set("visible_",M.visible);this.visible_&&!this.player_&&(M=_.nO())&&M.getPlayerPromise().then(function(N){d.setPlayer(N)})};
_.F.computeMinLengthSec_=function(M){return M/1E3||5};
_.F.computeMaxLengthSec_=function(M){return M/1E3||60};
_.F.computeDefaultLengthSec_=function(M){return M/1E3};
_.F.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.F.computeSeekableStart_=function(M,d){return M&&d?M.getProgressState(1).seekableStart:0};
_.F.computeSeekableEnd_=function(M,d){return M&&d?M.getProgressState(1).seekableEnd:0};
_.F.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.F.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.F.onDragState_=function(M){this.set("highlightStart",M.detail.startChanging);this.set("highlightEnd",M.detail.endChanging)};
SZ.prototype.onDragState_=SZ.prototype.onDragState_;SZ.prototype.onEndChanged_=SZ.prototype.onEndChanged_;SZ.prototype.onStartChanged_=SZ.prototype.onStartChanged_;SZ.prototype.initializeClipRange_=SZ.prototype.initializeClipRange_;SZ.prototype.updateInputs_=SZ.prototype.updateInputs_;SZ.prototype.onSetRange_=SZ.prototype.onSetRange_;SZ.prototype.onSetFixedLengthRange_=SZ.prototype.onSetFixedLengthRange_;
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],SZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SZ.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],SZ.prototype,"start",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],SZ.prototype,"startValid",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"startWillUpdate",void 0);_.G([_.H({value:30}),_.a("design:type",Number)],SZ.prototype,"end",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],SZ.prototype,"endValid",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"endWillUpdate",void 0);_.G([_.H({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.a("design:type",Number)],SZ.prototype,"minLengthSec",void 0);
_.G([_.H({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.a("design:type",Number)],SZ.prototype,"maxLengthSec",void 0);_.G([_.H({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.a("design:type",Number)],SZ.prototype,"defaultLengthSec",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],SZ.prototype,"visible_",void 0);_.G([_.H(),_.a("design:type",Object)],SZ.prototype,"player_",void 0);
_.G([_.H({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.a("design:type",Number)],SZ.prototype,"seekableStart_",void 0);_.G([_.H({computed:"computeSeekableEnd_(player_, visible_)"}),_.a("design:type",Number)],SZ.prototype,"seekableEnd_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],SZ.prototype,"initialized",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"disabled",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"highlightStart",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],SZ.prototype,"highlightEnd",void 0);_.G([_.Z3("#start"),_.a("design:type",HTMLInputElement)],SZ.prototype,"startInput",void 0);_.G([_.Z3("#end"),_.a("design:type",HTMLInputElement)],SZ.prototype,"endInput",void 0);
_.G([_.C3("set-fixed-length-range"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],SZ.prototype,"onSetFixedLengthRange_",null);_.G([_.C3("set-range"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],SZ.prototype,"onSetRange_",null);_.G([_.xB("start","end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"updateInputs_",null);
_.G([_.xB("player_","visible_","seekableStart_","seekableEnd_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"initializeClipRange_",null);_.G([_.xB("start"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"onStartChanged_",null);_.G([_.xB("end"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SZ.prototype,"onEndChanged_",null);
_.G([_.C3("clips-drag-state"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],SZ.prototype,"onDragState_",null);SZ=_.G([_.w4({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],SZ);
_.L(SZ,"yt-clip-creation-scrubber-renderer",function(){if(m7C===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;pMr===void 0&&(pMr=document.createElement("template"));var R=pMr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);m7C=M}M=m7C;return M},{mode:2});var zk=function(){var M=_.n.apply(this,arguments)||this;M.player_=null;M.JSC$19894_playerEvents=new Map;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.v(zk,_.n);_.F=zk.prototype;_.F.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"}}}};
_.F.created=function(){this.JSC$19894_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19894_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19894_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19894_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.F.detached=function(){this.setPlayer(null)};
_.F.onVisibilityChangedAction_=function(M){var d=this,N;if((N=this.data)==null?0:N.externalVideoId){var R;this.videoId=(R=this.data)==null?void 0:R.externalVideoId}this.getPlayer().then(function(X){if(M.visible)d.returnTime=X.getCurrentTime(),d.isAtLiveHead=X.getProgressState().isAtLiveHead;else{var A=d.returnTime;d.isAtLiveHead&&(A=Number.POSITIVE_INFINITY);X.seekTo(A,void 0,void 0,void 0,51)}})};
_.F.getPlayer=function(){var M=this;if(!this.player_){var d=_.nO();if(d)return d.getPlayerPromise().then(function(N){M.setPlayer(N);return N})}return Promise.resolve(this.player_)};
_.F.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19894_playerEvents);if(M){this.player_=M;var d;((d=this.data)==null?0:d.externalVideoId)||this.set("videoId",M.getVideoData().video_id||"");var N;(M==null?void 0:(N=M.getPresentingPlayerType)==null?void 0:N.call(M))===2&&(this.set("isAdPlaying",!0),_.ZI(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$19894_playerEvents)}};
_.F.ready=function(){_.K(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.F.onTitleChanged_=function(M){this.set("titleValue",M.detail.title)};
_.F.onStartChanged_=function(M){this.set("start",M.detail.start)};
_.F.onEndChanged_=function(M){this.set("end",M.detail.end)};
_.F.onTitleValidChanged_=function(M){this.set("titleValid",M.detail.valid)};
_.F.onStartValidChanged_=function(M){this.set("startValid",M.detail.valid)};
_.F.onEndValidChanged_=function(M){this.set("endValid",M.detail.valid)};
_.F.onVideoDataChange_=function(){var M;if((M=this.data)==null||!M.externalVideoId){var d;this.set("videoId",((d=this.player_)==null?void 0:d.getVideoData().video_id)||"")}};
_.F.computeFormValid_=function(M,d,N,R){return!!(M&&d&&N&&R)};
_.F.computeCancelButton_=function(M,d,N){return M&&_.q(M,_.K9)?{buttonRenderer:Object.assign({},_.q(M,_.K9),{isDisabled:d||N})}:null};
_.F.computeSubmitButton_=function(M,d,N){return M&&_.q(M,_.K9)?{buttonRenderer:Object.assign({},_.q(M,_.K9),{command:void 0,isDisabled:!this.formValid||d||N})}:null};
_.F.computeSubmitCommand_=function(M){return M||null};
_.F.onSubmit_=function(M){var d=this;M.stopPropagation();M.preventDefault();this.submitCommand_&&(M={},M.comment_text=this.titleValue,M.clip_external_video_id=this.videoId,M.clip_offset_ms=parseInt(this.start*1E3,10),M.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.dU(this.hostElement,[this.submitCommand_,M]).then(function(){d.set("isLoading_",!1)},function(){d.set("isLoading_",!1)}))};
_.F.playerAdStartHandler_=function(){_.ZI(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.F.playerAdEndHandler_=function(){_.ZI(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.F.onVideoProgress_=function(){var M=this;this.getPlayer().then(function(d){var N,R=(d==null?void 0:(N=d.getPresentingPlayerType)==null?void 0:N.call(d))===2;M.isAdPlaying!==R&&(R?M.playerAdStartHandler_():M.playerAdEndHandler_())})};
zk.prototype.onEndValidChanged_=zk.prototype.onEndValidChanged_;zk.prototype.onStartValidChanged_=zk.prototype.onStartValidChanged_;zk.prototype.onTitleValidChanged_=zk.prototype.onTitleValidChanged_;zk.prototype.onEndChanged_=zk.prototype.onEndChanged_;zk.prototype.onStartChanged_=zk.prototype.onStartChanged_;zk.prototype.onTitleChanged_=zk.prototype.onTitleChanged_;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],zk.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",Object)],zk.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zk.prototype,"data",void 0);_.G([_.H({value:""}),_.a("design:type",String)],zk.prototype,"titleValue",void 0);
_.G([_.H({value:!1}),_.a("design:type",Boolean)],zk.prototype,"titleValid",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],zk.prototype,"start",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],zk.prototype,"startValid",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],zk.prototype,"end",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],zk.prototype,"endValid",void 0);_.G([_.H({value:""}),_.a("design:type",String)],zk.prototype,"videoId",void 0);
_.G([_.H({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.a("design:type",Boolean)],zk.prototype,"formValid",void 0);_.G([_.H({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.a("design:type",Object)],zk.prototype,"submitButton_",void 0);_.G([_.H({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.a("design:type",Object)],zk.prototype,"submitCommand_",void 0);
_.G([_.H({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.a("design:type",Object)],zk.prototype,"cancelButton_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],zk.prototype,"isLoading_",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],zk.prototype,"isAdPlaying",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],zk.prototype,"returnTime",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],zk.prototype,"isAtLiveHead",void 0);
_.G([_.C3("title-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onTitleChanged_",null);_.G([_.C3("start-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onStartChanged_",null);_.G([_.C3("end-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onEndChanged_",null);
_.G([_.C3("title-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onTitleValidChanged_",null);_.G([_.C3("start-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onStartValidChanged_",null);_.G([_.C3("end-valid-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],zk.prototype,"onEndValidChanged_",null);
zk=_.G([_.w4({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],zk);
_.L(zk,"yt-clip-creation-renderer",function(){if(wMG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;WCD===void 0&&(WCD=document.createElement("template"));var R=WCD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wMG=M}M=wMG;return M},{mode:2});var bz=function(){return _.n.apply(this,arguments)||this};
_.v(bz,_.n);bz.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"}}}};
bz.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(M){return M.hasOwnProperty("clipCreationRenderer")})&&_.ZI(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
bz.prototype.onPanelContentVisibleChanged=bz.prototype.onPanelContentVisibleChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.oh.YtVisibilityBehavior),_.a("design:type",Object)],bz.prototype,"ytVisibilityBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],bz.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],bz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],bz.prototype,"panelContentVisible",void 0);_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bz.prototype,"onPanelContentVisibleChanged",null);bz=_.G([_.f({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],bz);
_.L(bz,"ytd-clip-section-renderer",function(){if(Tgd!==void 0)return Tgd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Tgd=M},{mode:1});var Iae;var eZ=function(){return _.n.apply(this,arguments)||this};
_.v(eZ,_.n);_.F=eZ.prototype;
_.F.onKeyDown=function(M){if(this.snippetElements.length!==0&&(M=M.keyCode,M===38||M===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);M===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Ju(this.highlightedIndex,-1,this.snippetElements.length);M=this.snippetElements.length;var d=this.highlightedIndex%M;this.highlightedIndex=d*M<0?d+M:d;M=this.snippetElements[this.highlightedIndex];this.highlightSnippet(M);this.ensureVisible(M)}};
_.F.onKeyUp=function(M){var d=this;eoD(M)&&(M.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.IQ.cancelJob(this.inputTimerId),this.inputTimerId=_.IQ.addLowPriorityJob(function(){d.typedValue&&(d.fetchSnippets(d.typedValue),d.logInputGesture(d.data))},1E3))};
_.F.onClick=function(M){(M=_.net(M.target,null,"snippet-item"))&&this.selectSnippet(M)};
_.F.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.F.ready=function(){var M=this;this.inputElement.addEventListener("focus",function(){M.snippetsWrapper.style.removeProperty("display")})};
_.F.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.F.getSourceTimelines=function(){if(!this.data)return[];var M=[];if(this.data.searchInVideoSources)for(var d=_.V(this.data.searchInVideoSources),N=d.next();!N.done;N=d.next())N=N.value,N==="SEARCH_IN_VIDEO_SOURCE_ASR"?M.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):N==="SEARCH_IN_VIDEO_SOURCE_OCR"&&M.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return M};
_.F.fetchSnippets=function(M){var d=_.ZI(this.hostElement,"yt-get-current-video-id-action")[0],N=this.getSourceTimelines();M={getSearchInVideoCommand:{externalVideoId:d,query:M!=null?M:"",sourceTimelines:N},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})};
_.F.filterSnippets=function(M,d){var N=this;if(d){this.filteredSnippets=(0,_.wF.unsafeClone)(M);var R=RegExp(_.CbZ(d),"i");this.filteredSnippets=this.filteredSnippets.filter(function(l){return R.test(N.ytRendererBehavior.getSimpleString(l.snippet))});
M=_.V(this.filteredSnippets);for(var X=M.next();!X.done;X=M.next()){X=X.value;var A=this.ytRendererBehavior.getSimpleString(X.snippet);X.snippet={runs:[{text:A.substring(0,A.toLowerCase().indexOf(d))},{text:A.substring(A.toLowerCase().indexOf(d),A.toLowerCase().indexOf(d)+d.length),bold:!0},{text:A.substring(A.toLowerCase().indexOf(d)+d.length,A.length)}]}}}else this.filteredSnippets=M};
_.F.onUpdateSearchInVideoResults=function(M){if(!(this.snippets.length>0)){var d,N,R;if((R=(d=_.q(M,YGe))==null?void 0:(N=d.results)==null?void 0:N.length)!=null&&R){var X;this.filteredSnippets=this.snippets=((X=_.q(M,YGe))==null?void 0:X.results).map(function(A){var l,k,T;return{startMs:A==null?void 0:(l=A.searchInVideoResultRenderer)==null?void 0:l.startMs,startTimeText:A==null?void 0:(k=A.searchInVideoResultRenderer)==null?void 0:k.startTimeText,snippet:A==null?void 0:(T=A.searchInVideoResultRenderer)==
null?void 0:T.snippet}})}}};
_.F.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};
_.F.highlightSnippet=function(M){M.classList.add("highlighted")};
_.F.removeSnippetHighlight=function(M){M.classList.remove("highlighted")};
_.F.selectSnippet=function(M){this.typedValue=String(M.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(M);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.F.ensureVisible=function(M){var d=this.snippetsWrapper.scrollTop,N=d+this.snippetsWrapper.clientHeight,R=M.offsetTop-this.snippetsWrapper.offsetTop;M=R+M.clientHeight;R<d?this.snippetsWrapper.scrollTop-=d-R:M>N&&(this.snippetsWrapper.scrollTop+=M-N)};
_.F.seekPlayer=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1){if(!M)return R.jumpTo(0);d=Number(M.dataset.startOffset);return _.D(R,_.iG().getPlayerPromise(),3)}N=R.yieldResult;N.seekTo(d/1E3,!0);N.wakeUpControls();_.Vy(R)})};
_.F.logInputGesture=function(M){var d=_.Ou();d&&(M==null?0:M.trackingParams)&&_.H1(d,_.At(M.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.F.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("typed-value-changed",this.typedValue))};
_.F.updateTypedValueFromBinding=function(M){this.typedValue=M.currentTarget.value};
eZ.prototype.typedValueChangedForBinding=eZ.prototype.typedValueChangedForBinding;eZ.prototype.dataChanged=eZ.prototype.dataChanged;eZ.prototype.panelContentVisibleChanged=eZ.prototype.panelContentVisibleChanged;eZ.prototype.onClick=eZ.prototype.onClick;eZ.prototype.onKeyUp=eZ.prototype.onKeyUp;eZ.prototype.onKeyDown=eZ.prototype.onKeyDown;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],eZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eZ.prototype,"data",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],eZ.prototype,"snippets",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],eZ.prototype,"filteredSnippets",void 0);_.G([_.H({value:[]}),_.a("design:type",Array)],eZ.prototype,"snippetElements",void 0);
_.G([_.Z3("#siv-input"),_.a("design:type",HTMLElement)],eZ.prototype,"inputElement",void 0);_.G([_.Z3("#siv-snippets-wrapper"),_.a("design:type",HTMLElement)],eZ.prototype,"snippetsWrapper",void 0);_.G([_.H(),_.a("design:type",String)],eZ.prototype,"typedValue",void 0);_.G([_.H({value:-1}),_.a("design:type",Number)],eZ.prototype,"highlightedIndex",void 0);_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[_.gy]),_.a("design:returntype")],eZ.prototype,"onKeyDown",null);
_.G([_.C3("keyup"),_.a("design:type",Function),_.a("design:paramtypes",[_.gy]),_.a("design:returntype")],eZ.prototype,"onKeyUp",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],eZ.prototype,"onClick",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],eZ.prototype,"panelContentVisible",void 0);
_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eZ.prototype,"panelContentVisibleChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eZ.prototype,"dataChanged",null);_.G([_.xB("typedValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eZ.prototype,"typedValueChangedForBinding",null);
eZ=_.G([_.f({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],eZ);
_.L(eZ,"ytd-search-in-video-renderer",function(){if(Iae!==void 0)return Iae;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Iae=M},{mode:1});var vbd;var Ho=function(){return _.n.apply(this,arguments)||this};
_.v(Ho,_.n);Ho.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Ho.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]]"}}}}}};
Ho.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,d,N,R,X=(d=_.q((M=this.data)==null?void 0:M.onClickCommand,_.G7J))==null?void 0:(N=d.item)==null?void 0:(R=N.notificationTextRenderer)==null?void 0:R.successResponseText;X&&_.gES(this.hostElement,X)}};
_.Hm.Object.defineProperties(Ho.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return this.isProductPlaceholder&&((M=this.data)==null?void 0:(d=M.hiddenProductOptions)==null?void 0:d.showDropCountdown)&&!!((N=this.data)==null?0:(R=N.hiddenProductOptions)==null?0:R.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isProductPlaceholder&&!((M=this.data)==null?0:M.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null?0:M.priceReplacementText)&&!((d=this.data)==null||!d.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ho.prototype,"componentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ho.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"useCenterLayoutContainer",null);_.G([_.H({computed:"computeButtonOverride(data)"}),_.a("design:type",Object)],Ho.prototype,"buttonOverride",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"isProductPlaceholder",null);
_.G([_.z("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showDropCountdown",null);_.G([_.z("isProductPlaceholder","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showBrandName",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showPriceReplacementText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showPrice",null);
_.G([_.z("isProductPlaceholder"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ho.prototype,"showMetadata",null);Ho=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Ho);
_.L(Ho,"ytd-product-list-item-renderer",function(){if(vbd!==void 0)return vbd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return vbd=M},{mode:1});var Ocb;var nM=function(){return _.n.apply(this,arguments)||this};
_.v(nM,_.n);nM.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
nM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
nM.prototype.panelContentVisibleChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.playerApi?N.jumpTo(2):_.D(N,_.iG().getPlayerPromise(),3);N.nextAddress!=2&&(M.playerApi=N.yieldResult);(d=M.playerApi)==null||d.productsInVideoVisibilityUpdated(!!M.panelContentVisible);_.Vy(N)})};
nM.prototype.panelContentVisibleChanged=nM.prototype.panelContentVisibleChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],nM.prototype,"panelContentVisible",void 0);_.G([_.H(),_.a("design:type",Object)],nM.prototype,"data",void 0);
_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],nM.prototype,"panelContentVisibleChanged",null);nM=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],nM);
_.L(nM,"ytd-product-list-renderer",function(){if(Ocb!==void 0)return Ocb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Ocb=M},{mode:1});var j$r;var iz=function(){var M=_.n.apply(this,arguments)||this;M.hideTimestamps=!!_.F5("hide-transcript-timestamps");M.currentCueIndex=-1;M.flatCues=[];M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};M.TEST_ONLY={getFlatCues:function(){return M.flatCues}};
return M};
_.v(iz,_.n);_.F=iz.prototype;_.F.hideTimestampsChanged=function(){_.X5("hide-transcript-timestamps",this.hideTimestamps)};
_.F.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.F.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.F.dataChanged=function(){var M;if((M=this.data)!=null&&M.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;M=_.V(this.data.cueGroups);for(var d=M.next();!d.done;d=M.next()){d=_.V(_.q(d.value,ZTi).cues);for(var N=d.next();!N.done;N=d.next())this.flatCues.push(Number(_.q(N.value,EuJ).startOffsetMs))}}};
_.F.onYtPlayerTimeChanged=function(M){if(!(M<0)){for(var d=this.currentCueIndex,N=d;;){var R=N>=0?this.flatCues[N]/1E3:-1;if(M+.5<R)--N;else if(R=N+1<this.flatCues.length?this.flatCues[N+1]/1E3:Infinity,M+.5>R)N+=1;else break}N!==d&&(d>=0&&((M=this.getCueElement(d))&&M.classList.remove("active"),(d=this.getCueGroupElement(d))&&d.classList.remove("active")),(d=this.getCueElement(N))&&d.classList.add("active"),(d=this.getCueGroupElement(N))&&d.classList.add("active"),this.currentCueIndex=N,this.isHovered||
this.scrollElementToTop(N))}};
_.F.scrollElementToTop=function(M){M=this.getCueElement(M>=3?M-3:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.F.getCueElement=function(M){return _.K(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[M]+'"]')};
_.F.getCueGroupElement=function(M){return(M=this.getCueElement(M))&&M.parentElement?M.parentElement.parentElement:null};
_.F.onTap=function(M){var d=_.cN(M);M.target.classList.contains("cue")&&this.seekCueElement(d)};
_.F.onKeyPress=function(M){M.keyCode==13&&(M=_.net(M.target,null,"cue"))&&this.seekCueElement(M)};
_.F.seekCueElement=function(M){M=Number(M.getAttribute("start-offset"));_.ZI(this.hostElement,"yt-transcript-player-seek",[M/1E3])};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
iz.prototype.onMouseLeave=iz.prototype.onMouseLeave;iz.prototype.onMouseEnter=iz.prototype.onMouseEnter;iz.prototype.onKeyPress=iz.prototype.onKeyPress;iz.prototype.onTap=iz.prototype.onTap;iz.prototype.dataChanged=iz.prototype.dataChanged;iz.prototype.hideTimestampsChanged=iz.prototype.hideTimestampsChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],iz.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],iz.prototype,"hideTimestamps",void 0);_.G([_.H(),_.a("design:type",Boolean)],iz.prototype,"isHovered",void 0);_.G([_.xB("hideTimestamps"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"hideTimestampsChanged",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"dataChanged",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],iz.prototype,"onTap",null);_.G([_.C3("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],iz.prototype,"onKeyPress",null);
_.G([_.C3("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"onMouseEnter",null);_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],iz.prototype,"onMouseLeave",null);iz=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],iz);
_.L(iz,"ytd-transcript-body-renderer",function(){if(j$r!==void 0)return j$r;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return j$r=M},{mode:1});var s$e;var fM=function(){var M=_.n.apply(this,arguments)||this;M.darkerPanels=_.Q("web_watch_darker_panels");return M};
_.v(fM,_.n);fM.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fM.prototype,"darkerPanels",void 0);fM=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],fM);
_.L(fM,"ytd-transcript-footer-renderer",function(){if(s$e!==void 0)return s$e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return s$e=M},{mode:1});var PTr;var obr;var LM=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.showClearButton=!1;return M};
_.v(LM,_.n);_.F=LM.prototype;_.F.handleInput=function(M){var d=this;M.target.value.length?_.OH(this,"ytdTranscriptSearchBoxSearch",function(){d.emitSearchEvent(M)},500):(_.t1r(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=M.target.value.length>0};
_.F.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.F.handleClick=function(){var M,d=(M=this.data)==null?void 0:M.trackingParams;d&&_.FD(_.Nx(),d)};
_.F.handleClear=function(){_.t1r(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var M,d,N=(d=_.q((M=this.data)==null?void 0:M.clearButton,_.K9))==null?void 0:d.trackingParams;N&&_.FD(_.Nx(),N);this.clear()};
_.F.emitSearchEvent=function(M){_.YP(this.hostElement,"yt-transcript-search-box-search",{query:M.target.value});var d,N;(M=(N=_.q((d=this.data)==null?void 0:d.searchButton,_.K9))==null?void 0:N.trackingParams)&&_.FD(_.Nx(),M)};
_.F.emitClearEvent=function(){_.YP(this.hostElement,"yt-transcript-search-box-clear")};
_.Hm.Object.defineProperties(LM.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LM.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],LM.prototype,"systemIcons",void 0);LM=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],LM);
_.L(LM,"ytd-transcript-search-box-renderer",function(){if(obr!==void 0)return obr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return obr=M},{mode:1});var rgi;var KCD;var tZ=function(){return _.n.apply(this,arguments)||this};
_.v(tZ,_.n);tZ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var M,d;this.sectionHeaderAriaLabel=(M=this.data)==null?void 0:(d=M.accessibility)==null?void 0:d.accessibilityData.label}};
tZ.prototype.fireSelectedEvent=function(M){_.YP(this.hostElement,"ytd-transcript-section-header",{startMs:M})};
tZ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
tZ.prototype.handleKeyPress=function(M){this.data&&M.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Hm.Object.defineProperties(tZ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.data)==null?void 0:M.enableTappableTranscriptHeader)!=null?d:!1}}});
tZ.prototype.dataChanged=tZ.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],tZ.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],tZ.prototype,"sectionHeaderAriaLabel",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],tZ.prototype,"enableTappableTranscriptHeader",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tZ.prototype,"dataChanged",null);
tZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],tZ);
_.L(tZ,"ytd-transcript-section-header-renderer",function(){if(KCD!==void 0)return KCD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return KCD=M},{mode:1});var ygT;var JgT;var Gk=function(){var M=_.n.apply(this,arguments)||this;M.isEditMode=!1;M.touchCaptionsEnabled=!1;M.deleteCaptionCorrectionPopupCommand=null;M.voteCaptionCorrectionPopupCommand=null;M.roundedContainer=!0;M.mouseOver=!1;M.textChanged=!1;M.messages={suggest_correction:_.le("suggest_correction",void 0,"Edit caption"),suggested_caption:_.le("suggested_caption",void 0,"Suggested caption"),submit_correction:_.le("submit_correction",void 0,"Submit for review"),cancel_correction:_.le("cancel_correction",
void 0,"Cancel"),replay_segment:_.le("replay_segment",void 0,"Re-play segment"),delete_correction:_.le("delete_correction",void 0,"Delete correction")};M.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return M};
_.v(Gk,_.n);_.F=Gk.prototype;_.F.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)};
_.F.handleDelete=function(M){if(this.deleteCaptionCorrectionPopupCommand){var d=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);d&&this.ytdOpenPopupBehavior.openPopup(d);M.stopPropagation()}};
_.F.handleSubmit=function(M){if(this.data&&this.data.submitCaptionCorrectionCommand&&(M.stopPropagation(),this.textChanged)){var d;M=(d=_.q(this.data.submitCaptionCorrectionCommand,_.H4g))==null?void 0:d.params;d=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:M,correctionText:String(this.ironTextAreaElement.value),originalText:_.HD(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(d);this.isEditMode=!1}};
_.F.handleUpdateSegmentText=function(M){(M=_.q(M,wdD))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&(M.userCorrection&&(this.editedText=M.userCorrection),M.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.HD(this.data.snippet)),M.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=M.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=M.voteCaptionCorrectionPopupCommand?
M.voteCaptionCorrectionPopupCommand:null,M.accessibility&&(this.segmentAriaLabel=M.accessibility.accessibilityData.label))};
_.F.handleCancel=function(M){this.isEditMode=!1;M.stopPropagation();this.logClientVe(159409)};
_.F.handleEditSegmentCommand=function(M){(M=_.q(M,W_C))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&this.handleEdit()};
_.F.handleEditButtonClick=function(M){this.data&&(this.handleEdit(),M.stopPropagation())};
_.F.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var M;(M=this.ironTextAreaElement.textarea)==null||M.focus();this.logClientVe(159407)}};
_.F.handleMouseEnter=function(){this.mouseOver=!0};
_.F.handleMouseLeave=function(){this.mouseOver=!1};
_.F.handleReplay=function(M){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),M.stopPropagation(),this.logClientVe(159408))};
_.F.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()))};
_.F.handleKeypress=function(M){this.data&&(this.isEditMode?M.stopPropagation():this.isEnterPress(M)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(M)&&this.logClientVe(138758))};
_.F.handleTextboxClick=function(M){M.stopPropagation()};
_.F.handleTextboxKeydown=function(M){this.isControlEnterPress(M)?this.handleSubmit(M):M.key==="Escape"&&this.handleCancel(M)};
_.F.handleTextboxKeyup=function(){this.textChanged=_.HD(this.latestText)!==String(this.ironTextAreaElement.value)};
_.F.fireSelectedEvent=function(M){_.YP(this.hostElement,"yt-transcript-segment-selected",{startMs:M})};
_.F.fireReplayEvent=function(M,d){_.YP(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(M-100,0),endMs:d})};
_.F.fireEditEvent=function(M,d){_.YP(this.hostElement,"yt-transcript-segment-edit",{startMs:M,endMs:d})};
_.F.isEnterPress=function(M){return M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13?!0:!1};
_.F.isControlEnterPress=function(M){var d=M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13;return(M.ctrlKey||M.metaKey)&&d};
_.F.isCopyPress=function(M){var d=M.ctrlKey;return M.key==="c"&&d};
_.F.logClick=function(){var M,d=(M=this.data)==null?void 0:M.trackingParams;d&&_.FD(_.Nx(),d)};
_.F.logClientVe=function(M){_.XD(_.Nx(),_.Tx(M))};
_.Hm.Object.defineProperties(Gk.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}}});
Gk.prototype.handleMouseLeave=Gk.prototype.handleMouseLeave;Gk.prototype.handleMouseEnter=Gk.prototype.handleMouseEnter;Gk.prototype.dataChanged=Gk.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Gk.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],Gk.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"isEditMode",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"touchCaptionsEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"editedText",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.G([_.H(),_.a("design:type",String)],Gk.prototype,"segmentAriaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"roundedContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"mouseOver",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Gk.prototype,"textChanged",void 0);_.G([_.H(),_.a("design:type",Object)],Gk.prototype,"messages",void 0);
_.G([_.Z3("#suggestion"),_.a("design:type",Object)],Gk.prototype,"ironTextAreaElement",void 0);_.G([_.z("data","editedText"),_.a("design:type",Object),_.a("design:paramtypes",[])],Gk.prototype,"latestText",null);_.G([_.z("touchCaptionsEnabled","isEditMode"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Gk.prototype,"enableEditButton",null);
_.G([_.z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Gk.prototype,"enableUndoButton",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gk.prototype,"dataChanged",null);_.G([_.C3("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gk.prototype,"handleMouseEnter",null);
_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gk.prototype,"handleMouseLeave",null);Gk=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Gk);
_.L(Gk,"ytd-transcript-segment-renderer",function(){if(JgT!==void 0)return JgT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return JgT=M},{mode:1});var ao=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};M.isError=!1;M.darkerPanels=_.Q("web_watch_darker_panels");M.segmentOffsets=[];M.segmentIndex=-1;return M};
_.v(ao,_.n);_.F=ao.prototype;_.F.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"}}}}};
_.F.segmentsChanged=function(){this.updateOffsets()};
_.F.onYtPlayerTimeChanged=function(M){for(var d=this.segmentIndex,N=d;;){if(N>=0){var R=this.segmentOffsets[N].start;var X=this.segmentOffsets[N].isAutoScrollable}else R=-1,X=!0;var A=M+.5;if(!X){R=N+1<this.segmentOffsets.length?this.segmentOffsets[N+1].start:Infinity;if(A>=R){N+=1;continue}N=-1;break}if(A<R)R=N-1>=0&&this.segmentOffsets[N-1].isAutoScrollable,X=N===0||R?1:2,N-=X;else if(X=N+1<this.segmentOffsets.length&&this.segmentOffsets[N+1].isAutoScrollable?1:2,R=N+X<this.segmentOffsets.length?
this.segmentOffsets[N+X].start:Infinity,A>R)N+=X;else{if(N<0)break;N<this.segmentOffsets.length&&A>this.segmentOffsets[N].end&&(N=-1);break}}if(d!==N){if(d>=0){var l;(l=this.getSegmentElement(d))==null||l.classList.remove("active")}this.segmentIndex=N;if(!(N<0)){var k;(k=this.getSegmentElement(N))==null||k.classList.add("active");this.isHovered||this.scrollElementToTop(N)}}};
_.F.handleSegmentEdit=function(M){M.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=M.target,_.ZI(this.hostElement,"yt-transcript-player-edit",[M.detail.startMs/1E3,M.detail.endMs/1E3]))};
_.F.handleSegmentSelected=function(M){_.ZI(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.F.handleSegmentReplay=function(M){_.ZI(this.hostElement,"yt-transcript-player-replay",[M.detail.startMs/1E3,M.detail.endMs/1E3])};
_.F.handleSectionHeaderSelected=function(M){_.ZI(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.F.onMouseEnter=function(){this.isHovered=!0};
_.F.onMouseLeave=function(){this.isHovered=!1};
_.F.onRetryButtonClick=function(){_.YP(this.hostElement,"transcript-retry-button-click")};
_.F.getSegmentElement=function(M){return _.K(this.hostElement).querySelector(":nth-child("+(M+1)+")")};
_.F.scrollElementToTop=function(M){M=this.getSegmentElement(M>=2?M-2:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.F.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(M){var d,N=(d=M.transcriptSegmentRenderer)!=null?d:M.transcriptSectionHeaderRenderer;return{start:Number(N.startMs)/1E3,end:Number(N.endMs)/1E3,isAutoScrollable:M.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.F.clearHighlightedSegments=function(){var M=_.K(this.hostElement);M=_.V(M.querySelectorAll("ytd-transcript-segment-renderer"));for(var d=M.next();!d.done;d=M.next())d.value.classList.remove("active")};
_.Hm.Object.defineProperties(ao.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.searchResultSegments)||((d=this.data)==null?void 0:d.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
ao.prototype.onMouseLeave=ao.prototype.onMouseLeave;ao.prototype.onMouseEnter=ao.prototype.onMouseEnter;ao.prototype.handleSectionHeaderSelected=ao.prototype.handleSectionHeaderSelected;ao.prototype.handleSegmentReplay=ao.prototype.handleSegmentReplay;ao.prototype.handleSegmentSelected=ao.prototype.handleSegmentSelected;ao.prototype.handleSegmentEdit=ao.prototype.handleSegmentEdit;ao.prototype.segmentsChanged=ao.prototype.segmentsChanged;
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ao.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ao.prototype,"isError",void 0);
_.G([_.H(),_.a("design:type",Object)],ao.prototype,"noResultLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ao.prototype,"darkerPanels",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],ao.prototype,"segments",null);_.G([_.z("segments","noResultLabel"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ao.prototype,"displayNoResults",null);
_.G([_.xB("segments"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"segmentsChanged",null);_.G([_.C3("yt-transcript-segment-edit"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSegmentEdit",null);_.G([_.C3("yt-transcript-segment-selected"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSegmentSelected",null);
_.G([_.C3("yt-transcript-segment-replay"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSegmentReplay",null);_.G([_.C3("ytd-transcript-section-header"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ao.prototype,"handleSectionHeaderSelected",null);_.G([_.C3("mouseenter"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"onMouseEnter",null);
_.G([_.C3("mouseleave"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ao.prototype,"onMouseLeave",null);ao=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],ao);
_.L(ao,"ytd-transcript-segment-list-renderer",function(){if(ygT!==void 0)return ygT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ygT=M},{mode:1});var UR=function(){var M=_.n.apply(this,arguments)||this;M.hideTimestamps=!!_.F5("hide-transcript-timestamps");M.isLoadingTranscripts=!1;M.darkerPanels=_.Q("web_watch_darker_panels");M.isError=!1;M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return M};
_.v(UR,_.n);_.F=UR.prototype;_.F.headerChanged=function(){var M,d;this.baseGetTranscriptsCommand=(d=_.q((M=this.data)==null?void 0:M.header,pdT))==null?void 0:d.onTextChangeCommand};
_.F.bodyChanged=function(){var M=this.getBodyRenderer();M&&(M.initialSegments&&(this.initialTranscriptsRenderer=M),M.noResultLabel&&(this.noResultLabel=M.noResultLabel),M.retryLabel&&(this.retryLabel=M.retryLabel))};
_.F.detached=function(){this.clearSearchBoxText()};
_.F.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.F.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"}}}};
_.F.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.F.fireSearch=function(M){var d=this;if(M){var N=M.detail.query;if(this.baseGetTranscriptsCommand){var R;M=(R=_.q(this.baseGetTranscriptsCommand,_.cYe))==null?void 0:R.params;var X;R=_.q((X=this.data)==null?void 0:X.footer,McC);var A;if((X=(A=_.q(R==null?void 0:R.languageMenu,Tn$))==null?void 0:A.subMenuItems)&&X.length>0&&(A=X.find(function(T){return T.selected}))){var l,k;
M=(l=A.continuation)==null?void 0:(k=l.reloadContinuationData)==null?void 0:k.continuation}l=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:M,searchQuery:N}});this.ytComponentBehavior.resolveCommand(l,{commandController:{onServerError:function(){d.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});zoi(this.ytContinuationHandlerBehavior,function(){return N===d.getCurrentSearchBoxText()})}}};
_.F.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.F.onRetryButtonClick=function(){this.isError=!1;var M={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:M}))};
_.F.hideTimestampsChanged=function(){_.X5("hide-transcript-timestamps",this.hideTimestamps)};
_.F.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.F.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.F.handleSignalActionCopyTranscript=function(){var M=this,d=this.getBodyRenderer();d&&(d=((d==null?void 0:d.searchResultSegments)||(d==null?void 0:d.initialSegments)||[]).map(function(N){return _.q(N,hR9)}).filter(function(N){return!!N}).map(function(N){return{snippet:N.snippet||{runs:[{text:""}]},
startTimeText:N.startTimeText||{simpleText:""}}}).map(function(N){var R=(N.snippet.runs||[]).reduce(function(X,A){return X+A.text},"");
return M.hideTimestamps?R:N.startTimeText.simpleText+" "+R}).join("\n"),this.copyToClipboard(d))};
_.F.copyToClipboard=function(M){navigator.clipboard&&navigator.clipboard.writeText(M)};
_.F.getCurrentSearchBoxText=function(){var M;return(M=this.searchBox)==null?void 0:M.value};
_.F.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.F.getBodyRenderer=function(){var M;return _.q((M=this.data)==null?void 0:M.body,m8J)};
_.F.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Hm.Object.defineProperties(UR.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
UR.prototype.hideTimestampsChanged=UR.prototype.hideTimestampsChanged;UR.prototype.searchCleared=UR.prototype.searchCleared;UR.prototype.fireSearch=UR.prototype.fireSearch;UR.prototype.onReloadContinuationFinish=UR.prototype.onReloadContinuationFinish;UR.prototype.bodyChanged=UR.prototype.bodyChanged;UR.prototype.headerChanged=UR.prototype.headerChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],UR.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],UR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],UR.prototype,"hideTimestamps",void 0);
_.G([_.H(),_.a("design:type",Object)],UR.prototype,"isLoadingTranscripts",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],UR.prototype,"darkerPanels",void 0);_.G([_.H(),_.a("design:type",Object)],UR.prototype,"isError",void 0);_.G([_.xB("data.header"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"headerChanged",null);
_.G([_.NS("data.body"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"bodyChanged",null);_.G([_.C3("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"onReloadContinuationFinish",null);_.G([_.C3("yt-transcript-search-box-search"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],UR.prototype,"fireSearch",null);
_.G([_.C3("yt-transcript-search-box-clear"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"searchCleared",null);_.G([_.xB("hideTimestamps"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UR.prototype,"hideTimestampsChanged",null);UR=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],UR);
_.L(UR,"ytd-transcript-search-panel-renderer",function(){if(rgi!==void 0)return rgi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return rgi=M},{mode:1});var uz=function(){var M=_.n.apply(this,arguments)||this;M.player=null;M.playerPollJobId=0;return M};
_.v(uz,_.n);_.F=uz.prototype;_.F.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.F.onLoadReloadContinuation=function(M){_.Q("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:M.target.data.continuation}}):(M={clickTrackingParams:M.target.data.clickTrackingParams,getTranscriptEndpoint:{params:M.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}}))};
_.F.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"}}}};
_.F.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.F.attached=function(){this.updatePlayerListening()};
_.F.detached=function(){this.updatePlayerListening()};
_.F.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.F.startPlayerListening=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return(d=_.nO())?_.D(N,d.getPlayerPromise(),2):N.return();M.player=N.yieldResult;M.playerPollJobId=_.IQ.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3);
M.player.addEventListener("onCueRangeEnter",function(R){M.onCueRangeEnter(R)});
M.player.addEventListener("onCueRangeExit",function(R){M.onCueRangeExit(R)});
M.player.addEventListener("onStateChange",function(R){M.onPlayerStateChange(R)});
M.player.addEventListener("SEEK_TO",function(R){M.onPlayerSeek(R)});
_.Vy(N)})};
_.F.getPlayerVideoProgress=function(){var M=this;_.IQ.cancelJob(this.playerPollJobId);if(this.player){var d=this.player.getCurrentTime();_.ZI(this.hostElement,"yt-player-time-changed",[d])}this.playerPollJobId=_.IQ.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3)};
_.F.stopPlayerListening=function(){this.player=null;_.IQ.cancelJob(this.playerPollJobId)};
_.F.onPlayerStateChange=function(M){M===2&&this.removePendingCue()};
_.F.onPlayerSeek=function(M){var d;if(d=this.pendingReplayCueId)d=this.pendingReplayCueId,d=M===(_.Q("web_transcript_cue_id_killswitch")?Number(d):Number(d.split("_")[1]));d||this.removePendingCue()};
_.F.onCueRangeEnter=function(M){V0i(M)&&(this.pendingReplayCueId=M)};
_.F.onCueRangeExit=function(M){V0i(M)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.F.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.F.onYtTranscriptPlayerSeek=function(M){this.player&&this.player.seekTo(M,!0)};
_.F.onYtTranscriptPlayerReplay=function(M,d){this.player&&(this.player.addCueRange(APe(M),M,d),this.player.seekTo(M,!0),this.player.playVideo())};
_.F.onYtTranscriptPlayerEdit=function(M,d){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(APe(M),M,d),this.player.seekTo(M,!0))};
uz.prototype.onLoadReloadContinuation=uz.prototype.onLoadReloadContinuation;uz.prototype.panelContentVisibleChanged=uz.prototype.panelContentVisibleChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],uz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],uz.prototype,"panelContentVisible",void 0);_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uz.prototype,"panelContentVisibleChanged",null);
_.G([_.C3("yt-load-reload-continuation"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],uz.prototype,"onLoadReloadContinuation",null);uz=_.G([_.f({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],uz);
_.L(uz,"ytd-transcript-renderer",function(){if(PTr!==void 0)return PTr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return PTr=M},{mode:1});var cgY;var Shi;var CM=function(){return _.n.apply(this,arguments)||this};
_.v(CM,_.n);CM.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Ni(this.hostElement,[this.data.clickCommand],this.hostElement))};
CM.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.pl)()+_.c9)+"px)"};
CM.prototype.updateShouldHideFromBinding=function(M){this.shouldHide=M.detail.value};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CM.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CM.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],CM.prototype,"shouldHide",void 0);CM=_.G([_.f({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],CM);
_.L(CM,"ytd-ad-engagement-panel-banner-renderer",function(){if(Shi!==void 0)return Shi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Shi=M},{mode:_.G3("kevlar_poly_si_batch_j070")?1:2});var zYd;var xG=function(){var M=_.n.apply(this,arguments)||this;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.buttonUpdate=_.Q("web_modern_buttons");M.adsSemanticText=_.Q("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.v(xG,_.n);xG.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.G([_.H(),_.a("design:type",Object)],xG.prototype,"data",void 0);_.G([_.H({computed:"computeHideDefaultAdBadge(data)"}),_.a("design:type",Boolean)],xG.prototype,"hideDefaultAdBadge",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xG.prototype,"modernPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xG.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],xG.prototype,"adsSemanticText",void 0);
xG=_.G([_.f({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],xG);
_.L(xG,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(zYd!==void 0)return zYd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zYd=M},{mode:1});var bcG;var YG=function(){var M=_.n.apply(this,arguments)||this;M.darkerPanels=_.Q("web_watch_darker_panels");M.enableSqueezebackPanels=_.Q("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.modernPanels=_.Q("kevlar_watch_modern_panels");M.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return M};
_.v(YG,_.n);_.F=YG.prototype;_.F.computeAdsInfoButton=function(){if(_.Q("web_modern_buttons")){var M,d;return(d=_.q((M=this.data)==null?void 0:M.subtitleComplex,d8d))==null?void 0:d.adInfoRenderer}};
_.F.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}}}}}};
_.F.collapsedChanged=function(){var M;(M=this.data)!=null&&M.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.Q("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.F.focus=function(M){this.titleElement&&_.e6(this.titleElement,M)};
_.F.computeTitleAriaLabel=function(M){var d=[];if(M.title){var N,R;d.push(this.ytRendererBehavior.getSimpleString(M.title)||((N=M.title.accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label))}M.contextualInfo&&d.push(this.ytRendererBehavior.getSimpleString(M.contextualInfo));return d.join(" ")};
_.F.onHeaderClick=function(M){this.shouldTriggerHeaderClick(M)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Ni(this.hostElement,[this.data.onClickCommand],this.hostElement)):(M=this.getVisibilityToggleButton())&&M.click())};
_.F.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var M=_.q(this.data.visibilityButton,_.K9)||_.q(this.data.visibilityButton,_.yP);M&&this.ytRendererBehavior.logExplicitClick(M)}};
_.F.getVisibilityToggleButton=function(){var M=_.K(this.hostElement).querySelector("#visibility-button").firstElementChild;return(M==null?void 0:M.is)==="ytd-toggle-button-renderer"?M:null};
_.F.shouldTriggerHeaderClick=function(M){return!_.Sm(_.J2(M),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.F.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(M){M=_.q(M,_.aU4);this.targetId&&(M==null?void 0:M.targetId)===this.targetId&&(M=M.navigationButton)&&this.set("data.navigationButton",M)};
_.Hm.Object.defineProperties(YG.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.Q("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!!(((M=this.entity)==null?0:M.isActionButtonHidden)||this.hideActionButton)}}});
YG.prototype.collapsedChanged=YG.prototype.collapsedChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],YG.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],YG.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],YG.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],YG.prototype,"targetId",void 0);_.G([_.H(),_.a("design:type",Boolean)],YG.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Boolean)],YG.prototype,"hideActionButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],YG.prototype,"shortsPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],YG.prototype,"liveChatEngagementPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"darkerPanels",void 0);_.G([_.Z3("#title"),_.a("design:type",HTMLElement)],YG.prototype,"titleElement",void 0);_.G([_.H({computed:"computeAdsInfoButton(data)"}),_.a("design:type",Object)],YG.prototype,"adsInfoButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"enableSqueezebackPanels",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"enableAnchoredPanel",void 0);_.G([_.H({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(M,d){return _.Rz(M.entities,"engagementPanelTitleHeaderEntity",d)}}),
_.a("design:type",Object)],YG.prototype,"entity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YG.prototype,"modernPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("targetId"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YG.prototype,"adsSemanticText",null);_.G([_.NS("collapsed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YG.prototype,"collapsedChanged",null);
_.G([_.z("entity","hideActionButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YG.prototype,"isActionButtonHidden",null);YG=_.G([_.f({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],YG);
_.L(YG,"ytd-engagement-panel-title-header-renderer",function(){if(bcG!==void 0)return bcG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bcG=M},{mode:1});var eY$;var Zr=function(){return _.n.apply(this,arguments)||this};
_.v(Zr,_.n);Zr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zr.prototype,"data",void 0);Zr=_.G([_.f({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Zr);
_.L(Zr,"ytd-macro-markers-info-item-renderer",function(){if(eY$!==void 0)return eY$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return eY$=M},{mode:1});var HcJ;var fad=function(M,d,N,R,X,A){_.DL.call(this);var l=this;this.JSC$19996_containerElement=M;this.hostElement=d;this.supportedSyncItems=N;this.syncEntityKey=R;this.options=X;this.renderLazyListItems=A;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;nbr(this);icq(this);this.JSC$19996_scrollAnimation=new _.qk(function(k){M.scrollTop=k});
_.RW(this,this.JSC$19996_scrollAnimation);this.addOnDisposeCallback(function(){l.exitBrowsingMode(!1);l.activeItem&&l.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.v(fad,_.DL);var nbr=function(M){var d=_.kO(_.h().resolve(_.ql),function(N){return N.entities.markersEngagementPanelSyncEntity||{}},function(N,R){var X;
N[M.syncEntityKey]!==R[M.syncEntityKey]&&((X=N[M.syncEntityKey])==null?void 0:X.activeItemIndex)!==void 0&&M.updatePanelActiveItem(N[M.syncEntityKey].activeItemIndex)});
M.unsubscribeFromTimedMarkersListSyncEntity=d;M.addOnDisposeCallback(d);LCT(M)},LCT=function(M){var d=_.h().resolve(_.ql);
d=_.GgZ(d.getState(),M.syncEntityKey);(d==null?void 0:d.activeItemIndex)!==void 0&&(d=M.getItemByIndex(d.activeItemIndex))&&M.setActiveItem(d)},icq=function(M){var d=new _.ua(M.onScroll,50,M);
_.RW(M,d);var N=function(){d.fire()};
M.JSC$19996_containerElement.addEventListener("scroll",N);M.addOnDisposeCallback(function(){M.JSC$19996_containerElement.removeEventListener("scroll",N)})};
_.F=fad.prototype;
_.F.updatePanelActiveItem=function(M){var d=this.getItemByIndex(M);if(d){if(this.setActiveItem(d),this.contentVisible)if(this.browsingMode){var N;((N=this.options)==null?void 0:N.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(M=tnq(this),d.offsetTop<this.JSC$19996_containerElement.clientHeight+this.JSC$19996_containerElement.scrollTop&&M&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));GzY(this)}else this.scrollToItem(d)}else _.vh(new _.WJ("Could not find "+this.supportedSyncItems+
" sync child to set active.",M,this.JSC$19996_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.F.getItemByIndex=function(M){var d;(d=this.renderLazyListItems)==null||d.call(this,M);d=this.JSC$19996_containerElement.querySelectorAll(this.supportedSyncItems);if(d.length>M)return d[M]};
_.F.setActiveItem=function(M){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));M.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=M};
_.F.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.JSC$19996_containerElement.scrollTop!==M&&this.JSC$19996_scrollAnimation.start(this.JSC$19996_containerElement.scrollTop,M,300)};
_.F.getScrollPositionForItem=function(M){if(this.JSC$19996_containerElement.querySelectorAll(this.supportedSyncItems)[0]===M)return 0;var d,N=((d=this.options)==null?0:d.percentOffset)?this.JSC$19996_containerElement.clientHeight*this.options.percentOffset:0;M=_.vT(M).y+this.JSC$19996_containerElement.scrollTop-(_.vT(this.JSC$19996_containerElement).y+N);return Math.max(0,Math.min(M,this.JSC$19996_containerElement.scrollHeight-this.JSC$19996_containerElement.offsetHeight))};
_.F.onScroll=function(){this.activeItemBelowSyncPosition=tnq(this);if(this.activeItem&&!this.JSC$19996_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19996_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var M;switch((M=this.options)==null?void 0:M.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!aar(this));GzY(this);break;default:this.enterBrowsingMode(!0)}}};
_.F.enterBrowsingMode=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(d.browsingMode)return X.return();d.browsingMode=!0;M&&d.hostElement.classList.add("browsing-mode");d.playerExitBrowsingModeListener=function(){d.exitBrowsingMode(!1)};
return _.D(X,_.YF(),2)}N=X.yieldResult;(R=N)==null||R.addEventListener("SEEK_TO",d.playerExitBrowsingModeListener);_.Vy(X)})};
_.F.exitBrowsingMode=function(M){M=M===void 0?!0:M;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),M&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.F.removePlayerSeekListener=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return M.playerExitBrowsingModeListener?_.D(R,_.YF(),3):R.jumpTo(0);d=R.yieldResult;(N=d)==null||N.removeEventListener("SEEK_TO",M.playerExitBrowsingModeListener);M.playerExitBrowsingModeListener=void 0;_.Vy(R)})};
var GzY=function(M){var d;((d=M.options)==null?void 0:d.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(aar(M)?M.hostElement.classList.remove("browsing-mode"):M.activeItem&&M.hostElement.classList.add("browsing-mode"))},tnq=function(M){if(!M.activeItem)return!1;
var d,N=((d=M.options)==null?0:d.percentOffset)?M.JSC$19996_containerElement.clientHeight*M.options.percentOffset:0;return M.activeItem.offsetTop>=M.JSC$19996_containerElement.scrollTop+N},aar=function(M){if(!M.activeItem)return!1;
var d=M.activeItem.offsetTop+14<=M.JSC$19996_containerElement.scrollTop+M.JSC$19996_containerElement.clientHeight;return M.activeItem.offsetTop+M.activeItem.clientHeight-14>=M.JSC$19996_containerElement.scrollTop&&d};
fad.prototype.panelContentVisibleChanged=function(M){(this.contentVisible=M)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var U7G=function(M,d){M.syncEntityKey=d;var N;(N=M.unsubscribeFromTimedMarkersListSyncEntity)==null||N.call(M);nbr(M)},uFe=function(M,d){M.options=d};var ER=function(){var M=_.n.apply(this,arguments)||this;M.browsingMode=!1;M.modern=_.Q("web_button_rework");M.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return M};
_.v(ER,_.n);_.F=ER.prototype;_.F.activeItemChanged=function(){if(!_.Q("synced_panel_scrolling_controller")){var M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.F.created=function(){var M=this;_.Q("synced_panel_scrolling_controller")||(this.JSC$20000_scrollAnimation=new _.qk(function(d){M.contents.scrollTop=d}),this.boundExitBrowsingMode=function(){M.exitBrowsingMode(!1)})};
_.F.detached=function(){if(_.Q("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.F.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"}}}};
_.F.dataChanged=function(){var M=this;_.Q("synced_panel_scrolling_controller")?_.bM(this,function(){if(M.scrollController){var d;(d=M.scrollController)==null||d.exitBrowsingMode(!1);var N,R,X;(R=M.scrollController)==null||U7G(R,(X=(N=M.data)==null?void 0:N.syncModelEntityKey)!=null?X:"default-macro-markers-list-renderer-entity-key");var A,l,k;(k=M.scrollController)==null||uFe(k,{percentOffset:(A=M.data)==null?void 0:A.selectedItemAlignmentPercentOffset,floatingPillType:(l=M.data)==null?void 0:l.floatingPillType})}else{var T,
W,w,p;M.scrollController=new fad(M.contents,M.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(p=(T=M.data)==null?void 0:T.syncModelEntityKey)!=null?p:"default-macro-markers-list-renderer-entity-key",{percentOffset:(W=M.data)==null?void 0:W.selectedItemAlignmentPercentOffset,floatingPillType:(w=M.data)==null?void 0:w.floatingPillType},function(m){M.renderLazyListItems(m)})}M.scrollController.panelContentVisibleChanged(!!M.panelContentVisible)}):this.exitBrowsingMode()};
_.F.computeButtonShape=function(){var M=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){M.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.F.computeSyncEnabled=function(M){return!(M==null||!M.syncButtonLabel)};
_.F.renderLazyListItems=function(M){for(var d=this.contents.children,N=0,R=0;R<d.length;R++){var X=void 0;(X=d[R].ytLazyListBehavior)==null||X.fillRemainingListItems();var A=void 0,l=void 0;X=_.q((A=this.data)==null?void 0:(l=A.contents)==null?void 0:l[R],_.cgi);l=A=void 0;if((A=X)==null?0:(l=A.contents)==null?0:l.length)N+=X.contents.length;if(N>=M)break}};
_.F.getItemByIndex=function(M){this.renderLazyListItems(M);var d=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(d.length>M)return d[M]};
_.F.setActiveItem=function(M){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);M.active!==void 0&&(M.active=!0);this.currentActiveItem=M};
_.F.handleSetActivePanelItemAction=function(M){if((M=_.q(M,u$q))&&this.panelTargetId===M.panelTargetId){M=M.itemIndex;if(_.Q("synced_panel_scrolling_controller")){var d,N;var R=(N=(d=this.data)==null?void 0:d.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key"}else{var X;R=(X=this.data)==null?void 0:X.syncModelEntityKey}if(R){var A;((A=this.syncEntity)==null?void 0:A.activeItemIndex)!==M&&this.ytdReduxBehavior.dispatch(_.la("markersEngagementPanelSyncEntity",R,{key:R,activeItemIndex:M}))}else this.updatePanelActiveItem(M)}};
_.F.updatePanelActiveItem=function(M){var d=this.getItemByIndex(M);d?(this.setActiveItem(d),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(d)):_.vh(new _.WJ("Could not find ytd-macro-markers-list-renderer sync child to set active.",M,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.F.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.contents.scrollTop!==M&&this.JSC$20000_scrollAnimation.start(this.contents.scrollTop,M,300)};
_.F.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===M)return 0;M=_.vT(M).y+this.contents.scrollTop-_.vT(this.contents).y-this.getStickyHeaderHeight(M);return Math.min(M,this.contents.scrollHeight-this.contents.offsetHeight)};
_.F.getStickyHeaderHeight=function(M){if(M.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var d,N,R;return(R=(d=M.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(N=d.header)==null?void 0:N.offsetHeight)!=null?R:0}return 0};
_.F.onScroll=function(){_.Q("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20000_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.F.enterBrowsingMode=function(){var M=this;return _.B(function(d){if(d.nextAddress==1){if(M.browsingMode)return d.return();M.browsingMode=!0;return _.D(d,_.iG().getPlayerPromise(),2)}M.player=d.yieldResult;M.player.addEventListener("SEEK_TO",M.boundExitBrowsingMode);_.Vy(d)})};
_.F.exitBrowsingMode=function(M){this.browsingMode&&(this.browsingMode=!1,(M===void 0||M)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.F.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.F.onSyncClick=function(){if(_.Q("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.exitBrowsingMode()}else this.exitBrowsingMode()};
_.F.panelContentVisibleChanged=function(){if(_.Q("synced_panel_scrolling_controller")){var M;(M=this.scrollController)==null||M.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
ER.prototype.panelContentVisibleChanged=ER.prototype.panelContentVisibleChanged;ER.prototype.dataChanged=ER.prototype.dataChanged;ER.prototype.activeItemChanged=ER.prototype.activeItemChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ER.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],ER.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ER.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],ER.prototype,"useCustomColors",void 0);_.G([_.H({computed:"computeSyncEnabled(data)"}),_.a("design:type",Boolean)],ER.prototype,"syncEnabled",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],ER.prototype,"panelTargetId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ER.prototype,"panelContentVisible",void 0);_.G([_.Z3("#contents"),_.a("design:type",HTMLElement)],ER.prototype,"contents",void 0);_.G([_.Z3("#sync-container"),_.a("design:type",HTMLElement)],ER.prototype,"syncContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ER.prototype,"browsingMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],ER.prototype,"modern",void 0);_.G([_.H({selectorArgs:["data.syncModelEntityKey"],selector:_.GgZ}),_.a("design:type",Object)],ER.prototype,"syncEntity",void 0);_.G([_.xB("syncEntity.activeItemIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ER.prototype,"activeItemChanged",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ER.prototype,"dataChanged",null);_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ER.prototype,"panelContentVisibleChanged",null);ER=_.G([_.f({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],ER);
_.L(ER,"ytd-macro-markers-list-renderer",function(){if(HcJ!==void 0)return HcJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return HcJ=M},{mode:1});var CTT;var MR=function(){return _.n.apply(this,arguments)||this};
_.v(MR,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MR.prototype,"data",void 0);MR=_.G([_.f({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],MR);
_.L(MR,"ytd-error-corrections-section-item-renderer",function(){if(CTT!==void 0)return CTT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return CTT=M},{mode:1});var x7J;var dO=function(){return _.n.apply(this,arguments)||this};
_.v(dO,_.n);dO.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dO.prototype,"data",void 0);dO=_.G([_.f({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],dO);
_.L(dO,"ytd-error-corrections-section-renderer",function(){if(x7J!==void 0)return x7J;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return x7J=M},{mode:1});var Yh$;var NR=function(){return _.n.apply(this,arguments)||this};
_.v(NR,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],NR.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NR.prototype,"data",void 0);NR=_.G([_.f({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],NR);
_.L(NR,"ytd-topic-link-renderer",function(){if(Yh$!==void 0)return Yh$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Yh$=M},{mode:1});var Zcq;var RP=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.modernLockupV2=_.Q("modernize_structured_description_playlist_lockups_v2");M.modernTypography=_.Q("web_modern_typography");return M};
_.v(RP,_.n);RP.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RP.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RP.prototype,"modernLockupV2",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],RP.prototype,"modernTypography",void 0);RP=_.G([_.f({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],RP);
_.L(RP,"ytd-video-description-course-section-renderer",function(){if(Zcq!==void 0)return Zcq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Zcq=M},{mode:1});var Ebe;var Xm=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.modernTypography=_.Q("web_modern_typography");return M};
_.v(Xm,_.n);Xm.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xm.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Xm.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Xm.prototype,"modernTypography",void 0);
Xm=_.G([_.f({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Xm);
_.L(Xm,"ytd-video-description-files-section-renderer",function(){if(Ebe!==void 0)return Ebe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ebe=M},{mode:1});var M_T;var Fm=function(){return _.n.apply(this,arguments)||this};
_.v(Fm,_.n);Fm.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fm.prototype,"data",void 0);Fm=_.G([_.f({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Fm);
_.L(Fm,"ytd-video-description-gaming-section-renderer",function(){if(M_T!==void 0)return M_T;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return M_T=M},{mode:1});var d39;var A7=function(){var M=_.n.apply(this,arguments)||this;M.isExpanded=!1;return M};
_.v(A7,_.n);A7.prototype.computeHasDefaultMetadataEndpoint=function(M){var d;M=M==null?void 0:(d=M.defaultMetadata)==null?void 0:d.runs;return!(!M||M.length!==1||!M[0].navigationEndpoint)};
A7.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Hm.Object.defineProperties(A7.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],A7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A7.prototype,"isExpanded",void 0);_.G([_.H({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],A7.prototype,"hasDefaultMetadataEndpoint",void 0);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],A7.prototype,"isExpandable",null);_.G([_.z("data","isExpandable","isExpanded"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],A7.prototype,"showExpandedMetadata",null);A7=_.G([_.f({is:"ytd-info-row-renderer",disableElementRegistration:!0})],A7);
_.L(A7,"ytd-info-row-renderer",function(){if(d39!==void 0)return d39;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return d39=M},{mode:1});var N8P;var V6=function(){var M=_.n.apply(this,arguments)||this;M.currentIndex=0;M.supportComponentResize=!0;M.modern=_.Q("kevlar_modern_sd_v2");M.JSC$20026_lastScrollContainerWidth=NaN;return M};
_.v(V6,_.n);_.F=V6.prototype;
_.F.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"}}}};
_.F.getItemsPath=function(){return"videoLockups"};
_.F.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.F.onIronResize=function(){this.updateVideoLockupStyles()};
_.F.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.F.updateVideoLockupStyles=function(){var M;this.JSC$20026_scrollContainer!==void 0&&(M=this.videoLockups)!=null&&M.length&&(M=this.JSC$20026_scrollContainer.clientWidth,M!==this.JSC$20026_lastScrollContainerWidth&&(this.JSC$20026_lastScrollContainerWidth=M,_.UO(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(M*.8,415)+"px"}),_.YP(this.hostElement,"iron-resize")))};
_.Hm.Object.defineProperties(V6.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var M=[],d;if((d=this.data)==null||!d.carouselLockups)return M;d=_.V(this.data.carouselLockups);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;((R=_.q(N,vNJ))==null?0:R.videoLockup)&&M.push(_.q(N,vNJ).videoLockup)}return M}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoLockups)==null||!M.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var M=[],d;if((d=this.data)==null||!d.carouselLockups)return M;var N;return(N=_.q(this.data.carouselLockups[this.scrollCount],vNJ))==null?void 0:N.infoRows}}});
V6.prototype.dataChanged=V6.prototype.dataChanged;V6.prototype.onIronResize=V6.prototype.onIronResize;V6.prototype.hiddenChanged=V6.prototype.hiddenChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],V6.prototype,"componentBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],V6.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],V6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],V6.prototype,"inlineStructuredDescription",void 0);_.G([_.H({value:2}),_.a("design:type",Number)],V6.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",Object)],V6.prototype,"currentIndex",void 0);
_.G([_.H(),_.a("design:type",Number)],V6.prototype,"scrollCount",void 0);_.G([_.H(),_.a("design:type",Object)],V6.prototype,"supportComponentResize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],V6.prototype,"contentHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],V6.prototype,"modern",void 0);_.G([_.Z3("#scroll-container"),_.a("design:type",HTMLDivElement)],V6.prototype,"JSC$20026_scrollContainer",void 0);
_.G([_.xB("contentHidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V6.prototype,"hiddenChanged",null);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],V6.prototype,"videoLockups",null);_.G([_.z("videoLockups"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],V6.prototype,"hasVideoLockups",null);
_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V6.prototype,"onIronResize",null);_.G([_.z("data","scrollCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],V6.prototype,"infoRows",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V6.prototype,"dataChanged",null);V6=_.G([_.f({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],V6);
_.L(V6,"ytd-video-description-music-section-renderer",function(){if(N8P!==void 0)return N8P;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return N8P=M},{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var RD9;var lf=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.modernTypography=_.Q("web_modern_typography");return M};
_.v(lf,_.n);lf.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],lf.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lf.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lf.prototype,"modernTypography",void 0);
lf=_.G([_.f({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],lf);
_.L(lf,"ytd-video-description-transcript-section-renderer",function(){if(RD9!==void 0)return RD9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return RD9=M},{mode:1});var XbY;_.eC(_.SG(function(M){var d=_.FT(_.Wev,function(){return M.data().firstProviderLinkStatusEntityKey}),N=_.FT(_.Wev,function(){return M.data().secondProviderLinkStatusEntityKey}),R=function(){var X,A;
return((X=d())==null?void 0:X.linked)||((A=N())==null?void 0:A.linked)};
return _.g("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.g(_.lG,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return M.data().sectionTitle}}),_.g(_.lG,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return R()?M.data().connectedMessage:M.data().notConnectedMessage}}),_.g(_.kV,{cond:R,
then:function(){return _.g(_.ho,{data:function(){return M.data().connectedButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.g(_.kV,{cond:function(){return!R()},
then:function(){return _.g(_.ho,{data:function(){return M.data().notConnectedButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"xi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;return _.g("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.g("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.g(_.lG,{text:function(){return d().sectionTitle}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.g(_.lG,{text:function(){return d().bodyHeader}})),_.g("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.g(_.lG,{text:function(){return d().bodyText}})),_.g(_.kV,
{cond:function(){return d().attributionText},
then:function(){return _.g("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.g(_.lG,{text:function(){return d().attributionText}}))}}))},"yi"),"how-this-was-made-section-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){return _.g("yt-video-description-youchat-section-view-model",{class:_.xj("ytVideoDescriptionYouchatSectionViewModelHost")},_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.g(_.lG,{text:function(){return M.data().sectionTitle}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.g(_.lG,{text:function(){return M.data().subHeaderText}})),_.g("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.g(_.o0,{data:function(){return _.q(M.data().primaryButton,
_.QM)}})))},"zi"),"yt-video-description-youchat-section-view-model",{props:{data:_.cA}});var $p=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("kevlar_modern_sd_v2");M.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return M};
_.v($p,_.n);_.F=$p.prototype;
_.F.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}}}}}};
_.F.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.F.dataChanged=function(){var M,d;this.hasDescriptionOnly=!(((M=this.data)==null?void 0:(d=M.items)==null?void 0:d.length)!==1||!_.q(this.data.items[0],OC4))};
_.F.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.F.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.F.autoFocusDescription=function(){var M;((M=_.h().resolve(_.CF(_.TH)))==null?0:M.isKeyBoardInUse())&&this.description&&_.Hf(this.description)};
_.F.resize=function(){if(_.Q("kevlar_disable_sd_resize"))this.JSC$20034_cardList&&_.YP(this.JSC$20034_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.YP(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.YP(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.F.scrollToSection=function(M){if(M=this.getSectionElement(M))_.ZI(this.hostElement,"yt-scroll-to-watch-element",[M]),M.focus()};
_.F.getSectionElement=function(M){switch(M){case "infocards-item-section":var d;return(d=this.infocardsSection)!=null?d:null;case "transcript-item-section":var N;return(N=this.transcriptSection)!=null?N:null;case "how-this-was-made-section-item-section":var R;return(R=this.howThisWasMadeSection)!=null?R:null;case "files-item-section":var X;return(X=this.filesSection)!=null?X:null;default:return null}};
_.F.handleSetActiveItemAction=function(M){var d=_.q(M,u$q),N=d&&(d==null?void 0:d.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20034_cardList;if(d&&N){M=this.currentActiveChapter;var R=this.currentActiveProblem;d=N==null?void 0:N.getItemByIndex(d.itemIndex);var X=N=!0;d&&(d.active=!0,d.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(N=M!==d,X=!1,this.currentActiveChapter=d):(d==null?void 0:d.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(N=!1,X=R!==d,this.currentActiveProblem=d));M&&N&&(M.active=!1);R&&X&&(R.active=!1)}};
_.Hm.Object.defineProperties($p.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
$p.prototype.onYtExpanderMoreTapped=$p.prototype.onYtExpanderMoreTapped;$p.prototype.onHiddenChanged=$p.prototype.onHiddenChanged;$p.prototype.dataChanged=$p.prototype.dataChanged;$p.prototype.panelContentVisibleChanged=$p.prototype.panelContentVisibleChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],$p.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],$p.prototype,"ironResizableBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$p.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],$p.prototype,"panelContentVisible",void 0);_.G([_.H(),_.a("design:type",Boolean)],$p.prototype,"hasDescriptionOnly",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"inlineStructuredDescription",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"hidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"shortsPanel",void 0);_.G([_.H(),_.a("design:type",Object)],$p.prototype,"videoSummary",void 0);_.G([_.H(),_.a("design:type",Object)],$p.prototype,"merchShelf",void 0);
_.G([_.z("videoSummary"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$p.prototype,"showVideoSummary",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$p.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"engagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$p.prototype,"watchWhileSdp",void 0);
_.G([_.Z3("ytd-expandable-video-description-body-renderer"),_.a("design:type",Object)],$p.prototype,"description",void 0);_.G([_.Z3("ytd-horizontal-card-list-renderer"),_.a("design:type",Object)],$p.prototype,"JSC$20034_cardList",void 0);_.G([_.Z3("ytd-horizontal-card-list-renderer[center-items]"),_.a("design:type",Object)],$p.prototype,"problemWalkthroughCardList",void 0);_.G([_.Z3("ytd-shelf-renderer"),_.a("design:type",Object)],$p.prototype,"shelfSection",void 0);
_.G([_.Z3("ytd-video-description-music-section-renderer"),_.a("design:type",Object)],$p.prototype,"musicMetadataSection",void 0);_.G([_.Z3("ytd-video-description-infocards-section-renderer"),_.a("design:type",Object)],$p.prototype,"infocardsSection",void 0);_.G([_.Z3("ytd-video-description-transcript-section-renderer"),_.a("design:type",Object)],$p.prototype,"transcriptSection",void 0);
_.G([_.Z3("how-this-was-made-section-view-model"),_.a("design:type",Object)],$p.prototype,"howThisWasMadeSection",void 0);_.G([_.Z3("ytd-video-description-files-section-renderer"),_.a("design:type",Object)],$p.prototype,"filesSection",void 0);_.G([_.xB("panelContentVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"panelContentVisibleChanged",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"dataChanged",null);_.G([_.xB("hidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"onHiddenChanged",null);_.G([_.C3("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$p.prototype,"onYtExpanderMoreTapped",null);
$p=_.G([_.f({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],$p);
_.L($p,"ytd-structured-description-content-renderer",function(){if(XbY!==void 0)return XbY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XbY=M},{mode:2});var Fr4;var ABb;var B$=function(){return _.n.apply(this,arguments)||this};
_.v(B$,_.n);B$.prototype.computeAriaLabel=function(M){var d,N;return(M==null?void 0:(d=M.accessibility)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label)||_.le("LOADING",void 0,"Loading")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],B$.prototype,"data",void 0);_.G([_.H({computed:"computeAriaLabel(data)"}),_.a("design:type",String)],B$.prototype,"ariaLabel",void 0);B$=_.G([_.w4({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],B$);
_.L(B$,"yt-content-loading-renderer",function(){if(ABb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Fr4===void 0&&(Fr4=document.createElement("template"));var R=Fr4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ABb=M}M=ABb;return M},{mode:_.G3("kevlar_poly_si_batch_j043")?1:2});_.eC(_.SG(function(M){var d=_.V(_.d0(!1,void 0,"WbYeXc")),N=d.next().value,R=d.next().value;d=_.V(_.d0(!1,void 0,"msXkzc"));var X=d.next().value,A=d.next().value;_.IJ(function(){var T=_.q(M.data().collaboratePlaylistCollaborationSetting,D8e);T&&R(T.switchedOnByDefault);var W=_.q(M.data().allowNewCollaboratorsPlaylistCollaborationSetting,D8e);W&&A(W.switchedOnByDefault);if(!T&&!W||!T&&M.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")R(!0),A(!0)});
var l=function(T){R(T);A(T);var W=M.data().playlistCollaborationEntityKey||"";var w=_.r4().getState();(w=_.Rz(w.entities,"playlistCollaborationEntity",W))&&(w==null?void 0:w.isCollaborative)===T||_.r4().dispatch(_.la("playlistCollaborationEntity",W,Object.assign({},w,{isCollaborative:T})))},k=function(T){A(T)};
return _.g("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.ho,{data:function(){return M.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(T){return _.g(_.WZ,{data:T.data,
onSwitch:l})}})),_.g(_.kV,{cond:N,
then:function(){return _.g("div",null,_.g("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.g(_.ho,{data:function(){return M.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(T){return _.g(_.WZ,{data:T.data,
onSwitch:k,overrideDisabled:!1})}})),_.g(_.kV,{cond:X,
then:function(){return _.g("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.g(_.ho,{data:function(){return M.data().copyLinkButton}},{buttonViewModel:_.o0}))}}),_.g("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.g(_.ho,{data:function(){return M.data().playlistCollaborators}},{contentListItemViewModel:_.OnJ})))}}))},"Ai"),"playlist-collaboration-view-model",{props:{data:_.cA}});var V_e=_.SG(function(M){var d=M.data;var N=M.customCommandResolver;return _.g(_.GT,null,_.g("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.g(_.ho,{data:function(){return d().adAvatar}},{adAvatarViewModel:function(R){return _.g(_.WuV,{data:R.data,
customCommandResolver:N})}})),_.g("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.g(_.kV,{cond:function(){return d().headline},
then:function(R){return _.g(_.lG,{text:R,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.g("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.g(_.ho,{data:function(){return d().adBadge}},{adBadgeViewModel:function(R){return _.g(_.LN,{data:R.data,
hasDot:function(){return d().primaryDetailsLine!==void 0},
customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.g(_.ho,{data:function(){return d().primaryDetailsLine}},{adDetailsLineViewModel:function(R){return _.g(_.tz,{data:R.data,
customCommandResolver:N,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Bi"),lT9=_.SG(function(M){var d=M.data;
var N=M.customCommandResolver;M=_.e5();_.to(M,function(){return d().interaction},N);
_.Gi(M,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.vz(A)},
showOption:_.bK});return _.g("ad-avatar-lockup-view-model",{class:function(){var R;return((R=d().interaction)==null?0:R.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:M,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g(_.pF,null,_.g(_.gK,{when:function(){return d().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.g(V_e,{data:d,
customCommandResolver:N})}),_.g(_.Wy,null,function(){return null})))},"Ci");_.eC(_.SG(function(M){var d=M.data;var N=M.panelContentVisibility;M=_.e5();_.to(M,function(){return d().interaction},lUq);
_.Gi(M,{visibilityCallback:function(X){var A,l=(A=d().interaction)==null?void 0:A.onFirstVisible;X&&l&&_.vz(l)},
showOption:_.bK});_.w0(function(){var X,A;if(A=_.cy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var l;A=(l=A())==null?void 0:l.onLayoutVisibleCallback}else A=null;(X=A)==null||X()});
var R=function(){return N()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.g("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:M},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.g(_.kV,{cond:_.PtA("(min-width: "+((0,_.pl)()+_.c9)+"px) or (max-width: 600px)"),then:function(){return _.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(X){return _.g(_.Y1,{data:X.data,
targetHeight:80,customCommandResolver:lUq})}})}})),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.g(_.ho,{data:function(){return d().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.g(lT9,{data:X.data,
customCommandResolver:lUq})}})),_.g(_.kV,{cond:R,
then:function(){return _.g(_.ho,{data:function(){return d().adButton}},{adButtonViewModel:function(X){return _.g(_.HI,{data:X.data,
customCommandResolver:lUq})}})},
else:function(){return _.g(_.ho,{data:function(){return d().menu}},{buttonViewModel:_.o0})}}),_.g("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.g(_.ho,{data:function(){var X=_.q(d().toggleButton,_.qH);
return{toggleButtonViewModel:Object.assign({},X,{isTogglingDisabled:!0,isToggled:R()})}}},{toggleButtonViewModel:_.I0})))))},"Di"),"panel-ad-header-image-lockup-view-model",{props:{data:_.cA,
panelContentVisibility:_.cA}});_.eC(_.SG(function(M){var d=function(){return _.q(M.data().inputComposerViewModel,gNq)},N=function(){var c;
return((c=d())==null?void 0:c.youchatPendingResponseEntityKey)||""},R=_.FT(_.aXC,N),X=function(){var c;
return!((c=R())==null||!c.isPendingResponse)},A=_.V(_.d0(!0,void 0,"DR0q1d")),l=A.next().value,k=A.next().value,T=function(){return d().sectionTargetId||"youchat_messages_section"};
A=_.Hh();var W=_.e5(),w=_.FT(Y2G,"chat_input_view_model_state"),p=ZvY(),m=function(){var c;return!((c=w())==null||!c.value)};
_.IJ(function(){var c;!m()&&((c=d())==null?0:c.welcomeFeatureContinuation)&&(c={continuationCommand:{token:d().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.Qu(c),p(!0));var e=T(),t;(t=_.h().resolve(_.CF(_.db)))==null||t.addEventListener("yt-navigate-start",function(){_.w5.remove(e);p(!1)},{once:!0})});
var I=_.dT(function(c){var e=X()||!1;$6Y(W.value);e||c.key!=="Enter"||c.shiftKey||(c.preventDefault(),y());return!1}),O=_.dT(function(){k(W.value.value.length===0);
return!1}),y=function(){var c,e,t,C,U,Fi,Y,$i,vj;
return _.B(function(Pj){c=W.value.value;W.value.value="";$6Y(W.value);e=B7b(T(),c);_.Qu(e);t=_.UDe(N());_.vz(((C=d())==null?void 0:C.onSubmitCommand)||{});t(!0);Fi=String(Math.floor(((U=_.ZM())==null?void 0:U.getCurrentTime())||0)*1E3);$i={continuationCommand:{token:(Y=d())==null?void 0:Y.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};vj={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:c,playerOffsetMs:Fi}};_.Qu($i,{form:{formData:vj},commandController:{onSuccess:function(){t(!1)},
onServerError:function(){var sS=T();_.Qu({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:sS}}]}}});t(!1)}}});
_.Vy(Pj)})};
return _.g("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:A},_.g("div",{class:"chatInputViewModelChatInputWrapper"},_.g("form",{class:"chatInputViewModelChatInputForm"},_.g("textarea",{class:"chatInputViewModelChatInput",el:W,"on:keydown":I,"on:keyup":O,placeholder:function(){var c,e;var t=_.q((e=d())==null?void 0:e.inputFormField,GFC);return t==null?void 0:(c=t.contentProperties)==null?void 0:c.placeholderText},
rows:1}),_.g(_.o0,{data:function(){return _.q(M.data().sendButton,_.QM)},
onClick:function(c){c.preventDefault();y();k(W.value.value.length===0)},
buttonOverrides:function(){return{disabled:l()||X()}}})),_.g(_.lG,{className:"chatInputViewModelChatDisclaimer",
text:function(){var c;return(c=_.q(M.data().disclaimer,_.SjJ))==null?void 0:c.text}})))},"Ei"),"yt-chat-input-view-model",{props:{data:_.cA}});var $3r=["engagement-panel-clip-create","engagement-panel-clip-view"],B8$=0,kp=function(){var M=_.n.apply(this,arguments)||this;var d;M.headerData=(d=M.data)==null?void 0:d.header;M.darkerPanels=_.Q("web_watch_darker_panels");M.matchContentTheme=_.Q("web_watch_panel_content_match_theme");M.disableAutoFill=!1;M.isFullscreen=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.liveChatReplyPanel=!1;M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.disableBackdropFilter=_.Q("web_disable_backdrop_filter");
M.trackEngagementPanelVisibility=_.Q("web_watch_track_engagement_panel_visibility");M.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};return M};
_.v(kp,_.n);_.F=kp.prototype;
_.F.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(M){var d;
if((M==null?void 0:(d=M.webComponentHint)==null?void 0:d.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";M=M==null?void 0:M.contents;if(!M||M.length<1)return"ytd-section-list-renderer";var N,R;M=(N=M[0])==null?void 0:(R=N.itemSectionRenderer)==null?void 0:R.contents;if(!M||M.length<1)return"ytd-section-list-renderer";var X;return((X=M[0])==null?0:X.youChatItemViewModel)?"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"}}}};
_.F.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var M;if((M=this.hostElement.parentElement)==null?0:M.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.F.detached=function(){this.updateTheaterDisablement()};
_.F.showPanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.IQ.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.F.maybeScrollToItemSection=function(M){var d=this,N,R=M==null?void 0:(N=M.sectionListEngagementPanelExtras)==null?void 0:N.scrollToItemSectionIdentifier;R&&_.IQ.addJob(function(){var X;(X=d.sectionListRendererElement)==null||X.scrollToItemSection(R)},8)};
_.F.hidePanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.IQ.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.F.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.F.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.F.updatePanel=function(M,d,N,R){var X=this;if((M=M==null?void 0:M.engagementPanelSectionListRenderer)||R){if(M){R=M.header;var A=M.content,l=M.footer;(M=M.targetId)&&this.set("data.targetId",M);R&&this.set("data.header",R);A&&this.set("data.content",A);l&&this.set("data.footer",l)}else R&&(M=R.content,A=R.secondaryHeaderContent,(R=R.targetId)&&this.set("data.targetId",R),M&&this.set("data.content",M),A&&(this.secondaryHeaderData=A));this.updateChildVisibilityProperties();if(d){var k;_.Q("kevlar_update_panel_focus_scroll_killswitch")||
(k={preventScroll:!0});this.focus(k)}_.bM(this,function(){_.YP(X.hostElement,"yt-refit");X.maybeScrollToItemSection(N)})}};
_.F.computeHeaderData=function(){var M,d=(0,_.wF.unsafeClone)((M=this.data)==null?void 0:M.header);if(d){M=new _.x(Object.keys(d)[0]);var N=_.q(d,M),R=_.q(this.secondaryHeaderData,M);R&&_.gk(d,M,Object.assign({},R,N))}return d};
_.F.getReloadContinuation=function(){var M,d,N,R=_.V(((M=this.data)==null?void 0:(d=M.content)==null?void 0:(N=d.sectionListRenderer)==null?void 0:N.continuations)||[]);for(M=R.next();!M.done;M=R.next())if(M=M.value,M.reloadContinuationData)return M.reloadContinuationData.continuation};
_.F.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var M;((M=this.data)==null?0:M.targetId)&&(M=this.contentElement.firstElementChild)&&M.setAttribute("panel-target-id",this.data.targetId)};
_.F.forwardPopupClosedToFlowRootRenderer=function(){var M=_.K(this.hostElement).querySelector("ytd-flow-root-renderer");if(M)M.onPopupClosed()};
_.F.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var M=_.Q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen;if(_.Q("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||M){var d;this.visibility=(d=this.data)==null?void 0:d.visibility;var N;this.trackEngagementPanelVisibility&&
((N=this.data)==null?void 0:N.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var R,X,A,l;this.contentEmpty=!!(((R=this.data)==null?0:(X=R.content)==null?0:X.structuredDescriptionContentRenderer)&&Object.keys((A=this.data)==null?void 0:(l=A.content)==null?void 0:l.structuredDescriptionContentRenderer).length===0);(M=_.h().resolve(_.g1))&&M.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility=
"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.F.isFullscreenChanged=function(){this.isFullscreen&&_.Q("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.F.focus=function(M){if(this.header)this.header.focus(M);else{var d;(d=_.K(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||d.focus(M)}};
_.F.visibilityChanged=function(){if(!_.Q("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var M=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=R||!this.lastVisibility,A,l,k=(A=this.data)==null?void 0:(l=A.identifier)==null?void 0:l.tag,
T;if(((T=this.data)==null?0:T.onShowCommands)&&M&&X)_.Ni(this.hostElement,this.data.onShowCommands,this.hostElement),k&&_.iY().dispatch(_.YS({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:k}}));else{var W;((W=this.data)==null?0:W.onHideCommands)&&d&&N&&(_.Ni(this.hostElement,this.data.onHideCommands,this.hostElement),k&&_.iY().dispatch(_.YS({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:k}})))}M&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*B8$++));_.Q("kevlar_watch_focus_on_engagement_panels")&&
M&&R&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.F.notifyVisibilityChanged=function(M){var d;_.Eu(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,M,(d=this.data)==null?void 0:d.targetId])};
_.F.updateTheaterDisablement=function(){if(!_.Q("kevlar_watch_theater_disablement_killswitch")){var M=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&$3r.includes(M)&&!_.Q("watch_next_grid_ignore_disallowed_panels")){var d=_.WK(_.iY().getState()),N=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";M!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():N?(this.originalTheaterState===void 0&&(this.originalTheaterState=d,this.theaterDisablementPanelIdentifier=
M),d&&_.ZI(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.F.clearTheaterDisablement=function(){_.ZI(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.F.updateChildVisibilityProperties=function(){this.hostElement||_.Q("kevlar_panel_property_init_killswitch")||this._enableProperties();var M=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=M);var d,N=(d=this.headerElement)==null?void 0:d.firstElementChild;if(N&&!this.adHeaderImageLockupViewModel){d=M==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";N.collapsed=d;N=_.K(N).querySelector("#visibility-button");if(!N)return;(N=N.firstElementChild)&&
N.polymerController.is==="ytd-toggle-button-renderer"&&N.polymerController.data.isToggled!==d&&N.polymerController.set("data.isToggled",d)}var R;if(d=(R=this.contentElement)==null?void 0:R.firstElementChild)if(M&&M!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")d.removeAttribute("panel-content-visible");else{d.setAttribute("panel-content-visible","");var X;(X=d.markDirty)==null||X.call(d)}};
_.F.onYtChangeEngagementPanelVisibilityAction=function(M){var d=this,N,R=(N=this.data)==null?void 0:N.targetId,X,A,l;N=((X=this.data)==null?void 0:(A=X.identifier)==null?void 0:A.tag)||((l=this.data)==null?void 0:l.panelIdentifier);var k=_.q(M,_.tIg),T;M=R&&(k==null?void 0:k.targetId)===R||N&&(k==null?void 0:(T=k.panelIdentifier)==null?void 0:T.tag)===N;this.dialog&&M&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R==="engagement-panel-comments-section"?_.ZI(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ZI(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",N]));R=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";T=this.isFullscreen&&_.Q("kevlar_single_panel_fullscreen");R=!M&&(k==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!R&&T;_.Q("kevlar_use_engagement_panel_management_component")||(M?(R=k.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!R?_.IQ.addJob(function(){d.visibility=k.visibility},2,this.hideDelayMs):this.visibility=k.visibility,k.visibility&&this.notifyVisibilityChanged(k.visibility)):R&&this.hidePanel())};
_.F.onYtScrollToEngagementPanelCommand=function(M){var d,N=(d=this.data)==null?void 0:d.targetId,R,X,A;d=((R=this.data)==null?void 0:(X=R.identifier)==null?void 0:X.tag)||((A=this.data)==null?void 0:A.panelIdentifier);M=_.q(M,_.dcg);var l;(N&&(M==null?void 0:M.targetId)===N||d&&(M==null?void 0:(l=M.panelIdentifier)==null?void 0:l.tag)===d)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ZI(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.F.attachVEs=function(M){var d,N;(M==null?0:(d=M.content)==null?0:(N=d.productListRenderer)==null?0:N.trackingParams)&&_.Nx().graftServerVe(M.content.productListRenderer.trackingParams);var R,X;(M==null?0:(R=M.content)==null?0:(X=R.transcriptRenderer)==null?0:X.trackingParams)&&_.Nx().graftServerVe(M.content.transcriptRenderer.trackingParams)};
_.F.onYtUpdateEngagementPanelAction=function(M){var d,N=(d=this.data)==null?void 0:d.targetId;M=_.q(M,x6T);N&&(M==null?void 0:M.targetId)===N&&(this.updatePanel({engagementPanelSectionListRenderer:{header:M==null?void 0:M.header,content:M==null?void 0:M.content}},!1),this.attachVEs(M))};
_.F.onYtShowEngagementPanelScrimAction=function(M){var d,N=(d=this.data)==null?void 0:d.targetId;M=_.q(M,Cwi);N&&(M==null?void 0:M.engagementPanelTargetId)===N&&(this.scrimmed=!0)};
_.F.onYtHideEngagementPanelScrimAction=function(M){var d,N=(d=this.data)==null?void 0:d.targetId;M=_.q(M,U6C);N&&(M==null?void 0:M.engagementPanelTargetId)===N&&(this.scrimmed=!1)};
_.F.getIdentifier=function(){var M,d,N;return((M=this.data)==null?void 0:M.panelIdentifier)||((d=this.data)==null?void 0:(N=d.identifier)==null?void 0:N.tag)};
_.F.getSurface=function(){var M,d;return(M=this.data)==null?void 0:(d=M.identifier)==null?void 0:d.surface};
_.Hm.Object.defineProperties(kp.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var M=this.getIdentifier();return M==="engagement-panel-youchat"||M==="PAyouchat"}}});
kp.prototype.visibilityChanged=kp.prototype.visibilityChanged;kp.prototype.isFullscreenChanged=kp.prototype.isFullscreenChanged;kp.prototype.dataChanged=kp.prototype.dataChanged;kp.prototype.forwardPopupClosedToFlowRootRenderer=kp.prototype.forwardPopupClosedToFlowRootRenderer;kp.prototype.onYtRendererstamperFinished=kp.prototype.onYtRendererstamperFinished;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],kp.prototype,"actionHandlerBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],kp.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],kp.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"data",void 0);
_.G([_.H({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.a("design:type",Object)],kp.prototype,"headerData",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"secondaryHeaderData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"visibility",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"contentEmpty",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"scrimmed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"dialog",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"dropdown",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"darkerPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"matchContentTheme",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"disableAutoFill",void 0);
_.G([_.H({reflectToAttribute:!0,value:_.Q("optimal_reading_width_comments_ep")}),_.a("design:type",Boolean)],kp.prototype,"optimalReadingWidthComments",void 0);_.G([_.H(),_.a("design:type",Number)],kp.prototype,"hideDelayMs",void 0);_.G([_.H({selector:_.IF,reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"isFullscreen",void 0);_.G([_.H(),_.a("design:type",Number)],kp.prototype,"showDelayMs",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.targetId"),_.a("design:type",Object),_.a("design:paramtypes",[])],kp.prototype,"targetId",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kp.prototype,"webSize",null);_.G([_.H(),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kp.prototype,"hideFooterBorder",null);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"isWatch",void 0);
_.G([_.H(),_.a("design:type",Object)],kp.prototype,"originalTheaterState",void 0);_.G([_.H(),_.a("design:type",Object)],kp.prototype,"theaterDisablementPanelIdentifier",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"modernPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"isWatchWhilePanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"shortsPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kp.prototype,"liveChatEngagementPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"liveChatReplyPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kp.prototype,"disableBackdropFilter",void 0);
_.G([_.H(),_.a("design:type",Object)],kp.prototype,"trackEngagementPanelVisibility",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],kp.prototype,"headerElement",void 0);_.G([_.Z3("#header > *"),_.a("design:type",HTMLElement)],kp.prototype,"header",void 0);_.G([_.Z3("ytd-section-list-renderer"),_.a("design:type",Object)],kp.prototype,"sectionListRendererElement",void 0);
_.G([_.Z3("panel-ad-header-image-lockup-view-model"),_.a("design:type",HTMLElement)],kp.prototype,"adHeaderImageLockupViewModel",void 0);_.G([_.Z3("#content"),_.a("design:type",HTMLElement)],kp.prototype,"contentElement",void 0);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"onYtRendererstamperFinished",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.G([_.NS("data","isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"dataChanged",null);_.G([_.xB("isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"isFullscreenChanged",null);
_.G([_.xB("visibility"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kp.prototype,"visibilityChanged",null);kp=_.G([_.f({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],kp);
_.L(kp,"ytd-engagement-panel-section-list-renderer",function(){if(cgY!==void 0)return cgY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return cgY=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var kIJ;var TV=function(){var M=_.n.apply(this,arguments)||this;M.lastRenderedPanelIds=new Set;M.visiblePanels=[];M.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.v(TV,_.n);_.F=TV.prototype;_.F.dataChanged=function(){if(this.data){for(var M=[],d=_.V(this.data),N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0,X=void 0,A=(R=N)==null?void 0:(X=R.engagementPanelSectionListRenderer)==null?void 0:X.visibility;X=R=void 0;((R=N)==null?0:(X=R.engagementPanelSectionListRenderer)==null?0:X.targetId)&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.push(N)}this.visiblePanels=M}else this.visiblePanels=[]};
_.F.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}}};
_.F.withoutVisiblePanelById=function(M){return this.visiblePanels.filter(function(d){var N;return((N=d.engagementPanelSectionListRenderer)==null?void 0:N.targetId)!==M})};
_.F.onYtChangeEngagementPanelVisibilityAction=function(M){var d=this,N=_.q(M,_.tIg);if(this.data&&(N==null?0:N.targetId)&&(N==null?0:N.visibility)){var R,X=(R=this.data.find(function(l){var k;return((k=l.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===N.targetId}))==null?void 0:R.engagementPanelSectionListRenderer;
if(X){var A=this.withoutVisiblePanelById(N.targetId);N.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(M=this.data.find(function(l){var k;return((k=l.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===N.targetId}))&&(A=[M].concat(_.wu(A)));
this.hideDelayMs&&N.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.length===0?_.IQ.addJob(function(){X.visibility=N.visibility;d.visiblePanels=A},10,this.hideDelayMs):(X.visibility=N.visibility,this.visiblePanels=A);
_.Eu(this.hostElement,"yt-engagement-panels-visible-changed",[A])}}};
_.F.onRendererstamperFinished=function(){var M=new Set(this.visiblePanels.map(function(d){var N;return(N=d.engagementPanelSectionListRenderer)==null?void 0:N.targetId}));
this.handlePanelVisibilityChange(M,this.lastRenderedPanelIds);this.lastRenderedPanelIds=M};
_.F.handlePanelVisibilityChange=function(M,d){M=M===void 0?new Set:M;d=d===void 0?new Set:d;if(this.data)for(var N=_.V(this.data),R=N.next();!R.done;R=N.next()){R=R.value;var X=void 0,A=void 0,l=(X=R)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:A.targetId;if(l&&(X=d.has(l),A=M.has(l),l=void 0,!X&&A?(A=X=void 0,l=(X=R)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:A.onShowCommands):X&&!A&&(A=X=void 0,l=(X=R)==null?void 0:(A=X.engagementPanelSectionListRenderer)==
null?void 0:A.onHideCommands),l))for(R=_.V(l),l=R.next();!l.done;l=R.next())this.ytComponentBehavior.resolveCommand(l.value)}};
TV.prototype.onRendererstamperFinished=TV.prototype.onRendererstamperFinished;TV.prototype.dataChanged=TV.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],TV.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],TV.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TV.prototype,"lastRenderedPanelIds",void 0);_.G([_.H(),_.a("design:type",Number)],TV.prototype,"hideDelayMs",void 0);_.G([_.H(),_.a("design:type",Array)],TV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],TV.prototype,"visiblePanels",void 0);_.G([_.H(),_.a("design:type",Boolean)],TV.prototype,"isWatchWhilePanel",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TV.prototype,"dataChanged",null);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TV.prototype,"onRendererstamperFinished",null);TV=_.G([_.f({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],TV);
_.L(TV,"ytd-watch-engagement-panels",function(){if(kIJ!==void 0)return kIJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kIJ=M},{mode:1});var T8Y;var DE=function(){return _.n.apply(this,arguments)||this};
_.v(DE,_.n);DE.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.zP(_.K(this.hostElement).querySelector("#text"),_.Mie(_.R4e,this.data.companionLegalText))};
DE.prototype.computeAutoScrollEnabled=function(M,d){return M&&!d};
DE.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
DE.prototype.onToggleTap=function(){this.expanded=!this.expanded};
DE.prototype.expandedChanged=DE.prototype.expandedChanged;DE.prototype.dataChanged=DE.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.$aq),_.a("design:type",Object)],DE.prototype,"ytdAutoScrollBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],DE.prototype,"expanded",void 0);
_.G([_.H({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.a("design:type",Boolean)],DE.prototype,"autoScrollEnabled",void 0);_.G([_.H(),_.a("design:type",String)],DE.prototype,"expanderIcon",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DE.prototype,"dataChanged",null);
_.G([_.xB("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DE.prototype,"expandedChanged",null);DE=_.G([_.f({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],DE);
_.L(DE,"ytd-companion-legal-text-renderer",function(){if(T8Y!==void 0)return T8Y;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return T8Y=M},{mode:1});var D3D;var gO=function(){var M=_.n.apply(this,arguments)||this;M.buttonUpdate=_.Q("web_modern_buttons");M.kevlarWatchGrid=_.Q("kevlar_watch_grid");M.centerAlignDescription=_.Q("action_companion_center_align_description");M.truncateDomain=_.Q("action_companion_truncate_domain");return M};
_.v(gO,_.n);_.F=gO.prototype;_.F.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.F.getOnLayoutVisibleCallback=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.F.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",gO.JSC$20080_DEFAULT_AD_BADGE_RENDERER);var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.F.getButtonRenderer=function(M){return M.actionButton&&_.q(M.actionButton,_.K9)?(delete _.q(M.actionButton,_.K9).navigationEndpoint,_.q(M.actionButton,_.K9)):{}};
_.F.onClick=function(M){var d=this;if((!_.Q("web_modern_buttons")||!_.Sm(_.J2(M),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){M=_.nO();var N=this.getLayoutId();M&&N&&_.Q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.Vo(R)).executeCommand(d.data.navigationEndpoint,N)}):_.Q("kevlar_companion_resolve_command_killswitch")?_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ZI(this.hostElement,"yt-companion-ad-clicked",["action-companion",N])}};
_.Hm.Object.defineProperties(gO.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:(d=M.detailsLine)==null?0:(N=d.adRating)==null?0:N.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return((M=this.data)==null?0:(d=M.detailsLine)==null?0:(N=d.adRating)==null?0:(R=N.ratingIcon)==null?0:R.iconType)?_.C6(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return((M=this.data)==null?0:(d=M.detailsLine)==null?0:(N=d.texts)==null?0:(R=N[0])==null?0:R.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?0:(d=M.description)==null?0:d.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var M=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return M?M.indexOf("/default_banner")!==-1:!0}}});
gO.prototype.onClick=gO.prototype.onClick;gO.prototype.dataChanged=gO.prototype.dataChanged;gO.JSC$20080_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.le("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],gO.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gO.prototype,"rendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gO.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"kevlarWatchGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"centerAlignDescription",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gO.prototype,"truncateDomain",void 0);
_.G([_.H({computed:"computeButtonOverride(buttonUpdate)"}),_.a("design:type",Object)],gO.prototype,"buttonOverride",void 0);_.G([_.z("data.detailsLine.adRating.ratingText"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"getRating",null);_.G([_.z("getRating"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"computeRatingHidden",null);
_.G([_.z("data.detailsLine.adRating.ratingIcon.iconType"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"iconType",null);_.G([_.z("data.detailsLine.texts.0.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"getDetailsLine",null);_.G([_.z("getDetailsLine"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"computeDetailsLineHidden",null);
_.G([_.z("data.description.text"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"getDescriptionText",null);_.G([_.z("getDescriptionText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"computeDescriptionTextHidden",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],gO.prototype,"interactionLoggingClientData",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],gO.prototype,"hideBanner",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gO.prototype,"dataChanged",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],gO.prototype,"onClick",null);gO=_.G([_.f({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],gO);
_.L(gO,"ytd-action-companion-ad-renderer",function(){if(D3D!==void 0)return D3D;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return D3D=M},{mode:_.G3("kevlar_poly_si_batch_j067")?1:2});var gRb;var WrY;var W$=function(){var M=_.n.apply(this,arguments)||this;M.buttonUpdate=_.Q("web_modern_buttons");M.hideLegacyBanner=_.Q("enable_dsa_one_click_ata_translators_infeed_elements");M.adInfoButtonStyle="mono";M.adInfoButtonType="text";M.noDotAdBadge=!0;return M};
_.v(W$,_.n);_.F=W$.prototype;_.F.getOnLayoutVisibleCallback=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.F.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var M=this.data.image.thumbnail.thumbnails[0];this.imageSrc=M.url?_.gH(M.url):void 0;this.imageWidth=M.width||0;this.imageHeight=M.height||0}this.data.clickthroughEndpoint&&_.q(this.data.clickthroughEndpoint,_.JQ)&&(M=_.q(this.data.clickthroughEndpoint,_.JQ).url,_.Q("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
M||"":M?(M=_.gH(M),this.clickThroughUrl=_.$8(M)):this.clickThroughUrl=void 0);(M=this.getOnLayoutVisibleCallback())&&M()}};
_.F.onClick=function(M){_.Sm(_.J2(M),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(M)};
_.F.handleClick=function(){var M=this;this.data&&this.data.clickthroughEndpoint&&(_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(d){M.macroReplacementBehavior.sendServiceRequestAction([d])}),_.ZI(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.F.onLoad=function(){_.Eu(this.hostElement,"yt-refit-popups-action")};
_.Hm.Object.defineProperties(W$.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
W$.prototype.onLoad=W$.prototype.onLoad;W$.prototype.onClick=W$.prototype.onClick;W$.prototype.dataChanged=W$.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],W$.prototype,"rendererBehavior",void 0);_.G([_.S(fzC.YtMacroReplacementBehavior),_.a("design:type",Object)],W$.prototype,"macroReplacementBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],W$.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"buttonUpdate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"hideLegacyBanner",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"adInfoButtonStyle",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],W$.prototype,"adInfoButtonType",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W$.prototype,"macros",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],W$.prototype,"interactionLoggingClientData",null);_.G([_.H(),_.a("design:type",String)],W$.prototype,"clickThroughUrl",void 0);_.G([_.H(),_.a("design:type",_.A_)],W$.prototype,"imageSrc",void 0);_.G([_.H(),_.a("design:type",Number)],W$.prototype,"imageWidth",void 0);_.G([_.H(),_.a("design:type",Number)],W$.prototype,"imageHeight",void 0);_.G([_.H(),_.a("design:type",Object)],W$.prototype,"noDotAdBadge",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W$.prototype,"dataChanged",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],W$.prototype,"onClick",null);_.G([_.C3("load"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W$.prototype,"onLoad",null);W$=_.G([_.f({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],W$);
_.L(W$,"ytd-image-companion-renderer",function(){if(WrY!==void 0)return WrY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return WrY=M},{mode:_.G3("kevlar_poly_si_batch_j067")?1:2});var wbG;var wO=function(){return _.n.apply(this,arguments)||this};
_.v(wO,_.n);_.F=wO.prototype;_.F.dataChanged=function(){this.set("data.adBadge",wO.JSC$20089_DEFAULT_AD_BADGE_RENDERER);if(this.data){var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.F.getOnLayoutVisibleCallback=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.F.getLayoutId=function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.F.onCompanionClicked=function(M){this.data&&(M.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ZI(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.F.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var M=_.nO(),d=this.getLayoutId(),N=this.data.clickToAdvSiteEndpoint;M&&d&&_.Q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(R){(new _.Vo(R)).executeCommand(N,d)}):_.YP(this.hostElement,"yt-navigate",{endpoint:N})}};
_.F.sendTrackingPings=function(M){if(M&&M.length!==0&&M[0].loggingUrls&&(M=M[0].loggingUrls.map(this.getBaseUrl)))for(var d=0;d<M.length;d++)_.Jk(M[d])};
_.F.getBaseUrl=function(M){return M.baseUrl||""};
_.Hm.Object.defineProperties(wO.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.cy("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
wO.prototype.onCompanionClicked=wO.prototype.onCompanionClicked;wO.prototype.dataChanged=wO.prototype.dataChanged;wO.JSC$20089_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.le("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wO.prototype,"data",void 0);_.G([_.Z3("#title"),_.a("design:type",HTMLElement)],wO.prototype,"shopTitle",void 0);
_.G([_.NS("data.impressionEndpoints"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wO.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],wO.prototype,"interactionLoggingClientData",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],wO.prototype,"onCompanionClicked",null);
wO=_.G([_.f({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],wO);
_.L(wO,"ytd-shopping-companion-renderer",function(){if(wbG!==void 0)return wbG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wbG=M},{mode:1});_.eC(_.SG(function(M){var d=M.data;var N=_.e5();_.to(N,function(){return d().interaction},kFT);
_.Gi(N,{visibilityCallback:function(R){var X,A=(X=d().interaction)==null?void 0:X.onFirstVisible;R&&A&&_.vz(A)},
showOption:_.bK});_.w0(function(){var R,X;X=(X=_.cy("yt.www.ads.eventcache.getLastCompanionData"))?(X=X())&&X.onLayoutVisibleCallback:null;(R=X)==null||R()});
M=_.dT(function(){_.Eu(N.value,"yt-refit-popups-action")});
return _.g("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":M,el:N,"aria-label":function(){var R,X;return(R=d().interaction)==null?void 0:(X=R.accessibility)==null?void 0:X.label}},_.g("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(R){return _.g(_.Y1,{data:R.data,
targetHeight:80,customCommandResolver:kFT})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.g(_.ho,{data:function(){return d().adBadge}},{adBadgeViewModel:function(R){return _.g(_.LN,{data:R.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.g("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.g(_.ho,{data:function(){return d().menu}},{buttonViewModel:_.o0}))))},"Fi"),"banner-image-layout-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;M=_.e5();_.to(M,function(){return d().interaction},T7b);
_.Gi(M,{visibilityCallback:function(N){var R,X=(R=d().interaction)==null?void 0:R.onFirstVisible;N&&X&&_.vz(X)},
showOption:_.bK});_.w0(function(){var N,R;R=(R=_.cy("yt.www.ads.eventcache.getLastCompanionData"))?(R=R())&&R.onLayoutVisibleCallback:null;(N=R)==null||N()});
return _.g("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:M},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.g(_.ho,{data:function(){return d().adImage}},{adImageViewModel:function(N){return _.g(_.Y1,{data:N.data,
targetHeight:80,customCommandResolver:T7b})}})),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.g(_.ho,{data:function(){return d().adAvatarLockup}},{adAvatarLockupViewModel:function(N){return _.g(lT9,{data:N.data,
customCommandResolver:T7b})}})),_.g(_.ho,{data:function(){return d().adButton}},{adButtonViewModel:function(N){return _.g(_.HI,{data:N.data,
customCommandResolver:T7b})}}),_.g("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.g(_.ho,{data:function(){return d().menu}},{buttonViewModel:_.o0}))))},"Gi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.cA}});var pb4={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"},ps=function(){var M=_.n.apply(this,arguments)||this;M.updateCompanionDataJobId=0;M.contentVideoId=null;M.player=null;M.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return M};
_.v(ps,_.n);_.F=ps.prototype;_.F.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:pb4}}};
_.F.attached=function(){var M=this,d=_.nO();d&&d.getPlayerPromise().then(function(N){M.getCachedDataAndListen(N)})};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.F.updateRendererStamper=function(){var M={};if(this.data)for(var d in pb4)if(this.data[d]){M[d]=this.data[d];break}if(this.oneofRenderer!=void 0||Object.keys(M).length)this.oneofRenderer=M};
_.F.getCachedDataAndListen=function(M){var d=this.retrieveCachedCompanionData();d&&Object.keys(d).length&&this.receiveCompanionData(d);this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=M};
_.F.retrieveCachedCompanionData=function(){return _.Np.yt&&_.Np.yt.www&&_.Np.yt.www.ads&&_.Np.yt.www.ads.eventcache&&_.Np.yt.www.ads.eventcache.getLastCompanionData?_.Np.yt.www.ads.eventcache.getLastCompanionData():null};
_.F.receiveCompanionData=function(M){M&&Object.keys(M).length?(this.contentVideoId=M.contentVideoId,this.setCompanionData(M)):this.setCompanionData(M)};
_.F.setCompanionData=function(M){this.cancelPendingCompanionAdJobs();if(M){this.updateCompanionDataJobId=0;for(var d in pb4)pb4.hasOwnProperty(d)&&(this.data[d]=void 0);M.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",M.shoppingCompanionCarouselRenderer):M.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",M.imageCompanionAdRenderer):M.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",M.actionCompanionAdRenderer),_.Eu(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Eu(this.hostElement,"yt-hide-tvfilm-offer-module")):M.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",M.bannerImageLayoutViewModel):M.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",M.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.F.dataChanged=function(){var M=this,d=_.nO();d?d.getPlayerPromise().then(function(N){M.contentVideoId&&N.getVideoUrl().includes("v="+M.contentVideoId)||(M.cancelPendingCompanionAdJobs(),M.updateRendererStamper())}):_.Sx(Error("im"))};
_.F.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.IQ.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.F.handleCompanionAdClicked=function(M,d){this.player.onAdUxClicked(M,d);this.player.pauseVideo()};
ps.prototype.dataChanged=ps.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],ps.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ps.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ps.prototype,"oneofRenderer",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ps.prototype,"dataChanged",null);ps=_.G([_.f({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],ps);
_.L(ps,"ytd-companion-slot-renderer",function(){if(gRb!==void 0)return gRb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return gRb=M},{mode:_.G3("kevlar_poly_si_batch_j067")?
1:2});var m3T;var mH=function(){return _.n.apply(this,arguments)||this};
_.v(mH,_.n);mH.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
mH.prototype.dataChanged=mH.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mH.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],mH.prototype,"companionSlotData",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mH.prototype,"dataChanged",null);
mH=_.G([_.f({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],mH);
_.L(mH,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(m3T!==void 0)return m3T;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return m3T=M},{mode:1});var hDD;var h7=function(){var M=_.n.apply(this,arguments)||this;M.skinnyMode=!1;M.COMPACT_EVENT_COUNT=4;M.onShelfToggleButtonTap=function(){M.logTap(M.data);M.showingMore=!M.showingMore};
M.onShelfToggleButtonFocus=function(){M.showingMore||(M.logTap(M.data),M.showingMore=!0,_.bM(M,function(){var d=M.COMPACT_EVENT_COUNT-1,N;(N=_.K(M.hostElement).querySelector("#event-"+d))==null||N.focus()}))};
return M};
_.v(h7,_.n);_.F=h7.prototype;_.F.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.F.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.F.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ux(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ux(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ux(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ux(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ux(this.infoTooltip,this.infoTooltip.hide))};
_.F.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ux(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ux(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ux(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ux(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ux(this.infoTooltip,this.infoTooltip.hide))};
_.F.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)};
_.F.onShowingMoreChanged=function(){var M;this.showingMoreChanged((M=this.showingMore)!=null?M:!1)};
_.F.showingMoreChanged=function(M){var d=this.get("data.events")||[];this.set("restEvents",d.slice(1,M?d.length:this.COMPACT_EVENT_COUNT).map(function(N){return N.ticketEventRenderer}));
d.slice(0,M?d.length:this.COMPACT_EVENT_COUNT).forEach(function(N){var R=_.Ou();N=N.ticketEventRenderer.trackingParams;_.vl()&&R&&N&&(N=_.At(N),R&&_.SD(R,N))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.F.computeAriaLabel=function(M){return M.subtitle1+", "+M.subtitle2};
_.F.logTap=function(M){_.vl()&&this.ytRendererBehavior.logExplicitClick(M)};
_.F.isKeyboardAction=function(M){return this.get("detail.x",M)===0&&this.get("detail.y",M)===0};
_.F.onFirstEventTap=function(M){M.target&&this.handleTap(M.target,this.firstEvent,this.isKeyboardAction(M))};
_.F.onTicketLinkTap=function(M){M.target&&this.handleTap(M.target,M.model.item,this.isKeyboardAction(M))};
_.F.handleTap=function(M,d,N){if(d.buttonCommand)if(d.hasMultipleOffers)Object.assign(_.q(d.buttonCommand,_.Iu),{properties:{source:N?"keyboard":"tap"}}),this.logTap(d),this.popupPositionTarget=M,_.Ni(this.hostElement,[d.buttonCommand],this.hostElement);else{var R;if((R=_.q(d.buttonCommand,_.JQ))==null?0:R.url)this.logTap(d),_.oO(window,_.q(d.buttonCommand,_.JQ).url)}};
h7.prototype.onShowingMoreChanged=h7.prototype.onShowingMoreChanged;h7.prototype.dataChanged=h7.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],h7.prototype,"firstEvent",void 0);_.G([_.H(),_.a("design:type",Object)],h7.prototype,"restEvents",void 0);_.G([_.H(),_.a("design:type",String)],h7.prototype,"imageUrl",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],h7.prototype,"showingMore",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],h7.prototype,"canShowMore",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],h7.prototype,"skinnyMode",void 0);_.G([_.H(),_.a("design:type",HTMLElement)],h7.prototype,"popupPositionTarget",void 0);_.G([_.Z3("#banner-info-tooltip"),_.a("design:type",Object)],h7.prototype,"infoTooltip",void 0);
_.G([_.Z3("#info-container"),_.a("design:type",HTMLElement)],h7.prototype,"infoContainer",void 0);_.G([_.Z3("#shelf-toggler"),_.a("design:type",HTMLElement)],h7.prototype,"shelfToggleButton",void 0);_.G([_.Z3("#separator"),_.a("design:type",HTMLDivElement)],h7.prototype,"separator",void 0);_.G([_.H(),_.a("design:type",String)],h7.prototype,"shelfTogglerLabelText",void 0);_.G([_.H(),_.a("design:type",String)],h7.prototype,"shelfTogglerIcon",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h7.prototype,"dataChanged",null);_.G([_.NS("showingMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],h7.prototype,"onShowingMoreChanged",null);h7=_.G([_.f({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],h7);
_.L(h7,"ytd-ticket-shelf-renderer",function(){if(hDD!==void 0)return hDD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hDD=M},{mode:1});var QKr;var qrT;var Q6=function(){return _.n.apply(this,arguments)||this};
_.v(Q6,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Q6.prototype,"data",void 0);Q6=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Q6);
_.L(Q6,"ytd-comments-entry-point-message-renderer",function(){if(qrT!==void 0)return qrT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qrT=M},{mode:1});var ITJ;var qR=function(){return _.n.apply(this,arguments)||this};
_.v(qR,_.n);_.Hm.Object.defineProperties(qR.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.teaserAvatar)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qR.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],qR.prototype,"hasAvatar",null);qR=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],qR);
_.L(qR,"ytd-comments-entry-point-teaser-renderer",function(){if(ITJ!==void 0)return ITJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return ITJ=M},{mode:1});var vRT;var IP=function(){return _.n.apply(this,arguments)||this};
_.v(IP,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IP.prototype,"data",void 0);IP=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],IP);
_.L(IP,"ytd-comments-simplebox-renderer",function(){if(vRT!==void 0)return vRT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return vRT=M},{mode:1});var v$=function(){var M=_.n.apply(this,arguments)||this;M.fullHeight=!_.Q("comment_teaser_full_height_kill_switch")&&_.Q("kevlar_watch_grid");return M};
_.v(v$,_.n);v$.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"}}}};
v$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
v$.prototype.onTap=function(){var M=this.tapCommand;M&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(M))};
v$.prototype.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.Hm.Object.defineProperties(v$.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.onTap)return this.data.onTap;var d,N;if(((d=this.data)==null?0:d.teaserContent)||((N=this.data)==null?0:N.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
v$.prototype.onKeyUp=v$.prototype.onKeyUp;v$.prototype.onTap=v$.prototype.onTap;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],v$.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],v$.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],v$.prototype,"fullHeight",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"tapCommand",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"simpleboxPlaceholder",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasSimpleboxPlaceholder",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"simpleboxAvatar",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"teaserContent",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasTeaserContent",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"teaserAvatar",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasTeaserAvatar",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"messageText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],v$.prototype,"contentRenderer",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasContents",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],v$.prototype,"hasContentRenderer",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],v$.prototype,"onTap",null);_.G([_.C3("keypress"),_.a("design:type",Function),_.a("design:paramtypes",[_.gy]),_.a("design:returntype")],v$.prototype,"onKeyUp",null);v$=_.G([_.f({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],v$);
_.L(v$,"ytd-comments-entry-point-header-renderer",function(){if(QKr!==void 0)return QKr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return QKr=M},{mode:1});var Owq;_.aA(_.MN,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var jKD=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),sKd={numberText:"",heightPx:2*jKD,shouldAnimate:!1},Oi=function(){var M=_.n.apply(this,arguments)||this;M.usingAnimatedComponents=!0;M.wasDetailed=!1;M.JSC$20126_browserSupportsAnimation=_.Q("web_supports_animations_api");M.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};M.detailed=!1;M.shouldAnimate=!1;M.viewCountProps=sKd;M.dateTextProps=
sKd;M.metadataBadgesInDescription=_.Q("web_metadata_badges_in_description");return M};
_.v(Oi,_.n);_.F=Oi.prototype;_.F.resetAnimationState=function(){this.shouldAnimate=!1};
_.F.updateDynamicMetadata=function(){if(this.JSC$20126_browserSupportsAnimation){if(!this.detailed){var M,d,N,R;var X=(M=this.videoPrimaryInfoRenderer)==null?void 0:(d=M.viewCount)==null?void 0:(N=d.videoViewCountRenderer)==null?void 0:(R=N.extraShortViewCount)==null?void 0:R.simpleText;var A,l,k,T;var W=(A=this.videoPrimaryInfoRenderer)==null?void 0:(l=A.viewCount)==null?void 0:(k=l.videoViewCountRenderer)==null?void 0:(T=k.shortViewCount)==null?void 0:T.simpleText}if(!W){var w,p,m,I;X=(w=this.videoPrimaryInfoRenderer)==
null?void 0:(p=w.viewCount)==null?void 0:(m=p.videoViewCountRenderer)==null?void 0:(I=m.unlabeledViewCountValue)==null?void 0:I.simpleText;var O,y,c,e;W=(O=this.videoPrimaryInfoRenderer)==null?void 0:(y=O.viewCount)==null?void 0:(c=y.videoViewCountRenderer)==null?void 0:(e=c.viewCount)==null?void 0:e.simpleText}var t,C,U;M=Number((t=this.videoPrimaryInfoRenderer)==null?void 0:(C=t.viewCount)==null?void 0:(U=C.videoViewCountRenderer)==null?void 0:U.originalViewCount);var Fi,Y;t=(Fi=this.videoPrimaryInfoRenderer)==
null?void 0:(Y=Fi.relativeDateText)==null?void 0:Y.simpleText;var $i;Fi=!(($i=this.videoPrimaryInfoRenderer)==null||!$i.relativeDateText);if(X&&W&&M&&(t||!Fi)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;$i=W.split(new RegExp("("+X+")"));X=m6T($i[0]);var vj;W={numberText:(vj=$i[1])!=null?vj:"",numberValue:M,heightPx:2*jKD,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Pj;vj=((Pj=$i[2])!=null?Pj:"")+"  ";this.setViewCount(W,X,m6T(vj));
if(!this.detailed&&Fi){X=t.split(/(\d+)/);Pj=m6T(X[0]);var sS;vj={numberText:(sS=X[1])!=null?sS:"",heightPx:2*jKD,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var tL;sS=((tL=X[2])!=null?tL:"")+"  ";this.setDateText(vj,Pj,m6T(sS))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.F.setViewCount=function(M,d,N){_.HD(d)!==_.HD(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=d);this.viewCountProps.numberText!==(M==null?void 0:M.numberText)&&(this.viewCountProps=M||sKd);_.HD(N)!==_.HD(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=N)};
_.F.setDateText=function(M,d,N){_.HD(d)!==_.HD(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=d);this.dateTextProps.numberText!==(M==null?void 0:M.numberText)&&(this.dateTextProps=M||sKd);_.HD(N)!==_.HD(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=N)};
_.F.onYtUpdateViewershipAction=function(M){this.videoPrimaryInfoRenderer&&(_.q(M,IOT).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.q(M,IOT).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.q(M,IOT).viewCount)))};
_.F.onYtUpdateDateTextAction=function(M){if(this.videoPrimaryInfoRenderer){M=_.q(M,_.Qvd).dateText;this.shouldAnimate=!0;var d;((d=this.videoPrimaryInfoRenderer)==null?0:d.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",M):this.set("videoPrimaryInfoRenderer.dateText",M)}};
_.Hm.Object.defineProperties(Oi.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return pO$(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.HD(pO$(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.HD(this.viewCountPreNumberText),this.viewCountProps.numberText,_.HD(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.HD(this.dateTextPreNumberText),this.dateTextProps.numberText,_.HD(this.dateTextPostNumberText)].join("")}}});
Oi.prototype.updateDynamicMetadata=Oi.prototype.updateDynamicMetadata;Oi.prototype.resetAnimationState=Oi.prototype.resetAnimationState;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Oi.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"detailed",void 0);_.G([_.H(),_.a("design:type",Object)],Oi.prototype,"shouldAnimate",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"viewCountPreNumberText",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"viewCountProps",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"viewCountPostNumberText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"dateTextPreNumberText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"dateTextProps",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"dateTextPostNumberText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Oi.prototype,"metadataBadgesInDescription",void 0);_.G([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.a("design:type",Object),_.a("design:paramtypes",[])],Oi.prototype,"infoText",null);
_.G([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.a("design:type",String),_.a("design:paramtypes",[])],Oi.prototype,"descriptionInfoTooltipText",null);_.G([_.z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.a("design:type",String),_.a("design:paramtypes",[])],Oi.prototype,"animatedViewCountAccessibilityLabel",null);
_.G([_.z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.a("design:type",String),_.a("design:paramtypes",[])],Oi.prototype,"animatedDateTextAccessibilityLabel",null);_.G([_.xB("videoPrimaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oi.prototype,"resetAnimationState",null);
_.G([_.xB("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Oi.prototype,"updateDynamicMetadata",null);Oi=_.G([_.f({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Oi);
_.L(Oi,"ytd-watch-info-text",function(){if(Owq!==void 0)return Owq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <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 id="view-count-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<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Owq=M},{mode:1});var P3D;var oRJ=_.SG(function(M){var d=M.data;var N=M.setTapCommand;_.Wg(function(){var R=_.ht(d().onTap);N(R)});
return _.g("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.g(_.ho,{data:function(){return d().avatar}},{avatarViewModel:_.TS}),_.g("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.g("span",null,function(){return d().simpleboxText})))},"Hi");var rBq=_.SG(function(M){return _.g("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.g(_.kV,{cond:function(){return _.q(M.data().avatar,_.fX)},
then:function(d){return _.g(_.TS,{data:d,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.g("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.g(_.lG,{text:function(){return M.data().teaserText}})))},"Ii");var Krb=_.SG(function(M){var d=M.data;var N=M.setTapCommand;_.Wg(function(){var R=_.ht(d().onTap);N(R)});
return _.g("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.g(_.ho,{data:function(){return d().teasers}},{commentsEntryPointTeaserViewModel:rBq}))},"Ji");var yB9=_.SG(function(M){var d=M.data;var N=M.setTapCommand;_.Wg(function(){var R=_.ht(d().onTap);N(R)});
return _.g("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.g(_.lG,{text:function(){return d().messageText}}))},"Ki");var JBJ=_.SG(function(M){var d=M.data;var N=M.setTapCommand;var R=M.isDisabled;_.Wg(function(){var X=(R==null?0:R())?void 0:_.ht(d().onTap);N(X)});
return _.g("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.g(_.Fc,{icon:function(){return d().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.g(_.kV,{cond:function(){return d().image},
then:function(X){return _.g(_.Jt,{data:X,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.g(_.lG,{text:function(){return d().text},
className:function(){return d().image||d().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.g(_.ho,{data:function(){return d().button}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:R==null?void 0:R()}}})}}))},"Li");var cB$=_.SG(function(M){var d=M.data;var N=M.itemIndex;var R=M.selectedIndex;var X=M.indexUpdatedCallback;var A=M.observer;M=M.title;var l=_.e5(),k=function(p){N()===R()&&X(p)},T=_.hI(Cib),W=_.hI(xzq),w=function(){var p,m,I;
return((p=d())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!T()||((m=d())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&W().includes("PAposts_by_host")||((I=d())==null?void 0:I.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&W().includes("PAyouchat")};
_.IJ(function(){A&&A().observe(l.value)});
return _.g("yt-carousel-item-view-model",{el:l,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":M},_.g(_.ho,{data:function(){var p,m;return(m=(p=_.q(d().carouselItem,t0G))==null?void 0:p.textCarousel)!=null?m:d().carouselItem}},{textCarouselItemViewModel:function(p){return _.g(JBJ,{data:p.data,
setTapCommand:k,isDisabled:w})},
commentTeaserCarouselItemViewModel:function(p){return _.g(Krb,{data:p.data,setTapCommand:k})},
commentInputBoxCarouselItemViewModel:function(p){return _.g(oRJ,{data:p.data,setTapCommand:k})},
commentsEntryPointMessageViewModel:function(p){return _.g(yB9,{data:p.data,setTapCommand:k})}}))},"Mi");var SrG=_.SG(function(M){var d=M.numDots;var N=M.activeIndex;return _.g("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.g(_.TN,{each:function(){return Array.from({length:d()})},
keyBy:"INDEX"},function(R,X){return _.g("div",{class:function(){var A={};return _.ZH("ytCarouselDotsShapeDot",(A.ytCarouselDotsShapeDotActive=X===N(),A))}})}))},"Ni");var zDP=_.SG(function(M){var d=M.data;var N=M.handleCarouselNavigation;var R=M.numItems;var X=M.selectedIndex;var A=function(){return{disabled:X()===0}},l=function(){return{disabled:X()===R()-1}};
return _.g("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.g("div",null,_.g("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return d().title}),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(k){return _.g("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return d().subtitleAccessibilityText}},k)}})),_.g(_.kV,{cond:function(){return R()>1},
then:function(){return _.g("div",{class:"ytCarouselTitleViewModelNavigation"},_.g(SrG,{numDots:R,activeIndex:X}),_.g(_.kV,{cond:function(){return d().previousButton},
then:function(k){return _.g(_.ho,{data:k},{buttonViewModel:function(T){return _.g(_.o0,{data:T.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return N(-1)},
buttonOverrides:A})}})}}),_.g(_.kV,{cond:function(){return d().nextButton},
then:function(k){return _.g(_.ho,{data:k},{buttonViewModel:function(T){return _.g(_.o0,{data:T.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return N(1)},
buttonOverrides:l})}})}}))}}))},"Oi");_.eC(_.SG(function(M){var d=M.data;var N=_.e5(),R=_.e5(),X=_.rK("HTML_DIR")==="rtl",A=!1,l=0,k=0;M=_.V(_.d0(0,void 0,"m0dtIf"));var T=M.next().value,W=M.next().value;M=_.V(_.d0(0,void 0,"fL6I6"));var w=M.next().value,p=M.next().value;M=_.V(_.d0(!1,void 0,"ZPrwNb"));var m=M.next().value,I=M.next().value,O=function(){var $i,vj,Pj;return(Pj=($i=d())==null?void 0:(vj=$i.carouselTitles)==null?void 0:vj.length)!=null?Pj:0},y=function(){R.value&&R.value.scrollLeft!==l&&W((X?R.value.scrollLeft<l:R.value.scrollLeft>
l)?Math.min(T()+1,O()-1):Math.max(T()-1,0))},c;
window.IntersectionObserver&&(c=new IntersectionObserver(function($i){$i=_.V($i);for(var vj=$i.next();!vj.done;vj=$i.next())if(vj.value.isIntersecting){if(A){A=!1;break}y()}else W(k)},{threshold:.2}));
_.Wg(function(){if(R.value){var $i=(X?-1:1)*(w()/O()+12)*(m()&&c?k:T());typeof R.value.scrollTo==="function"?R.value.scrollTo({left:$i,behavior:"smooth"}):R.value.scrollLeft=$i;l=$i;k=m()&&c?k:T()}});
var e,t=function($i){e=$i};
_.IJ(function(){var $i=function(){var Pj=R.value.offsetWidth*O(),sS=24*(O()-1);p(Pj+sS)};
$i();if(window.ResizeObserver){var vj=new ResizeObserver($i);vj.observe(R.value);_.mF(function(){vj.disconnect();c&&c.disconnect()})}});
M=_.dT(function($i){if(_.fJr(_.c5($i),N.value,["BUTTON".toString()])||!e)return!1;_.h().resolve(_.xV).resolveCommand(e,{forceClickLogging:!0});return!1});
var C=function($i){$i=T()+$i;$i>=0&&$i<O()&&(A=!0,W($i))},U=_.dT(function(){I(!0);
return!1}),Fi=_.dT(function(){c||y();
I(!1);return!1}),Y={};
return _.g("yt-video-metadata-carousel-view-model",{class:_.xj("ytVideoMetadataCarouselViewModelHost",(Y.ytVideoMetadataCarouselViewModelShortMode=_.Q("mweb_video_metadata_carousel_short_mode"),Y)),el:N,"on:click":M,"on:touchstart":U,"on:touchend":Fi,hidden:function(){var $i,vj;return!(($i=d())==null?0:(vj=$i.carouselItems)==null?0:vj.length)}},_.g("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.g(_.kV,{cond:function(){return d().carouselTitles},
then:function($i){return _.g(_.ho,{data:function(){return $i()[m()&&c?k:T()]}},{carouselTitleViewModel:function(vj){return _.g(zDP,{data:vj.data,
handleCarouselNavigation:C,numItems:O,selectedIndex:T})}})}})),_.g("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:R},_.g("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.g(_.kV,{cond:function(){return d().carouselItems},
then:function($i){return _.g(_.TN,{each:$i},function(vj,Pj){return _.g(_.ho,{data:function(){return vj}},{carouselItemViewModel:function(sS){return _.g(cB$,{data:sS.data,
itemIndex:Pj,selectedIndex:T,indexUpdatedCallback:t,observer:c,title:function(){a:{var tL=Pj();var b2,Hj=(b2=d())==null?void 0:b2.carouselTitles;if(Hj&&(tL=Hj[tL])){var LZ;tL=(LZ=_.q(tL,LbT))==null?void 0:LZ.title;break a}tL=void 0}return tL}})}})})}}))))},"Pi"),"yt-video-metadata-carousel-view-model",{props:{data:_.cA}});var bwC=_.Q("web_action_buttons_update_owner_width")?32:12,jb=function(){var M=_.n.apply(this,arguments)||this;M.metadataBadgesInDescription=_.Q("web_metadata_badges_in_description");M.descriptionCollapsed=!0;M.useFadedScrimDescription=_.Q("kevlar_enable_faded_scrim_on_description");M.skinnyMode=!1;M.playlist=!1;M.isDark=document.documentElement.hasAttribute("dark");M.disableVideoOwnerOnTap=_.Q("swatchie_video_owner_on_tap_ks");M.swatcherooDelayLoad=_.Q("swatcheroo_enable_ghost_cards");M.primaryMenuWidth=
0;M.videoId="";M.titleHeadlineXs=_.Q("web_watch_typography_title_headline_xs");M.titleHeadlineS=_.Q("web_watch_typography_title_headline_s");M.titleHeadlineM=_.Q("web_watch_typography_title_headline_m");M.titleHashtagBlackLinkified=_.Q("web_title_hashtag_black_linkified");M.titleHashtagGreyLinkified=_.Q("web_title_hashtag_grey_linkified");M.actionButtonsUpdateOwnerWidth=_.Q("web_action_buttons_update_owner_width");M.shouldForceIconOnly=!1;M.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};M.isFullscreen=!1;return M};
_.v(jb,_.n);_.F=jb.prototype;_.F.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.F.updateOwnerAndDescriptionPosition=function(){_.Q("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.yF(this.bottomRowElement,this.ownerElement)):(_.yF(this.bottomRowElement,this.descriptionElement),_.yF(this.topRowElement,this.ownerElement)))};
_.F.titleOnTap=function(M){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||this.handleExpandDescriptionCommands()}};
_.F.videoOwnerOnTap=function(M){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.F.detached=function(){var M=this,d;return _.B(function(N){(d=M.resizeObserver)==null||d.disconnect();_.Vy(N)})};
_.F.maybeAttachResizeObserver=function(){var M=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.ua(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.F.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var M=this.hostElement.clientWidth,d=Math.max(this.largerItemWrap?400:350,M/2-bwC);if(_.Q("web_action_buttons_update_owner_width")){var N;d=(((N=document.getElementById("owner"))==null?void 0:N.clientWidth)||0)+bwC}this.actionsOnSeparateLine=this.primaryMenuWidth>M-d?!0:!1}};
_.F.stripAttributedDescription=function(M){return{content:M.content.replace(/[\r\n]{2,}/g,"\n")}};
_.F.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.Q("web_modern_buttons"),forceIconButton:!_.Q("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:_.Q("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"}}}};
_.F.videoPrimaryInfoRendererChanged=function(){var M;if((M=this.videoPrimaryInfoRenderer)==null?0:M.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.F.videoSecondaryInfoRendererChanged=function(){var M,d;(d=(M=this.descriptionInlineExpander).collapse)==null||d.call(M);this.descriptionExpandClientVe=_.Tx(110509);this.descriptionCollapseClientVe=_.Tx(110510);M=_.Ou();d=_.vl();M&&d&&(_.Q("combine_ve_grafts")?(_.NT(_.Nx(),this.descriptionExpandClientVe,d),_.NT(_.Nx(),this.descriptionCollapseClientVe,d)):_.eU(M,d,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.F.structuredDescriptionContentRendererChanged=function(){_.Q("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.F.updateTopLevelIconsOnly=function(){var M=this;_.Q("top_level_update_killswitch")||this.menu&&_.IQ.addLowPriorityJob(function(){M.menu.topLevelIconsOnly=M.skinnyMode},_.ZR("swathceroo_delay_flexible_menu_update",100))};
_.F.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.Q("web_action_buttons_minimize_subscribe")};
_.F.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.F.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.F.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.F.onYtTextInlineExpanderExpandedChanged=function(){if(!_.Q("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var M,d;(d=(M=this.structuredDescriptionContentRendererElement).resize)==null||d.call(M)}};
_.F.onRenderStamperFinished=function(M){(M==null?void 0:M.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.F.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.F.onYtExpanderLessTapped=function(){var M,d=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showLessCommand;d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.F.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.F.onDescriptionClick=function(M){if(!_.Sm(_.J2(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var d;((d=window.getSelection())==null?0:d.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.Q("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.F.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.F.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.F.logCollapseClick=function(){var M=_.Ou();M&&this.descriptionCollapseClientVe&&_.eD(M,this.descriptionCollapseClientVe)};
_.F.logExpandClick=function(){var M=_.Ou();M&&this.descriptionExpandClientVe&&_.eD(M,this.descriptionExpandClientVe)};
_.F.collapseDescription=function(){this.descriptionCollapsed=!0};
_.F.scrollToTopOfContainer=function(){_.ZI(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.F.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.F.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.F.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.F.resize=function(){if(this.descriptionInlineExpander){var M,d;(d=(M=this.descriptionInlineExpander).resize)==null||d.call(M)}else _.vh(new _.WJ("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var N;(N=this.menu)==null||N.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.Q("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.F.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var M,d,N,R,X=_.Q("web_action_buttons_update_owner_width")?(N=(M=_.K(this.menu).querySelector("#button-shape"))==null?void 0:M.clientWidth)!=null?N:0:(R=(d=_.K(this.menu).querySelector("#button"))==null?void 0:d.clientWidth)!=null?R:0,A,l;M=((l=(A=_.K(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:A.clientWidth)!=null?l:0)+8+X;var k,T;X=(T=(k=_.K(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:k.children.length)!=null?T:2;M<=8*X||(this.primaryMenuWidth=M)}};
_.F.onYtUpdateTitleAction=function(M){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.q(M,qkq).title)};
_.F.onYtUpdateDescriptionAction=function(M){if(M=_.q(M,_.t4d)){var d,N=!((d=this.videoSecondaryInfoRenderer)==null||!d.attributedDescription);M.isEmpty||!M.description&&!M.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):M.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",M.attributedDescription):M.description&&(N?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Wz(M.description)):this.set("videoSecondaryInfoRenderer.description",M.description))}};
_.F.onYtDarkModeToggledAction=function(M){this.isDark=M};
_.F.registerPanel=function(){if(!_.Q("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var M=_.Q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen,d=_.h().resolve(_.g1);d&&!M&&d.registerPanel("engagement-panel-structured-description",this)}};
_.F.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.F.showPanel=function(M){this.expandDescription();var d=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;d.resize();var N,R=M==null?void 0:(N=M.sectionListEngagementPanelExtras)==null?void 0:N.scrollToItemSectionIdentifier;R?_.IQ.addJob(function(){d==null||d.scrollToSection(R)},8):this.scrollToTopOfContainer()};
_.F.isVisible=function(){return!this.descriptionCollapsed};
_.F.getReloadContinuation=function(){};
_.F.hidePanel=function(){};
_.F.updatePanel=function(){};
_.Hm.Object.defineProperties(jb.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.structuredDescriptionContentRenderer)!=null&&M.items){var d;M=_.V((d=this.structuredDescriptionContentRenderer)==null?void 0:d.items);for(d=M.next();!d.done;d=M.next())if(d=_.q(d.value,_.Ekg))return d}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoPrimaryInfoRenderer)==null?0:M.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!!((M=this.videoSecondaryInfoRenderer)==null?0:(d=M.owner)==null?0:(N=d.videoOwnerRenderer)==null?0:N.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.Q("swatchie_sd_new_line_strip_ks")){var M,d;if((M=this.videoSecondaryInfoRenderer)==null?0:(d=M.attributedDescription)==null?0:d.content){var N,R;return(R=this.stripAttributedDescription((N=this.videoSecondaryInfoRenderer)==null?void 0:N.attributedDescription))!=null?R:{runs:[]}}}var X,A,l,k;return(k=(l=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.description)!=null?l:(A=this.videoSecondaryInfoRenderer)==null?
void 0:A.attributedDescription)!=null?k:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.headerRuns)!=null?d:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentsEntryPointHeaderRenderer)==null||!M.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoMetadataCarousel)==null||!M.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.ZR("swatchie_desc_lines",3):this.hasTeaserCarousel?_.ZR("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var M,d,N=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(d=M.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(N&&N.rows&&N.collapsedItemCount!==void 0&&!(N.rows.length<=N.collapsedItemCount))return N.rows=N.rows.slice(N.collapsedItemCount),N.collapsedItemCount=0,N}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var M,d,N=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(d=M.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer);if(N&&N.rows&&N.collapsedItemCount!==void 0)return N.rows=N.rows.slice(0,N.collapsedItemCount),N.collapsedItemCount=N.rows.length,N}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.structuredDescriptionContentRenderer)==null?0:(d=M.items)==null?0:d.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var M;return(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.videoSecondaryInfoRenderer)==null?0:(d=M.owner)==null?0:(N=d.videoOwnerRenderer)==null?0:N.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return!!((M=this.videoPrimaryInfoRenderer)==null?0:(d=M.videoActions)==null?0:(N=d.menuRenderer)==null?0:(R=N.flexibleItems)==null?0:R.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 M=this;if(_.Q("web_title_hashtag_grey_delinkified")){var d,N=_.wF.unsafeClone((d=this.videoPrimaryInfoRenderer)==null?void 0:d.title);(d=N==null?void 0:N.runs)&&d.forEach(function(R){if(R==null?0:R.navigationEndpoint)R.textColor=4284506208,M.isDark&&(R.textColor=4289374890)});
return N}return(N=this.videoPrimaryInfoRenderer)==null?void 0:N.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_title_hashtag_black_delinkified")||_.Q("web_title_hashtag_grey_delinkified")}}});
jb.prototype.resetDescriptionState=jb.prototype.resetDescriptionState;jb.prototype.registerPanel=jb.prototype.registerPanel;jb.prototype.onYtExpanderLessTapped=jb.prototype.onYtExpanderLessTapped;jb.prototype.onYtExpanderMoreTapped=jb.prototype.onYtExpanderMoreTapped;jb.prototype.onRenderStamperFinished=jb.prototype.onRenderStamperFinished;jb.prototype.onYtTextInlineExpanderExpandedChanged=jb.prototype.onYtTextInlineExpanderExpandedChanged;jb.prototype.onYtTextInlineExpanderCollapseClicked=jb.prototype.onYtTextInlineExpanderCollapseClicked;
jb.prototype.onYtTextInlineExpanderExpandClicked=jb.prototype.onYtTextInlineExpanderExpandClicked;jb.prototype.moveActionsElement=jb.prototype.moveActionsElement;jb.prototype.updateShouldForceIconOnly=jb.prototype.updateShouldForceIconOnly;jb.prototype.updateTopLevelIconsOnly=jb.prototype.updateTopLevelIconsOnly;jb.prototype.structuredDescriptionContentRendererChanged=jb.prototype.structuredDescriptionContentRendererChanged;jb.prototype.videoSecondaryInfoRendererChanged=jb.prototype.videoSecondaryInfoRendererChanged;
jb.prototype.videoPrimaryInfoRendererChanged=jb.prototype.videoPrimaryInfoRendererChanged;jb.prototype.maybeUpdateActionsOnSeparateLine=jb.prototype.maybeUpdateActionsOnSeparateLine;jb.prototype.updateOwnerAndDescriptionPosition=jb.prototype.updateOwnerAndDescriptionPosition;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],jb.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],jb.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],jb.prototype,"ytdReduxBehavior",void 0);_.G([_.Z3("#above-the-fold"),_.a("design:type",HTMLElement)],jb.prototype,"aboveTheFoldContainer",void 0);_.G([_.Z3("#menu ytd-menu-renderer"),_.a("design:type",Object)],jb.prototype,"menu",void 0);
_.G([_.Z3("#description-inline-expander"),_.a("design:type",Object)],jb.prototype,"descriptionInlineExpander",void 0);_.G([_.Z3("#faded-structured-description"),_.a("design:type",Object)],jb.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.G([_.Z3("#structured-description"),_.a("design:type",Object)],jb.prototype,"structuredDescriptionContentRendererElement",void 0);_.G([_.Z3("#title"),_.a("design:type",HTMLElement)],jb.prototype,"titleElement",void 0);
_.G([_.Z3("#description"),_.a("design:type",HTMLElement)],jb.prototype,"descriptionElement",void 0);_.G([_.Z3("#description-interaction"),_.a("design:type",Object)],jb.prototype,"descriptionInteraction",void 0);_.G([_.Z3("#owner"),_.a("design:type",HTMLElement)],jb.prototype,"ownerElement",void 0);_.G([_.Z3("#top-row"),_.a("design:type",HTMLElement)],jb.prototype,"topRowElement",void 0);_.G([_.Z3("#bottom-row"),_.a("design:type",HTMLElement)],jb.prototype,"bottomRowElement",void 0);
_.G([_.Z3("#actions"),_.a("design:type",HTMLElement)],jb.prototype,"actionsElement",void 0);_.G([_.Z3("#bottom-actions"),_.a("design:type",HTMLElement)],jb.prototype,"bottomActionsElement",void 0);_.G([_.Z3("#ytd-watch-info-text"),_.a("design:type",Object)],jb.prototype,"watchInfoTextElement",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoPrimaryInfoRenderer",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoSecondaryInfoRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"commentsEntryPointHeaderRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoMetadataCarousel",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"structuredDescriptionContentRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"videoSummary",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"merchShelf",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"infoPanelBelowMetadata",void 0);_.G([_.z("structuredDescriptionContentRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"productShelf",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"metadataBadgesInDescription",void 0);
_.G([_.z("videoPrimaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"shouldHideBadges",null);_.G([_.z("productShelf","descriptionCollapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"shouldShowProductShelf",null);_.G([_.H(),_.a("design:type",Boolean)],jb.prototype,"isWatchFlexy",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"descriptionCollapsed",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],jb.prototype,"useFadedScrimDescription",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"skinnyMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("videoSecondaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"largerItemWrap",null);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"playlist",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"clarifyBox",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"playerAds",void 0);_.G([_.H(),_.a("design:type",Boolean)],jb.prototype,"isDark",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],jb.prototype,"actionsOnSeparateLine",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"disableVideoOwnerOnTap",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"swatcherooDelayLoad",void 0);
_.G([_.H(),_.a("design:type",Boolean)],jb.prototype,"suppressTopLevelMetadataRows",void 0);_.G([_.H(),_.a("design:type",Object)],jb.prototype,"primaryMenuWidth",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"videoId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHeadlineXs",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHeadlineS",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHeadlineM",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHashtagBlackLinkified",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"titleHashtagGreyLinkified",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.G([_.H(),_.a("design:type",Object)],jb.prototype,"shouldForceIconOnly",void 0);_.G([_.NS("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"updateOwnerAndDescriptionPosition",null);_.G([_.NS("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.G([_.z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"descriptionText",null);_.G([_.z("videoSecondaryInfoRenderer.headerRuns"),_.a("design:type",Array),_.a("design:paramtypes",[])],jb.prototype,"headerRuns",null);_.G([_.H({value:!1}),_.z("commentsEntryPointHeaderRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"hasTeaser",null);
_.G([_.H({value:!1,reflectToAttribute:!0}),_.z("videoMetadataCarousel"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"hasTeaserCarousel",null);_.G([_.H({value:3}),_.z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"descriptionMaxLines",null);_.G([_.z("videoSecondaryInfoRenderer.metadataRowContainer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"collapsibleMetadataRows",null);
_.G([_.z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"alwaysVisibleMetadataRows",null);_.G([_.z("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"hasInlineStructuredDescription",null);
_.G([_.z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showInlineStructuredDescription",null);_.G([_.z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"descriptionExpandCommand",null);
_.G([_.z("videoSecondaryInfoRenderer.owner"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"videoOwnerCommand",null);_.G([_.H({reflectToAttribute:!0}),_.z("videoPrimaryInfoRenderer.videoActions"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"flexMenuEnabled",null);_.G([_.H({selector:_.IF,reflectToAttribute:!0}),_.a("design:type",Object)],jb.prototype,"isFullscreen",void 0);
_.G([_.z("descriptionText","useFadedScrimDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showAttributedStringDescription",null);_.G([_.z("descriptionText","useFadedScrimDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showFormattedStringDescription",null);
_.G([_.z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],jb.prototype,"showFadedStructuredDescription",null);_.G([_.NS("videoPrimaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"videoPrimaryInfoRendererChanged",null);_.G([_.z("videoPrimaryInfoRenderer.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"videoTitle",null);
_.G([_.z("videoPrimaryInfoRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],jb.prototype,"noEndpoints",null);_.G([_.NS("videoSecondaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"videoSecondaryInfoRendererChanged",null);
_.G([_.xB("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"structuredDescriptionContentRendererChanged",null);_.G([_.xB("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"updateTopLevelIconsOnly",null);
_.G([_.xB("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"updateShouldForceIconOnly",null);_.G([_.xB("skinnyMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"moveActionsElement",null);_.G([_.C3("yt-text-inline-expander-expand-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.G([_.C3("yt-text-inline-expander-collapse-clicked"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.G([_.C3("yt-text-inline-expander-expanded-changed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],jb.prototype,"onRenderStamperFinished",null);_.G([_.C3("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtExpanderMoreTapped",null);_.G([_.C3("yt-expander-less-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"onYtExpanderLessTapped",null);
_.G([_.xB("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"registerPanel",null);_.G([_.xB("videoSecondaryInfoRenderer"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jb.prototype,"resetDescriptionState",null);jb=_.G([_.f({disableElementRegistration:!0,is:"ytd-watch-metadata"})],jb);
_.L(jb,"ytd-watch-metadata",function(){if(P3D!==void 0)return P3D;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return P3D=M},{mode:2});var GIC=function(M){_.DL.call(this);this.JSC$20149_watchApi=M;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;eDb(this);Hwb(this);nRJ(this);iwG(this);fTJ(this);LrD(this);t_Y(this)};
_.v(GIC,_.DL);var nRJ=function(M){var d=function(){_.Q("kevlar_is_pupi_enabled")||si(M)};
M.JSC$20149_watchApi.getRoot().addEventListener("yt-player-updated",d);M.addOnDisposeCallback(function(){M.JSC$20149_watchApi.getRoot().removeEventListener("yt-player-updated",d)})},fTJ=function(M){if(_.Q("kevlar_endscreen_auto_theater_mode")){var d=_.kO(_.iY(),q5,function(){aTe(M)});
M.addOnDisposeCallback(d)}},eDb=function(M){var d,N,R,X,A;
_.B(function(l){if(l.nextAddress==1)return _.D(l,M.JSC$20149_watchApi.playerApi,2);d=l.yieldResult;N=function(k){k=!!k;P$(M)&&(k=k?2:1,_.GQ.getInstance().setState(k,!0,!1))};
R=function(k){k&&_.uAJ(_.iY().getState())&&(_.ZI(M.JSC$20149_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),M.temporaryTheaterMode=!0)};
X=function(k){_.Q("kevlar_player_update_autonav_on_new_data")&&k.type==="newdata"&&(_.Q("kevlar_is_pupi_enabled")||si(M))};
A=function(k){M.onPlayerStateChange(k)};
_.Q("kevlar_endscreen_auto_theater_mode")&&d.addEventListener("onAutonavCancelled",R);d.addEventListener("onAutonavChangeRequest",N);d.addEventListener("onVideoDataChange",X);d.addEventListener("onStateChange",A);M.addOnDisposeCallback(function(){d.removeEventListener("onAutonavChangeRequest",N);d.removeEventListener("onVideoDataChange",X);d.removeEventListener("onStateChange",A);_.Q("kevlar_endscreen_auto_theater_mode")&&d.removeEventListener("onAutonavCancelled",R)});
_.Vy(l)})},Hwb=function(M){M.JSC$20149_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){M.autonavCancelledBySignal=!0;
_.Q("kevlar_is_pupi_enabled")||si(M)});
M.JSC$20149_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(d,N,R){N&&si(M,R)});
M.JSC$20149_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){P$(M)&&_.GQ.getInstance().setState(2,!0,!0)});
M.JSC$20149_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){P$(M)&&_.GQ.getInstance().setState(1,!0,!0)});
M.addOnDisposeCallback(function(){oP(M.JSC$20149_watchApi,"yt-signal-action-cancel-autonav");oP(M.JSC$20149_watchApi,"yt-autonav-state-changed-action");oP(M.JSC$20149_watchApi,"yt-enable-autoplay-command");oP(M.JSC$20149_watchApi,"yt-disable-autoplay-command")})},iwG=function(M){var d=M.JSC$20149_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){t_Y(M)}),N=M.JSC$20149_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LrD(M)});
M.addOnDisposeCallback(function(){M.JSC$20149_watchApi.unsubscribeByKey(d);M.JSC$20149_watchApi.unsubscribeByKey(N)})},t_Y=function(M){M.autonavCancelledBySignal=!1;
_.Q("kevlar_is_pupi_enabled")||si(M)},LrD=function(M){var d=M.JSC$20149_watchApi.getWatchNextResponse(),N,R;
var X=(d=(R=_.q(d==null?void 0:(X=d.playerOverlays)==null?void 0:(N=X.playerOverlayRenderer)==null?void 0:N.autonavToggle,_.aYL))==null?void 0:R.enabled)?2:1;_.Q("kevlar_is_pupi_enabled")?_.GQ.getInstance().setState(X,!1,!1):si(M);_.Q("web_persist_server_autonav_state_on_client")&&typeof d==="boolean"&&_.JWp(X===2)},P$=function(M){if(M.autonavCancelledBySignal)return!1;
var d,N,R,X;return!!((d=M.JSC$20149_watchApi.getWatchNextResponse())==null?0:(N=d.contents)==null?0:(R=N.twoColumnWatchNextResults)==null?0:(X=R.autoplay)==null?0:X.autoplay)};
GIC.prototype.onPlayerStateChange=function(M){if(M===0){M=!_.GQ.getInstance().isAutoplaySetExplicitly();var d=this.JSC$20149_watchApi.getWatchNextResponse(),N,R,X,A;d=_.q(d==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.autoplay)==null?void 0:(A=X.autoplay)==null?void 0:A.autoplayExplicitChoiceDialogRenderer,_.jHC);P$(this)&&M&&d&&_.YQ.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:d},popupType:"DIALOG"}})}else aTe(this)};
var aTe=function(M){M.temporaryTheaterMode&&(M.temporaryTheaterMode=!1,_.ZI(M.JSC$20149_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},si=function(M,d){d=d===void 0?!1:d;
var N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20149_watchApi.playerApi,2);N=R.yieldResult;P$(M)?N.setAutonavState(_.GQ.getInstance().getState(),d):N.setAutonavState(1,d);_.Vy(R)})};var U3J={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"};var C3q=function(M){_.DL.call(this);var d=this;this.JSC$20154_watchApi=M;var N=this.JSC$20154_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){u_J(d)});
this.addOnDisposeCallback(function(){d.JSC$20154_watchApi.unsubscribeByKey(N)});
u_J(this)};
_.v(C3q,_.DL);var u_J=function(M){var d=M.JSC$20154_watchApi.getPlayerResponse(),N=M.JSC$20154_watchApi.getWatchNextResponse();if(!_.U3Z(d==null?void 0:d.playabilityStatus,N==null?void 0:N.playerOverlays)){var R;var X=d==null?void 0:(R=d.playabilityStatus)==null?void 0:R.errorScreen}M.JSC$20154_watchApi.provideRenderingData("ERROR_SCREEN",X)};var x3b=_.SG(function(M){var d=M.data;return _.g("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.g("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.g(_.ho,{data:function(){return d().channelAvatar}},{avatarViewModel:_.TS}),_.g(_.lG,{text:function(){return d().subtitle}})))},"Qi");var Yrq=_.SG(function(M){return _.g("yt-player-quick-action-buttons",{class:_.xj("ytPlayerQuickActionButtonsHost")},_.g(_.TN,{each:M.data},function(d){return _.g(_.ho,{data:function(){return d}},{buttonViewModel:_.o0,
likeButtonViewModel:function(N){return _.g(_.sEV,{data:N.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Old})}))},"Ri");var ERG=function(M){_.DL.call(this);var d=this;this.JSC$20157_watchApi=M;M=_.V(_.d0({},void 0,"ufFdVc"));this.quickActionsViewModel=M.next().value;this.setQuickActionsViewModel=M.next().value;M=_.V(_.d0({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=M.next().value;this.setPlayerOverlayVideoDetailsRenderer=M.next().value;var N=this.JSC$20157_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Zwb(d)});
this.addOnDisposeCallback(function(){d.JSC$20157_watchApi.unsubscribeByKey(N)});
Zwb(this)};
_.v(ERG,_.DL);
var Zwb=function(M){var d,N,R,X,A,l,k,T,W,w,p,m,I,O;_.B(function(y){if(y.nextAddress==1)return _.D(y,M.JSC$20157_watchApi.playerApi,2);d=y.yieldResult;N=M.JSC$20157_watchApi.getWatchNextResponse();A=(R=N)==null?void 0:(X=R.playerOverlays)==null?void 0:X.playerOverlayRenderer;k=_.q((l=A)==null?void 0:l.fullscreenQuickActionsBar,_.AOd);(W=(T=M).setQuickActionsViewModel)==null||W.call(T,k||{});k&&MN$(M,d);m=(w=A)==null?void 0:(p=w.videoDetails)==null?void 0:p.playerOverlayVideoDetailsRenderer;(O=(I=
M).setPlayerOverlayVideoDetailsRenderer)==null||O.call(I,m||{});m&&dgT(M,d);_.Vy(y)})},MN$=function(M,d){if(!M.quickActionButtonsContainer){M.quickActionButtonsContainer=document.createElement("div");
d.setFullscreenQuickActions(M.quickActionButtonsContainer);var N=function(){return M.quickActionsViewModel().quickActionButtons||[]},R=_.hA(M.quickActionButtonsContainer,function(){return _.g(Yrq,{data:N})});
M.addOnDisposeCallback(function(){d.setFullscreenQuickActions(void 0);R()})}},dgT=function(M,d){if(!M.playerOverlayVideoDetailsRendererContainer){M.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
d.setPlayerOverlayVideoDetailsRenderer(M.playerOverlayVideoDetailsRendererContainer);var N=_.hA(M.playerOverlayVideoDetailsRendererContainer,function(){return _.g(x3b,{data:M.playerOverlayVideoDetailsRenderer})});
M.addOnDisposeCallback(function(){d.setPlayerOverlayVideoDetailsRenderer(void 0);N()})}};var rO=function(M){_.DL.call(this);var d=this;this.JSC$20162_watchApi=M;this.JSC$20162_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;M=_.kO(_.iY(),_.IF,function(N){Nab(d,N)});
this.addOnDisposeCallback(M);M=_.kO(_.iY(),_.v9,function(N){d.onWatchScroll(N)});
this.addOnDisposeCallback(M);_.Q("kevlar_watch_while_v2")&&(M=_.kO(_.iY(),_.vD,function(N){R8C(d,N)}),this.addOnDisposeCallback(M));
Xwi(this);F5d(this);AFP();this.onWatchScroll(_.v9(_.iY().getState()));_.KF("START_IN_FULL_WINDOW_MODE")&&this.JSC$20162_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.v(rO,_.DL);var Xwi=function(M){M.JSC$20162_watchApi.registerActionHandler("yt-fullscreen-change-action",function(d){var N=q5(_.iY().getState());d&&!N||_.iY().dispatch(_.YS({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!d}}))});
M.addOnDisposeCallback(function(){oP(M.JSC$20162_watchApi,"yt-fullscreen-change-action")})},F5d=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20162_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.onFullerscreenEduClicked()};
d.addEventListener("onFullerscreenEduClicked",N);M.addOnDisposeCallback(function(){d.removeEventListener("onFullerscreenEduClicked",N)});
_.Vy(R)})},Nab=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return M.isFullscreen=!!_.Uu(),_.D(R,M.JSC$20162_watchApi.playerApi,2);N=R.yieldResult;M.JSC$20162_miniplayerActive||N.setFauxFullscreen(M.isFullscreen);if(d&&(M.JSC$20162_watchApi.focusOnPlayer(),!M.fullerscreenEduButtonShownThisPlayback)){M.fullerscreenEduButtonShownThisPlayback=!0;var X=_.F5("yt-fullerscreen-edu-button-shown-count")||0;_.X5("yt-fullerscreen-edu-button-shown-count",X+1,31536E3);M.updateFullerscreenEduButtonSubtleModeState()}_.Vy(R)})},R8C=function(M,
d){var N;
_.B(function(R){if(R.nextAddress==1)return M.JSC$20162_miniplayerActive=d,_.D(R,M.JSC$20162_watchApi.playerApi,2);N=R.yieldResult;N.setFauxFullscreen(!M.JSC$20162_miniplayerActive&&M.isFullscreen);_.Vy(R)})};
rO.prototype.onWatchScroll=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return _.Q("external_fullscreen_with_edu")?_.D(X,d.JSC$20162_watchApi.playerApi,2):X.return();N=X.yieldResult;R=M<=0;d.shouldShowFullerscreenEdu!==R&&(d.shouldShowFullerscreenEdu=R,N.updateFullerscreenEduButtonVisibility(!d.shouldShowFullerscreenEdu));_.Vy(X)})};
rO.prototype.onFullerscreenEduClicked=function(){this.JSC$20162_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var M=_.F5("yt-fullerscreen-edu-button-click-count")||0;_.X5("yt-fullerscreen-edu-button-click-count",M+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
rO.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return d=_.F5("yt-fullerscreen-edu-button-click-count")||0,N=_.F5("yt-fullerscreen-edu-button-shown-count")||0,R=_.ZR("external_fullscreen_button_click_threshold"),X=_.ZR("external_fullscreen_button_shown_threshold"),A=d>=R||N>=X,_.D(k,M.JSC$20162_watchApi.playerApi,2);l=k.yieldResult;l.updateFullerscreenEduButtonSubtleModeState(A);_.Vy(k)})};
rO.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);var M=_.Uu();_.Q("kevlar_exit_fullscreen_leaving_watch")&&M&&_.uX(M)};
var AFP=function(){if(_.Q("web_watch_add_viewport_meta_tag")){var M=document.querySelector("meta[name=viewport]"),d=document.head;d&&!M&&(M=document.createElement("meta"),M.name="viewport",M.content="width=device-width, initial-scale=1.0, viewport-fit=cover",d.appendChild(M))}};var lwP=function(M){_.DL.call(this);var d=this;this.JSC$20166_watchApi=M;this.jobId=0;this.pendingRequestId=void 0;var N=this.JSC$20166_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VNP(d)});
this.addOnDisposeCallback(function(){d.JSC$20166_watchApi.unsubscribeByKey(N)});
VNP(this)};
_.v(lwP,_.DL);var $gC=function(M){_.IQ.cancelJob(M.jobId);M.pendingRequestId=void 0},VNP=function(M){$gC(M);
var d=hob(M.JSC$20166_watchApi.getWatchNextResponse());if(d){var N=250,R,X=(R=_.q(d,_.lYL))==null?void 0:R.initialDelayMs;_.Q("web_watch_updated_metadata_server_initial_delay")&&X&&(N=X);M.jobId=_.IQ.addLowPriorityJob(function(){return M.fetchUpdatedMetadata(d)},N)}};
lwP.prototype.fetchUpdatedMetadata=function(M,d){var N=this,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e;return _.B(function(t){switch(t.nextAddress){case 1:d&&(R={continuation:d});if(!_.Q("web_get_updated_metadata_fantasy_panel_continuation_params")){t.jumpTo(2);break}X=_.h().resolve(_.g1);A="PAsports_fantasy";return _.D(t,X.isVisible(A,!0),3);case 3:t.yieldResult&&(W=(k=(l=X).getUpdatePanelContinuationData)==null?void 0:(T=k.call(l,A))==null?void 0:T.updatePanelContinuationRequest)&&(R||(R={}),R.clientParams=
{panelContinuationParams:{panelContinuation:W}});case 2:w=_.h().resolve(_.D3);if(!w)return _.qZ(Error("jm")),t.return();p={};N.pendingRequestId=p;return _.D(t,_.rT(w,M,R),4);case 4:m=t.yieldResult;if(p!==N.pendingRequestId)return t.return();y=(I=m)==null?void 0:(O=I.continuation)==null?void 0:O.timedContinuationData;((c=y)==null?0:c.continuation)&&((e=y)==null?0:e.timeoutMs)&&(N.jobId=_.IQ.addLowPriorityJob(function(){return N.fetchUpdatedMetadata(M,y.continuation)},y.timeoutMs));
_.Vy(t)}})};
lwP.prototype.disposeInternal=function(){_.DL.prototype.disposeInternal.call(this);$gC(this)};var Ba$=_.SG(function(M){var d=_.dT(function(){var R=M.data().videoId;if(M.active())R=_.UN(R),_.h().resolve(_.xV).resolveCommand(R);else{var X=M.playerApi(),A=X.getAvailableAudioTracks(),l,k,T=(l=M.sourceVideoConfig().audioTracks)==null?void 0:(k=l.find(function(W){return W.isDefaultForSource}))==null?void 0:k.id;
if(A=A.find(function(W){return W.getLanguageInfo().getId()===T}))X.setAudioTrack(A,!0),X.setCompositeParam({activeVideoId:R}),M.setActiveSourceId(R)}}),N={};
return _.g("ytw-composite-source-video-overlay",{class:_.xj("ytwCompositeSourceVideoOverlayHost",(N.ytwCompositeSourceVideoOverlayActive=M.active,N.ytwCompositeSourceVideoOverlayInteracting=M.interacting,N)),style:_.Xc({left:function(){var R;return((R=M.data().topLeftCornerX)!=null?R:0)*100+"%"},
top:function(){var R;return((R=M.data().topLeftCornerY)!=null?R:0)*100+"%"},
width:function(){var R;return((R=M.data().width)!=null?R:0)*100+"%"},
height:function(){var R;return((R=M.data().height)!=null?R:0)*100+"%"}}),
"on:click":d},_.g("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Si");var kCr=_.SG(function(M){var d=_.V(_.Rq(function(){var k,T=(k=M.data().sources)==null?void 0:k.find(function(W){return W.isActive});
if(T)return T.videoId})),N=d.next().value,R=d.next().value;
d=_.V(_.d0(!1,void 0,"WI4BUb"));var X=d.next().value,A=d.next().value;d=_.dT(function(){A(!0)});
var l=_.dT(function(){A(!1)});
return _.g("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":d,"on:mouseout":l},_.g(_.kV,{cond:function(){return M.data().sources},
then:function(k){return _.g(_.TN,{each:k},function(T){return _.g(Ba$,{data:T,active:function(){return T.videoId===N()},
setActiveSourceId:R,interacting:X,playerApi:M.playerApi,sourceVideoConfig:function(){return QMi(M.compositeVideoConfig(),T.videoId)}})})}}))},"Ti");var gz4=function(M){_.DL.call(this);this.JSC$20182_watchApi=M;M=_.V(_.d0({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=M.next().value;this.setCompositeVideoOverlayRenderer=M.next().value;M=_.V(_.d0({},void 0,"U5hcq"));this.compositeVideoConfig=M.next().value;this.setCompositeVideoConfig=M.next().value;Tar(this);DgC(this)};
_.v(gz4,_.DL);var Tar=function(M){var d=M.JSC$20182_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DgC(M)});
M.addOnDisposeCallback(function(){M.JSC$20182_watchApi.unsubscribeByKey(d)})},W5D=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20182_watchApi.playerApi,2);d=N.yieldResult;d.setCompositeVideoOverlayRendererComponent(M.container);_.Vy(N)})},wwG=function(M){var d;
return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20182_watchApi.playerApi,2);d=N.yieldResult;d.setCompositeVideoOverlayRendererComponent(void 0);_.Vy(N)})},pwC=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20182_watchApi.playerApi,2);d=R.yieldResult;M.container=document.createElement("div");N=_.hA(M.container,function(){return _.g(kCr,{data:M.compositeVideoOverlayRenderer,compositeVideoConfig:M.compositeVideoConfig,playerApi:d})});
M.addOnDisposeCallback(N);_.Vy(R)})},DgC=function(M){var d,N,R,X,A,l,k,T;
_.B(function(W){return W.nextAddress==1?(d=M.JSC$20182_watchApi.getPlayerResponse(),A=_.q((N=d)==null?void 0:(R=N.overlay)==null?void 0:(X=R.playerControlsOverlayRenderer)==null?void 0:X.compositeVideoOverlay,klb),T=(l=d)==null?void 0:(k=l.playerConfig)==null?void 0:k.compositeVideoConfig,A&&M.setCompositeVideoOverlayRenderer(A),T&&M.setCompositeVideoConfig(T),A&&T?M.container?W.jumpTo(6):_.D(W,pwC(M),6):mgY(M)?_.D(W,wwG(M),0):W.jumpTo(0)):mgY(M)?W.jumpTo(0):_.D(W,W5D(M),0)})},mgY=function(M){var d;
return!((d=M.container)==null||!d.parentElement)};
gz4.prototype.disposeInternal=function(){mgY(this)&&wwG(this);_.DL.prototype.disposeInternal.call(this)};var vzr=function(M){_.DL.call(this);var d=this;this.JSC$20188_watchApi=M;var N=this.JSC$20188_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var R=d.JSC$20188_watchApi.getPlayerResponse();if(R){var X,A;if(R=_.q((X=R.endscreen)==null?void 0:(A=X.endscreenRenderer)==null?void 0:A.hideButton,_.qH)){var l;(l=d.setEndscreenHideButton)==null||l.call(d,R);h84(d)}}});
this.addOnDisposeCallback(function(){d.JSC$20188_watchApi.unsubscribeByKey(N)});
M=_.V(_.d0({},void 0,"PPHRb"));this.endscreenHideButton=M.next().value;this.setEndscreenHideButton=M.next().value;Q3D(this);qQ9(this);Iwr(this)};
_.v(vzr,_.DL);var h84=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return M.creatorEndscreenHideButtonContainer?R.return():_.D(R,M.JSC$20188_watchApi.playerApi,2);d=R.yieldResult;M.creatorEndscreenHideButtonContainer=document.createElement("div");_.cU(M.creatorEndscreenHideButtonContainer,!1);d.setCreatorEndscreenHideButton(M.creatorEndscreenHideButtonContainer);N=_.hA(M.creatorEndscreenHideButtonContainer,function(){return _.g(_.I0,{data:M.endscreenHideButton,useOutlinedIcon:!0})});
M.addOnDisposeCallback(function(){N();d.setCreatorEndscreenHideButton(void 0)});
_.Vy(R)})},Q3D=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20188_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.creatorEndscreenHideButtonContainer&&_.cU(M.creatorEndscreenHideButtonContainer,!0)};
d.addEventListener("endscreenelementshown",N);M.addOnDisposeCallback(function(){d.removeEventListener("endscreenelementshown",N)});
_.Vy(R)})},qQ9=function(M){var d=function(){M.creatorEndscreenHideButtonContainer&&_.cU(M.creatorEndscreenHideButtonContainer,!1)},N=M.JSC$20188_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",d),R=M.JSC$20188_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",d);
M.addOnDisposeCallback(function(){M.JSC$20188_watchApi.unsubscribeByKey(N);M.JSC$20188_watchApi.unsubscribeByKey(R)})},Iwr=function(M){M.JSC$20188_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(d){var N=_.q(d,F_i);
M.JSC$20188_watchApi.playerApi.then(function(R){R==null||R.setCreatorEndscreenVisibility(!!N.hide)})});
M.addOnDisposeCallback(function(){oP(M.JSC$20188_watchApi,"yt-change-creator-endscreen-visibility-command")})};var j3q=function(M){_.DL.call(this);this.JSC$20194_watchApi=M;Op$(this)};
_.v(j3q,_.DL);var Op$=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20194_watchApi.playerApi,2);d=R.yieldResult;N=function(X){_.iY().dispatch(_.YS({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:X}}))};
d.addEventListener("onRetroModeChanged",N);M.addOnDisposeCallback(function(){d.removeEventListener("onRetroModeChanged",N)});
_.Vy(R)})};var oF=0,P9=0,ro=0;var s3J=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),Ks=function(M){_.DL.call(this);this.JSC$20207_watchApi=M;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;P9i(this)};
_.v(Ks,_.DL);
var P9i=function(M){var d,N,R;_.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$20207_watchApi.playerApi,2);d=X.yieldResult;if(M.isDisposed())return X.return();M.sessionStorage=_.rdq("yt-sleep-timer");M.sessionStorage||_.vh(new _.WJ("SessionStorage for Sleep Timer is undefined."));((N=M.sessionStorage)==null?void 0:N.get("yt-sleep-timer"))==="true"&&(KbT(),(R=M.sessionStorage)==null||R.remove("yt-sleep-timer"),d.syncVolume());oz4(M,d);rFJ(M,d);K5i(M,d);_.Vy(X)})},oz4=function(M,d){var N=function(W){M.onSleepTimerSettingsChanged(W,
d)},R=function(W){M.onPlayerStateChange(W,d)},X=function(){M.onLoopChange(d)},A=function(){M.onCloseMiniplayer(d)},l=function(){sMe(d,(0,_.Gs)(),yP9(d),M.selectedOption==="End of video",d.getPlayerState()!==1)},k=function(){M.onSeekComplete(d)},T=function(){_.IQ.cancelJob(P9);
var W=d.getCurrentTime()>=d.getDuration(),w=M.selectedOption==="End of video"||M.selectedOption==="End of playlist"&&!vu4(M.playlistId);W&&w&&yFP(M,d)};
d.addEventListener("onSleepTimerSettingsChanged",N);d.addEventListener("onLoopChange",X);d.addEventListener("onLoopRangeChange",X);d.addEventListener("onStateChange",R);d.addEventListener("onCloseMiniplayer",A);d.addEventListener("onSleepTimerFeatureAvailable",l);d.addEventListener("SEEK_COMPLETE",k);d.addEventListener("onAdStart",T);M.addOnDisposeCallback(function(){d.removeEventListener("onSleepTimerSettingsChanged",N);d.removeEventListener("onLoopChange",X);d.removeEventListener("onLoopRangeChange",
X);d.removeEventListener("onStateChange",R);d.removeEventListener("onCloseMiniplayer",A);d.removeEventListener("onSleepTimerFeatureAvailable",l);d.removeEventListener("SEEK_COMPLETE",k);d.removeEventListener("onAdStart",T)})},rFJ=function(M,d){var N=M.JSC$20207_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var R=d.getVideoData().video_id,X,A=(X=qGi(M.JSC$20207_watchApi))==null?void 0:X.playlistId;
M.pauseAutonavPlayback&&(d.pauseVideo(),d.syncVolume(),M.pauseAutonavPlayback=!1);if(M.selectedOption==="End of video"&&R!==M.videoId)y6(M,d);else{if(M.selectedOption==="End of playlist"){X=vu4(M.playlistId);if(A!==M.playlistId){y6(M,d);break a}X?X&&JFP(M,d):cFP(M,d)}M.videoId=R;M.playlistId=A}}});
M.addOnDisposeCallback(function(){M.JSC$20207_watchApi.unsubscribeByKey(N)})},K5i=function(M,d){var N=_.h().resolve(_.ql),R=_.kO(N,_.r6S,function(A){A&&M.selectedOption!=="Off"&&y6(M,d)}),X=_.kO(N,q5,function(A){var l,k;
return _.B(function(T){if(T.nextAddress==1)return _.D(T,_.$O().navigationFinishPromise,2);l=!_.Ahz();k=_.h().resolve(_.et).isMiniplayerActive();A||!s4(M.selectedOption)||k||l||y6(M,d);_.Vy(T)})});
N=_.kO(N,function(A){return A.entities.playlistLoopStateEntity||{}},function(A){A=A===void 0?{}:A;
var l=IUT(M.JSC$20207_watchApi);if(l){var k;((k=A[l])==null?void 0:k.state)==="PLAYLIST_LOOP_STATE_ALL"&&s4(M.selectedOption)&&y6(M,d)}});
M.addOnDisposeCallback(R);M.addOnDisposeCallback(N);M.addOnDisposeCallback(X)};
Ks.prototype.onSleepTimerSettingsChanged=function(M,d){switch(M){case "Off":this.selectedOption!=="Off"&&y6(this,d);break;case "End of video":case "End of playlist":SQ4(this,M,d);break;default:SQ4(this,M,d,s3J.get(M))}};
Ks.prototype.onLoopChange=function(M){(M.getLoopVideo()||M.getLoopRange())&&s4(this.selectedOption)&&y6(this,M)};
Ks.prototype.onCloseMiniplayer=function(M){s4(this.selectedOption)&&y6(this,M)};
var SQ4=function(M,d,N,R){z8e(M,N);M.selectedOption=d;M.videoId=N.getVideoData().video_id;M.playlistId="";var X;(X=M.sessionStorage)==null||X.set("yt-sleep-timer","true");M.adjustmentsCount++;sMe(N,(0,_.Gs)(),yP9(N),M.selectedOption==="End of video");if(M.selectedOption==="End of video")cFP(M,N),bp4(M,N);else if(M.selectedOption==="End of playlist"){bp4(M,N);var A,l;M.playlistId=(l=(A=qGi(M.JSC$20207_watchApi))==null?void 0:A.playlistId)!=null?l:"";vu4(M.playlistId)||cFP(M,N)}else R&&(M.presetFadeSchedulerId=
_.kM(_.IQ,function(){oue(N,15E3)},R-15E3),M.presetPauseSchedulerId=_.kM(_.IQ,function(){yFP(M,N)},R),Pwr(N,(0,_.Gs)(),R))},yFP=function(M,d){if(q5(_.h().resolve(_.ql).getState())){var N={dismissDialogEndpoint:{}};
var R={commandExecutorCommand:{commands:[N,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};N={buttonViewModel:{title:_.le("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:N}}};R={buttonViewModel:{title:_.le("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:R}}};var X={dialogHeaderViewModel:{headline:{content:_.le("SLEEP_TIMER_ENDED_TITLE")}}},
A={basicContentViewModel:{paragraphs:[{text:{content:_.le("SLEEP_TIMER_ENDED_TEXT")}}]}};N={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:X,content:A,footer:{panelFooterViewModel:{primaryButton:N,secondaryButton:R,shouldHideDivider:!0}}}}}}};_.h().resolve(_.xV).resolveCommand(N,{form:{element:M}})}else KbT();e8T(M,!1);Hpd(M,d);d.pauseVideo();_.GQ.getInstance().getState()===2&&d.getPlayerState()===5&&(M.pauseAutonavPlayback=!0)},y6=function(M,d){e8T(M,!0);
Hpd(M,d);KbT()},Hpd=function(M,d){z8e(M,d);
M.selectedOption="Off";M.videoId="";M.playlistId="";M.adjustmentsCount=0;var N;(N=M.sessionStorage)==null||N.remove("yt-sleep-timer");_.IQ.cancelJob(oF);d.resetSleepTimerMenuSettings()},e8T=function(M,d){d={timer_length_adjustment_times_during_session:M.adjustmentsCount-1,
is_session_cancelled:d};switch(M.selectedOption){case "Off":d.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":d.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":d.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:d.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",d.option_duration_in_minutes=s3J.get(M.selectedOption)/6E4}_.hQ("sleepTimerSessionFinishEvent",d)};
Ks.prototype.onPlayerStateChange=function(M,d){M===1?sMe(d,(0,_.Gs)(),yP9(d),this.selectedOption==="End of video"):M===0?(_.IQ.cancelJob(P9),d.setVideoTimeLeft(jMY(0,0))):M===2&&_.IQ.cancelJob(P9);this.selectedOption==="End of video"?M===0?yFP(this,d):M===2&&rPY(d):this.selectedOption!=="End of playlist"||vu4(this.playlistId)||(M===0?yFP(this,d):M===2&&rPY(d))};
Ks.prototype.onSeekComplete=function(M){M.getPlayerState()===2&&sMe(M,(0,_.Gs)(),yP9(M),this.selectedOption==="End of video",!0)};
Ks.prototype.onCueRangeEnter=function(M,d){M==="sleep-timer-fade-audio"&&oue(d,(d.getDuration()-d.getProgressState().current)*1E3)};
Ks.prototype.onCueRangeExit=function(M,d){M==="sleep-timer-fade-audio"&&d.getPlayerState()!==0&&rPY(d,!0)};
var cFP=function(M,d){d.addCueRange("sleep-timer-fade-audio",d.getDuration()-15,d.getDuration());d.addEventListener("onCueRangeEnter",function(N){M.onCueRangeEnter(N,d)});
d.addEventListener("onCueRangeExit",function(N){M.onCueRangeExit(N,d)})},JFP=function(M,d){d.removeCueRange("sleep-timer-fade-audio");
d.removeEventListener("onCueRangeEnter",function(N){M.onCueRangeEnter(N,d)});
d.removeEventListener("onCueRangeExit",function(N){M.onCueRangeExit(N,d)})},z8e=function(M,d){s4(M.selectedOption)?JFP(M,d):(_.IQ.cancelJob(M.presetPauseSchedulerId),_.IQ.cancelJob(M.presetFadeSchedulerId),M.presetPauseSchedulerId=0,M.presetFadeSchedulerId=0);
rPY(d,!0)},bp4=function(M,d){d.setLoop(!1);
d.setLoopVideo(!1);d.setLoopRange(null);(M=IUT(M.JSC$20207_watchApi))&&_.h().resolve(_.ql).dispatch(_.la("playlistLoopStateEntity",M,{key:M,state:"PLAYLIST_LOOP_STATE_NONE"}))};var L5G=function(M){_.DL.call(this);this.JSC$20210_watchApi=M;nzb(this);ipq(this);fw9(this);M=M.getRoot();if(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-grid")M.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.th4();_.Q("web_watch_log_theater_mode_cookie_state")&&_.BJ.get("wide","0")==="1"&&_.orZ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.v(L5G,_.DL);var nzb=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20210_watchApi.playerApi,2);d=R.yieldResult;N=function(X){tN9(M,!!X)};
d.addEventListener("SIZE_CLICKED",N);M.addOnDisposeCallback(function(){d.removeEventListener("SIZE_CLICKED",N)});
_.Vy(R)})},ipq=function(M){M.JSC$20210_watchApi.registerActionHandler("yt-toggle-theater-mode",function(d,N){tN9(M,d,N===void 0?!0:N)});
M.addOnDisposeCallback(function(){oP(M.JSC$20210_watchApi,"yt-toggle-theater-mode")})};
L5G.prototype.getState=function(){return _.WK(_.iY().getState())};
var tN9=function(M,d,N){N=N===void 0?!0:N;var R,X,A,l=_.Q("enable_player_resize_transition")&&!!M.JSC$20210_watchApi.getWatchNextResponse()&&!((R=M.JSC$20210_watchApi.getWatchNextResponse())==null?0:(X=R.contents)==null?0:(A=X.twoColumnWatchNextResults)==null?0:A.conversationBar);_.KnJ(function(){_.iY().dispatch(_.YS({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:d}}));_.Q("theater_mode_scroll_to_top_killswitch")||M.JSC$20210_watchApi.scrollWatchTo(0,!1);_.Uu()&&_.Q("external_fullscreen")&&_.uX(document.documentElement);
fw9(M);N&&_.kY("wide",d?"1":"0",-1);_.ZI(M.JSC$20210_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);M.JSC$20210_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:d});d&&_.th4()},{shouldWrap:l})},fw9=function(M){var d;
_.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20210_watchApi.playerApi,2);d=N.yieldResult;d.setSizeStyle(!0,M.getState());_.Vy(N)})};var Uge=function(M){_.DL.call(this);var d=this;this.playerApi=M;this.timeToPanelSyncKeyMap={};var N;if(M==null?0:(N=M.isReady)==null?0:N.call(M)){N=_.kO(_.h().resolve(_.ql),function(X){return X.entities.timedMarkersListSyncEntity||{}},function(X,A){X=X===void 0?{}:X;
A=A===void 0?{}:A;for(var l=_.V(Object.keys(A)),k=l.next();!k.done;k=l.next())k=k.value,X[k]!==A[k]&&GCe(d,A[k]);A=_.V(Object.keys(X));for(l=A.next();!l.done;l=A.next())l=l.value,k=X[l],d.timeToPanelSyncKeyMap[l]&&awG(d,k)});
this.addOnDisposeCallback(N);var R=function(X){d.onCueRangeEnter(X)};
M.addEventListener("onCueRangeEnter",R);this.addOnDisposeCallback(function(){var X;(X=M.removeEventListener)==null||X.call(M,"onCueRangeEnter",R)})}};
_.v(Uge,_.DL);
var awG=function(M,d){var N,R;if((N=M.playerApi)==null?0:(R=N.isReady)==null?0:R.call(N)){var X;if((N=d==null?void 0:(X=d.timedListData)==null?void 0:X.sections)&&d!=null&&d.key)for(X=_.V(N),N=X.next();!N.done;N=X.next())if(N=N.value,N.timedSyncDataList&&N.sectionId)for(R=0;R<N.timedSyncDataList.length;R++){var A=N.timedSyncDataList[R];A.syncItemId&&M.playerApi.addCueRange(N.sectionId+"_"+d.key+"_"+A.syncItemId,Number(A.videoTimeMs)/1E3,R===N.timedSyncDataList.length-1?0x8000000000000:Number(N.timedSyncDataList[R+
1].videoTimeMs)/1E3)}}},GCe=function(M,d){var N,R;
if((N=M.playerApi)==null?0:(R=N.isReady)==null?0:R.call(N)){var X;if((N=d==null?void 0:(X=d.timedListData)==null?void 0:X.sections)&&d!=null&&d.key)for(X=_.V(N),N=X.next();!N.done;N=X.next())if(N=N.value,N.timedSyncDataList&&N.sectionId){R=_.V(N.timedSyncDataList);for(var A=R.next();!A.done;A=R.next())A=A.value,A.syncItemId&&M.playerApi.removeCueRange(N.sectionId+"_"+d.key+"_"+A.syncItemId)}}};
Uge.prototype.onCueRangeEnter=function(M){for(var d=_.V(Object.keys(this.timeToPanelSyncKeyMap)),N=d.next();!N.done;N=d.next()){N=N.value;var R=_.V(M.split("_"+N+"_")),X=R.next().value;R=R.next().value;if(X&&R){M=_.h().resolve(_.ql);d=this.timeToPanelSyncKeyMap[N];var A=_.GgZ(M.getState(),d);N=uJq(N,X,R);if(N===-1)break;N={activeSyncId:R,activeItemIndex:N,activeSectionInfo:{sectionIdentifier:X}};A?M.dispatch(_.v5("markersEngagementPanelSyncEntity",d,N)):M.dispatch(_.la("markersEngagementPanelSyncEntity",
d,Object.assign({},{key:d},N)));break}}};
var uJq=function(M,d,N){var R=_.h().resolve(_.ql),X,A;M=(X=n6Y(R.getState(),M))==null?void 0:(A=X.timedListData)==null?void 0:A.sections;if(!M)return-1;X=0;A=_.V(M);for(M=A.next();!M.done;M=A.next()){M=M.value;R=M.timedSyncDataList||[];if(M.sectionId===d)return d=R.findIndex(function(l){return l.syncItemId===N}),d===-1?d:X+d;
X+=R.length}return-1};var YQ9=function(M){_.DL.call(this);var d=this;this.JSC$20222_watchApi=M;this.unresolvedCommands=[];this.JSC$20222_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(N){C9r(d,N)});
this.addOnDisposeCallback(function(){oP(d.JSC$20222_watchApi,"yt-update-timed-markers-sync-observer-command")});
xgP(this)};
_.v(YQ9,_.DL);var xgP=function(M){var d;_.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20222_watchApi.playerApi,2);d=N.yieldResult;if(M.isDisposed())return N.return();M.timedSyncObserver=new Uge(d);M.unresolvedCommands.length&&(M.unresolvedCommands.forEach(function(R){return C9r(M,R)}),M.unresolvedCommands=[]);
_.RW(M,M.timedSyncObserver);_.Vy(N)})},C9r=function(M,d){if(M.timedSyncObserver){var N=_.q(d,VcD);
if(N&&N.timedSyncEntityKey&&N.panelSyncEntityKey){M=M.timedSyncObserver;d=N.timedSyncEntityKey;var R=N.panelSyncEntityKey;N=!!N.isEnabled;N=N===void 0?!0:N;var X=_.h().resolve(_.ql);X=n6Y(X.getState(),d);N?M.timeToPanelSyncKeyMap[d]||(M.timeToPanelSyncKeyMap[d]=R,awG(M,X)):(delete M.timeToPanelSyncKeyMap[d],GCe(M,X))}}else M.unresolvedCommands.push(d)};var ZpJ=_.SG(function(M){var d=M.data,N=M.maybeLogSmartSkipClientData,R=_.e5();_.ek(R,function(){return d().rendererContext},{onTap:function(w,p){p({disableClickTracking:!0})}});
var X=null,A=null,l=_.Q("web_enable_auto_focus_for_timely_action_button"),k=function(){X=document.activeElement},T=function(){d().smartSkipMetadata&&(X=document.activeElement,_.KOP(function(){return A}))},W=function(w){if(d().smartSkipMetadata&&(!w||w.key!=="Enter")){X&&X.isConnected&&(_.KOP(function(){return X}),X=null);
var p;(p=A)==null||p.blur()}};
M=_.dT(function(){N==null||N(!0,d());return!1});
_.Gi(R,{visibilityCallback:function(w){if(l)w?A&&d().smartSkipMetadata&&(T(),document.addEventListener("focusin",k)):(document.removeEventListener("focusin",k),W());else if(w&&_.Q("web_ephemeral_actions")){w=_.Sk(d().rendererContext);var p=Number(d().maxVisibleDurationMilliseconds),m,I=(m=_.q(d().rendererContext,_.H5))==null?void 0:m.label;w&&p&&I&&(m={label:I,command:w,durationMs:p},_.h().resolve(_.Ea).enqueue(m))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.QD(function(){if(l){var w;if((A=(w=R.value)==null?void 0:w.querySelector("button"))&&d().smartSkipMetadata){var p;(p=R.value)==null||p.addEventListener("keydown",W)}}});
_.mF(function(){l&&(A&&d().smartSkipMetadata&&A.removeEventListener("keydown",W),document.removeEventListener("focusin",k),W())});
return _.g("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:R,"on:click":M},_.g(_.ho,{data:function(){return d().content}},{buttonViewModel:_.o0}))},"Ui");var Ezd=_.SG(function(M){var d=M.data,N=M.playerApi,R=_.h().resolve(_.bsg);M=_.V(_.Rq(function(){d()}));
var X=M.next().value,A=M.next().value,l=function(){return cPb(d(),X())},k=function(W,w){var p,m,I=(p=_.q(w==null?void 0:w.rendererContext,_.NAi))==null?void 0:(m=p.loggingDirectives)==null?void 0:m.trackingParams;
if((w=w==null?void 0:w.smartSkipMetadata)&&w.loggingData&&(m=w.loggingData,w=m.algorithmId,p=m.startMilliseconds,m=m.endMilliseconds,w&&p!==void 0&&m!==void 0)){var O,y;W={smartSkipData:Object.assign({},{versionName:w,startMediaTimeMs:p,endMediaTimeMs:m},W&&{userInteractionMediaTimeMs:(Math.floor(((O=_.nO())==null?void 0:(y=O.getPlayer())==null?void 0:y.getCurrentTime())||0)*1E3).toString()})};O=_.Ou();var c;I&&(c=_.At(I));O&&c&&_.nb(O,c,W)}},T=function(W,w){var p=cPb(d(),W);
if(p){var m=_.q(p,K1),I;if(I=w)I=N(),p=_.q(p,K1),I=p!=null&&p.smartSkipMetadata?!(I==null?0:I.isSameMarkerTypeVisible((p==null?void 0:p.smartSkipMetadata.markerKey)||"")):!0;if(I){var O,y;(m==null?0:(O=m.smartSkipMetadata)==null?0:(y=O.loggingData)==null?0:y.isCounterfactual)||(k(!1,m),A(W))}else w||X()!==W||A(void 0)}};
_.Wg(function(){var W=d().timelyActions;if(W){W=_.V(W);for(var w=W.next();!w.done;w=W.next()){w=_.q(w.value,K1);var p=void 0;(p=w)!=null&&p.cueRangeId&&R.timelyActionsMap.set(w.cueRangeId,T)}_.mF(function(){R.timelyActionsMap.clear()})}});
return _.g("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.g(_.ho,{data:l},{timelyActionViewModel:function(W){return _.g(ZpJ,{data:W.data,maybeLogSmartSkipClientData:function(){k(!0,_.q(l(),K1))}})}}))},"Vi");var dCC=function(M){_.DL.call(this);this.JSC$20234_watchApi=M;M=_.V(_.d0({},void 0,"pLDp2"));this.timelyActionsOverlay=M.next().value;this.setTimelyActionsOverlay=M.next().value;Mf$(this)};
_.v(dCC,_.DL);var Mf$=function(M){var d,N,R,X;_.B(function(A){if(A.nextAddress==1)return N6T(M),RLJ(M),M.timelyActionsContainer=document.createElement("div"),_.D(A,M.JSC$20234_watchApi.playerApi,2);d=A.yieldResult;(R=(N=d).insertTimelyActionUi)==null||R.call(N,M.timelyActionsContainer);X=_.hA(M.timelyActionsContainer,function(){return _.g(Ezd,{data:M.timelyActionsOverlay,playerApi:d})});
M.addOnDisposeCallback(X);_.Vy(A)})},RLJ=function(M){var d=M.JSC$20234_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){N6T(M)});
M.addOnDisposeCallback(function(){M.JSC$20234_watchApi.unsubscribeByKey(d)})},N6T=function(M){var d=M.JSC$20234_watchApi.getWatchNextResponse();
if(d){var N,R;if(d=_.q((N=d.playerOverlays)==null?void 0:(R=N.playerOverlayRenderer)==null?void 0:R.timelyActionsOverlayViewModel,lO4)){var X;(X=M.setTimelyActionsOverlay)==null||X.call(M,d)}}};var FVi=function(M){_.DL.call(this);this.JSC$20238_watchApi=M;Xti(this)};
_.v(FVi,_.DL);var Xti=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20238_watchApi.playerApi,2);d=R.yieldResult;N=function(X){_.YQ.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.q(X,_.vEY)},popupType:"TOAST"}})};
d.addEventListener("onYtShowToast",N);M.addOnDisposeCallback(function(){d.removeEventListener("onYtShowToast",N)});
_.Vy(R)})};var AUe=!1,B6Y=function(M){_.DL.call(this);this.JSC$20241_watchApi=M;this.fullscreen=this.theater=!1;Vfd(this);l5i(this);$Cd(this)};
_.v(B6Y,_.DL);var $Cd=function(M){var d,N,R;_.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$20241_watchApi.playerApi,2);d=X.yieldResult;if(M.isDisposed())return X.return();N=M.JSC$20241_watchApi.getElement("CINEMATICS");if(!N)return X.return();M.JSC$20241_cinematicController=new _.M5(N,d);_.RW(M,M.JSC$20241_cinematicController);_.aZr(M.JSC$20241_cinematicController);kEd(M,_.oyi());R=M.JSC$20241_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(A){T6D(M,A)});
M.addOnDisposeCallback(function(){M.JSC$20241_watchApi.unsubscribeByKey(R)});
DCY(M);T6D(M,M.JSC$20241_cinematicController.isAllowed());gXi(M,M.fullscreen,M.theater);WVq(M);_.Vy(X)})},Vfd=function(M){var d=M.JSC$20241_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DCY(M)});
M.addOnDisposeCallback(function(){M.JSC$20241_watchApi.unsubscribeByKey(d)})},l5i=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20241_watchApi.playerApi,2);d=R.yieldResult;N=function(X){kEd(M,X)};
d.addEventListener("cinematicSettingsToggleChange",N);M.addOnDisposeCallback(function(){d.removeEventListener("cinematicSettingsToggleChange",N)});
_.Vy(R)})},DCY=function(M){var d=M.JSC$20241_watchApi.getWatchNextResponse(),N;
d=_.q(d==null?void 0:(N=d.pageVisualEffects)==null?void 0:N[0],_.Ww);var R;(R=M.JSC$20241_cinematicController)==null||_.udP(R,d)},kEd=function(M,d){var N;
(N=M.JSC$20241_cinematicController)==null||_.UjT(N,d);wtb(M)},T6D=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return _.Q("kevlar_watch_cinematics_invisible")&&(d=!1),_.D(R,M.JSC$20241_watchApi.playerApi,2);N=R.yieldResult;N.updateCinematicSettings(d);wtb(M);_.Vy(R)})},WVq=function(M){var d=_.kS();
if(_.Q("kevlar_measure_ambient_mode_idle")&&!d.getFlag(192)&&!AUe){AUe=!0;var N=_.gL(_.IQ,function(){_.h().resolve(_.Prd).start(1E4)},5E3);
M.addOnDisposeCallback(function(){_.IQ.cancelJob(N);_.h().resolve(_.Prd).stop()})}},gXi=function(M,d,N){M.fullscreen=d;
M.theater=N;var R;(R=M.JSC$20241_cinematicController)==null||R.setFullscreen(M.fullscreen,M.theater);if(_.Q("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(M.theater||M.fullscreen){var X;(X=M.JSC$20241_cinematicController)!=null&&(X=X.currentCinematicEffect)!=null&&(X=X.storyboardManager,X.paused=!1,_.oEd(X),X.update())}else(M=M.JSC$20241_cinematicController)==null||(X=M.currentCinematicEffect)!=null&&X.pause()},wtb=function(M){if(_.Q("web_cinematic_theater_mode")||_.Q("web_cinematic_fullscreen")){var d;
M.JSC$20241_watchApi.getRoot().toggleCinematicsActive(!((d=M.JSC$20241_cinematicController)==null||!d.isEnabled()))}};var Q7e=function(M){_.DL.call(this);var d=this;this.JSC$20244_watchApi=M;this.commentsReady=!1;this.setCommentsJobId=0;M=_.kO(_.iY(),_.v9,function(){pte(d)});
this.addOnDisposeCallback(M);var N=this.JSC$20244_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mC$(d)}),R=this.JSC$20244_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){mC$(d)});
this.addOnDisposeCallback(function(){d.JSC$20244_watchApi.unsubscribeByKey(N);d.JSC$20244_watchApi.unsubscribeByKey(R)});
var X=function(){_.Q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&hLP(d,"false")};
this.JSC$20244_watchApi.getRoot().addEventListener("yt-page-data-will-update",X);this.addOnDisposeCallback(function(){d.JSC$20244_watchApi.getRoot().removeEventListener("yt-page-data-will-update",X)});
mC$(this)};
_.v(Q7e,_.DL);var mC$=function(M){M.commentsReady=!1;_.IQ.cancelJob(M.setCommentsJobId);M.setCommentsJobId=_.gL(_.IQ,function(){pte(M)},1E3)},pte=function(M){if(!M.commentsReady){_.v1("cmi");
_.IQ.cancelJob(M.setCommentsJobId);var d,N,R,X,A=(d=M.JSC$20244_watchApi.getWatchNextResponse())==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.results)==null?void 0:X.results.contents;d=void 0;if(A&&A.length)for(A=_.V(A),N=A.next();!N.done;N=A.next())if(N=N.value,X=R=void 0,((R=N)==null?void 0:(X=R.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"){_.Q("web_watch_provide_undefined_comments")?d=N.itemSectionRenderer:M.JSC$20244_watchApi.provideRenderingData("COMMENTS",
N.itemSectionRenderer);hLP(M,"true");break}_.Q("web_watch_provide_undefined_comments")&&M.JSC$20244_watchApi.provideRenderingData("COMMENTS",d);M.commentsReady=!0;M.JSC$20244_watchApi.dispatchEvent("yt-watch-comments-ready")}},hLP=function(M,d){var N;
(N=M.JSC$20244_watchApi.getElement("COMMENTS"))==null||N.setAttribute("canScheduleJobs",d)};var O_q=function(M){_.DL.call(this);var d=this;this.JSC$20247_watchApi=M;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.Q("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.Q("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.Q("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.ZR("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)qZJ(this);
else{var N=this.JSC$20247_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){J7(d);c$(d)}),R=this.JSC$20247_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Sb(d);
c$(d)});
this.JSC$20247_watchApi.getRoot().is==="ytd-watch-grid"&&_.Q("swatcheroo_pbs_load_grid")&&(I5e(this),vX9(this));this.addOnDisposeCallback(function(){d.JSC$20247_watchApi.unsubscribeByKey(N);d.JSC$20247_watchApi.unsubscribeByKey(R);_.IQ.cancelJob(d.provideRichGridJobId)});
J7(this);Sb(this)}};
_.v(O_q,_.DL);var qZJ=function(M){var d=M.JSC$20247_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){M.providePlayerJobId=_.m$(_.IQ,function(){J7(M);c$(M)},M.provideAllDataDelayMs)}),N=M.JSC$20247_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M.provideWatchNextJobId=_.m$(_.IQ,function(){Sb(M);
c$(M)},M.provideAllDataDelayMs)}),R=M.JSC$20247_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){M.provideWatchNextJobId=_.m$(_.IQ,function(){Sb(M);
c$(M)},M.provideAllDataDelayMs)});
M.JSC$20247_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.gL(_.IQ,function(){J7(M);Sb(M);c$(M)},100)});
j79(M.JSC$20247_watchApi,function(){_.IQ.cancelJob(M.provideWatchNextJobId);_.IQ.cancelJob(M.providePlayerJobId)});
M.addOnDisposeCallback(function(){oP(M.JSC$20247_watchApi,"yt-pending-navigation-cancelled");M.JSC$20247_watchApi.unsubscribeByKey(d);M.JSC$20247_watchApi.unsubscribeByKey(N);M.JSC$20247_watchApi.unsubscribeByKey(R);_.IQ.cancelJob(M.providePlayerJobId);_.IQ.cancelJob(M.provideWatchNextJobId)});
J7(M);Sb(M)},J7=function(M){var d=M.JSC$20247_watchApi.getPlayerResponse(),N,R,X=(R=d==null?void 0:(N=d.playabilityStatus)==null?void 0:N.messageRenderers)!=null?R:[],A,l;
d=(l=d==null?void 0:(A=d.playabilityStatus)==null?void 0:A.messages)!=null?l:[];A=_.V(d);for(l=A.next();!l.done;l=A.next())X.push({alertRenderer:{text:_.ep(l.value),type:"WARNING"}});M.JSC$20247_watchApi.provideRenderingData("ALERTS",X)},Sb=function(M){var d=[],N,R,X,A=M.JSC$20247_watchApi.getWatchNextResponse(),l,k,T,W,w=A==null?void 0:(l=A.contents)==null?void 0:(k=l.twoColumnWatchNextResults)==null?void 0:(T=k.results)==null?void 0:(W=T.results)==null?void 0:W.contents;
if(w)for(l=_.V(w),k=l.next();!k.done;k=l.next())if(k=k.value,k.videoPrimaryInfoRenderer)var p=k;else if(k.videoSecondaryInfoRenderer){var m=k;W=T=void 0;k=Object.assign({},(T=k.videoSecondaryInfoRenderer)==null?void 0:(W=T.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(k.rows&&k.collapsedItemCount!==void 0){k.rows=k.rows.slice(0,k.collapsedItemCount).filter(function(UV){return!!UV.richMetadataRowRenderer});
k.collapsedItemCount=k.rows.length;var I={metadataRowContainerRenderer:k}}}else if(k.merchandiseShelfRenderer)var O=k;else if(k.ticketShelfRenderer)var y=k;else if(k.expandableMetadataRenderer)var c=k;else if(k.itemSectionRenderer)if(T=k.itemSectionRenderer.contents,W=void 0,M.directlyProvideComments&&((W=k.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section")_.v1("cmi"),M.JSC$20247_watchApi.provideRenderingData("COMMENTS",k.itemSectionRenderer);else if(T)for(k=_.V(T),T=
k.next();!T.done;T=k.next())if(T=T.value,T.commentsEntryPointHeaderRenderer)var e=T;else if(T.clarificationRenderer||T.infoPanelContainerRenderer||T.infoPanelContentRenderer||T.emergencyOneboxRenderer){d.push(T);var t=t||!!m}else T.limitedStateMessageRenderer?R=T:T.videoMetadataCarouselViewModel&&(X=T);if(_.Q("web_watch_merch_in_sd_when_ticket_shelf_present")&&O&&y){var C=O;O=void 0}if(M.provideWatchNextSecondaryResults){var U,Fi,Y;M.JSC$20247_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
A==null?void 0:(U=A.contents)==null?void 0:(Fi=U.twoColumnWatchNextResults)==null?void 0:(Y=Fi.secondaryResults)==null?void 0:Y.secondaryResults)}if(M.JSC$20247_watchApi.getRoot().is==="ytd-watch-grid"){var $i,vj;M.JSC$20247_watchApi.provideRenderingData("LIVE_CHAT",A==null?void 0:($i=A.contents)==null?void 0:(vj=$i.twoColumnWatchNextResults)==null?void 0:vj.conversationBar)}var Pj,sS,tL,b2;(U=A==null?void 0:(Pj=A.contents)==null?void 0:(sS=Pj.twoColumnWatchNextResults)==null?void 0:(tL=sS.secondaryResults)==
null?void 0:(b2=tL.secondaryResults)==null?void 0:b2.offerModule)&&(U.donationShelfRenderer||U.donationUnavailableRenderer)&&M.JSC$20247_watchApi.getRoot().is!=="ytd-watch-grid"&&(N=U);Pj=M.JSC$20247_watchApi.getPlayerResponse();if(!Pj||!_.U3Z(Pj.playabilityStatus,A==null?void 0:A.playerOverlays)){var Hj;if(A==null?0:(Hj=A.contents)==null?0:Hj.singleColumnWatchNextResults){var LZ,w3;var XY=A==null?void 0:(LZ=A.contents.singleColumnWatchNextResults.results)==null?void 0:(w3=LZ.results)==null?void 0:
w3.contents}else{var jJ,Ne,Vz,oI;Hj=!!(w==null?0:(jJ=w[0])==null?0:(Ne=jJ.itemSectionRenderer)==null?0:(Vz=Ne.contents)==null?0:(oI=Vz[0])==null?0:oI.backgroundPromoRenderer);var $d,CJ;jJ=!!(A==null?0:($d=A.contents)==null?0:(CJ=$d.twoColumnWatchNextResults)==null?0:CJ.secondaryResults);Hj&&!jJ&&(XY=w)}}w=d[0];$d=d[1];t&&d.length===1&&($d=w,w=void 0);M.JSC$20247_watchApi.provideRenderingData("PRIMARY_INFO",p);M.JSC$20247_watchApi.provideRenderingData("SECONDARY_INFO",m);M.JSC$20247_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
e);M.JSC$20247_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",X);M.JSC$20247_watchApi.provideRenderingData("CLARIFICATION",w);M.JSC$20247_watchApi.provideRenderingData("RICH_METADATA",I);M.JSC$20247_watchApi.provideRenderingData("MERCH_SHELF",O);_.Q("web_watch_merch_in_sd_when_ticket_shelf_present")&&M.JSC$20247_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",C);M.JSC$20247_watchApi.provideRenderingData("TICKET_SHELF",y);M.JSC$20247_watchApi.provideRenderingData("LIMITED_STATE",R);M.JSC$20247_watchApi.getRoot().is!==
"ytd-watch-grid"&&M.JSC$20247_watchApi.provideRenderingData("DONATION_SHELF",N);M.JSC$20247_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",XY);M.JSC$20247_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",$d);M.JSC$20247_watchApi.provideRenderingData("EXPANDABLE_METADATA",c);if(M.swatcherooProvideAllDataOnScheduledJob){var xd,Vq,uL,fg,M9,OV;p=A==null?void 0:(xd=A.contents)==null?void 0:(Vq=xd.twoColumnWatchNextResults)==null?void 0:(uL=Vq.secondaryResults)==null?void 0:(fg=uL.secondaryResults)==
null?void 0:(M9=fg.results)==null?void 0:(OV=M9[0])==null?void 0:OV.richGridRenderer;M.JSC$20247_watchApi.provideRenderingData("RICH_GRID_RENDERER",p)}};
O_q.prototype.hasCompanionAds=function(M){var d,N;return(N=M==null?void 0:(d=M.adPlacements)==null?void 0:d.some(function(R){var X,A,l,k;return(R==null?void 0:(X=R.adPlacementRenderer)==null?void 0:(A=X.renderer)==null?void 0:A.actionCompanionAdRenderer)||(R==null?void 0:(l=R.adPlacementRenderer)==null?void 0:(k=l.renderer)==null?void 0:k.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?N:!1};
var c$=function(M){if(!_.Q("swaterdoo_ps_wn_handle_ks")){M.swatcherooProvideAllDataOnScheduledJob||vX9(M,3E3);var d=M.JSC$20247_watchApi.getPlayerResponse(),N,R,X,A,l,k=(N=M.JSC$20247_watchApi.getWatchNextResponse())==null?void 0:(R=N.contents)==null?void 0:(X=R.twoColumnWatchNextResults)==null?void 0:(A=X.secondaryResults)==null?void 0:(l=A.secondaryResults)==null?void 0:l.offerModule;d=M.hasCompanionAds(d);var T,W;N=(k==null?void 0:(T=k.tvfilmOfferModuleRenderer)==null?void 0:T.clientShouldSuppressIfCompanionAdDisplayed)||
(k==null?void 0:(W=k.unlimitedOfferModuleRenderer)==null?void 0:W.suppressIfCompanionAds);T=d&&N;M.JSC$20247_watchApi.getRoot().is==="ytd-watch-grid"&&M.JSC$20247_watchApi.provideRenderingData("OFFER_MODULE",T?void 0:k)}},vX9=function(M,d){_.Q("swatcheroo_pbs_load_grid")&&(M.provideRichGridJobId&&_.IQ.cancelJob(M.provideRichGridJobId),M.provideRichGridJobId=_.m$(_.IQ,function(){M.provideRichGridJobId=0;
var N,R,X,A,l,k,T,W=(N=M.JSC$20247_watchApi.getWatchNextResponse())==null?void 0:(R=N.contents)==null?void 0:(X=R.twoColumnWatchNextResults)==null?void 0:(A=X.secondaryResults)==null?void 0:(l=A.secondaryResults)==null?void 0:(k=l.results)==null?void 0:(T=k[0])==null?void 0:T.richGridRenderer;W&&M.JSC$20247_watchApi.provideRenderingData("RICH_GRID_RENDERER",W)},d))},I5e=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20247_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.onPlaybackStart()};
d.addEventListener("onPlaybackStartExternal",N);M.addOnDisposeCallback(function(){d.removeEventListener("onPlaybackStartExternal",N)});
_.Vy(R)})};
O_q.prototype.onPlaybackStart=function(){vX9(this)};var PSe=function(M){_.DL.call(this);var d=this;this.JSC$20257_watchApi=M;M.playerApi.then(function(N){d.player=N});
this.gestures=new _.Bo(this.JSC$20257_watchApi.getRoot(),M.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(q5(_.iY().getState())&&_.v9(_.iY().getState())<=0)if(_.IF(_.iY().getState())){var N;(N=d.player)==null||N.toggleFullscreen()}else _.ZI(d.JSC$20257_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
s7q(this)};
_.v(PSe,_.DL);var s7q=function(M){var d=_.kO(_.iY(),_.IF,function(N){M.gestures&&M.gestures.update(N)});
M.addOnDisposeCallback(d);d=_.kO(_.iY(),_.v9,function(N){M.gestures&&(N>0?M.gestures.detach():M.gestures.attach())});
M.addOnDisposeCallback(d)};var rUr=function(M){_.DL.call(this);var d=this;this.JSC$20260_watchApi=M;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
M=_.kO(_.iY(),q5,function(N){d.onActiveChanged(N)});
this.addOnDisposeCallback(M);oXY(this);this.onActiveChanged(q5(_.iY().getState()))};
_.v(rUr,_.DL);var KV9=function(M){if(_.Q("swatcheroo_page_dispose_all_watch_data"))M.pageDisposalDataTypes=Object.values(U3J).filter(function(N){return N!=="PLAYLIST"});
else if(_.Q("swatcheroo_page_dispose_rich_grid")){var d;(d=M.pageDisposalDataTypes)==null||d.push("RICH_GRID_RENDERER")}},oXY=function(M){_.Q("swatcheroo_enable_ghost_cards")&&(KV9(M),M.JSC$20260_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.IQ.cancelJob(M.clearDataJobId);
M.clearDataJobId=0}),M.runPageDisposeJob=function(){var d=_.h().resolve(_.em).getDestinationPageType()==="watch";
M.clearDataJobId=_.m$(_.IQ,M.runClearDataJob,d?0:_.ZR("web_watch_delay_page_dispose_ms",1E4))},M.runClearDataJob=function(){yUb(M)},M.runOnYtNavigateAwayFinish=function(){M.clearDataJobId&&(_.IQ.cancelJob(M.clearDataJobId),M.clearDataJobId=0,yUb(M))},document.addEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish),j79(M.JSC$20260_watchApi,M.runPageDisposeJob),M.addOnDisposeCallback(function(){var d=M.JSC$20260_watchApi;
d.rootElement.pageDisposeJobs&&_.aN(d.rootElement.pageDisposeJobs,M.runPageDisposeJob);oP(M.JSC$20260_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish)}))},yUb=function(M){M.pageDisposalDataTypes.forEach(function(d){M.JSC$20260_watchApi.provideRenderingData(d,void 0)});
M.clearDataJobId=0};
rUr.prototype.onActiveChanged=function(M){M&&((M=document.querySelector("#watch-page-skeleton"))&&_.l_(M),JU4(this),document.body.removeAttribute("no-y-overflow"),_.KF("IS_SHELL_LOAD")&&_.zlq())};
var JU4=function(M){_.B(function(d){if(d.nextAddress==1)return _.D(d,M.JSC$20260_watchApi.playerApi,2);_.Gf();_.Vy(d)})};var cUb=_.Q("kevlar_watch_while_counterfactual")?0:.25,eLY=function(M){_.DL.call(this);this.JSC$20263_watchApi=M;this.JSC$20263_watchWhileEnabled=_.Q("kevlar_watch_while_v2");this.pipEnabled=_.Q("web_enable_pip_on_miniplayer");SZT(this);zLP(this);b_C(this)};
_.v(eLY,_.DL);var SZT=function(M){M.JSC$20263_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){H_i(M)});
M.addOnDisposeCallback(function(){oP(M.JSC$20263_watchApi,"yt-activate-miniplayer-from-watch-action")})},zLP=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20263_watchApi.playerApi,2);d=R.yieldResult;N=function(){H_i(M)};
d.addEventListener("onCollapseMiniplayer",N);M.addOnDisposeCallback(function(){d.removeEventListener("onCollapseMiniplayer",N)});
_.Vy(R)})},b_C=function(M){var d=M.JSC$20263_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&d&&M.JSC$20263_watchWhileEnabled&&(M.playerIntersectionObserver=new IntersectionObserver(function(N){M.handleIntersect(N)},{threshold:[cUb]}),M.playerIntersectionObserver.observe(d),M.addOnDisposeCallback(function(){var N;
(N=M.playerIntersectionObserver)==null||N.disconnect()}))},H_i=function(M){var d,N,R;
_.B(function(X){if(X.nextAddress==1){d=_.h().resolve(_.em);N=d.data;R=_.awA(N.response,N.playerResponse);_.$O().miniplayerButtonActivation=!0;if(M.pipEnabled)return _.$O().watchPipActivation=!0,X.jumpTo(2);_.h().resolve(_.et).collapse();return _.D(X,_.$O().navigationFinishPromise,2)}if(X.nextAddress!=4)return _.$O().currentEndpoint=R.watchEndpoint||null,_.D(X,_.h().resolve(_.et).activate(M.JSC$20263_watchApi.getElement("PLAYER"),R,N),4);_.$O().userActivation=!0;_.Vy(X)})};
eLY.prototype.handleIntersect=function(M){nXC(this,M[M.length-1])};
var nXC=function(M,d){M.watchWhileJobId&&_.IQ.cancelJob(M.watchWhileJobId);M.watchWhileJobId=_.IQ.addLowPriorityJob(function(){var N,R;return _.B(function(X){if(X.nextAddress==1)return M.watchWhileJobId=void 0,N=_.h().resolve(_.et),d.intersectionRatio>cUb?N.isMiniplayerActive()?_.D(X,N.deactivate(),0):X.jumpTo(0):(R=!N.isMiniplayerActive())?_.D(X,i_b(M),5):X.jumpTo(4);X.nextAddress!=4&&(R=X.yieldResult);if(!R)return X.jumpTo(0);_.$O().watchWhileActivation=!0;return _.D(X,f5r(M),0)})},100)},i_b=function(M){return _.B(function(d){return d.nextAddress==
1?_.Q("kevlar_watch_while_paused")?d.return(!0):_.D(d,M.isPlayerPlaying(),2):d.return(d.yieldResult)})};
eLY.prototype.isPlayerPlaying=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20263_watchApi.playerApi,2);d=N.yieldResult;return N.return(d.getPlayerStateObject().isPlaying)})};
var f5r=function(M){var d,N;return _.B(function(R){d=_.h().resolve(_.em).data;N=_.awA(d.response,d.playerResponse);_.$O().currentEndpoint=N.watchEndpoint||null;return _.D(R,_.h().resolve(_.et).activate(M.JSC$20263_watchApi.getElement("PLAYER"),N,d),0)})};var GEe=function(M){_.DL.call(this);this.JSC$20267_watchApi=M;LVY(this);tf$(this)};
_.v(GEe,_.DL);var tf$=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20267_watchApi.playerApi,2);d=R.yieldResult;N=function(X){var A;X.sessionData&&X.sessionData.itct&&(A=X.sessionData.itct);var l=X.watchEndpoint;if(l&&X.sessionData&&X.sessionData.autonav)l=_.X4j(l,A);else{var k;l=_.UN(X.videoId,(k=X.listId)!=null?k:void 0,A)}A={endpoint:l};X.sessionData&&(A.tempData=X.sessionData);M.JSC$20267_watchApi.dispatchEvent("yt-navigate",A)};
d.addEventListener("onPlayVideo",N);M.addOnDisposeCallback(function(){d.removeEventListener("onPlayVideo",N)});
_.Vy(R)})},LVY=function(M){var d=function(N){M.onYtNavigate(N)};
M.JSC$20267_watchApi.getRoot().addEventListener("yt-navigate",d);M.addOnDisposeCallback(function(){M.JSC$20267_watchApi.getRoot().removeEventListener("yt-navigate",d)})};
GEe.prototype.onYtNavigate=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1){if(!((N=M.detail)==null?0:(R=N.endpoint)==null?0:R.watchEndpoint))return p.return();X=M.detail.endpoint.watchEndpoint;A=d.JSC$20267_watchApi.getWatchNextResponse();k=_.q((l=A)==null?void 0:l.currentVideoEndpoint,_.nL);if(!k)return p.return();if(X.videoId!==k.videoId||X.playlistId&&X.playlistId!==k.playlistId||typeof X.startTimeSeconds!=="number")return p.jumpTo(0);M.stopPropagation();(T=
_.Q("kevlar_watch_while_v2")&&!_.Q("kevlar_watch_while_counterfactual"))&&_.h().resolve(_.et).isMiniplayerActive()||d.JSC$20267_watchApi.scrollWatchTo(0,!0);return _.D(p,d.JSC$20267_watchApi.playerApi,3)}W=p.yieldResult;w=X.startTimeSeconds;W.seekTo(w,void 0,void 0,void 0,84);W.wakeUpControls();w<W.getDuration()&&W.playVideo();_.Vy(p)})};var xCr=function(M){_.DL.call(this);var d=this;this.JSC$20270_watchApi=M;M=_.kO(_.iY(),_.c06,function(){a5q(d)});
this.addOnDisposeCallback(M);M=_.kO(_.iY(),_.a_9,function(){a5q(d)});
this.addOnDisposeCallback(M);UCJ(this);upe(this);CS9()};
_.v(xCr,_.DL);var UCJ=function(M){var d=function(R){_.iY().dispatch(_.nuD(R.matches))},N=window.matchMedia("(max-width: "+(999+_.pl())+"px)");
N.addListener(d);M.addOnDisposeCallback(function(){N.removeListener(d)});
d(N)},upe=function(M){M.JSC$20270_watchApi.registerActionHandler("yt-window-resized",function(){CS9()});
M.addOnDisposeCallback(function(){oP(M.JSC$20270_watchApi,"yt-window-resized")})},CS9=function(){var M=_.lx();
_.iY().dispatch(_.YS({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:M.width,height:M.height}}}))},a5q=function(M){var d;
_.B(function(N){if(N.nextAddress==1)return _.D(N,M.JSC$20270_watchApi.playerApi,2);d=N.yieldResult;d.setSize(NaN,NaN);_.Vy(N)})};var Z_C=function(M){_.DL.call(this);var d=this;this.JSC$20274_watchApi=M;var N=this.JSC$20274_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YZD(d)});
this.addOnDisposeCallback(function(){d.JSC$20274_watchApi.unsubscribeByKey(N)});
YZD(this)};
_.v(Z_C,_.DL);var YZD=function(M){var d=M.JSC$20274_watchApi.getWatchNextResponse();if(d){var N,R=[].concat(_.wu((N=d==null?void 0:d.engagementPanels)!=null?N:[]));R.unshift.apply(R,_.wu(EXY(d)));M.JSC$20274_watchApi.provideRenderingData("ENGAGEMENT_PANELS",R)}},MaT=function(){var M;
return(M=_.oW(window.location.href,"list"))==null?void 0:M.startsWith("LJ")},d5T=function(M){var d,N,R,X=(d=M.engagementPanels)==null?void 0:(N=d.find(function(I){var O;
return((O=I.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(R=N.engagementPanelSectionListRenderer.content)==null?void 0:R.structuredDescriptionContentRenderer,A;
if(_.q(X==null?void 0:(A=X.items)==null?void 0:A.find(function(I){return!!_.q(I,jv4)}),jv4))return!0;
var l,k,T,W;if(M=(((l=M.contents)==null?void 0:(k=l.twoColumnWatchNextResults)==null?void 0:(T=k.results)==null?void 0:(W=T.results)==null?void 0:W.contents)||[]).find(function(I){return I.videoPrimaryInfoRenderer})){var w,p,m;
return(((w=M.videoPrimaryInfoRenderer)==null?void 0:(p=w.videoActions)==null?void 0:(m=p.menuRenderer)==null?void 0:m.flexibleItems)||[]).some(function(I){I=_.q(I,_.P0g);if(!I)return!1;var O,y;I=(O=I.topLevelButton)==null?void 0:(y=O.buttonViewModel)==null?void 0:y.onTap;if(!I)return!1;O=_.ht(I);if(!O)return!1;var c;return((c=_.q(O,_.Kt))==null?void 0:c.panelIdentifier)==="PAyouchat"})}return!1},EXY=function(M){var d=[];
if(!_.Q("web_watch_inject_placeholder_fantasy_panel_killswitch")){var N,R,X,A=(N=M.engagementPanels)==null?void 0:(R=N.find(function(k){var T;return((T=k.engagementPanelSectionListRenderer)==null?void 0:T.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(X=R.engagementPanelSectionListRenderer.content)==null?void 0:X.structuredDescriptionContentRenderer,l;
_.q(A==null?void 0:(l=A.items)==null?void 0:l.find(function(k){return!!_.q(k,Nnd)}),Nnd)&&(N=_.XU("PAsports_fantasy"),N.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(N))}d5T(M)&&(M=_.XU("PAyouchat"),M.engagementPanelSectionListRenderer.targetId="PAyouchat",M.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(M));
MaT()&&(M=_.XU("PAlearning_chat"),M.engagementPanelSectionListRenderer.targetId="PAlearning_chat",M.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d.push(M));return d};var RI4=function(M){_.DL.call(this);this.JSC$20277_watchApi=M;NoC(this)};
_.v(RI4,_.DL);var NoC=function(M){M.JSC$20277_watchApi.registerActionHandler("yt-loop-command",function(d){X9i(M,d)});
M.JSC$20277_watchApi.registerActionHandler("yt-repeat-chapter-command",function(d){FKC(M,d)});
M.addOnDisposeCallback(function(){oP(M.JSC$20277_watchApi,"yt-loop-command");oP(M.JSC$20277_watchApi,"yt-repeat-chapter-command")})},X9i=function(M,d){var N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20277_watchApi.playerApi,2);N=R.yieldResult;_.q(d,Xde).loop?(N.setLoopRange({startTimeMs:Number(_.q(d,Xde).startTimeMs),endTimeMs:Number(_.q(d,Xde).endTimeMs),postId:_.q(d,Xde).postId,type:"clips"}),N.playVideo()):N.setLoopRange(null);_.Vy(R)})},FKC=function(M,d){var N,R;
_.B(function(X){if(X.nextAddress==1)return _.D(X,M.JSC$20277_watchApi.playerApi,2);N=X.yieldResult;R=_.q(d,$8r).repeat;R==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(N.setLoopRange({startTimeMs:Number(_.q(d,$8r).startTimeMs),endTimeMs:Number(_.q(d,$8r).endTimeMs),type:"repeatChapter"}),N.playVideo()):R==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&N.setLoopRange(null);_.Vy(X)})};var Var=function(M){_.DL.call(this);this.JSC$20282_watchApi=M;A5r(this)};
_.v(Var,_.DL);var A5r=function(M){M.JSC$20282_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(d){lF9(M,d)});
M.addOnDisposeCallback(function(){oP(M.JSC$20282_watchApi,"yt-watch-player-overflow-menu-command")})},lF9=function(M,d){var N,R,X,A,l,k,T,W,w,p,m;
_.B(function(I){if(I.nextAddress==1)return _.D(I,M.JSC$20282_watchApi.playerApi,2);N=I.yieldResult;if(A=(X=(R=_.q(d,Bne))==null?void 0:R.highlightedMenuItemKey)!=null?X:"")(k=(l=N).highlightSettingsMenuItem)==null||k.call(l,A);if(w=(W=(T=_.q(d,Bne))==null?void 0:T.openMenuItemKey)!=null?W:"")(m=(p=N).openSettingsMenuItem)==null||m.call(p,w);_.Vy(I)})};var $5q=_.Nr("/youtube/app/watch/player_state","playerStateEntity");var kXP=function(M){_.DL.call(this);this.JSC$20285_watchApi=M;BoJ(this)};
_.v(kXP,_.DL);var Tod=function(M){switch(M){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},BoJ=function(M){var d,N;
_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20285_watchApi.playerApi,2);d=R.yieldResult;N=function(X){M.onPlayerStateChange(X)};
d.addEventListener("onStateChange",N);M.addOnDisposeCallback(function(){d.removeEventListener("onStateChange",N)});
_.Vy(R)})};
kXP.prototype.onPlayerStateChange=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,d.JSC$20285_watchApi.playerApi,2);N=X.yieldResult;R=N.getVideoData().video_id;_.r4().dispatch(_.la("playerStateEntity",$5q,{key:$5q,playerState:Tod(M),videoId:R}));_.Vy(X)})};var D5i=function(M){_.DL.call(this);var d=this;this.JSC$20289_watchApi=M;M=_.iY();var N=_.kO(M,q5,function(R){d.onActiveChanged(R)});
this.addOnDisposeCallback(N);_.h().resolve(_.oL).setPlayer(this.JSC$20289_watchApi.getElement("PLAYER"));this.onActiveChanged(q5(M.getState()))};
_.v(D5i,_.DL);D5i.prototype.onActiveChanged=function(M){var d=this,N=_.h().resolve(_.oL),R=function(){gqP(d)};
M?(M=this.JSC$20289_watchApi.getElement("PLAYLIST_PANEL"))?(N.setPlaylistComponent(M),N.addEventListener("yt-playlist-data-updated",R),this.addOnDisposeCallback(function(){N.removeEventListener("yt-playlist-data-updated",R)}),gqP(this)):_.Sx(Error("km")):(N.removeEventListener("yt-playlist-data-updated",R),N.cancelVideoSkip())};
var gqP=function(M){var d=_.h().resolve(_.oL);M.JSC$20289_watchApi.provideRenderingData("PLAYLIST",d.getPlaylistData())};var zV=function(M){_.DL.call(this);var d=this;this.JSC$20292_watchApi=M;this.onPageScroll=function(){d.scrollThrottle.fire();d.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.ua(this.onThrottledScroll,200,this);_.RW(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.ua(this.onMastheadThrottledScroll,50,this);_.RW(this,this.mastheadScrollThrottle);this.animation=new _.qk(function(N){d.JSC$20292_watchApi.getRoot().setScrollTop(N)});
M=_.kO(_.iY(),_.IF,function(){WKT(d)});
this.addOnDisposeCallback(M);w99(this);p9r(this);this.onThrottledScroll()};
_.v(zV,_.DL);
var WKT=function(M){var d=M.JSC$20292_watchApi.getRoot();!M.pageScrollElement&&d.pageScrollElement?(M.pageScrollElement=d.pageScrollElement,d.pageScrollElement.addEventListener("scroll",M.onPageScroll),M.addOnDisposeCallback(function(){M.pageScrollElement&&M.pageScrollElement.removeEventListener("scroll",M.onPageScroll)})):M.pageScrollElement&&!d.pageScrollElement&&(M.pageScrollElement.removeEventListener("scroll",M.onPageScroll),M.pageScrollElement=void 0)},w99=function(M){window.addEventListener("scroll",M.onPageScroll);
M.addOnDisposeCallback(function(){window.removeEventListener("scroll",M.onPageScroll)})},p9r=function(M){M.JSC$20292_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(d){a:{var N;
if(N=M.JSC$20292_watchApi.getRoot().contains(d)&&!M.animation.isAnimating()){N=d.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var R,X,A=(d==null?void 0:(R=d.parentElement)==null?void 0:(X=R.parentElement)==null?void 0:X.id)==="fixed-secondary";N=!(N&&A)}if(N){if(_.Q("kevlar_watch_scroll_manager_absolute_offset_killswitch"))R=d.offsetTop;else for(R=0,X=d;X!==null;)R+=X.offsetTop,R-=X.scrollTop,X=X.offsetParent;X=R;R=X-24;d=X+d.offsetHeight+24;X=M.JSC$20292_watchApi.getRoot().getPageScrollingElement();
N=M.JSC$20292_watchApi.getRoot().getScrollTop();A=N+X.clientHeight-56;if(R<N+56)d=R-56;else if(d>A)d-=X.clientHeight;else break a;M.scrollWatchTo(Math.max(0,d),!0)}}});
M.addOnDisposeCallback(function(){oP(M.JSC$20292_watchApi,"yt-scroll-to-watch-element")})};
zV.prototype.onThrottledScroll=function(){var M=_.iY(),d=M.dispatch,N=this.JSC$20292_watchApi.getRoot().getScrollTop();d.call(M,_.YS({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:N}}))};
zV.prototype.onMastheadThrottledScroll=function(){this.JSC$20292_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20292_watchApi.getRoot().getScrollTop())};
zV.prototype.scrollWatchTo=function(M,d){(d===void 0?0:d)?this.animation.start(this.JSC$20292_watchApi.getRoot().getScrollTop(),Math.max(0,M),500):this.JSC$20292_watchApi.getRoot().setScrollTop(M)};var QFT=function(M){_.DL.call(this);var d=this;this.JSC$20295_watchApi=M;var N=this.JSC$20295_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){m59(d)}),R=this.JSC$20295_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hIr(d)});
this.addOnDisposeCallback(function(){d.JSC$20295_watchApi.unsubscribeByKey(N);d.JSC$20295_watchApi.unsubscribeByKey(R)});
m59(this);hIr(this)};
_.v(QFT,_.DL);
var m59=function(M){var d,N,R,X=(R=(d=M.JSC$20295_watchApi.getPlayerResponse())==null?void 0:(N=d.videoDetails)==null?void 0:N.title)!=null?R:"";M.JSC$20295_watchApi.dispatchEvent("yt-update-title",X)},hIr=function(M){var d,N,R,X,A,l,k,T=(k=((l=(d=M.JSC$20295_watchApi.getWatchNextResponse())==null?void 0:(N=d.contents)==null?void 0:(R=N.twoColumnWatchNextResults)==null?void 0:(X=R.results)==null?void 0:(A=X.results)==null?void 0:A.contents)!=null?l:[]).find(function(W){return!!W.videoPrimaryInfoRenderer}))==null?
void 0:k.videoPrimaryInfoRenderer;
(d=_.HD(T==null?void 0:T.title))&&M.JSC$20295_watchApi.dispatchEvent("yt-update-title",d)};var IFT=function(M){_.DL.call(this);this.JSC$20298_watchApi=M;q4q(this)};
_.v(IFT,_.DL);var q4q=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$20298_watchApi.playerApi,2);d=R.yieldResult;N=function(){M.onYpcContentRequest()};
d.addEventListener("onYpcContentRequest",N);M.addOnDisposeCallback(function(){d.removeEventListener("onYpcContentRequest",N)});
_.Vy(R)})};
IFT.prototype.onYpcContentRequest=function(){var M,d,N,R,X,A=(M=this.JSC$20298_watchApi.getWatchNextResponse())==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:(X=R.secondaryResults)==null?void 0:X.offerModule,l,k,T,W;M=(W=(T=(k=(l=A==null?void 0:A.episodeOfferModuleRenderer)!=null?l:A==null?void 0:A.movieOfferModuleRenderer)!=null?k:A==null?void 0:A.unlimitedOfferModuleRenderer)!=null?T:A==null?void 0:A.liveOfferModuleRenderer)!=
null?W:A==null?void 0:A.tvfilmOfferModuleRenderer;var w,p,m;A=(m=A==null?void 0:(w=A.tvfilmOfferModuleRenderer)==null?void 0:(p=w.actionButtons)==null?void 0:p.length)!=null?m:0;p=Math.max(A-1,0);var I,O,y;w=(y=M==null?void 0:(I=M.offerButton)==null?void 0:I.buttonRenderer)!=null?y:M==null?void 0:(O=M.actionButtons)==null?void 0:O[p].buttonRenderer;var c,e;(I=(e=(c=w==null?void 0:w.navigationEndpoint)!=null?c:w==null?void 0:w.serviceEndpoint)!=null?e:w==null?void 0:w.command)&&_.YQ.instance.resolveCommand(I)};_.bf=function(M){_.nn.call(this);var d=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return d.activeModules}};
vqJ(this);M=_.kO(_.iY(),q5,function(N){d.initOrDisposeActiveModules(N)});
this.addOnDisposeCallback(M);this.initOrDisposeActiveModules(q5(_.iY().getState()));this.onAttached()};
_.v(_.bf,_.nn);_.bf.prototype.getRoot=function(){return this.rootElement};
_.bf.prototype.getElement=function(M){return this.rootElement.getElement(M)};
_.eb=function(M,d){M.playerResponse=d;M.publish("PLAYER_RESPONSE_UPDATED",d)};
_.bf.prototype.getPlayerResponse=function(){return this.playerResponse};
_.H$=function(M,d){M.watchNextResponse===d?M.publish("WATCH_NEXT_RESPONSE_RELOADED"):(M.watchNextResponse=d,M.publish("WATCH_NEXT_RESPONSE_UPDATED",d))};
_.bf.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.bf.prototype.registerActionHandler=function(M,d){var N=this;if(_.Q("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.S5(_.ch.getInstance(),(R[M]=d,R),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),R={},_.S5(_.ch.getInstance(),(R[M]=function(){var X=_.wH.apply(0,arguments);return(N.actionHandlers.get(M)||[]).map(function(A){return A.apply(null,_.wu(X))})},R),this.getRoot())),this.actionHandlers.get(M).push(d)};
var oP=function(M,d){if(_.Q("web_watch_controller_reg_multiple_handlers_killswitch")){var N={};_.zi(_.ch.getInstance(),(N[d]=!0,N),M.getRoot())}else(N=M.actionHandlers.get(d))?(N.pop(),N.length===0&&(N={},_.zi(_.ch.getInstance(),(N[d]=!0,N),M.getRoot()),M.actionHandlers.delete(d))):_.vh(new _.WJ("Attempted to unregister an action handler which is not registered.",d))},j79=function(M,d){M.rootElement.pageDisposeJobs||(M.rootElement.pageDisposeJobs=[]);
_.mpq(M.rootElement.pageDisposeJobs,d)};
_.bf.prototype.dispatchEvent=function(M,d){_.YP(this.rootElement,M,d)};
_.bf.prototype.provideRenderingData=function(M,d){this.rootElement.provideRenderingData(M,d)};
_.bf.prototype.scrollWatchTo=function(M,d){var N;(N=this.watchScrollManager)==null||N.scrollWatchTo(M,d)};
_.bf.prototype.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.bM(M,function(){if(M&&M.firstElementChild){var d=M.querySelector(".html5-video-player");d&&(_.nAL(_.h().resolve(_.gT)),d.focus())}else _.vh(Error("lm"))})};
_.O1d=function(M){var d=!!M.rootElement.theater,N=!!M.rootElement.fullscreen,R;(R=M.watchCinematicManager)==null||gXi(R,N,d)};
_.bf.prototype.onAttached=function(){var M=_.Q("external_fullscreen");_.Q("use_unified_flag_accessor")&&(M=_.h().resolve(_.Bqq).retriever.getFlag(_.ILe));(M||_.KF("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var jF4=function(M){return M.getRoot().is==="ytd-watch-flexy"||M.getRoot().is==="ytd-watch-grid"},ns=function(M){return M.getRoot().is==="ytd-watch-fixie"},vqJ=function(M){if(ns(M)||jF4(M)&&_.Q("kevlar_watch_flexy_theater_manager")){var d=new L5G(M);
_.RW(M,d)}d=new rUr(M);_.RW(M,d);d=new rO(M);_.RW(M,d);d=new O_q(M);_.RW(M,d);d=new kXP(M);_.RW(M,d);d=new Ks(M);_.RW(M,d);if(ns(M)||jF4(M)&&_.Q("kevlar_watch_flexy_playlist_manager"))d=new D5i(M),_.RW(M,d)};
_.bf.prototype.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new zV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new GEe(this)),this.activeModules.push(new GIC(this)),ns(this)&&this.activeModules.push(new xCr(this)),this.activeModules.push(new QFT(this)),this.activeModules.push(new eLY(this)),(ns(this)||_.Q("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new C3q(this)),this.activeModules.push(new RI4(this)),(ns(this)||
_.Q("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new IFT(this)),(ns(this)||_.Q("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new FVi(this)),_.Q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new B6Y(this),this.activeModules.push(this.watchCinematicManager),_.O1d(this)),_.Q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new Var(this)),_.Q("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new PSe(this)),M=_.Q("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.Q("kevlar_watch_flexy_comments_manager")&&!M&&this.activeModules.push(new Q7e(this)),_.Q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new lwP(this)),this.activeModules.push(new YQ9(this)),this.activeModules.push(new Z_C(this)),_.Q("web_enable_timely_actions")&&this.activeModules.push(new dCC(this)),_.Q("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new vzr(this)),_.Q("web_watch_enable_multiview_manager")&&this.activeModules.push(new gz4(this)),
_.Q("web_fullscreen_video_action_bar")&&this.activeModules.push(new ERG(this)),_.Q("web_player_rtr_ctrls")&&this.activeModules.push(new j3q(this))):(_.Gt(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.bf.prototype.disposeInternal=function(){_.nn.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Hm.Object.defineProperties(_.bf.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var LDP;LDP=function(M){switch(M){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.RC(M,"unknown result type")}};
_.tw4=function(M,d,N){d=_.TQZ[d];N={detected:M===0,source:d.asM,detectionResult:LDP(M),contentCpn:N};_.hQ("biscottiBasedDetection",N);_.xMJ.increment(d.asM,M);d.tBA!==void 0&&_.oJ("CATSTAT",_.BQS(M,d))};
_.zp=function(M,d){var N={};N.key=M;N.value=d;return _.nyS().then(function(R){return new Promise(function(X,A){try{var l=R.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(N);l.onsuccess=function(){X()};
l.onerror=function(){A()}}catch(k){A(k)}})})};
_.asP=function(){var M=_.ZR("user_engagement_experiments_rate_limit_ms"),d=Gsi.get("last-user-engagement-exp-trigger-timestamp");return!d||(0,_.Gs)()>=d+M?(Gsi.set("last-user-engagement-exp-trigger-timestamp",(0,_.Gs)()),!0):!1};
_.bp=function(M,d,N,R,X){d=d===void 0?null:d;N=N===void 0?null:N;R=R===void 0?null:R;X=X===void 0?null:X;M={youThereEventType:M};N&&(M.lactThresholdMs=N.lactThresholdMs,M.mediaPosSec=N.promptDelaySec,M.lactServerRequestMs=N.lactServerRequestMs,M.triggerReason=N.triggerReason);X!=null&&(M.renderingMediaPosSec=Math.round(X));d||(d=_.Ou());d&&(M.clientScreenNonce=d);R&&(M.clientPlaybackNonce=R);_.hQ("youThere",M)};var Gsi=new _.Pf("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.PCe=function(M){return _.YS({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:M})};
}catch(e){_._DumpException(e)}
try{
var b1b,eIJ,H1C,y5J,KKJ,fF$;_.PPD=function(){var M=window.location.hash;M.charAt(0)==="#"&&(M=M.charAt(1)==="!"?M.substring(2):M.substring(1));return _.nF(M)};
_.oqD=function(M){var d;_.B(function(N){d=["b.f_","j.s_","r.s_","e.h_"];_.Q("ab_det_sc_inj")&&d.push("s.i_");_.Q("ab_deg_unex_thr")||d.push("a.o_");_.Q("ks_get_o_pp")||d.push("g.o_");_.Q("ks_det_gpbl")||d.push("p.i_");d.push("f.i_");d.push("a.b_");d.push("p.m_");_.Q("ab_det_el_h_v2")&&d.push("n.h_");d.push("o.p_");_.Q("ab_det_apm")&&d.push("o.a_");d.forEach(function(R){var X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,_.agd[R](),2);X=A.yieldResult;M(X,R);_.Vy(A)})});
_.Vy(N)})};
_.r5r=function(M,d){M={videoId:M};d&&(M.playlistId=d);return M};
_.J5b=function(){if(_.BGZ()){var M=_.rK("PLAYER_VARS",{});if(_.wF.get(M,"privembed",!1)!="1"&&!_.D2j(M)){var d=function(){KKJ=!0;"google_ad_status"in window?_.oJ("DCLKSTAT",1):_.oJ("DCLKSTAT",2)};
try{_.rB("//static.doubleclick.net/instream/ad_status.js",d)}catch(N){}y5J.push(_.IQ.addLowPriorityJob(function(){if(!(KKJ||"google_ad_status"in window)){try{_.E96("//static.doubleclick.net/instream/ad_status.js",d)}catch(N){}KKJ=!0;_.oJ("DCLKSTAT",3)}},5E3))}}};
_.c5P=function(M,d){M=M.width-_.ySY();return Math.max(_.zX,Math.min(_.oN$,_.zX+(M-(_.Sa+_.zX+_.J5+2*_.J5+d))))};
_.Ls=function(M,d,N){N=N===void 0?!1:N;var R=Math.max(M.width,_.PtG);if(_.Q("kevlar_watch_feed_big_thumbs")&&M.width>=1550-_.pl()&&M.height>=800)R-=_.JRD;else if(M.width>=_.c9){var X=_.Sa+_.zX+_.J5;_.Q("kevlar_watch_feed_big_thumbs")&&(X=_.yRD);R-=X}else R-=_.Sa;R=Math.min(R,_.rRd);X=240;N&&(X=380);d<.5624||(!_.Q("kevlar_watch_flexy_disable_small_window_sizing")&&(M.height<630&&M.width>=657||M.height>=630&&M.width>=_.c9&&M.width<1327)?X=360:!_.Q("kevlar_watch_flexy_disable_large_window_sizing")&&
M.height>=630&&M.width>=1327&&(X=480));var A=Math.min(R*d,M.height-(56+_.sve+_.K_e));A=Math.max(A,X);d<1?R=A/d:M.width>=_.c9&&(R=_.Ls(M,.5625,N).width);return new _.R8(Math.round(R),Math.round(A))};
_.S4C=function(M){var d=0;M.indexOf("h")!=-1&&(M=M.split("h"),d=M[0]*60*60,M=M[1]);M.indexOf("m")!=-1&&(M=M.split("m"),d=M[0]*60+d,M=M[1]);M.indexOf("s")!=-1?(M=M.split("s"),d=M[0]*1+d):d=M*1+d;return d};
_.zI$=function(){_.ZR("service_worker_push_logged_out_prompt_watches")!=-1&&_.HK("WatchCount").then(function(M){M>=100||_.zp("WatchCount",M+1)})};
b1b=function(M){var d=M.externalVideoId||"";return d?(_.Q("webfe_watch_shorts_canonical_url_fix")||_.rK("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&M.isShortsEligible?"https://www.youtube.com/shorts/"+d:"https://www.youtube.com/watch?v="+d:""};
eIJ=function(M){var d=[];M.viewCount&&d.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:M.viewCount});M.likeCount&&d.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:M.likeCount});return d};
H1C=function(M){var d,N,R={"@context":"https://schema.org","@type":"VideoObject",description:_.HD(M.description),duration:"PT"+(M.lengthSeconds||"0")+"S",embedUrl:M.embed?M.embed.iframeUrl:"",name:_.HD(M.title),thumbnailUrl:((d=M.thumbnail)==null?void 0:(N=d.thumbnails)==null?void 0:N.map(function(w){return w&&w.url||""}))||[],
uploadDate:M.publishDate};_.Q("mweb_video_schema_id_killswitch")||(R["@id"]=b1b(M));d=eIJ(M);d.length&&(R.interactionStatistic=d);M.category&&(R.genre=M.category);M.ownerChannelName&&(R.author=M.ownerChannelName);M.liveBroadcastDetails&&(R.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:M.liveBroadcastDetails.startTimestamp,endDate:M.liveBroadcastDetails.endTimestamp}]);if(M.learningResource){M=M.learningResource;R["@type"]=["VideoObject","LearningResource"];var X;if((X=M.learningResourceType)==
null?0:X.length)R.learningResourceType=M.learningResourceType[0];var A;if((A=M.educationalAlignment)==null?0:A.length)R.educationalAlignment={"@type":"AlignmentObject",targetName:M.educationalAlignment[0]};var l;if((l=M.educationalLevel)==null?0:l.length){X=M.educationalLevel[0];var k;if((k=M.educationalLevelCountry)==null?0:k.length)X+=" ("+M.educationalLevelCountry+")";R.educationalLevel=X}var T,W;if(((T=M.learningResourceType)==null?0:T.length)&&M.learningResourceType[0]==="Problem walkthrough"&&
((W=M.problemDescriptions)==null?0:W.length))for(R.hasPart=[],k=_.V(M.problemDescriptions),T=k.next();!T.done;T=k.next())X=T.value,T=X.problemDescriptionText,W=X.startOffset,X=X.url,T&&W!==void 0&&X&&R.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:T,text:T,startOffset:W,url:X})}return R};
_.nq4=function(M){return _.YS({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:M}})};
y5J=[];KKJ=!1;_.i1d=["engagement-panel-ads"];fF$=new _.x("updateSentimentBarStateCommand");_.LKi=new _.x("showSurveyCommand");_.t7=new _.x("changeMarkersVisibilityCommand");var GXi,aFb,x5q,CPT,usG,GV;_.taC=function(M,d){this.playerProvider_=M;this.actionSenderElement_=d;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.taC.prototype.reset=function(){GXi(this);this.isUserPredictedAbsent_=!1};
GXi=function(M,d){!M.youThereData_||M.showWarningJob_||d!==void 0&&d||(_.bp("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Ou(),M.youThereData_,M.clientPlaybackNonce_),_.Qc());_.IQ.cancelJob(M.showWarningJob_);M.showWarningJob_=0;_.IQ.cancelJob(M.showBlockingWarningJob_);M.showBlockingWarningJob_=0;_.IQ.cancelJob(M.pausePlaybackJob_);M.pausePlaybackJob_=0;M.youThereData_=null;M.clientPlaybackNonce_=void 0;M.inYouThereFlow_=!1};
_.U5P=function(M,d){var N,R,X;_.B(function(A){if(A.nextAddress==1)return M.reset(),_.D(A,M.playerProvider_().getPlayerPromise(),2);N=A.yieldResult;M.clientPlaybackNonce_=N.getVideoData().cpn;M.youThereData_=d.configData.youThereData;if(!M.youThereData_)return A.return();if(M.youThereData_.triggerReason&&M.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.asP())return _.bp("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Ou(),M.youThereData_,M.clientPlaybackNonce_),A.return();R=M.youThereData_.promptDelaySec;
X=N.getCurrentTime();M.showWarningJob_=_.IQ.addLowPriorityJob(function(){return _.B(function(l){M.showWarningJob_=0;return _.D(l,aFb(M),0)})},Math.max(R-X,0)*1E3);
_.Vy(A)})};
aFb=function(M){var d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,M.playerProvider_().getPlayerPromise(),2);if(k.nextAddress!=3)return d=k.yieldResult,N=d.getCurrentTime(),_.D(k,usG(M),3);R=k.yieldResult;if(!R||!M.youThereData_)return k.return();if(_.Q("check_user_lact_at_prompt_shown_time_on_web")&&(X=parseInt(M.youThereData_.lactThresholdMs,10),_.aQ()<X))return _.bp("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Ou(),M.youThereData_,M.clientPlaybackNonce_),k.return();if(M.youThereData_.playbackPauseDelayMs<=
0)return CPT(M),k.return();!_.Q("external_fullscreen")&&(A=_.Uu())&&(M.ignoreFullscreenExitUserActivity_=!0,_.IQ.addLowPriorityJob(function(){M.ignoreFullscreenExitUserActivity_=!1},2E3),_.uX(A));
M.youThereData_.showToastWarningPrompt&&(GV(M,M.youThereData_.showWarningActions),M.inYouThereFlow_=!0,_.bp("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Ou(),M.youThereData_,M.clientPlaybackNonce_,N),_.bp("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Ou(),M.youThereData_,M.clientPlaybackNonce_,N));l=0;M.youThereData_.blockingPromptDelayMs&&(l=M.youThereData_.blockingPromptDelayMs);M.showBlockingWarningJob_=_.IQ.addLowPriorityJob(function(){return _.B(function(T){M.showBlockingWarningJob_=0;return _.D(T,
x5q(M),0)})},l);
_.Vy(k)})};
x5q=function(M){var d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,usG(M),2);d=X.yieldResult;if(!M.youThereData_)return X.return();d&&(M.youThereData_.showBlockingWarningAction&&(_.bp("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Ou(),M.youThereData_,M.clientPlaybackNonce_),(N=_.q(M.youThereData_.showBlockingWarningAction,_.XP))?GV(M,N.commands):GV(M,[M.youThereData_.showBlockingWarningAction]),M.inYouThereFlow_=!0),R=M.youThereData_.playbackPauseDelayMs,M.pausePlaybackJob_=
_.IQ.addLowPriorityJob(function(){return _.B(function(A){M.pausePlaybackJob_=0;return _.D(A,CPT(M),0)})},R));
_.Vy(X)})};
CPT=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,usG(M),2);d=N.yieldResult;if(!M.youThereData_)return N.return();d&&(_.bp("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Ou(),M.youThereData_,M.clientPlaybackNonce_),GV(M,M.youThereData_.showPausedActions),M.inYouThereFlow_=!0);_.Vy(N)})};
_.taC.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var M=_.q(this.youThereData_.userActiveDuringFlowAction,_.XP);M?GV(this,M.commands):GV(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.bp("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Ou(),this.youThereData_,this.clientPlaybackNonce_),_.Qc());GXi(this,!0)}_.Y4C(this,!1)};
_.Z19=function(M){_.bp("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Ou(),M.youThereData_,M.clientPlaybackNonce_)};
usG=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.playerProvider_().getPlayerPromise(),2);d=R.yieldResult;N=d.getPlayerState();return R.return(N==-1||N==1||N==3)})};
_.Y4C=function(M,d){var N;_.B(function(R){if(R.nextAddress==1){if(M.isUserPredictedAbsent_==d)return R.jumpTo(0);M.isUserPredictedAbsent_=d;return _.D(R,M.playerProvider_().getPlayerPromise(),3)}N=R.yieldResult;N.setUserEngagement(d);d&&_.bp("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Ou(),M.youThereData_,M.clientPlaybackNonce_);_.Vy(R)})};
GV=function(M,d){if(_.Q("handle_service_request_actions")||_.Q("kevlar_youthere_service_endpoint_actions_killswitch"))_.Ni(M.actionSenderElement_,d,M.actionSenderElement_);else{d=_.V(d);for(var N=d.next();!N.done;N=d.next())N=N.value,N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.sendPost?_.dU(M.actionSenderElement_,[N]):_.Ni(M.actionSenderElement_,[N],M.actionSenderElement_)}};var EqY;var MZD;var aP=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return M};
_.v(aP,_.n);aP.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var M=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(M=this.data.percentIfLiked||0,this.activated=!0):(M=this.data.percentIfIndifferent||0,this.activated=!1);_.K(this.hostElement).querySelector("#like-bar").style.width=M+"%"}};
aP.prototype.handleUpdateSentimentBarStateCommand=function(M){this.data&&this.set("data.likeStatus",_.q(M,fF$).likeStatus)};
aP.prototype.observeLikeStatus=aP.prototype.observeLikeStatus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],aP.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aP.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],aP.prototype,"activated",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],aP.prototype,"systemIcons",void 0);_.G([_.xB("data.likeStatus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aP.prototype,"observeLikeStatus",null);aP=_.G([_.f({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],aP);
_.L(aP,"ytd-sentiment-bar-renderer",function(){if(MZD!==void 0)return MZD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return MZD=M},{mode:1});var dur;var Ui=function(){var M=_.n.apply(this,arguments)||this;M.small=!0;return M};
_.v(Ui,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ui.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ui.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ui.prototype,"small",void 0);Ui=_.G([_.f({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Ui);
_.L(Ui,"ytd-video-view-count-renderer",function(){if(dur!==void 0)return dur;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return dur=M},{mode:_.G3("kevlar_poly_si_batch_j080")?1:2});var uf=function(){var M=_.n.apply(this,arguments)||this;M.infoFormattedStrings=[];M.wrapVideoActions=_.Q("kevar_watch_wrap_video_actions");M.hideSentimentBar=_.Q("kevlar_watch_hide_sentiment_bar");M.actionMap={};return M};
_.v(uf,_.n);_.F=uf.prototype;_.F.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.Q("web_modern_buttons"),forceIconButton:!_.Q("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.F.dataChanged=function(){_.Q("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.F.computeInfoFormattedStrings=function(M){if(!M)return[];var d=[];M.dateText&&d.push(M.dateText);M.stationName&&d.push(M.stationName);M.rating&&d.push(M.rating);M.startEndTimeTemplate&&M.startTimeUtcMillis&&M.endTimeUtcMillis&&d.push(_.ep(_.GOb(_.HD(M.startEndTimeTemplate),Number(M.startTimeUtcMillis),Number(M.endTimeUtcMillis))));M.upNextProgramText&&d.push(M.upNextProgramText);return d};
_.F.scheduleInitialUpdatedMetadataRequest=function(){var M,d=(M=this.data)==null?void 0:M.updatedMetadataEndpoint;if(d){var N;M=Number((N=_.q(d,_.lYL))==null?void 0:N.initialDelayMs);N=isNaN(M)?250:M;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),N)}};
_.F.setSentimentBarWidth=function(){var M=this;_.bM(this,function(){var d=_.K(M.hostElement).querySelector("ytd-menu-renderer");if(d){d=d.topLevelButtons;for(var N=0,R=0;R<d.length;R++){var X=d[R],A=M.get("toggleButtonSupportedData.toggleButtonIdData.id",X.data);if(A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||A==="TOGGLE_BUTTON_ID_TYPE_LIKE")N+=X.clientWidth+8;else break}N&&(M.sentiment.style.width=N-8+" px")}})};
_.F.fetchUpdatedMetadata=function(M){var d;M&&(d={continuation:M});var N;(M=(N=this.data)==null?void 0:N.updatedMetadataEndpoint)&&_.h().resolve(_.xV).resolveCommand(M,{form:Object.assign({},d,{element:this.hostElement})})};
_.F.onYtServiceRequestSent=function(M,d){d.endpoint&&_.q(d.endpoint,_.fQ)&&(this.hasUpdateSentimentBarStateCommands()&&!_.Q("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.q(d.endpoint,_.fQ).status),this.setSentimentBarWidth())};
_.F.hasUpdateSentimentBarStateCommands=function(){var M,d,N,R,X=(R=(M=this.data)==null?void 0:(d=M.videoActions)==null?void 0:(N=d.menuRenderer)==null?void 0:N.topLevelButtons)!=null?R:[];M=_.V(X);for(d=M.next();!d.done;d=M.next()){d=d.value;X=R=N=void 0;var A=(N=d.toggleButtonRenderer)==null?void 0:(R=N.toggleButtonSupportedData)==null?void 0:(X=R.toggleButtonIdData)==null?void 0:X.id;if(A==="TOGGLE_BUTTON_ID_TYPE_LIKE"||A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){R=N=void 0;d=(R=_.q((N=d.toggleButtonRenderer)==
null?void 0:N.defaultServiceEndpoint,_.XP))==null?void 0:R.commands;if(!d)break;d=_.V(d);for(N=d.next();!N.done;N=d.next())if(_.q(N.value,fF$))return!0}}return!1};
_.F.onYtServiceRequestCompleted=function(M,d){var N;(M=(N=d.data)==null?void 0:N.loggingDirectives)&&_.Tv2(_.Nx(),M);this.get("continuation.timedContinuationData",d.data)&&this.data&&this.data.updatedMetadataEndpoint&&(d=d.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,d.continuation),d.timeoutMs))};
_.F.computeHasDateText=function(M){return!!M&&!!M.dateText};
_.Hm.Object.defineProperties(uf.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return!((R=(M=this.data)==null?void 0:(d=M.videoActions)==null?void 0:(N=d.menuRenderer)==null?void 0:N.flexibleItems)==null||!R.length)}}});
uf.prototype.onYtServiceRequestCompleted=uf.prototype.onYtServiceRequestCompleted;uf.prototype.onYtServiceRequestSent=uf.prototype.onYtServiceRequestSent;uf.prototype.dataChanged=uf.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],uf.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.HA.YtTaskEmitterBehavior),_.a("design:type",Object)],uf.prototype,"ytTaskEmitterBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],uf.prototype,"data",void 0);_.G([_.H({computed:"computeInfoFormattedStrings(data)"}),_.a("design:type",Array)],uf.prototype,"infoFormattedStrings",void 0);
_.G([_.H({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],uf.prototype,"hasDateText",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],uf.prototype,"wrapVideoActions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],uf.prototype,"hideSentimentBar",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],uf.prototype,"flexMenuEnabled",null);
_.G([_.Z3("#sentiment"),_.a("design:type",Object)],uf.prototype,"sentiment",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uf.prototype,"dataChanged",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],uf.prototype,"onYtServiceRequestSent",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],uf.prototype,"onYtServiceRequestCompleted",null);
_.L(uf,"ytd-video-primary-info-renderer",function(){if(EqY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);EqY=M}M=EqY;return M},{mode:1});var NS4;var Cs=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.v(Cs,_.n);_.F=Cs.prototype;_.F.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"}}}};
_.F.dataChanged=function(){var M;this.descriptionToggled=!((M=this.data)==null||!M.defaultExpanded);var d;this.collapsed=this.descriptionAlwaysCollapsed||!((d=this.data)==null?0:d.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Tx(110509);this.showLessClientVe=_.Tx(110510);M=_.Ou();d=_.vl();M&&d&&_.eU(M,d,[this.showMoreClientVe,this.showLessClientVe])};
_.F.onYtExpanderMoreTapped=function(){var M,d=(M=this.data)==null?void 0:M.showMoreCommand;d&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(d);(M=_.Ou())&&this.showMoreClientVe&&_.eD(M,this.showMoreClientVe)};
_.F.onYtExpanderLessTapped=function(){var M=_.Ou();M&&this.showLessClientVe&&_.eD(M,this.showLessClientVe);var d;(M=(d=this.data)==null?void 0:d.showLessCommand)&&this.componentBehavior.resolveCommand(M)};
_.F.handleUpdateDateTextAction=function(M){this.data&&this.data.dateText&&this.set("data.dateText",_.q(M,_.Qvd).dateText)};
_.F.handleUpdateDescriptionAction=function(M){if(M=_.q(M,_.t4d))M.isEmpty||!M.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Wz(M.description)):this.set("data.description",M.description)};
_.F.onYtChangeEngagementPanelVisibilityAction=function(M){if(_.Q("web_structured_description_show_more")||_.Q("web_engagement_panel_open_description")){var d,N=(d=_.q(M,_.tIg))==null?void 0:d.targetId,R;M=((R=_.q(M,_.tIg))==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";N==="engagement-panel-structured-description"&&M&&(this.descriptionToggled=!0)}};
_.F.updateCollapsedFromBinding=function(M){this.collapsed=M.detail.value};
_.F.updateDescriptionToggledFromBinding=function(M){this.descriptionToggled=M.detail.value};
_.F.updateCanCollapseFromBinding=function(M){this.canCollapse=M.detail.value};
_.Hm.Object.defineProperties(Cs.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.metadataRowContainer)==null?void 0:d.metadataRowContainerRenderer;return!!N&&!!N.rows&&N.rows.length>N.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
Cs.prototype.onYtExpanderLessTapped=Cs.prototype.onYtExpanderLessTapped;Cs.prototype.onYtExpanderMoreTapped=Cs.prototype.onYtExpanderMoreTapped;Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Cs.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cs.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],Cs.prototype,"collapsed",void 0);_.G([_.H(),_.a("design:type",Boolean)],Cs.prototype,"descriptionToggled",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Cs.prototype,"canCollapse",void 0);_.G([_.H(),_.a("design:type",Object)],Cs.prototype,"subscribeButtonData",void 0);_.G([_.H(),_.a("design:type",Number)],Cs.prototype,"descriptionCollapsedHeight",void 0);_.G([_.H(),_.a("design:type",Object)],Cs.prototype,"structuredDescriptionContentRenderer",void 0);_.G([_.H({value:function(){return _.Q("web_watch_description_always_collapsed")}}),
_.a("design:type",Boolean)],Cs.prototype,"descriptionAlwaysCollapsed",void 0);_.G([_.Z3("#description"),_.a("design:type",HTMLDivElement)],Cs.prototype,"description",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cs.prototype,"dataChanged",null);_.G([_.C3("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cs.prototype,"onYtExpanderMoreTapped",null);
_.G([_.C3("yt-expander-less-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cs.prototype,"onYtExpanderLessTapped",null);_.G([_.z("data.metadataRowContainer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"metadataCollapsible",null);_.G([_.z("data","structuredDescriptionContentRenderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"hasInlineStructuredDescription",null);
_.G([_.z("data.attributedDescription"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"hasAttributedDescription",null);_.G([_.z("hasInlineStructuredDescription","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"loadStructuredDescription",null);_.G([_.z("data","structuredDescriptionContentRenderer","collapsed"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"showInlineStructuredDescription",null);
_.G([_.z("data","hasInlineStructuredDescription","metadataCollapsible"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Cs.prototype,"descriptionAlwaysCollapsible",null);
_.L(Cs,"ytd-video-secondary-info-renderer",function(){if(NS4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);NS4=M}M=NS4;return M},{mode:2});var R3b;var xp=function(){return _.n.apply(this,arguments)||this};
_.v(xp,_.n);xp.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:_.Q("web_modern_buttons"),forceIconButton:!_.Q("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
xp.prototype.activate=function(M){M.appendTo(this.player);M.getPlayerPromise().then(function(d){d.setMinimized(!0)});
this.active=!0};
xp.prototype.deactivate=function(){var M=this.player.firstElementChild;M.getPlayerPromise().then(function(d){d.setMinimized(!1)});
this.active=!1;return M};
xp.prototype.onScrollUpTap=function(){var M=_.h().resolve(_.em).getCurrentPage();M&&M.setScrollTop(0)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],xp.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],xp.prototype,"active",void 0);
_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.a("design:type",Boolean)],xp.prototype,"darkLaunch",void 0);_.G([_.Z3("#player"),_.a("design:type",HTMLDivElement)],xp.prototype,"player",void 0);xp=_.G([_.f({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],xp);
_.L(xp,"ytd-miniplayer-bar-renderer",function(){if(R3b!==void 0)return R3b;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return R3b=M},{mode:1});_.eC(_.SG(function(M){var d=_.e5();_.Wg(function(){var N;if(N=JSON)N=H1C(M.data()),N=_.yL(JSON.stringify(N).replace(/</g,"\\u003C"));var R=M.data(),X=_.HD(R.title).trim().length===0,A=!R.publishDate||R.publishDate.trim().length===0,l,k,T,W,w=!((l=R.thumbnail)==null?0:(k=l.thumbnails)==null?0:k.length)||!((T=R.thumbnail)==null?0:T.thumbnails[0].url)||((W=R.thumbnail)==null?void 0:W.thumbnails[0].url.trim().length)===0;d.value&&N&&!(X||A||w)&&_.cQ(d.value,N)});
return _.g("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.g("script",{el:d,type:"application/ld+json"}))},"Wi"),"player-microformat-renderer",{props:{data:_.bI}});
}catch(e){_._DumpException(e)}
try{
var el9,pp,Hnq,nrC,fJi,Lei,inT,tUY;el9=function(){var M=_.Dy();M.info||(M.info={});return M.info};
pp=function(M){return Math.round(_.wU()+M)};
Hnq=function(){var M;if(_.Q("csi_use_performance_navigation_timing")||_.Q("csi_use_performance_navigation_timing_tvhtml5")){var d,N,R,X=_.W1==null?void 0:(M=_.W1.getEntriesByType)==null?void 0:(d=M.call(_.W1,"navigation"))==null?void 0:(N=d[0])==null?void 0:(R=N.toJSON)==null?void 0:R.call(N);X?(X.requestStart=pp(X.requestStart),X.responseEnd=pp(X.responseEnd),X.redirectStart=pp(X.redirectStart),X.redirectEnd=pp(X.redirectEnd),X.domainLookupEnd=pp(X.domainLookupEnd),X.connectStart=pp(X.connectStart),
X.connectEnd=pp(X.connectEnd),X.responseStart=pp(X.responseStart),X.secureConnectionStart=pp(X.secureConnectionStart),X.domainLookupStart=pp(X.domainLookupStart),X.isPerformanceNavigationTiming=!0,M=X):M=_.W1.timing}else M=_.Q("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.W1.timing)):_.W1.timing;return M};
nrC=function(){if(_.W1.getEntriesByType){var M=_.W1.getEntriesByType("paint");if(M=_.Sr(M,function(N){return N.name==="first-paint"}))return pp(M.startTime)}var d;
_.Q("csi_use_performance_navigation_timing")||_.Q("csi_use_performance_navigation_timing_tvhtml5")?d=_.W1.getEntriesByType("first-paint")[0].startTime:d=_.W1.timing.msFirstPaint;return d?Math.max(0,d):0};
fJi=function(){var M=window.location.protocol,d=_.W1.getEntriesByType("resource");d=_.Ai(d,function(N){return N.name.indexOf(M+"//fonts.gstatic.com/s/")===0});
(d=inT(d,function(N,R){return R.duration>N.duration?R:N}))&&d.startTime>0&&d.responseEnd>0&&(_.pb("wffs",pp(d.startTime)),_.pb("wffe",pp(d.responseEnd)))};
Lei=function(M,d){M=document.querySelector(M);if(!M)return!1;var N="",R=M.nodeName;R==="SCRIPT"?(N=M.src,N||(N=M.getAttribute("data-timing-href"))&&(N=window.location.protocol+N)):R==="LINK"&&(N=M.href);_.rH(document)&&M.setAttribute("nonce",_.rH(document));return N?(M=_.W1.getEntriesByName(N))&&M[0]&&(M=M[0],N=_.wU(),_.pb("rsf_"+d,N+Math.round(M.fetchStart)),_.pb("rse_"+d,N+Math.round(M.responseEnd)),M.transferSize!==void 0&&M.transferSize===0)?!0:!1:!1};
_.m5=function(M,d){_.JA(function(){_.t8i("").info.actionType=M;d&&_.oJ("TIMING_AFT_KEYS",d);_.oJ("TIMING_ACTION",M);var N=_.A42(_.rK("TIMING_INFO",{}));Object.keys(N).length>0&&_.mN(N);N={isNavigation:!0,actionType:_.U2p(_.rK("TIMING_ACTION"))};var R=_.rK("PREVIOUS_ACTION");R&&(N.previousAction=_.U2p(R));if(R=_.rK("CLIENT_PROTOCOL"))N.httpProtocol=R;if(R=_.rK("CLIENT_TRANSPORT"))N.transportProtocol=R;(R=_.Ou())&&R!=="UNDEFINED_CSN"&&(N.clientScreenNonce=R);R=_.FEj();if(R===1||R===-1)N.isVisible=!0;
R=_.bUr().loadType==="cold";var X=el9();R||(R=X.yt_lt==="cold");if(R){N.loadType="cold";R=el9();X=Hnq();var A=_.wU(),l=_.rK("CSI_START_TIMESTAMP_MILLIS",0);l>0&&!_.Q("embeds_web_enable_csi_start_override_killswitch")&&(A=l);A&&(_.pb("srt",X.responseStart),R.prerender!==1&&_.ZUZ(A));R=nrC();R>0&&_.pb("fpt",R);R=Hnq();R.isPerformanceNavigationTiming&&_.mN({performanceNavigationTiming:!0},void 0);_.pb("nreqs",R.requestStart,void 0);_.pb("nress",R.responseStart,void 0);_.pb("nrese",R.responseEnd,void 0);
R.redirectEnd-R.redirectStart>0&&(_.pb("nrs",R.redirectStart,void 0),_.pb("nre",R.redirectEnd,void 0));R.domainLookupEnd-R.domainLookupStart>0&&(_.pb("ndnss",R.domainLookupStart,void 0),_.pb("ndnse",R.domainLookupEnd,void 0));R.connectEnd-R.connectStart>0&&(_.pb("ntcps",R.connectStart,void 0),_.pb("ntcpe",R.connectEnd,void 0));R.secureConnectionStart>=_.wU()&&R.connectEnd-R.secureConnectionStart>0&&(_.pb("nstcps",R.secureConnectionStart,void 0),_.pb("ntcpe",R.connectEnd,void 0));_.W1&&"getEntriesByType"in
_.W1&&fJi();R=[];if(document.querySelector&&_.W1&&_.W1.getEntriesByName)for(var k in tUY)tUY.hasOwnProperty(k)&&(X=tUY[k],Lei(k,X)&&R.push(X));if(R.length>0)for(N.resourceInfo=[],k=_.V(R),R=k.next();!R.done;R=k.next())N.resourceInfo.push({resourceCache:R.value})}_.mN(N);N=_.HUL();N.preLoggedGelInfos||(N.preLoggedGelInfos=[]);k=N.preLoggedGelInfos;N=_.n5q();R=void 0;for(X=0;X<k.length;X++)if(A=k[X],A.loadType){R=A.loadType;break}if(_.bUr().loadType==="cold"&&(N.loadType==="cold"||R==="cold")){R=_.ewZ();
X=_.HUL();X=X.gelTicks?X.gelTicks:X.gelTicks={};for(var T in R)if(!(T in X))if(typeof R[T]==="number")_.pb(T,_.h$(T));else if(_.Q("log_repeated_ytcsi_ticks"))for(A=_.V(R[T]),l=A.next();!l.done;l=A.next())l=l.value,_.pb(T.slice(1),l);T={};R=!1;k=_.V(k);for(X=k.next();!X.done;X=k.next())R=X.value,_.cYp(N,R),_.cYp(T,R),R=!0;R&&_.mN(T)}_.lBZ(!0);T=_.rK("TIMING_ACTION");_.cy("ytglobal.timingready_")&&T&&_.mLi()&&_.VXi()&&_.RVA()})()};
inT=function(M,d){return Array.prototype.reduce.call(M,d,{duration:0})};
tUY={'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 Gpb={};Gpb.YtVisibilityRootBehavior=[_.ngL.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.tw(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.rK("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var M=_.rK("INNERTUBE_CLIENT_NAME")!=="WEB";_.Q("kevlar_use_vimio_behavior")&&M&&_.tQC()}}];_.hF={};_.hF.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(M){M.detail.contextProvider=this;M.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Gpb.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.KO();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(M){var d=this;this.pageCount+=1;_.Q("kevlar_use_vimio_behavior")&&(_.rK("INNERTUBE_CLIENT_NAME")==="WEB"?_.IQ.addJob(function(){d.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(M)},
loadPage_:function(M){this.data=M},
ytPageBehaviorActiveObserver_:function(M){var d=this;_.Q("kevlar_use_vimio_behavior")&&(M?_.rK("INNERTUBE_CLIENT_NAME")==="WEB"?_.IQ.addJob(function(){d.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(M){if(!this.setScrollTopJobId_){var d=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){d.setScrollTopJobId_=0;var N=_.h().resolve(_.CF(_.gT));N&&_.nAL(N);this.getPageScrollingElement().scrollTop=M}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.v6(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var bne;var wa=function(){var M=_.n.apply(this,arguments)||this;M.playerListenerConfig=null;M.actionMap={"yt-show-watch-page-survey":"openSurvey"};return M};
_.v(wa,_.n);_.F=wa.prototype;_.F.dataChanged=function(){var M=this,d=_.nO();d&&d.getPlayerPromise().then(function(R){M.maybeRemovePlayerListeners(R)});
var N=this.data&&this.data.survey;N&&((N=(N=N.singleOptionSurveyRenderer||N.checkboxSurveyRenderer||N.multiStageSurveyRenderer)&&N.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(d,N):this.openSurvey())};
_.F.triggerWatchPageSurvey=function(M,d){var N=this,R,X,A,l,k,T,W,w,p;return _.B(function(m){if(m.nextAddress==1)return M?_.D(m,M.getPlayerPromise(),2):m.return();N.player=m.yieldResult;if(!N.player)return m.return();R={};X=_.V(d);for(A=X.next();!A.done;A=X.next())l=A.value,k=_.V(N.createEventListenerPair(l)),T=k.next().value,W=k.next().value,w=T,p=W,w&&p&&(R[w]=p,N.ytPlayerListenerBehavior.listenToPlayerEvent(N.player,w,p));N.playerListenerConfig=R;_.Vy(m)})};
_.F.createEventListenerPair=function(M){var d=M.playbackEventTrigger;return d?this.handlePlaybackTrigger(d):(M=M.watchTimeTrigger)?this.handleWatchTimeTrigger(M):[void 0,void 0]};
_.F.handleWatchTimeTrigger=function(M){var d=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var N=M.videoWatchFraction,R=M.watchTimeSec;return R&&N?["onVideoProgress",function(){d.player&&d.isWatchTimeConditionMet(d.player,N,R)&&d.showSurvey()}]:[void 0,
void 0]};
_.F.isWatchTimeConditionMet=function(M,d,N){var R=M.getProgressState(),X=R.current-this.lastKnownPlaybackPosition;X<5&&(this.accumulatedMediaTime+=X);this.lastKnownPlaybackPosition=R.current;R=Math.round(this.accumulatedMediaTime/R.duration*1E3)/1E3;return M.getPresentingPlayerType&&M.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>N||R>d)};
_.F.handlePlaybackTrigger=function(M){var d=this;M=M.playbackEvent;if(M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var N="onStateChange";var R=function(X){X===0&&d.showSurvey()}}else M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(N="onVideoProgress",R=function(X){d.player&&d.player.getPresentingPlayerType&&d.player.getPresentingPlayerType()===1&&X&&d.showSurvey()}):M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(N="onAdEnd",R=this.showSurvey);
return[N,R]};
_.F.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.F.openSurvey=function(){var M=this,d=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.PCe(!!d));_.IQ.addJob(function(){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:d}})},0,0)};
_.F.maybeRemovePlayerListeners=function(M){if(this.playerListenerConfig){for(var d=_.V(Object.keys(this.playerListenerConfig)),N=d.next();!N.done;N=d.next())N=N.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(M,N,this.playerListenerConfig[N]);this.playerListenerConfig=null}};
wa.prototype.dataChanged=wa.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],wa.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],wa.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],wa.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wa.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],wa.prototype,"playerListenerConfig",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],wa.prototype,"lastKnownPlaybackPosition",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],wa.prototype,"accumulatedMediaTime",void 0);_.G([_.H(),_.a("design:type",Object)],wa.prototype,"player",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wa.prototype,"dataChanged",null);wa=_.G([_.f({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],wa);
_.L(wa,"ytd-survey-trigger-renderer",function(){if(bne!==void 0)return bne;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return bne=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var PiD=new _.x("promotedSparklesWebRenderer");var o6T=new _.x("relatedChipCommand");var rnT;var KUC;var TX=function(){return _.n.apply(this,arguments)||this};
_.v(TX,_.n);TX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TX.prototype,"data",void 0);TX=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],TX);
_.L(TX,"ytd-compact-tvfilm-entry-point-renderer",function(){if(KUC!==void 0)return KUC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return KUC=M},{mode:1});var ynq;var JnG;var cne;var DF=function(){return _.n.apply(this,arguments)||this};
_.v(DF,_.n);DF.prototype.ready=function(){this.initializeDefs()};
DF.prototype.initializeDefs=function(){var M=this.meta.byKey("yt-icons"),d=_.K(M).querySelector("#star"),N=_.K(M).querySelector("#star_half");M=_.K(M).querySelector("#star_border");d&&this.defs.appendChild(d.cloneNode(!0));N&&this.defs.appendChild(N.cloneNode(!0));M&&this.defs.appendChild(M.cloneNode(!0))};
DF.prototype.percentChanged=function(){for(var M=this.rating;M.firstChild;)M.removeChild(M.firstChild);var d=Math.round(this.percent/10);M=Math.floor(d/2);d%=2;var N=5-M-d;this.appendStars("star",M,0);this.appendStars("star_half",d,M);this.appendStars("star_border",N,M+d)};
DF.prototype.appendStars=function(M,d,N){for(var R=0;R<d;R++){var X=(18+this.spacing)*(R+N),A=document.createElementNS("http://www.w3.org/2000/svg","use");_.o4G(A,"#"+M);A.setAttribute("x",""+X);A.setAttribute("y","0");this.rating.appendChild(A)}};
DF.prototype.percentChanged=DF.prototype.percentChanged;_.G([_.Z3("#defs"),_.a("design:type",HTMLElement)],DF.prototype,"defs",void 0);_.G([_.Z3("#rating"),_.a("design:type",HTMLElement)],DF.prototype,"rating",void 0);_.G([_.H(),_.a("design:type",Number)],DF.prototype,"percent",void 0);_.G([_.H({value:6}),_.a("design:type",Number)],DF.prototype,"spacing",void 0);_.G([_.H({value:_.ms.create("iron-meta",{type:"iconset"})}),_.a("design:type",_.IH)],DF.prototype,"meta",void 0);
_.G([_.xB("percent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DF.prototype,"percentChanged",null);DF=_.G([_.f({disableElementRegistration:!0,is:"ytd-ratings"})],DF);
_.L(DF,"ytd-ratings",function(){if(cne!==void 0)return cne;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return cne=M},{mode:1});var go=function(){return _.n.apply(this,arguments)||this};
_.v(go,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],go.prototype,"data",void 0);go=_.G([_.f({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],go);
_.L(go,"ytd-offer-review-renderer",function(){if(JnG!==void 0)return JnG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return JnG=M},{mode:1});var W9=function(){var M=_.n.apply(this,arguments)||this;M.badges=[{textBadge:{label:_.ep("CC")}}];return M};
_.v(W9,_.n);_.F=W9.prototype;_.F.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.F.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(M&&M.commandMetadata&&_.q(M.commandMetadata,_.vq)&&_.q(M.commandMetadata,_.vq).fireAutomatically)_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}});else{var d;M&&((d=_.q(M,_.vq))==null?0:d.fireAutomatically)&&_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})}};
_.F.isEmptyContent=function(M){return this.isStorefrontEntryPointEmpty(M)&&this.shouldHideOfferModule(M)};
_.F.isStorefrontEntryPointEmpty=function(M){return!M||!M.storefrontEntryPoint};
_.F.shouldHideOfferModule=function(M){return!!M.hideVideoDetails};
_.F.isOfferModuleNavigationInactive=function(M){return!M.navigationEndpoint&&!M.serviceEndpoint};
_.F.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
W9.prototype.dataChanged=W9.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],W9.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.a("design:type",Boolean)],W9.prototype,"hidden",void 0);
_.G([_.H(),_.a("design:type",Object)],W9.prototype,"badges",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],W9.prototype,"dataChanged",null);W9=_.G([_.f({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],W9);
_.L(W9,"ytd-movie-offer-module-renderer",function(){if(ynq!==void 0)return ynq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ynq=M},{mode:1});var S2b;var wo=function(){return _.n.apply(this,arguments)||this};
_.v(wo,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],wo.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wo.prototype,"data",void 0);wo=_.G([_.f({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],wo);
_.L(wo,"ytd-media-masthead-renderer",function(){if(S2b!==void 0)return S2b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return S2b=M},{mode:1});var zer;_.eC(_.u_g,"course-metadata-view-model",{props:{data:_.bI,isOverlay:_.bI}});var p1=function(){var M=_.n.apply(this,arguments)||this;M.isMetadataVisible=!1;M.modernPanels=_.Q("kevlar_watch_modern_panels");M.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return M};
_.v(p1,_.n);_.F=p1.prototype;
_.F.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"}}}}};
_.F.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.F.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.F.expanderChanged=function(){var M;if((M=this.data)==null?0:M.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.F.isExpandButtonToggled=function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.expandMetadataButton,_.qH))==null?void 0:d.isToggled};
_.F.onVisibilityButtonClick=function(){var M;if((M=this.data)==null?0:M.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.F.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
p1.prototype.expanderChanged=p1.prototype.expanderChanged;p1.prototype.dataChanged=p1.prototype.dataChanged;p1.prototype.descriptionChanged=p1.prototype.descriptionChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S([_.tK.YtActionHandlerBehavior]),_.a("design:type",Object)],p1.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],p1.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],p1.prototype,"isMetadataVisible",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],p1.prototype,"modernPanels",void 0);_.G([_.Z3("#expander"),_.a("design:type",Object)],p1.prototype,"expander",void 0);_.G([_.xB("data.description"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"descriptionChanged",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"dataChanged",null);_.G([_.xB("isMetadataVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p1.prototype,"expanderChanged",null);p1=_.G([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],p1);
_.L(p1,"ytd-tvfilm-offer-module-renderer",function(){if(zer!==void 0)return zer;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zer=M},{mode:2});var bv9;var mK=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return M};
_.v(mK,_.n);mK.prototype.dataChanged=function(){this.hostElement.hidden=!1};
mK.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
mK.prototype.onThumbnailTap=function(M){this.data&&this.data.serviceEndpoint&&(_.h().resolve(_.xV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),M.stopPropagation())};
mK.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
mK.prototype.dataChanged=mK.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mK.prototype,"rendererBehaviors",void 0);_.G([_.S([_.tK.YtActionHandlerBehavior]),_.a("design:type",Object)],mK.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mK.prototype,"data",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mK.prototype,"dataChanged",null);mK=_.G([_.f({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],mK);
_.L(mK,"ytd-unlimited-offer-module-renderer",function(){if(bv9!==void 0)return bv9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bv9=M},{mode:1});var eeC;var HvD;var h5=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return M};
_.v(h5,_.n);h5.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
h5.prototype.handleRelatedChipCommand=function(M){M=_.q(M,o6T);var d=M.contents;d?_.Eu(this.hostElement,"yt-item-section-replace-action",[d,M.targetSectionIdentifier]):_.Eu(this.hostElement,"yt-item-section-continuation-action",[M.continuationData,M.targetSectionIdentifier])};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],h5.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],h5.prototype,"data",void 0);h5=_.G([_.w4({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],h5);
_.L(h5,"yt-related-chip-cloud-renderer",function(){if(HvD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;eeC===void 0&&(eeC=document.createElement("template"));var R=eeC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);HvD=M}M=HvD;return M},{mode:2});var QF=function(){var M=_.n.apply(this,arguments)||this;M.isTwoColumns=!0;M.hideOfferModules=!1;M.watchFeedBigThumbs=_.Q("kevlar_watch_feed_big_thumbs");M.watchNextGridHideChips=_.Q("kevlar_watch_grid_hide_chips");M.eligibleToSwitchToGrid=_.Q("web_watch_eligible_to_switch_to_grid");M.disableShortsShelfHeightOverride=_.Q("web_shorts_wn_shelf_ratio_tuning");M.isWatchNextGrid=!1;M.reuseComponents=!_.Q("kevlar_watch_grid");M.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return M};
_.v(QF,_.n);_.F=QF.prototype;
_.F.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.Q("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}}};
_.F.getItemsPath=function(){return"data.results"};
_.F.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.F.created=function(){this.ytLazyListBehavior.initialCount=1};
_.F.ready=function(){_.UO(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%"})};
_.F.resultsChanged=function(){if(this.data&&this.data.results){for(var M=this.data.results,d=null,N=null,R=0;R<M.length;R++)M[R].relatedChipCloudRenderer?d=M[R].relatedChipCloudRenderer:M[R].itemSectionRenderer&&(N=M[R].itemSectionRenderer);if(d&&N)for(this.set("data.continuations",[]),M=_.q(d.content,_.KQd).chips,d=0;d<M.length;d++)if(R=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",M[d]),R.loadCached||!R.contents){R.contents=N.contents;break}}};
_.F.dataChanged=function(){var M=this,d;if((d=this.data)!=null&&d.results&&this.hasAllowedInstreamAd(this.playerData)){if(d=this.data.results.filter(function(k){return!!k.promotedSparklesWebRenderer})){for(var N=0;N<d.length;N++){var R=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",d[N]);
if(R)for(var X=0;X<R.length;X++)R[X]&&R[X].baseUrl&&_.Jk(R[X].baseUrl)}this.set("data.results",this.data.results.filter(function(k){return!k.promotedSparklesWebRenderer}))}if(d=this.data.results.filter(function(k){return!!M.getSparklesAd(k)})){d=_.V(d);
for(X=d.next();!X.done;X=d.next())if(R=N=void 0,X=(N=this.getSparklesAd(X.value))==null?void 0:(R=N.errorCommand)==null?void 0:R.loggingUrls)for(N=_.V(X),R=N.next();!R.done;R=N.next())(R=R.value)&&R.baseUrl&&_.Jk(R.baseUrl);var A,l;this.set("data.results",(A=this.data)==null?void 0:(l=A.results)==null?void 0:l.filter(function(k){return!k.adSlotRenderer}))}}};
_.F.getSparklesAd=function(M){var d,N;M=_.q((d=M.adSlotRenderer)==null?void 0:(N=d.fulfillmentContent)==null?void 0:N.fulfilledLayout,_.Z5I);return _.q(M==null?void 0:M.renderingContent,PiD)};
_.F.hasAllowedInstreamAd=function(M){M=this.get("adPlacements",M)||[];for(var d=0;d<M.length;d++){var N=this.get("adPlacementRenderer.config.adPlacementConfig",M[d]);if(N&&N.suppressDisplayAd)return!0}return!1};
_.F.computeHideUnlimitedOfferModule=function(M,d){return M&&M.offerModule&&d&&M.offerModule.unlimitedOfferModuleRenderer&&M.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(d)?!0:!1};
_.F.hideUnlimitedOfferModuleChanged=function(){var M=_.K(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");M&&(M.hidden=this.hideUnlimitedOfferModule)};
_.F.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var d;(d=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||d.forEach(function(N){N.containerType=M})}};
_.F.computeHideTvfilmOfferModule=function(M,d){var N,R;return!!((M==null?0:(N=M.offerModule)==null?0:(R=N.tvfilmOfferModuleRenderer)==null?0:R.clientShouldSuppressIfCompanionAdDisplayed)&&d&&this.hasCompanionAds(d))};
_.F.hideTvfilmOfferModuleChanged=function(){var M=_.K(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");M&&(M.hidden=this.hideTvfilmOfferModule)};
_.F.hasCompanionAds=function(M){M=this.get("adPlacements",M)||[];for(var d=0;d<M.length;d++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",M[d]))return!0;var N=void 0,R=void 0,X=void 0;if(!_.Q("web_watch_top_banner_companion_check_killswitch")&&((N=M[d])==null?0:(R=N.adPlacementRenderer)==null?0:(X=R.renderer)==null?0:X.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.F.hasSuppressedResults=function(M){return M==null?!0:M.filter(function(d){return!d.continuationItemRenderer&&!d.compactPromotedVideoRenderer&&!d.promotedSparklesWebRenderer}).length===0};
_.F.computeShowButton=function(M,d){return this.isWatchNextGrid?M:M||this.hasSuppressedResults(d)};
_.F.showButtonChanged=function(){if(this.isWatchNextGrid){var M=_.K(this.hostElement).querySelector("ytd-rich-grid-renderer");M&&this.showButton!==null&&(M.continuationShowButton=this.showButton)}else{M=_.K(this.hostElement).querySelector("yt-next-continuation");var d=_.K(this.hostElement).querySelector("ytd-continuation-item-renderer"),N=_.K(this.hostElement).querySelector("ytd-item-section-renderer");M&&(M.showButton=this.showButton);d&&(d.showButton=this.showButton);N&&(N.continuationShowButton=
this.showButton)}};
_.F.continuationTap=function(M){var d;if(((d=this.data)==null?void 0:d.continuations)!=null&&M.target.tagName==="TP-YT-PAPER-BUTTON")for(M=this.data.continuations,d=0;d<M.length;d++)M[d].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(M[d].nextContinuationData||{})};
_.F.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("shown-items-changed",this.shownItems))};
_.Hm.Object.defineProperties(QF.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.shownItems)==null||!M.some(function(d){return!!d.lockupViewModel}))}}});
QF.prototype.shownItemsChangedForBinding=QF.prototype.shownItemsChangedForBinding;QF.prototype.showButtonChanged=QF.prototype.showButtonChanged;QF.prototype.hideTvfilmOfferModuleChanged=QF.prototype.hideTvfilmOfferModuleChanged;QF.prototype.updateLockupContainerTypes=QF.prototype.updateLockupContainerTypes;QF.prototype.hideUnlimitedOfferModuleChanged=QF.prototype.hideUnlimitedOfferModuleChanged;QF.prototype.dataChanged=QF.prototype.dataChanged;QF.prototype.resultsChanged=QF.prototype.resultsChanged;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],QF.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.st.YtNextContinuationBehavior),_.a("design:type",Object)],QF.prototype,"ytNextContinuationBehavior",void 0);
_.G([_.S(_.j1),_.a("design:type",Object)],QF.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],QF.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"playerData",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],QF.prototype,"autoFill",void 0);_.G([_.H({value:60}),_.a("design:type",Number)],QF.prototype,"targetFramerate",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"isTwoColumns",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"hideOfferModules",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"shownItems",void 0);_.G([_.H({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.a("design:type",Boolean)],QF.prototype,"hideUnlimitedOfferModule",void 0);
_.G([_.H({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.a("design:type",Boolean)],QF.prototype,"hideTvfilmOfferModule",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"watchFeedBigThumbs",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"watchNextGridHideChips",void 0);_.G([_.H(),_.a("design:type",Object)],QF.prototype,"eligibleToSwitchToGrid",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"disableShortsShelfHeightOverride",void 0);_.G([_.H({selector:_.KX}),_.a("design:type",Object)],QF.prototype,"isGridViewEnabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],QF.prototype,"showMoreButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],QF.prototype,"isWatchNextGrid",void 0);
_.G([_.H({computed:"computeShowButton(showMoreButton, data.results)"}),_.a("design:type",Boolean)],QF.prototype,"showButton",void 0);_.G([_.NS("data.results.*"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"resultsChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"dataChanged",null);
_.G([_.xB("hideUnlimitedOfferModule"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"hideUnlimitedOfferModuleChanged",null);_.G([_.z("isGridViewEnabled","containsLockupViewModel","data"),_.H({reflectToAttribute:!0}),_.a("design:type",Number),_.a("design:paramtypes",[])],QF.prototype,"lockupContainerType",null);
_.G([_.xB("lockupContainerType","data"),_.a("design:type",Function),_.a("design:paramtypes",[Number]),_.a("design:returntype")],QF.prototype,"updateLockupContainerTypes",null);_.G([_.xB("hideTvfilmOfferModule"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"hideTvfilmOfferModuleChanged",null);_.G([_.xB("showButton"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"showButtonChanged",null);
_.G([_.xB("shownItems"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],QF.prototype,"shownItemsChangedForBinding",null);_.G([_.z("shownItems"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],QF.prototype,"containsLockupViewModel",null);
_.L(QF,"ytd-watch-next-secondary-results-renderer",function(){if(rnT===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);rnT=M}M=rnT;return M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Xob={};
_.Xob.YtdWatchBehavior=[_.E.YtRendererBehavior,_.z1.YtPlayerListenerBehavior,_.L$.YtRendererstamperBehavior,_.tK.YtActionHandlerBehavior,_.hF.YtPageBehavior,_.En.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.KF("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Q("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 _.KF("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Q("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)"},
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, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.ZR("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ZR("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Q("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Q("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Q("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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)"},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 _.Q("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Q("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var M={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},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:_.qD(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.qD(["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"||_.Q("swa_prov_panels_ks")?M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},M.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return M},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.Q("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.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;_.Q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Q("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.taC(function(){return _.Hi(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.Q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Xz;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;_.Q("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.Q("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));_.Q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ux(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.Q("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.Q("kevlar_watch_while_v2")&&!_.Q("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.YP(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var d=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var N;(N=this.watchController)==null||_.H$(N,this.data)}else this.data=M;this.playlist&&_.qi({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.v1("nw");this.loading=!1;_.gL(_.IQ,function(){d.initDclkstatus_();var R,X=((R=d.player)==null?void 0:R.getVideoData().cpn)||"";_.oqD(function(A,l){_.tw4(A,l,X)})})},
onPageLoadWithSameData_:function(){_.Q("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;if(_.Q("kevlar_watch_frame0_loading_state")){var d,N,R;M=(d=this.loadingData)==null?void 0:(N=d.endpoint)==null?void 0:(R=N.watchEndpoint)==null?void 0:R.videoId;var X;M&&(X="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.K(this.hostElement).querySelector("#player").style.backgroundImage=X?"url("+X+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.K(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var d,N;(N=(d=this.watchMetadata).updateSentimentBarWidth)==
null||N.call(d);var R,X;(X=(R=this.watchMetadata).resize)==null||X.call(R)}_.Q("kevlar_watch_frame0_loading_state")&&(_.K(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.CL(d,!1):_.vh(new _.WJ("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.xP(d):_.vh(new _.WJ("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(M){var d=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.IQ.addLowPriorityJob(function(){d.onWindowResized_(_.lx(!0))})},
updateTheaterModeState_:function(M){if(!_.Q("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.th4()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var M=this.theater;_.Q("external_fullscreen")&&this.fullscreen&&(M=!0);M=M?_.K(this.hostElement).querySelector("#player-full-bleed-container"):_.K(this.hostElement).querySelector("#player-container-inner");var d=this.getPlayerContainer(),N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip");d.parentElement!==M&&(N&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Hi(this).appendTo(M,d),M.appendChild(_.K(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.h().resolve(_.et).deactivate(),2);M.updatePlayerLocation();_.Vy(d)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var d=this.getCinematicsLocationContainer();M.parentElement!==d&&d.appendChild(M);var N;(N=this.watchController)==null||_.O1d(N)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.K(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.K(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(M,d){var N=document.documentElement.hasAttribute("dark"),R=N&&_.Q("web_cinematic_theater_mode"),X=N&&_.Q("web_cinematic_fullscreen");N=!N&&this.cinematicLightTheme;return M&&R||d&&X||(d||M)&&N},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M=this,d;(d=this.watchController)==null||_.H$(d,this.data);_.Q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.h().resolve(_.oL).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,_.Q("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.IQ.addLowPriorityJob(function(){_.Eu(M.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Q("web_watch_start_chat_in_theater_mode")){var N,R,X;if((N=this.data)==null?0:(R=N.contents)==null?0:(X=R.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,l;((A=this.data)==null?0:(l=A.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(M){var d;(d=this.watchController)==null||_.eb(d,this.playerData);M&&M.playabilityStatus&&(d=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),d&&!M||_.bM(this,function(){_.v1("pbu")}));
this.setPlayerAds_();_.Eu(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(M,d){if((_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip"))&&this.playerData&&d)return this.playerData.videoDetails},
watchPageActiveChanged_:function(M){_.iY().dispatch(_.HTP(this.active));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new _.bf(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.eb(this.watchController,this.playerData);this.data&&_.H$(this.watchController,this.data);_.Q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var d=_.Hi(this);_.Q("kevlar_disable_prepare_player")||d.preparePlayer();
_.Q("kevlar_watch_flexy_playlist_manager")||_.h().resolve(_.oL).setPlayer(d);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();d={"--ytd-watch-flexy-scrollbar-width":_.pl()+"px"};this.is==="ytd-watch-grid"&&(d["--ytd-watch-flexy-sidebar-width"]=_.zX+"px",d["--ytd-watch-grid-horizontal-page-margins"]=_.J5+"px",d["--ytd-watch-grid-columns-top-margins"]=_.sve+"px",d["--ytd-watch-grid-min-player-height-medium"]="360px");!_.ZR("kv_pl_mx_sz_ks")&&_.ZR("kevlar_watch_max_player_width")&&
(d["--ytd-watch-flexy-max-player-width-wide-screen"]=_.rRd+"px");_.ZR("kevlar_watch_flexy_metadata_height")&&(d["--ytd-watch-flexy-space-below-player"]=_.K_e+"px");this.safeUpdateStyles(d);_.Q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Bo(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
_.Q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var M=_.pl(),d=_.c9+M,N=d;this.fixedPanels&&(d+=_.zX);var R=657+M;M=1327+M;_.K(this.hostElement).querySelector("#two-column-query").query="(min-width: "+d+"px)";_.K(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(d+"px) and (max-width: ")+(M+"px)");_.K(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");_.K(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+N+"px)"},
calculateCurrentPlayerSize_:function(){var M=_.K(this.hostElement).querySelector("#miniplayer-bar").firstChild,d=this.squeezeback&&!_.Q("web_watch_squeezeback_player_size_killswitch");return M&&M.active||this.theater||_.Q("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||d||!this.active||!this.windowSize_?new _.R8(NaN,NaN):_.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.tw(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.lx());_.Q("browse_skeleton_removal_on_watch_killswitch")||_.KF("IS_SHELL_LOAD")&&_.zlq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var d=_.Hi(this);d.addEventListener("yt-player-updated",_.ux(this,this.onPlayerUpdated_));d.getPlayerPromise().then(function(N){M.playerApiReady_(N)});
_.Q("kevlar_watch_flexy_playlist_manager")||(d=_.h().resolve(_.oL),_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&d.addEventListener("yt-navigate",_.ux(this,this.onYtNavigate_)),d.setPlaylistComponent(_.K(this.hostElement).querySelector("#playlist")),d.addEventListener("yt-playlist-data-updated",_.ux(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.IQ.addLowPriorityJob(function(){_.YP(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Hi(this).removeEventListener("yt-player-updated",_.ux(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Q("kevlar_watch_flexy_playlist_manager")){var M=_.h().resolve(_.oL);_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.ux(this,this.onYtNavigate_));
M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.ux(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.YP(this.hostElement,"yt-autonav-pause-player",!1);M=_.Uu();_.Q("kevlar_exit_fullscreen_leaving_watch")&&M&&_.uX(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,d){d.hasComments?d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):d.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,d){this.player&&(d?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.m5("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.K(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.K(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Q("kevlar_unified_player")||_.Q("kevlar_player_new_bootstrap_adoption"))&&_.Gf()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,d){d=d===void 0?!0:d;_.Uu()&&_.Q("external_fullscreen")&&_.uX(document.documentElement);this.theaterRequested_=M;d&&_.kY("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ZI(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.YP(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(M){_.OD(M,typeof this.player),this.player&&_.OD(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.ZI(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,d){return this.loading?d:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.youThereRenderer&&_.U5P(this.youThereManager_,d.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var d=this.youThereManager_;_.aQ()<M.lowEngagementThresholdMs||_.Y4C(d,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ZI(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,d,N){return!!M&&!this.isVideoPlayable_(M,N)&&!d},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,d){if(!M)return!1;var N=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var X;d=d==null?void 0:(X=d.playerOverlayRenderer)==null?void 0:X.gatedActionsOverlayRenderer;return!!N||!!R||!!M||!!d},
hasWatchNextResponseErrorRenderer:function(M){var d=this.getPageContents(M),N,R,X,A,l;return!(M==null?0:(N=M.contents)==null?0:(R=N.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((X=d[0])==null?0:(A=X.itemSectionRenderer)==null?0:(l=A.contents[0])==null?0:l.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,d,N){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d),X=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];X=_.Q("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&X.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);A==void 0&&(A=!0);!N||this.isVideoPlayable_(M,this.getPlayerOverlays_(d))||
R||X||!A||_.h().resolve(_.oL).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.zI$()},
onPlayerFeedbackStartRequest_:function(M){_.ZI(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.ZI(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,d,N,R,X,A,l,k,T=((M=this.data)==null?NaN:(d=M.contents)==null?NaN:(N=d.twoColumnWatchNextResults)==null?NaN:(R=N.secondaryResults)==null?NaN:(X=R.secondaryResults)==null?NaN:(A=X.offerModule)==null?NaN:(l=A.tvfilmOfferModuleRenderer)==null?NaN:(k=l.actionButtons)==null?NaN:k.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(T>=0?T:0)+".buttonRenderer."];d=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(N=d.next();!N.done;N=d.next())for(N=N.value,R=_.V(M),X=R.next();!X.done;X=R.next())if(X="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+N+X.value,X=this.get(X+"navigationEndpoint",this.data)||this.get(X+"serviceEndpoint",this.data)||this.get(X+"command",this.data)){_.Zc(X,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.YP(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.YP(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.iY().dispatch(_.NVm(M))},
onPlayerSubscribe_:function(M){_.ZI(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.ZI(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.ZI(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(M){return!_.Q("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.Q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.Q("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var M,d,N,R;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:R.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Q("swatcheroo_pbs_load_grid")&&!_.Q("swatcheroo_provide_all_data_on_scheduled_job")){_.IQ.cancelJob(this.setRichGridJobId_);var M,d,N,R,X,A,l;this.setRichGridRendererData((M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:(X=R.secondaryResults)==null?void 0:(A=X.results)==null?void 0:(l=A[0])==null?
void 0:l.richGridRenderer)}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,d=(M=this.data)==null?void 0:M.engagementPanels;if(d==null?0:d.length){M=null;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if(((R=N.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){M=N;break}}var X,A,l;M=(X=M)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:(l=A.content)==null?void 0:l.structuredDescriptionContentRenderer;if(M==null?0:M.items){X=
[];A=_.V(M.items);for(l=A.next();!l.done;l=A.next()){l=l.value;if(!_.Q("sd_horizontal_list_show_nav_killswitch")){var k=R=N=d=M=void 0,T=void 0,W=(M=l.horizontalCardListRenderer)==null?void 0:(d=M.header)==null?void 0:(N=d.richListHeaderRenderer)==null?void 0:(R=N.navigationButton)==null?void 0:(k=R.buttonRenderer)==null?void 0:(T=k.command)==null?void 0:T.commandExecutorCommand;W&&W.commands&&(W.commands=W.commands.filter(function(w){return!_.q(w,_.aU4)}))}l.expandableVideoDescriptionBodyRenderer||
l.videoDescriptionHeaderRenderer||X.push(l)}return{items:X}}}},
constructWarning_:function(M){return{text:_.ep(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.YP(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var d=this.getScrollTop()>0;this.gestures_&&(d?this.gestures_.detach():this.gestures_.attach());d!==this.showFullerscreenEdu_&&_.Q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=d,_.Hi(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.YP(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.IQ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.gL(_.IQ,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.Q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.v1("cmi");_.IQ.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.V(M);for(var d=M.next();!d.done;d=M.next())if(d=d.value,this.get("itemSectionRenderer.sectionIdentifier",d)==="comment-item-section"){this.comments=d.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.YP(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.v1("cmc")},
doRemoveComments_:function(){this.comments={};_.Q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.IQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.IQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,d){var N=_.q(d.endpoint,_.nL);N&&(!(d=this.get("data.currentVideoEndpoint.watchEndpoint"))||N.videoId!==d.videoId||N.playlistId&&N.playlistId!==d.playlistId||N.index!==void 0&&N.index!==d.index||typeof N.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.Hi(this).getPlayerPromise().then(function(R){var X=N.startTimeSeconds;R.seekTo(X);R.wakeUpControls();X<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.PPD();"t"in M&&(M=_.S4C(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var d,N;(M=_.HD(M==null?void 0:(d=M[0])==null?void 0:(N=d.videoPrimaryInfoRenderer)==null?void 0:N.title))&&_.YP(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.YP(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,d,N){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===N&&(N=R.list,_.Q("polymer_enable_mdx_queue")&&N&&N.startsWith("RQ")&&(N=void 0),R.video_id!==M||N!=d)){var X;_.Q("kevlar_player_watch_endpoint_navigation")?X=_.X4j(_.r5r(M,d)):X=this.buildWatchEndpoint_(M,d);_.YP(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,d,N){return _.UN(M,d,N)},
initDclkstatus_:function(){_.J5b()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var d=M.querySelector("#primary-info"),N=M.querySelector("#secondary-info"),R=M.querySelector("#related");d&&_.K(this.hostElement).querySelector("#info-skeleton").appendChild(d);N&&_.K(this.hostElement).querySelector("#meta-skeleton").appendChild(N);R&&(_.K(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.l_(M)}},
handlePlayerUpdated_:function(){_.Hi(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,d){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof d!=="undefined"){var N=this.watchNextSkeletonEl_.children,R=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,N.length);d||(R=0,M=N.length);for(d=R;d<M;d++)N[d].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.Q("external_fullscreen")||_.ZI(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var d=_.Hi(this);d.getPlayerPromise().then(function(N){N.setFauxFullscreen(!!_.Uu())});
this.updateFullBleedElementLocations();M&&(d.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,d){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!d},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,d){return d&&!!M},
computeResponseHasComments:function(M){var d,N,R,X,A;return!!(M==null?0:(d=M.contents)==null?0:(N=d.twoColumnWatchNextResults)==null?0:(R=N.results)==null?0:(X=R.results)==null?0:(A=X.contents)==null?0:A.some(function(l){var k;return(l==null?void 0:(k=l.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,d,N,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!M&&!!Object.keys(M).length&&!d},
identity:_.z6,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var d=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.Hi(this).getPlayerPromise().then(function(N){var R=N.getPlayerState();R!==5&&R!==0&&(N=1/N.getVideoAspectRatio(),d.videoHeightToWidthRatio_!==N&&(d.videoHeightToWidthRatio_=N))})},
schedulePlayerSizeUpdate_:function(M){var d=this,N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip"),R=function(){if(d.watchMetadata){var X,A;(A=(X=d.watchMetadata).resize)==null||A.call(X)}_.Hi(d).getPlayerPromise().then(function(l){if(_.Q("kevlar_set_internal_player_size")){if(!N||!d.isMiniplayerActive()){var k=d.calculateCurrentPlayerSize_();l.setInternalSize(k.width,k.height)}}else l.setSize(NaN,NaN);_.Q("kevlar_watch_while")&&d.updateWatchWhileScrollThreshold_()})};
M?R():_.m$(_.IQ,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.q(M,_.LKi).survey)},
onDownloadedVideoDeleted:function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(!d.active||(N=d.playerData)==null||!N.offlineState||d.videoId!==M)return X.return();(R=d.player)==null||R.stopVideo();_.$O().navigatingAwayFromWatchDeletedVideo=!0;_.Zc(_.Uz2,d.hostElement);return _.D(X,_.$O().navigationFinishPromise,2)}_.$O().navigatingAwayFromWatchDeletedVideo=!1;_.Vy(X)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.Ju(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.K(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var d=this.windowSize_.height>=624,N=this.active?this.getScrollTop():0;!M.active&&d&&N>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!d||N<this.watchWhileScrollThreshold_&&!_.Uu())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var M=_.K(this.hostElement).querySelector("#secondary-inner");if(M){var d=_.K(this.hostElement).querySelector("#below"),N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.defaultTwoColumnLayout?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}},
isTwoColumnsChanged_:function(M,d){if(M!==!0||d!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(M=_.K(this.hostElement).querySelector("#secondary-inner"))){d=_.K(this.hostElement).querySelector("#below");var N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.isTwoColumns_?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}else{M=!_.Q("live_chat_over_engagement_panels");d=_.K(this.hostElement).querySelector("#chat-container");
N=_.K(this.hostElement).querySelector("#panels");var X=_.K(this.hostElement).querySelector("#alerts");R=_.K(this.hostElement).querySelector("#playlist");var A=_.K(this.hostElement).querySelector("#related"),l=_.K(this.hostElement).querySelector("#donation-shelf"),k=_.K(this.hostElement).querySelector("#comments");this.isTwoColumns_?(X=_.K(this.hostElement).querySelector("#secondary-inner"),M&&X.appendChild(N),X.appendChild(R),_.Q("web_watch_theater_chat")||X.appendChild(d),M||X.appendChild(N),X.appendChild(l),
X.appendChild(A)):(M&&_.ox(N,X),_.ox(R,X),_.Q("web_watch_theater_chat")||_.ox(d,X),M||_.ox(N,X),_.ox(l,X),k&&_.ox(A,k));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.Q("web_watch_theater_chat")){var M=_.K(this.hostElement).querySelector("#chat-container"),d=this.theater&&!this.fullscreen||_.Q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&d?_.Q("web_watch_theater_chat_beside_player")?(d=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.panelsBesidePlayer=!0):
_.Q("web_watch_theater_fixed_chat")&&(d=_.K(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.fixedPanels=!0):(_.Q("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Q("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),d=_.K(this.hostElement).querySelector("#playlist"),M&&d?_.rl(M,d):_.vh(new _.WJ("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!d})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,d){return _.Q("sw_metadata_vis_toggle_ks")?!0:!!M||!!d},
computeForceDarkPanelTheme:function(M){return _.Q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.UO(this.hostElement,M)}catch(d){_.vh(d)}},
videoHeightToWidthRatioChanged_:function(M,d){d&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Hi(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Hi(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Z19(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var d=_.F5(M)||0;_.X5(M,d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.F5("yt-fullerscreen-edu-button-click-count")||0,d=_.F5("yt-fullerscreen-edu-button-shown-count")||0,N=_.ZR("external_fullscreen_button_shown_threshold"),R=M>=_.ZR("external_fullscreen_button_click_threshold")||d>=N;_.Hi(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,d){return d},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.h().resolve(_.oL).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var M=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.IQ.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.IQ.addLowPriorityJob(function(){M.fullHeightPanelPositionUpdateJobId=0;var d=_.K(M.hostElement).querySelector("#secondary"),N=_.K(M.hostElement).querySelector("#fixed-secondary");d=d.getBoundingClientRect();var R=d.width;M.swatcherooSqueezeback&&
(R+=_.J5);if(M.swatcherooSqueezeback){var X=_.K(M.hostElement).querySelector("#squeezeback-constraining-container");X.style.width=R+"px";X.style.flex="0 0 "+R+"px"}N.style.width=R+"px";N.style.left=d.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.IQ.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.IQ.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var d;!M.isTwoColumns_||M.theater||M.fullscreen?d=460:d=M.calculateNormalPlayerSize_().height;var N=d+"px";_.Q("live_chat_taller_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Q("live_chat_medium_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Q("live_chat_scaled_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":d+"px","--ytd-watch-flexy-chat-max-height":N,"--ytd-watch-flexy-structured-description-max-height":d+"px","--ytd-watch-flexy-comments-panel-max-height":d+"px","--ytd-comments-engagement-panel-content-height":d+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var M=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.Q("web_watch_flexy_adjust_sidebar_width"))&&!_.Q("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.IQ.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.IQ.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;if(M.isTwoColumns_){var d=_.c5P(M.windowSize_,M.calculateNormalPlayerSize_().width);d!==M.currentSidebarWidth&&(M.currentSidebarWidth=
d,M.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":d+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Ni(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var d=_.K(this.hostElement).querySelector("#engagement-panel-scrim");M?d.addEventListener("tap",_.ux(this,this.onEngagementPanelScrimClick_)):d.removeEventListener("tap",_.ux(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var d=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var N=this.getPageScrollingElement(),R=this.getScrollTop(),X=R+N.clientHeight-56;if(d<R+56)d-=56;else if(M>X)d=M-N.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.Q("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.Xt().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,d,N){this.active&&this.trackEngagementPanelVisibility&&!_.i1d.includes(N)&&(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(N),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.Eu(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),d!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(N),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeFullBleedPlayer:function(M,d){return M||d},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,d){return!M&&d},
updatePanelsLocation:function(){if(_.Q("web_watch_enable_fs_squeezeback_panels")){var M=_.K(this.hostElement).querySelector("#below"),d=_.K(this.hostElement).querySelector("#panels"),N=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),R=_.K(this.hostElement).querySelector("#secondary-inner");this.fullscreen?N.appendChild(d):this.isTwoColumns_?_.yF(R,d):M.appendChild(d)}},
swatcherooUpdatePanelsLocation:function(M,d,N,R,X,A){if(this.is==="ytd-watch-grid"){d=M&&!d;this.swatcherooSplitScroll&&(d?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));N=_.K(this.hostElement).querySelector("#panels");var l=_.K(this.hostElement).querySelector("#playlist"),k=_.K(this.hostElement).querySelector("#fixed-secondary"),T=_.K(this.hostElement).querySelector("#fixed-below"),
W=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.K(this.hostElement).querySelector("#chat-container");A&&(M?k.appendChild(N):T.appendChild(N));X?M?k.appendChild(w):T.appendChild(w):_.rl(w,W);R?M?k.appendChild(l):T.appendChild(l):_.rl(l,W);this.swatcherooSplitScroll&&(M=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#columns"),X=_.K(this.hostElement).querySelector("#fixed-columns-secondary"),d?X.appendChild(M):
R.appendChild(M))}},
computeMetadataSkinnyMode:function(M,d,N){return this.is!=="ytd-watch-grid"?!1:M?N:d},
computeWatchWhilePanelsActive:function(M,d){return M||d},
computeNoBorderOnChat:function(M){return _.Q("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,d){return M&&!d},
computePanelExpanded:function(M,d,N){return M||d||N},
computeSqueezeback:function(M,d){if(_.Q("web_watch_enable_fs_squeezeback_panels"))return M&&d},
computeSwatcherooSqueezeback:function(M,d,N){return this.is!=="ytd-watch-grid"||_.Q("ww_squeezeback_killswitch")?!1:M&&d&&N},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(M){_.Hi(this).getPlayerPromise().then(function(d){var N;(N=d.changeMarkerVisibility)==null||N.call(d,_.q(M,_.t7).isVisible||!1,_.q(M,_.t7).entityKeys||[],_.q(M,_.t7).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.iY().dispatch(_.nq4(M.detail))},
onSetPlaylistCollapsed:function(M){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!M)},
provideRenderingData:function(M,d){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=d;break;case "PRIMARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=d);this.videoPrimaryInfoRendererValue=d==null?void 0:d.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=d);this.videoSecondaryInfoRendererValue=d==null?void 0:d.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
d;break;case "CLARIFICATION":this.clarifyBoxValue=d;break;case "LIVE_CHAT":this.conversationBar=d;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=d;break;case "PLAYLIST":this.externalPlaylistData_=d!=null?d:{};break;case "MERCH_SHELF":this.merchShelfValue=d==null?void 0:d.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=d;break;case "TICKET_SHELF":this.ticket=d;break;case "OFFER_MODULE":this.offerModule=d;break;case "LIMITED_STATE":this.limitedStateValue=
d;break;case "DONATION_SHELF":this.donation=d;break;case "ALERTS":this.alertsValue=d;break;case "COMMENTS":this.comments=d;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=d;break;case "ENGAGEMENT_PANELS":this.engagementPanels=d;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=d;break;case "RICH_GRID_RENDERER":this.richGridRendererData=d;break;case "EXPANDABLE_METADATA":this.expandableMetadata=d;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
d}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.h().resolve(_.et).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var uOe;_.UBb=function(M){return M.shorts.isShortsActive};
_.Ckr=function(M){return M.findIndex(function(d){return uOe.indexOf(d.tagName)>-1})>-1};
_.xBY=function(M){return _.YS({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:M}})};
_.YdT=function(){var M=_.h().resolve(_.YO);_.t2i(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(M.isFullscreenEnabled()?_.uX(document.documentElement):_.qKS(document.documentElement))};
uOe=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.ip=new Map;_.ip.set(32,59972);_.ip.set(27,50765);_.ip.set(70,60102);_.ip.set(76,60221);_.ip.set(77,60222);_.ip.set(74,60223);_.ip.set(84,60224);_.ip.set(38,61941);_.ip.set(40,61942);_.ip.set(73,62521);_.ip.set(67,62522);_.ip.set(80,63390);_.ip.set(78,63397);_.ip.set(75,59972);_.ip.set(188,63385);_.ip.set(190,63384);_.ip.set(36,63387);
_.ip.set(35,63386);_.ip.set(37,63388);_.ip.set(39,63389);_.ip.set(79,63423);_.ip.set(87,63424);_.ip.set(107,63426);_.ip.set(109,63425);_.ip.set(65,63428);_.ip.set(83,63430);_.ip.set(68,63429);_.ip.set(221,63431);_.ip.set(219,63432);_.ip.set(97,63439);_.ip.set(98,63440);_.ip.set(99,63441);_.ip.set(100,63442);_.ip.set(101,63443);_.ip.set(102,63444);_.ip.set(103,63445);_.ip.set(104,63446);_.ip.set(105,63447);_.fn=new Map;_.fn.set(80,63390);_.fn.set(78,63397);_.fn.set(188,63400);_.fn.set(190,63401);
_.fn.set(191,60765);_.fn.set(13,247917);_.Ln=new Map;_.t0=new Map;
}catch(e){_._DumpException(e)}
try{
var ROD,Awi,VMr,luD;_.Et9=function(M){return M.ui.guideIsVisibleButNotPersistent};
_.MMq=function(M){return M.ui.tabGesturesIsActive};
_.dy$=function(){var M=_.El("service_worker_scope");try{return navigator.serviceWorker.getRegistration(M)}catch(d){return Promise.reject(d)}};
_.NFi=function(M){return!(!M||!M.pushManager)};
ROD=function(){return _.dy$().then(_.NFi).catch(function(){return!1})};
_.XTe=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?ROD():Promise.resolve(!1)};
_.Fi9=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Awi=function(){var M,d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,_.mT.getInstance(),2);case 2:M=R.yieldResult;if(!M){d=void 0;R.jumpTo(3);break}return _.D(R,M.get("lmqf"),4);case 4:d=R.yieldResult;case 3:switch((N=d)||(N="SD"),N){case "HD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
VMr=function(M){var d,N,R;return _.B(function(X){if(X.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.Q("disable_av1_setting")){var A=window.localStorage["yt-player-av1-pref"];A=A==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":A==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else A="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(d=M===A)return X.jumpTo(2);R=N=M;return _.D(X,Awi(),3)}X.nextAddress!=2&&(d=R===X.yieldResult);return X.return(d)})};var $yG;var BFJ=_.Qg.IronButtonState,kti=(0,_.p7)(HTMLElement);
_.kQ({_template:function(){if($yG!==void 0)return $yG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;luD===void 0&&(luD=document.createElement("template"));var R=luD;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return $yG=M},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[BFJ,_.mQ,_.qm,_.Oj],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(M){var d=(0,_.VG)(this);d.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:M});d.shadowRoot.appendChild(M);return kti.prototype._attachDom.call(this,M)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.Wl(this.$.content).getDistributedNodes(),d=0,N=M.length;d<N;d++)if(M[d].nodeType===Node.ELEMENT_NODE)return M[d]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var d="";M?d=M.label||M.getAttribute("label")||M.textContent.trim():d="";this.value=d;this._setSelectedItemLabel(d)},
_computeMenuVerticalOffset:function(M,d){return d?d:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",d=this.contentElement;d&&d.setAttribute("aria-expanded",M)}});_.oE=new _.x("navigateAction");var TFq=new _.x("formRenderer");var rw=function(){var M=_.MS.apply(this,arguments)||this;M.showInput=!1;return M};
_.v(rw,_.MS);_.F=rw.prototype;_.F.detached=function(){this.showInput&&window.removeEventListener("click",_.ux(this,this.closeOnOutsideClick_))};
_.F.stopPropagation_=function(M){this.showInput&&M.stopPropagation()};
_.F.closeOnOutsideClick_=function(M){this.closeOnOutsideClickCondition(M)&&(this.showInput=!1,window.removeEventListener("click",_.ux(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.F.closeOnOutsideClickCondition=function(){return!0};
_.F.closeOnOutsideClickHandler=function(){};
_.F.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ux(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.F.openOnClickHandler=function(){};
_.F.showInputChanged=function(){};
_.F.setShowInput=function(M){this.showInput=M};
rw.prototype.setShowInput=rw.prototype.setShowInput;rw.prototype.showInputChanged=rw.prototype.showInputChanged;rw.prototype.openOnClickHandler=rw.prototype.openOnClickHandler;rw.prototype.openOnClick_=rw.prototype.openOnClick_;rw.prototype.closeOnOutsideClickHandler=rw.prototype.closeOnOutsideClickHandler;rw.prototype.closeOnOutsideClickCondition=rw.prototype.closeOnOutsideClickCondition;rw.prototype.closeOnOutsideClick_=rw.prototype.closeOnOutsideClick_;rw.prototype.stopPropagation_=rw.prototype.stopPropagation_;
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],rw.prototype,"showInput",void 0);_.G([_.C3("click"),_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],rw.prototype,"stopPropagation_",null);_.G([_.xB("showInput"),_.a("design:type",Function),_.a("design:paramtypes",[Boolean]),_.a("design:returntype")],rw.prototype,"showInputChanged",null);rw=_.G([_.d4()],rw);_.Dyd=[rw.prototype];var g49;var WiP;var Kl=function(){return _.n.apply(this,arguments)||this};
_.v(Kl,_.n);_.F=Kl.prototype;_.F.computePreselectedOption=function(M,d){return d===this.itemSelected_?M:void 0};
_.F.dataChanged_=function(){var M=this;this.preselectedSubreason=this.itemSelected_=-1;var d;(d=this.data)!=null&&d.key&&_.bM(this,function(){var N,R=Number((N=M.data)==null?void 0:N.key);!Number.isNaN(R)&&(M.itemSelected_=R,N=(N=(M.data.items||[])[R])&&N.optionSelectableItemRenderer&&N.optionSelectableItemRenderer.preselectedIndex)&&(M.preselectedSubreason=N)})};
_.F.isSubReasonHidden_=function(M,d){return M!=d};
_.F.onTopItemSelected_=function(M,d){for(var N=_.K(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),R=0,X=N.length;R<X;R++)N[R].select(0);_.ZI(this.hostElement,"yt-report-form-update",[d.item.value]);M.stopPropagation()};
_.F.onItemSelected_=function(M,d){_.ZI(this.hostElement,"yt-report-form-update",[d.item.value]);M.stopPropagation()};
_.F.getItem_=function(M){return M.serviceItem?M.serviceItem:M.navigationItem?M.navigationItem:M.optionSelectableItemRenderer?M.optionSelectableItemRenderer:null};
_.F.computeText_=function(M){return(M=this.getItem_(M))?this.ytRendererBehavior.getSimpleString(M.text):null};
_.F.validate=function(){return this.itemSelected_!==-1};
_.F.computeAriaLabel_=function(M){var d=_.HD(M.text);(M=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label)&&(d+=". "+M);return d};
_.F.computeItemSelected_=function(M){return M};
_.F.preventSelection_=function(M){M.stopPropagation();this.tooltipTapped=!0};
_.F.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.F.updateItemSelectedFromBinding=function(M){this.itemSelected_=M.detail.value};
_.F.save=function(){var M;this.validate()&&(M=this.data)!=null&&M.items&&(M=this.data.items[this.itemSelected_],M!=null&&M.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(M.optionSelectableItemRenderer.submitEndpoint)||_.dU(this.hostElement,[M.optionSelectableItemRenderer.submitEndpoint])))};
Kl.prototype.onPaperRippleTransitionEnd_=Kl.prototype.onPaperRippleTransitionEnd_;Kl.prototype.dataChanged_=Kl.prototype.dataChanged_;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Kl.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kl.prototype,"data",void 0);_.G([_.H({value:-1}),_.a("design:type",Number)],Kl.prototype,"itemSelected_",void 0);
_.G([_.H({computed:"computeItemSelected_(itemSelected_)"}),_.a("design:type",Number)],Kl.prototype,"value",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Kl.prototype,"restoreFocusOnClose",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Kl.prototype,"tooltipTapped",void 0);_.G([_.H({value:-1}),_.a("design:type",Number)],Kl.prototype,"preselectedSubreason",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kl.prototype,"dataChanged_",null);_.G([_.C3("transitionend"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kl.prototype,"onPaperRippleTransitionEnd_",null);Kl=_.G([_.w4({is:"yt-options-renderer",disableElementRegistration:!0})],Kl);
_.L(Kl,"yt-options-renderer",function(){if(WiP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;g49===void 0&&(g49=document.createElement("template"));var R=g49;N.call(d,R.content.cloneNode(!0),M.content.firstChild);WiP=M}M=WiP;return M},{mode:2});var wTr;var pTY;var my4;var hOJ;var Q8r;var qqP;var y8=function(){return _.n.apply(this,arguments)||this};
_.v(y8,_.n);y8.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
y8.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
y8.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.Mi(this.hostElement,"yt-share-panel-can-select-contact-action"))M&&M.detail&&(M.detail.x||M.detail.y)&&_.K(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:M?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ZI(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.G([_.H({observer:"onDataChanged"}),_.a("design:type",Object)],y8.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.a("design:type",String)],y8.prototype,"componentTitle",void 0);_.G([_.Z3("#thumbnail"),_.a("design:type",Object)],y8.prototype,"thumbnail",void 0);y8=_.G([_.w4({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],y8);
_.L(y8,"yt-enrolled-contact-renderer",function(){if(qqP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Q8r===void 0&&(Q8r=document.createElement("template"));var R=Q8r;N.call(d,R.content.cloneNode(!0),M.content.firstChild);qqP=M}M=qqP;return M},{mode:2});var IuC;var v4r;var JH=function(){return _.n.apply(this,arguments)||this};
_.v(JH,_.n);JH.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
JH.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
JH.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.Mi(this.hostElement,"yt-share-panel-can-select-contact-action"))M&&M.detail&&(M.detail.x||M.detail.y)&&_.K(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:M?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ZI(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.G([_.H({observer:"onDataChanged"}),_.a("design:type",Object)],JH.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.a("design:type",String)],JH.prototype,"componentTitle",void 0);_.G([_.Z3("#thumbnail"),_.a("design:type",Object)],JH.prototype,"thumbnail",void 0);JH=_.G([_.w4({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],JH);
_.L(JH,"yt-suggested-contact-renderer",function(){if(v4r===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;IuC===void 0&&(IuC=document.createElement("template"));var R=IuC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);v4r=M}M=v4r;return M},{mode:2});var cK=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-share-panel-reset-action":"onReset"};return M};
_.v(cK,_.n);cK.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"}}}}}};
cK.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ZI(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
cK.prototype.onReset=function(){for(var M=_.K(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),d=M.length-1;d>=0;d--)M[d].classList.toggle("selected")};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],cK.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({observer:"onDataChanged"}),_.a("design:type",Object)],cK.prototype,"data",void 0);
cK=_.G([_.w4({is:"yt-contact-section-renderer",disableElementRegistration:!0})],cK);
_.L(cK,"yt-contact-section-renderer",function(){if(hOJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;my4===void 0&&(my4=document.createElement("template"));var R=my4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);hOJ=M}M=hOJ;return M},{mode:2});var Sy=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return M};
_.v(Sy,_.n);_.F=Sy.prototype;_.F.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"}}}};
_.F.onYtRefreshFormCommand=function(M){var d;(M=_.q((d=_.q(M,_.EsV))==null?void 0:d.formRenderer,TFq))&&this.set("data",M)};
_.F.reset=function(){var M=_.K(this.hostElement).querySelector("#fields").children;M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.reset&&d.reset()};
_.F.getForm=function(){var M={},d=_.K(this.hostElement).querySelector("#fields").children;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;if(!N.validate())return null;M[N.data.key]=N.value}return M};
_.F.submitFormFields=function(){if(this.fields)for(var M=_.V(this.fields),d=M.next();!d.done;d=M.next())d=d.value,d.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?d.save():d.nodeName==="YT-OPTIONS-RENDERER"&&d.save()};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Sy.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Sy.prototype,"data",void 0);_.G([_.EO("#fields > *"),_.a("design:type",Array)],Sy.prototype,"fields",void 0);
Sy=_.G([_.w4({is:"yt-form-renderer",disableElementRegistration:!0})],Sy);
_.L(Sy,"yt-form-renderer",function(){if(pTY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;wTr===void 0&&(wTr=document.createElement("template"));var R=wTr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);pTY=M}M=pTY;return M},{mode:2});var OyP;var zv=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return M};
_.v(zv,_.n);zv.prototype.onCheckboxChange=function(M){this.data&&(M=(this.checked=_.cN(M).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})};
zv.prototype.handleUpdateCheckboxCommand=function(M){(M=_.q(M,_.g9C))&&this.data&&this.data.id===M.id&&(this.set("data.disabled",M.disabled),this.set("data.title",M.title))};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],zv.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zv.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],zv.prototype,"checked",void 0);zv=_.G([_.f({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],zv);
_.L(zv,"ytd-settings-checkbox-renderer",function(){if(OyP!==void 0)return OyP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return OyP=M},{mode:1});var j8e;var bF=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return M};
_.v(bF,_.n);bF.prototype.dataChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.radio.removeAttribute("checked"),!M.data||!M.data.id||M.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Fi9()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(d=M.data&&M.data.id)?_.D(N,VMr(M.data.id),4):N.jumpTo(3):(M.set("data.hidden",!0),N.jumpTo(0));N.nextAddress!=3&&(d=N.yieldResult);d&&_.ZI(M.hostElement,"yt-select-settings-radio-option",[M.data.id]);_.Vy(N)})};
bF.prototype.onButtonChanged=function(M){_.cN(M).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ZI(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
bF.prototype.onSelectOption=function(M){this.data&&this.data.id&&(this.data.id===M?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
bF.prototype.dataChanged=bF.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);_.G([_.Z3("#radio"),_.a("design:type",Object)],bF.prototype,"radio",void 0);_.G([_.H(),_.a("design:type",Object)],bF.prototype,"data",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],bF.prototype,"dataChanged",null);bF=_.G([_.f({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],bF);
_.L(bF,"ytd-settings-radio-option-renderer",function(){if(j8e!==void 0)return j8e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return j8e=M},{mode:1});var s8q;var ey=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return M};
_.v(ey,_.n);
ey.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"}}}};
ey.prototype.handleUpdateTextCommand=function(M){(M=_.q(M,_.Wkg))&&this.data&&this.data.id===M.id&&this.set("data",M)};
ey.prototype.handleUpdateConnectedAppRendererCommand=function(M){if(_.q(M,_.mc3)&&this.data){var d,N;if(M=(d=_.q(M,_.mc3))==null?void 0:(N=d.newConnectedAppRenderer)==null?void 0:N.connectedAppRenderer)this.data=M}};
ey.prototype.computeConnectedAppStyle=function(M){return M.style?M.style.toLowerCase().replace(/_/g,"-"):""};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ey.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ey.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.a("design:type",String)],ey.prototype,"connectedAppStyle",void 0);ey=_.G([_.f({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ey);
_.L(ey,"ytd-connected-app-renderer",function(){if(s8q!==void 0)return s8q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return s8q=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Qf("iuT5Oc");

_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("L3n37");
var kkT=_.Tx(115994),TST=_.Tx(115993),DuY=function(M,d,N){var R=this;var X=N.dragDownAction;this.layer=0;this.JSC$20361_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$20361_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var A=_.Nx();_.RL(A,kkT,this.layer);_.RL(A,TST,this.layer);this.dragDownAction=function(){X();_.sL(A,{visualElement:R.fullscreen?kkT:TST})};
this.gesture=new _.da(M,d,this.JSC$20361_watchConfig,"pandown");this.attach()};
DuY.prototype.attach=function(){this.gesture.attach()};
DuY.prototype.detach=function(){this.gesture.detach()};
DuY.prototype.update=function(M){this.fullscreen=M;this.gesture.config=M?this.JSC$20361_watchFullScreenConfig:this.JSC$20361_watchConfig};var gGq={},WhP=["learning-journey-engagement-panel","PAlearning_chat"];
gGq.YtdLearningJourneyWatchBehavior=[_.E.YtRendererBehavior,_.z1.YtPlayerListenerBehavior,_.L$.YtRendererstamperBehavior,_.tK.YtActionHandlerBehavior,_.hF.YtPageBehavior,_.En.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)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},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 _.KF("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Q("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 _.KF("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 _.Q("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Q("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)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.ZR("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ZR("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Q("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.Q("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Q("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("web_watch_rounded_player_large")||_.Q("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_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Q("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Q("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Q("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 _.Q("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var M={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},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:_.qD(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.qD(["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"||_.Q("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(M.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},M.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},M.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}},reuseComponents:!1});return M},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.Q("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.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;_.Q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Q("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.taC(function(){return _.Hi(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.Q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
_.Q("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Xz;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;_.Q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.Q("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));_.Q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ux(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.Q("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.Q("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.Q("kevlar_watch_while_v2")&&!_.Q("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.YP(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var d=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var N;(N=this.watchController)==null||_.H$(N,this.data)}else this.data=M;this.playlist&&_.qi({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.v1("nw");this.loading=!1;_.gL(_.IQ,function(){d.initDclkstatus_();var R,X=((R=d.player)==null?void 0:R.getVideoData().cpn)||"";_.oqD(function(A,l){_.tw4(A,l,X)})})},
onPageLoadWithSameData_:function(){_.Q("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;if(_.Q("kevlar_watch_frame0_loading_state")){var d,N,R;M=(d=this.loadingData)==null?void 0:(N=d.endpoint)==null?void 0:(R=N.watchEndpoint)==null?void 0:R.videoId;var X;M&&(X="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.K(this.hostElement).querySelector("#player").style.backgroundImage=X?"url("+X+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.K(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var d,N;(N=(d=this.watchMetadata).updateSentimentBarWidth)==
null||N.call(d);var R,X;(X=(R=this.watchMetadata).resize)==null||X.call(R)}_.Q("kevlar_watch_frame0_loading_state")&&(_.K(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.CL(d,!1):_.vh(new _.WJ("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var d=_.K(this.hostElement).querySelector(M);d?_.xP(d):_.vh(new _.WJ("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(M){var d=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.IQ.addLowPriorityJob(function(){d.onWindowResized_(_.lx(!0))})},
updateTheaterModeState_:function(M){if(!_.Q("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.th4()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var M=this.theater;_.Q("external_fullscreen")&&this.fullscreen&&(M=!0);M=M?_.K(this.hostElement).querySelector("#player-full-bleed-container"):_.K(this.hostElement).querySelector("#player-container-inner");var d=this.getPlayerContainer(),N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip");d.parentElement!==M&&(N&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Hi(this).appendTo(M,d),M.appendChild(_.K(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.h().resolve(_.et).deactivate(),2);M.updatePlayerLocation();_.Vy(d)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var d=this.getCinematicsLocationContainer();M.parentElement!==d&&d.appendChild(M);var N;(N=this.watchController)==null||_.O1d(N)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.K(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.K(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(M,d){var N=document.documentElement.hasAttribute("dark"),R=N&&_.Q("web_cinematic_theater_mode"),X=N&&_.Q("web_cinematic_fullscreen");N=!N&&this.cinematicLightTheme;return M&&R||d&&X||(d||M)&&N},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M=this,d;(d=this.watchController)==null||_.H$(d,this.data);_.Q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.h().resolve(_.oL).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,_.Q("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.IQ.addLowPriorityJob(function(){_.Eu(M.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Q("web_watch_start_chat_in_theater_mode")){var N,R,X;if((N=this.data)==null?0:(R=N.contents)==null?0:(X=R.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,l;((A=this.data)==null?0:(l=A.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(M){var d;(d=this.watchController)==null||_.eb(d,this.playerData);M&&M.playabilityStatus&&(d=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),d&&!M||_.bM(this,function(){_.v1("pbu")}));
this.setPlayerAds_();_.Eu(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(M){_.iY().dispatch(_.HTP(this.active));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new _.bf(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.eb(this.watchController,this.playerData);this.data&&_.H$(this.watchController,this.data);_.Q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var d=_.Hi(this);_.Q("kevlar_disable_prepare_player")||d.preparePlayer();
_.Q("kevlar_watch_flexy_playlist_manager")||_.h().resolve(_.oL).setPlayer(d);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();d={"--ytd-watch-flexy-scrollbar-width":_.pl()+"px"};this.is==="ytd-watch-grid"&&(d["--ytd-watch-flexy-sidebar-width"]=_.zX+"px",d["--ytd-watch-grid-horizontal-page-margins"]=_.J5+"px",d["--ytd-watch-grid-columns-top-margins"]=_.sve+"px",d["--ytd-watch-grid-min-player-height-medium"]="360px");!_.ZR("kv_pl_mx_sz_ks")&&_.ZR("kevlar_watch_max_player_width")&&
(d["--ytd-watch-flexy-max-player-width-wide-screen"]=_.rRd+"px");_.ZR("kevlar_watch_flexy_metadata_height")&&(d["--ytd-watch-flexy-space-below-player"]=_.K_e+"px");this.safeUpdateStyles(d);_.Q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new DuY(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
_.Q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var M=_.pl(),d=_.c9+M,N=d;this.fixedPanels&&(d+=_.zX);var R=657+M;M=1327+M;_.K(this.hostElement).querySelector("#two-column-query").query="(min-width: "+d+"px)";_.K(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(d+"px) and (max-width: ")+(M+"px)");_.K(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");_.K(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+N+"px)"},
calculateCurrentPlayerSize_:function(){var M=_.K(this.hostElement).querySelector("#miniplayer-bar").firstChild;return M&&M.active||this.theater||_.Q("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.R8(NaN,NaN):_.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Ls(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.tw(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.lx());_.Q("browse_skeleton_removal_on_watch_killswitch")||_.KF("IS_SHELL_LOAD")&&_.zlq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var d=_.Hi(this);d.addEventListener("yt-player-updated",_.ux(this,this.onPlayerUpdated_));d.getPlayerPromise().then(function(N){M.playerApiReady_(N)});
_.Q("kevlar_watch_flexy_playlist_manager")||(d=_.h().resolve(_.oL),_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&d.addEventListener("yt-navigate",_.ux(this,this.onYtNavigate_)),d.setPlaylistComponent(_.K(this.hostElement).querySelector("#playlist")),d.addEventListener("yt-playlist-data-updated",_.ux(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.IQ.addLowPriorityJob(function(){_.YP(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Hi(this).removeEventListener("yt-player-updated",_.ux(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Q("kevlar_watch_flexy_playlist_manager")){var M=_.h().resolve(_.oL);_.Q("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.ux(this,this.onYtNavigate_));
M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.ux(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.YP(this.hostElement,"yt-autonav-pause-player",!1);M=_.Uu();_.Q("kevlar_exit_fullscreen_leaving_watch")&&M&&_.uX(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,d){d.hasComments?d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):d.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,d){this.player&&(d?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.m5("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.K(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.K(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Q("kevlar_unified_player")||_.Q("kevlar_player_new_bootstrap_adoption"))&&_.Gf()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,d){d=d===void 0?!0:d;_.Uu()&&_.Q("external_fullscreen")&&_.uX(document.documentElement);this.theaterRequested_=M;d&&_.kY("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.Q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ZI(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.YP(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(M){_.OD(M,typeof this.player),this.player&&_.OD(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.ZI(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,d){return this.loading?d:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.V(M);for(var d=M.next();!d.done;d=M.next())d=d.value,d.youThereRenderer&&_.U5P(this.youThereManager_,d.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var d=this.youThereManager_;_.aQ()<M.lowEngagementThresholdMs||_.Y4C(d,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ZI(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,d,N){return!!M&&!this.isVideoPlayable_(M,N)&&!d},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,d){if(!M)return!1;var N=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var X;d=d==null?void 0:(X=d.playerOverlayRenderer)==null?void 0:X.gatedActionsOverlayRenderer;return!!N||!!R||!!M||!!d},
hasWatchNextResponseErrorRenderer:function(M){var d=this.getPageContents(M),N,R,X,A,l;return!(M==null?0:(N=M.contents)==null?0:(R=N.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((X=d[0])==null?0:(A=X.itemSectionRenderer)==null?0:(l=A.contents[0])==null?0:l.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,d,N){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",d),X=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];X=_.Q("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&X.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);A==void 0&&(A=!0);!N||this.isVideoPlayable_(M,this.getPlayerOverlays_(d))||
R||X||!A||_.h().resolve(_.oL).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.zI$()},
onPlayerFeedbackStartRequest_:function(M){_.ZI(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.ZI(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,d,N,R,X,A,l,k,T=((M=this.data)==null?NaN:(d=M.contents)==null?NaN:(N=d.twoColumnWatchNextResults)==null?NaN:(R=N.secondaryResults)==null?NaN:(X=R.secondaryResults)==null?NaN:(A=X.offerModule)==null?NaN:(l=A.tvfilmOfferModuleRenderer)==null?NaN:(k=l.actionButtons)==null?NaN:k.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(T>=0?T:0)+".buttonRenderer."];d=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(N=d.next();!N.done;N=d.next())for(N=N.value,R=_.V(M),X=R.next();!X.done;X=R.next())if(X="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+N+X.value,X=this.get(X+"navigationEndpoint",this.data)||this.get(X+"serviceEndpoint",this.data)||this.get(X+"command",this.data)){_.Zc(X,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.YP(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.YP(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.iY().dispatch(_.NVm(M))},
onPlayerSubscribe_:function(M){_.ZI(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.ZI(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.ZI(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(M){return!_.Q("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.Q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var M,d,N,R;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:R.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Q("swatcheroo_pbs_load_grid")&&!_.Q("swatcheroo_provide_all_data_on_scheduled_job")){_.IQ.cancelJob(this.setRichGridJobId_);var M,d,N,R,X,A,l;this.setRichGridRendererData((M=this.data)==null?void 0:(d=M.contents)==null?void 0:(N=d.twoColumnWatchNextResults)==null?void 0:(R=N.secondaryResults)==null?void 0:(X=R.secondaryResults)==null?void 0:(A=X.results)==null?void 0:(l=A[0])==null?
void 0:l.richGridRenderer)}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,d=(M=this.data)==null?void 0:M.engagementPanels;if(d==null?0:d.length){M=null;d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if(((R=N.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){M=N;break}}var X,A,l;M=(X=M)==null?void 0:(A=X.engagementPanelSectionListRenderer)==null?void 0:(l=A.content)==null?void 0:l.structuredDescriptionContentRenderer;if(M==null?0:M.items){X=
[];A=_.V(M.items);for(l=A.next();!l.done;l=A.next()){l=l.value;if(!_.Q("sd_horizontal_list_show_nav_killswitch")){var k=R=N=d=M=void 0,T=void 0,W=(M=l.horizontalCardListRenderer)==null?void 0:(d=M.header)==null?void 0:(N=d.richListHeaderRenderer)==null?void 0:(R=N.navigationButton)==null?void 0:(k=R.buttonRenderer)==null?void 0:(T=k.command)==null?void 0:T.commandExecutorCommand;W&&W.commands&&(W.commands=W.commands.filter(function(w){return!_.q(w,_.aU4)}))}l.expandableVideoDescriptionBodyRenderer||
l.videoDescriptionHeaderRenderer||X.push(l)}return{items:X}}}},
constructWarning_:function(M){return{text:_.ep(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.YP(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var d=this.getScrollTop()>0;this.gestures_&&(d?this.gestures_.detach():this.gestures_.attach());d!==this.showFullerscreenEdu_&&_.Q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=d,_.Hi(this).getPlayerPromise().then(function(N){N.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.YP(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.IQ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.gL(_.IQ,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.Q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.v1("cmi");_.IQ.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.V(M);for(var d=M.next();!d.done;d=M.next())if(d=d.value,this.get("itemSectionRenderer.sectionIdentifier",d)==="comment-item-section"){this.comments=d.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.YP(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.v1("cmc")},
doRemoveComments_:function(){this.comments={};_.Q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.IQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.IQ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,d){var N=_.q(d.endpoint,_.nL);N&&(!(d=this.get("data.currentVideoEndpoint.watchEndpoint"))||N.videoId!==d.videoId||N.playlistId&&N.playlistId!==d.playlistId||N.index!==void 0&&N.index!==d.index||typeof N.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.Hi(this).getPlayerPromise().then(function(R){var X=N.startTimeSeconds;R.seekTo(X);R.wakeUpControls();X<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.PPD();"t"in M&&(M=_.S4C(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var d,N;(M=_.HD(M==null?void 0:(d=M[0])==null?void 0:(N=d.videoPrimaryInfoRenderer)==null?void 0:N.title))&&_.YP(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.YP(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,d,N){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===N&&(N=R.list,_.Q("polymer_enable_mdx_queue")&&N&&N.startsWith("RQ")&&(N=void 0),R.video_id!==M||N!=d)){var X;_.Q("kevlar_player_watch_endpoint_navigation")?X=_.X4j(_.r5r(M,d)):X=this.buildWatchEndpoint_(M,d);_.YP(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,d,N){return _.UN(M,d,N)},
initDclkstatus_:function(){_.J5b()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var d=M.querySelector("#primary-info"),N=M.querySelector("#secondary-info"),R=M.querySelector("#related");d&&_.K(this.hostElement).querySelector("#info-skeleton").appendChild(d);N&&_.K(this.hostElement).querySelector("#meta-skeleton").appendChild(N);R&&(_.K(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.l_(M)}},
handlePlayerUpdated_:function(){_.Hi(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,d){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof d!=="undefined"){var N=this.watchNextSkeletonEl_.children,R=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,N.length);d||(R=0,M=N.length);for(d=R;d<M;d++)N[d].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.Q("external_fullscreen")||_.ZI(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var d=_.Hi(this);d.getPlayerPromise().then(function(N){N.setFauxFullscreen(!!_.Uu())});
this.updateFullBleedElementLocations();M&&(d.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,d){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!d},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,d){return d&&!!M},
computeResponseHasComments:function(M){var d,N,R,X,A;return!!(M==null?0:(d=M.contents)==null?0:(N=d.twoColumnWatchNextResults)==null?0:(R=N.results)==null?0:(X=R.results)==null?0:(A=X.contents)==null?0:A.some(function(l){var k;return(l==null?void 0:(k=l.itemSectionRenderer)==null?void 0:k.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,d,N,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!M&&!!Object.keys(M).length&&!d},
identity:_.z6,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.Q("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.Q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var d=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.Hi(this).getPlayerPromise().then(function(N){var R=N.getPlayerState();R!==5&&R!==0&&(N=1/N.getVideoAspectRatio(),d.videoHeightToWidthRatio_!==N&&(d.videoHeightToWidthRatio_=N))})},
schedulePlayerSizeUpdate_:function(M){var d=this,N=_.Q("kevlar_watch_while_v2")||_.Q("web_watch_pip"),R=function(){if(d.watchMetadata){var X,A;(A=(X=d.watchMetadata).resize)==null||A.call(X)}_.Hi(d).getPlayerPromise().then(function(l){if(_.Q("kevlar_set_internal_player_size")){if(!N||!d.isMiniplayerActive()){var k=d.calculateCurrentPlayerSize_();l.setInternalSize(k.width,k.height)}}else l.setSize(NaN,NaN);_.Q("kevlar_watch_while")&&d.updateWatchWhileScrollThreshold_()})};
M?R():_.m$(_.IQ,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.q(M,_.LKi).survey)},
onDownloadedVideoDeleted:function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){if(!d.active||(N=d.playerData)==null||!N.offlineState||d.videoId!==M)return X.return();(R=d.player)==null||R.stopVideo();_.$O().navigatingAwayFromWatchDeletedVideo=!0;_.Zc(_.Uz2,d.hostElement);return _.D(X,_.$O().navigationFinishPromise,2)}_.$O().navigatingAwayFromWatchDeletedVideo=!1;_.Vy(X)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.Ju(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.K(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var d=this.windowSize_.height>=624,N=this.active?this.getScrollTop():0;!M.active&&d&&N>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!d||N<this.watchWhileScrollThreshold_&&!_.Uu())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var M=_.K(this.hostElement).querySelector("#secondary-inner");if(M){var d=_.K(this.hostElement).querySelector("#below"),N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.defaultTwoColumnLayout?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}},
isTwoColumnsChanged_:function(M,d){if(M!==!0||d!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(M=_.K(this.hostElement).querySelector("#secondary-inner"))){d=_.K(this.hostElement).querySelector("#below");var N=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#comments");R&&N&&d&&(this.isTwoColumns_?(M.appendChild(R),N.appendChild(M)):(d.appendChild(R),_.yF(d,M)))}}else{M=!_.Q("live_chat_over_engagement_panels");d=_.K(this.hostElement).querySelector("#chat-container");
N=_.K(this.hostElement).querySelector("#plj-sidebar");R=_.K(this.hostElement).querySelector("#panels");var X=_.K(this.hostElement).querySelector("#plj-panels"),A=_.K(this.hostElement).querySelector("#plj-playlist"),l=_.K(this.hostElement).querySelector("#alerts"),k=_.K(this.hostElement).querySelector("#playlist"),T=_.K(this.hostElement).querySelector("#related"),W=_.K(this.hostElement).querySelector("#donation-shelf"),w=_.K(this.hostElement).querySelector("#comments");this.isTwoColumns_?(l=_.K(this.hostElement).querySelector("#secondary-inner"),
l.appendChild(N),N.appendChild(A),A.appendChild(k),N.appendChild(X),M&&l.appendChild(R),_.Q("web_watch_theater_chat")||l.appendChild(d),M||l.appendChild(R),l.appendChild(W),l.appendChild(T)):(M&&_.ox(R,l),_.ox(k,l),_.Q("web_watch_theater_chat")||_.ox(d,l),M||_.ox(R,l),_.ox(W,l),w&&_.ox(T,w));_.Q("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.Q("web_watch_theater_chat")){var M=_.K(this.hostElement).querySelector("#chat-container"),d=this.theater&&!this.fullscreen||_.Q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&d?_.Q("web_watch_theater_chat_beside_player")?(d=_.K(this.hostElement).querySelector("#panels-full-bleed-container"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.panelsBesidePlayer=!0):
_.Q("web_watch_theater_fixed_chat")&&(d=_.K(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==d&&d.append(M),this.fixedPanels=!0):(_.Q("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Q("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),d=_.K(this.hostElement).querySelector("#playlist"),M&&d?_.rl(M,d):_.vh(new _.WJ("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!d})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,d){return _.Q("sw_metadata_vis_toggle_ks")?!0:!!M||!!d},
computeForceDarkPanelTheme:function(M){return _.Q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.UO(this.hostElement,M)}catch(d){_.vh(d)}},
videoHeightToWidthRatioChanged_:function(M,d){d&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.Q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Hi(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Hi(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Z19(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var d=_.F5(M)||0;_.X5(M,d+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.F5("yt-fullerscreen-edu-button-click-count")||0,d=_.F5("yt-fullerscreen-edu-button-shown-count")||0,N=_.ZR("external_fullscreen_button_shown_threshold"),R=M>=_.ZR("external_fullscreen_button_click_threshold")||d>=N;_.Hi(this).getPlayerPromise().then(function(X){X.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,d){return d},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.h().resolve(_.oL).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var M=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.IQ.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.IQ.addLowPriorityJob(function(){M.fullHeightPanelPositionUpdateJobId=0;var d=_.K(M.hostElement).querySelector("#secondary"),N=_.K(M.hostElement).querySelector("#fixed-secondary");d=d.getBoundingClientRect();var R=d.width;M.swatcherooSqueezeback&&
(R+=_.J5);if(M.swatcherooSqueezeback){var X=_.K(M.hostElement).querySelector("#squeezeback-constraining-container");X.style.width=R+"px";X.style.flex="0 0 "+R+"px"}N.style.width=R+"px";N.style.left=d.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.IQ.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.IQ.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var d;!M.isTwoColumns_||M.theater||M.fullscreen?d=460:d=M.calculateNormalPlayerSize_().height;var N=d+"px";_.Q("live_chat_taller_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Q("live_chat_medium_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Q("live_chat_scaled_height")&&!M.theater&&(N="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":d+"px","--ytd-watch-flexy-chat-max-height":N,"--ytd-watch-flexy-structured-description-max-height":d+"px","--ytd-watch-flexy-comments-panel-max-height":d+"px","--ytd-comments-engagement-panel-content-height":d+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var M=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.Q("web_watch_flexy_adjust_sidebar_width"))&&!_.Q("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.IQ.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.IQ.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;if(M.isTwoColumns_){var d=_.c5P(M.windowSize_,M.calculateNormalPlayerSize_().width);d!==M.currentSidebarWidth&&(M.currentSidebarWidth=
d,M.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":d+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Ni(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var d=_.K(this.hostElement).querySelector("#engagement-panel-scrim");M?d.addEventListener("tap",_.ux(this,this.onEngagementPanelScrimClick_)):d.removeEventListener("tap",_.ux(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var d=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var N=this.getPageScrollingElement(),R=this.getScrollTop(),X=R+N.clientHeight-56;if(d<R+56)d-=56;else if(M>X)d=M-N.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,d),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.Q("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.Xt().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,d,N){this.active&&this.trackEngagementPanelVisibility&&!_.i1d.includes(N)&&(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(N),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.Eu(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),d!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&d!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(N),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeFullBleedPlayer:function(M,d){return M||d},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,d){return!M&&d},
swatcherooUpdatePanelsLocation:function(M,d,N,R,X,A){if(this.is==="ytd-watch-grid"){d=M&&!d;this.swatcherooSplitScroll&&(d?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));N=_.K(this.hostElement).querySelector("#panels");var l=_.K(this.hostElement).querySelector("#playlist"),k=_.K(this.hostElement).querySelector("#fixed-secondary"),T=_.K(this.hostElement).querySelector("#fixed-below"),
W=_.K(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.K(this.hostElement).querySelector("#chat-container");A&&(M?k.appendChild(N):T.appendChild(N));X?M?k.appendChild(w):T.appendChild(w):_.rl(w,W);R?M?k.appendChild(l):T.appendChild(l):_.rl(l,W);this.swatcherooSplitScroll&&(M=_.K(this.hostElement).querySelector("#secondary"),R=_.K(this.hostElement).querySelector("#columns"),X=_.K(this.hostElement).querySelector("#fixed-columns-secondary"),d?X.appendChild(M):
R.appendChild(M))}},
computeMetadataSkinnyMode:function(M,d,N){return this.is!=="ytd-watch-grid"?!1:M?N:d},
computeWatchWhilePanelsActive:function(M,d){return M||d},
computeNoBorderOnChat:function(M){return _.Q("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,d){return M&&!d},
computePanelExpanded:function(M,d,N){return M||d||N},
computeSwatcherooSqueezeback:function(M,d,N){return this.is!=="ytd-watch-grid"||_.Q("ww_squeezeback_killswitch")?!1:M&&d&&N},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(M){_.Hi(this).getPlayerPromise().then(function(d){var N;(N=d.changeMarkerVisibility)==null||N.call(d,_.q(M,_.t7).isVisible||!1,_.q(M,_.t7).entityKeys||[],_.q(M,_.t7).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.iY().dispatch(_.nq4(M.detail))},
onSetPlaylistCollapsed:function(M){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!M)},
provideRenderingData:function(M,d){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=d;break;case "PRIMARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=d);this.videoPrimaryInfoRendererValue=d==null?void 0:d.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=d);this.videoSecondaryInfoRendererValue=d==null?void 0:d.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
d;break;case "CLARIFICATION":this.clarifyBoxValue=d;break;case "LIVE_CHAT":this.conversationBar=d;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=d;break;case "PLAYLIST":this.externalPlaylistData_=d!=null?d:{};break;case "MERCH_SHELF":this.merchShelfValue=d==null?void 0:d.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=d;break;case "OFFER_MODULE":this.offerModule=d;break;case "LIMITED_STATE":this.limitedStateValue=d;break;case "DONATION_SHELF":this.donation=d;break;
case "ALERTS":this.alertsValue=d;break;case "COMMENTS":this.comments=d;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=d;break;case "ENGAGEMENT_PANELS":this.engagementPanels=d;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=d;break;case "RICH_GRID_RENDERER":this.richGridRendererData=d;break;case "EXPANDABLE_METADATA":this.expandableMetadata=d;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=d}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.h().resolve(_.et).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(M){return WhP.map(function(d){return M.find(function(N){var R;return(N==null?void 0:(R=N.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===d})}).filter(function(d){return d!==void 0})},
getNonLearningJourneyEngagementPanels:function(M){return M.filter(function(d){var N;return!WhP.includes((d==null?void 0:(N=d.engagementPanelSectionListRenderer)==null?void 0:N.targetId)||"")})},
getHasLearningJourneyPanels:function(M){return M.length>0}}];var woq;var Ei=function(){var M=_.n.apply(this,arguments)||this;M.flexy=!0;M.learningJourney=!0;M.roundedInfoPanel=!0;M.viewTransitionEnabled=_.Q("enable_player_resize_transition");M.smallerChatMinHeight=_.Q("live_chat_smaller_min_height");M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.transparentTheaterMode=_.Q("web_transparent_theater_mode");M.cinematicFullscreen=_.Q("web_cinematic_fullscreen");M.useLargerMaxPlayerValue=_.Q("kevlar_flexy_use_larger_player_value");M.cinematicFullscreenV2=_.Q("web_cinematic_fullscreen_v2");
M.isDarkTheme=document.documentElement.hasAttribute("dark");M.theaterLargerPlayer=_.Q("web_watch_theater_larger_player");M.defaultCollapsePlaylist=_.Q("web_watch_default_collapse_playlist");return M};
_.v(Ei,_.n);_.F=Ei.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.F.ready=function(){var M=this,d=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(M){_.Q("web_watch_update_narrow_width_killswitch")||_.iY().dispatch(_.nuD(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.F.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20367_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20367_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Hm.Object.defineProperties(Ei.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(M=_.q(this.data.pageVisualEffects[d],_.Ww))return d=void 0,(d=M.config)==null?void 0:d.enableInLightTheme;return!1}}});
_.Hm.Object.defineProperties(Ei,{template:{configurable:!0,enumerable:!0,get:function(){if(woq===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\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-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);woq=M}M=woq;return M}}});
Ei.prototype.updateMiniplayerIsActiveValue=Ei.prototype.updateMiniplayerIsActiveValue;Ei.prototype.updateScrollTopValue=Ei.prototype.updateScrollTopValue;Ei.prototype.updateFullscreenValue=Ei.prototype.updateFullscreenValue;Ei.prototype.updateTheaterValue=Ei.prototype.updateTheaterValue;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ei.prototype,"ytComponentBehavior",void 0);
_.G([_.S(gGq.YtdLearningJourneyWatchBehavior),_.a("design:type",Object)],Ei.prototype,"ytdWatchBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Ei.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ei.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ei.prototype,"playerData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"flexy",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"learningJourney",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"roundedInfoPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"viewTransitionEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"smallerChatMinHeight",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"cinematicTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"transparentTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"cinematicFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"useLargerMaxPlayerValue",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"cinematicFullscreenV2",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"isDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ei.prototype,"theaterLargerPlayer",void 0);_.G([_.H(),_.a("design:type",Object)],Ei.prototype,"defaultCollapsePlaylist",void 0);_.G([_.H({selector:_.WK}),_.a("design:type",Object)],Ei.prototype,"theaterValue",void 0);
_.G([_.H({selector:_.IF}),_.a("design:type",Object)],Ei.prototype,"fullscreenValue",void 0);_.G([_.H({selector:_.v9}),_.a("design:type",Object)],Ei.prototype,"scrollTopValue",void 0);_.G([_.H({selector:_.vD}),_.a("design:type",Object)],Ei.prototype,"miniplayerIsActiveValue",void 0);_.G([_.HB("ytd-player"),_.a("design:type",HTMLElement)],Ei.prototype,"ytdPlayer",void 0);_.G([_.Z3("#playlist"),_.a("design:type",HTMLElement)],Ei.prototype,"JSC$20367_ytdPlaylistPanelRenderer",void 0);
_.G([_.HB("ytd-comments"),_.a("design:type",HTMLElement)],Ei.prototype,"ytdComments",void 0);_.G([_.Z3("#primary"),_.a("design:type",HTMLElement)],Ei.prototype,"primary",void 0);_.G([_.Z3("#secondary"),_.a("design:type",HTMLElement)],Ei.prototype,"secondary",void 0);_.G([_.Z3("#player-container"),_.a("design:type",HTMLElement)],Ei.prototype,"playerContainer",void 0);_.G([_.Z3("#cinematics"),_.a("design:type",HTMLElement)],Ei.prototype,"JSC$20367_cinematics",void 0);
_.G([_.xB("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateTheaterValue",null);_.G([_.xB("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateFullscreenValue",null);_.G([_.xB("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateScrollTopValue",null);
_.G([_.xB("miniplayerIsActiveValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ei.prototype,"updateMiniplayerIsActiveValue",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ei.prototype,"cinematicLightTheme",null);Ei=_.G([_.f({is:"ytd-watch-learning-journey"})],Ei);_.mq.registerService(_.a5Z,Ei);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("Tm0L3c");
var AZP;var VZd;var lre=function(){return _.n.apply(this,arguments)||this};
_.v(lre,_.n);lre=_.G([_.f({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],lre);
_.L(lre,"ytd-ghost-comments-renderer",function(){if(VZd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);VZd=M}M=VZd;return M},{mode:1});var $uY;var BSD=function(){return _.n.apply(this,arguments)||this};
_.v(BSD,_.n);BSD=_.G([_.f({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],BSD);
_.L(BSD,"ytd-ghost-watch-metadata-renderer",function(){if($uY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);$uY=M}M=$uY;return M},{mode:1});var ZE=function(){var M=_.n.apply(this,arguments)||this;M.ghostGridRenderer={rows:6};M.roundedInfoPanel=!0;M.hideOfferModules=!0;M.smallerChatMinHeight=_.Q("live_chat_smaller_min_height");M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.transparentTheaterMode=_.Q("web_transparent_theater_mode");M.darkerPanels=_.Q("web_watch_darker_panels");M.cinematicFullscreen=_.Q("web_cinematic_fullscreen");M.cinematicFullscreenV2=_.Q("web_cinematic_fullscreen_v2");M.isDarkTheme=document.documentElement.hasAttribute("dark");
return M};
_.v(ZE,_.n);_.F=ZE.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.F.ready=function(){var M=this,d=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(M){this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.F.updateShownItemsFromBinding=function(M){_.Q("swatcheroo_direct_use_rich_grid")||(M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value)};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20358_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20358_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Hm.Object.defineProperties(ZE.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(M=_.q(this.data.pageVisualEffects[d],_.Ww))return d=void 0,(d=M.config)==null?void 0:d.enableInLightTheme;return!1}}});
ZE.prototype.updateMiniplayerIsActiveValue=ZE.prototype.updateMiniplayerIsActiveValue;ZE.prototype.updateScrollTopValue=ZE.prototype.updateScrollTopValue;ZE.prototype.updateFullscreenValue=ZE.prototype.updateFullscreenValue;ZE.prototype.updateTheaterValue=ZE.prototype.updateTheaterValue;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.Xob.YtdWatchBehavior),_.a("design:type",Object)],ZE.prototype,"ytdWatchBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],ZE.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZE.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ZE.prototype,"ghostGridRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],ZE.prototype,"playerData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"roundedInfoPanel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"hideOfferModules",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"smallerChatMinHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"cinematicTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"transparentTheaterMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"darkerPanels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"cinematicFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"cinematicFullscreenV2",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZE.prototype,"isDarkTheme",void 0);_.G([_.H({selector:_.WK}),_.a("design:type",Object)],ZE.prototype,"theaterValue",void 0);
_.G([_.H({selector:_.IF}),_.a("design:type",Object)],ZE.prototype,"fullscreenValue",void 0);_.G([_.H({selector:_.v9}),_.a("design:type",Object)],ZE.prototype,"scrollTopValue",void 0);_.G([_.H({selector:_.vD}),_.a("design:type",Object)],ZE.prototype,"miniplayerIsActiveValue",void 0);_.G([_.Z3("#ytd-player"),_.a("design:type",HTMLElement)],ZE.prototype,"ytdPlayer",void 0);_.G([_.Z3("#playlist"),_.a("design:type",HTMLElement)],ZE.prototype,"JSC$20358_ytdPlaylistPanelRenderer",void 0);
_.G([_.Z3("#ytd-comments"),_.a("design:type",HTMLElement)],ZE.prototype,"ytdComments",void 0);_.G([_.Z3("#primary"),_.a("design:type",HTMLElement)],ZE.prototype,"primary",void 0);_.G([_.Z3("#secondary"),_.a("design:type",HTMLElement)],ZE.prototype,"secondary",void 0);_.G([_.Z3("#player-container"),_.a("design:type",HTMLElement)],ZE.prototype,"playerContainer",void 0);_.G([_.Z3("#cinematics"),_.a("design:type",HTMLElement)],ZE.prototype,"JSC$20358_cinematics",void 0);
_.G([_.xB("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateTheaterValue",null);_.G([_.xB("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateFullscreenValue",null);_.G([_.xB("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateScrollTopValue",null);
_.G([_.xB("miniplayerIsActiveValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZE.prototype,"updateMiniplayerIsActiveValue",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ZE.prototype,"cinematicLightTheme",null);
_.L(ZE,"ytd-watch-grid",function(){if(AZP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);AZP=M}M=AZP;return M},{mode:2});_.mq.registerService(_.GEi,ZE);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("CF909");
var Fh$;var Yp=function(){var M=_.n.apply(this,arguments)||this;M.flexy=!0;M.roundedInfoPanel=!0;M.viewTransitionEnabled=_.Q("enable_player_resize_transition");M.smallerChatMinHeight=_.Q("live_chat_smaller_min_height");M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.transparentTheaterMode=_.Q("web_transparent_theater_mode");M.cinematicFullscreen=_.Q("web_cinematic_fullscreen");M.useLargerMaxPlayerValue=_.Q("kevlar_flexy_use_larger_player_value");M.cinematicFullscreenV2=_.Q("web_cinematic_fullscreen_v2");
M.isDarkTheme=document.documentElement.hasAttribute("dark");M.defaultCollapsePlaylist=_.Q("web_watch_default_collapse_playlist");M.retroModeReduxValue=!1;return M};
_.v(Yp,_.n);_.F=Yp.prototype;_.F.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.F.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.F.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.F.updateRetroModeReduxValue=function(){_.Q("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.F.ready=function(){var M=this,d=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",d);this.secondary.addEventListener("scroll",d)};
_.F.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.F.updateIsTwoColumnsFromBinding=function(M){_.Q("web_watch_update_narrow_width_killswitch")||_.iY().dispatch(_.nuD(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.F.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.F.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.F.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.F.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.F.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20353_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20353_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Hm.Object.defineProperties(Yp.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var d=0;d<this.data.pageVisualEffects.length;d++)if(M=_.q(this.data.pageVisualEffects[d],_.Ww))return d=void 0,(d=M.config)==null?void 0:d.enableInLightTheme;return!1}}});
_.Hm.Object.defineProperties(Yp,{template:{configurable:!0,enumerable:!0,get:function(){if(Fh$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);Fh$=M}M=Fh$;return M}}});
Yp.prototype.updateRetroModeReduxValue=Yp.prototype.updateRetroModeReduxValue;Yp.prototype.updateScrollTopValue=Yp.prototype.updateScrollTopValue;Yp.prototype.updateFullscreenValue=Yp.prototype.updateFullscreenValue;Yp.prototype.updateTheaterValue=Yp.prototype.updateTheaterValue;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Yp.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.Xob.YtdWatchBehavior),_.a("design:type",Object)],Yp.prototype,"ytdWatchBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Yp.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Yp.prototype,"playerData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"flexy",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"roundedInfoPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"viewTransitionEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"smallerChatMinHeight",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"cinematicTheaterMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"transparentTheaterMode",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"cinematicFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"useLargerMaxPlayerValue",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"cinematicFullscreenV2",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Yp.prototype,"isDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],Yp.prototype,"defaultCollapsePlaylist",void 0);_.G([_.H({selector:_.WK}),_.a("design:type",Object)],Yp.prototype,"theaterValue",void 0);_.G([_.H({selector:_.IF}),_.a("design:type",Object)],Yp.prototype,"fullscreenValue",void 0);_.G([_.H({selector:_.v9}),_.a("design:type",Object)],Yp.prototype,"scrollTopValue",void 0);
_.G([_.H({selector:_.vD}),_.a("design:type",Object)],Yp.prototype,"miniplayerIsActive",void 0);_.G([_.H({selector:function(M){return M.watch.isWatchRetroMode}}),
_.a("design:type",Object)],Yp.prototype,"retroModeReduxValue",void 0);_.G([_.HB("ytd-player"),_.a("design:type",HTMLElement)],Yp.prototype,"ytdPlayer",void 0);_.G([_.Z3("#playlist"),_.a("design:type",HTMLElement)],Yp.prototype,"JSC$20353_ytdPlaylistPanelRenderer",void 0);_.G([_.HB("ytd-comments"),_.a("design:type",HTMLElement)],Yp.prototype,"ytdComments",void 0);_.G([_.Z3("#primary"),_.a("design:type",HTMLElement)],Yp.prototype,"primary",void 0);
_.G([_.Z3("#secondary"),_.a("design:type",HTMLElement)],Yp.prototype,"secondary",void 0);_.G([_.Z3("#player-container"),_.a("design:type",HTMLElement)],Yp.prototype,"playerContainer",void 0);_.G([_.Z3("#cinematics"),_.a("design:type",HTMLElement)],Yp.prototype,"JSC$20353_cinematics",void 0);_.G([_.xB("theaterValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateTheaterValue",null);
_.G([_.xB("fullscreenValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateFullscreenValue",null);_.G([_.xB("scrollTopValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateScrollTopValue",null);_.G([_.xB("retroModeReduxValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yp.prototype,"updateRetroModeReduxValue",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yp.prototype,"cinematicLightTheme",null);Yp=_.G([_.f({is:"ytd-watch-flexy"})],Yp);_.mq.registerService(_.tfp,Yp);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("nmfa2d");
var sF4;var fs=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;M.errorScreen=null;M.playlistData={};return M};
_.v(fs,_.n);_.F=fs.prototype;_.F.getPlayer=function(){return this.ytdPlayer};
_.F.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:_.qD(["aa","eocs"])}}};
_.F.onActiveChanged=function(){_.iY().dispatch(_.HTP(this.ytPageBehavior.active))};
_.F.playerDataChanged=function(){var M;(M=this.watchController)==null||_.eb(M,this.playerData)};
_.F.dataChanged=function(){var M;(M=this.watchController)==null||_.H$(M,this.data)};
_.F.sizeChanged=function(){var M,d;(d=(M=this.metadata).resize)==null||d.call(M)};
_.F.attached=function(){this.watchController=new _.bf(this);this.playerData&&_.eb(this.watchController,this.playerData);this.data&&_.H$(this.watchController,this.data)};
_.F.detached=function(){_.tw(this.watchController);this.watchController=void 0};
_.F.getPlayerContainer=function(){return this.playerContainer};
_.F.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20305_playlistPanel}};
_.F.provideRenderingData=function(M,d){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=d;break;case "ERROR_SCREEN":this.errorScreen=d!=null?d:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=d;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=d;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=d;break;case "RICH_METADATA":this.richMetadataRowContainer=d;break;case "CLARIFICATION":this.clarificationData=d;break;case "PLAYLIST":this.playlistData=
d!=null?d:{};break;case "MERCH_SHELF":this.merchShelf=d;break;case "TICKET_SHELF":this.ticketShelf=d;break;case "LIMITED_STATE":this.limitedState=d;break;case "DONATION_SHELF":this.donationShelf=d;break;case "ALERTS":this.alerts=d}};
_.Hm.Object.defineProperties(fs.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return!this.hidden&&!!((M=this.data)==null?0:(d=M.contents)==null?0:(N=d.twoColumnWatchNextResults)==null?0:N.conversationBar)}}});
fs.prototype.sizeChanged=fs.prototype.sizeChanged;fs.prototype.dataChanged=fs.prototype.dataChanged;fs.prototype.playerDataChanged=fs.prototype.playerDataChanged;fs.prototype.onActiveChanged=fs.prototype.onActiveChanged;_.G([_.S(_.hF.YtPageBehavior),_.a("design:type",Object)],fs.prototype,"ytPageBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],fs.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],fs.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"playerData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"hidden",void 0);_.G([_.Z3("#ytd-player"),_.a("design:type",HTMLElement)],fs.prototype,"ytdPlayer",void 0);_.G([_.Z3("#player-container"),_.a("design:type",HTMLElement)],fs.prototype,"playerContainer",void 0);_.G([_.Z3("#metadata"),_.a("design:type",Object)],fs.prototype,"metadata",void 0);_.G([_.Z3("#playlist"),_.a("design:type",HTMLElement)],fs.prototype,"JSC$20305_playlistPanel",void 0);
_.G([_.H({selector:_.uAJ,reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"fixie",void 0);_.G([_.H({selector:_.Uzr,reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"singleColumn",void 0);_.G([_.H({selector:function(M){return _.WK(M)&&!_.IF(M)},
reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"theater",void 0);_.G([_.H({selector:_.IF,reflectToAttribute:!0}),_.a("design:type",Object)],fs.prototype,"fullscreen",void 0);_.G([_.H({selector:_.a_9}),_.a("design:type",Object)],fs.prototype,"windowSize",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"singleColumnContents",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"errorScreen",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"playlistData",void 0);
_.G([_.H(),_.a("design:type",Object)],fs.prototype,"videoPrimaryInfoRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"videoSecondaryInfoRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"richMetadataRowContainer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"clarificationData",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"commentsEntryPointHeaderRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"ticketShelf",void 0);
_.G([_.H(),_.a("design:type",Object)],fs.prototype,"merchShelf",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"donationShelf",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"limitedState",void 0);_.G([_.H(),_.a("design:type",Object)],fs.prototype,"alerts",void 0);_.G([_.z("playlistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],fs.prototype,"hasPlaylistData",null);
_.G([_.z("data","hidden"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fs.prototype,"hasChat",null);_.G([_.xB("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"onActiveChanged",null);_.G([_.xB("playerData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"playerDataChanged",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"dataChanged",null);_.G([_.xB("windowSize","singleColumn"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fs.prototype,"sizeChanged",null);
_.L(fs,"ytd-watch-fixie",function(){if(sF4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);sF4=M}M=sF4;return M},{mode:1});_.mq.registerService(_.LVi,fs);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("xwEKAe");
var CqY=function(M){var d=_.kS();if(d.getFlag(202))d=d.getFlag(201);else{var N;d=(M==null?void 0:(N=M.config)==null?void 0:N.settingOnByDefault)!==void 0?M.config.settingOnByDefault:!_.Q("web_shorts_cinematics_disabled_by_default")}return d},xj9=function(M){var d=_.kS();
_.TR(0,201,M);_.TR(0,202,!0);d.save()},YvJ=function(M){return(M=_.rf2(M))?_.yfZ(M):0},ZYC=function(M){return M.shorts.isSmallScreenSqueezeback},EEP=function(M){return M.shorts.isPlaybackStarted},MhC=function(M,d,N,R){M=d-M;
N=R-N;return Math.sqrt(M*M+N*N)},dzd=function(M,d){M&&_.h().resolve(_.xV).resolveCommand(M,{forceClickLogging:!0,
form:{element:d}})},NdG=function(M){M.unsubscribeFromStore=_.kO(M.storeWithShorts,_.UBb,function(d){M.initOrDisposeActiveModules(d);
!d&&M.storeWithShorts.getState().shorts.isFullscreen&&(_.uX(document.documentElement),M.storeWithShorts.dispatch(_.xBY(!1)))});
M.initOrDisposeActiveModules(_.UBb(M.storeWithShorts.getState()))},ReY=function(M){var d=_.h().resolve(_.YO);
d.rootElement=M;NdG(d)},XrC=function(){return _.h().resolve(_.YO).dismissedIndices},FU9=function(M){return _.YS({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:M}})},An9=function(M){return _.YS({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:M}})},N5=function(M){return _.YS({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:M}})},RF=function(M,d){if(M instanceof RF)this.array_=M.array_;
else{var N;if(N=_.CZ(M))a:{for(var R=N=0;R<M.length;R++){if(!_.CZ(M[R])||N>0&&M[R].length!=N){N=!1;break a}for(var X=0;X<M[R].length;X++)if(typeof M[R][X]!=="number"){N=!1;break a}N==0&&(N=M[R].length)}N=N!=0}if(N)this.array_=_.US(M);else if(M instanceof _.R8)this.array_=Vhi(M.height,M.width);else if(typeof M==="number"&&typeof d==="number"&&M>0&&d>0)this.array_=Vhi(M,d);else throw Error("Zl");}this.size_=new _.R8(this.array_[0].length,this.array_.length)},l_P=function(M,d,N){for(var R=0;R<M.getSize().height;R++)for(var X=
0;X<M.getSize().width;X++)d.call(N,M.array_[R][X],R,X,M)},$ze=function(M,d){var N=new RF(M.getSize());
l_P(M,function(R,X,A){N.array_[X][A]=d.call(void 0,R,X,A,M)});
return N},Vhi=function(M,d){for(var N=[],R=0;R<M;R++){N[R]=[];
for(var X=0;X<d;X++)N[R][X]=0}return N};
RF.prototype.add=function(M){if(!_.IZb(this.size_,M.getSize()))throw Error("$l");return $ze(this,function(d,N,R){return d+M.array_[N][R]})};
RF.prototype.equals=function(M,d){if(this.size_.width!=M.size_.width||this.size_.height!=M.size_.height)return!1;d=d||0;for(var N=0;N<this.size_.height;N++)for(var R=0;R<this.size_.width;R++)if(!_.qvC(this.array_[N][R],M.array_[N][R],d))return!1;return!0};
RF.prototype.getSize=function(){return this.size_};
var Xs=function(M,d,N){return d>=0&&d<M.size_.height&&N>=0&&N<M.size_.width?M.array_[d][N]:null};
RF.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var BdJ=function(M,d,N,R){if(!(d>=0&&d<M.size_.height&&N>=0&&N<M.size_.width))throw Error("am`"+d+"`"+N+"`"+M.size_.height+"`"+M.size_.width);M.array_[d][N]=R};
RF.prototype.multiply=function(M){if(M instanceof RF){if(this.size_.width!=M.getSize().height)throw Error("bm");return kO$(this,M)}if(typeof M==="number")return Td9(this,M);throw Error("cm");};
var kO$=function(M,d){var N=new RF(M.size_.height,d.getSize().width);l_P(N,function(R,X,A){for(var l=R=0;l<this.size_.width;l++)R+=Xs(this,X,l)*Xs(d,l,A);BdJ(N,X,A,R)},M);
return N},Td9=function(M,d){return $ze(M,function(N){return N*d})};var DzD=new _.x("inlineSurveyRenderer");var g6i=new _.x("interstitialViewModel");var WUP=new _.x("reelNavigateCommand");var wrG=new _.x("reelNonVideoContentDismissalCommand");var pri=new _.x("showReelsCommentsOverlayCommand");var mzb=new _.x("videoInteractionPopUpRenderer");var heC;var Qie;var q2C;var Fs=function(){var M=_.n.apply(this,arguments)||this;M.ctaVisualElement=null;M.currentCsn=null;return M};
_.v(Fs,_.n);_.F=Fs.prototype;_.F.onDataChanged=function(){this.maybeLogShows()};
_.F.computeButtonShape=function(){var M=this;if(this.data)return{buttonText:_.HD(this.data.text),state:"active",onTap:function(){M.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.F.maybeCreateCtaVe=function(){var M;if((M=this.data)!=null&&M.badgeInteractionLogging){var d;if(M=(d=this.data.badgeInteractionLogging)==null?void 0:d.trackingParams)this.ctaVisualElement=_.At(M)}};
_.F.maybeLogClicks=function(){this.currentCsn=_.Ou(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.eD(this.currentCsn,this.ctaVisualElement)};
_.F.maybeLogShows=function(){this.currentCsn=_.Ou(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.zR(this.currentCsn,[this.ctaVisualElement])};
_.F.onTap=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var d;this.ytComponentBehavior.resolveCommand((d=this.data)==null?void 0:d.onClickCommand);this.maybeLogClicks()}};
Fs.prototype.onDataChanged=Fs.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],Fs.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fs.prototype,"onDataChanged",null);
Fs=_.G([_.f({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Fs);
_.L(Fs,"ytd-shopping-overlay-badge-renderer",function(){if(q2C!==void 0)return q2C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return q2C=M},{mode:1});_.eC(_.cCG,"reel-sound-metadata-view-model",{props:{data:_.bI,overlayDensity:_.bI}});_.eC(_.QOr,"player-disclosure-view-model",{props:{data:_.cA}});_.eC(_.Bdg,"pivot-button-view-model",{props:{data:_.bI,className:_.bI}});_.eC(_.kOe,"reel-action-bar-view-model",{props:{data:_.cA,buttonShapeOverrideables:_.cA}});_.eC(_.SG(function(M){function d(){var Hj,LZ,w3,XY,jJ=(LZ=_.q((Hj=C())==null?void 0:Hj.command,_.G7J))==null?void 0:(w3=LZ.item)==null?void 0:(XY=w3.notificationTextRenderer)==null?void 0:XY.successResponseText;if(jJ)_.ZI(R.value,"yt-open-popup-action",[_.Lh(jJ),R.value]);else if(U())dzd(U(),O.value);else{var Ne;dzd((Ne=C())==null?void 0:Ne.command,O.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var N=M.data;var R=_.e5();M=_.V(_.d0("0px",void 0,"O1N7Ce"));var X=M.next().value,A=M.next().value;M=_.V(_.d0("0px",void 0,"tTDBdb"));var l=M.next().value,k=M.next().value;M=_.V(_.d0(0,void 0,"fh8Zkc"));var T=M.next().value,W=M.next().value;M=_.V(_.d0(0,void 0,"CUjqGd"));var w=M.next().value,p=M.next().value,m=function(){var Hj;if(((Hj=_.ZM())==null?void 0:Hj.getPlayerState())!==-1){R.value.style.display="inherit";var LZ;(LZ=_.ZM())==null||LZ.removeEventListener("onStateChange",m)}I()},I=function(){var Hj=
document.querySelector("video");
if(Hj){W(Hj.getBoundingClientRect().width);p(Hj.getBoundingClientRect().height);var LZ;A((Hj==null?void 0:(LZ=Hj.style)==null?void 0:LZ.left)||"0px");var w3;k((Hj==null?void 0:(w3=Hj.style)==null?void 0:w3.top)||"0px")}};
_.Wg(function(){var Hj,LZ,w3;if(((Hj=_.ZM())==null?void 0:Hj.getPlayerState())===-1&&Math.round(((w3=(LZ=_.ZM())==null?void 0:LZ.getVideoAspectRatio())!=null?w3:0)*100)!==Math.round(T()/w()*100)){R.value.style.display="none";var XY,jJ;p(T()/((jJ=(XY=_.ZM())==null?void 0:XY.getVideoAspectRatio())!=null?jJ:1))}},"VB5m5");
_.QD(function(){var Hj;(Hj=_.ZM())==null||Hj.addEventListener("onStateChange",m);window.addEventListener("resize",I);I();var LZ,w3,XY;if((XY=(LZ=N())==null?void 0:(w3=LZ.regions)==null?void 0:w3[0])==null||!XY.transformationMatrix)throw Error("gm");var jJ;if((jJ=N())==null?0:jJ.trackingParams){var Ne;_.Nx().graftServerVe((Ne=N().trackingParams)!=null?Ne:"")}_.mF(function(){var Vz;(Vz=_.ZM())==null||Vz.removeEventListener("onStateChange",m);window.removeEventListener("resize",I)})});
var O=_.e5(),y=_.V(_.d0(!1,void 0,"TPsTce"));M=y.next().value;var c=y.next().value,e=_.V(_.d0(!1,void 0,"Uz6CHf"));y=e.next().value;var t=e.next().value,C=function(){var Hj;return _.q((Hj=N())==null?void 0:Hj.popUp,mzb)},U=function(){var Hj;
return(Hj=N())==null?void 0:Hj.command},Fi=function(){return _.q(U(),_.$M)!==void 0};
e=_.dT(function(){Fi()&&c(!0);t(!0);return!1});
var Y=_.dT(function(){c(!1);t(!1);return!1}),$i=_.dT(function(){Fi()&&c(!0);
return!1}),vj=_.dT(function(){Fi()&&c(!1);
return!1}),Pj=_.dT(function(){d();
return!1}),sS=_.dT(function(Hj){Hj.key==="Enter"&&d();
return!1}),tL={},b2={};
return _.g("yt-player-overlay-video-interactions",{el:R},_.g("svg",{"on:mouseover":e,"on:mouseout":Y,"on:keydown":sS,"on:focus":$i,"on:blur":vj,el:O,tabindex:0,"aria-label":function(){var Hj;return(Hj=N())==null?void 0:Hj.a11yString},
id:"player-overlay-video-interaction-svg",class:_.xj("yt-player-overlay-video-interactions__interactions-svg",(tL["yt-player-overlay-video-interactions__interactions-svg-hover"]=M,tL),(b2["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=y,b2)),role:"button",style:function(){var Hj,LZ,w3,XY=(w3=(Hj=N())==null?void 0:(LZ=Hj.regions)==null?void 0:LZ[0].transformationMatrix)!=null?w3:[];Hj=T();LZ=w();w3=[];for(var jJ=0,Ne=-1;jJ<XY.length;jJ++)jJ%3===0&&(Ne++,w3[Ne]=[]),w3[Ne].push(XY[jJ]);
XY=new RF(w3);w3=new RF([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);w3=XY.multiply(w3);XY=new RF([[0,0],[0,0],[0,0],[0,0]]);for(jJ=0;jJ<w3.getSize().width;jJ++){Ne=Xs(w3,0,jJ);var Vz=Xs(w3,1,jJ);if(Ne===null||Vz===null)throw Error("fm`"+(jJ+1).toString());BdJ(XY,jJ,0,Ne*Hj);BdJ(XY,jJ,1,Vz*LZ)}Hj=Xs(XY,0,0);jJ=Xs(XY,1,0);LZ=Xs(XY,0,1);Ne=Xs(XY,1,1);if(Hj===null||jJ===null||LZ===null||Ne===null)throw Error("dm");w3=MhC(Hj,jJ,LZ,Ne);Vz=Xs(XY,3,0);XY=Xs(XY,3,1);if(Vz===null||XY===null)throw Error("em");XY=MhC(Hj,
Vz,LZ,XY);Ne=(Number((Ne*-1).toFixed(2))-Number((LZ*-1).toFixed(2)))/(Number(jJ.toFixed(2))-Number(Hj.toFixed(2)));Vz=Math.atan(Ne)*180/Math.PI;jJ=Ne===Number.POSITIVE_INFINITY?-90:Ne===Number.NEGATIVE_INFINITY?90:Object.is(Ne,-0)?180:Ne===0?0:Ne>0?Vz*-1:Hj<jJ?Vz*-1:Math.abs(Vz)+180;return"left:calc("+Hj+"px + "+X()+"); top:calc("+(LZ+"px + "+l()+"); width:")+(w3+"px; height:")+(XY+"px; transform:rotate(")+(jJ+"deg);")},
"on:click":Pj}))},"pi"),"yt-player-overlay-video-interactions",{props:{data:_.cA}});_.eC(_.jOd,"yt-reel-metapanel-view-model",{props:{data:_.cA,overlayDensity:_.cA}});var A5=function(){var M=_.n.apply(this,arguments)||this;M.showScrubber=!1;M.isWatchWhileMode=!1;M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");M.anchoredPanelActive=!1;M.enableLivingroomLayout=_.Q("reels_enable_livingroom_layout");M.enablePlayerMetadataContainer=_.Q("reels_web_enable_metadata_container");M.enableSqueezebackPanels=_.Q("web_shorts_enable_squeezeback_panels");M.isSqueezebackActive=!1;M.smallScreenSqueezeback=!1;M.isPlayerStarted=!1;M.overlayDensity=0;M.isOverlay=!1;M.isImmersive=
!1;M.isImmersiveHorizontal=!1;M.isFullscreen=!1;M.onWindowResized=function(){var d;M.set("isImmersive",((d=window.getComputedStyle(M.hostElement))==null?void 0:d.getPropertyValue("--immersive-mode-on"))==="1");M.set("isImmersiveHorizontal",M.isImmersive&&M.enableLivingroomLayout&&!M.isWatchWhileMode)};
return M};
_.v(A5,_.n);_.F=A5.prototype;_.F.updateIsOverlay=function(M){this.isOverlay=M.detail.value};
_.F.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.Q("web_enable_flexible_overlay")||_.Q("web_enable_format_first")||_.Q("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.F.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.F.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.F.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.F.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.F.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.F.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.El("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.El("reels_action_justified_content")||"flex-start")};
_.F.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.F.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.le("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.le("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.le("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.le("SHARE_LABEL",
void 0,"Share")}}});_.Q("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.le("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()};
_.F.setEmptyOverlayMetadata=function(){_.Q("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}))};
_.Hm.Object.defineProperties(A5.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoPanel)}}});
A5.prototype.onIsActiveChanged=A5.prototype.onIsActiveChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],A5.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],A5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],A5.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],A5.prototype,"isActive",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],A5.prototype,"hidden",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],A5.prototype,"useShortsIcon",void 0);_.G([_.H({value:"left"}),_.a("design:type",String)],A5.prototype,"buttonTooltipPosition",void 0);
_.G([_.H({value:_.Q("reels_enable_livingroom_layout")?"top":"left"}),_.a("design:type",String)],A5.prototype,"likeButtonTooltipPosition",void 0);_.G([_.H({value:"none"}),_.a("design:type",String)],A5.prototype,"textTransform",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"showScrubber",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"isWatchWhileMode",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.infoPanel"),_.a("design:type",Object),_.a("design:paramtypes",[])],A5.prototype,"hasInfoPanel",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"anchoredPanelActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"enableLivingroomLayout",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],A5.prototype,"enablePlayerMetadataContainer",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"enableSqueezebackPanels",void 0);_.G([_.H({selector:_.Cqi,reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"isSqueezebackActive",void 0);_.G([_.H({selector:ZYC,reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"smallScreenSqueezeback",void 0);
_.G([_.H({selector:EEP}),_.a("design:type",Object)],A5.prototype,"isPlayerStarted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"overlayDensity",void 0);_.G([_.H(),_.a("design:type",Object)],A5.prototype,"isOverlay",void 0);_.G([_.H({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.a("design:type",Boolean)],A5.prototype,"isShortsOverlay",void 0);_.G([_.H(),_.a("design:type",Object)],A5.prototype,"isImmersive",void 0);
_.G([_.H(),_.a("design:type",Object)],A5.prototype,"isImmersiveHorizontal",void 0);_.G([_.H({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.a("design:type",Boolean)],A5.prototype,"isShortsImmersive",void 0);_.G([_.H({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.a("design:type",Object)],A5.prototype,"buttonOverride",void 0);_.G([_.H({selector:_.$D,reflectToAttribute:!0}),_.a("design:type",Object)],A5.prototype,"isFullscreen",void 0);
_.G([_.xB("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],A5.prototype,"onIsActiveChanged",null);A5=_.G([_.f({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],A5);
_.L(A5,"ytd-reel-player-overlay-renderer",function(){if(Qie!==void 0)return Qie;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <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="[[buttonOverride]]" 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="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Qie=M},{mode:1});var I_T;var VF=function(){var M=_.n.apply(this,arguments)||this;M.videoDuration=0;M.playedTime=0;M.isActive=!1;M.JSC$19569_playerEvents=new Map;return M};
_.v(VF,_.n);_.F=VF.prototype;_.F.created=function(){this.JSC$19569_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19569_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.F.attached=function(){this.getPlayerAndInitializeListeners()};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19569_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ux(this,this.onPageChanged))};
_.F.getPlayerAndInitializeListeners=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return d=_.nO(),d?_.D(N,d.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ux(M,M.onPageChanged)),N.jumpTo(0));M.player=N.yieldResult;M.initializePlayerListeners();_.Vy(N)})};
_.F.onPageChanged=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?N.return():_.D(N,_.iG().getPlayerPromise(),2);d.player=N.yieldResult;d.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ux(d,d.onPageChanged));_.Vy(N)})};
_.F.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19569_playerEvents)};
_.F.onVideoDataChange=function(M){var d=this;return _.B(function(N){if(!d.player||M.type!=="newdata")return N.return();d.videoDuration=_.Q("web_shorts_use_progress_state_for_gapless")?d.player.getProgressState(M.playertype).seekableEnd:d.player.getDuration(M.playertype);d.playedTime=0;_.Vy(N)})};
_.F.onVideoProgress=function(M){var d=this,N,R;return _.B(function(X){if(!d.player)return X.return();N=d.player.getPresentingPlayerType();R=d.player.getPlayerState();d.videoDuration=_.Q("web_shorts_use_progress_state_for_gapless")?d.player.getProgressState(N).seekableEnd:d.player.getDuration(N);d.playedTime=R===0?d.videoDuration:M;_.Vy(X)})};
_.F.getPercentPlayed=function(M,d){return M?_.Ju(d/M,0,1):0};
_.Hm.Object.defineProperties(VF.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var M="";return M=this.videoDuration&&this.playedTime?M+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):M+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],VF.prototype,"componentBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],VF.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"player",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"videoDuration",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"playedTime",void 0);_.G([_.H(),_.a("design:type",Object)],VF.prototype,"isActive",void 0);
_.G([_.z("videoDuration","playedTime"),_.a("design:type",Number),_.a("design:paramtypes",[])],VF.prototype,"percentPlayed",null);_.G([_.z("videoDuration","playedTime"),_.a("design:type",Object),_.a("design:paramtypes",[])],VF.prototype,"percentPlayedStyle",null);_.G([_.z("videoDuration","isActive"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],VF.prototype,"hideProgressBar",null);
_.L(VF,"ytd-progress-bar-line",function(){if(I_T===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);I_T=M}M=I_T;return M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var v6G;_.aA(_.KVq,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var lP=function(){var M=_.n.apply(this,arguments)||this;M.playerState=null;M.isMuted=!1;M.shortsModernControlsEnabled=_.Q("web_shorts_modern_controls");M.volumeControlsOrientationState="vertical_down";var d;if(d=_.Q("web_shorts_pip_button"))_.h().resolve(_.Wtq),d=_.k_();M.shortsPipButtonEnabled=d;M.JSC$19572_playerEvents=new Map;return M};
_.v(lP,_.n);_.F=lP.prototype;_.F.created=function(){this.JSC$19572_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19572_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.F.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Tx(28662);this.playPauseButtonClientVE=_.Tx(36842);this.fullscreenButtonToggleOffClientVE=_.Tx(222256);this.fullscreenButtonToggleOnClientVE=_.Tx(222257);var M=_.Ou(),d=_.vl();M&&d&&(_.Q("combine_ve_grafts")?(_.NT(_.Nx(),this.muteButtonClientVE,d),_.NT(_.Nx(),this.playPauseButtonClientVE,d)):_.eU(M,d,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.F.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19572_playerEvents),this.player=null)};
_.F.getPlayerAndInitializeListeners=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return d=_.nO(),d?_.D(N,d.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ux(M,M.onPageChanged)),N.jumpTo(0));M.player=N.yieldResult;M.initializePlayerListeners();_.Vy(N)})};
_.F.onPageChanged=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?N.return():_.D(N,_.iG().getPlayerPromise(),2);d.player=N.yieldResult;d.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ux(d,d.onPageChanged));_.Vy(N)})};
_.F.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19572_playerEvents)};
_.F.onPlayerStateChange=function(M){this.playerState=M};
_.F.onPlayerVolumeChange=function(M){this.isMuted=M.muted};
_.F.onPlayPauseButtonClick=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.iG().getPlayerPromise(),2);d=R.yieldResult;(N=_.Ou())&&M.playPauseButtonClientVE&&_.eD(N,M.playPauseButtonClientVE);d.getPlayerState()!==1?d.playVideo():d.pauseVideo();_.Vy(R)})};
_.F.computePlayPauseIcon=function(M){return M===2||M===-1||M===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.F.computeFullscreenLabel=function(M){return M?_.le("FULLSCREEN_EXIT_LABEL"):_.le("FULLSCREEN_ENTER_LABEL")};
_.F.computeShortsPipLabel=function(M){return M?_.le("MINIPLAYER_CLOSE"):_.le("OPEN_IN_MINIPLAYER")};
_.F.computePlayPauseLabel=function(M){return M===1||M===3?_.le("PLAYER_LABEL_PAUSE"):_.le("PLAYER_LABEL_PLAY")};
_.F.onMuteButtonClick=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.iG().getPlayerPromise(),2);d=R.yieldResult;(N=_.Ou())&&M.muteButtonClientVE&&_.eD(N,M.muteButtonClientVE);d.isMuted()?d.unMute(!0):d.mute(!0);_.Vy(R)})};
_.F.computeMuteIcon=function(M){return M?"miniplayer:volume-off":"miniplayer:volume-up"};
_.F.computeMuteLabel=function(M){return M?_.le("PLAYER_LABEL_UNMUTE"):_.le("PLAYER_LABEL_MUTE")};
_.F.onFullscreenButtonClick=function(){var M=_.Ou();M&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.eD(M,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.eD(M,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.YdT()};
_.F.onShortsPipButtonClick=function(){var M=_.h().resolve(_.YO);if(_.Q("web_shorts_pip")){var d=_.h().resolve(_.et);M.isShortsPipActive()?d.deactivate():d.isMiniplayerActive()||(_.$O().shortsPipActivation=!0,_.r_9(d))}};
_.Hm.Object.defineProperties(lP.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var M=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){M.onPlayPauseButtonClick()},
disableBackdropFilter: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"}:{}}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],lP.prototype,"componentBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],lP.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],lP.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"player",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"playerState",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"isMuted",void 0);
_.G([_.H({computed:"computePlayPauseIcon(playerState)"}),_.a("design:type",String)],lP.prototype,"playPauseIcon",void 0);_.G([_.H({computed:"computeMuteIcon(isMuted)"}),_.a("design:type",String)],lP.prototype,"muteIcon",void 0);_.G([_.H({selector:_.$D}),_.a("design:type",Boolean)],lP.prototype,"isFullscreen",void 0);_.G([_.H({selector:_.BC}),_.a("design:type",Boolean)],lP.prototype,"isShortsPipActive",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lP.prototype,"shortsModernControlsEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"volumeControlsOrientationState",void 0);_.G([_.H(),_.a("design:type",Object)],lP.prototype,"shortsPipButtonEnabled",void 0);_.G([_.z("playerState"),_.a("design:type",Object),_.a("design:paramtypes",[])],lP.prototype,"playPauseButtonData",null);
_.G([_.z("isFullscreen"),_.a("design:type",Object),_.a("design:paramtypes",[])],lP.prototype,"fullscreenButtonData",null);_.G([_.z("isShortsPipActive"),_.a("design:type",Object),_.a("design:paramtypes",[])],lP.prototype,"shortsPipButtonData",null);_.G([_.z("isFullscreen"),_.a("design:type",String),_.a("design:paramtypes",[])],lP.prototype,"fullscreenIcon",null);_.G([_.z("isShortsPipActive"),_.a("design:type",String),_.a("design:paramtypes",[])],lP.prototype,"shortsPipIcon",null);
_.L(lP,"ytd-shorts-player-controls",function(){if(v6G===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);v6G=M}M=v6G;return M},{mode:1});var Ov9;_.eC(_.Pzt,"yt-interstitial-view-model",{props:{data:_.cA}});var jii=_.SG(function(M){var d=M.data;return _.g("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.g("h1",{class:"reelWatchBreakViewModelHostTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("h2",{class:"reelWatchBreakViewModelHostBody"},_.g(_.lG,{text:function(){return d().body},
isOverlay:!0})),_.g(_.ho,{data:function(){return d().buttons}},{buttonViewModel:function(N,R){return _.g("div",{class:function(){return R()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.g(_.o0,{data:N.data}))}}))},"qi");
jii.idomCompat=!0;_.eC(jii,"reel-watch-break-view-model",{props:{data:_.cA}});var $q=function(){return _.n.apply(this,arguments)||this};
_.v($q,_.n);$q.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}}};
_.Hm.Object.defineProperties($q.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.renderer,DzD)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.renderer,g6i)}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],$q.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$q.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.renderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$q.prototype,"isSurvey",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.renderer"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],$q.prototype,"isInterstitialViewModel",null);$q=_.G([_.f({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],$q);
_.L($q,"ytd-reel-non-video-content-renderer",function(){if(Ov9!==void 0)return Ov9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return Ov9=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var siq;_.eC(_.hqY,"desktop-shorts-player-controls",{});var B9=function(){var M=_.n.apply(this,arguments)||this;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.showPlayerControls=!1;M.showScrubber=!1;M.autoHideJobId=0;M.modern=_.Q("web_button_rework");M.overlayType=_.El("web_shorts_expanded_overlay_type");M.panelData=void 0;M.isWatchWhileMode=!1;M.hasError=!1;M.panelShowDelayMs=1;M.scrubberComponent={};M.useStamper=_.Q("web_shorts_enable_title_deflation");M.isFullscreen=!1;M.shouldHideOverlay=!1;M.enableAnchoredPanel=_.Q("desktop_shorts_v2_anchored_panel");
M.enablePersistentAnchoredPanel=_.Q("desktop_shorts_v2_persistent_anchored_panel");M.hideWatchWhilePanel=_.Q("web_shorts_hide_watch_while_panel");M.isPersistentPanelActive=!1;M.anchoredPanelActive=!1;M.isShortsPipActive=!1;M.smallScreenSqueezeback=!1;M.enableFlexibleOverlay=_.Q("web_enable_flexible_overlay");M.overlayDensity=0;M.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
M.onWindowResized=function(){_.OH(M,"calculateOverlayDensity",function(){M.calculateOverlayDensity()},100)};
return M};
_.v(B9,_.n);_.F=B9.prototype;_.F.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.F.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.F.shouldRenderOverlayControl=function(M){return!this.useStamper&&this.isVideoContent(M)};
_.F.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var M=_.h().resolve(_.g1);this.isWatchWhileMode&&(_.Q("web_enable_shorts_new_carousel")?_.IQ.addJob(function(){M.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):M.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.F.handleShowReelsCommentsOverlayCommand=function(M){M=_.q(M,pri);this.isActive&&(M==null?0:M.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.F.updateEngagementPanelVisibility=function(M,d){M&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:d?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:M}})};
_.F.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.F.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.h().resolve(_.YO).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.F.handleWatchWhilePanelScrimClick=function(){var M=_.h().resolve(_.g1);this.activeWatchWhilePanel&&(M.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.F.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.F.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.Q("web_enable_shorts_new_carousel")?0:void 0}}};
_.F.handlePlayerClick=function(M){var d=this,N,R;if((R=(N=window).matchMedia)!=null&&R.call(N,"(any-pointer: coarse)").matches||!M)this.showPlayerControls=!0,_.IQ.cancelJob(this.autoHideJobId),this.autoHideJobId=_.gL(_.IQ,function(){d.showPlayerControls=!1},4E3)};
_.F.isFirstReel=function(){return this.index===0};
_.F.handleMouseenter=function(){_.IQ.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.F.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.F.handleScrubberEnter=function(){this.showScrubber=!0};
_.F.handleScrubberLeave=function(){this.showScrubber=!1};
_.F.maybeLogNonDefaultAspectRatio=function(){var M;(M=this.data)!=null&&M.thumbnail&&this.isActive&&.5625!==YvJ(this.data.thumbnail)&&_.orZ("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.F.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var M=document.querySelector("#shorts-container");if(M){M=M.offsetWidth-96-this.playerContainer.offsetWidth-72;M=M>=720?1:M>=144?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&M===1&&(M=0);this.isPersistentPanelActive&&(M=0);this.overlayDensity=M;var d;(d=this.onOverlayDensityChanged)==null||d.call(this,this.index,this.overlayDensity)}}};
_.F.onOverlayDensityChange=function(){var M;(M=this.onOverlayDensityChanged)==null||M.call(this,this.index,this.overlayDensity);(M=_.K(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&M.set("overlayDensity",this.overlayDensity);if(M=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))M.overlayDensity=this.overlayDensity};
_.F.isVideoContent=function(M){_.h().resolve(_.YO);return!!_.q(M,_.$B)};
_.F.isNonVideoContent=function(M){_.h().resolve(_.YO);return!!_.q(M,_.ou)};
_.F.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Hm.Object.defineProperties(B9.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var M,d;return _.Q("web_enable_format_first")||((M=this.data)==null?void 0:M.adsOverlay)&&_.Q("web_enable_format_first_ads_only")||((d=this.data)==null?void 0:d.reelPlayerOverlayRenderer)&&_.Q("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isActive||!this.isPlayerStarted||(M=this.data)!=null&&M.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var M;if(this.useStamper&&((M=this.data)==null?0:M.command)&&this.isVideoContent(this.data.command)){var d,N;if(((d=this.data)==null?0:d.adsOverlay)&&Object.keys((N=this.data)==null?void 0:N.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var R,X;if(((R=this.data)==null?0:R.reelPlayerOverlayRenderer)&&Object.keys((X=this.data)==null?void 0:X.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
B9.prototype.onOverlayDensityChange=B9.prototype.onOverlayDensityChange;B9.prototype.calculateOverlayDensity=B9.prototype.calculateOverlayDensity;B9.prototype.maybeLogNonDefaultAspectRatio=B9.prototype.maybeLogNonDefaultAspectRatio;B9.prototype.onEngagementPanelsChanged=B9.prototype.onEngagementPanelsChanged;B9.prototype.onScrubberDataChange=B9.prototype.onScrubberDataChange;B9.prototype.updateShouldHideOverlay=B9.prototype.updateShouldHideOverlay;
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],B9.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],B9.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],B9.prototype,"index",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],B9.prototype,"isActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],B9.prototype,"isHiddenInDom",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"isPlayerPaused",void 0);_.G([_.H({selector:EEP}),_.a("design:type",Object)],B9.prototype,"isPlayerStarted",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"showPlayerControls",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"showScrubber",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"autoHideJobId",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"overlayType",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],B9.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],B9.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"watchWhileEngagementPanels",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"panelData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isWatchWhileMode",void 0);_.G([_.H(),_.a("design:type",String)],B9.prototype,"activeWatchWhilePanel",void 0);
_.G([_.H(),_.a("design:type",Object)],B9.prototype,"hasError",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"panelShowDelayMs",void 0);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"scrubberComponent",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"useStamper",void 0);_.G([_.H({selector:_.$D,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isFullscreen",void 0);
_.G([_.H(),_.a("design:type",Object)],B9.prototype,"shouldHideOverlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"enableAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"enablePersistentAnchoredPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"hideWatchWhilePanel",void 0);
_.G([_.H({selector:_.Cqi,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isPersistentPanelActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"anchoredPanelActive",void 0);_.G([_.H({selector:_.BC,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"isShortsPipActive",void 0);_.G([_.H({selector:ZYC,reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"smallScreenSqueezeback",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"enableFormatFirst",null);_.G([_.H(),_.a("design:type",Object)],B9.prototype,"enableFlexibleOverlay",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],B9.prototype,"overlayDensity",void 0);_.G([_.H(),_.a("design:type",Function)],B9.prototype,"onOverlayDensityChanged",void 0);
_.G([_.H(),_.z("isActive","hasError"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"shouldRenderPlayerElements",null);_.G([_.H(),_.z("isActive","isWatchWhileMode"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"watchWhileOrPersistentActive",null);_.G([_.xB("isActive","hasError","showingExpandedOverlay"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"updateShouldHideOverlay",null);
_.G([_.H({reflectToAttribute:!0}),_.z("isActive","isPlayerStarted","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"shouldRenderScrubber",null);_.G([_.xB("shouldRenderScrubber"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"onScrubberDataChange",null);_.G([_.z("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.a("design:type",Object),_.a("design:paramtypes",[])],B9.prototype,"overlayComponent",null);
_.G([_.xB("watchWhileEngagementPanels"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"onEngagementPanelsChanged",null);_.G([_.Z3("#player-container"),_.a("design:type",HTMLElement)],B9.prototype,"playerContainer",void 0);_.G([_.Z3("#cinematic-container"),_.a("design:type",HTMLElement)],B9.prototype,"cinematicContainer",void 0);
_.G([_.xB("isPersistentPanelActive","data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"maybeLogNonDefaultAspectRatio",null);_.G([_.xB("isPersistentPanelActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"calculateOverlayDensity",null);_.G([_.xB("overlayDensity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],B9.prototype,"onOverlayDensityChange",null);
B9=_.G([_.f({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],B9);
_.L(B9,"ytd-reel-video-renderer",function(){if(siq!==void 0)return siq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" 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="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return siq=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var kq=function(){var M=_.n.apply(this,arguments)||this;M.isPreviousPageShorts=!1;M.index=0;M.delayedActiveIndex=0;M.playablePreviousIndex=null;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.intersectionObserverThreshold=.6;M.fitToVisibleBounds=!1;M.pageSubtype="shorts";M.panelShowDelayMs=_.ZR("enable_shorts_panel_show_delay_ms");M.enablePreviousContinuation=_.Q("shorts_in_playlists_web");M.shortsPipEnabled=_.Q("web_shorts_pip");M.isDark=document.documentElement.hasAttribute("dark");M.shortsViewTransitions=
_.Q("web_shorts_view_transitions");M.isFullscreen=!1;M.isShortsPipActive=!1;M.buttonOverride={iconPosition:"icon-only",size:"XL"};M.anchoredPanelActive=!1;M.isActive=!1;M.smallScreenPersistentPanel=!1;M.isPersistentPanelActive=!1;M.smallScreenSqueezeBack=!1;M.enableScrollIntoViewCenter=_.Q("web_scroll_into_view_center");M.formatFirst=_.Q("web_enable_format_first")||_.Q("web_enable_format_first_ads_only")||_.Q("web_enable_format_first_organic_only");M.enableFlexibleOverlay=_.Q("web_enable_flexible_overlay");
M.isShortsInitialized=!1;M.hidePreviousButtonImmediately=!1;M.showPreviousButtonImmediately=!1;M.endOfNextContinuation=!1;M.currentPlayerIndex=0;M.nextReelVe=_.Tx(56921);M.prevReelVe=_.Tx(56922);M.loopToggleOffVe=_.Tx(198013);M.loopToggleOnVe=_.Tx(198014);M.ambientModeToggleVe=_.Tx(227860);M.reelPlayerPausedStateRendererVe=_.Tx(141313);M.storedPlaybackSpeed=null;M.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts"};M.onOverlayDensityChanged=function(d,N){var R;(R=M.getActiveReelVideo(d))==null||R.setAttribute("overlay-density",String(N))};
return M};
_.v(kq,_.n);_.F=kq.prototype;
_.F.deflateInactivePreviousSlides=function(){var M=_.ZR("web_shorts_deflate_inactive_slides_aggressive_distance");if(M>0&&this.shortsProcessedSequence&&this.activeIndex){M=this.activeIndex-M;for(var d=0;d<=M;d++){var N=void 0;((N=this.shortsProcessedSequence[d].reelPlayerOverlayRenderer)==null?0:N.likeButton)&&this.set("shortsProcessedSequence."+d+".reelPlayerOverlayRenderer",{});N=void 0;((N=this.shortsProcessedSequence[d].adsOverlay)==null?0:N.adSlotMetadata)&&this.set("shortsProcessedSequence."+d+
".adsOverlay",{})}}};
_.F.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.F.onResize=function(){var M=_.iY(),d=M.dispatch,N=this.calculateIsSmallWidth();d.call(M,_.YS({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:N}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.F.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:_.Q("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.F.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var M=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,d=M,N=0;M<250&&(d=M+this.shortsInnerContainer.clientWidth,N=24);_.UO(this.hostElement,{"--ytd-shorts-header-width":d+"px","--ytd-shorts-top-spacing":N+"px"})}};
_.F.isFirstShorts=function(M){return M?this.index===-M.length:this.index===0};
_.F.isActiveReel=function(M,d,N){N&&(d=this.calculatePrevIndex(d,N));return M===d};
_.F.onFullscreenChange=function(){if(_.Q("web_fullscreen_shorts")){var M;(M=this.getActiveReelVideo(this.activeIndex))==null||M.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.h().resolve(_.et).close(!0)}};
_.F.engagementPanelsChanged=function(){var M;this.watchWhileEngagementPanels=(M=this.data)==null?void 0:M.engagementPanels};
_.F.unregisterPanels=function(){var M=_.h().resolve(_.g1);if(this.watchWhileEngagementPanels)for(var d=_.V(this.watchWhileEngagementPanels),N=d.next();!N.done;N=d.next()){var R=void 0,X=void 0;N=(R=N.value.engagementPanelSectionListRenderer)==null?void 0:(X=R.identifier)==null?void 0:X.tag;M&&N&&M.panelMap.delete(N)}};
_.F.isVideoContent=function(M){return this.isVideoContentCommand(M==null?void 0:M.command)};
_.F.getActiveReelVideo=function(M){return _.K(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+M+'"]')};
_.F.calculatePrevIndex=function(M,d){return d?M-((d==null?void 0:d.length)||0):-1};
_.F.onKeydown=function(M){var d=_.J2(M)||[];if(!_.Ckr(d))if(M.code==="ArrowUp")M.preventDefault(),this.handlePrevButtonClick();else if(M.code==="ArrowDown")M.preventDefault(),this.handleNextButtonClick();else if(M.code==="KeyM")this.toggleMuteUnmuteVideo();else if(M.code==="KeyK"||M.code==="Space")this.togglePlayPauseVideo();else if((M.code==="KeyA"||M.code==="ArrowLeft")&&_.Q("web_shorts_keyboard_enable_seek_shortcuts")){var N;(N=this.player)==null||N.seekBy(-5)}else if((M.code==="KeyD"||M.code===
"ArrowRight")&&_.Q("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var R;(R=this.player)==null||R.seekBy(5)}};
_.F.onServiceRequestCompleted=function(M,d){M=d.data;M.continuationEndpoint&&M.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:M.entries,continuationEndpoint:M.continuationEndpoint}}):M.prevContinuationEndpoint&&M.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:M.prevEntries,prevContinuationEndpoint:M.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.F.handleEngagementPanelVisibilityChanged=function(M,d){var N=_.h().resolve(_.g1);if(M&&N){var R,X=((R=M.identifier)==null?void 0:R.tag)||M.panelIdentifier||M.targetId;if(d==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==X){N.hidePanel(this.activePanel);var A;this.activePanel=((A=M.identifier)==null?void 0:A.tag)||M.panelIdentifier}else this.isPersistentPanelActive=!0,_.iY().dispatch(FU9(!0)),this.anchoredPanelActive=!0,this.activePanel=X;else d==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===X&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.iY().dispatch(FU9(!1)))}};
_.F.handlePanelScrimClick=function(){var M=_.h().resolve(_.g1);this.activePanel&&(M.hidePanel(this.activePanel),_.iY().dispatch(FU9(!1)))};
_.F.getShortsLoopSetting=function(){var M,d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return _.Q("kevlar_shorts_auto_advance")?_.D(A,_.mT.getInstance(),2):A.return(!0);case 2:return(M=A.yieldResult)?_.D(A,M.get("sfvles"),3):A.return(!0);case 3:return N=(d=A.yieldResult)!=null?d:!1,_.D(A,M.get("sfvle"),4);case 4:return X=(R=A.yieldResult)!=null?R:!0,N?A.return(X):A.return(!0)}})};
_.F.handleSignalActionToggleLoopShortsOff=function(){var M=this,d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!M.player)return X.return();M.player.setLoopVideo(!1);d=_.Nx();_.XD(d,M.loopToggleOffVe);return _.D(X,_.mT.getInstance(),2);case 2:return(N=X.yieldResult)?_.D(X,N.set("sfvle",!1),3):X.return();case 3:return _.D(X,N.set("sfvles",!0),4);case 4:R=_.kS(),_.TR(0,203,!1),_.TR(0,204,!0),R.save(),_.Vy(X)}})};
_.F.handleSignalActionToggleLoopShortsOn=function(){var M=this,d,N,R;return _.B(function(X){switch(X.nextAddress){case 1:if(!M.player)return X.return();M.player.setLoopVideo(!0);d=_.Nx();_.XD(d,M.loopToggleOnVe);return _.D(X,_.mT.getInstance(),2);case 2:return(N=X.yieldResult)?_.D(X,N.set("sfvle",!0),3):X.return();case 3:return _.D(X,N.set("sfvles",!0),4);case 4:R=_.kS(),_.TR(0,203,!0),_.TR(0,204,!0),R.save(),_.Vy(X)}})};
_.F.handleSignalActionToggleCinematicShortsOn=function(){xj9(!0);var M;(M=this.JSC$19597_cinematicController)==null||_.UjT(M,!0);_.XD(_.Nx(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.F.handleSignalActionToggleCinematicShortsOff=function(){xj9(!1);var M;(M=this.JSC$19597_cinematicController)==null||_.UjT(M,!1);_.XD(_.Nx(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.F.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.F.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.F.unhideCurrentOverlay=function(){if(this.overlayContainer){var M=this.overlayContainer.querySelector("#experiment-overlay");M&&_.IQ.addLowPriorityJob(function(){M.style.display="unset"},100)}};
_.F.getCurrentShort=function(){if(this.currentEndpoint){var M=this.currentEndpoint;if(this.isNonVideoContentCommand(M)){var d=_.q(M,_.ou);return{reelNonVideoContentRenderer:_.q(d==null?void 0:d.renderer,_.h0V),command:M}}if(this.data){var N;d=(N=_.q(this.currentEndpoint,_.$B))==null?void 0:N.thumbnail;var R;N=(R=this.data.overlay)==null?void 0:R.reelPlayerOverlayRenderer;_.h().resolve(_.YO);var X,A;R=_.q((X=this.data.overlay)==null?void 0:(A=X.shortsAdsRenderer)==null?void 0:A.overlay,_.MIL);M=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.q(this.currentEndpoint,_.$B),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:N,thumbnail:d,command:M,adsOverlay:R}}}};
_.F.created=function(){var M=this;this.scrollToVideoThrottle=new _.ua(function(d){var N;(N=M.getActiveReelVideo(d))==null||N.scrollIntoView({behavior:"smooth",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.ua(function(d){var N;(N=M.getActiveReelVideo(d))==null||N.scrollIntoView({behavior:"auto",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.F.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.F.attached=function(){var M=this;ReY(this);this.pageScrollElement=_.K(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ux(this,this.processResetAction));_.Q("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.Q("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var d=M.getActiveReelVideo(M.activeIndex);
M.maybeCreateIntersectionObserver();d==null||d.scrollIntoView({behavior:"instant",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"});M.shortsContainer.style.overflowY="scroll"}))};
_.F.calculateSqueezebackPanelSize=function(){var M=this,d=window.innerWidth-456-(window.innerHeight-106)*.5625;_.IQ.addLowPriorityJob(function(){d<360?_.iY().dispatch(An9(!0)):(M.hostElement.style.setProperty("--anchored-panel-width",Math.min(d,480)+"px"),_.iY().dispatch(An9(!1)))})};
_.F.detached=function(){var M=_.h().resolve(_.YO);M.rootElement=void 0;var d;(d=M.unsubscribeFromStore)==null||d.call(M);M.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ux(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.F.onResizeFinished=function(M,d){var N=this,R=new ResizeObserver(function(){N.shortsContainer.style.overflowY="hidden";_.IQ.addLowPriorityJob(function(){d()},100)});
R.observe(M);return R};
_.F.resetDocumentScrollTop=function(){var M,d;if((M=document)==null?0:(d=M.scrollingElement)==null?0:d.scrollTop)document.scrollingElement.scrollTop=0};
_.F.loadPage_=function(M){var d=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),M){var N;if((N=_.q(this.currentEndpoint,_.$B))==null?0:N.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=M;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){d.isPlayerStarted&&
(d.handleOnPlaybackCommand(),d.afterPlayerStarted=function(){})};
this.registerPanel(M)}};
_.F.afterPlayerStarted=function(){};
_.F.handleOnPlaybackCommand=function(){if(_.Q("web_shorts_comment_stickers")&&this.isPlayerStarted){var M,d=(M=_.q(this.currentEndpoint,_.$B))==null?void 0:M.onPlaybackCommand;d&&this.ytComponentBehavior.resolveCommand(d)}};
_.F.maybeCreateIntersectionObserver=function(){var M=this,d=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==d){this.intersectionObserverThreshold=d;var N={rootMargin:"0px",threshold:d},R;(R=this.intersectionObserver)==null||R.disconnect();this.intersectionObserver=new IntersectionObserver(function(X){X=_.V(X);for(var A=X.next();!A.done;A=X.next())if(A=A.value,A.intersectionRatio>d){A=Number(A.target.id);if(isNaN(A))break;if(A===M.index)break;
_.gkZ();M.loadVideo(A);_.jD("r_vtc")}},N);
this.observeShorts()}};
_.F.observeShorts=function(){var M=[].concat(_.wu(_.K(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;(N=this.intersectionObserver)==null||N.observe(d)}};
_.F.initCsi=function(){_.m5("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var M={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},d,N;if((d=this.playerData)==null?0:(N=d.cacheMetadata)==null?0:N.isCacheHit)M.isCacheHit=!0;var R;if(d=(R=_.q(this.currentEndpoint,_.$B))==null?void 0:
R.prefetchTaskId)M.prefetchInfo={taskId:d};_.qi(M)};
_.F.isAd=function(){var M,d;return!!((M=_.q(this.currentEndpoint,_.$B))==null?0:(d=M.adClientParams)==null?0:d.isAd)};
_.F.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.F.getPlayerContainer=function(){var M;return(M=_.K(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:M.playerContainer};
_.F.onPlayerStateChange=function(M){var d=this;this.isPlayerPaused=M===2;M!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?M===1&&this.index===0&&(this.isPlayerStarted||_.iY().dispatch(N5(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.iY().dispatch(N5(!0)));this.player&&!this.player.getLoopVideo()&&_.IQ.addLowPriorityJob(function(){d.getShortsLoopSetting().then(function(N){var R;(R=d.player)==null||R.setLoopVideo(N)})});
this.isPlayerPaused&&_.Q("web_shorts_paused_state_logging")&&_.zR(_.Ou(),[this.reelPlayerPausedStateRendererVe])};
_.F.isInBackground=function(){var M=window.document.visibilityState;return!(!M||M==="visible")};
_.F.isShortPlayable=function(){if(_.Q("kevlar_playable_short_killswitch"))return!0;var M;return(M=this.playerData)!=null&&M.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.F.setNormalPlaybackSpeed=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.getPlayer().getPlayerPromise(),2);d=R.yieldResult;N=d.getPlaybackRate();N!==1&&(M.storedPlaybackSpeed=N,d.setPlaybackRate(1));_.Vy(R)})};
_.F.restorePlaybackSpeed=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1)return M.storedPlaybackSpeed===null?N.jumpTo(0):_.D(N,M.getPlayer().getPlayerPromise(),3);d=N.yieldResult;d.setPlaybackRate(M.storedPlaybackSpeed);M.storedPlaybackSpeed=null;_.Vy(N)})};
_.F.playerDataChanged=function(){var M=this,d,N,R,X,A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1){d=M.getPlayer();_.Q("web_shorts_dynamic_intersection_observer_threshold")&&((N=M.intersectionObserver)==null||N.disconnect());if(M.playerData){if(((R=M.playerData.videoDetails)==null?void 0:R.videoId)!==((X=d.getPlayer())==null?void 0:X.getVideoData().video_id)){A={};if(l=_.q(M.currentEndpoint,_.$B))A.watch_endpoint=l,l.endTimeSeconds&&(A.end=l.endTimeSeconds);d.loadVideoWithPlayerResponse(M.playerData,
A)}}else return w.return();return M.player?w.jumpTo(2):_.D(w,d.getPlayerPromise(),3)}w.nextAddress!=2&&(M.player=w.yieldResult,M.JSC$19597_playerStateChangeListener=M.onPlayerStateChange.bind(M),M.player.addEventListener("onStateChange",M.JSC$19597_playerStateChangeListener),_.Q("kevlar_client_enable_shorts_player_bootstrap")&&_.Gf(),M.scrollToVideoThrottle.fire(M.index),M.movePlayerToVideo(M.index),_.IQ.addLowPriorityJob(function(){M.getShortsLoopSetting().then(function(p){var m;(m=M.player)==null||
m.setLoopVideo(p)})}),_.u13.resolve(M.player),M.player.syncVolume(),M.getPlayer().focusOnPlayer());
_.Q("web_shorts_caption_language_entity_killswitch")||_.IQ.addLowPriorityJob(function(){var p=_.h().resolve(_.YO),m,I=(m=M.player)==null?void 0:m.getOption("captions","track");m=_.Nr("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(I){var O;((O=_.FT(_.vI6,m)())==null?void 0:O.value)!==I.displayName&&p.store.dispatch(_.la("stringEntity",m,{key:m,value:I.displayName||""}))}else p.store.dispatch(_.la("stringEntity",m,{key:m,value:"CAPTIONS_UNAVAILABLE"}))});
_.IQ.addLowPriorityJob(function(){M.observeShorts()},100);
k=M.player.getPlayerState(M.player.getPresentingPlayerType());k!==1||M.isPlayerStarted||_.iY().dispatch(N5(!0));M.updateBackNavContainerWidth();T=_.q(M.currentEndpoint,_.$B);((W=T)==null?0:W.startTimeSeconds)&&M.player.seekTo(T.startTimeSeconds);if(M.JSC$19597_cinematicController||M.cinematicsInitializeJobId)return w.return();M.cinematicsInitializeJobId=_.IQ.addLowPriorityJob(function(){M.initCinematicController();M.cinematicsInitializeJobId=void 0});
_.Vy(w)})};
_.F.onShortUndoDismiss=function(){var M=this,d=XrC().pop();d!==void 0&&(_.bM(this,function(){M.showCardWithIndex(d)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.F.onShortsDismiss=function(M){if(M=M.detail.reelDismissalActionRenderer)(M=_.q(M.onDismissalCompletionRenderer,_.vEY))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:M}}}),this.scrollAndDismissCard()};
_.F.processReelNonVideoContentDismissalCommand=function(M){var d=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);M=_.q(M,wrG);this.activeDimissalTimeout=setTimeout(function(){d.scrollAndDismissCard()},Number(M==null?void 0:M.delayMs))};
_.F.scrollAndDismissCard=function(){var M=this,d=this.index;XrC().push(d);_.bM(this,function(){var N=M.getPlayableNextIndex();N!==null&&(N=M.getActiveReelVideo(N),M.hideCardWithIndex(d),N==null||N.scrollIntoView({behavior:"smooth",block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"}))})};
_.F.hideCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!0};
_.F.showCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!1};
_.F.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.F.activeChanged=function(M){_.iY().dispatch(_.YS({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:M}}));if(M)document.addEventListener("keydown",_.ux(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var d;(d=this.player)==null||d.sendAbandonmentPing()}var N;(N=this.player)==null||N.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ux(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.F.graftClientVisualElements=function(){if(this.data){var M=_.Nx();_.uBC(M,_.RD({response:this.reelWatchSequenceResponse}));_.NT(M,this.nextReelVe);_.NT(M,this.prevReelVe);_.Q("kevlar_shorts_auto_advance")&&(_.NT(M,this.loopToggleOffVe),_.NT(M,this.loopToggleOnVe));_.NT(M,this.ambientModeToggleVe);_.zR(_.Ou(),[this.nextReelVe,this.prevReelVe]);_.Q("web_shorts_paused_state_logging")&&_.NT(M,this.reelPlayerPausedStateRendererVe)}};
_.F.graftNvcRenderer=function(){var M,d,N,R,X=this.index<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(d=M[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:d.command:(N=this.shortsProcessedSequence)==null?void 0:(R=N[this.index])==null?void 0:R.command;if(X&&this.isNonVideoContentCommand(X)){M=_.q(X,_.ou);var A,l;(M=(A=_.q(M==null?void 0:M.renderer,_.h0V))==null?void 0:(l=A.loggingDirectives)==null?void 0:l.trackingParams)&&_.Nx().graftServerVe(M)}};
_.F.setActiveIndex=function(){_.h().resolve(_.YO).setActiveIndex(this.index)};
_.F.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.F.lazyUpdateMiniplayerData=function(){var M=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.IQ.addLowPriorityJob(function(){M.updateMiniplayerData();M.updateMiniplayerDataJobId=void 0}))};
_.F.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.IQ.cancelJob(this.updateMiniplayerDataJobId)};
_.F.updateMiniplayerData=function(){var M,d,N,R=_.h().resolve(_.et),X={shortsData:this.getCurrentShort(),previousButtonDisabled:!((M=this.prevButtonData)==null||!M.isDisabled),nextButtonDisabled:!((d=this.nextButtonData)==null||!d.isDisabled),playabilityStatus:(N=this.playerData)==null?void 0:N.playabilityStatus};_.kK(R,X)};
_.F.resetPlayerLocation=function(){var M=this.getPlayer();this.initialPlayerContainer&&(M.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.F.movePlayerToVideo=function(M,d){var N=this;d=d===void 0?!0:d;var R=this.getActiveReelVideo(M),X=this.getPlayer();if(R){this.overlayContainer||(this.overlayContainer=_.K(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||X.appendTo(this.overlayContainer.playerContainer,void 0,!0));R.appendChild(this.overlayContainer);var A;(A=this.player)==null||A.setSize(NaN,NaN);this.isActive||_.gL(_.IQ,function(){N.isActive=!0});
X.style.visibility="visible";_.Q("reels_web_disable_rtr_tick")||_.Q("reels_web_use_pbs_first_shorts")&&M===0||_.v1("r_tr");this.currentPlayerIndex=M;R.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else d?_.IQ.addLowPriorityJob(function(){N.movePlayerToVideo(N.index,!1)}):Math.random()<=_.ZR("web_shorts_error_logging_threshold")&&_.IR(new _.WJ("Trying to movePlayerToVideo with undefined container.",{firstAttempt:d,
index:M}))};
_.F.enableFormatFirst=function(M){return _.Q("web_enable_format_first")||M.adsOverlay&&_.Q("web_enable_format_first_ads_only")||M.reelPlayerOverlayRenderer&&_.Q("web_enable_format_first_organic_only")};
_.F.getAspectRatio=function(M){if(M!=null&&M.thumbnail&&this.enableFormatFirst(M))return"--ytd-shorts-player-ratio: "+YvJ(M.thumbnail)};
_.F.getBackgroundImage=function(M){if(M!=null&&M.thumbnail)return(M=_.nq(M.thumbnail.thumbnails))?'background-image:url("'+M+'");':"background-color:black;"};
_.F.onPersistentPanelActiveChanged=function(){var M=this.getCurrentShort();if(M&&this.enableFormatFirst(M)&&(M==null?0:M.thumbnail)&&YvJ(M.thumbnail)!==.5625){var d;(d=this.player)==null||d.setSize(NaN,NaN)}};
_.F.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.F.maybeMoveCinematicsToVideo=function(){var M=this;this.cinematicTransitionJobId&&_.IQ.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.IQ.addLowPriorityJob(function(){M.moveCinematicsToVideo()},500)};
_.F.moveCinematicsToVideo=function(){var M;(M=this.JSC$19597_cinematicController)!=null&&(M=M.currentCinematicEffect)!=null&&(M=M.storyboardManager,M.paused=!1,_.oEd(M),M.update());M=_.K(this.hostElement).querySelector("ytd-reel-video-renderer");(M==null?0:M.cinematicContainer)&&M.cinematicContainer!==this.shortsCinematicContainer.parentElement&&M.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.F.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.F.updatePrevButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(M){var d;this.prevButtonData=M=Object.assign({},M,{accessibility:{label:_.le("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:M.isDisabled||this.index===-(((d=this.shortsProcessedPrevSequence)==null?void 0:d.length)||0),tooltip:this.isUpArrowHidden?"":_.le("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=M=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.F.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.F.updateNextButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(M){var d;this.nextButtonData=M=Object.assign({},M,{accessibility:{label:_.le("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:M.isDisabled||this.index===((d=this.shortsProcessedSequence)==null?void 0:d.length),tooltip:_.le("NEXT_VIDEO_LABEL")||""})}};
_.F.getPlayablePreviousIndex=function(){for(var M,d=this.index-1;d>=-(((M=this.prevShortsSequence)==null?void 0:M.length)||0);d--)if(!XrC().includes(d))return d;return null};
_.F.getIndexInSequence=function(M,d){return M.findIndex(function(N){var R;return((R=_.q(N.command,_.$B))==null?void 0:R.videoId)===d})};
_.F.handlePrevButtonClick=function(M){var d=this,N,R;return _.B(function(X){N=d.getPlayablePreviousIndex();if(N===null)return X.return();d.gestureType=((R=M)==null?void 0:R.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";N===0&&(d.hidePreviousButtonImmediately=!0);if(d.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){d.transitionToVideoThrottle.fire(N)}),X.return();
d.scrollToVideoThrottle.fire(N);_.Vy(X)})};
_.F.getPlayableNextIndex=function(){for(var M,d=this.index+1;d<(((M=this.shortsProcessedSequence)==null?void 0:M.length)||0);d++)if(!XrC().includes(d))return d;return null};
_.F.handleNextButtonClick=function(M,d){var N=this,R,X;return _.B(function(A){R=N.getPlayableNextIndex();if(R===null)return A.return();R===1&&(N.showPreviousButtonImmediately=!0);N.gestureType=((X=M)==null?void 0:X.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";d&&(N.gestureType=d);if(N.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){N.transitionToVideoThrottle.fire(R)}),A.return();
N.scrollToVideoThrottle.fire(R);_.Vy(A)})};
_.F.handleReelNavigateCommand=function(M,d,N){(M=_.q(M,WUP))&&d&&M.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(N)};
_.F.loadVideo=function(M,d){d=d===void 0?!1:d;if(M!==this.currentPlayerIndex){_.iY().dispatch(N5(!1));if(this.isAd()&&!d){var N;(N=this.player)==null||N.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.IQ.cancelJob(this.cinematicTransitionJobId);if((d=this.JSC$19597_cinematicController)!=null){var R;(R=d.currentCinematicEffect)==null||R.pause()}if((R=this.JSC$19597_cinematicController)!=null){var X;(X=R.currentCinematicEffect)==null||X.clear()}R=M>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(R));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var A,l,k,T;X=M<0?(A=this.shortsProcessedPrevSequence)==null?void 0:(l=A[this.shortsProcessedPrevSequence.length+M])==null?void 0:l.command:(k=this.shortsProcessedSequence)==null?void 0:(T=k[M])==null?void 0:T.command;this.index=M;this.gestureType||(this.gestureType=R?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");X&&this.isVideoContentCommand(X)&&(this.ytComponentBehavior.resolveCommand(X,{form:{createScreenConfig:{clickedVisualElement:R?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(X&&this.isNonVideoContentCommand(X)){this.currentEndpoint=X;this.data=void 0;A=_.Nx();l=_.q(X,_.ou);var W,w;(l=(W=_.q(l==null?void 0:l.renderer,_.h0V))==null?void 0:(w=W.screenLoggingData)==null?void 0:w.screenVeType)&&_.dm(A,
l);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}W=_.ZR("reels_enable_early_continuation_offset")<=0?1:_.ZR("reels_enable_early_continuation_offset");var p,m;if(((p=this.reelWatchSequenceResponse)==null?0:p.continuationEndpoint)&&((m=this.reelWatchSequenceResponse)==null?0:m.entries)&&M===this.reelWatchSequenceResponse.entries.length-W){var I,O;p={contentPlaybackContext:_.BN({},(O=_.q((I=this.currentEndpoint)==null?void 0:I.commandMetadata,_.an))==null?void 0:
O.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:p})}var y,c,e;((y=this.reelWatchSequenceResponse)==null?0:y.prevContinuationEndpoint)&&M===-(((c=this.reelWatchSequenceResponse)==null?void 0:(e=c.prevEntries)==null?void 0:e.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.F.setMiniplayerPreview=function(M){M=(M===void 0?0:M)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var d,N,R=_.h().resolve(_.et),X={shortsData:void 0,shortsPreviewThumbnail:M?(d=this.shortsProcessedSequence)==null?void 0:(N=d[M])==null?void 0:N.thumbnail:void 0};_.kK(R,X)};
_.F.updateTitle=function(M){var d,N;M=(M==null?0:M.adPlacements)?"":(N=M==null?void 0:(d=M.videoDetails)==null?void 0:d.title)!=null?N:"";_.YP(this.hostElement,"yt-update-title",M)};
_.F.registerPanel=function(M){var d=_.h().resolve(_.g1);if(d){M=_.V(M.engagementPanels||[]);for(var N=M.next();!N.done;N=M.next()){N=N.value;var R=N.engagementPanelSectionListRenderer,X=void 0,A=void 0,l=void 0,k=void 0,T=((X=R)==null?void 0:X.targetId)||((A=R)==null?void 0:A.panelIdentifier)||((l=R)==null?void 0:(k=l.identifier)==null?void 0:k.tag);X=R=void 0;(X=(R=d).registerPanelContent)==null||X.call(R,T,N)}}};
_.F.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;_.iY().dispatch(N5(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.iY().dispatch(FU9(!1));var M=_.h().resolve(_.YO);M.dismissedIndices=[];M.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.h().resolve(_.et).close(!0)};
_.F.processAppendReelWatchSequenceContinuationEntriesAction=function(M){var d=this,N;(N=this.intersectionObserver)==null||N.disconnect();M=M.appendReelWatchSequenceContinuationEntriesAction;if(M==null?0:M.entries){var R;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.wu(((R=this.reelWatchSequenceResponse)==null?void 0:R.entries)||[]),_.wu(M.entries)),continuationEndpoint:M.continuationEndpoint})}else if(M==null?0:M.prevEntries){var X;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.wu(((X=this.reelWatchSequenceResponse)==null?void 0:X.prevEntries)||[]),_.wu(M.prevEntries)),prevContinuationEndpoint:M.prevContinuationEndpoint});_.IQ.addLowPriorityJob(function(){d.movePlayerToVideo(d.index);var A;(A=d.getActiveReelVideo(d.index))==null||A.scrollIntoView({block:"nearest",inline:d.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.IQ.addLowPriorityJob(function(){d.observeShorts()},100)};
_.F.processWatchSequence=function(M){var d=this;return M.map(function(N){N=N.command;if(d.isVideoContentCommand(N)){var R=_.q(N,_.$B);return{reelPlayerOverlayRenderer:_.q(R==null?void 0:R.overlay,_.QHL),thumbnail:R.thumbnail,command:N}}return d.isNonVideoContentCommand(N)?(R=_.q(N,_.ou),{reelNonVideoContentRenderer:_.q(R==null?void 0:R.renderer,_.h0V),command:N}):{command:N}})};
_.F.calculateIntersectionObserverThreshold=function(){if(!_.Q("web_shorts_dynamic_intersection_observer_threshold"))return.6;var M=_.K(this.hostElement).querySelector("ytd-reel-video-renderer"),d=1;(M==null?0:M.offsetHeight)&&(M==null?0:M.offsetWidth)&&(d=Math.min(M.offsetHeight,this.shortsContainer.offsetHeight)/M.offsetHeight*(Math.min(M.offsetWidth,this.shortsContainer.offsetWidth)/M.offsetWidth));return Math.round(d*.6*10)/10};
_.F.isVideoContentCommand=function(M){_.h().resolve(_.YO);return!!_.q(M,_.$B)};
_.F.isNonVideoContentCommand=function(M){_.h().resolve(_.YO);return!!_.q(M,_.ou)};
_.F.initCinematicController=function(){var M=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19597_cinematicController=new _.M5(this.shortsCinematicContainer,this.player);var d,N=_.q((d=this.data)==null?void 0:d.background,_.Ww);_.udP(this.JSC$19597_cinematicController,N);_.UjT(this.JSC$19597_cinematicController,CqY(N));_.aZr(this.JSC$19597_cinematicController);_.IQ.addLowPriorityJob(function(){M.moveCinematicsToVideo()})}};
_.F.handleMiniplayerNavigateShorts=function(M){M==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():M==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.F.shouldDisplayReelVideoOverlay=function(M,d){return _.Q("web_enable_shorts_new_carousel")?Math.abs(M-d)<2:!0};
_.Hm.Object.defineProperties(kq.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.prevEntries)return this.processWatchSequence([].concat(_.wu(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var M=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!M)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var d=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.wu(this.prevShortsSequence.slice(0,d)),[M],_.wu(this.prevShortsSequence.slice(d+
1)))}d=this.index+this.shortsProcessedPrevSequence.length;M.thumbnail=this.shortsProcessedPrevSequence[d].thumbnail;return[].concat(_.wu(this.shortsProcessedPrevSequence.slice(0,d)),[M],_.wu(this.shortsProcessedPrevSequence.slice(d+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var M=this.getCurrentShort();if(!M||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[M];if(M==null||!M.reelNonVideoContentRenderer){var d=this.getIndexInSequence(this.shortsSequence,_.q(this.currentEndpoint,_.$B).videoId);if(this.index===0&&d!==-1)return this.currentPlayerIndex=this.index=d,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.wu(this.shortsSequence.slice(0,this.index)),[M],_.wu(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){M.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var N,R,X,A;d=((R=_.q((N=this.shortsProcessedSequence[0])==null?void 0:N.command,_.$B))==null?void 0:R.videoId)===((A=_.q((X=this.shortsSequence[0])==null?void 0:X.command,_.$B))==null?void 0:A.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.wu(this.shortsProcessedSequence.slice(0,
this.index)),[M],_.wu(this.shortsSequence.slice(d)))}return[M].concat(_.wu(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var M=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;M&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(M)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var M,d;return this.index===((M=this.reelWatchSequenceResponse)==null?void 0:(d=M.entries)==null?void 0:d.length)}var N;return!((N=this.reelWatchSequenceResponse)==null?0:N.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var M;(M=this.delayedActiveIndexUpdateDebouncer)==null||M.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return this.isShortPlayable()||((d=_.q((M=this.data)==null?void 0:M.watchStatus,_.rOL))==null?void 0:(N=d.style)==null?void 0:N.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var M=this,d=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),N;if((this.data||d)&&(((N=this.data)==null?0:N.engagementPanels)||this.isAd()||d)){d=!1;this.activePanel="shorts-comments-panel";var R;N=_.V(((R=this.data)==null?void 0:R.engagementPanels)||[]);for(R=N.next();!R.done;R=N.next()){R=R.value.engagementPanelSectionListRenderer;var X=void 0,A=void 0,l=void 0,k=void 0;if((((X=R)==null?void 0:(A=X.identifier)==
null?void 0:A.tag)||((l=R)==null?void 0:l.targetId)||((k=R)==null?void 0:k.panelIdentifier))===this.activePanel){d=!0;break}}if(this.isPersistentPanelActive){var T=_.h().resolve(_.g1);_.gL(_.IQ,function(){T.showPanel(M.activePanel,void 0,void 0,void 0,null)},100)}N=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
R=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(N===void 0&&R===void 0||(N==null?0:N.isDisabled)||(R==null?void 0:R.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!d){var W,w,p=(W=this.data)==null?void 0:(w=W.engagementPanels)==null?void 0:w.findIndex(function(y){var c,e;return((c=y.engagementPanelSectionListRenderer)==null?void 0:(e=
c.identifier)==null?void 0:e.tag)==="shorts-comments-panel"});
if(p!==-1&&p!==void 0){var m,I;(m=this.data)==null||(I=m.engagementPanels)==null||I.splice(p,1)}var O;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.le("COMMENTS",void 0,"Comments")}]},visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.le("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:_.le("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.le("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(_.wu(Object.values(((O=this.data)==null?void 0:O.engagementPanels)||{})))}return(p=this.data)==null?void 0:p.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.shortsProcessedSequence)==null?void 0:M[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;if((d=this.playerData)==null?0:(N=d.playabilityStatus)==null?0:(R=N.errorScreen)==null?0:R.playerInterstitialRenderer)return _.IQ.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.playerData.playabilityStatus.errorScreen;
var X,A;return((X=this.data)==null?void 0:X.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((A=this.data)==null?0:A.watchStatus)&&_.q(this.data.watchStatus,_.yWd)?(_.IQ.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Hm.Object.defineProperties(kq,{template:{configurable:!0,enumerable:!0,get:function(){if(heC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);heC=M}M=heC;return M}}});
kq.prototype.onNextButtonDataChange=kq.prototype.onNextButtonDataChange;kq.prototype.onPrevButtonDataChange=kq.prototype.onPrevButtonDataChange;kq.prototype.onPersistentPanelActiveChanged=kq.prototype.onPersistentPanelActiveChanged;kq.prototype.lazyUpdateMiniplayerData=kq.prototype.lazyUpdateMiniplayerData;kq.prototype.onShortsPipActiveChanged=kq.prototype.onShortsPipActiveChanged;kq.prototype.setActiveIndex=kq.prototype.setActiveIndex;kq.prototype.graftNvcRenderer=kq.prototype.graftNvcRenderer;
kq.prototype.graftClientVisualElements=kq.prototype.graftClientVisualElements;kq.prototype.onActiveChanged=kq.prototype.onActiveChanged;kq.prototype.onShortsDismiss=kq.prototype.onShortsDismiss;kq.prototype.onShortUndoDismiss=kq.prototype.onShortUndoDismiss;kq.prototype.playerDataChanged=kq.prototype.playerDataChanged;kq.prototype.afterPlayerStarted=kq.prototype.afterPlayerStarted;kq.prototype.unhideCurrentOverlay=kq.prototype.unhideCurrentOverlay;kq.prototype.onServiceRequestCompleted=kq.prototype.onServiceRequestCompleted;
kq.prototype.engagementPanelsChanged=kq.prototype.engagementPanelsChanged;kq.prototype.onFullscreenChange=kq.prototype.onFullscreenChange;kq.prototype.onResize=kq.prototype.onResize;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],kq.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.hF.YtPageBehavior),_.a("design:type",Object)],kq.prototype,"ytPageBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.sj),_.a("design:type",Object)],kq.prototype,"ironResizableBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],kq.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],kq.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],kq.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"playerData",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"reelWatchSequenceResponse",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"cachedReelWatchSequenceResponse",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"currentEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"nextButtonData",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"prevButtonData",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isPreviousPageShorts",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"index",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"delayedActiveIndex",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"playablePreviousIndex",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"player",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isPlayerPaused",void 0);_.G([_.H({selector:EEP}),_.a("design:type",Object)],kq.prototype,"isPlayerStarted",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"intersectionObserver",void 0);_.G([_.H(),_.a("design:type",Number)],kq.prototype,"cinematicsInitializeJobId",void 0);_.G([_.H(),_.a("design:type",Number)],kq.prototype,"cinematicTransitionJobId",void 0);
_.G([_.H(),_.a("design:type",Number)],kq.prototype,"updateMiniplayerDataJobId",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"fitToVisibleBounds",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"pageSubtype",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"panelShowDelayMs",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kq.prototype,"enablePreviousContinuation",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"shortsPipEnabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isDark",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"shortsViewTransitions",void 0);_.G([_.H({selector:_.$D,reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isFullscreen",void 0);
_.G([_.H({selector:_.BC,reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isShortsPipActive",void 0);_.G([_.Z3("#shorts-inner-container"),_.a("design:type",HTMLElement)],kq.prototype,"shortsInnerContainer",void 0);_.G([_.Z3("#back-nav-button ytd-button-renderer"),_.a("design:type",_.e$)],kq.prototype,"backNavButton",void 0);_.G([_.Z3("#shorts-container"),_.a("design:type",HTMLElement)],kq.prototype,"shortsContainer",void 0);
_.G([_.HB("error-screen"),_.a("design:type",HTMLElement)],kq.prototype,"errorScreenContainer",void 0);_.G([_.HB("player"),_.a("design:type",Object)],kq.prototype,"playerElement",void 0);_.G([_.HB("shorts-cinematic-container"),_.a("design:type",HTMLElement)],kq.prototype,"shortsCinematicContainer",void 0);_.G([_.HB("initial-player-container"),_.a("design:type",HTMLElement)],kq.prototype,"initialPlayerContainer",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"buttonOverride",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"anchoredPanelActive",void 0);_.G([_.H(),_.a("design:type",String)],kq.prototype,"activePanel",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isActive",void 0);_.G([_.H({selector:ZYC,reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"smallScreenPersistentPanel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"isPersistentPanelActive",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"smallScreenSqueezeBack",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"enableScrollIntoViewCenter",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"formatFirst",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kq.prototype,"enableFlexibleOverlay",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"panelContainer",void 0);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"overlayContainer",void 0);_.G([_.H(),_.a("design:type",Object)],kq.prototype,"isShortsInitialized",void 0);_.G([_.z("reelWatchSequenceResponse"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"prevShortsSequence",null);_.G([_.z("data","prevShortsSequence"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"shortsProcessedPrevSequence",null);
_.G([_.z("reelWatchSequenceResponse"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"shortsSequence",null);_.G([_.z("data","shortsSequence"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"shortsProcessedSequence",null);
_.G([_.H({reflectToAttribute:!0}),_.z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"isUpArrowHidden",null);_.G([_.H({reflectToAttribute:!0}),_.z("reelWatchSequenceResponse","index","endOfNextContinuation"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"isDownArrowHidden",null);
_.G([_.H(),_.z("index"),_.a("design:type",Number),_.a("design:paramtypes",[])],kq.prototype,"activeIndex",null);_.G([_.z("isShortPlayable","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"shouldRenderOfflineContent",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onResize",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"anchoredEngagementPanels",null);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"watchWhileEngagementPanels",void 0);_.G([_.xB("isFullscreen"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onFullscreenChange",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"engagementPanelsChanged",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],kq.prototype,"onServiceRequestCompleted",null);_.G([_.z("data","shortsSequence","index"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"activeReel",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"unhideCurrentOverlay",null);
_.G([_.xB("isPlayerStarted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"afterPlayerStarted",null);_.G([_.z("playerData","reelWatchSequenceResponse","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],kq.prototype,"errorScreen",null);_.G([_.z("errorScreen"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],kq.prototype,"hasError",null);
_.G([_.xB("playerData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],kq.prototype,"playerDataChanged",null);_.G([_.C3("yt-dismissible-item-undo-feedback"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onShortUndoDismiss",null);_.G([_.C3("yt-disable-lockup-interaction"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],kq.prototype,"onShortsDismiss",null);
_.G([_.NS("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onActiveChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"graftClientVisualElements",null);_.G([_.xB("currentPlayerIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"graftNvcRenderer",null);
_.G([_.xB("index"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"setActiveIndex",null);_.G([_.xB("isShortsPipActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onShortsPipActiveChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"lazyUpdateMiniplayerData",null);
_.G([_.H(),_.a("design:type",Object)],kq.prototype,"onOverlayDensityChanged",void 0);_.G([_.xB("isPersistentPanelActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onPersistentPanelActiveChanged",null);_.G([_.xB("index","data","isUpArrowHidden"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onPrevButtonDataChange",null);
_.G([_.xB("index","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kq.prototype,"onNextButtonDataChange",null);kq=_.G([_.f({is:"ytd-shorts"})],kq);_.mq.registerService(_.f52,kq);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("JzFVk");
var Y7$=function(M){return _.g("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},xPe(M.data.ctaButton,{buttonViewModel:{}}),_.g(_.lG,{text:M.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var ZRr;var Ewb;var r6=function(){return _.n.apply(this,arguments)||this};
_.v(r6,_.n);r6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
r6.prototype.computeBlueBottomLink=function(M){return M};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r6.prototype,"data",void 0);_.G([_.H({computed:"computeIcon_(data.bottomIcon)"}),_.a("design:type",String)],r6.prototype,"bottomIcon",void 0);
_.G([_.H({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.a("design:type",Boolean)],r6.prototype,"enableBlueBottomLink",void 0);r6=_.G([_.f({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],r6);
_.L(r6,"ytd-web-answer-renderer",function(){if(Ewb!==void 0)return Ewb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ewb=M},{mode:_.G3("kevlar_poly_si_batch_j035")?1:2});var MA4;var K_=function(){var M=_.n.apply(this,arguments)||this;M.hasChipBar=!1;return M};
_.v(K_,_.n);K_.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}}};
K_.prototype.computeHasChipBar=function(M){return!(M==null||!M.chipBar)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],K_.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.a("design:type",Object)],K_.prototype,"hasChipBar",void 0);K_=_.G([_.f({is:"ytd-search-header-renderer",disableElementRegistration:!0})],K_);
_.L(K_,"ytd-search-header-renderer",function(){if(MA4!==void 0)return MA4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return MA4=M},{mode:1});var djq;var yk=function(){return _.n.apply(this,arguments)||this};
_.v(yk,_.n);yk.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yk.prototype,"data",void 0);yk=_.G([_.f({disableElementRegistration:!0,is:"ytd-page-continuation"})],yk);
_.L(yk,"ytd-page-continuation",function(){if(djq!==void 0)return djq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return djq=M},{mode:1});var Np9;var R2T;var X2q;var JU=function(){return _.n.apply(this,arguments)||this};
_.v(JU,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JU.prototype,"data",void 0);JU=_.G([_.f({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],JU);
_.L(JU,"ytd-watch-card-one-vs-one-event",function(){if(X2q!==void 0)return X2q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return X2q=M},{mode:1});var ct=function(){return _.n.apply(this,arguments)||this};
_.v(ct,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ct.prototype,"data",void 0);ct=_.G([_.f({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],ct);
_.L(ct,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(R2T!==void 0)return R2T;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return R2T=M},{mode:1});var For;var Sf=function(){return _.n.apply(this,arguments)||this};
_.v(Sf,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Sf.prototype,"data",void 0);Sf=_.G([_.f({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Sf);
_.L(Sf,"ytd-banner-and-box-hero-image-renderer",function(){if(For!==void 0)return For;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return For=M},{mode:1});var Ap9;var zE=function(){var M=_.n.apply(this,arguments)||this;M.modern=_.Q("web_modern_buttons");return M};
_.v(zE,_.n);zE.prototype.computeIcon=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType;if(N)return _.C6(N)};
zE.prototype.computeButtonShape=function(){var M;return{buttonText:_.HD((M=this.data)==null?void 0:M.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Hm.Object.defineProperties(zE.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"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zE.prototype,"modern",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],zE.prototype,"buttonColor",null);
zE=_.G([_.f({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],zE);
_.L(zE,"ytd-call-to-action-button-renderer",function(){if(Ap9!==void 0)return Ap9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Ap9=M},{mode:1});var VAG;var bS=function(){return _.n.apply(this,arguments)||this};
_.v(bS,_.n);bS.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.K(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Hz(this.data.leftThumbnail.thumbnails,216)+")")};
bS.prototype.onLeftThumbnailChanged=bS.prototype.onLeftThumbnailChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bS.prototype,"data",void 0);_.G([_.xB("data.leftThumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bS.prototype,"onLeftThumbnailChanged",null);bS=_.G([_.f({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],bS);
_.L(bS,"ytd-collage-hero-image-renderer",function(){if(VAG!==void 0)return VAG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return VAG=M},{mode:1});var lZd;var ef=function(){return _.n.apply(this,arguments)||this};
_.v(ef,_.n);ef.prototype.computeStyle=function(M){return M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ef.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.a("design:type",String)],ef.prototype,"componentStyle",void 0);ef=_.G([_.f({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],ef);
_.L(ef,"ytd-single-hero-image-renderer",function(){if(lZd!==void 0)return lZd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lZd=M},{mode:1});var $jP;var Ht=function(){return _.n.apply(this,arguments)||this};
_.v(Ht,_.n);_.F=Ht.prototype;
_.F.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:_.Q("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.F.computeSubtitle=function(M){if(this.data){var d;if(this.data.upcomingEventData){M=_.HD(M.subtitle);var N=Number(this.data.upcomingEventData.startTime);isNaN(N)||(d=_.ep(_.r5(M,N)))}else d=M.subtitle;return d}};
_.F.onHeroTap=function(M){M.preventDefault();var d=this.data&&this.data.navigationEndpoint;!d||!_.Sm(_.J2(M),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Sm(_.J2(M),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.Q("kevlar_watchcard_hero_video_renderer_killswitch")?_.YP(this.hostElement,"yt-navigate",{navigationEndpoint:d}):this.ytComponentBehavior.resolveCommand(d))};
_.F.computeHeroTabIndex=function(M){return M&&M.simpleText?-1:0};
_.F.computeHeroRole=function(M){return M&&M.simpleText?"":"link"};
_.F.computeIsReminderButtonPresent=function(M){return!(!M||!M.reminderButton)};
_.F.computeHideBottomItems=function(M){return!(this.computeIsReminderButtonPresent(M)||M.subtitle)};
_.F.dataChanged=function(){var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),d;((d=_.q(M==null?void 0:M.commandMetadata,_.vq))==null?0:d.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M)};
Ht.prototype.dataChanged=Ht.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ht.prototype,"data",void 0);
_.G([_.H({computed:"computeSubtitle(data)"}),_.a("design:type",String)],Ht.prototype,"subtitle",void 0);_.G([_.H({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Ht.prototype,"isReminderButtonPresent",void 0);_.G([_.H({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Ht.prototype,"hideBottomItems",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ht.prototype,"dataChanged",null);Ht=_.G([_.f({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Ht);
_.L(Ht,"ytd-watch-card-hero-video-renderer",function(){if($jP!==void 0)return $jP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $jP=M},{mode:1});var BpJ;var n_=function(){return _.n.apply(this,arguments)||this};
_.v(n_,_.n);_.F=n_.prototype;_.F.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"}}}};
_.F.computeTitleBadges=function(M){return M?[M]:[]};
_.F.computeHeaderStyle=function(M){return M?M.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.F.computeAvatarAriaLabel=function(M){if(M){var d,N,R,X;return(X=(d=M.avatar)==null?void 0:(N=d.accessibility)==null?void 0:(R=N.accessibilityData)==null?void 0:R.label)!=null?X:_.HD(M==null?void 0:M.title)}};
_.F.computeAvatarHeight=function(M){return M==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.F.computeBadgeRowClass=function(M){return(M==null?0:M[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],n_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],n_.prototype,"data",void 0);_.G([_.H({computed:"computeTitleBadges(data.titleBadge)"}),_.a("design:type",Array)],n_.prototype,"titleBadges",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.a("design:type",String)],n_.prototype,"headerStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.a("design:type",String)],n_.prototype,"badgeRowClass",void 0);n_=_.G([_.f({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],n_);
_.L(n_,"ytd-watch-card-rich-header-renderer",function(){if(BpJ!==void 0)return BpJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return BpJ=M},{mode:1});var kyi;var Tpb;var iS=function(){return _.n.apply(this,arguments)||this};
_.v(iS,_.n);iS.prototype.onMetadataTap=function(M){var d=this.data&&this.data.navigationEndpoint;d&&!_.Sm(_.J2(M),this.hostElement,["A".toString()])&&_.YP(this.hostElement,"yt-navigate",{endpoint:d})};
_.Hm.Object.defineProperties(iS.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M;if(this.data.upcomingEventData){var d=_.HD(this.data.subtitle),N=Number(this.data.upcomingEventData.startTime);isNaN(N)||(M=_.ep(_.r5(d,N)))}else M=this.data.subtitle;return M}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],iS.prototype,"isCondensed",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],iS.prototype,"subtitle",null);
iS=_.G([_.f({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],iS);
_.L(iS,"ytd-watch-card-compact-video-renderer",function(){if(Tpb!==void 0)return Tpb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Tpb=M},{mode:1});var Dje;var f_=function(){return _.n.apply(this,arguments)||this};
_.v(f_,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],f_.prototype,"data",void 0);f_=_.G([_.f({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],f_);
_.L(f_,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(Dje!==void 0)return Dje;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Dje=M},{mode:1});var L_=function(){return _.n.apply(this,arguments)||this};
_.v(L_,_.n);L_.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}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],L_.prototype,"ytRendererStamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],L_.prototype,"data",void 0);L_=_.G([_.f({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],L_);
_.L(L_,"ytd-vertical-watch-card-list-renderer",function(){if(kyi!==void 0)return kyi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kyi=M},{mode:1});var gET;var tU=function(){var M=_.n.apply(this,arguments)||this;M.ariaExpanded="false";return M};
_.v(tU,_.n);_.F=tU.prototype;_.F.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.F.dataChanged=function(){var M;this.currentSeasonIndex=((M=this.data)==null?void 0:M.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.F.computeEpisodesInfo=function(M,d,N){if(M!==void 0&&d.length===M.length)return M[N]};
_.F.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.F.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.F.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.F.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.F.getUppercaseSimpleString=function(M){return this.ytRendererBehavior.getSimpleString(M).toUpperCase()};
_.F.updateCurrentSeasonIndexFromBinding=function(M){this.currentSeasonIndex=M.detail.value};
tU.prototype.onIronOverlayClosed=tU.prototype.onIronOverlayClosed;tU.prototype.currentSeasonIndexChanged=tU.prototype.currentSeasonIndexChanged;tU.prototype.dataChanged=tU.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tU.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",String)],tU.prototype,"label",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],tU.prototype,"currentSeasonIndex",void 0);_.G([_.H({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.a("design:type",Object)],tU.prototype,"episodesInfo",void 0);_.G([_.H({value:"false"}),_.a("design:type",Object)],tU.prototype,"ariaExpanded",void 0);_.G([_.Z3("#lists"),_.a("design:type",Object)],tU.prototype,"lists",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tU.prototype,"dataChanged",null);_.G([_.NS("currentSeasonIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tU.prototype,"currentSeasonIndexChanged",null);_.G([_.C3("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],tU.prototype,"onIronOverlayClosed",null);
tU=_.G([_.f({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],tU);
_.L(tU,"ytd-watch-card-section-dropdown-renderer",function(){if(gET!==void 0)return gET;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return gET=M},{mode:1});var WoY;var GE=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;return M};
_.v(GE,_.n);GE.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}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GE.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],GE.prototype,"isSearch",void 0);GE=_.G([_.f({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],GE);
_.L(GE,"ytd-watch-card-section-sequence-renderer",function(){if(WoY!==void 0)return WoY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return WoY=M},{mode:1});var xPe=_.W5({buttonViewModel:_.o0});_.aR(Y7$);_.aA(Y7$,"ytd-button-banner-view-model",{propNames:["data"]});var a7=function(){var M=_.n.apply(this,arguments)||this;M.isSearch=!1;return M};
_.v(a7,_.n);
a7.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"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],a7.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],a7.prototype,"rounded",void 0);_.G([_.H(),_.a("design:type",Object)],a7.prototype,"isSearch",void 0);
a7=_.G([_.f({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],a7);
_.L(a7,"ytd-universal-watch-card-renderer",function(){if(Np9!==void 0)return Np9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Np9=M},{mode:1});var w2e;_.eC(_.SG(function(M){var d=M.data;var N;M=!((N=_.h().resolve(_.CF(_.Pz)))==null||!N());N={};return _.g("overview-message-view-model",{class:_.xj("ytwOverviewMessageViewModelHost",(N.ytwOverviewMessageViewModelDarkBackground=M,N.ytwOverviewMessageViewModelLightBackground=!M,N))},_.g(_.kV,{cond:function(){return d().primaryImage},
then:function(R){return _.g(_.Jt,{data:R,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.g(_.kV,{cond:function(){return d().primaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.g(_.lG,{text:function(){return d().primaryText}}))}}),_.g(_.kV,{cond:function(){return d().secondaryText},
then:function(){return _.g("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.g(_.lG,{text:function(){return d().secondaryText}}))}}))},"oi"),"overview-message-view-model",{props:{data:_.cA}});_.aA(_.F5C,"ytd-overview-answer-view-model",{propNames:["data"]});var UZ=function(){return _.n.apply(this,arguments)||this};
_.v(UZ,_.n);UZ.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"}}}};
UZ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],UZ.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],UZ.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],UZ.prototype,"isSearch",void 0);
UZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],UZ);
_.L(UZ,"ytd-secondary-search-container-renderer",function(){if(w2e!==void 0)return w2e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return w2e=M},{mode:1});var p29;var uS=function(){var M=_.n.apply(this,arguments)||this;M.renderSecondarySearchContainer=!1;M.isSearch=!1;M.isSearchDova=_.Q("dova_on_search");return M};
_.v(uS,_.n);_.F=uS.prototype;_.F.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.F.created=function(){var M=this;this.boundStampSecondarySearchContainerIfFits=function(){M.stampSecondarySearchContainerIfFits()};
_.oJ("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.F.computeIsSearchFrictionPage=function(M){var d,N,R,X,A;M=M==null?void 0:(d=M.primaryContents)==null?void 0:(N=d.sectionListRenderer)==null?void 0:(R=N.contents)==null?void 0:(X=R[0])==null?void 0:(A=X.itemSectionRenderer)==null?void 0:A.contents;if(!M)return!1;d=_.V(M);for(N=d.next();!N.done;N=d.next())if(R=void 0,(R=N.value)==null?0:R.searchFrictionViewModel)return!0;return!1};
_.F.computeShowSecondaryColumn=function(M,d){return!!(d&&d.secondaryContents&&M)};
_.F.activeChanged=function(){var M=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ux(this,this.debounceStampSecondarySearchContainerIfFits)),_.vu(function(){M.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ux(this,this.debounceStampSecondarySearchContainerIfFits))};
_.F.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.F.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.F.debounceStampSecondarySearchContainerIfFits=function(){_.OH(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.F.onRetrieveLocation=function(M,d){d.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);M.stopPropagation()};
_.F.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
uS.prototype.dataChanged=uS.prototype.dataChanged;uS.prototype.onRetrieveLocation=uS.prototype.onRetrieveLocation;uS.prototype.persistentGuideChanged=uS.prototype.persistentGuideChanged;uS.prototype.activeChanged=uS.prototype.activeChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],uS.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],uS.prototype,"ironResizableBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],uS.prototype,"active",void 0);_.G([_.H(),_.a("design:type",Object)],uS.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.Q("enable_desktop_search_bigger_thumbs")}}),
_.a("design:type",Boolean)],uS.prototype,"useBiggerThumbs",void 0);_.G([_.H({reflectToAttribute:!0,value:function(){return _.El("desktop_search_bigger_thumbs_style")}}),
_.a("design:type",String)],uS.prototype,"biggerThumbsStyle",void 0);_.G([_.H(),_.a("design:type",Object)],uS.prototype,"renderSecondarySearchContainer",void 0);_.G([_.H({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.a("design:type",Boolean)],uS.prototype,"showSecondaryColumn",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.a("design:type",Boolean)],uS.prototype,"isSearchFrictionPage",void 0);
_.G([_.H(),_.a("design:type",Object)],uS.prototype,"isSearch",void 0);_.G([_.H(),_.a("design:type",Object)],uS.prototype,"isSearchDova",void 0);_.G([_.xB("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uS.prototype,"activeChanged",null);_.G([_.xB("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uS.prototype,"persistentGuideChanged",null);
_.G([_.C3("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],uS.prototype,"onRetrieveLocation",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uS.prototype,"dataChanged",null);uS=_.G([_.f({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],uS);
_.L(uS,"ytd-two-column-search-results-renderer",function(){if(p29!==void 0)return p29;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return p29=M},{mode:1});var C_=function(){var M=_.n.apply(this,arguments)||this;M.hasSearchHeader=!1;M.hasSecondaryContent=!1;M.hasBiggerThumbs=_.Q("enable_desktop_search_bigger_thumbs");M.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return M};
_.v(C_,_.n);_.F=C_.prototype;_.F.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:_.qD(["aa","eocs"])}}};
_.F.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.F.loadPage_=function(M){this.initCsi();M&&(this.data=M,_.oJ("REFINEMENTS_TUPLE",["FromSearchResponse",M.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Hf(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.F.initCsi=function(){_.m5("results",["ol","cpt"])};
_.F.updateTitle=function(){var M=_.oW(window.location.href,"q");M||(M=_.oW(window.location.href,"search_query"));_.YP(this.hostElement,"yt-update-title",M||"")};
_.F.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.F.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.Q("web_srp_data_changed_terminate_imp_killswitch")||_.ZI(this.hostElement,"yt-terminate-video-preview-action")};
_.F.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.F.computeHasSearchHeader=function(M){var d;M=M==null?void 0:(d=M.header)==null?void 0:d.searchHeaderRenderer;return!!M&&(!!M.searchFilterButton||!!M.chipBar)};
_.F.computeHasSecondaryContent=function(M){var d,N;return!!(M==null?0:(d=M.contents)==null?0:(N=d.twoColumnSearchResultsRenderer)==null?0:N.secondaryContents)};
_.Hm.Object.defineProperties(C_,{template:{configurable:!0,enumerable:!0,get:function(){if(ZRr===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);ZRr=M}M=ZRr;return M}}});
C_.prototype.onReloadContinuationFinish=C_.prototype.onReloadContinuationFinish;C_.prototype.dataChanged=C_.prototype.dataChanged;_.G([_.S(_.hF.YtPageBehavior),_.a("design:type",Object)],C_.prototype,"ytPageBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],C_.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],C_.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],C_.prototype,"data",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],C_.prototype,"monitorScroll",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],C_.prototype,"hasSearchHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],C_.prototype,"hasSecondaryContent",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],C_.prototype,"hasBiggerThumbs",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C_.prototype,"dataChanged",null);
_.G([_.C3("yt-reload-continuation-finish"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],C_.prototype,"onReloadContinuationFinish",null);C_=_.G([_.f({is:"ytd-search"})],C_);_.mq.registerService(_.i_6,C_);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("h8y2qb");
var aJT=function(M){if(M=_.rf2(M)){var d;(d=M.sources)!=null&&d[0]?(d=_.yfZ(M),d=d<1?"VERTICAL":d>1?"HORIZONTAL":"SQUARE"):d=void 0;return d}},Qv=function(M){_.hW.call(this,"upload");
this.opts.query=M},uai=function(M,d){return _.g(UaY,{data:M,
onYtNavigate:d})},xad=function(M,d){return M.map(function(N){if(N.tabRenderer)return Cp4(N.tabRenderer);
if(N.expandableTabRenderer&&d){var R=N.expandableTabRenderer;return{customTabRenderable:function(){return d(R)}}}return{}})},Cp4=function(M){return{identifier:M.tabIdentifier,
aTagConfig:_.qx({innertubeCommand:M.endpoint,forceNewState:!0}),title:M.title,selected:M.selected,disabled:M.unselectable,icon:M.icon}},Yw$=function(M,d){return _.Rz(M.entities,"pageHeaderEntity",d)},MWT=function(M){var d=M.data;
var N=M.noPadding===void 0?!1:M.noPadding;var R=M.enableBanner===void 0?!1:M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow===void 0?!1:M.allowCinematicContainerOverflow;var l=M.displayAsSidebar===void 0?!1:M.displayAsSidebar;M=M.className;if(d==null?0:d.tagManagerId)_.kH(d.tagManagerId,_.rK("GL")),Zn$(d.tagManagerId);a:{if(d.pageHeaderEntityKey){var k=_.XT(Yw$,d.pageHeaderEntityKey);if(k==null?0:k.header){k=k==null?void 0:k.header;break a}}k=l&&d.sidebarContent?
d.sidebarContent:d.content}return _.g("yt-page-header-renderer",{class:_.ZH("page-header-renderer-wiz",M)},Erd(k,{pageHeaderViewModel:{noPadding:N,enableBanner:R,cinematicContainerTopbarOffset:X,allowCinematicContainerOverflow:A,displayAsSidebar:l&&d.enableSidebarView}}))},dJi=function(M){return _.YS({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:M})},Zn$=function(M){if(!_.fO(document,"gtm-noscript")){var d=document.createElement("noscript");
d.id="gtm-noscript";d.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+M+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(d)}};_.RX(Qv,_.hW);Qv.prototype.JSC$7959_setLabel=function(M){Qv.superClass_.JSC$7959_setLabel.call(this,M);return this};
Qv.prototype.addUploadMetadata=function(M,d){Qv.superClass_.addUploadMetadata.call(this,M,d);return this};var NiG=function(M){if(M!=="youtubebanner"&&M!=="youtube-channel-banner")throw Error("Vl");Qv.call(this,M)};
_.v(NiG,Qv);NiG.prototype.JSC$7959_setLabel=function(M){Qv.prototype.JSC$7959_setLabel.call(this,M);return this};
NiG.prototype.addUploadMetadata=function(M,d){Qv.prototype.addUploadMetadata.call(this,M,d);return this};var R_4=[_.sj,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(M){_.Wl(M).path[0]!==this&&(this.resetLayout(),M.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var M=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Rg(this._layoutDebouncer,_.Bz,M);_.XM(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var M=this;requestAnimationFrame(function(){M.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var XHT=[_.bOI,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(M,d){var N=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[M];if(!N)throw new ReferenceError(this._getUndefinedMsg(M));M=this._boundEffect(N,d||{});M.setUp();return M},
_effectsChanged:function(M,d,N){this._tearDownEffects();M&&N&&(M.split(" ").forEach(function(R){var X;R!==""&&((X=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R])?this._effects.push(this._boundEffect(X,d[R])):console.warn(this._getUndefinedMsg(R)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(M,d){d=d||{};var N=parseFloat(d.startsAt||0),R=parseFloat(d.endsAt||1),X=R-N,A=function(){};
R=N===0&&R===1?M.run:function(l,k){M.run.call(this,Math.max(0,(l-N)/X),k)};
return{setUp:M.setUp?M.setUp.bind(this,d):A,run:M.run?R.bind(this):A,tearDown:M.tearDown?M.tearDown.bind(this):A}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(M){M.setUp()!==!1&&this._effectsRunFn.push(M.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(M){M.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(M,d){this._effectsRunFn&&this._effectsRunFn.forEach(function(N){N(M,d)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var M=this._clampedScrollTop;this._updateScrollState(M);this.threshold>0&&this._setThresholdTriggered(M>=this.threshold)}},
_getDOMRef:function(M){console.warn("_getDOMRef","`"+M+"` is undefined")},
_getUndefinedMsg:function(M){return"Scroll effect `"+M+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+M+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Wl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(M){var d={};M=parseFloat(M.scalar);d.background=this._getDOMRef("background");d.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");d.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");d.deltaBg=d.backgroundFrontLayer.offsetHeight-d.background.offsetHeight;d.deltaBg===0?(isNaN(M)&&(M=.8),d.deltaBg=(this._dHeight||0)*M):(isNaN(M)&&(M=
1),d.deltaBg*=M);this._fxParallaxBackground=d},
run:function(M){var d=this._fxParallaxBackground;this.transform("translate3d(0px, "+d.deltaBg*Math.min(1,M)+"px, 0px)",d.backgroundFrontLayer);d.backgroundRearLayer&&this.transform("translate3d(0px, "+d.deltaBg*Math.min(1,M)+"px, 0px)",d.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Fcb;var Arb;var VWr=function(){};
_.F=VWr.prototype;_.F._scrollTargetChanged=function(){};
_.F.scroll=function(){};
_.F._isValidScrollTarget=function(){};
_.F._toggleScrollListener=function(){};
_.F.toggleScrollListener=function(){};
_.F.createEffect=function(){};
_.F._effectsChanged=function(){};
_.F._layoutIfDirty=function(){};
_.F._boundEffect=function(){};
_.F._setUpEffect=function(){};
_.F._tearDownEffects=function(){};
_.F._runEffects=function(){};
_.F._scrollHandler=function(){};
_.F._scrollStateChanged=function(){};
_.F._getUndefinedMsg=function(){};
_.F.notifyResize=function(){};
_.F.assignParentResizable=function(){};
_.F.stopResizeNotificationsFor=function(){};
_.F._subscribeIronResize=function(){};
_.F._unsubscribeIronResize=function(){};
_.F.resizerShouldNotify=function(){};
_.F._onDescendantIronResize=function(){};
_.F._fireResize=function(){};
_.F._onIronRequestResizeNotifications=function(){};
_.F._parentResizableChanged=function(){};
_.F._notifyDescendant=function(){};
_.F._requestResizeNotifications=function(){};
_.F._findParent=function(){};
_.F._appResetLayoutHandler=function(){};
_.F.resetLayout=function(){};
_.F._notifyLayoutChanged=function(){};
_.F._notifyDescendantResize=function(){};
_.F._setThresholdTriggered=function(){};
VWr=_.kQ({_template:function(){if(Arb!==void 0)return Arb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Fcb===void 0&&(Fcb=document.createElement("template"));var R=Fcb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return Arb=M},
is:"tp-yt-app-header",behaviors:[XHT,R_4],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var M=_.Wl(this.$.slot).getDistributedNodes(),d=0,N;N=M[d];d++)if(N.nodeType===Node.ELEMENT_NODE)if(N.hasAttribute("sticky")){this._stickyElRef=N;break}else this._stickyElRef||(this._stickyElRef=N);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var M=this._clampedScrollTop,d=this._height===0||M===0,N=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;d||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();d?this._updateScrollState(M,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=N}},
_updateScrollState:function(M,d){if(this._height!==0){var N=0,R=this._top;var X=this._maxHeaderTop;var A=M-this._lastScrollTop,l=Math.abs(A),k=M>this._lastScrollTop,T=performance.now();this._mayMove()&&(N=this._clamp(this.reveals?R+A:M,0,X));M>=this._dHeight&&(N=this.condenses&&!this.fixed?Math.max(this._dHeight,N):N,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&l<100){if(T-this._initTimestamp>300||this._wasScrollingDown!==k)this._initScrollTop=M,this._initTimestamp=T;M>=X&&
(Math.abs(this._initScrollTop-M)>30||l>10?(k&&M>=X?N=X:!k&&M>=this._dHeight&&(N=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((N-R)/(A/(T-this._lastTimestamp)),0,300)+"ms"):N=this._top)}X=this._dHeight===0?M>0?1:0:N/this._dHeight;d||(this._lastScrollTop=M,this._top=N,this._wasScrollingDown=k,this._lastTimestamp=T);if(d||X!==this._progress||R!==N||M===0)this._progress=X,this._runEffects(X,N),this._transformHeader(N)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(M){this.translate3d(0,-M+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&M>=this._stickyElTop?Math.min(M,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(M,d,N){return Math.min(N,Math.max(d,M))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.Wl(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(M){switch(M){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Wl(this).querySelector("[main-title]");case "condensedTitle":return _.Wl(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var leG;var $Jd;_.kQ({_template:function(){if($Jd!==void 0)return $Jd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;leG===void 0&&(leG=document.createElement("template"));var R=leG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return $Jd=M},
is:"tp-yt-app-header-layout",behaviors:[R_4],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Wl(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var M=this.header;if(this.isAttached&&M){this.$.wrapper.classList.remove("initializing");M.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)M.style.left=
"",M.style.right="";else{var d=this.getBoundingClientRect(),N=document.documentElement.clientWidth-d.right;M.style.left=d.left+"px";M.style.right=N+"px"}d=this.$.contentContainer.style;N=M.offsetHeight;M.fixed&&!M.condenses&&this.hasScrollingRegion?(d.marginTop=N+"px",d.paddingTop=""):(d.paddingTop=N+"px",d.marginTop="")}}});var Biq=new _.x("replaceFeedContentAction");var km9=new _.x("alertCommand");var Tie=new _.x("manageLabsStateCommand");var DJT=new _.x("channelBannerEditorRenderer");var goY=new _.x("inlineFormRenderer");var qg=new _.x("playlistSidebarPrimaryInfoRenderer");var Wcq=new _.x("productDetailsThumbnailRenderer"),wHC=new _.x("productDetailsVariantRenderer"),pHq=new _.x("productDetailsVariantOptionRenderer"),mJb=new _.x("productDetailsOffersContainerRenderer"),h_r=new _.x("productDetailsOfferRenderer");var QY4=new _.x("shoppingFlaggingRenderer");var qEr=new _.x("playlistBylineRenderer");var IeT=new _.x("insertChannelTabCommand");var I3=function(){return _.MS.apply(this,arguments)||this};
_.v(I3,_.MS);_.F=I3.prototype;_.F.activeChanged=function(){if(this.active){var M=_.K(this.hostElement).querySelector("#header");M&&_.YP(M,"iron-resize");window.addEventListener("scroll",_.ux(this,this.onScroll))}else window.removeEventListener("scroll",_.ux(this,this.onScroll)),_.YP(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.F.guideVisibleChanged=function(){var M=_.K(this.hostElement).querySelector("#header");M&&_.YP(M,"iron-resize")};
_.F.onScroll=function(){var M=this;_.OH(this,"onScroll",function(){var d=_.K(M.hostElement).querySelector("#header");d&&d.polymerController&&(d=d.polymerController.getScrollState().progress===1?"standard":"seamed",_.YP(M.hostElement,"yt-request-panel-mode-change",{mode:d}))},10)};
_.F.tabsChanged=function(){if(this.tabs){for(var M=null,d=0,N=this.tabs.length;d<N;++d){var R=this.tabs[d].tabRenderer;if(R&&R.selected){M=d;break}}this.selected=M}};
_.F.onTabsActivate=function(M){_.YP(this.hostElement,"yt-navigate",{endpoint:this.tabs[M.detail.selected].tabRenderer.endpoint})};
I3.prototype.tabsChanged=I3.prototype.tabsChanged;I3.prototype.guideVisibleChanged=I3.prototype.guideVisibleChanged;I3.prototype.activeChanged=I3.prototype.activeChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],I3.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.H(),_.a("design:type",Array)],I3.prototype,"tabs",void 0);
_.G([_.H(),_.a("design:type",Object)],I3.prototype,"selected",void 0);_.G([_.H(),_.a("design:type",Boolean)],I3.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],I3.prototype,"disableHeaderFluidWidth",void 0);_.G([_.xB("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],I3.prototype,"activeChanged",null);
_.G([_.xB("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],I3.prototype,"guideVisibleChanged",null);_.G([_.xB("tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],I3.prototype,"tabsChanged",null);I3=_.G([_.d4()],I3);var vo9=[_.E.YtRendererBehavior,_.Kf.YtdGuideStateAwareBehavior,I3.prototype];var OoC=2/3,jYD=_.Tx(130749),sYi=function(M,d){var N=this;this.element=M;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){N.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:OoC,moveAction:function(R){N.moveAction(R)},
triggerAction:function(){N.element.isReloading=!0;_.sL(_.Nx(),{visualElement:jYD});_.YQ.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:N.element}})}}}};
_.RL(_.Nx(),jYD,this.layer);this.gesture=new _.da(M,d,this.refreshConfig,"pan-down");this.attach()};
_.F=sYi.prototype;_.F.attach=function(){this.gesture.attach()};
_.F.detach=function(){this.gesture.detach()};
_.F.reset=function(){this.element.close()};
_.F.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.F.moveAction=function(M){this.element.rotation=M*360};var PA4=_.Tx(130750),vw=function(M,d,N,R,X){var A=this;this.element=M;this.parent=N;this.channelHeader=R;this.ytdReduxDispatch=X;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){A.tabsStartAtInPx=A.channelHeader.clientHeight-48;var l;(l=A.selectedTab)!=null&&l.title&&(l=_.h().resolve(_.CF(_.em)))&&(l=l.getCurrentPage(),A.lastVisitedTabScrollPosition=l.getScrollTop(),A.previousTab&&
((A.lastVisitedTabScrollPosition===void 0?0:A.lastVisitedTabScrollPosition<A.channelHeader.clientHeight-48)?A.scrollPositionForTabs.has(A.selectedTab.title)&&A.scrollPositionForTabs.delete(A.selectedTab.title):A.scrollPositionForTabs.set(A.selectedTab.title,l.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:oor(),triggerAction:function(){A.navigate(A.previousTab)},
moveAction:function(l,k){A.moveAction(l,k)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-oor(),triggerAction:function(){A.navigate(A.nextTab)},
moveAction:function(l,k){A.moveAction(l,k)}}}};
_.RL(_.Nx(),PA4,this.layer);this.gesture=new _.da(M,d,this.tabConfig);this.attach()};
vw.prototype.attach=function(){this.gesture.attach()};
vw.prototype.detach=function(){this.gesture.detach()};
vw.prototype.tabsChanged=function(M){if(M){var d=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;M=_.V(M);for(var N=M.next();!N.done;N=M.next()){N=N.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=N);var R=void 0;if((R=N)==null?0:R.selected)this.previousTab=d,this.selectedTab=N;d=N}d=this.gesture;M=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}});
d.config=M;this.scrollPositionNeedsUpdate=!0}};
vw.prototype.moveAction=function(M,d){if(!this.tabsElement){var N;this.tabsElement=(N=this.parent.header)==null?void 0:N.tabsElement;d==="right"&&this.previousTab?_.Std(_.E9.instance,this.previousTab.endpoint,{},""):d==="left"&&this.nextTab&&_.Std(_.E9.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}N=this.tabsElement._pos;d==="right"&&(M*=-1);this.tabsElement._positionBar(N.width,N.left*1+N.width*M)};
var oor=function(){var M,d;return(d=(M=_.h().resolve(_.em).getCurrentPage())==null?void 0:M.clientWidth)!=null?d:0};
vw.prototype.navigate=function(M){this.element.data=void 0;if(M=M==null?void 0:M.endpoint)this.ytdReduxDispatch(dJi(!0)),_.sL(_.Nx(),{visualElement:PA4}),_.YQ.instance.resolveCommand({navigateAction:{endpoint:M}},{form:{element:this.element}})};var rrP;var KcY;var OQ=function(){return _.n.apply(this,arguments)||this};
_.v(OQ,_.n);OQ.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OQ.prototype,"data",void 0);OQ=_.G([_.f({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],OQ);
_.L(OQ,"ytd-labs-edit-renderer",function(){if(KcY!==void 0)return KcY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return KcY=M},{mode:1});var yrY;var jN=function(){var M=_.n.apply(this,arguments)||this;M.dark=!1;M.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(jN,_.n);jN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jN.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.setBackgroundImage(M);this.dark=M};
jN.prototype.onDarkModeToggledAction=function(M){this.setBackgroundImage(M);this.dark=M};
jN.prototype.setBackgroundImage=function(M){_.UO(this.hostElement,{"--yt-labs-header-background":"url("+(M?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jN.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jN.prototype,"dark",void 0);
jN=_.G([_.f({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],jN);
_.L(jN,"ytd-labs-header-renderer",function(){if(yrY!==void 0)return yrY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return yrY=M},{mode:1});var JrT;var sQ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return M};
_.v(sQ,_.n);sQ.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"}}}}}};
sQ.prototype.onYtToggleButton=function(M){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",M.detail.toggled)};
sQ.prototype.onManageLabsState=function(M){if(M=_.q(M,Tie))M.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?M.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&M.labsItemId===this.data.labsItemId&&(M.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ZI(this.hostElement,"yt-check-labs-opted-in-state").some(function(d){return d})&&this.data.confirmationDialogCommand?_.Ni(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.h().resolve(_.xV).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&M.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.h().resolve(_.xV).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
sQ.prototype.onCheckLabsOptedInState=function(){var M=this.get("data.primaryButton.toggleButtonRenderer");return M?M.isToggled:!1};
_.Hm.Object.defineProperties(sQ.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
sQ.prototype.onYtToggleButton=sQ.prototype.onYtToggleButton;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],sQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],sQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sQ.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],sQ.prototype,"itemStyle",null);_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],sQ.prototype,"onYtToggleButton",null);sQ=_.G([_.f({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],sQ);
_.L(sQ,"ytd-labs-item-renderer",function(){if(JrT!==void 0)return JrT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return JrT=M},{mode:1});var crY;var SET;var Pw=function(){return _.n.apply(this,arguments)||this};
_.v(Pw,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pw.prototype,"data",void 0);Pw=_.G([_.f({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Pw);
_.L(Pw,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(SET!==void 0)return SET;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return SET=M},{mode:1});var z_J;var o3=function(){return _.n.apply(this,arguments)||this};
_.v(o3,_.n);o3.prototype.observeSuperchatChip=function(){if(this.data){var M={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.UO(this.hostElement,M)}};
o3.prototype.colorFromDecimal=function(M){return _.ml(Number(M||0))};
o3.prototype.observeSuperchatChip=o3.prototype.observeSuperchatChip;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],o3.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o3.prototype,"observeSuperchatChip",null);o3=_.G([_.f({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],o3);
_.L(o3,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(z_J!==void 0)return z_J;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return z_J=M},{mode:1});var ra=function(){return _.n.apply(this,arguments)||this};
_.v(ra,_.n);ra.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"}}}};
_.Hm.Object.defineProperties(ra.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.sp),_.a("design:type",Object)],ra.prototype,"ytdDismissibleItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ra.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ra.prototype,"hideMessageBlock",null);
ra=_.G([_.f({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],ra);
_.L(ra,"ytd-live-chat-history-entry-renderer",function(){if(crY!==void 0)return crY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return crY=M},{mode:1});var boY;var Kp=function(){return _.n.apply(this,arguments)||this};
_.v(Kp,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kp.prototype,"data",void 0);Kp=_.G([_.f({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Kp);
_.L(Kp,"ytd-channel-options-renderer",function(){if(boY!==void 0)return boY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return boY=M},{mode:1});var e_T;var yv=function(){return _.n.apply(this,arguments)||this};
_.v(yv,_.n);yv.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yv.prototype,"data",void 0);yv=_.G([_.f({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],yv);
_.L(yv,"ytd-settings-email-item-renderer",function(){if(e_T!==void 0)return e_T;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return e_T=M},{mode:1});var HoG;var JF=function(){return _.n.apply(this,arguments)||this};
_.v(JF,_.n);JF.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"}}}};
JF.prototype.getExpansionIcon=function(M){return M?"arrow_drop_up":"arrow_drop_down"};
JF.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Hm.Object.defineProperties(JF.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JF.prototype,"data",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],JF.prototype,"expanded",void 0);_.G([_.z("expanded"),_.a("design:type",String),_.a("design:paramtypes",[])],JF.prototype,"emailListExpanded",null);
_.G([_.Z3("#options"),_.a("design:type",Object)],JF.prototype,"options",void 0);JF=_.G([_.f({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],JF);
_.L(JF,"ytd-settings-email-list-renderer",function(){if(HoG!==void 0)return HoG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HoG=M},{mode:1});var noq;var cw=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.v(cw,_.n);cw.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"}}}};
cw.prototype.handleSignalActionSubmitForm=function(){var M,d=(M=this.formRenderer)==null?void 0:M.getForm();d&&this.data.serviceEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},d,{element:this.hostElement})})};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],cw.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cw.prototype,"data",void 0);_.G([_.Z3("yt-form-renderer"),_.a("design:type",Object)],cw.prototype,"formRenderer",void 0);
cw=_.G([_.f({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],cw);
_.L(cw,"ytd-settings-gaia-link-renderer",function(){if(noq!==void 0)return noq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return noq=M},{mode:1});var io4;var SN=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return M};
_.v(SN,_.n);SN.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Fi9()&&this.set("data.hidden",!1)};
SN.prototype.onSwitchReady=function(){var M=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.Q("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.XTe().then(function(d){d&&(Notification.permission==="default"?M.set("data.hidden",!1):Notification.permission==="granted"&&_.HK("NotificationsDisabled").then(function(N){N||_.ZI(M.hostElement,"yt-toggle-settings-switch",[M.data.id,!N]);M.set("data.hidden",!1)}).catch(function(){}))})})};
SN.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}}}}};
SN.prototype.handleUpdateOptionsCommand=function(M){(M=_.q(M,_.wXd))&&this.data&&this.data.id===M.id&&(this.set("data.hidden",M.hidden),M.text!==void 0&&this.set("data.text",M.text),M.clearOptions&&this.set("data.options",[]))};
SN.prototype.onSwitchReady=SN.prototype.onSwitchReady;SN.prototype.dataChanged=SN.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],SN.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],SN.prototype,"data",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SN.prototype,"dataChanged",null);_.G([_.C3("yt-settings-switch-ready"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],SN.prototype,"onSwitchReady",null);SN=_.G([_.f({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],SN);
_.L(SN,"ytd-settings-options-renderer",function(){if(io4!==void 0)return io4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return io4=M},{mode:1});var feb;var zC=function(){return _.n.apply(this,arguments)||this};
_.v(zC,_.n);zC.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
zC.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
zC.prototype.onYtExpanderMoreTapped=zC.prototype.onYtExpanderMoreTapped;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],zC.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zC.prototype,"data",void 0);
_.G([_.C3("yt-expander-more-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],zC.prototype,"onYtExpanderMoreTapped",null);zC=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],zC);
_.L(zC,"ytd-product-details-description-renderer",function(){if(feb!==void 0)return feb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return feb=M},{mode:1});var LcJ;var b9=function(){var M=_.n.apply(this,arguments)||this;M.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";M.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";M.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";M.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return M};
_.v(b9,_.n);b9.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Hm.Object.defineProperties(b9.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:(d=M.offerData)==null?void 0:d.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?void 0:M.purchaseButtonRenderers)!==void 0&&((d=this.data)==null?void 0:d.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.formattedFromMerchantText)&&(!((d=this.data)==null||!d.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],b9.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],b9.prototype,"data",void 0);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],b9.prototype,"shippingIcon",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],b9.prototype,"shippingAddressIcon",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],b9.prototype,"googleGuaranteeIcon",void 0);
_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?String:void 0}),_.a("design:type",Object)],b9.prototype,"returnPolicyIcon",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],b9.prototype,"showAdditionalFees",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],b9.prototype,"showMultiPurchaseButtons",null);
_.G([_.z("data","showMultiPurchaseButtons"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],b9.prototype,"showPurchaseData",null);b9=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],b9);
_.L(b9,"ytd-product-details-hero-offer-renderer",function(){if(LcJ!==void 0)return LcJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return LcJ=M},{mode:1});var tWT;var Gm9;var eN=function(){return _.n.apply(this,arguments)||this};
_.v(eN,_.n);_.F=eN.prototype;_.F.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.F.onKeyDown=function(M){M=M.keyCode;M!==13&&M!==32||this.handleSelection()};
_.F.onMouseEnterImage=function(){var M;((M=this.data)==null?void 0:M.thumbnailDetails)!==void 0&&_.Eu(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.F.onMouseLeaveImage=function(){_.Eu(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.F.handleSelection=function(){this.data&&_.YP(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Hm.Object.defineProperties(eN.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eN.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],eN.prototype,"isSelected",null);eN=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],eN);
_.L(eN,"ytd-product-details-thumbnail-renderer",function(){if(Gm9!==void 0)return Gm9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Gm9=M},{mode:1});var Hw=function(){var M=_.n.apply(this,arguments)||this;var d={};M.actionMap=(d["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",d["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",d);M.selectedThumbnailIndex=0;M.selectItem=function(N){N.target.onKeyDown(N)};
return M};
_.v(Hw,_.n);_.F=Hw.prototype;_.F.handlePreviewImageSelect=function(M){this.hoverThumbnail=M};
_.F.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.F.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.F.onThumbnailSelected=function(M,d){this.selectedThumbnailIndex=d};
_.F.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.F.updateOffset=function(){var M=_.K(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_()};
_.Hm.Object.defineProperties(Hw.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.imageRenderer){var d,N;return((d=this.data)==null?void 0:(N=d.imageRenderer)==null?void 0:N.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var M;if((M=this.data)==null?0:M.imageRenderer){var d;return(d=_.q(this.data.imageRenderer[this.selectedThumbnailIndex],Wcq))==null?void 0:d.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R,X=(R=(d=this.data)==null?void 0:(N=d.imageRenderer)==null?void 0:N.map(function(A,l){return{productDetailsThumbnailRenderer:Object.assign({},_.q(A,Wcq),{index:l,isSelected:l===M.selectedThumbnailIndex})}}))!=null?R:[];
return Object.assign({},this.data,{imageRenderer:X})}}});
Hw.prototype.updateOffset=Hw.prototype.updateOffset;Hw.prototype.dataChanged=Hw.prototype.dataChanged;Hw.prototype.onThumbnailSelected=Hw.prototype.onThumbnailSelected;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ak.YtdHorizontalListBehavior),_.a("design:type",Object)],Hw.prototype,"ytdHorizontalListBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Hw.prototype,"componentBehavior",void 0);_.G([_.S([_.tK.YtActionHandlerBehavior]),_.a("design:type",Object)],Hw.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hw.prototype,"data",void 0);_.G([_.H({value:"$.items.children"}),_.a("design:type",String)],Hw.prototype,"itemsPath",void 0);_.G([_.H({value:3}),_.a("design:type",Number)],Hw.prototype,"initialCount",void 0);
_.G([_.Z3("#items"),_.a("design:type",Object)],Hw.prototype,"items",void 0);_.G([_.H(),_.a("design:type",Object)],Hw.prototype,"selectedThumbnailIndex",void 0);_.G([_.H(),_.a("design:type",Object)],Hw.prototype,"hoverThumbnail",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Hw.prototype,"showThumbnails",null);
_.G([_.C3("ytd-product-details-thumbnail-renderer-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Number]),_.a("design:returntype")],Hw.prototype,"onThumbnailSelected",null);_.G([_.z("data","selectedThumbnailIndex","hoverThumbnail"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hw.prototype,"thumbnailDetails",null);_.G([_.z("data","selectedThumbnailIndex"),_.a("design:type",Object),_.a("design:paramtypes",[])],Hw.prototype,"populatedData",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hw.prototype,"dataChanged",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hw.prototype,"updateOffset",null);Hw=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Hw);
_.L(Hw,"ytd-product-details-image-carousel-renderer",function(){if(tWT!==void 0)return tWT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return tWT=M},{mode:_.G3("kevlar_poly_si_batch_j079")?1:2});var aeY;var np=function(){return _.n.apply(this,arguments)||this};
_.v(np,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],np.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],np.prototype,"data",void 0);np=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],np);
_.L(np,"ytd-product-details-offer-renderer",function(){if(aeY!==void 0)return aeY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return aeY=M},{mode:1});var UJ$;var i9=function(){var M=_.n.apply(this,arguments)||this;M.isOffersHidden=!0;return M};
_.v(i9,_.n);i9.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var M,d=_.q((M=this.data)==null?void 0:M.viewOffersButton,_.K9);d&&this.ytRendererBehavior.logExplicitClick(d)};
i9.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Hm.Object.defineProperties(i9.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return(N=_.q((M=this.data)==null?void 0:(d=M.offers)==null?void 0:d[0],h_r))==null?void 0:(R=N.offerData)==null?void 0:R.vendorLogoUrl}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],i9.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],i9.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],i9.prototype,"isOffersHidden",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],i9.prototype,"firstOfferVendorLogoUrl",null);i9=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],i9);
_.L(i9,"ytd-product-details-offers-container-renderer",function(){if(UJ$!==void 0)return UJ$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return UJ$=M},{mode:1});var uH4;var CAb;var fp=function(){return _.n.apply(this,arguments)||this};
_.v(fp,_.n);fp.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
fp.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Eu(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
fp.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Eu(this,"ytd-product-details-variant-image-unselect")};
_.Hm.Object.defineProperties(fp.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((d=this.data)==null?void 0:d.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((N=this.data)==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var M;if(((M=this.data)==null?void 0:M.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.isUnavailable?(M=this.data)==null?void 0:M.variantOptionUnavailableAccessibilityLabel:(d=this.data)==null?void 0:d.variantOptionAccessibilityLabel}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],fp.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],fp.prototype,"displayType",void 0);
_.G([_.z("displayType","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fp.prototype,"isImageButton",null);_.G([_.z("displayType","data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fp.prototype,"isPillButton",null);_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fp.prototype,"isActive",null);
_.G([_.z("data"),_.H({reflectToAttribute:!0}),_.a("design:type",Boolean),_.a("design:paramtypes",[])],fp.prototype,"isUnavailable",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fp.prototype,"thumbnailDetails",null);_.G([_.z("isUnavailable","data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fp.prototype,"accessibilityLabel",null);fp=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],fp);
_.L(fp,"ytd-product-details-variant-option-renderer",function(){if(CAb!==void 0)return CAb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return CAb=M},{mode:1});var xJb;var Lp=function(){var M=_.n.apply(this,arguments)||this;M.variantsExpanded=!1;M.hideShowMoreLessVariantButton=!0;M.initialized=!1;M.computeVariantsDebouncer=null;M.computeVariants=function(d){d=d===void 0?!1:d;M.variantsExpanded||M.showOptions()||!d||(M.variantsExpanded=!0);if(M.variantsExpanded){d=_.V(M.items.children);for(var N=d.next();!N.done;N=d.next())N.value.hidden=!1}M.initialized=!0};
return M};
_.v(Lp,_.n);_.F=Lp.prototype;_.F.ready=function(){var M=this;setTimeout(function(){M.computeVariants(!0)})};
_.F.showOptions=function(){for(var M=_.V(this.items.children),d=M.next();!d.done;d=M.next())d.value.hidden=!0;var N=this.container.getBoundingClientRect().width,R=0,X=M=0;d=!1;for(var A=_.V(this.items.children),l=A.next();!l.done;l=A.next()){l=l.value;l.hidden=!1;var k=l.getBoundingClientRect().width;if(R+k<N)R+=k;else if(++X<2)R=k;else break;M+=1;l.hasAttribute("is-active")&&(d=!0)}for(N=M;N<this.items.children.length;N++)this.items.children[N].hidden=!0;this.hideShowMoreLessVariantButton=M===this.items.children.length;
return d};
_.F.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Rg(this.computeVariantsDebouncer,_.GY.after(100),this.computeVariants)};
_.F.onShowMoreLessVariantsButtonClick=function(){var M;(M=this.data)!=null&&M.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.F.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Hm.Object.defineProperties(Lp.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.variantOptionRenderers)==null?void 0:d.find(function(A){return _.q(A,pHq).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),R,X;
return(X=(R=_.q(N,pHq))==null?void 0:R.name)!=null?X:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
Lp.prototype.debouncedComputeVariants=Lp.prototype.debouncedComputeVariants;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Lp.prototype,"componentBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],Lp.prototype,"ironResizableBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Lp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Lp.prototype,"variantsExpanded",void 0);_.G([_.H(),_.a("design:type",Object)],Lp.prototype,"hideShowMoreLessVariantButton",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Lp.prototype,"initialized",void 0);_.G([_.Z3("#items"),_.a("design:type",HTMLDivElement)],Lp.prototype,"items",void 0);_.G([_.Z3("#container"),_.a("design:type",HTMLDivElement)],Lp.prototype,"container",void 0);
_.G([_.Z3("#more-variants-button"),_.a("design:type",HTMLElement)],Lp.prototype,"moreVariantsButton",void 0);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Lp.prototype,"selectedOptionName",null);_.G([_.xB("data","variantsExpanded"),_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Lp.prototype,"debouncedComputeVariants",null);
_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],Lp.prototype,"displayType",null);_.G([_.z("displayType"),_.a("design:type",Object),_.a("design:paramtypes",[])],Lp.prototype,"variantItemsClassname",null);Lp=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Lp);
_.L(Lp,"ytd-product-details-variant-renderer",function(){if(xJb!==void 0)return xJb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return xJb=M},{mode:1});var tF=function(){return _.n.apply(this,arguments)||this};
_.v(tF,_.n);
tF.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"}}}};
_.Hm.Object.defineProperties(tF.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(d=_.q((M=this.data)==null?void 0:M.offersContainerRenderer,mJb))==null?void 0:d.offers;return N!==void 0&&(N==null?void 0:N.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((N=(M=this.data)==null?void 0:(d=M.variants)==null?void 0:d.map(function(R){var X,A;R=(A=(X=_.q(R,wHC))==null?void 0:X.variantOptionRenderers)==null?void 0:A.find(function(k){var T;return((T=_.q(k,pHq))==null?void 0:T.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var l;return(l=_.q(R,pHq))==null?void 0:l.name}).filter(function(R){return typeof R==="string"}))!=null?N:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R=(d=_.q((M=this.data)==null?void 0:M.shoppingFlaggingRenderer,QY4))==null?void 0:(N=d.reportButton)==null?void 0:N.buttonRenderer;if(R)return{text:R.text,command:R.command,icon:{iconType:"FLAG"},accessibilityData:R.accessibilityData,trackingParams:R.trackingParams,loggingDirectives:R.loggingDirectives}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],tF.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tF.prototype,"data",void 0);_.G([_.Z3("#image-carousel-renderer"),_.a("design:type",Object)],tF.prototype,"imageCarouselRenderer",void 0);
_.G([_.Z3("#hero-offer-renderer"),_.a("design:type",Object)],tF.prototype,"productDetailsHeroOfferRenderer",void 0);_.G([_.Z3("#variants"),_.a("design:type",Object)],tF.prototype,"productDetailsVariantRenderer",void 0);_.G([_.Z3("#offers"),_.a("design:type",Object)],tF.prototype,"productDetailsOffersContainerRenderer",void 0);_.G([_.Z3("#description-renderer"),_.a("design:type",Object)],tF.prototype,"productDetailsDescriptionRenderer",void 0);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],tF.prototype,"showPurchaseData",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],tF.prototype,"showHeroOfferRenderer",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],tF.prototype,"showBrandText",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],tF.prototype,"showOffers",null);
_.G([_.z("showOffers","showPurchaseData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],tF.prototype,"showBuySeparator",null);_.G([_.z("showOffers","showPurchaseData"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],tF.prototype,"showBuyCard",null);_.G([_.z("data"),_.a("design:type",String),_.a("design:paramtypes",[])],tF.prototype,"selectedVariantsText",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],tF.prototype,"shoppingReportingButtonData",null);
tF=_.G([_.f({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],tF);
_.L(tF,"ytd-product-details-renderer",function(){if(uH4!==void 0)return uH4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return uH4=M},{mode:1});var YE9;var ZoY;var Eo$;var GC=function(){return _.n.apply(this,arguments)||this};
_.v(GC,_.n);GC.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Hm.Object.defineProperties(GC.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],GC.prototype,"formattedAmount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],GC.prototype,"ariaLabel",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",String),_.a("design:paramtypes",[])],GC.prototype,"vcBalanceWidgetStyle",null);GC=_.G([_.w4({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],GC);
_.L(GC,"yt-vc-balance-renderer",function(){if(Eo$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ZoY===void 0&&(ZoY=document.createElement("template"));var R=ZoY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Eo$=M}M=Eo$;return M},{mode:2});_.pO("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var a3=function(){return _.n.apply(this,arguments)||this};
_.v(a3,_.n);_.Hm.Object.defineProperties(a3.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:""}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],a3.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],a3.prototype,"data",void 0);_.G([_.H({selectorArgs:["data.vcBalanceEntityKey"],selector:function(M,d){return _.Rz(M.entities,"vcBalanceEntity",d)}}),
_.a("design:type",Object)],a3.prototype,"vcBalanceEntity",void 0);_.G([_.z("vcBalanceEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],a3.prototype,"formattedAmount",null);_.G([_.z("vcBalanceEntity"),_.a("design:type",String),_.a("design:paramtypes",[])],a3.prototype,"vcBalanceAriaLabel",null);a3=_.G([_.f({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],a3);
_.L(a3,"ytd-vc-balance-renderer",function(){if(YE9!==void 0)return YE9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return YE9=M},{mode:1});var MK9;var UQ=function(){var M=_.n.apply(this,arguments)||this;M.rotation=0;M.isReloading=!1;return M};
_.v(UQ,_.n);UQ.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
UQ.prototype.reset=function(){this.hostElement.style.opacity=""};
UQ.prototype.close=function(){var M=this;return _.B(function(d){if(d.nextAddress==1)return _.D(d,M.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.hostElement.style.opacity="0";_.Vy(d)})};
UQ.prototype.rotationChanged=UQ.prototype.rotationChanged;_.G([_.H(),_.a("design:type",Object)],UQ.prototype,"rotation",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],UQ.prototype,"isReloading",void 0);_.G([_.Z3("#icon"),_.a("design:type",HTMLElement)],UQ.prototype,"icon",void 0);_.G([_.xB("rotation"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],UQ.prototype,"rotationChanged",null);
UQ=_.G([_.f({disableElementRegistration:!0,is:"ytd-refresh"})],UQ);
_.L(UQ,"ytd-refresh",function(){if(MK9!==void 0)return MK9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return MK9=M},{mode:1});var dPr;var NRD;var RNb=function(M,d,N,R,X,A,l,k){this.minWidth=M;this.minHeight=d;this.recommendedWidth=N;this.recommendedHeight=R;this.JSC$19297_maxFileSize=X;this.title=A;this.bannerGalleryTitle=l;this.channelId=k;this.picker_=null;M=_.KqZ("yt-banner");d=M.addView;N=(new NiG("youtubebanner")).addUploadMetadata("silo_id","19");N.opts.ytMaxFileSize=this.JSC$19297_maxFileSize;R=this.recommendedHeight;N.opts.ytRecWidth=this.recommendedWidth;N.opts.ytRecHeight=R;d.call(M,N);M.addView(new _.It);d=M.addView;N=new _.It;
N.opts.type="ytbanner";d.call(M,N.JSC$7959_setLabel(this.bannerGalleryTitle));d=M.setTitle(this.title).setSize(1E3);d.urlParamMap_.set("thumbs","orig");N=this.minWidth;R=this.minHeight;if(isNaN(N)||isNaN(R))throw Error("kb`"+N+"`"+R);d.urlParamMap_.set("minSize",N+"x"+R);d.urlParamMap_.set("cropMode","ytcb");this.builder_=M};
RNb.prototype.open=function(){var M=this;return new _.Xy(function(d,N){_.JAV(M.builder_,function(R){R.action=="picked"?d(R):R.action=="cancel"&&N(Error("Xl"))});
M.picker_&&M.picker_.dispose();M.picker_=M.builder_.build();M.picker_.setVisible(!0)})};
RNb.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var XEb=function(M){this.channelId=M},Fu4=function(M,d){var N="";
d.viewToken&&(N=d.viewToken[2].type);var R=d.docs[0];d=R.crop;M={channel_id:M.channelId,fife_url:R.thumbnails[0].url,photo_id:R.id,is_gallery_image:N=="ytbanner"};d&&(M.crop_top=d.top,M.crop_right=d.right,M.crop_bottom=d.bottom,M.crop_left=d.left);return _.ccj("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:M})};var u9=function(){var M=_.n.apply(this,arguments)||this;M.ariaLabel=null;return M};
_.v(u9,_.n);_.F=u9.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.F.detached=function(){this.picker&&this.picker.dispose()};
_.F.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.F.computeAriaLabel=function(M){return M};
_.F.onTap=function(){var M=this,d;if((d=this.data)==null||!d.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new RNb(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 N;(N=this.picker)==null||N.open().then(function(R){M.handleBannerPicked(R)},function(){})}};
_.F.handleBannerPicked=function(M){var d=this;this.uploader||(this.uploader=new XEb(this.data.channelId||""));this.message=this.data.uploadingText;Fu4(this.uploader,M).then(function(N){d.handleBannerUploadSucceeded(N)},function(N){d.handleBannerUploadFailed(N)})};
_.F.handleBannerUploadSucceeded=function(M){M&&M.errors?this.handleBannerUploadFailed(M):(_.YP(this.hostElement,"yt-banner-updated",M),this.message=null)};
_.F.handleBannerUploadFailed=function(M){this.message=M&&M.errors&&M.errors.length?M.errors[0]:null};
u9.prototype.dataChanged=u9.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],u9.prototype,"componentBehavior",void 0);_.G([_.S(_.oH),_.a("design:type",Object)],u9.prototype,"ironButtonState",void 0);_.G([_.H(),_.a("design:type",Object)],u9.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.a("design:type",Object)],u9.prototype,"ariaLabel",void 0);
_.G([_.H(),_.a("design:type",Object)],u9.prototype,"message",void 0);_.G([_.H(),_.a("design:type",Object)],u9.prototype,"picker",void 0);_.G([_.H(),_.a("design:type",Object)],u9.prototype,"uploader",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],u9.prototype,"dataChanged",null);u9=_.G([_.f({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],u9);
_.L(u9,"ytd-channel-banner-editor-renderer",function(){if(NRD!==void 0)return NRD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return NRD=M},{mode:1});var A39;var VKq=_.a1(["#"]),Cp=function(){return _.n.apply(this,arguments)||this};
_.v(Cp,_.n);Cp.prototype.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M,!0)||_.pS(VKq)};
Cp.prototype.dataChanged=function(){var M=this.data;M&&M.targetId&&_.Yt3(_.Nl(),M.targetId,this.moreIcon)};
Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Cp.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cp.prototype,"data",void 0);_.G([_.Z3("#more-icon"),_.a("design:type",Object)],Cp.prototype,"moreIcon",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Cp.prototype,"dataChanged",null);
Cp=_.G([_.f({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Cp);
_.L(Cp,"ytd-channel-tagline-renderer",function(){if(A39!==void 0)return A39;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return A39=M},{mode:1});var lfe;var xz=function(){return _.n.apply(this,arguments)||this};
_.v(xz,_.n);_.F=xz.prototype;_.F.ready=function(){var M=this;_.K(this.hostElement).querySelector("#form").addEventListener("submit",function(d){M.onSubmit(d)})};
_.F.onDataChanged=function(){var M;((M=this.data)==null?0:M.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.F.onIconButtonKeydown=function(M){M.keyCode===13&&this.iconButton.click()};
_.F.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.F.openOnClickHandler=function(){this.input.focus()};
_.F.onSubmit=function(M){M.preventDefault();return!1};
_.F.submitOnEnterKeyUp=function(M){var d;if(M.keyCode===13&&((d=this.data)==null?0:d.expandedText)){M=this.data.endpoint;d=_.wF.unsafeClone(M);var N;((N=_.q(d==null?void 0:d.commandMetadata,_.an))==null?0:N.url)?(_.q(d.commandMetadata,_.an).url=_.oR(_.q(d.commandMetadata,_.an).url,"query",this.data.expandedText),_.q(d,_.F8)&&(_.q(d,_.F8).query=this.data.expandedText),_.YP(this.hostElement,"yt-navigate",{endpoint:d,tempData:{disableCache:!0}})):(N=new _.WJ("Error: Trying to navigate to an endpoint without url",
M),_.qZ(N))}};
_.F.updateDataExpandedTextFromBinding=function(M){this.set("data.expandedText",M.detail.value)};
xz.prototype.onDataChanged=xz.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Dyd),_.a("design:type",Object)],xz.prototype,"ytdExpandableInputBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xz.prototype,"data",void 0);_.G([_.Z3("#input"),_.a("design:type",Object)],xz.prototype,"input",void 0);_.G([_.Z3("#icon-button"),_.a("design:type",HTMLElement)],xz.prototype,"iconButton",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xz.prototype,"onDataChanged",null);xz=_.G([_.f({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],xz);
var UaY=_.ty()(xz,"ytd-expandable-tab-renderer",function(){if(lfe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);lfe=M}M=lfe;return M},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var $Pq;var BR$=_.a1(["#"]),Yz=function(){return _.n.apply(this,arguments)||this};
_.v(Yz,_.n);Yz.prototype.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M,!0)||_.pS(BR$)};
_.Hm.Object.defineProperties(Yz.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return _.ht((M=this.data)==null?void 0:M.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return _.ht((M=this.data)==null?void 0:M.moreOnTap)}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Yz.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Yz.prototype,"usePageHeaderStyle",void 0);_.G([_.z("data.primaryOnTap"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yz.prototype,"primaryLinkEndpoint",null);
_.G([_.z("data.moreOnTap"),_.a("design:type",Object),_.a("design:paramtypes",[])],Yz.prototype,"moreEndpoint",null);Yz=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],Yz);
_.L(Yz,"ytd-channel-header-links-view-model",function(){if($Pq!==void 0)return $Pq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $Pq=M},{mode:1});var k$b;var Zw=function(){var M=_.n.apply(this,arguments)||this;M.avatarSize=80;M.ariaLabel=_.le("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return M};
_.v(Zw,_.n);Zw.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Zw.prototype.computeHref=function(M){var d;return((d=_.q(M,_.JQ))==null?0:d.url)?this.componentBehavior.computeHref_(M):null};
Zw.prototype.onTap=function(){var M,d;(M=this.data)==null||!M.editAvatarServiceEndpoint||((d=_.q(this.data.editAvatarServiceEndpoint,_.JQ))==null?0:d.url)||_.h().resolve(_.xV).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.G([_.S(_.oH),_.a("design:type",Object)],Zw.prototype,"ironButtonState",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Zw.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Zw.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Zw.prototype,"avatarSize",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],Zw.prototype,"ariaLabel",void 0);Zw=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Zw);
_.L(Zw,"ytd-channel-avatar-editor",function(){if(k$b!==void 0)return k$b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return k$b=M},{mode:1});_.eC(_.wwt,"yt-tab-group-shape",{props:{shape:_.cA}});var EQ=function(){var M=_.n.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(d){return uai(d,function(){return void M.onSearchNavigate()})};
M.isRichGrid=!1;M.richGridMiniMode=!1;M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return M};
_.v(EQ,_.n);_.F=EQ.prototype;_.F.areAllFalse=function(M,d,N){return!M&&!d&&!N};
_.F.updateJoinButtonOverrides=function(){var M;(M=_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||M.set("overrides",this.joinButtonOverrides)};
_.F.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.F.attached=function(){this.data&&this.dataChanged()};
_.F.computeHeaderDisabled=function(M,d){return d||!M};
_.F.handleButtonRefreshAction=function(M){(M=_.q(M,_.UnL))&&this.set("data.sponsorButton",M.membershipButton)};
_.F.handleInsertTabCommand=function(M){var d=_.q(M,IeT);d&&d.externalChannelId===this.data.channelId&&(d.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(N){return N.tabRenderer&&N.tabRenderer.tabIdentifier===d.tabIdentifier})||this.splice("tabs",d.tabIndex||-1,0,d.tab))};
_.F.handleRefreshChannelTabAction=function(M){var d,N=(d=this.tabs)==null?void 0:d.filter(function(A){var l;return(l=A.tabRenderer)==null?void 0:l.selected});
d=(N==null?void 0:N.length)===1?N[0]:void 0;var R;if((d==null?void 0:(R=d.tabRenderer)==null?void 0:R.tabIdentifier)===M){var X;_.YP(this.hostElement,"yt-navigate",{endpoint:(X=d.tabRenderer)==null?void 0:X.endpoint,tempData:{disableCache:!0}})}};
_.F.onWindowResize=function(){_.K(this.hostElement).querySelector("#header").fire("iron-resize")};
_.F.dataChanged=function(){var M=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var d=_.Hz(this.data.banner.thumbnails,this.hostElement.clientWidth);d&&(d.indexOf("//")===0&&(d="https:"+d),this.hasChannelArt=!0,_.UO(this.hostElement,{"--yt-channel-banner":"url("+d+")"}))}this.hasChannelArt!==M&&_.K(this.hostElement).querySelector("#header").fire("iron-resize")};
_.F.onBannerUpdated=function(M,d){M=window.devicePixelRatio>1?d.hq_url:d.url;M.indexOf("//")===0&&(M="https:"+M);this.hasChannelArt=!0;_.UO(this.hostElement,{"--yt-channel-banner":"url("+M+")"})};
_.F.observeLightsourcePalette=function(){var M,d,N=(M=this.data)==null?void 0:(d=M.headerColorPalette)==null?void 0:d.lightsourceColorPaletteData;N&&_.Wi(this.hostElement,N)};
_.F.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.UO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.F.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.F.handleUnsubscribeAction=function(){var M,d;((d=_.q((M=this.data)==null?void 0:M.sponsorButton,_.K9))==null?void 0:d.style)==="STYLE_PRIMARY"&&_.K(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.F.onFocusedChanged=function(M){(M=_.cN(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
_.F.updateSelectedFromBinding=function(M){this.ytdTabbedHeaderBehavior.selected=M.detail.value};
_.Hm.Object.defineProperties(EQ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:xad(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.headerLinks)==null?0:d.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.subscriptionStateEntity)==null||!M.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var M=this.channelHandleDisplayStyle;return M==="MODERN"||M==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return this.usePageHeaderStyle||!((M=this.data)==null?0:M.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var M;return this.usePageHeaderStyle||!((M=this.data)==null||!M.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.q((M=this.data)==null?void 0:M.bannerEditor,DJT)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var M;return _.Q("enable_view_pronouns_on_main_app")&&!((M=this.data)==null||!M.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var M;return(this.useModernStyle||this.usePageHeaderStyle)&&!((M=this.data)==null||!M.videosCountText)}}});
EQ.prototype.observerRichGridItemsPerRow=EQ.prototype.observerRichGridItemsPerRow;EQ.prototype.observeLightsourcePalette=EQ.prototype.observeLightsourcePalette;EQ.prototype.onBannerUpdated=EQ.prototype.onBannerUpdated;EQ.prototype.dataChanged=EQ.prototype.dataChanged;EQ.prototype.updateJoinButtonOverrides=EQ.prototype.updateJoinButtonOverrides;_.G([_.S(_.ok),_.a("design:type",Object)],EQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.S(vo9),_.a("design:type",Object)],EQ.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],EQ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],EQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],EQ.prototype,"ytdReduxBehavior",void 0);_.G([_.Z3("#tabs"),_.a("design:type",Object)],EQ.prototype,"tabsElement",void 0);_.G([_.H(),_.a("design:type",Array)],EQ.prototype,"tabs",void 0);_.G([_.z("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],EQ.prototype,"tabGroupShape",null);_.G([_.H(),_.a("design:type",Object)],EQ.prototype,"expandableCustomTabRenderable",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],EQ.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Object)],EQ.prototype,"richGridMiniMode",void 0);_.G([_.H({selector:_.Iz}),_.a("design:type",Number)],EQ.prototype,"richGridItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],EQ.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],EQ.prototype,"hasChannelArt",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"hasChannelHeaderLinks",null);_.G([_.H({selector:_.Et9,reflectToAttribute:!0}),_.a("design:type",Boolean)],EQ.prototype,"guideIsVisibleButNotPersistent",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],EQ.prototype,"subscribeKey",null);
_.G([_.H({selectorArgs:["subscribeKey"],selector:_.xF}),_.a("design:type",Object)],EQ.prototype,"subscriptionStateEntity",void 0);_.G([_.z("subscriptionStateEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],EQ.prototype,"subscribed",null);_.G([_.z("subscribed"),_.a("design:type",Object),_.a("design:paramtypes",[])],EQ.prototype,"joinButtonOverrides",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"useModernStyle",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"usePageHeaderStyle",null);_.G([_.z("useModernStyle","usePageHeaderStyle"),_.a("design:type",Number),_.a("design:paramtypes",[])],EQ.prototype,"avatarSize",null);
_.G([_.z("channelHandleDisplayStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"shouldInlineChannelName",null);_.G([_.z("data","usePageHeaderStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"hideBannerEndpoint",null);_.G([_.z("data","usePageHeaderStyle"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"hideBannerVisibleArea",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"showBannerEditor",null);_.G([_.z("usePageHeaderStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],EQ.prototype,"bannerEffects",null);_.G([_.z("usePageHeaderStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],EQ.prototype,"effectsConfig",null);_.G([_.z("usePageHeaderStyle","hasChannelArt"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"shouldShowPageHeaderBanner",null);
_.G([_.z("data.channelHandleText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"isChannelHandlePresent",null);_.G([_.z("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.a("design:type",String),_.a("design:paramtypes",[])],EQ.prototype,"channelHandleDisplayStyle",null);_.G([_.z("data.channelPronouns"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"shouldShowChannelPronouns",null);
_.G([_.z("data.subscriberCountText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"shouldShowSubscriberCount",null);_.G([_.z("useModernStyle","data.videosCountText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],EQ.prototype,"shouldShowVideosCount",null);_.G([_.xB("joinButtonOverrides"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EQ.prototype,"updateJoinButtonOverrides",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EQ.prototype,"dataChanged",null);_.G([_.C3("yt-banner-updated"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],EQ.prototype,"onBannerUpdated",null);_.G([_.xB("data.headerColorPalette.lightsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EQ.prototype,"observeLightsourcePalette",null);
_.G([_.xB("richGridItemsPerRow","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],EQ.prototype,"observerRichGridItemsPerRow",null);EQ=_.G([_.f({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],EQ);
_.L(EQ,"ytd-c4-tabbed-header-renderer",function(){if(dPr!==void 0)return dPr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-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-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return dPr=M},{mode:1});var TRJ;var MC=function(){return _.n.apply(this,arguments)||this};
_.v(MC,_.n);MC.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"}}}};
MC.prototype.dataChanged=function(){if(this.data){var M=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var d=_.Hz(this.data.banner.thumbnails,this.hostElement.clientWidth);d&&(d.indexOf("//")===0&&(d="https:"+d),this.hasBannerArt=!0,_.UO(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+d+")"}))}this.hasBannerArt!==M&&_.K(this.hostElement).querySelector("#header").fire("iron-resize")}};
MC.prototype.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
MC.prototype.dataChanged=MC.prototype.dataChanged;_.G([_.S(vo9),_.a("design:type",Object)],MC.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ok),_.a("design:type",Object)],MC.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],MC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],MC.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],MC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],MC.prototype,"selected",void 0);_.G([_.H(),_.a("design:type",Boolean)],MC.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],MC.prototype,"hasBannerArt",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],MC.prototype,"dataChanged",null);MC=_.G([_.f({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],MC);
_.L(MC,"ytd-interactive-tabbed-header-renderer",function(){if(TRJ!==void 0)return TRJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return TRJ=M},{mode:1});var DPD;var d6=function(){return _.n.apply(this,arguments)||this};
_.v(d6,_.n);d6.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
d6.prototype.computeActionsAlignment=function(M){return(M==null?void 0:M.actionsAlignment)||""};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],d6.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.a("design:type",String)],d6.prototype,"actionsAlignment",void 0);
d6=_.G([_.f({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],d6);
_.L(d6,"ytd-page-footer-renderer",function(){if(DPD!==void 0)return DPD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return DPD=M},{mode:1});var gwi;var WuP;var NC=function(){var M=_.n.apply(this,arguments)||this;M.isEditing=!1;M.useSlot=!1;M.isMultiline=!1;return M};
_.v(NC,_.n);_.F=NC.prototype;_.F.onKeydown=function(M){if(M.keyCode===13&&!this.isMultiline)this.onSave();else if(M.keyCode===27)this.onCancel()};
_.F.computeComponentStyle=function(M){return(M==null?0:M.style)?M.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.F.computeisMultiline=function(M){if(this.multilineOverride!==void 0)return this.multilineOverride;var d,N;return!!(M==null?0:(d=M.formField)==null?0:(N=d.textInputFormFieldRenderer)==null?0:N.isMultiline)};
_.F.computeTextDisplayed=function(M,d){if(M)return M;if(d)return d};
_.F.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.F.onSave=function(){if(this.textForm.validate()){this.textForm.save();var M=this.textForm.value;if(M)this.set("data.textDisplayed",_.ep(M));else{var d;((d=this.data)==null?0:d.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.rQ("inline-form-changed",this.data));this.isEditing=!1}};
_.F.onCancel=function(){var M=_.HD(this.data.textDisplayed);M===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(M);this.isEditing=!1};
NC.prototype.onKeydown=NC.prototype.onKeydown;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],NC.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],NC.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],NC.prototype,"isEditing",void 0);_.G([_.H(),_.a("design:type",Object)],NC.prototype,"useSlot",void 0);_.G([_.H(),_.a("design:type",Boolean)],NC.prototype,"multilineOverride",void 0);_.G([_.H(),_.a("design:type",Boolean)],NC.prototype,"enableOverlayTheme",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.a("design:type",String)],NC.prototype,"componentStyle",void 0);
_.G([_.H({computed:"computeisMultiline(data)"}),_.a("design:type",Object)],NC.prototype,"isMultiline",void 0);_.G([_.Z3("#text-form"),_.a("design:type",Object)],NC.prototype,"textForm",void 0);_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],NC.prototype,"onKeydown",null);NC=_.G([_.f({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],NC);
_.L(NC,"ytd-inline-form-renderer",function(){if(WuP!==void 0)return WuP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return WuP=M},{mode:1});var wE4;var R7=function(){var M=_.n.apply(this,arguments)||this;M.previousSelectValue=void 0;M.selectedItemMessage=void 0;return M};
_.v(R7,_.n);R7.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
R7.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var M,d,N,R,X=(M=this.data)==null?void 0:(d=M.dropdown)==null?void 0:(N=d.dropdownRenderer)==null?void 0:(R=N.entries)==null?void 0:R.map(function(k){return k.privacyDropdownItemRenderer});
M=_.V(X!=null?X:[]);for(d=M.next();!d.done;d=M.next())if((d=d.value)&&d.int32Value===this.selectedValue){this.selectedItemMessage=d.itemMessage;break}}else this.selectedItemMessage=void 0;var A;(A=this.onValueChanged)==null||A.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var l;(l=this.data)!=null&&l.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
R7.prototype.onValueChangedForSelectedValue=function(M){this.selectedValue=M.detail.value};
R7.prototype.selectedValueChanged=R7.prototype.selectedValueChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],R7.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],R7.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],R7.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],R7.prototype,"theme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Number)],R7.prototype,"selectedValue",void 0);_.G([_.H(),_.a("design:type",Function)],R7.prototype,"onValueChanged",void 0);
_.G([_.NS("selectedValue"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],R7.prototype,"selectedValueChanged",null);R7=_.G([_.f({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],R7);
_.L(R7,"ytd-dropdown-form-field-renderer",function(){if(wE4!==void 0)return wE4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wE4=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var pEC;var Xp=function(){return _.n.apply(this,arguments)||this};
_.v(Xp,_.n);_.Hm.Object.defineProperties(Xp.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var M=[],d=_.V(this.data||[]),N=d.next();!N.done;N=d.next())(N=_.q(N.value,qEr))&&M.push(N);return M}}});
_.G([_.H(),_.a("design:type",Array)],Xp.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Xp.prototype,"byline",null);Xp=_.G([_.f({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Xp);
_.L(Xp,"ytd-playlist-byline-renderer",function(){if(pEC!==void 0)return pEC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pEC=M},{mode:1});var mPe;var Fp=function(){var M=_.n.apply(this,arguments)||this;M.rtlBullet=_.Q("web_playlist_stats_rtl_bullet_icon_killswitch");M.modern=_.Q("web_modern_buttons");M.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return M};
_.v(Fp,_.n);_.F=Fp.prototype;_.F.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"}}}}};
_.F.attached=function(){};
_.F.computeIsCustomThumbnail=function(M){return M?!!M.playlistCustomThumbnailRenderer:!1};
_.F.onYtNavigate=function(M,d){if(d&&d.actions&&d.actions.indexOf("shuffle")>-1){M=_.h().resolve(_.oL);var N=d.tempData||{};N.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);d.tempData=N;M.isShuffleNextPlaylist=!0}};
_.F.onUpdatePlaylistAction=function(M){var d;M=(d=_.q(M,_.uW3))==null?void 0:d.updatedRenderer;if(d=_.q(M,qg))this.data=d};
_.F.computeStyleType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeThumbnailWidth=function(M){return M==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.F.computeHideThumbnailAria=function(M){if(M==null?0:M.thumbnailOverlays)for(var d=0;d<M.thumbnailOverlays.length;d++){var N=void 0;if((N=M.thumbnailOverlays[d])==null?0:N.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Fp.prototype.onYtNavigate=Fp.prototype.onYtNavigate;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Fp.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Fp.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Fp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fp.prototype,"rtlBullet",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.a("design:type",String)],Fp.prototype,"styleType",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.a("design:type",Number)],Fp.prototype,"thumbnailWidth",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Fp.prototype,"modern",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.a("design:type",Boolean)],Fp.prototype,"isCustomThumbnail",void 0);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],Fp.prototype,"onYtNavigate",null);
Fp=_.G([_.f({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Fp);
_.L(Fp,"ytd-playlist-sidebar-primary-info-renderer",function(){if(mPe!==void 0)return mPe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return mPe=M},{mode:1});var hNJ;var AU=function(){return _.n.apply(this,arguments)||this};
_.v(AU,_.n);AU.prototype.computeOwnerVisibility=function(M){return!(!M.videoOwner&&!M.button)};
AU.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AU.prototype,"data",void 0);AU=_.G([_.f({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],AU);
_.L(AU,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(hNJ!==void 0)return hNJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return hNJ=M},{mode:1});var QbT;var Vk=function(){var M=_.n.apply(this,arguments)||this;M.expanded=!1;M.isCompact=!1;return M};
_.v(Vk,_.n);_.F=Vk.prototype;_.F.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.F.dataChanged=function(){this.data&&_.zP(_.K(this.text),_.Mie(_.R4e,_.HD(this.data.text||null)))};
_.F.computeAutoScrollEnabled=function(M,d){return M&&!d};
_.F.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.F.toggleOnTap=function(){this.expanded=!this.expanded};
Vk.prototype.expandedChanged=Vk.prototype.expandedChanged;Vk.prototype.dataChanged=Vk.prototype.dataChanged;_.G([_.S(_.$aq),_.a("design:type",Object)],Vk.prototype,"ytdAutoScrollBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vk.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Vk.prototype,"expanded",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Vk.prototype,"isCompact",void 0);_.G([_.H({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.a("design:type",Boolean)],Vk.prototype,"autoScrollEnabled",void 0);_.G([_.Z3("#text"),_.a("design:type",Object)],Vk.prototype,"text",void 0);_.G([_.Z3("#expander-icon"),_.a("design:type",Object)],Vk.prototype,"expanderIcon",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vk.prototype,"dataChanged",null);_.G([_.xB("expanded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vk.prototype,"expandedChanged",null);Vk=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Vk);
_.L(Vk,"ytd-channel-legal-info-renderer",function(){if(QbT!==void 0)return QbT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return QbT=M},{mode:1});var q7b;var Ifi=_.le("DOWNLOAD",{},"Download"),vw4=_.le("DOWNLOADING",{},"Downloading"),ORi=_.le("DOWNLOADED",{},"Downloaded"),lS=function(){var M=_.n.apply(this,arguments)||this;M.downloadProgress=0;M.isDownloadComplete=!1;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.v(lS,_.n);_.F=lS.prototype;_.F.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.F.dataChanged=function(){var M;(M=this.data)!=null&&M.tooltip||(M=_.sW(_.iY().getState(),this.playlistId),this.updateButtonState(M))};
_.F.computePlaylistId=function(M){return M};
_.F.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.F.updateButtonState=function(M){if(this.data&&(this.data.tooltip!==vw4||!_.TL(M))){this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=Ifi;var d="OFFLINE_DOWNLOAD";var N="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":M=ORi;d="OFFLINE_PIN";N="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":M=vw4;d="OFFLINE_DOWNLOADING_ZERO";N="ACTION_REMOVE_WITH_PROMPT";
break;default:M=Ifi,d="OFFLINE_DOWNLOAD",N="ACTION_ADD"}var R=Object.assign({},this.data);R.tooltip=M;R.accessibilityData={accessibilityData:{label:M}};R.icon={iconType:d};R.size="SIZE_DEFAULT";_.q(R.command,_.R0)&&(_.q(R.command,_.R0).action=N);this.set("data",R)}};
_.F.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?M="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var d;M!==((d=this.data.icon)==null?void 0:d.iconType)&&(d=Object.assign({},this.data),d.tooltip=vw4,d.accessibilityData={accessibilityData:{label:vw4}},d.icon={iconType:M},_.q(d.command,_.R0)&&(_.q(d.command,_.R0).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",d))}};
lS.prototype.updateProgress=lS.prototype.updateProgress;lS.prototype.onTransferStateChanged=lS.prototype.onTransferStateChanged;lS.prototype.dataChanged=lS.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],lS.prototype,"ytdReduxBehavior",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],lS.prototype,"forceIconButton",void 0);
_.G([_.H({value:!0}),_.a("design:type",Boolean)],lS.prototype,"forceIconOnly",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],lS.prototype,"overrides",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],lS.prototype,"buttonTooltipPosition",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],lS.prototype,"styleActionButton",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],lS.prototype,"disableTextTransform",void 0);
_.G([_.H({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.a("design:type",String)],lS.prototype,"playlistId",void 0);_.G([_.H(),_.a("design:type",Object)],lS.prototype,"data",void 0);_.G([_.H({selector:_.i92,selectorArgs:["playlistId"]}),_.a("design:type",Object)],lS.prototype,"downloadProgress",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lS.prototype,"isDownloadComplete",void 0);
_.G([_.H({selector:_.sW,selectorArgs:["playlistId"]}),_.a("design:type",String)],lS.prototype,"transferState",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],lS.prototype,"showTooltips",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],lS.prototype,"sendCommandWhenDisabled",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],lS.prototype,"disabled",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"dataChanged",null);_.G([_.NS("transferState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"onTransferStateChanged",null);_.G([_.NS("downloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lS.prototype,"updateProgress",null);
lS=_.G([_.f({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],lS);
_.L(lS,"ytd-download-playlist-button-renderer",function(){if(q7b!==void 0)return q7b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return q7b=M},{mode:1});var jbe;_.eC(_.Sq,"thumbnail-overlay-button-view-model",{props:{data:_.cA,lockupExperiments:_.cA}});var $X=function(){var M=_.n.apply(this,arguments)||this;M.isSquare=!1;M.isVertical=!1;return M};
_.v($X,_.n);$X.prototype.computeIsSquare=function(M){return M!=null&&M.thumbnail?aJT(M.thumbnail)==="SQUARE":!1};
$X.prototype.computeIsVertical=function(M){return M!=null&&M.thumbnail?aJT(M.thumbnail)==="VERTICAL":!1};
$X.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.a("design:type",Object)],$X.prototype,"isSquare",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.a("design:type",Object)],$X.prototype,"isVertical",void 0);
_.G([_.H(),_.a("design:type",Object)],$X.prototype,"data",void 0);$X=_.G([_.f({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],$X);
_.L($X,"ytd-hero-playlist-thumbnail-renderer",function(){if(jbe!==void 0)return jbe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jbe=M},{mode:1});var Bt=function(){var M=_.n.apply(this,arguments)||this;M.isDarkTheme=!1;M.isUltraWide=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return M};
_.v(Bt,_.n);_.F=Bt.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.h();var M;(M=_.h().resolve(_.CF(_.yl)))!=null&&(M.headerElement=this.hostElement)};
_.F.detached=function(){var M;(M=_.h().resolve(_.CF(_.yl)))!=null&&(M.headerElement=void 0)};
_.F.onUpdateHeader=function(M){(M=M.detail)&&this.set("data",M)};
_.F.computeTextDisplayed=function(M){if(M)return M.textDisplayed?M.textDisplayed:M.placeholder};
_.F.gradientColorToLinearGradientStop=function(M){var d=this.isDarkTheme?M.darkThemeColor:M.lightThemeColor;return d?_.ml(d)+" "+((M==null?void 0:M.startLocation)||0)*100+"%":"transparent"};
_.F.onWindowResize=function(){var M;((M=this.data)==null?0:M.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.F.onIronResize=function(M){this.isUltraWide=!M.detail.value};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.onUpdatePlaylistName=function(M){var d=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},M.detail.value));_.bM(this,function(){var N;(N=d.editableTitle)==null||N.resize()})};
_.F.onUpdatePlaylistDescription=function(M){var d=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},M.detail.value));_.bM(this,function(){var N;(N=d.editableDescriptionInlineExpander)==null||N.resize()})};
_.F.getCinematicData=function(M){return _.q(M==null?void 0:M.cinematicContainer,_.Ww)};
_.Hm.Object.defineProperties(Bt.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.getCinematicData(this.data))==null?void 0:M.config;return(M=this.isDarkTheme?d==null?void 0:d.darkThemeBackgroundColor:d==null?void 0:d.lightThemeBackgroundColor)?"background-color:"+_.p3(M)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var M;return _.q((M=this.data)==null?void 0:M.descriptionForm,goY)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N,R;return"background:linear-gradient(to bottom, "+(((R=(d=this.getCinematicData(this.data))==null?void 0:(N=d.gradientColorConfig)==null?void 0:N.map(function(X){return M.gradientColorToLinearGradientStop(X)}))==null?void 0:R.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var M;return _.HD((M=this.data)==null?void 0:M.descriptionTapText)}}});
Bt.prototype.onUpdateHeader=Bt.prototype.onUpdateHeader;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Bt.prototype,"actionHandlerBehavior",void 0);_.G([_.Z3("#description-inline-expander"),_.a("design:type",Object)],Bt.prototype,"descriptionInlineExpander",void 0);
_.G([_.Z3("#editable-description-inline-expander"),_.a("design:type",Object)],Bt.prototype,"editableDescriptionInlineExpander",void 0);_.G([_.H(),_.a("design:type",Object)],Bt.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Bt.prototype,"isUltraWide",void 0);_.G([_.Z3("#editable-title-display"),_.a("design:type",Object)],Bt.prototype,"editableTitle",void 0);_.G([_.z("isUltraWide"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bt.prototype,"maxDescriptionLines",null);
_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bt.prototype,"noCinematicData",null);_.G([_.C3("yt-new-playlist-header"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Bt.prototype,"onUpdateHeader",null);_.G([_.z("data","isDarkTheme"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bt.prototype,"backgroundStyle",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bt.prototype,"descriptionFormData",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bt.prototype,"getDropdownTheme",null);_.G([_.z("data","isDarkTheme"),_.a("design:type",String),_.a("design:paramtypes",[])],Bt.prototype,"gradientStyle",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Bt.prototype,"descriptionTapText",null);
Bt=_.G([_.f({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Bt);
_.L(Bt,"ytd-playlist-header-renderer",function(){if(gwi!==void 0)return gwi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return gwi=M},{mode:_.G3("kevlar_poly_si_batch_j078")?1:2});var sbq;var PoY;var kX=function(){return _.n.apply(this,arguments)||this};
_.v(kX,_.n);kX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kX.prototype,"data",void 0);kX=_.G([_.f({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],kX);
_.L(kX,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(PoY!==void 0)return PoY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return PoY=M},{mode:1});var TE=function(){return _.n.apply(this,arguments)||this};
_.v(TE,_.n);
TE.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}}}}};
TE.prototype.computeUsePremiumShowStyle=function(M){if(!M||!M.items)return!1;for(var d=0;d<M.items.length;d++)if(_.q(M.items[d],qg)){var N=void 0;return((N=_.q(M.items[d],qg))==null?void 0:N.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],TE.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.a("design:type",Boolean)],TE.prototype,"usePremiumShowStyle",void 0);
TE=_.G([_.f({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],TE);
_.L(TE,"ytd-playlist-sidebar-renderer",function(){if(sbq!==void 0)return sbq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return sbq=M},{mode:1});var ow9;var Erd=_.W5({pageHeaderViewModel:_.ERt});_.aR(MWT);var r3P=_.SG(function(M){var d=M.data;var N=M.noPadding;var R=M.enableBanner;var X=M.cinematicContainerTopbarOffset;var A=M.allowCinematicContainerOverflow;var l=M.displayAsSidebar;M=M.className;_.Wg(function(){d().tagManagerId&&(_.kH(d().tagManagerId,_.rK("GL")),Zn$(d().tagManagerId))});
var k=_.FT(Yw$,function(){return d().pageHeaderEntityKey});
return _.g("yt-page-header-renderer",{class:_.xj("page-header-renderer-wiz",M)},_.g(_.ho,{data:function(){var T;return((T=k())==null?0:T.header)?k().header:(l==null?0:l())&&d().sidebarContent?d().sidebarContent:d().content}},{pageHeaderViewModel:function(T){return _.g(_.MNe,{data:T.data,
noPadding:N,enableBanner:R,cinematicContainerTopbarOffset:X,allowCinematicContainerOverflow:A,displayAsSidebar:function(){return(l==null?void 0:l())&&d().enableSidebarView}})}}))},"mi"),Ku9=_.Q("web_enable_sink_yt_page_header_renderer")?r3P:MWT;
r3P.idomCompat=!0;_.Q("web_enable_sink_yt_page_header_renderer")?_.eC(Ku9,"yt-page-header-renderer",{props:{data:_.cA,noPadding:_.cA,enableBanner:_.cA,cinematicContainerTopbarOffset:_.cA,allowCinematicContainerOverflow:_.cA,displayAsSidebar:_.cA,className:_.cA}}):_.aA(Ku9,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar className".split(" ")});_.eC(_.mp,"yt-image-banner-view-model",{props:{data:_.cA,isPositionRelative:_.cA}});var D5=function(){var M=_.n.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(d){return uai(d,function(){return void M.onSearchNavigate()})};
M.isRichGrid=!1;M.isConstrainedList=!1;M.richGridMiniMode=!1;M.richGridStyle="RICH_GRID_STYLE_UNKNOWN";M.isRichGridShorts=!1;M.responsiveSizing="COMPACT";M.disableGridStateAware=!1;M.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return M};
_.v(D5,_.n);_.F=D5.prototype;_.F.computeHeaderDisabled=function(M,d){return d||!M||this.tabsHidden};
_.F.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.F.computeIsRichGridShorts=function(M){return M==="RICH_GRID_STYLE_SHORTS_GRID"||M==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.F.computeImageBannerViewModel=function(){var M,d;return _.q((d=_.q((M=this.data)==null?void 0:M.content,_.KTe))==null?void 0:d.banner,_.zRi)};
_.F.computeHasCinematicContainer=function(){var M,d;return!((d=_.q((M=this.data)==null?void 0:M.content,_.KTe))==null||!d.background)};
_.F.handleHeaderResize=function(){var M=_.K(this.hostElement).querySelector("#header");M&&_.YP(M,"iron-resize")};
_.F.handleInsertTabCommand=function(M){var d=_.q(M,IeT);d&&(d.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(N){return N.tabRenderer&&N.tabRenderer.tabIdentifier===d.tabIdentifier})||this.splice("tabs",d.tabIndex||-1,0,d.tab))};
_.F.handleRefreshChannelTabAction=function(M){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===M&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.F.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.UO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.F.observerRichGridSlimItemsPerRow=function(){_.UO(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.F.updateCssVars=function(){this.richGridItemsPerRow&&_.UO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ZR("rich_grid_max_item_width",500))+16)-16+"px"})};
_.F.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.UO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.F.onDataChanged=function(){this.handleHeaderResize()};
_.F.onWindowResize=function(){this.handleHeaderResize()};
_.F.onFocusedChanged=function(M){(M=_.cN(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
_.F.updateSelectedFromBinding=function(M){this.ytdTabbedHeaderBehavior.selected=M.detail.value};
_.F.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Hm.Object.defineProperties(D5.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:xad(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.imageBannerViewModel)==null?void 0:M.style)==="IMAGE_BANNER_STYLE_INSET"}}});
D5.prototype.onDataChanged=D5.prototype.onDataChanged;D5.prototype.updateCssVarsForResponsiveGrid=D5.prototype.updateCssVarsForResponsiveGrid;D5.prototype.updateCssVars=D5.prototype.updateCssVars;D5.prototype.observerRichGridSlimItemsPerRow=D5.prototype.observerRichGridSlimItemsPerRow;D5.prototype.observerRichGridItemsPerRow=D5.prototype.observerRichGridItemsPerRow;_.G([_.S(_.ok),_.a("design:type",Object)],D5.prototype,"ytdGridStateAwareBehavior",void 0);
_.G([_.S(vo9),_.a("design:type",Object)],D5.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],D5.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],D5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],D5.prototype,"ytdReduxBehavior",void 0);_.G([_.Z3("#tabs"),_.a("design:type",Object)],D5.prototype,"tabsElement",void 0);_.G([_.H(),_.a("design:type",Array)],D5.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Object)],D5.prototype,"expandableCustomTabRenderable",void 0);_.G([_.z("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],D5.prototype,"tabGroupShape",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],D5.prototype,"isRichGrid",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],D5.prototype,"isConstrainedList",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Object)],D5.prototype,"richGridMiniMode",void 0);_.G([_.H({selector:function(M){return M.ui.richGridStyle}}),
_.a("design:type",Object)],D5.prototype,"richGridStyle",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.a("design:type",Object)],D5.prototype,"isRichGridShorts",void 0);_.G([_.H({selector:_.Iz}),_.a("design:type",Number)],D5.prototype,"richGridItemsPerRow",void 0);_.G([_.H({selector:function(M){return M.ui.richGridContainerWidth}}),
_.a("design:type",Number)],D5.prototype,"richGridContainerWidth",void 0);_.G([_.H({selector:_.suN}),_.a("design:type",Number)],D5.prototype,"richGridSlimItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],D5.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],D5.prototype,"responsiveSizing",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],D5.prototype,"disableGridStateAware",void 0);
_.G([_.H({computed:"computeImageBannerViewModel(data)"}),_.a("design:type",Object)],D5.prototype,"imageBannerViewModel",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.a("design:type",Boolean)],D5.prototype,"hasCinematicContainer",void 0);_.G([_.H({selector:_.Et9,reflectToAttribute:!0}),_.a("design:type",Boolean)],D5.prototype,"guideIsVisibleButNotPersistent",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],D5.prototype,"hasBanner",null);_.G([_.H({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.a("design:type",Object),_.a("design:paramtypes",[])],D5.prototype,"hasInsetBanner",null);_.G([_.H({computed:"computeTabsHidden(tabs)",value:!0}),_.a("design:type",Boolean)],D5.prototype,"tabsHidden",void 0);
_.G([_.xB("richGridItemsPerRow","isRichGrid"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],D5.prototype,"observerRichGridItemsPerRow",null);_.G([_.xB("richGridSlimItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],D5.prototype,"observerRichGridSlimItemsPerRow",null);
_.G([_.xB("richGridItemsPerRow","richGridMiniMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],D5.prototype,"updateCssVars",null);_.G([_.xB("richGridContainerWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],D5.prototype,"updateCssVarsForResponsiveGrid",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],D5.prototype,"onDataChanged",null);
D5=_.G([_.f({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],D5);
_.L(D5,"ytd-tabbed-page-header",function(){if(ow9!==void 0)return ow9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ow9=M},{mode:1});var y3q;var g6=function(){return _.n.apply(this,arguments)||this};
_.v(g6,_.n);g6.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.UO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Hm.Object.defineProperties(g6.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var M,d;return this.componentBehavior.computeIcon_(((d=_.q((M=this.data)==null?void 0:M.badge,_.PmJ))==null?void 0:d.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.badge,_.PmJ))==null?void 0:d.label}}});
g6.prototype.observerRichGridItemsPerRow=g6.prototype.observerRichGridItemsPerRow;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],g6.prototype,"componentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],g6.prototype,"ytdReduxBehavior",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.qr}),_.a("design:type",Boolean)],g6.prototype,"richGridMiniMode",void 0);
_.G([_.H({selector:_.Iz}),_.a("design:type",Number)],g6.prototype,"richGridItemsPerRow",void 0);_.G([_.H(),_.a("design:type",Object)],g6.prototype,"data",void 0);_.G([_.xB("richGridItemsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g6.prototype,"observerRichGridItemsPerRow",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],g6.prototype,"badgeIconName",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],g6.prototype,"badgeLabel",null);g6=_.G([_.f({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],g6);
_.L(g6,"ytd-member-hub-profile-renderer",function(){if(y3q!==void 0)return y3q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return y3q=M},{mode:1});var J3d;var Wt=function(){return _.n.apply(this,arguments)||this};
_.v(Wt,_.n);Wt.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wt.prototype,"data",void 0);Wt=_.G([_.f({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Wt);
_.L(Wt,"ytd-settings-sidebar-renderer",function(){if(J3d!==void 0)return J3d;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return J3d=M},{mode:1});var c3Y;var w6=function(){return _.n.apply(this,arguments)||this};
_.v(w6,_.n);w6.prototype.shouldHideHashtagInfo_=function(M){return!(M==null?0:M.hashtagInfoText)};
w6.prototype.onFocusedChanged=function(M){(M=_.cN(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
w6.prototype.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
_.Hm.Object.defineProperties(w6.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
_.G([_.S(vo9),_.a("design:type",Object)],w6.prototype,"ytdTabbedHeaderBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w6.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],w6.prototype,"data",void 0);_.G([_.Z3("#tabs"),_.a("design:type",Object)],w6.prototype,"tabsElement",void 0);_.G([_.H(),_.a("design:type",Array)],w6.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Object)],w6.prototype,"selected",void 0);
_.G([_.z("tabs"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],w6.prototype,"tabsEnabled",null);w6=_.G([_.f({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],w6);
_.L(w6,"ytd-hashtag-header-renderer",function(){if(c3Y!==void 0)return c3Y;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-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-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return c3Y=M},{mode:_.G3("kevlar_poly_si_batch_j078")?1:2});var S79;var p_=function(){var M=_.n.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(d){return uai(d,function(){return void M.onSearchNavigate()})};
return M};
_.v(p_,_.n);p_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
p_.prototype.onSearchNavigate=function(){this.selected=void 0};
p_.prototype.onTabsChange=function(){var M,d=(M=this.tabs)==null?void 0:M.findIndex(function(N){var R;return N==null?void 0:(R=N.tabRenderer)==null?void 0:R.selected});
d!==void 0&&(this.selected=d)};
p_.prototype.onTabsActive=function(M){if(this.tabs!==void 0){var d,N;(M=(d=this.tabs[M.detail.selected])==null?void 0:(N=d.tabRenderer)==null?void 0:N.endpoint)&&_.YP(this.hostElement,"yt-navigate",{endpoint:M})}};
_.Hm.Object.defineProperties(p_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:xad(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
p_.prototype.onTabsChange=p_.prototype.onTabsChange;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.ok),_.a("design:type",Object)],p_.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],p_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],p_.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],p_.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Number)],p_.prototype,"selected",void 0);_.G([_.z("tabs.*"),_.a("design:type",Object),_.a("design:paramtypes",[])],p_.prototype,"tabGroupShape",null);_.G([_.H(),_.a("design:type",Object)],p_.prototype,"expandableCustomTabRenderable",void 0);
_.G([_.z("tabs"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],p_.prototype,"tabsEnabled",null);_.G([_.NS("tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],p_.prototype,"onTabsChange",null);p_=_.G([_.f({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],p_);
_.L(p_,"ytd-topic-channel-details-renderer",function(){if(S79!==void 0)return S79;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return S79=M},{mode:1});var zNb;var mV=function(){var M=_.n.apply(this,arguments)||this;M.disableGridStateAware=!1;return M};
_.v(mV,_.n);mV.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]]"}}}}}};
mV.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
mV.prototype.updateCssVars=function(){_.UO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ZR("rich_grid_max_item_width",500))+16)-16+"px"})};
mV.prototype.updateCssVars=mV.prototype.updateCssVars;mV.prototype.activeChanged=mV.prototype.activeChanged;_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],mV.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],mV.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mV.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],mV.prototype,"tabs",void 0);_.G([_.H(),_.a("design:type",Boolean)],mV.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],mV.prototype,"disableGridStateAware",void 0);
_.G([_.H({selector:_.Iz}),_.a("design:type",Number)],mV.prototype,"richGridItemsPerRow",void 0);_.G([_.H({selector:_.qr}),_.a("design:type",Boolean)],mV.prototype,"richGridMiniMode",void 0);_.G([_.Z3("ytd-carousel-item-renderer"),_.a("design:type",Object)],mV.prototype,"carousel",void 0);_.G([_.xB("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mV.prototype,"activeChanged",null);
_.G([_.xB("richGridItemsPerRow","richGridMiniMode"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mV.prototype,"updateCssVars",null);mV=_.G([_.f({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],mV);
_.L(mV,"ytd-carousel-header-renderer",function(){if(zNb!==void 0)return zNb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return zNb=M},{mode:1});var bRT;var eNJ=_.a1(["https://www.google-analytics.com/analytics.js"]),hU=function(){var M=_.n.apply(this,arguments)||this;M.scriptAnalyticsAdded=!1;return M};
_.v(hU,_.n);hU.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var M,d=(M=this.data)==null?void 0:M.tagManagerId;d&&(_.kH(d,_.rK("GL")),Zn$(d))};
hU.prototype.sendGoogleAnalyticsPageview=function(M){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var N=_.wH.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(N)};
var d=window.ga;d("set","page",window.location.pathname);d.l=+new Date;d("set","forceSSL",!0);d("create",M,"'auto'");d("send","pageview")};
hU.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var M=_.Vf("SCRIPT");M.name="ga-analytics";var d=_.u6(eNJ);_.Sd(M,d);M.async=!0;_.K(this.hostElement).appendChild(M)};
hU.prototype.dataChanged=hU.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],hU.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hU.prototype,"dataChanged",null);hU=_.G([_.f({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],hU);
_.L(hU,"ytd-channel-metadata-renderer",function(){if(bRT!==void 0)return bRT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bRT=M},{mode:1});var HRq;var nwq;var Qk=function(){return _.n.apply(this,arguments)||this};
_.v(Qk,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qk.prototype,"data",void 0);Qk=_.G([_.f({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Qk);
_.L(Qk,"ytd-sub-feed-option-renderer",function(){if(nwq!==void 0)return nwq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return nwq=M},{mode:1});var iRP;var qC=function(){return _.n.apply(this,arguments)||this};
_.v(qC,_.n);qC.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],qC.prototype,"ytRendererStamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],qC.prototype,"data",void 0);qC=_.G([_.f({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],qC);
_.L(qC,"ytd-sub-feed-selector-renderer",function(){if(iRP!==void 0)return iRP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return iRP=M},{mode:1});var I7=function(){return _.n.apply(this,arguments)||this};
_.v(I7,_.n);
I7.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}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],I7.prototype,"data",void 0);I7=_.G([_.f({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],I7);
_.L(I7,"ytd-browse-feed-actions-renderer",function(){if(HRq!==void 0)return HRq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return HRq=M},{mode:1});var ffi;var LuD;var vt=function(){return _.n.apply(this,arguments)||this};
_.v(vt,_.n);vt.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vt.prototype,"data",void 0);vt=_.G([_.f({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],vt);
_.L(vt,"ytd-mini-channel-renderer",function(){if(LuD!==void 0)return LuD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return LuD=M},{mode:1});var tK4;var OZ=function(){return _.n.apply(this,arguments)||this};
_.v(OZ,_.n);OZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OZ.prototype,"data",void 0);OZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],OZ);
_.L(OZ,"ytd-vertical-channel-section-renderer",function(){if(tK4!==void 0)return tK4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return tK4=M},{mode:1});var jf=function(){return _.n.apply(this,arguments)||this};
_.v(jf,_.n);jf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jf.prototype,"data",void 0);jf=_.G([_.f({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],jf);
_.L(jf,"ytd-browse-secondary-contents-renderer",function(){if(ffi!==void 0)return ffi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return ffi=M},{mode:1});var G$9;var sZ=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};M.notActive=!1;M.isConstrainedList=!1;return M};
_.v(sZ,_.n);_.F=sZ.prototype;
_.F.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(M){var d;return(M==null?void 0:(d=M.webComponentHint)==null?void 0:d.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}}}}};
_.F.getPath=function(M,d){var N="data.tabs.#"+d+".";M.tabs[d].tabRenderer?N+="tabRenderer.":M.tabs[d].expandableTabRenderer&&(N+="expandableTabRenderer.");return N+"content.sectionListRenderer"};
_.F.computeDisplayedContent=function(M){this.unlinkPaths("content");if(M&&M.tabs)for(var d=M.tabs.length,N=0;N<d;N++){var R=M.tabs[N].tabRenderer||M.tabs[N].expandableTabRenderer;if(R.selected&&R.content)return this.linkPaths("content",this.getPath(M,N)),R.content}return null};
_.F.computeHasSecondaryColumnData=function(M){return!!M&&!!M.secondaryContents};
_.F.onRetrieveLocation=function(M,d){d.locationRetrieved(d.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);M.stopPropagation()};
_.F.onYtServiceRequestSent=function(M,d){_.Q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(d)};
_.F.onYtServiceRequestCompleted=function(M,d){_.Q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(d)};
_.F.onReplaceFeedContentAction=function(M){if(!_.Q("replace_feed_content_action_killswitch")&&!this.notActive){var d;(M=(d=_.q(M,Biq))==null?void 0:d.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(M)}};
_.F.handleServiceRequestActions=function(M){if(M=M.actions){M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;var N=void 0;((N=_.q(d,Biq))==null?0:N.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.q(d,Biq).items)}}};
sZ.prototype.onYtServiceRequestCompleted=sZ.prototype.onYtServiceRequestCompleted;sZ.prototype.onYtServiceRequestSent=sZ.prototype.onYtServiceRequestSent;sZ.prototype.onRetrieveLocation=sZ.prototype.onRetrieveLocation;_.G([_.S(_.ok),_.a("design:type",Object)],sZ.prototype,"ytdGridStateAwareBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],sZ.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sZ.prototype,"data",void 0);_.G([_.H({computed:"computeDisplayedContent(data)"}),_.a("design:type",Object)],sZ.prototype,"content",void 0);
_.G([_.H({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],sZ.prototype,"hasSecondaryColumnData",void 0);_.G([_.H({value:function(){return window.outerHeight>1024?3:2}}),
_.a("design:type",Number)],sZ.prototype,"initialCount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],sZ.prototype,"pageSubtype",void 0);_.G([_.Z3("ytd-section-list-renderer"),_.a("design:type",Object)],sZ.prototype,"listRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],sZ.prototype,"notActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sZ.prototype,"isConstrainedList",void 0);
_.G([_.H(),_.a("design:type",String)],sZ.prototype,"responsiveSizing",void 0);_.G([_.C3("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sZ.prototype,"onRetrieveLocation",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],sZ.prototype,"onYtServiceRequestSent",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],sZ.prototype,"onYtServiceRequestCompleted",null);sZ=_.G([_.f({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],sZ);
_.L(sZ,"ytd-two-column-browse-results-renderer",function(){if(G$9!==void 0)return G$9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return G$9=M},{mode:2});var afJ;var UPP;var Pt=function(){var M=_.n.apply(this,arguments)||this;M.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);M.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return M};
_.v(Pt,_.n);_.F=Pt.prototype;_.F.attached=function(){this.requestElementsPerRow()};
_.F.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_]]"}}}}}};
_.F.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.F.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.F.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.F.computeAlertStyle_=function(M){return M};
_.F.observerElementsPerRow=function(){this.elementsPerRow&&_.UO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.F.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.F.requestElementsPerRow=function(){_.YP(this.hostElement,"yt-request-elements-per-row")};
Pt.prototype.onIsVisibleChanged_=Pt.prototype.onIsVisibleChanged_;Pt.prototype.observerElementsPerRow=Pt.prototype.observerElementsPerRow;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Pt.prototype,"actionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Pt.prototype,"data",void 0);_.G([_.H({value:6,reflectToAttribute:!0}),_.a("design:type",Number)],Pt.prototype,"elementsPerRow",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Pt.prototype,"wrapButtons",void 0);_.G([_.H({value:_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.a("design:type",Boolean)],Pt.prototype,"isMusic",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.a("design:type",String)],Pt.prototype,"alertStyle",void 0);_.G([_.H({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.a("design:type",Function)],Pt.prototype,"dismissBoundButtonTap_",void 0);_.G([_.H({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.a("design:type",Function)],Pt.prototype,"acceptBoundButtonTap_",void 0);_.G([_.xB("elementsPerRow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pt.prototype,"observerElementsPerRow",null);_.G([_.xB("data.isVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pt.prototype,"onIsVisibleChanged_",null);Pt=_.G([_.w4({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Pt);
_.L(Pt,"yt-alert-with-actions-renderer",function(){if(UPP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;afJ===void 0&&(afJ=document.createElement("template"));var R=afJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);UPP=M}M=UPP;return M},{mode:2});_.eC(_.SG(function(M){function d(t){var C={};return _.g(_.lG,{text:t,className:_.xj("ytPersonalGreetingViewModelHeadline",(C.ytPersonalGreetingViewModelHeadlineSmall=function(){return k()===48},C))})}
function N(t,C){return _.g("span",{el:t,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},d(C))}
var R=_.e5(),X=_.e5(),A=_.e5(),l=function(){return M.data().canvasPromoData},k=function(){var t;
return(t=M.data().bannerHeight)!=null?t:56},T=_.V(_.d0({content:""},void 0,"rcUSic")),W=T.next().value,w=T.next().value,p=_.LbS(R,{throttleMs:100}),m=_.LbS(X,{throttleMs:100}),I=_.LbS(A,{throttleMs:100});
T=_.V(_.d0(!0,void 0,"b0Yv9d"));var O=T.next().value,y=T.next().value;T=_.V(_.d0(!0,void 0,"ByEGnd"));var c=T.next().value,e=T.next().value;_.Wg(function(){e(m.width()-p.width()>1);y(I.width()+(M.data().avatar?48:0)-p.width()>1);w(O()?M.data().shorterGreeting:M.data().greeting)},"nSIsDe");
_.ek(R,function(){var t;return(t=M.data())==null?void 0:t.rendererContext},void 0,void 0,void 0,!0);
return _.g("yt-personal-greeting-view-model",{el:R,"aria-hidden":function(){return c()},
class:_.xj(M.className,"ytPersonalGreetingViewModelHost"),style:_.Xc({height:(0,_.TW)(function(){return c()?0:k()})})},_.g(_.kV,{cond:function(){return M.data().avatar&&!O()},
then:function(){return _.g(_.ho,{data:function(){return M.data().avatar}},{decoratedAvatarViewModel:function(t){return _.g(_.Dg,{data:t.data,
className:_.xj("ytPersonalGreetingViewModelAvatar")})}})}}),_.g("h1",null,d(function(){var t;
return(l==null?void 0:(t=l())==null?void 0:t.headline)||W()})),N(A,function(){return M.data().greeting}),N(X,function(){return M.data().shorterGreeting}))},"ni"),"yt-personal-greeting-view-model",{props:{data:_.cA,
className:_.cA}});var o7=function(){var M=_.n.apply(this,arguments)||this;M.hidden=!1;M.isConstrainedList=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.responsiveSizing="COMPACT";M.attachedPlayers=_.Q("kevlar_channel_trailer_multi_attach")?[]:void 0;M.player=null;M.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return M};
_.v(o7,_.n);_.F=o7.prototype;
_.F.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:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},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},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",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}}}}};
_.F.created=function(){var M=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){M.disposeMastheadAd()}]};
_.F.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new sYi(this.refresh,this.contents))};
_.F.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.F.activeChanged=function(){var M=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=M)};
_.F.tabsChanged=function(){var M=this,d,N,R,X;if(this.pageSubtype==="channels"||_.Q("kevlar_tab_gestures_for_tabbed_header_data")&&(((d=this.data)==null?0:(N=d.header)==null?0:N.c4TabbedHeaderRenderer)||((R=this.data)==null?0:(X=R.header)==null?0:X.carouselHeaderRenderer)))this.tabGestures=new vw(this.contents,this.contents,this.hostElement,this.header,function(T){M.ytdReduxBehavior.dispatch(T)});
var A,l,k;d=(A=this.data)==null?void 0:(l=A.contents)==null?void 0:(k=l.twoColumnBrowseResultsRenderer)==null?void 0:k.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=d);this.tabGestures&&this.tabGestures.tabsChanged(d)};
_.F.channelIdChanged=function(){if(this.tabGestures){var M,d,N,R=this.tabGestures,X=(M=this.data)==null?void 0:(d=M.header)==null?void 0:(N=d.c4TabbedHeaderRenderer)==null?void 0:N.channelId;X&&X!==R.currentChannelId&&(R.scrollPositionForTabs.clear(),R.currentChannelId=X,R.lastVisitedTabScrollPosition=void 0,R.tabsStartAtInPx=0)}};
_.F.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.F.engagementPanelsChanged=function(){var M=_.h().resolve(_.g1);if(M){if(this.engagementPanels)for(var d=_.V(this.engagementPanels),N=d.next();!N.done;N=d.next()){var R=void 0;(N=(R=N.value.identifier)==null?void 0:R.tag)&&M.panelMap.delete(N)}this.engagementPanels=[];var X;d=_.V(((X=this.data)==null?void 0:X.panels)||[]);for(X=d.next();!X.done;X=d.next()){X=_.q(X.value,_.daJ);var A=N=void 0,l=void 0,k=void 0;if(R=((N=X)==null?void 0:N.targetId)||((A=X)==null?void 0:A.panelIdentifier)||((l=X)==null?
void 0:(k=l.identifier)==null?void 0:k.tag))A=N=void 0,(A=(N=M).registerPanelContent)==null||A.call(N,R,{engagementPanelSectionListRenderer:X}),this.engagementPanels.push(X)}}};
_.F.onStampFinished=function(){var M=this;_.bM(this,function(){if(M.tabGestures){var d=M.tabGestures;if(d.scrollPositionNeedsUpdate){var N=_.h().resolve(_.CF(_.em)),R;if((R=d.selectedTab)!=null&&R.title&&N&&(R=N.getCurrentPage())){if(d.scrollPositionForTabs.has(d.selectedTab.title)){var X,A;N=(A=(X=N.getCurrentPage())==null?void 0:X.clientHeight)!=null?A:0;X=d.scrollPositionForTabs.get(d.selectedTab.title);R.setScrollTop(X);N>X+100&&(d.scrollPositionNeedsUpdate=!1)}else R.setScrollTop(Math.min(d.lastVisitedTabScrollPosition!==
void 0?d.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,d.tabsStartAtInPx)),d.scrollPositionNeedsUpdate=!1;d.ytdReduxDispatch(dJi(!1))}}}})};
_.F.loadPage_=function(M){this.initCsi();M&&(this.data=M);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.F.getTitle=function(M){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",M))return this.get("microformat.microformatDataRenderer.title",M);if(this.get("header.c4TabbedHeaderRenderer.title",M))return this.get("header.c4TabbedHeaderRenderer.title",M);if(this.get("header.feedTabbedHeaderRenderer.title",M))return _.HD(this.get("header.feedTabbedHeaderRenderer.title",M));if(this.get("header.interactiveTabbedHeaderRenderer.title",M))return this.get("header.interactiveTabbedHeaderRenderer.title",
M);if(this.get("header.hashtagHeaderRenderer.hashtag",M))return _.HD(this.get("header.hashtagHeaderRenderer.hashtag",M));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",M))return _.HD(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
M));var d,N;return _.Q("enable_page_header_page_title")&&(M==null?0:(d=M.header)==null?0:(N=d.pageHeaderRenderer)==null?0:N.pageTitle)?M.header.pageHeaderRenderer.pageTitle:""};
_.F.updateTitle=function(M){_.YP(this.hostElement,"yt-update-title",this.getTitle(M))};
_.F.initCsi=function(){_.m5(this.pageSubtype||"browse",["ol","cpt"])};
_.F.getPlayer=function(){if(_.Q("kevlar_channel_trailer_multi_attach")){for(var M=_.V(this.attachedPlayers),d=M.next();!d.done;d=M.next())if(d=d.value,d.isConnected||_.PU(this.hostElement,d))return d;return null}return this.player};
_.F.getPlayerContainer=function(){return null};
_.F.onPlayerAttached=function(M,d){_.Q("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(d):this.player=d};
_.F.onPlayerDetached=function(M,d){_.Q("kevlar_channel_trailer_multi_attach")?(M=this.attachedPlayers.indexOf(d),M<0||this.attachedPlayers.splice(M,1)):this.player=null};
_.F.getServiceTrackingParams=function(){var M,d;return((M=this.data)==null?void 0:(d=M.responseContext)==null?void 0:d.serviceTrackingParams)||[]};
_.F.setMastheadAd=function(M){M&&M.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=M&&M.mastheadAd};
_.F.dataChanged=function(){var M=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.zlq();_.bM(this,function(){_.Eu(M.hostElement,"ytd-update-grid-state-action")})};
_.F.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.F.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(d){return!!d.alertWithActionsRenderer})}};
_.F.computeGreetingData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(d){return!!d.personalGreetingViewModel})}};
_.F.computeHasC4TabbedHeaderRenderer=function(M){var d;return!!(M==null?0:(d=M.header)==null?0:d.c4TabbedHeaderRenderer)};
_.F.computeHasMemberHubProfileRenderer=function(M){var d;return!!(M==null?0:(d=M.header)==null?0:d.memberHubProfileRenderer)};
_.F.handleAlertCommand=function(M){this.get("alertCommand.alert.alertWithActionsRenderer",M)&&(M=_.q(M,km9),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",M.alert))};
_.F.handleYtPlaylistDeletionRedirect=function(M){M=this.get("playlistDeletionRedirectCommand.redirectEndpoint",M);_.YP(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.computeFluidWidth=function(M,d,N){if(d==="mini_app"||N)return!0;var R,X,A;M=M==null?void 0:(R=M.contents)==null?void 0:(X=R.twoColumnBrowseResultsRenderer)==null?void 0:(A=X.tabs)==null?void 0:A.find(function(T){var W;return T==null?void 0:(W=T.tabRenderer)==null?void 0:W.selected});
if(!M)return!1;var l,k;return!!((l=M.tabRenderer)==null?0:(k=l.content)==null?0:k.richGridRenderer)&&!["channel","channels","playables"].includes(d)};
_.F.computeHeaderFluidWidth=function(M){return M==="hashtag-landing-page"};
_.F.computeHasSidebar=function(M){var d;return!!(M.sidebar||((d=M.header)==null?0:d.playlistHeaderRenderer))};
_.F.computeHasPageHeaderSidebar=function(M){var d,N;return!!((d=M.header)==null?0:(N=d.pageHeaderRenderer)==null?0:N.enableSidebarView)};
_.F.computeUseUnifiedShowPageLayout=function(M){if(!M||this.pageSubtype!=="show"||!M.sidebar||!M.sidebar.playlistSidebarRenderer)return!1;M=M.sidebar.playlistSidebarRenderer;if(!M.items)return!1;for(var d=0;d<M.items.length;d++)if(_.q(M.items[d],qg)){var N=void 0;return((N=_.q(M.items[d],qg))==null?void 0:N.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.F.computeIsConstrainedList=function(M){return _.Q("web_enable_constrained_list_subscriptions_channels")&&M==="subscriptions-channels"};
_.F.computeResponsiveSizing=function(M){return M==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Hm.Object.defineProperties(o7.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d;return((M=this.data)==null?0:(d=M.header)==null?0:d.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var M,d;if(!((M=this.data)==null?0:(d=M.sidebar)==null?0:d.playlistSidebarRenderer))return!1;var N;return(N=this.data)!=null&&N.header?!1:!0}}});
_.Hm.Object.defineProperties(o7,{template:{configurable:!0,enumerable:!0,get:function(){if(rrP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);rrP=M}M=rrP;return M}}});
o7.prototype.dataChanged=o7.prototype.dataChanged;o7.prototype.onPlayerDetached=o7.prototype.onPlayerDetached;o7.prototype.onPlayerAttached=o7.prototype.onPlayerAttached;o7.prototype.onStampFinished=o7.prototype.onStampFinished;o7.prototype.engagementPanelsChanged=o7.prototype.engagementPanelsChanged;o7.prototype.scrollAtTopChanged=o7.prototype.scrollAtTopChanged;o7.prototype.channelIdChanged=o7.prototype.channelIdChanged;o7.prototype.tabsChanged=o7.prototype.tabsChanged;
o7.prototype.activeChanged=o7.prototype.activeChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],o7.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],o7.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],o7.prototype,"ytdReduxBehavior",void 0);
_.G([_.S(_.hF.YtPageBehavior),_.a("design:type",Object)],o7.prototype,"ytPageBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],o7.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],o7.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o7.prototype,"hidden",void 0);_.G([_.H(),_.a("design:type",Object)],o7.prototype,"mastheadAdData",void 0);_.G([_.H({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.a("design:type",Object)],o7.prototype,"alertBannerData",void 0);_.G([_.H({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.a("design:type",Object)],o7.prototype,"greetingData",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],o7.prototype,"pageSubtype",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.a("design:type",Boolean)],o7.prototype,"hasC4TabbedHeaderRenderer",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.a("design:type",Boolean)],o7.prototype,"hasMemberHubProfileRenderer",void 0);
_.G([_.H({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o7.prototype,"hasSidebar",void 0);_.G([_.H({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o7.prototype,"hasPageHeaderSidebar",void 0);_.G([_.H({reflectToAttribute:!0,value:!0}),_.a("design:type",Boolean)],o7.prototype,"roundedContainer",void 0);
_.G([_.H({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],o7.prototype,"useUnifiedShowPageLayout",void 0);_.G([_.H({computed:"computeIsConstrainedList(pageSubtype)"}),_.a("design:type",Object)],o7.prototype,"isConstrainedList",void 0);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],o7.prototype,"usePlaylistHeaderRenderer",null);
_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],o7.prototype,"useOldPlaylistSidebarRenderer",null);_.G([_.H({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.a("design:type",Boolean)],o7.prototype,"fluidWidth",void 0);_.G([_.H({selector:function(M){return M.ui.scrollAtTop}}),
_.a("design:type",Boolean)],o7.prototype,"scrollAtTop",void 0);_.G([_.H({selector:_.MMq}),_.a("design:type",Boolean)],o7.prototype,"tabGesturesIsActive",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],o7.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.a("design:type",Boolean)],o7.prototype,"disableHeaderFluidWidth",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.a("design:type",String)],o7.prototype,"responsiveSizing",void 0);_.G([_.Z3("ytd-two-column-browse-results-renderer"),_.a("design:type",HTMLElement)],o7.prototype,"contents",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],o7.prototype,"header",void 0);_.G([_.Z3("ytd-refresh"),_.a("design:type",Object)],o7.prototype,"refresh",void 0);
_.G([_.xB("active"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"activeChanged",null);_.G([_.xB("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"tabsChanged",null);_.G([_.xB("data.header.c4TabbedHeaderRenderer.channelId"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"channelIdChanged",null);
_.G([_.xB("scrollAtTop"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"scrollAtTopChanged",null);_.G([_.H(),_.a("design:type",Object)],o7.prototype,"engagementPanels",void 0);_.G([_.xB("data.panels"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"engagementPanelsChanged",null);
_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"onStampFinished",null);_.G([_.C3("yt-player-attached"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Element]),_.a("design:returntype")],o7.prototype,"onPlayerAttached",null);_.G([_.C3("yt-player-detached"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Element]),_.a("design:returntype")],o7.prototype,"onPlayerDetached",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o7.prototype,"dataChanged",null);o7=_.G([_.f({is:"ytd-browse"})],o7);_.mq.registerService(_.nXN,o7);
_.qQ();
}catch(e){_._DumpException(e)}
try{
_.Qf("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 M6i=function(M,d){return M<d?-1:M>d?1:0},Gp=function(M,d){var N=0;
M=(0,_.Xq)(String(M)).split(".");d=(0,_.Xq)(String(d)).split(".");for(var R=Math.max(M.length,d.length),X=0;N==0&&X<R;X++){var A=M[X]||"",l=d[X]||"";do{A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(A[0].length==0&&l[0].length==0)break;N=M6i(A[1].length==0?0:parseInt(A[1],10),l[1].length==0?0:parseInt(l[1],10))||M6i(A[2].length==0,l[2].length==0)||M6i(A[2],l[2]);A=A[3];l=l[3]}while(N==0)}return N},aB=function(M){if(!M)return"browse";
var d=M.page,N=M.url,R,X,A,l=(R=M.response)==null?void 0:(X=R.responseContext)==null?void 0:(A=X.webResponseContextExtensionData)==null?void 0:A.pageTheme;if(l)d=l.toLowerCase().replace(/_/g,"-");else if(d!=="watch"){var k,T;if((d==="browse"||d==="settings")&&((k=M.response)==null?0:(T=k.sidebar)==null?0:T.settingsSidebarRenderer))d="WEB_PAGE_TYPE_SETTINGS";else{var W,w;d==="browse"&&((W=M.response)==null?0:(w=W.metadata)==null?0:w.channelMetadataRenderer)?d="channel":N&&(d=_.mhS(N)||d)}}return d},
dUq=function(){var M=_.cy("yt.aba.att");
return M?M:_.iZ.instance!==void 0?_.iZ.instance.iKK.bind(_.iZ.instance):null},Nc4=function(M,d){var N;
return _.B(function(R){return(N=dUq())?R.return(N(M,d,6E4)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},R1P=function(M,d,N,R,X){d=d===void 0?[]:d;
X=X?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:X}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ue(M),dialogMessages:d.map(function(A){return _.ue(A)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ue(N),serviceEndpoint:X}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ue(R)}}}}}},XfG=function(M){var d=!!_.cn().queueProxy;
var N,R,X;M=M==null?void 0:(N=M.response)==null?void 0:(R=N.currentVideoEndpoint)==null?void 0:(X=R.watchEndpoint)==null?void 0:X.playlistId;return!(!d&&!M)},F04=function(M,d){var N=_.$O();
if(XfG(M))return N.playlistWatchPageActivation=!0;switch(aB(d)){case "yts-products":return N.productDetailsPageActivation=!0;case "mini_app":return N.miniAppPageActivation=!0;case "playables":return N.playablesDestPageActivation=!0;default:return!1}},Ak4=function(M,d,N){for(var R=typeof M==="string"?M.split(""):M,X=M.length-1;X>=0;--X)X in R&&d.call(N,R[X],X,M)},V6q=function(M,d){d=_.wjZ(M,d);
d>=0&&_.G6(M,d)},lx9=function(M){return Array.prototype.concat.apply([],arguments)},$U4=function(M){var d=0;
d=d===void 0?0:d;if(!_.ke(M))throw _.kd("uint64");var N=typeof M;switch(d){case 512:switch(N){case "string":return _.B32(M);case "bigint":return String((0,_.KJ)(64,M));default:return _.lmr(M)}case 1024:switch(N){case "string":return _.koZ(M);case "bigint":return _.Go((0,_.KJ)(64,M));default:return _.$er(M)}case 0:switch(N){case "string":return _.B32(M);case "bigint":return _.Go((0,_.KJ)(64,M));default:return _.VJp(M)}default:return _.RC(d,"Unknown format requested type for int64")}},BcD=function(M){M!=
null&&(M=M.JSC$6699_value_||"",M=typeof M==="string"?M:new Uint8Array(M));
return M},k2T=function(M){for(var d=_.wH.apply(1,arguments),N=M[0],R=0;R<M.length-1;R++)N+=String(d[R]),N+=M[R+1];
d=document.implementation.createHTMLDocument("");R=d.createElement("style");d.head.appendChild(R);d=R.sheet;d.insertRule(N,0);if(d.cssRules.length===1&&(N=d.cssRules[0],N instanceof CSSStyleRule))return new _.HQ(N.cssText.replace(/</g,"\\3C "))},Tcd=function(M,d){if(/-[a-z]/.test(d))return null;
if(_.QGV&&M.dataset){if(_.VrA()&&!(d in M.dataset))return null;M=M.dataset[d];return M===void 0?null:M}return M.getAttribute("data-"+_.Xf(d))},gWJ=function(){var M=DUd;
_.cy("yt.ads.biscotti.getId_")||_.fE("yt.ads.biscotti.getId_",M)},W0D=function(M){_.fE("yt.ads.biscotti.lastId_",M)},pfC=function(){var M={};
for(_.QO=new wfe(M.handleError===void 0?_.IR:M.handleError,M.logEvent===void 0?_.hQ:M.logEvent);_.qB.length>0;)switch(M=_.qB.shift(),M.type){case "ERROR":_.QO.logError(M.payload);break;case "EVENT":_.QO.logEvent(M.eventType,M.payload)}},mUT=function(M,d,N){return _.fIZ(function(R){return N?R.userIdentifier!==void 0&&!M.includes(R.userIdentifier)&&N.includes(R.publicName):R.userIdentifier!==void 0&&!M.includes(R.userIdentifier)},d)},h1r=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return d=_.Ds("YtIdbMeta hasAnyMeta other"),_.D(R,_.fIZ(function(X){return X.userIdentifier!==void 0&&X.userIdentifier!==d},M),2);
N=R.yieldResult;return R.return(N.length>0)})},qIT=function(M,d){QQd||(QQd=_.IQ.addLowPriorityJob(function(){var N,R,X,A,l;
return _.B(function(k){switch(k.nextAddress){case 1:return _.D(k,_.LE(),2);case 2:N=k.yieldResult;if(!N)return k.return();R=!0;_.Mv(k,3);return _.D(k,mUT(M,N,d),5);case 5:X=k.yieldResult;if(!X.length){R=!1;k.jumpTo(6);break}A=X[0];return _.D(k,_.Sw(A.actualName),7);case 7:return _.D(k,_.ew(A.actualName,N),6);case 6:_.cJ(k,4);break;case 3:l=_.Fg(k),_.Ic(l),R=!1;case 4:_.IQ.cancelJob(QQd),QQd=0,R&&qIT(M,d),_.Vy(k)}})}))},Ixe=function(){var M;
return _.B(function(d){return d.nextAddress==1?_.D(d,_.LE(),2):(M=d.yieldResult)?d.return(h1r(M)):d.return(!1)})},vWD=function(M){var d=100;
d=d===void 0?500:d;var N,R,X,A,l,k;return _.B(function(T){return T.nextAddress==1?(N=_.rK("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[N,(0,_.Gs)()-2592E6],X=[N,(0,_.Gs)()],A=IDBKeyRange.bound(R,X),_.D(T,_.gBZ(M),2)):T.nextAddress!=3?(l=T.yieldResult,k=[],_.D(T,_.bk(l,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(W){k.length=0;return _.ac(W.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:A,direction:"prev"},function(w){if(w.getValue()&&k.length<d)return k.push(w.getValue()),
w.delete().then(function(){return w.continue()})})}),3)):T.return(k)})},OA9=function(){var M;
return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.LE(),2);M=d.yieldResult;if(!M||!_.g2()&&!_.Q("nwl_init_require_datasync_id_killswitch")||!_.b3Z())return d.jumpTo(0);_.H3N=!0;_.erv.isNwlInitialized=_.H3N;return _.D(d,_.OHV().awaitInitialization(),0)})},Uw=function(M,d){_.dSZ[M]=!0;
var N=_.CA();N&&N.publish.apply(N,arguments);_.dSZ[M]=!1},sQ4=function(){if(_.rTq()&&!jQb){var M=function(N){N=N.data;
if(N.op==="serializedGelBatch"){var R=_.NkA.get(N.key);R&&(_.Xzi(N.serializedBatch,R.client,R.resolve,R.networklessOptions,R.isIsolated,R.useVSSEndpoint,R.dangerousLogToVisitorSession,R.requestsOutstanding),_.NkA.delete(N.key))}},d=_.o$r();
d&&(d.addEventListener("message",M),d.onerror=function(){_.NkA.clear()});
jQb=!0}},up=function(){this.relativeTimeStart_=_.Nn()},P7T=function(M,d){M!=null&&this.append.apply(this,arguments)},oWe=function(){return _.Pl("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},rk9=function(M,d,N){N=N===void 0?!1:N;
var R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:_.kY("SOCS",M,34128E3,"youtube.com",!0);if(_.kh)return X=fetch(d,{method:"POST",mode:_.bX(d),credentials:_.zD(d),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),A=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.bX("/upgrade_visitor_cookie?eom=1"),credentials:_.zD("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.D(T,Promise.all([X,A]).then(function(W){return W[1]}),5);
fetch(d,{method:"POST",mode:_.bX(d),credentials:_.zD(d),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.D(T,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.bX("/upgrade_visitor_cookie?eom=1"),credentials:_.zD("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:R=T.yieldResult;T.jumpTo(3);break;case 5:R=l=T.yieldResult;case 3:if(!R.ok)throw Error("nf");return _.D(T,R.text(),7);case 7:k=T.yieldResult,
!k.includes('"state_switch":true')&&!N||k.includes("skip_reload_for_test")||window.location.reload(),_.Vy(T)}})},K0q=function(M){return _.B(function(d){return d.nextAddress==1?_.D(d,rk9(M.socsCookie,M.savePreferenceUrl,!0),2):d.return()})},ykq=function(M){return _.B(function(d){return d.nextAddress==1?_.D(d,rk9(M.socsCookie,M.savePreferenceUrl),2):d.return()})},ck9=function(M){M=M.xhr.responseText;
if(!_.AL(M,")]}'"))throw new Cn;M=JSON.parse(M.substr(4));if((M.type||1)>1)throw new Cn;M=M.id;W0D(M);xr=_.Hq(M);JkC(18E5,2);return M},z1J=function(M,d){d=new SIP(d);
W0D("");xr=_.nHL(d);M>0&&JkC(12E4,M-1);throw d;},JkC=function(M,d){_.NB(function(){_.XvZ().then(ck9,function(N){return z1J(d,N)}).thenCatch(_.wl)},M)},DUd=function(){var M=_.g5i();
if(M!==void 0)return _.cl(M);xr||(xr=_.XvZ().then(ck9).thenCatch(function(d){return z1J(2,d)}));
return xr},bAC=function(){var M=document;
return _.Sr(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(d){return"on"+d.toLowerCase()in M})},e1C=function(M){M.addEventListener("click",function(d){var N=d.target;
N&&N.getAttribute("href")&&(N=N.getAttribute("href"),_.oO(window,N,"_blank"),d.preventDefault(),d.stopImmediatePropagation())})},HAJ=function(M){var d,N,R,X=(R=(N=((d=M.mainDownloadsListEntity)!=null?d:{})[_.Quq])==null?void 0:N.refresh)!=null?R:"",A;
M=(A=M.refresh)==null?void 0:A[X];X=M!=null?M:{};return(X==null?0:X.refreshTime)?Number(X==null?void 0:X.refreshTime):0},nWe=function(M,d){var N=_.ph(M);
return d.every(function(R){var X;R=R==null?void 0:(X=R.playbackDataEntity)==null?void 0:X.key;if(!R)return!1;X=_.Nr(_.EN(R).entityId,"mainVideoEntity");return!!N[X]})},iAT=function(M){M=_.g_(M.entities);
return _.R0p(M).length},fxY=function(M,d){if(d){var N;
M=(N=_.Rz(M.entities,"downloadQualityPickerEntity",d))!=null?N:void 0}else M=void 0;return M},G2D=function(){L0d||(_.bY=_.wni,L0d=new t6C);
return L0d},ax9=function(M){var d=document.getElementsByTagName("ytd-enforcement-message-view-model");
d.length===0||getComputedStyle(d[0]).display==="none"?M(0,"p.h_"):M(1,"p.h_")},Yr=function(M){var d,N;
(M=(N=_.q(M==null?void 0:M.commandMetadata,_.an))==null?void 0:N.url)&&(d=_.mhS(M));return d},UUb=function(){ZJ=0;
var M=[_.lx(!0)];Ew&&_.Eu(Ew,"yt-window-resized",M)},uVq=function(){ZJ||(ZJ=_.IQ.addLowPriorityJob(UUb,200))},xU9=function(){MJ=0;
C74=_.h4z(document);var M=[C74];Ew&&_.Eu(Ew,"yt-window-scrolled",M)},YID=function(){MJ||(MJ=_.IQ.addLowPriorityJob(xU9,200))},EWP=function(M){M=M===void 0?null:M;
ZAY.push(_.LA(window,"resize",uVq));ZAY.push(_.LA(window,"scroll",YID));M&&(Ew=M)},M5$=function(M){_.B(function(d){if(d.nextAddress==1)return _.D(d,M.delete("yt-appshell-assets"),2);
_.Vy(d)})},dZD=function(M){return _.zs((0,_.lQL)(),M)},R9J=function(){var M;
_.B(function(d){return d.nextAddress==1?_.D(d,di.getInstance(),2):(M=d.yieldResult)?_.D(d,NLJ(M),0):d.jumpTo(0)})},F7$=function(){var M;
_.B(function(d){return d.nextAddress==1?_.D(d,NJ.getInstance(),2):(M=d.yieldResult)?_.D(d,XhG(M),0):d.jumpTo(0)})},AQd=function(M){M5$(M);
R9J();F7$()},V5Y=function(M){var d,N;
return _.B(function(R){if(R.nextAddress==1)return _.D(R,_.Uhq(M),2);if(d=R.yieldResult){var X;a:{if(d.headers&&(X=d.headers.get("date"))&&(X=Date.parse(X),!isNaN(X))){X=Math.round((0,_.Gs)()-X);break a}X=-1}N=X;if(N>-1)return R.return(N)}return R.return(-1)})},lSd=function(){var M=_.Np.caches,d=_.KF("IS_SHELL_LOAD"),N,R;
_.B(function(X){if(X.nextAddress==1)return N=-1,d?_.D(X,V5Y(M),3):(R=_.wU(),N=Math.round((0,_.Gs)()-R),X.jumpTo(2));X.nextAddress!=2&&(N=X.yieldResult);N>=0&&N<2147483648&&_.qi({appInstallDataAgeMs:N});_.Vy(X)})},$Z4=function(M){var d=_.Kk(_.Np.location.href),N={};
"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(R){var X=d.JSC$7917_queryData_.getValues(R);if(X==null?0:X.length)N[R]=X});
return _.CI(M,new Map(Object.entries(N)))},BLP=function(M){M=M.match(/(.*)::.*::.*/);
if(M!==null)return M[1]},kiT=function(M){if(_.k1L()){var d=Object.keys(window.localStorage);
d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=BLP(N);R===void 0||M.includes(R)||self.localStorage.removeItem(N)}}},TLT=function(){if(!_.k1L())return!1;
var M=_.Ds(),d=Object.keys(window.localStorage);d=_.V(d);for(var N=d.next();!N.done;N=d.next())if(N=BLP(N.value),N!==void 0&&N!==M)return!0;return!1},DZC=function(M){return _.zp("NotificationsDisabled",M)},gvT=function(){return Notification.permission!="granted"?Promise.resolve():_.dy$().then(function(M){return M?M.pushManager.getSubscription().then(function(d){if(d)return Promise.resolve();
d={userVisibleOnly:!0,applicationServerKey:_.lL("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return M.pushManager.subscribe(d).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},W7i=function(M){return _.dy$().then(function(d){if(!d||!d.active)return Promise.reject(new _.WJ("serviceworker.postMessage",M,d));
try{return d.active.postMessage(M),Promise.resolve()}catch(N){return Promise.reject(N)}})},whi=function(){W7i({type:"notifications_register",
data:_.rK("ID_TOKEN")})},mZb=function(){var M={isWide:_.BJ.get("wide","0")==="1"},d=_.kS();
if(d=d.getFlag(165)||d.getFlag(174))M.theme=_.OO(!0);if(_.rN2()){var N=_.vN()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";M.systemTheme=N}!d&&_.Q("parent_tools_enable_app_settings")&&_.is(window.location.href).theme!==void 0&&(M.theme=_.OO());if((d=RY)?!_.wF.equals(d,M):M)d={currentValue:M},phJ&&(d.timeSinceLastSnapshotSecs=Math.round(((0,_.Gs)()-phJ)/1E3)),RY&&(d.previousValue=RY),_.hQ("appSettingsCaptured",d),RY=M,phJ=(0,_.Gs)()},h9e=function(){if(!_.KF("LOGGED_IN"))return Promise.resolve(!1);
var M=_.El("service_worker_push_force_notification_prompt_tag");return M?_.HK("PromptTags").then(function(d){if(!d)return!0;var N=[];try{N=JSON.parse(d)}catch(R){return!1}return N&&N.indexOf(M)==-1}):Promise.resolve(!1)},QR4=function(){var M=_.ZR("service_worker_push_prompt_delay_microseconds");
return M?_.HK("PromptTime").then(function(d){return Promise.resolve(Date.now()-M>(d||0))}):Promise.resolve(!0)},qDG=function(){var M=_.ZR("service_worker_push_logged_out_prompt_watches");
return M==-1?Promise.resolve(!1):_.HK("WatchCount").then(function(d){return d>=M})},ISe=function(){var M=_.fO(document,"yt-push-prompt-modal-bg");
M&&_.l_(M)},vvd=function(){return _.ZR("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.HK("PromptCount").then(function(M){M||(M=0);
return Promise.resolve(M<_.ZR("service_worker_push_prompt_cap"))})},OaJ=function(M){return _.KF("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.KF("LOGGED_IN")&&(M===void 0?0:M)?h9e().then(function(d){if(d)return!0;
d=[vvd(),QR4()];_.KF("LOGGED_IN")||d.push(qDG());return Promise.all(d).then(function(N){return N.every(function(R){return R})})}):Promise.resolve(!1)},jRP=function(){_.HK("PromptCount").then(function(M){return _.zp("PromptCount",M+1)}).then(function(){return _.zp("PromptTime",Date.now())}).then(function(){var M=_.El("service_worker_push_force_notification_prompt_tag");
if(M)return _.HK("PromptTags").then(function(d){var N=[];if(d)try{N=JSON.parse(d)}catch(R){return!1}N||(N=[]);N.push(M);return _.zp("PromptTags",JSON.stringify(N))})})},Pv4=function(){sRi||ISe()},ovJ=function(M){M.style.zIndex=2147483648;
M.style.pointerEvents="auto";M.style.backgroundColor="rgba(0, 0, 0, 0.6)";M.style.width="100%";M.style.height="100vh";M.style.position="absolute";M.style.top="0";M.style.left="0";M.style.border="none"},rQi=function(){var M=_.fO(document,"yt-push-prompt-modal-bg");
sRi=_.Q("service_worker_push_prompt_modal_ignore_click");M?ovJ(M):(M=_.O8("div",{id:"yt-push-prompt-modal-bg"}),ovJ(M),document.body.appendChild(M),_.YO2(document,"click",Pv4))},K7$=function(){var M=arguments;
_.Q("service_worker_push_prompt_modal_enable")&&rQi();return Notification.requestPermission().then(function(d){ISe();var N=document.getElementById("ticker");N&&(N.className=N.classList.remove("show"));if(d=="granted")return gvT().then(function(){DZC(!1);whi();return Promise.resolve(!0)});
d=="denied"&&whi();return Promise.resolve(!1)}).catch(function(){ISe();
return Promise.reject.apply(Promise,_.wu(M))})},yQD=function(M){M=M===void 0?!1:M;
var d=_.Spq().client;if(d&&d.browserVersion){var N=d.browserVersion,R=d.browserName=="CHROME"&&Gp(N,"50.0.0")<0;d=d.browserName=="OPERA"&&Gp(N,"42.0.0")<0;if(R||d)return Promise.resolve()}return _.XTe().then(function(X){if(!X)return Promise.resolve();X=gvT().then(function(){return W7i({type:"notifications_check_registration",data:_.rK("ID_TOKEN")})});
return Notification.permission!="default"?X.catch(function(){}):X.then(function(){return OaJ(M)}).then(function(A){if(A)return jRP(),K7$().then(function(){})}).catch(function(){})})},JQD=function(M){return _.NFi(M)?yQD():Promise.resolve()},cQY=function(M){var d=M.installing||M.waiting;
return M.active||!d?Promise.resolve(M):new Promise(function(N){var R=function(X){X=X.target;if(X.state==="activated"||X.state==="redundant")d.removeEventListener("statechange",R),N(M)};
d.addEventListener("statechange",R)})},SDG=function(){var M=new _.n9S("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.D7(M,{mainAppWeb:_.oj()});var d=_.o7L;_.Q("service_worker_forward_exp_params")&&(d=$Z4(d));try{var N=_.emA(d).catch(function(){_.gz(M,"FAILURE");return new Promise(function(){})});
_.Q("service_worker_push_enabled")&&N.then(function(R){_.gz(M,"SUCCESS");return R}).then(cQY).then(JQD)}catch(R){if(_.gz(M,"FAILURE"),R.name!=="SecurityError")throw R;
}},z9Y=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&SDG()},baG=function(M,d){var N={};
d&&(N.serializedYpcFamilyCreateLoggingParams=d);_.hQ(M,N);_.Qc()},e9J=function(M,d){var N={};
N.serializedYpcRefundFlowLoggingParams=d;M&&(N.eventType=M);_.hQ("ypcRefundFlowEvent",N);_.Qc()},Har=function(M){M&&_.n02("transactionFlowSucceeded",M)},nve=function(M){M&&_.hH("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},iaq=function(M){var d,N,R,X,A,l,k;
_.B(function(T){if(T.nextAddress==1)return _.D(T,_.oUq(),2);if(T.nextAddress!=3){if(!T.yieldResult)return T.return(!1);d=[];return _.D(T,_.tt.keys(),3)}N=T.yieldResult;R=_.V(N);for(X=R.next();!X.done;X=R.next())A=X.value,l=_.s5r(A),k=l.datasyncId,!k||M.includes(k)||d.push(_.tt.delete(A));return T.return(Promise.all(d).then(function(W){return W.some(function(w){return w})}))})},fSD=function(){var M,d,N,R,X,A,l;
return _.B(function(k){if(k.nextAddress==1)return _.D(k,_.oUq(),2);if(k.nextAddress!=3){if(!k.yieldResult)return k.return(!1);M=_.Ds("cache contains other");return _.D(k,_.tt.keys(),3)}d=k.yieldResult;N=_.V(d);for(R=N.next();!R.done;R=N.next())if(X=R.value,A=_.s5r(X),(l=A.datasyncId)&&l!==M)return k.return(!0);return k.return(!1)})},L7d=function(){var M=_.h().resolve(_.CF(_.TNI));
return M?M.getCurrentTime():0},t5$=function(){var M,d,N,R,X,A,l,k,T,W,w,p,m,I;
return _.B(function(O){switch(O.nextAddress){case 1:M={},d=_.I9i(),N=_.V(Object.entries(d)),R=N.next();case 4:if(R.done){O.jumpTo(3);break}X=R.value;A=_.V(X);l=A.next().value;k=A.next().value;T=l;W=k;if(!W){O.jumpTo(5);break}return _.D(O,W(),8);case 8:M[T]=O.yieldResult;case 5:R=N.next();O.jumpTo(4);break;case 2:w=_.V(void 0),p=w.next();case 9:if(p.done){O.jumpTo(3);break}m=p.value;I=d[m];if(!I){O.jumpTo(10);break}return _.D(O,I(),13);case 13:M[m]=O.yieldResult;case 10:p=w.next();O.jumpTo(9);break;
case 3:return O.return(M)}})},Gi4=function(){var M;
_.B(function(d){if(d.nextAddress==1)return _.D(d,t5$(),2);M=d.yieldResult;return _.D(d,navigator.clipboard.writeText(JSON.stringify(M,null,2)),0)})},aS4=function(M,d){return _.Rz(M.entities,"superThanksSelectedTierEntity",d)},UZC=function(M){var d;
return(d=M.sharedUi)==null?void 0:d.currentPageType},uy$=function(M,d){return{popup:{searchSuggestionReportDialog:{searchQuery:M,
title:_.le("SBOX_INAPPROPRIATE_TITLE"),suggestions:d,categoryLabel:_.le("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.le("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.le("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.le("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.le("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.le("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.le("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.le("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.le("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.le("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Cvr=function(M){var d,N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C;
return _.B(function(U){switch(U.nextAddress){case 1:return _.D(U,_.AT(),2);case 2:return(d=U.yieldResult)?_.D(U,_.QK2(d),3):U.return();case 3:N=U.yieldResult;if(!N)return U.return();X=((R=N.offlineVideos)==null?void 0:R.length)||0;l=((A=N.offlinePlaylists)==null?void 0:A.length)||0;if(X===0&&l===0)return U.return();k=0;if(N.offlineVideos)for(T=_.V(N.offlineVideos),W=T.next();!W.done;W=T.next())w=W.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===w.videoState&&(k+=1);M.offline_videos_count=X.toString();_.Q("kevlar_log_offline_current_network_type_ks")||
(M.offline_current_network_type=(p=_.gP2())!=null?p:"CONN_INVALID");_.Q("kevlar_log_updated_time_for_smart_downloads")&&(m=_.iY().getState().entities,I=_.QQ(m),O=HAJ(m),M.offline_smart_downloads_last_sync_time_ms=I.toString(),M.offline_smart_downloads_next_sync_time_ms=O.toString());M.offline_videos_playable=k.toString();M.offline_playlists_count=l.toString();if(!_.Q("woffle_used_state_report")){U.jumpTo(4);break}N.offlineVideos&&(y=N.offlineVideos.reduce(function(Fi,Y){Y.downloadedBytes&&(Fi+=Number(Y.downloadedBytes));
return Fi},0).toString())&&(M.offline_used_disk_space_bytes=y);
if(!((c=navigator)==null?0:(e=c.storage)==null?0:e.estimate)){U.jumpTo(4);break}return _.D(U,navigator.storage.estimate(),6);case 6:t=U.yieldResult,M.offline_free_disk_space_bytes=(((C=t)==null?void 0:C.quota)||0).toString();case 4:M.offline_client_state=JSON.stringify(N),_.Vy(U)}})},xZ9=function(M){M=M.match(/(.*)::.*::.*/);
if(M!==null)return M[1]},YDP=function(M){if(_.Q3v()){var d=Object.keys(window.sessionStorage);
d=_.V(d);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=xZ9(N);R===void 0||M.includes(R)||self.sessionStorage.removeItem(N)}}},Zaq=function(){if(!_.Q3v())return!1;
var M=_.Ds(),d=Object.keys(window.sessionStorage);d=_.V(d);for(var N=d.next();!N.done;N=d.next())if(N=xZ9(N.value),N!==void 0&&N!==M)return!0;return!1},XH=function(M,d,N){(_.Q("desktop_keyboard_shortcut_usage_log")||N&&_.Q("web_shorts_keyboard_shortcut_usage_log"))&&(d?_.fn.get(M):_.ip.get(M))&&(M=d?_.t0.get(M):_.Ln.get(M))&&_.eD(_.Ou(),M)},EvC=function(M,d){d.stack&&(M.stack+="\n"+d.stack);
return M},NDG=function(M){var d=FH(M,"Content-Type");
if(!d)return null;d=d.toLowerCase();if(d.startsWith("application/json"))return d.startsWith("application/json+protobuf")?new MFr:new _.dJ;if(d.startsWith("application/x-protobuf")){M=FH(M,"Content-Transfer-Encoding");if(!M)return new Ar;if(M.toLowerCase()=="base64")return new dEe}return null},kad=function(M,d,N,R){var X=new Rh4(function(k,T){return XmJ.has(T)?k.sentinel==="gal"&&k.event!==void 0:!1},function(k){k.event?(k=FyY(k.event),k=!k||Aae(R,k)?!0:_.mv(M.lastEvent,VT,2,lA)?!_.mv(k,$o,1,lA)&&
!_.mv(k,VT,2,lA):!_.mv(k,$o,1,lA)&&!_.mv(k,VT,3,lA)):k=!0;
return k});
N=_.CI(M.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",VFG(N)]]));if(M.nestedOrigins!==void 0)for(var A=_.V(M.nestedOrigins),l=A.next();!l.done;l=A.next())N=_.CI(N,new Map([["origin",l.value]]));return ltb(X,N,d).then(function(k){k=$EJ(k.event);if(_.mv(k,$o,1,lA)){var T,W=(T=_.c_(k,$o,1,lA))==null?void 0:_.K5(T,2);W&&R.JSC$16987_logErrorEvent(BD9(W));T=_.c_(k,$o,1,lA);_.K5(T,2)===4?(k=_.c_(k,$o,1,lA),k={statusCode:11,statusMessage:_.rP(k,
3)}):(k=_.c_(k,$o,1,lA),k={statusCode:12,statusMessage:_.rP(k,3)});return k}_.mv(k,VT,3,lA)?(k=_.c_(k,VT,3,lA),k={statusCode:1,consentLanguageKeys:_.rP(k,2)}):k={statusCode:1};return k}).catch(function(k){return k.errorCode!==void 0?{statusCode:k.errorCode,
statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},Wy9=function(M){var d={};
if(M===void 0||M===null)return d;M.getToken()!==void 0&&TDD(M.getToken())&&TDD(M.getToken()).length>0&&(d.scopes=new Set(TDD(M.getToken())));M.getToken()!==void 0&&DEr(M.getToken())&&DEr(M.getToken()).length>0&&(d.capabilities=new Set(DEr(M.getToken())));_.rP(M,3)!==void 0&&(d.consistencyKey=_.rP(M,3));M.getName()!==void 0&&M.getName()!==""&&(d.linkName=M.getName());_.p5(M,gCd,4)&&(M=_.uk(M,gCd,4),M=Object.assign({},_.rP(M,1)&&{userId:_.rP(M,1)},_.rP(M,2)&&{displayName:_.rP(M,2)},_.rP(M,3)&&{email:_.rP(M,
3)},_.rP(M,5)&&{username:_.rP(M,5)},_.rP(M,4)&&{profilePicture:_.rP(M,4)}),d.profile=M);return d},wmq=function(M,d){var N=M.flowParams;
return{serviceId:N.serviceId,sessionId:N.sessionId,currentFlow:M.currentFlow,googleScopesString:d,linkingSessionSerialized:M.session.serialize(),consentLanguageKeys:N.consentLanguageKeys,callerState:M.callerState,dynamicUrlParameters:N.dynamicUrlParameters,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp}},qXG=function(M){var d=M.googleScopes!==void 0?Array.from(M.googleScopes).join(","):"";
pmY(wmq(M,d));d=mET(M);return d===null?Promise.resolve(hhb):d.start().then(function(N){var R,X=(R=N.link)==null?void 0:R.consistencyKey;return N.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&X!==void 0?(R=M.flowParams,Q_D(R.serviceId,R.sessionId,M.googleScopes,X,R.galService,M.config,N)):N})},It$=function(M){var d=mET(M);
return d===null?Promise.resolve(BH({statusCode:7,statusMessage:"Failed to create flow object"},M.callerState)):d.complete().then(function(N){var R,X=(R=N.link)==null?void 0:R.consistencyKey;return N.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&X!==void 0?(R=M.flowParams,Q_D(R.serviceId,R.sessionId,M.googleScopes,X,R.galService,M.config,N)):BH(N,M.callerState)},function(N){return BH({statusCode:12,
statusMessage:"Failed to complete the flow: "+N.message},M.callerState)})},Q_D=function(M,d,N,R,X,A,l){return vCG(X,{serviceId:M,
sessionId:d,googleScopes:N,consistencyKey:R}).then(function(){return l},function(k){return X.deleteLink({serviceId:M,
sessionId:d,accountLinkingEntryPoint:A.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+k.message}},function(T){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+T.message}})})},mET=function(M){switch(M.currentFlow){case 1:var d=M.flowParams;
M=_.uk(M.session,OHT,1);return ko.createOAuthFlow(d,M);case 2:case 3:return d=M.flowParams,M=_.uk(M.session,j_i,6),Tm.createStreamlinedFlow(d,M);default:return null}},s_e=function(M,d){M===2&&(M=3);
var N=0;De.indexOf(M)!==-1&&(N=De.indexOf(M)+1);for(M=N;M<De.length;M++)if(d.has(De[M]))return De[M]},rai=function(M){var d=M.serviceId;
var N=M.sessionId;var R=M.config;var X=M.galService;var A=M.capabilities;var l=M.scopes;var k=M.loginHint;var T=M.callerState;var W=M.consentLanguageKeys;var w=M.linkName;var p=M.dynamicUrlParameters;var m=M.partnerConfigMinReadTimestamp;M=R.dataUsageNoticeConfig?R.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return X.startLinkingSession({serviceId:d,sessionId:N,capabilities:A,scopes:l,loginHint:k,callerState:T,supportedFlows:PM9(R.supportedFlows),completionUrl:R.completionUrl,accountLinkingEntryPoint:R.accountLinkingEntryPoint,
consentLanguageKeys:W,dataUsageNoticeConfig:M,linkName:w,dynamicUrlParameters:p,partnerConfigMinReadTimestamp:m}).then(function(I){return new oCe(d,N,R,X,I,void 0,T,W,p,m)})},SXT=function(M,d,N){a:{var R=new Kyq;
if(R.storage!==null)try{var X=R.storage.get("SAVED_SESSION");if(X===void 0){var A=null;break a}if(X.serviceId===M){A=X;break a}}catch(l){}A=null}if(A===null)return Promise.resolve({statusCode:2});ya9(M);R=Jad(A.linkingSessionSerialized);return caJ(new oCe(M,A.sessionId,d,N,R,A.googleScopesString!==""&&A.googleScopesString!==void 0?new Set(A.googleScopesString.split(",")):void 0,A.callerState,A.consentLanguageKeys,A.dynamicUrlParameters,A.partnerConfigMinReadTimestamp),A.currentFlow,A.consentLanguageKeys)},
pmY=function(M){var d=new Kyq;
d.storage!==null&&d.storage.set("SAVED_SESSION",M)},ya9=function(M){var d=new Kyq;
if(d.storage!==null){var N=d.storage.get("SAVED_SESSION");N!==void 0&&N.serviceId===M&&d.storage.remove("SAVED_SESSION")}},PM9=function(M){var d=new Set;
M=_.V(M);for(var N=M.next();!N.done;N=M.next())N=N.value,N!==1&&zhd.has(N)&&d.add(zhd.get(N));return d},BH=function(M,d){d!==void 0&&(M.callerState=d);
return M},bHd=function(M){switch(M){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},nCT=function(){var M={timeout:5E3};
M=M===void 0?{}:M;return eh$!=null?eh$:eh$=HHb(M)},iHd=function(){return new Promise(function(M,d){window.gapi.load("client",{callback:M,
onerror:d})})},HHb=function(M){M=M===void 0?{}:M;
var d;return _.B(function(N){if(N.nextAddress==1){if((d=window.gapi)&&d.client&&d.client.load)N=N.return(d);else{var R=_.RO("https://apis.google.com/js/api.js");N=_.D(N,_.ot(R,M),2)}return N}if(N.nextAddress!=3){d=window.gapi;if(!d)throw Error("Zj");return d.client&&d.client.load?N.jumpTo(3):_.D(N,iHd(),3)}return N.return(d)})},Lyd=function(M,d){d=d===void 0?0:d;
var N=M.auth2.getAuthInstance().currentUser.get(),R=N.getAuthResponse(!0);if(R&&R.expires_at-Date.now()<d){if(ftP.has(M))return ftP.get(M);d=Promise.resolve(N.reloadAuthResponse()).finally(function(){ftP.delete(M)});
ftP.set(M,d);return d}return Promise.resolve()},tFr=function(M,d){var N;
return M.client.init({apiKey:d.apiKey,clientId:d.clientId,scope:d.scope,discoveryDocs:d.discoveryDocs,hostedDomain:d.hostedDomain,fetchBasicProfile:(N=d.fetchBasicProfile)!=null?N:!0})},Gai=function(M){if(M.queryParams!=null){var d={},N;
for(N in M.queryParams)M.queryParams[N]!==void 0&&(d[N]=M.queryParams[N]);M.queryParams=d}},uKd=function(M){return new atJ(M,new UET(M))},YX4=function(M,d){d=d===void 0?!1:d;
var N=document.createElement("div");M&&(N.style.transform="scaleX(-1)");N.style.backgroundColor=d?"rgba(138,180,248,.24)":"#e8f0fe";N.style.height="4px";N.style.overflow="hidden";N.style.position="absolute";N.style.top="0";N.style.width="100%";N.style.zIndex="1500";N.setAttribute("aria-label","Loading");N.setAttribute("aria-live","polite");M=document.createElement("style");M.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
N.appendChild(M);M=CMr();M.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";M.style.left="-145.166611%";var R=xET(d);R.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";M.appendChild(R);N.appendChild(M);M=CMr();M.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";M.style.left="-54.888891%";d=xET(d);d.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
M.appendChild(d);N.appendChild(M);return N},CMr=function(){var M=document.createElement("div");
M.style.height="100%";M.style.position="absolute";M.style.transformOrigin="top left";M.style.width="100%";return M},xET=function(M){var d=document.createElement("span");
d.style.borderTop=M?"4px solid #669df6":"4px solid #4285f4";d.style.display="inline-block";d.style.position="absolute";d.style.width="100%";return d},ZHb=function(M){return M==null?void 0:_.oZL(M).valueOf()},NBY=function(M){var d=document.body,N=!1,R=function(){N||(N=!0,ECr(X,A),setTimeout(function(){d.removeChild(A);
d.removeChild(X)},150))},X=MET(M,getComputedStyle(d).direction==="rtl",R),A=dwJ(R);
ECr(X,A);d.appendChild(A);d.appendChild(X);window.requestAnimationFrame(function(){A.style.opacity="1";X.style.opacity="1";X.style.transform="translate(-50%, -50%) scale(1)";X.children[0].focus()})},MET=function(M,d,N){var R=document.createElement("div");
R.style.position="fixed";R.style.alignItems="center";R.style.backgroundColor=M?"rgb(32, 33, 36)":"white";R.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";R.style.display="flex";R.style.flexDirection="column";R.style.justifyContent="center";R.style.left="50%";R.style.top="50%";R.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";R.style.zIndex="2002";document.body.clientWidth>=660?(R.style.borderRadius="8px",R.style.minHeight="220px",
R.style.maxHeight="90%",R.style.maxWidth="90%",R.style.minWidth="540px"):(R.style.height="100%",R.style.width="100%");R.setAttribute("aria-label","Error");R.setAttribute("aria-modal","true");R.setAttribute("role","alertdialog");R.addEventListener("keydown",function(A){A.key==="Escape"&&N()});
d=Rgi(M,d,N);R.appendChild(XlT(d));R.appendChild(d);var X=document.createElement("img");X.src=M?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";X.style.height="72px";X.style.width="72px";X.style.color="#9aa0a6";X.setAttribute("alt","");R.appendChild(X);X=document.createElement("h1");X.textContent="Something went wrong.  Try again.";
X.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";X.style.lineHeight="24px";X.style.fontSize="16px";X.style.textAlign="center";X.style.letterSpacing="0.1px";X.style.color=M?"rgb(232,234,237)":"#3c4043";R.appendChild(X);R.appendChild(XlT(d));return R},Rgi=function(M,d,N){var R=document.createElement("button");
R.style.backgroundColor="transparent";R.style.border="none";R.style.borderRadius="50%";R.style.cursor="pointer";R.style.outline="none";R.style.padding="12px";R.setAttribute("aria-label","Close dialog");R.style.position="absolute";R.style.top="0";d?R.style.right="0":R.style.left="0";R.addEventListener("focus",function(){R.style.backgroundColor=M?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
R.addEventListener("blur",function(){R.style.backgroundColor="transparent"});
R.addEventListener("mouseenter",function(){R.style.backgroundColor=M?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
R.addEventListener("mouseleave",function(){R.style.backgroundColor="transparent"});
R.addEventListener("click",N);R.addEventListener("keydown",function(X){X.key!=="Enter"&&X.key!=="Space"||N()});
d=document.createElement("img");d.src=M?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";d.style.display="block";d.style.height="24px";d.style.width="24px";d.setAttribute("alt","");R.appendChild(d);return R},XlT=function(M){var d=document.createElement("div");
d.setAttribute("tabindex","0");d.setAttribute("aria-hidden","true");d.addEventListener("focus",function(){return void M.focus()});
return d},dwJ=function(M){var d=document.createElement("div");
d.style.backgroundColor="rgba(32,33,36,0.6)";d.style.bottom="0";d.style.left="0";d.style.position="fixed";d.style.right="0";d.style.top="0";d.style.transition=" opacity 150 ms linear";d.style.zIndex="2001";d.addEventListener("click",M);return d},ECr=function(M,d){d.style.opacity="0";
M.style.opacity="0";M.style.transform="translate(-50%, -50%) scale(0.8)"},FYC=function(M,d){M.sandbox&&M.sandbox.add&&(M.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),M.sandbox.add("allow-downloads"));
M.src=d},gi=function(M){AXr.call(this,M)},WH=function(M,d){d=d===void 0?!1:d;
this.parsedImageUrl_=null;M instanceof VEe||(lIb==void 0&&(lIb=new $w9),M=lIb.parse(M.toString(),d));M=this.parsedImageUrl_=M;M.JSC$17218_parsedOptions_==void 0&&((d=M.getOptions())||(d=""),M.JSC$17218_parsedOptions_=(new BBJ).parse(d));AXr.call(this,M.JSC$17218_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;M=this.parsedImageUrl_;d=M.uri_.JSC$7917_port_;this.JSC$17220_domain_=M.uri_.JSC$7917_domain_+(d?":"+d:"");this.JSC$17220_query_=this.parsedImageUrl_.uri_.JSC$7917_queryData_.toString()},
kD$=function(M){this.mode=4;
this.data=M;this.parsedData=[];M=0;for(var d=this.data.length;M<d;M++){var N=[],R=this.data.charCodeAt(M);R>65536?(N[0]=240|(R&1835008)>>>18,N[1]=128|(R&258048)>>>12,N[2]=128|(R&4032)>>>6,N[3]=128|R&63):R>2048?(N[0]=224|(R&61440)>>>12,N[1]=128|(R&4032)>>>6,N[2]=128|R&63):R>128?(N[0]=192|(R&1984)>>>6,N[1]=128|R&63):N[0]=R;this.parsedData.push(N)}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))},TBr=function(M){this.typeNumber=0;
this.errorCorrectLevel=M===void 0?2:M;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},wi=function(M,d){if(M.length==void 0)throw Error("tk`"+M.length+"`"+d);
for(var N=0;N<M.length&&M[N]==0;)N++;this.num=Array(M.length-N+d);for(d=0;d<M.length-N;d++)this.num[d]=M[d+N]},Dwi=function(M,d){this.totalCount=M;
this.dataCount=d},gPr=function(){this.buffer=[];
this.length=0},WYY=function(){var M=!1;
if(_.k6S()){M=_.gZ();var d="";_.giZ()?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(M=d.exec(M))?M[1]:"0.0"):_.yq()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(M=d.exec(M))&&M[1].replace(/_/g,".")):_.Dp6()?(d=/Mac OS X ([0-9_.]+)/,d=(M=d.exec(M))?M[1].replace(/_/g,"."):"10"):_.Dv(_.gZ(),"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(M=d.exec(M))&&M[1]):_.k6S()?(d=/Android\s+([^\);]+)(\)|;)/,d=(M=d.exec(M))&&M[1]):_.WA6()&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(M=d.exec(M))&&M[1]);M=d||""}return M},qu9=function(M,
d){this.JSC$17243__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(d)for(var N in d)this.JSC$17243__htOption[N]=d[N];this.JSC$17243__htOption.useSVG&&(wl4=pl$);this.JSC$17243__android=WYY();this.JSC$17243__el=M;this._oQRCode=null;this._oDrawing=new wl4(this.JSC$17243__el,this.JSC$17243__htOption);this.JSC$17243__htOption.text&&(M=this.JSC$17243__htOption.text,this._oQRCode=new TBr(this.JSC$17243__htOption.correctLevel),mwq(this._oQRCode,M),d=this._oQRCode,hgG(d,!1,QnY(d)),this.JSC$17243__el.title=
M,this._oDrawing.draw(this._oQRCode),this.makeImage())},IIb=function(M,d,N,R,X){M.save();
var A=new Path2D;A.roundRect(d,N,R*7,R*7,R*2);A.roundRect(d+R,N+R,R*5,R*5,R*1.3);A.roundRect(d+2*R,N+2*R,R*3,R*3,R);M.clip(A,"evenodd");M.fillStyle=X;M.fillRect(0,0,M.canvas.width,M.canvas.height);M.restore()},po=function(M,d){if(typeof M!=="function")throw Error("wk");
return _.Np.setTimeout(function(){M()},d)},mc=function(){},OLJ=function(M,d,N,R,X){(new mc).debug("TestLoadImageWithRetries: "+X);
if(R==0)N(!1);else{var A=X||0;R--;vP9(M,d,function(l){l?N(!0):_.Np.setTimeout(function(){OLJ(M,d,N,R,A)},A)})}},vP9=function(M,d,N){var R=new mc;
R.debug("TestLoadImage: loading "+M);var X=new Image;X.onload=function(){try{R.debug("TestLoadImage: loaded"),jnq(X),N(!0)}catch(A){}};
X.onerror=function(){try{R.debug("TestLoadImage: error"),jnq(X),N(!1)}catch(A){}};
X.onabort=function(){try{R.debug("TestLoadImage: abort"),jnq(X),N(!1)}catch(A){}};
X.ontimeout=function(){try{R.debug("TestLoadImage: timeout"),jnq(X),N(!1)}catch(A){}};
_.Np.setTimeout(function(){if(X.ontimeout)X.ontimeout()},d);
X.src=M},jnq=function(M){M.onload=null;
M.onerror=null;M.onabort=null;M.ontimeout=null},snC=function(){this.front_=[];
this.back_=[]},PXT=function(M,d){_.DL.call(this);
this.delay_=new _.WU(this.JSC$17369_onTick_,0,this);_.RW(this,this.delay_);this.JSC$17367_interval_=5E3;this.nextTickTime_=0;if(typeof M==="function")d&&(M=(0,_.gx)(M,d));else if(M&&typeof M.handleEvent==="function")M=(0,_.gx)(M.handleEvent,M);else throw Error("Ca");this.JSC$17369_listener_=M},hr=function(M,d,N,R,X,A,l,k,T,W,w,p,m,I){N=N===void 0?!1:N;
R=R===void 0?function(){return""}:R;
X=X===void 0?!1:X;A=A===void 0?!1:A;l=l===void 0?!1:l;k=k===void 0?function(){return _.RD({})}:k;
T=T===void 0?!1:T;w=w===void 0?!1:w;p=p===void 0?!1:p;m=m===void 0?!1:m;I=I===void 0?!1:I;this.JSC$17370_pathPrefix_=M;this.defaultQueryParams_=d;this.pubsub_=new _.lk;this.reconnectTimer_=new PXT(this.safeReconnect_,this);this.JSC$17370_channel_=null;this.JSC$17370_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17370_pendingMessages_=[];this.enableAsyncTest_=N;this.JSC$17370_getXsrfToken_=R;this.useAsyncBrowserChannelHandler_=A;this.getAuthorizationHeader_=
k;this.getAuthorizationHeaderSync_=W;this.enableCachedUpdateAuthorizationHeader_=l;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.RD();this.enableLoungeTokenRefresh_=X;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=T;this.disableMdxAuthForNonPlaybackMessages_=w;this.disableMdxAuthForAdMessages_=p;this.enableMdxAuthForConnectionOnly_=m;this.disableMdxAuthForShortsMessages_=I;this.JSC$17370_channelOpenedCounter=new oP9;this.JSC$17370_channelClosedCounter=new rXC;this.channelMessageSentCounter=
new KYr;this.JSC$17370_channelMessageReceivedCounter=new yX4;this.JSC$17370_channelErrorCounter=new JXG;this.pendingMapsOnClosedCounter=new cXC;this.undeliveredMapsOnClosedCounter=new Sur},QT=function(M){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;M=M||document.location.href;var d=Number(_.tA(M)[4]||null)||"";d&&(this.port=":"+d);this.domain=_.GN(M)||"";M=_.gZ();M.search("MSIE")>=0&&Gp(M.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},qJ=function(M){M=M||{};
this.name=M.name||"";this.id=M.id||M.screenId||"";this.token=M.token||M.loungeToken||"";this.uuid=M.uuid||M.dialId||"";this.idType=M.screenIdType||"normal"},zge=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(M){var d=Math.random()*16|0;
return(M=="x"?d:d&3|8).toString(16)})},bLG=function(M){return _.mi(M,function(d){return{key:d.id,
name:d.name}})},egD=function(M,d){return _.Sr(M,function(N){return N||d?!N!=!d?!1:N.id==d.id:!0})},vH=function(M,d){return _.Sr(M,function(N){return IY(N,d)})},LYe=function(){var M=HLT(),d=nPi();
if(iLr()){var N=M,R=_.qSS(N,d);R<0&&_.QNN(N,-(R+1),0,d)}M=fIJ(M);if(M.length==0)try{_.BBZ("remote_sid")}catch(X){}else try{_.kY("remote_sid",M.join(","),-1)}catch(X){}},HLT=function(){var M=_.F5("yt-remote-connected-devices")||[];
M.sort(_.XL);return M},fIJ=function(M){if(M.length==0)return[];
var d=M[0].indexOf("#"),N=d==-1?M[0]:M[0].substring(0,d);return _.mi(M,function(R,X){return X==0?R:R.substring(N.length)})},tEr=function(M){_.X5("yt-remote-connected-devices",M,86400)},nPi=function(){if(GDb)return GDb;
var M=_.F5("yt-remote-device-id");M||(M=zge(),_.X5("yt-remote-device-id",M,31536E3));for(var d=HLT(),N=1,R=M;_.i2(d,R);)N++,R=M+"#"+N;return GDb=R},aIP=function(){return _.F5("yt-remote-session-browser-channel")},iLr=function(){return _.F5("yt-remote-session-screen-id")},CXY=function(M){M.length>5&&(M=M.slice(M.length-5));
var d=_.mi(Uwb(),function(R){return R.loungeToken}),N=_.mi(M,function(R){return R.loungeToken});
_.lhZ(N,function(R){return!_.i2(d,R)})&&uf4();
_.X5("yt-remote-local-screens",M,31536E3)},Uwb=function(){return _.F5("yt-remote-local-screens")||[]},uf4=function(){_.X5("yt-remote-lounge-token-expiration",!0,86400)},OE=function(M){M||(_.AK("yt-remote-session-screen-id"),_.AK("yt-remote-session-video-id"));
LYe();M=HLT();_.aN(M,nPi());tEr(M)},YuY=function(){xwe();
return jW?!!jW.get("yt-remote-use-staging-server"):!1},xwe=function(){if(!jW){var M=_.hgA();
M&&(jW=new _.w2(M))}},dii=function(M,d,N,R,X){N=N===void 0?function(){return""}:N;
var A=function(){return new hr(sE(M,"/bc"),d,!1,N,R)};
return _.Q("enable_mdx_web_channel_desktop")?new ZLq(function(){return new EPC(sE(M,"/wc"),d,N)}):new MD9(A,X)},FNr=function(){var M=NUi;
RJC();PH.push(M);X1$()},oY=function(M,d){RJC();
var N=A$$(M,String(d));PH.length==0?VD4(N):(X1$(),_.Hy(PH,function(R){R(N)}))},ri=function(M){oY("CP",M)},RJC=function(){PH||(PH=_.cy("yt.mdx.remote.debug.handlers_")||[],_.fE("yt.mdx.remote.debug.handlers_",PH))},VD4=function(M){var d=(Ko+1)%50;
Ko=d;lye[d]=M;$ir||($ir=d==49)},X1$=function(){var M=PH;
if(lye[0]){var d=$ir?Ko:-1,N={};do N={record$jscomp$13:void 0},d=(d+1)%50,N.record$jscomp$13=lye[d],_.Hy(M,function(R){return function(X){X(R.record$jscomp$13)}}(N));
while(d!=Ko);lye=Array(50);Ko=-1;$ir=!1}},A$$=function(M,d){var N=(Date.now()-BUq)/1E3;
N.toFixed&&(N=N.toFixed(3));var R=[];R.push("[",N+"s","] ");R.push("[","yt.mdx.remote","] ");R.push(M+": "+d,"\n");return R.join("")},yT=function(M){_.nn.call(this);
this.JSC$17394_logName_=M;this.screens=[]},cH=function(M){yT.call(this,"LocalScreenService");
this.JSC$17401_http_=M;this.loungeTokenRefreshTimer_=NaN;Jr(this);this.info("Initializing with "+kRG(this.screens))},SW=function(M,d){d=d===void 0?!1:d;
yT.call(this,"ScreenService");this.JSC$17407_http_=M;this.disableAutomaticScreenCache_=d;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};TUi(this)},zm=function(M,d,N){_.nn.call(this);
this.JSC$17411_logName_=N;this.JSC$17411_screenService_=M;this.receiver_=d;this.screen_=null},Pe4=function(M,d,N){N.disableCastApi?bA("Cannot initialize because disabled by Mdx config."):Dir()?gST(M,N)&&(WNi(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?w1G(d):(window.__onGCastApiAvailable=function(R,X){R?w1G(d):(eW("Failed to load cast API: "+X),p1$(!1),WNi(!1),_.AK("yt-remote-cast-available"),_.AK("yt-remote-cast-receiver"),miD(),d(!1))},N.loadCastApiSetupScript?_.rB("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?hJJ()>=60&&QDG():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?qNP():hJJ()>=89?IyT():(vSJ(),ObD(jDe.map(sDd))))):bA("Cannot initialize because not running Chrome")},miD=function(){bA("dispose");
var M=HH();M&&M.dispose();_.fE("yt.mdx.remote.cloudview.instance_",null);oSY(!1);_.N4i(r$r);r$r.length=0},KNJ=function(){return!!_.F5("yt-remote-cast-installed")},y$9=function(){var M=_.F5("yt-remote-cast-receiver");
return M?M.friendlyName:null},J$i=function(){bA("clearCurrentReceiver");
_.AK("yt-remote-cast-receiver")},c$J=function(){return KNJ()?HH()?HH().getCastSession():(eW("getCastSelector: Cast is not initialized."),null):(eW("getCastSelector: Cast API is not installed!"),null)},zJb=function(M,d){SNr()?HH().setConnectedScreenStatus(M,d):eW("setConnectedScreenStatus called before ready.")},Dir=function(){var M=_.gZ().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.T7||M},gST=function(M,d){var N=!1;
HH()||(M=new no(M,d),M.subscribe("yt-remote-cast2-availability-change",function(R){_.X5("yt-remote-cast-available",R);Uw("yt-remote-cast2-availability-change",R)}),M.subscribe("yt-remote-cast2-receiver-selected",function(R){bA("onReceiverSelected: "+R.friendlyName);
_.X5("yt-remote-cast-receiver",R);Uw("yt-remote-cast2-receiver-selected",R)}),M.subscribe("yt-remote-cast2-receiver-resumed",function(R){bA("onReceiverResumed: "+R.friendlyName);
_.X5("yt-remote-cast-receiver",R);Uw("yt-remote-cast2-receiver-resumed",R)}),M.subscribe("yt-remote-cast2-session-change",function(R){bA("onSessionChange: "+bbP(R));
R||_.AK("yt-remote-cast-receiver");Uw("yt-remote-cast2-session-change",R)}),_.fE("yt.mdx.remote.cloudview.instance_",M),N=!0);
bA("cloudview.createSingleton_: "+N);return N},HH=function(){return _.cy("yt.mdx.remote.cloudview.instance_")},w1G=function(M){p1$(!0);
WNi(!1);HH().init(!1,function(d){d?(oSY(!0),_.R7r("yt-remote-cast2-api-ready")):(eW("Failed to initialize cast API."),p1$(!1),_.AK("yt-remote-cast-available"),_.AK("yt-remote-cast-receiver"),miD());M(d)})},bA=function(M){oY("cloudview",M)},eW=function(M){oY("cloudview",M)},p1$=function(M){bA("setCastInstalled_ "+M);
_.X5("yt-remote-cast-installed",M)},SNr=function(){return!!_.cy("yt.mdx.remote.cloudview.apiReady_")},oSY=function(M){bA("setApiReady_ "+M);
_.fE("yt.mdx.remote.cloudview.apiReady_",M)},WNi=function(M){_.fE("yt.mdx.remote.cloudview.initializing_",M)},iA=function(M){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(M)},eJY=function(){var M,d;
return _.B(function(N){if(N.nextAddress==1)return(_.nBN()||_.Q("use_new_nwl"))&&_.zri().isNetworkAvailable()?_.D(N,_.LE(),2):N.return();if(N.nextAddress!=3)return(M=N.yieldResult)?_.D(N,vWD(M),3):N.return();d=N.yieldResult;if(!d.length)return N.return();d.forEach(function(R){var X={timestamp:R.timestamp};R=R.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:R.appShellAssetLoadReport,options:X}:R.clientError?{payloadName:"clientError",payload:R.clientError,options:X}:void 0;R&&
_.hQ(R.payloadName,R.payload,R.options)});
d.length===100&&_.IQ.addLowPriorityJob(eJY);_.Vy(N)})},HbG=function(M){if(M.playerResponse){if(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(d){return!(!d||!d.mealbarPromoRenderer)}))&&M.mealbarPromoRenderer)return M.mealbarPromoRenderer}else if(M.response&&(M=M.response)&&M.overlay&&M.overlay.mealbarPromoRenderer)return M.overlay.mealbarPromoRenderer},nSq=function(M){if(M.response){var d=M.response;
if(d&&d.overlay&&d.overlay.tooltipRenderer)return d.overlay.tooltipRenderer}if(M.playerResponse&&(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(N){return!(!N||!N.tooltipRenderer)}))&&M.tooltipRenderer))return M.tooltipRenderer},fyi=function(M){if(!ibi&&(M=M||_.rK("ZWIEBACK_PING_URLS"))&&M.length){ibi=!0;
for(var d=0;d<M.length;d++)_.Jk(M[d])}},tD4=function(M){if(_.wF.get(_.rK("PLAYER_VARS",{}),"privembed",!1)!="1"){M&&gWJ();
try{LNC().then(function(){},function(){}),_.NB(tD4,18E5)}catch(d){_.yD(d)}}},GRC=function(){var M=_.kS(),d=M.getFlag(119),N=window.devicePixelRatio>1;
document.body&&_.HX(document.body,"exp-invert-logo")&&(N&&!_.HX(document.body,"inverted-hdpi")?_.cz(document.body,"inverted-hdpi"):!N&&_.HX(document.body,"inverted-hdpi")&&_.yu(document.body,"inverted-hdpi"));d!=N&&(_.TR(0,119,N),M.save())},ayP=function(M){return M.filter(function(d){return"ypcGetCartEndpoint"in d||"ypcFixInstrumentEndpoint"in d})},UiT=function(M){return M.filter(function(d){return!_.q(d,_.vHo)})},Cei=function(M){M=_.V(M);
for(var d=M.next(),N={};!d.done;N={setter$jscomp$6:void 0},d=M.next()){var R=d.value;d=R.params;R=R.service;d&&R&&(N.setter$jscomp$6=uPq[R],N.setter$jscomp$6&&d.forEach(function(X){return function(A){var l=A.key;A=A.value;l&&A&&(0,X.setter$jscomp$6)(l,A)}}(N)))}},YNP=function(M,d){var N,R,X,A,l,k,T;
_.B(function(W){switch(W.nextAddress){case 1:N=_.PN.getInstance();R=_.YQ.instance;X=_.Pi.instance;if(!X)return xi4(M,R,d),W.return();_.Mv(W,2);M.onLoadingCommand&&R.resolveCommand(M.onLoadingCommand);return _.D(W,N.getCurrentPositionFromGeolocation(),4);case 4:A=W.yieldResult;if(!M.resolveLocationCommand){W.jumpTo(5);break}l=N.createLocationInfo(A);return _.D(W,_.rT(X,M.resolveLocationCommand,{locationInfo:l}),6);case 6:k=W.yieldResult;if(!k||"error"in k&&k.error||k.errorMetadata)return xi4(M,R,d),
W.return();var w;if(k==null?0:(w=k.onResponseReceivedActions)==null?0:w.length){w=_.V(k.onResponseReceivedActions);for(var p=w.next();!p.done;p=w.next())R.resolveCommand(p.value)}(_.q(M.onSuccessCommand,_.nL)||_.q(M.onSuccessCommand,_.F8))&&_.YP(d.hostElement,"yt-navigate",{endpoint:M.onSuccessCommand,reload:!0});case 5:_.cJ(W,0);break;case 2:T=_.Fg(W);if(T instanceof GeolocationPositionError&&T.code===GeolocationPositionError.PERMISSION_DENIED)return M.onDeniedCommand&&R.resolveCommand(M.onDeniedCommand),
W.return();xi4(M,R,d);_.Vy(W)}})},xi4=function(M,d,N){M.onFailureCommand&&(d.resolveCommand(M.onFailureCommand),_.ZI(N.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},ES9=function(M,d){var N=_.q(M,_.CUd);
if(N&&d){M=N.videoIds||[N.videoId];var R;d=(R=_.YP(d,"yt-lockup-requested",{videoIds:M}).detail)==null?void 0:R.returnValue;var X;N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?X=d?d:M.map(function(A){return{videoId:A,navigationEndpoint:N.videoCommand}}):d&&(X=d);
X&&(R=X.map(function(A){var l=Object,k=l.assign;var T=A.navigationEndpoint;if(!_.q(T,_.$B)){var W=_.q(T,_.nL);if(W){if(delete W.index,delete W.playlistId,W=_.q(T==null?void 0:T.commandMetadata,_.an),W==null?0:W.url){var w=W.url;w=_.GD(w,"list");w=_.GD(w,"index");W.url=w}}else T=void 0}return k.call(l,{},A,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:T})}),ZbY(R,N))}},MpC=function(M){var d=_.cn();
if(M=_.q(M,_.xIV))M.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&d.clearQueue(),M.closeMiniplayer&&_.h().resolve(_.et).close(!0)},N_Y=function(M){dr4(_.cn(),M)},R59=function(M){var d;
(M=(d=_.q(M,_.UIV))==null?void 0:d.setVideoIds)&&M.forEach(function(N){_.Sy3(_.cn(),N)})},FZD=function(M){XD$(_.cn(),M)},ATP=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(M){return!1}},VpC=function(M,d,N){return{horizontalAlignment:M.x+N.width/2<d.width/2?"west":"east",
verticalAlignment:M.y+N.height/2<d.height/2?"north":"south"}},B_C=function(M,d,N,R,X){X=X===void 0?new _.hw(0,0):X;
return l49($r4(M,d,N,R),X)},$r4=function(M,d,N,R){return new _.hw(M==="west"?16:N.width-R.width-16,d==="north"?16:N.height-R.height-16)},kLC=function(M,d){var N=0;
M&&(N+=76);d&&(N+=285);return N},T_C=function(M){var d=["h",
"m","s"],N=_.US(d);N.reverse();var R={};M=(M.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(l){var k=(l.match(/[hms]/)||[""])[0];return k?(R[k]=parseInt(l.match(/\d+/)[0],10),!1):!0});
for(M.reverse();M.length&&N.length;){var X=N.shift();X in R||(R[X]=parseInt(M.shift(),10))}if(M.length||R.s>59||R.m>59||R.h>9)return null;var A="";d.forEach(function(l){R[l]&&(A+=""+R[l]+l)});
return A||null},DrP=function(M){M=M.data;
return _.g("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.g("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.g(_.Jt,{data:{thumbnails:[{url:M.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.g("div",{class:"profile-badge-view-model-wiz__content"},_.g("div",{class:"profile-badge-view-model-wiz__badge-description"},M.badgeDesc),M.badgeSubtitle?_.g("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},M.badgeSubtitle):null))},g$G=function(M){M=
M.data;
var d=_.e5();_.ba(d,M.rendererContext);return _.g("yt-comment-interaction-view-model",{el:d,class:"yt-comment-interaction-view-model-wiz"},_.g("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":M.onTapA11yLabel,"on:keydown":_.Jo(),tabindex:0},_.g("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.g("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},M.headerPrefix,' "',M.videoTitle),_.g("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.g("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.g("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},M.commentContent),_.g("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.g(_.Jt,{data:{thumbnails:[{url:M.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},wD$=function(M){M=M.data;
return _.g("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},WZ4(M.avatar),_.g("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},M.channelName))},mr9=function(M){M=M.data;
var d;return _.g("div",{class:"yt-profile-info-view-model-wiz__activity"},_.g("div",{class:"yt-profile-info-view-model-wiz__header"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-title"},M.commentsInteractionTitle)),(d=M.comments)==null?void 0:d.map(function(N){return _.g("div",{class:"yt-profile-info-view-model-wiz__activity"},pD9(N))}))},h59=function(M){M=M.data;
var d=_.qx({elementsCommand:M.subscriptionsAccessButtonCommand}),N=_.e5();_.oo2(N,_.ht(M.subscriptionsAccessButtonCommand));var R=_.dT(function(A){if(d==null?0:d.onclick)d.onclick(A);return!1}),X;
return _.g("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.g("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.g("a",{el:N,"on:click":R,class:"yt-profile-info-view-model-wiz__another-header"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},M.sharedSubscriptionsTitle),_.g("div",null,pD9(M.subscriptionsAccessButton)))),_.g("div",{class:"yt-profile-info-view-model-wiz__subs"},(X=M.sharedSubscriptions)==null?void 0:X.slice(0,5).map(function(A){return _.g("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",pD9(A))})))},QzD=function(M){M=M.data;
var d;return _.g("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.g("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.g("h2",{class:"yt-profile-info-view-model-wiz__section-title"},M.sharedSubscriptionsTitle)),_.g("div",{class:"yt-profile-info-view-model-wiz__subs"},(d=M.sharedSubscriptions)==null?void 0:d.slice(0,5).map(function(N){return _.g("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",pD9(N))})))},qWi=function(M){M=M.data;
return _.g("div",{class:"yt-profile-info-view-model-wiz__activity"},[M.profileBadgeInfoYtWide,M.profileBadgeInfoChannelWide].map(function(d){var N,R,X,A,l;return d?_.g(_.GT,null,_.g("div",{class:"yt-profile-info-view-model-wiz__header"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-title"},d==null?void 0:d.profileSectionTitle),_.g("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.g("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},d==null?void 0:(N=d.commentBadge)==
null?void 0:N.commentDesc),(d==null?0:(R=d.commentBadge)==null?0:R.blackHeartDesc)?_.g("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.g("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.g(_.Jt,{data:{thumbnails:[{url:d==null?void 0:(X=d.commentBadge)==null?void 0:X.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.g("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},d==null?void 0:(A=
d.commentBadge)==null?void 0:A.blackHeartDesc))),_.g("div",{class:"yt-profile-info-view-model-wiz__badge"},d==null?void 0:(l=d.badges)==null?void 0:l.map(function(k){return _.g(DrP,{data:k})}))):null}))},I4G=function(M){M=M.data;
return _.g("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.g(qWi,{data:M}),M.comments?_.g(mr9,{data:M}):null,M.sharedSubscriptionsTitle?M.subscriptionsAccessButtonCommand?_.g(h59,{data:M}):_.g(QzD,{data:M}):null)},Ohq=function(M){var d=M.data;
M=d?v$Y(d.profileIdentityInfo):void 0;d=d?v$Y(d.profileInfo):void 0;return _.g("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},M,d)},jzP=function(M,d){var N=_.oho(d,{},M,!0);
return new Promise(function(R,X){N.listenOnce("n",function(){X(Error("gl`"+N.JSC$25667_getErrorDescription()))});
N.listenOnce("l",function(){var A=N.getResponseCode();if(A!==200)X(Error("hl`"+d+"`"+M.type+"`"+M.size+"`"+A));else try{R(JSON.parse(N.getResponseText()).encryptedBlobId)}catch(l){X(l)}});
N.run()})},szG=function(M){return M.substring(M.indexOf(":")+1,M.indexOf(";"))},PYi=function(M){return new Promise(function(d,N){var R=new FileReader;
R.onloadend=function(){try{var X=new Uint8Array(R.result);X.length<8&&N(void 0);var A=X.subarray(0,8);X="";for(var l=0;l<A.length;l++)X+=("0"+A[l].toString(16)).substr(-2);X.startsWith("ffd8ff")?d("image/jpeg"):X.startsWith("47494638")?d("image/gif"):X.startsWith("89504e470d0a1a0a")?d("image/png"):X.startsWith("424d")?d("image/bmp"):d(void 0)}catch(k){N(k)}};
R.onerror=N;R.readAsArrayBuffer(M)})},o$i=function(M){return new Promise(function(d,N){var R=new Image;
R.crossOrigin="anonymous";R.onload=function(){var X=document.createElement("canvas");X.width=R.naturalWidth;X.height=R.naturalHeight;var A=X.getContext("2d");if(!A)throw Error("il");A.drawImage(R,0,0);A=szG(M);X.toBlob(function(l){l?d(l):N()},A)};
R.src=M})},KZT=function(M,d){var N;
if(((N=_.q(M,_.$B))==null?void 0:N.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R;_.YP((R=d.hostElement)!=null?R:d,"yt-shorts-reset");_.KzI(_.h().resolve(_.YO),M).then(function(A){rT9(A,d,M)})}else{var X;
_.dU((X=d.hostElement)!=null?X:d,[M]).then(function(A){A&&rT9(A.data,d,M)})}},rT9=function(M,d,N){if(M){var R=_.q(M.replacementEndpoint,_.$B);
if(R){M.sequenceContinuation&&(R.sequenceParams=M.sequenceContinuation);var X;_.YP((X=d.hostElement)!=null?X:d,"yt-navigate",{endpoint:M.replacementEndpoint})}else if((M==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(M==null?0:M.watchStatus)&&_.q(M.watchStatus,_.yWd)){var A;_.YP((A=d.hostElement)!=null?A:d,"yt-navigate",{endpoint:N})}}},yTe=function(){var M=_.h().resolve(_.ql),d=UZC(M.getState())||"";
M=_.z_Z(M.getState())||"";return{disableCache:d==="ytd-browse"&&M==="home"}},JTr=function(M){if(!M)return!1;
try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENT-INPUT")return!0}catch(d){return!1}return JTr(M.parentNode)},fo=function(M){return M?M.tagName==="A"&&M.href&&M.classList.contains("yt-simple-endpoint"):!1},cTe=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1},SWY=function(M,d,N){if(!M)return null;
var R=fo(M);if(R&&N)return d=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+d);if(R&&!N)return document.createTextNode("");if(cTe(M))return N=M.alt,M=M.dataset.emojiId,!M&&d&&(d=_.Tf(d,N))&&d.isCustomEmoji&&(M=d.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(N);R=M.cloneNode(!1);for(var X=0;X<M.childNodes.length;++X){var A=SWY(M.childNodes[X],d,N);A&&R.appendChild(A)}return R},Lo=function(M){return M?fo(M)?M:Lo(M.lastChild):
null},z5e=function(M){return M?fo(M)?M:z5e(M.firstChild):null},bhD=function(M){if(!M)return null;
for(var d=M.previousSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.previousSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.previousSibling;else break;(d=Lo(d))?M=d:M=(M=M.parentNode)?Lo(M.previousElementSibling):null;return M},e5C=function(M){if(!M)return null;
for(var d=M.nextSibling;d;)if(d.nodeType===Node.ELEMENT_NODE&&d.nodeName==="BR")d=d.nextSibling;else if(d.nodeType===Node.TEXT_NODE&&/\s+/.test(d.textContent))d=d.nextSibling;else break;return(d=z5e(d))?d:e5C(M.parentNode)},HhT=function(M){var d=_.gW(),N=d.JSC$9140_getStartNode();
if(!JTr(N.parentNode))return null;d=d.JSC$9140_getStartOffset();if(N.nodeType===Node.TEXT_NODE){var R=_.jM(N,fo);if(R){if(M&&d===0||!M&&d===N.length)return R}else{if(M&&d===N.length)return!N||N.nodeName==="BR"||N.nextElementSibling&&_.WC(N.nextElementSibling,"display")==="block"?null:z5e(N.nextElementSibling);if(!M&&d===0)return N?Lo(N.previousElementSibling):null}}if(N.nodeType===Node.ELEMENT_NODE)if(M){if(0<=d&&d<N.childNodes.length)return z5e(N.childNodes[d])}else if(0<d&&d<=N.childNodes.length)return Lo(N.childNodes[d-
1]);return null},n$4=function(M,d,N){if(!M)return null;
if(M.nodeType===Node.TEXT_NODE)if(N){var R=bhD(M);if(R&&!/^\s+\S/.test(M.wholeText.substr(0,d)))return R}else if((R=e5C(M))&&!/\S\s+/.test(M.wholeText.substr(d,M.wholeText.length)))return R;return M.nodeType===Node.ELEMENT_NODE?N?bhD(M.childNodes[d]):e5C(M.childNodes[d]):n$4(M.parentNode,d,N)},ihC=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var d="";
for(M=M.firstChild;M;M=M.nextSibling)d+=ihC(M);return d;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}},f4e=function(M){M=M.data;
return _.g("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.g("div",null,_.g(_.lG,{text:M.title})),M.subtitle?_.g("div",{class:"ytd-menu-title-renderer__subtitle"},_.g(_.lG,{text:M.subtitle})):null)},LZb=function(M){switch(M){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";
case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}},tpb=function(M){return M.map(function(d){return{settingsRadioOptionRenderer:{title:_.xS(d.name),
asideText:_.xS(d.approximateSize),id:LZb(d.format)}}})},a49=function(M){if(M&&M.length!==0)return M.filter(GLJ()).map(function(d){return{settingsRadioOptionRenderer:{title:d.name,
asideText:d.approximateSize,id:LZb(d.formatType)}}})},tr=function(M){if(M)return M.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},UrT=function(M){M=new Set(M!=null?M:[]);
if(M.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(M.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(M.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(M.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(M.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},uw4=function(M){var d=M.indexOf("(");
return d!==-1?M.substring(d+1,M.length-1):M},CYd=function(M){switch(M){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},YWC=function(M,d,N,R,X,A){var l=_.wF.clone(xrJ);
l.locale=_.rK("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;l.report={description:X||"<empty>"};X=_.rK("SBOX_SETTINGS",{});d=d.join(",");var k=Date.now();M={choice_cc:R,choice_id_cc:N,choices_sc:d,gl:X.REQUEST_DOMAIN,hl:X.REQUEST_LANGUAGE,query:M,time:k};A&&(M.choice_additional_comment_cc=A);_.S1d(l,M)},ZhJ=function(M){var d=new Map;
d.set("authuser",_.rK("SESSION_INDEX","0"));return _.CI(M,d)},M2G=function(M){var d;
return _.B(function(N){switch(N.nextAddress){case 1:if(!M||!E$4(M))return N.return(null);d=null;switch(_.rK("INNERTUBE_CLIENT_NAME")){case "WEB":return N.jumpTo(2);case "WEB_REMIX":d=M.getPlayer()}N.jumpTo(3);break;case 2:return _.D(N,M.getPlayerPromise(),4);case 4:d=N.yieldResult;N.jumpTo(3);break;case 3:return N.return(d)}})},E$4=function(M){return["ytd-player",
"ytmusic-player"].includes(String(M.tagName||"").toLowerCase())},dX4=function(M){M=Math.round(M);
return M%2?M-1:M},Nfd=function(M){M=Math.round(M);
return M%2===0?M-1:M},Rrd=function(M){var d,N,R;
if(M=(d=M.createPlaylistDialogFormSchema)==null?void 0:(N=d.fieldSchemas)==null?void 0:(R=N.title)==null?void 0:R.validationSchema)for(d=[M.syncStep,M.asyncStep].filter(function(X){return X!==void 0}),d=_.V(d),N=d.next();!N.done;N=d.next()){N=N.value.rules;
if(!N)break;N=_.V(N);for(N=N.next();!N.done;N=N.next())return _.q(N.value,_.vae)}},Flr=function(M){var d,N,R;
if(M=(d=M.createPlaylistDialogFormSchema)==null?void 0:(N=d.fieldSchemas)==null?void 0:(R=N.visibility)==null?void 0:R.validationSchema)for(d=[M.syncStep,M.asyncStep].filter(function(X){return X!==void 0}),d=_.V(d),N=d.next();!N.done;N=d.next()){N=N.value.rules;
if(!N)break;N=_.V(N);for(R=N.next();!R.done;R=N.next())if(R=_.q(R.value,XNd))return d=void 0,(d=R.translations)==null?void 0:d.visibilityNotValidErrorMessage}},A2q=function(){var M,d;
return(d=(M=_.h().resolve(_.CF(_.Pz)))==null?void 0:M())!=null?d:!1},V2r=function(M,d){a:switch(d){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":d="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:d="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:M,style:d,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},l3e=function(M){_.ZI(M,"yt-refit-popups-action")},Bfe=function(M){var d=M.data;
var N=M.disablePadding;var R=M.className;var X=_.e5(),A=V2r(d.banner,d.assetContainerPaddingStyle),l=V2r(d.imageBanner,d.assetContainerPaddingStyle),k=d.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",T=d.assetContainerMaxHeight;_.IJ(function(){var W;(W=X.value)==null||W.addEventListener("image-loaded",function(){l3e(X.value)})});
_.mF(function(){var W;(W=X.value)==null||W.removeEventListener("image-loaded",function(){l3e(X.value)})});
M={};return _.g("yt-dialog-header-view-model",{el:X,class:_.ZH(R,(M.ytDialogHeaderViewModelHost=!0,M.ytDialogHeaderViewModelHostDisablePadding=!!N,M))},_.ez(d.banner,function(){var W={};return _.g("div",{class:_.ZH(R,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=!!k,W)),style:"max-height: "+(T?T+"px":"")},_.g(_.iK,{data:A,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.ez(d.imageBanner,function(){var W={};
return _.g("div",{class:_.ZH(R,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=!!k,W)),style:_.Xc({"max-height":function(){return T!==void 0?T+"px":void 0}})},_.g(_.iK,{data:l,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.ez(d.customAssetContainer,function(){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},$XD(d.customAssetContainer))}),_.ez(d.customBanner,function(){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},$XD(d.customBanner))}),_.ez(d.headline,function(){return _.g("h2",null,_.g(_.lG,{text:d.headline,
className:"ytDialogHeaderViewModelText"}))}))},kur=function(M){var d=21;
if(!M)return d;d+=M.headerTitle?27:0;d+=M.headerTitle&&M.hasHeaderActionHeader?4:0;return d+=M.headerTitle&&M.headerSubtitle?16:0},TfC=function(M){var d=0;
if(!M)return d;d+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton?48:0;d+=M.footerTrailingLabel||M.footerLeadingLabel?30:0;return d+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton||!M.footerTrailingLabel&&!M.footerLeadingLabel?0:12},DXe=function(M){var d=new _.lk,N=M;
return{subscribe:function(R){d.subscribe("changed",R)},
dispatch:function(R,X){var A=N;R==="Touch Start"?N=Object.assign({},A,{isAnimating:!1,initialY:X.event.touches[0].clientY}):R==="Touch Move"?(R=Math.min(X.fullContentWrapperHeight,X.contentHeightMap[X.contentWrapperId]+kur(X.header)-TfC(X.footer)),N=Object.assign({},A,{currentY:Math.max(X.contentScrollable?-1*(A.initialY-24):0,X.event.touches[0].clientY-A.initialY),maxHeightForContentWrapper:Math.min(R,Math.max(0,(A.isFullScreen?R:X.contentWrapperHeight)-A.currentY))})):N=R==="Snap To Full Screen"?
Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:X.maxHeight}):R==="Snap To Neutral Position"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:X.maxHeight}):R==="Close Sheet"?Object.assign({},A,{isAnimating:!0,currentY:X.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:X.maxHeight}):A;d.publish("changed",N)}}},gBq=function(M){return _.dT(function(d){M(d);
return!1})},WlJ=function(){_.h().resolve(_.Wc).closeSheet()},wNe=function(M){var d,N,R,X,A,l,k,T,W,w,p;
return{headerTitle:(d=M.headerTitle)==null?void 0:d.call(M),headerSubtitle:(N=M.headerSubtitle)==null?void 0:N.call(M),headerActionHeader:M.headerActionHeader,footerPrimaryButton:M.footerPrimaryButton,footerSecondaryButton:M.footerSecondaryButton,footerButtonType:(R=M.footerButtonType)==null?void 0:R.call(M),footerLeadingLabel:(X=M.footerLeadingLabel)==null?void 0:X.call(M),footerTrailingLabel:(A=M.footerTrailingLabel)==null?void 0:A.call(M),shouldShowIcons:(l=M.shouldShowIcons)==null?void 0:l.call(M),
skipContentClick:(k=M.skipContentClick)==null?void 0:k.call(M),additionalClassName:(T=M.additionalClassName)==null?void 0:T.call(M),onClosedCallback:M.onClosedCallback,focusOnClose:(W=M.focusOnClose)==null?void 0:W.call(M),isDisabled:(w=M.isDisabled)==null?void 0:w.call(M),disabledCommand:(p=M.disabledCommand)==null?void 0:p.call(M),headerFn:M.headerFn,contentFn:M.contentFn,footerFn:M.footerFn,hasHeaderFn:M.hasHeaderFn(),hasContentFn:M.hasContentFn(),hasFooterFn:M.hasFooterFn(),hasFooterPrimaryButton:M.hasFooterPrimaryButton(),
hasFooterSecondaryButton:M.hasFooterSecondaryButton(),hasHeaderActionHeader:M.hasHeaderActionHeader()}},pNJ=function(M){switch(M){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";
case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}},mXb=function(M){switch(M){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";
case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}},hre=function(M){switch(M){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";
case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}},QjP=function(M,d,N){d.forEach(function(R){_.FD(_.h().resolve(_.Vs),R)});
_.ZI(M,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",N])},O34=function(M,d,N,R){var X=_.q(N,_.SH).commandLifeCycleConfig;
X&&X.onStartCommand&&_.Ni(M,[X.onStartCommand],d);_.LQ(d);var A=_.Pi.instance;A&&_.oq(A,N)?_.rT(A,N,R).then(function(l){if(!l||(l==null?0:l.error))return l=_.q(N,_.SH).serializedTransactionFlowLoggingParams,_.t9(d),_.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",l));_.t9(d);return{data:l}}).then(function(l){_.t9(d);
qO$(l.data);var k=l.data.command;k&&_.Ni(M,[k],d);k=I3q(N,l.data);if(!k){var T=l.data;l=!1;if(T&&T.command&&_.q(T.command,_.XP)){var W;T=((W=_.q(T.command,_.XP))==null?void 0:W.commands)||[];for(W=0;W<T.length;W++)if(_.q(T[W],_.AK3)){l=!0;break}}l||_.Tn('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!k&&X&&X.onSuccessCommand?_.Ni(M,[X.onSuccessCommand],d):k&&X&&X.onFailureCommand&&_.Ni(M,[X.onFailureCommand],d)},function(){_.t9(d);
X&&X.onFailureCommand&&_.Ni(M,[X.onFailureCommand],d);vBe(N)}):_.qZ(Error("zl"),"ERROR")},jjr=function(M,d,N){var R=[d];
N&&R.push(N);return _.dU(M,R).then(function(X){var A=_.q(d,_.SH).serializedTransactionFlowLoggingParams,l=X.data,k=I3q(d,l);k?X=_.cl(new Gm(k,A)):qO$(l);return X},function(){var X=_.q(d,_.SH).serializedTransactionFlowLoggingParams;
vBe(d);return _.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",X))})},I3q=function(M,d){M=_.q(M,_.SH).serializedTransactionFlowLoggingParams;
var N=null;switch(d.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":N="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":N="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":N="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}N?_.K3(N,M):Har(M);return N},vBe=function(M){_.K3("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.q(M,_.SH).serializedTransactionFlowLoggingParams)},
qO$=function(M){if(M.trackingParams){var d=_.Ou(),N=_.vl();
d&&N&&_.c1(d,N,_.At(M.trackingParams))}},sjG=function(M,d,N){var R=_.Pi.instance,X=_.U7A(_.rK("YPC_MB_URL")),A=(new _.Gzi).init(),l=_.aa2(),k=_.q(N,_.Nbo).languageCode;
k===void 0?_.qZ(Error("Ei"),"ERROR"):_.qc([A,X]).then(function(){var T={ctk:payments.business.integration.ClientTokenFactory.createClientToken(k,l)};R&&_.oq(R,N)?_.rT(R,N,T).then(function(W){return{data:W}}).then(function(W){_.YP(d,"yt-service-request-completed",W);
W.code!=="ERROR"&&(W=W.data.command)&&_.Ni(M,[W],d)}):_.qZ(Error("zl"),"ERROR")})},r2r=function(M,d,N,R){var X=_.Pi.instance;
X&&_.oq(X,N)?_.rT(X,N,R).then(function(A){return{data:A}}).then(function(A){PxG(M,d,N,A)},function(){oBq(N)}):(X=_.h().resolve(_.CF(_.Tu)))&&X.requestDataForServiceEndpoint(N,R).then(function(A){PxG(M,d,N,A)},function(){oBq(N)})},PxG=function(M,d,N,R){_.YP(d,"yt-service-request-completed",R);
if(R.code&&R.code=="ERROR")oBq(N);else{(R=R.data.commands)&&_.Ni(M,R,d);var X;(M=(X=_.q(N,_.lpd))==null?void 0:X.serializedYpcPauseFlowLoggingParams)&&M&&_.hH("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",M)}},oBq=function(M){var d;
(M=(d=_.q(M,_.lpd))==null?void 0:d.serializedYpcPauseFlowLoggingParams)&&M&&_.hH("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},J2T=function(M,d,N){var R=_.Pi.instance;
R&&_.oq(R,N)?_.rT(R,N).then(function(X){return{data:X}}).then(function(X){Kld(M,d,N,X)},function(){y2b(N)}):(R=_.h().resolve(_.CF(_.Tu)))&&R.requestDataForServiceEndpoint(N).then(function(X){Kld(M,d,N,X)},function(){y2b(N)})},Kld=function(M,d,N,R){_.YP(d,"yt-service-request-completed",R);
R.code&&R.code=="ERROR"?y2b(N):((R=R.data.commands)&&_.Ni(M,R,d),(M=_.q(N,_.$lz).serializedYpcResumeFlowLoggingParams)&&M&&_.hH("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",M))},y2b=function(M){(M=_.q(M,_.$lz).serializedYpcResumeFlowLoggingParams)&&M&&_.hH("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},c2i=function(M){M=M===void 0?{}:M;
_.h().resolve(_.Qod).showFeedbackDialog(M.customProductData,M.feedbackContent,M.onFeedbackSubmitted,M.bucket)},SOe=function(M){M=M===void 0?{}:M;
_.h().resolve(_.Qod).showHelpDialog(M.helpContext,M.articleId,M.productData)},zrY=function(){SOe()},b34=function(){c2i()},H3C=function(M,d,N){var R,X,A,l,k,T,W;
return _.B(function(w){switch(w.nextAddress){case 1:R=_.q(M,erD);if((X=R)==null?0:X.productId){T={productId:R.productId,bucket:R.bucket,enableAnonymousFeedback:(k=R.enableAnonymousFeedback)!=null?k:!0,allowNonLoggedInFeedback:!0};W={feedbackChoice:N.feedbackChoice};if(!_.Q("web_collect_offline_state")){w.jumpTo(8);break}_.Mv(w,9);return _.D(w,Cvr(W),11)}l={bucket:(A=R)==null?void 0:A.bucket};if(!_.Q("web_collect_offline_state")){w.jumpTo(4);break}l.customProductData={};_.Mv(w,5);return _.D(w,Cvr(l.customProductData),
7);case 7:_.cJ(w,4);break;case 5:_.Fg(w);case 4:c2i(l);w.jumpTo(0);break;case 11:_.cJ(w,8);break;case 9:_.Fg(w);case 8:_.ijN(W),_.nxp("GFEEDBACK",W),R.productId==="5295751"&&(W.client_attestation=Number(_.rK("CATSTAT",0))),R.productId==="5295751"&&(W.client_time=Date.now()/1E3/3600),R.productId==="5295751"&&(W.original_playback_id=_.GSV||""),_.S1d(T,W),_.Vy(w)}})},nBC=function(M){if(M=_.q(M,_.lCr)){var d={bucket:M.bucketIdentifier};
M.additionalDatas&&(d.customProductData={},M.additionalDatas.forEach(function(N){if(N=N.userFeedbackEndpointProductSpecificValueData)d.customProductData[N.key]=N.value}));
c2i(d)}},i3P=function(M){var d=_.ch.getInstance();
var N=_.le("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var R=_.le("DELETE",void 0,"Delete"),X=_.le("CANCEL",void 0,"Cancel");N=R1P(N,void 0,R,X,{signal:"DELETE_ALL_DOWNLOADS"});_.Kx(d,[{openPopupAction:N}],M)},Lle=function(){return _.B(function(M){return M.nextAddress==1?_.D(M,_.h().resolve(_.il),2):_.D(M,f3T(),0)})},t2Y=function(M){var d,N;
return _.B(function(R){return R.nextAddress==1?(N=(d=_.q(M,_.Ka))==null?void 0:d.targetId)?_.D(R,_.h().resolve(_.il),3):R.jumpTo(0):_.D(R,_.h().resolve(_.ni).deleteVideo(N),0)})},a3T=function(M){var d,N;
return _.B(function(R){return R.nextAddress==1?(N=(d=_.q(M,_.Ka))==null?void 0:d.targetId)?_.D(R,_.h().resolve(_.il),3):R.jumpTo(0):_.D(R,GuP(_.h().resolve(_.ni),N),0)})},u8b=function(M){var d,N;
return _.B(function(R){return(N=(d=_.q(M,_.Ka))==null?void 0:d.targetId)?_.D(R,UXP(N),0):R.jumpTo(0)})},xXC=function(){_.Q("kevlar_woffle_refresh_dl_load_killswitch")||Cx4()},Z3d=function(){_.Q("kevlar_woffle")&&_.sO.instance&&YOr()},MGG=function(M){var d;
if((d=_.q(M,_.NH))==null||!d.videoId)return!1;EBC(_.h().resolve(_.ni),_.q(M,_.NH),M.clickTrackingParams);return!0},N4Y=function(M){var d;
if((d=_.q(M,_.R0))==null||!d.playlistId)return!1;dSJ(_.h().resolve(_.ni),_.q(M,_.R0),M.clickTrackingParams);return!0},Xu9=function(M){var d=_.q(M,_.Bmz);
(d==null?void 0:d.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(d==null?void 0:d.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||R7i(_.h().resolve(_.ni),_.q(M,_.Bmz))},AyP=function(M){M=_.q(M,_.eig);
var d;(M==null?0:(d=M.actions)==null?0:d.length)&&F3b(M)},$SC=function(M){var d,N;
return _.B(function(R){d=_.q(M,VGY);return(N=d)!=null&&N.localWatchHistoryCommandType?_.D(R,lcq(d),0):R.return()})},B4i=function(M){setTimeout(function(){requestAnimationFrame(M)},80)},k3q=function(M){return Object.entries(M).map(function(d){return d.join(":")}).join(";")},DS$=function(M){var d,N,R;
_.B(function(X){if(X.nextAddress==1)return _.D(X,T4e(),2);d=X.yieldResult;N=_.YQ.instance;switch(d){case "granted":R=M.getLocationCommand;break;case "denied":R=M.openDeniedDialogAction;break;case "prompt":R=M.openCollectionDialogAction;break;default:R=M.openCollectionDialogAction}R&&N.resolveCommand(R);_.Vy(X)})},T4e=function(){var M,d;
return _.B(function(N){if(N.nextAddress==1)return M="prompt",navigator.permissions?_.D(N,navigator.permissions.query({name:"geolocation"}),3):N.jumpTo(2);N.nextAddress!=2&&(d=N.yieldResult,M=d.state);return N.return(M)})},W3P=function(){_.B(function(M){return _.D(M,_.gQT(),0)})},wur=function(){var M,d,N;
return _.B(function(R){if(R.nextAddress==1)return M=_.h().resolve(_.D3),M?_.D(R,_.rT(M,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.vh(Error("Cl")),R.return(void 0));if(d=R.yieldResult){if(d.errorMetadata)return _.vh(Error("Dl`"+d.errorMetadata.status+"`"+d.error)),R.return(void 0);N=d.datasyncIds;_.hsV=N.length;return R.return(N)}_.vh(Error("El"));return R.return(void 0)})},pu9=function(){wur().then(function(M){M&&(qIT(M),iaq(M),kiT(M),YDP(M))})},mS$=function(M){_.IQ.addLowPriorityJob(function(){var d,
N,R,X,A;
return _.B(function(l){switch(l.nextAddress){case 1:if(_.Q("ytidb_clear_optimizations_killswitch")){l.jumpTo(2);break}d=_.Ds("clear");if(d.startsWith("V")&&d.endsWith("||")){var k=[d];qIT(k);iaq(k);kiT(k);YDP(k);return l.return()}N=TLT();R=Zaq();return _.D(l,fSD(),3);case 3:return X=l.yieldResult,_.D(l,Ixe(),4);case 4:if(A=l.yieldResult,!(N||R||X||A))return l.return();case 2:M.isNetworkAvailable()?pu9():M.listenOnce("publicytnetworkstatus-online",pu9),_.Vy(l)}})})},aY=function(M){M={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.ep(M)}}}};_.YQ.instance&&_.YQ.instance.resolveCommand(M)},h7e=function(M){if(M){var d=_.Nx();
_.dm(d,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var N=238708;break;case 2:N=238715;break;case 3:N=238710;break;case 6:N=238709}N&&(M=_.dk(d,{veType:N}))&&_.XD(d,M)}},QTY=function(M){if(M){var d=_.Nx();
_.dm(d,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var N=238714;break;case 2:N=238711;break;case 8:N=238709;break;case 7:N=238713;break;case 3:case 4:case 5:N=238712}N&&(M=_.dk(d,{veType:N}))&&_.XD(d,M)}},qHD=function(M){switch(M.latencyType){case 0:_.ID("consent_primitive_flow");
_.v1("cpit",M.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.v1("cpist",M.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.v1("cprtif",M.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.v1("cprtli",M.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.v1("cprt",M.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.v1("cpdt",M.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.v1("cpjct",M.timestampEpochMillis,"consent_primitive_flow")}},
yyr=function(M,d){var N,R,X,A,l,k,T,W,w,p,m,I,O,y,c,e,t,C,U,Fi;
return _.B(function(Y){switch(Y.nextAddress){case 1:_.Mv(Y,2);(R=(N=_.q(M,Icd))==null?void 0:N.serializedConsentRequest)||(R=(X=_.q(M,vQC))==null?void 0:X.serializedConsentRequest);R&&(A=O6r(_.lL(R)));if(A===void 0)return Y.return();l=jTG(A);l.latencyCallback=qHD;d&&sTb(l,function(){d.then(function($i){$i.pauseVideo();(new PuC).increment()})});
return((k=_.q(M,Icd))==null?void 0:k.consentAction)==="CONSENT_ACTION_PREWARM"||((T=_.q(M,vQC))==null?void 0:T.consentAction)==="CONSENT_ACTION_PREWARM"?_.D(Y,oQe(l),5):_.D(Y,ryC(l),6);case 6:W=Y.yieldResult;w=_.qn(W,UE);if(w===1){if(((p=_.c_(W,uA,1,UE))==null?void 0:_.K5(p,1))===1||((m=_.c_(W,uA,1,UE))==null?void 0:_.K5(m,1))===2||((I=_.c_(W,uA,1,UE))==null?void 0:_.K5(I,1))===3)_.q(M,vQC)?aY(_.le("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
aY(_.le("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));h7e((O=_.c_(W,uA,1,UE))==null?void 0:_.K5(O,1),_.Uq(W,K3i,3,_.uC()))}else w===2?(((y=Co(W))==null?void 0:_.K5(y,1))===5?_.q(M,vQC)?aY(_.le("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):aY(_.le("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((c=Co(W))==null?void 0:_.K5(c,1))===1||((e=Co(W))==null?void 0:_.K5(e,1))===4?aY(_.le("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((t=Co(W))==null?void 0:_.K5(t,1))===7&&((C=A)==null?void 0:(U=_.uk(C,xo,4))==null?void 0:_.K5(U,4))!==1&&aY(_.le("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),QTY((Fi=Co(W))==null?void 0:_.K5(Fi,1))):aY(_.le("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));Y.jumpTo(5);break;case 5:_.cJ(Y,0);break;case 2:_.Fg(Y),aY(_.le("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Vy(Y)}})},cyP=function(){if(!Jy$.has("Worker")){Jy$.set("Worker",
!0);
var M={api:"BROWSER_API_WEB_WORKER"};M.available="Worker"in window?!0:!1;_.hQ("apiTest",M)}},SH$=function(M){return typeof M==="undefined"?"-1":String(Math.ceil(M/1048576))},H6J=function(M,d){z7i(new b6P(_.q(d,e7b).addToken,_.q(d,e7b).commonToken)).then(function(){_.YP(M,"yt-invoke-instrument-manager-action-completed")},function(N){_.YP(M,"yt-invoke-instrument-manager-action-error",N)})},nQT={},i6Y=function(M){return _.jJj(nQT,M,function(){return Gp(_.QoZ,M)>=0})},fcJ=function(M){return _.H_(M)},
L3r=function(M){var d=1;
M=M.split(":");for(var N=[];d>0&&M.length;)N.push(M.shift()),d--;M.length&&N.push(M.join(":"));return N},tGJ=function(M,d){d=M.aspectRatio()<=d.aspectRatio()?d.width/M.width:d.height/M.height;
M.scale(d)},G3C=function(M,d){d=M.aspectRatio()>d.aspectRatio()?d.width/M.width:d.height/M.height;
return M.scale(d)},acC=function(M){var d=new _.AY;
return _.SS(d,11,M)},USY=function(M){var d={};
M=M.getAllResponseHeaders().split("\r\n");for(var N=0;N<M.length;N++)if(!_.ki(M[N])){var R=L3r(M[N]),X=R[0];R=R[1];if(typeof R==="string"){R=R.trim();var A=d[X]||[];d[X]=A;A.push(R)}}return _.wF.map(d,function(l){return l.join(", ")})},FH=function(M,d){return M.JSC$7680_xhr_?M.JSC$7680_xhr_.getResponseHeader(d):null},Yo=function(M,d,N){Array.isArray(N)||(N=[String(N)]);
_.wgd(M.JSC$7917_queryData_,d,N);return M},YOr=function(){var M=_.sO.instance;
_.B(function(d){return M.deferredInstallPrompt?_.D(d,M.deferredInstallPrompt.prompt(),0):d.jumpTo(0)})},uZb=function(M,d,N){if(_.CZ(M))_.Hy(M,d,N);
else for(M=_.vvC(M);;){var R=M.next();if(R.done)break;d.call(N,R.value,void 0,M)}},CuT={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}"]},GrD,aHi,Ux9,uQY,CIP,xx9,Yz$,ZqG,EjP,UXP,GuP,f3T,MmC,dNY,NTJ,RuJ,Xid,dSJ,EBC,FdP,AI4,VmJ,Cx4,R7i,lMi,F3b,$N9,lcq,BTJ,kxY,TTq,DND,gFD,Wdd,wie,Rb,piP,mNq,
dr4,ZbY,huT,X0,F0,A3,VV,Qq4,qLT,IMe,vF4,OOJ,jqP,sqi,PGr,oFP,rID;CuT={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 xSi=function(M,d){var N=[];uZb(d,function(R){try{var X=_.uM.prototype.getWrapper.call(this,R,!0)}catch(A){if(A=="Storage: Invalid value was encountered")return;throw A;}X===void 0?N.push(R):_.ISd(X)&&N.push(R)},M);
return N},YH$=function(M,d){xSi(M,d).forEach(function(N){_.uM.prototype.remove.call(this,N)},M)},Z69=function(M){var d=_.nG;
d._minimumZ=Math.max(d._minimumZ,M)},EQ4=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],MCb=function(M,d){_.tw(M.ri);M.ri=d},dx$=function(M,d,N,R){M.setState(5);
var X=!!M.vdG&&EQ4.includes(_.GN(M.vdG)||"");try{var A=new _.K2({program:d,globalName:N,zi:{disable:!_.Q("att_web_record_metrics")||!_.Q("att_skip_metrics_for_cookieless_domains_ks")&&X,dN:"aGIf"}});A.lgG.then(function(){M.setState(6);R&&R(d)});
MCb(M,A)}catch(l){M.setState(7),l instanceof Error&&_.vh(l)}},NkG=function(M,d,N,R,X,A){var l=l===void 0?"trayride":l;
N?(M.setState(2),_.rB(N,function(){if(window[l])dx$(M,R,l,X);else{M.setState(3);var k=_.M8S(N),T=document.getElementById(k);T&&(_.F36(k),T.parentNode.removeChild(T));_.vh(new _.WJ("BL:ULB",N))}},A)):d?(A=_.Vf("SCRIPT"),d instanceof _.KS?_.cQ(A,d):A.textContent=d,A.nonce=_.rH(document),document.head.appendChild(A),document.head.removeChild(A),window[l]?dx$(M,R,l,X):(M.setState(4),_.vh(new _.WJ("BL:ULBJ")))):_.vh(new _.WJ("BL:ULV"))},Rpi=function(){this.state=1;
this.ri=null;this.vdG=void 0};
_.F=Rpi.prototype;_.F.initialize=function(M,d,N,R){this.vdG=R;if(M.program){var X;R=(X=M.interpreterUrl)!=null?X:null;if(M.interpreterSafeScript)X=_.OhZ(M.interpreterSafeScript);else{var A;X=(A=M.interpreterScript)!=null?A:null}M.interpreterSafeUrl&&(R=_.vf(M.interpreterSafeUrl).toString());NkG(this,X,R,M.program,d,N)}else _.vh(Error("lf"))};
_.F.isInitialized=function(){return!!this.ri};
_.F.getState=function(){return this.state};
_.F.isLoading=function(){return this.state===2};
_.F.invoke=function(M){M=M===void 0?{}:M;var d;this.ri?d=_.Fiz(this.ri,{oN:M}):d=null;return d};
_.F.dispose=function(){MCb(this,null);this.setState(8)};
_.F.setState=function(M){this.state=M};
var XzY=function(M,d){return M.ri.snapshot(d)},FXe=function(M,d){var N=_.ZR("botguard_async_snapshot_timeout_ms",3E3);
d=d===void 0?{}:d;N=N===void 0?3E3:N;return M.ri?new Promise(function(R,X){var A=!1,l=_.IQ.addJob(function(){A=!0;X(Error("mf"))},1,N);
M.ri?XzY(M,{oN:d}).then(function(k){_.IQ.cancelJob(l);A||R(k)}).catch(function(k){_.IQ.cancelJob(l);
A||X(k)}):(_.IQ.cancelJob(l),R(null))}):Promise.resolve(null)},At4=["att/log"],VCe;
VCe={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var lHY={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},$xY=function(M,d){return _.$$(M,{mode:"readwrite",enableRetries:!0},function(N){return _.fAZ(N,d,"settingEntity")})},BkT=function(M,d,N){return _.$$(M,{mode:"readonly",
enableRetries:!0},function(R){return _.yhC(R,d,N)})},krP=function(M){if(!M.storage)return!1;
a:{if(M.storage){try{var d=M.storage.get("TLPQtimestamp")}catch(N){}M=Number(d);if(!isNaN(M))break a}M=void 0}return M?Date.now()-M<864E5:!1},TkT=function(M){if(M.storage){try{var d=M.storage.get("TLPQindex")}catch(N){}M=Number(d);
if(!isNaN(M))return M}},DxG=function(M,d){M.queueProxy&&d.forEach(function(N){if(N.videoId&&N.trackingParams&&M.queueProxy instanceof _.j4){var R=_.Ou();
M.queueProxy.attributionData.set(N.videoId,{enqueueingVe:_.At(N.trackingParams).getAsJson(),enqueueingCsn:R?R:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Gs)()).toString()})}})},gjD=function(M){var d=_.B$L(M);
d!=M.currentSnapState_&&(M.currentSnapState_=d,M.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Ze=function(M){this.JSC$10850_networkManager_=M;
this.partCallbacks_=[]};
Ze.prototype.getCacheKeyForEndpoint=function(M){return _.vyZ(M,!1)};
Ze.prototype.onPartsCallback_=function(M){this.partCallbacks_.forEach(function(d){M&&d(M)})};
var EE=function(M,d,N){Ze.call(this,M);this.player_=d;this.autoplayData_=N};
_.v(EE,Ze);EE.prototype.getCacheKeyForEndpoint=function(M){return _.vyZ(M,!!this.autoplayData_)};
EE.prototype.getTempData=function(M,d){d=d.timeBeforeNextVideo;M={itct:M.clickTrackingParams,lact:_.aQ(),pbis:d,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(M.autonav=1);return M};
EE.prototype.getXhrParams=function(M){return Object.assign({pbj:"prefetch"},M)};
EE.prototype.getParams=function(M){M={frags:M.fragmentsRequested.join(",")};_.Q("kevlar_droppable_prefetchable_requests")&&(M.prefetch=1);return M};
var WXY=function(M){M.playerEvents_.forEach(function(d){M.player.removeEventListener(d.eventName,d.callback)});
M.playerEvents_.length=0},MP=function(M,d,N){this.player=M;
this.JSC$10860_taskManager=d;this.prefetchDelay=N;this.completionResolver_=null;this.playerEvents_=[]};
MP.prototype.start=function(){var M=this;this.completionResolver_=_.KO();_.Ie(this.completionResolver_.promise,function(){WXY(M);M.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var wzq=function(M,d,N){M.player.addEventListener(d,N);M.playerEvents_.push({eventName:d,callback:N})},pzY={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},mx9={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},hpG=function(M,d,N){MP.call(this,M,d,N);this.cueId_="playbackTrigger-"+Math.random()};
_.v(hpG,MP);
hpG.prototype.prepareTrigger=function(M){var d=this,N=this.player.getDuration(),R=this.player.getVideoData(),X=R.isLive&&R.hasProgressBarBoundaries;if(X&&R.progressBarEndPositionUtcTimeMillis){var A=R.progressBarEndPositionUtcTimeMillis/1E3;isNaN(A)||(N=A)}var l=0;this.prefetchDelay>=0?X?R.progressBarStartPositionUtcTimeMillis&&(R=R.progressBarStartPositionUtcTimeMillis/1E3,isNaN(R)||(l=R+this.prefetchDelay)):l=this.prefetchDelay:l=N+this.prefetchDelay;X?this.player.addUtcCueRange(this.cueId_,l,N):
this.player.addCueRange(this.cueId_,l,N);_.Ie(M.promise,function(){d.player.removeCueRange(d.cueId_)});
wzq(this,"onCueRangeEnter",function(k){k==d.cueId_&&M.resolve(N-l)})};
var QAi=function(M,d){M.fragmentConfiguration_[d].requiredKeys.every(function(N){return!!M.prefetchedData_[N]})&&(M.validatedFragments_.push(d),d=M.missingFragments_.indexOf(d),d!==-1&&M.missingFragments_.splice(d,1))},qzY=function(M){M.prefetchedFragments_.forEach(function(d){QAi(M,d)})},IHd=function(M,d,N){this.pageFragments_=M;
this.prefetchedFragments_=d;this.fragmentConfiguration_=mx9;this.prefetchedData_=N;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;qzY(this)},vjT=function(){},Oqr=function(M){this.JSC$10874_playlistManager_=M};
_.v(Oqr,vjT);Oqr.prototype.getPrefetchEndpoint=function(){return this.JSC$10874_playlistManager_.getAutoplayEndpoint()};
var jAG=function(M){this.autonavEndpoints_=M};
_.v(jAG,vjT);jAG.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var sAD=function(M,d,N,R,X){this.autonavEndpoints=M;this.foregroundTrigger=d;this.backgroundTrigger=N;this.pageType=R;this.isInPlaylist=X},PIC=function(M,d){if(M.webPrefetchData&&M.webPrefetchData.navigationEndpoints&&M.webPrefetchData.navigationEndpoints.length){M=M.webPrefetchData.navigationEndpoints;
var N=_.q(M[0],_.nL);if(N.watchEndpointSupportedPrefetchConfig&&N.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var R=N.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;N=R.playbackRelativeSecondsPrefetchCondition;N=typeof N==="number"&&Math.abs(N)<d.videoDuration?N:void 0;R=R.countdownUiRelativeSecondsPrefetchCondition;R=typeof R!=="number"||_.Q("prefetch_job_config_cleanup_ks")&&d.inPlaylist?void 0:R;if(typeof R==="number")return new sAD(M,d.makeUpNextTrigger(R),d.makePlaybackTrigger(R),
"watch",d.inPlaylist);if(typeof N==="number")return new sAD(M,d.makePlaybackTrigger(N),null,"watch",d.inPlaylist)}}},ojT=function(M){return M.prefetchJobConfig_.backgroundTrigger?_.JA(_.FEj)()==0?M.prefetchJobConfig_.backgroundTrigger:M.prefetchJobConfig_.foregroundTrigger:M.prefetchJobConfig_.foregroundTrigger},rti=function(M){_.p2(document,"visibilitychange",M.onVisibilityChange_,!1,M)},dR=function(M){Ze.call(this,M)};
_.v(dR,Ze);dR.prototype.getCacheKeyForEndpoint=function(M){return Ze.prototype.getCacheKeyForEndpoint.call(this,M)};
dR.prototype.getTempData=function(){return{}};
dR.prototype.getXhrParams=function(M){return M};
dR.prototype.getParams=function(){return{}};
var KXP=function(M,d,N){var R=M.prefetchDelay*1E3;if(Math.abs(R)>d)N.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var X=R,A=d-R;R<0&&(X=d+R,A=Math.abs(R));var l=M.JSC$10860_taskManager.addJob(function(){N.resolve(A/1E3)},10,X);
N.promise.thenCatch(function(){M.JSC$10860_taskManager.cancelJob(l)})}},ytY=function(M,d,N){MP.call(this,M,d,N)};
_.v(ytY,MP);ytY.prototype.prepareTrigger=function(M){var d=this;wzq(this,"onAutonavCoundownStarted",function(N){KXP(d,N,M)})};
var Jt9=function(M){M.pendingPrefetchJob_&&(M.pendingPrefetchJob_.cancel(),M.pendingPrefetchJob_=null)},ctP=function(M,d,N){if(!M.triggeredTargets.has(d)){var R=_.x0I(M,d);
R.action=N;_.u4o(M,d,R)}},Sz4=function(M){_.nJC();
_.p3Z("cpt")&&_.vh(Error("mh"));_.Np.requestAnimationFrame(function(){_.Np.setTimeout(function(){_.v1("cpt");var d=_.sN("vpl"),N=_.sN("cpt");d&&N&&_.v1("ol",Math.max(d,N))})});
try{_.v1("fr_s"),M()}catch(d){_.qZ(d)}_.Np.requestAnimationFrame(function(){_.v1("bcp")})},zpd=function(M,d){M.serviceEndpointHandlers.push(d)},bqi=function(M,d){d=M.pendingPages_.indexOf(d);
d>-1&&M.pendingPages_.splice(d,1)},epP=function(M,d){var N=_.Mod.indexOf(d);
N>-1&&_.Mod.splice(N,1);M.targetPage_==d?(M.abort(),_.NNV(M)):bqi(M,d)},HqY=function(M,d,N,R){d={challenge:d};
N&&(d.webResponse=N);return _.Pn(M.innertubeTransportService,d,_.fh(At4),R)},njD=function(M,d,N){if(!d.challenge)throw Error("oi");
if(d.botguardData&&d.botguardData.program){var R=new Rpi;R.initialize(d.botguardData,function(){FXe(R,{atr_challenge:d.challenge}).then(function(X){if(!X)throw Error("pi");return HqY(M,d.challenge,X,N)}).catch(function(X){_.vh(X);
return HqY(M,d.challenge,void 0,N)})},void 0)}else HqY(M,d.challenge,void 0,N)},iqJ=function(M,d,N){var R={};
d.ids&&(R.ids=[].concat(_.wu(d.ids)));d.engagementType&&(R.engagementType=d.engagementType);return _.Pn(M.innertubeTransportService,R,_.fh(_.CWC),N).then(function(X){if(!X)throw new _.WJ("GetAttestationChallenge returned falsy");njD(M,X,N)}).thenCatch(function(X){_.qZ(X)})},fHb=function(M,d,N){return new _.Xy(function(R,X){var A;
return _.B(function(l){if(l.nextAddress==1){var k=d.engagementType,T=d.ids,W={};T=_.V(T!=null?T:[]);for(var w=T.next();!w.done;w=T.next())w=w.value,w.encryptedVideoId?W.encryptedVideoId=w.encryptedVideoId:w.externalChannelId?W.externalChannelId=w.externalChannelId:w.commentId?W.commentId=w.commentId:w.externalOwnerId?W.externalOwnerId=w.externalOwnerId:w.artistId?W.artistId=w.artistId:w.playlistId?W.playlistId=w.playlistId:w.externalPostId?W.externalPostId=w.externalPostId:w.shareId&&(W.shareId=w.shareId);
return _.D(l,Nc4(k,W),2)}A=l.yieldResult;if(!A.challenge)return _.vh(Error("qi")),iqJ(M,d,N).then(R,X),l.return();k=A;W={challenge:k.challenge};W.webResponse=k.webResponse;W.engagementType=d.engagementType;W.ids=d.ids;_.Pn(M.innertubeTransportService,W,_.fh(At4),N).then(R,X);_.Vy(l)})})},XD$=function(M,d){var N,R,X,A;
_.B(function(l){if(l.nextAddress==1){N=_.q(d,_.ZeV);if(!(N&&N.listId&&M.response&&M.response.playingVideoId)||M.listId!==N.listId)return l.return();M.index===void 0&&(M.index=0);return _.D(l,_.TVL(M.JSC$10686_playlistNetworkManager,N.listId,M.index,M.response.playingVideoId),2)}R=l.yieldResult;if(!R)return l.return();X=R.playlistId;A=R.playlistPanelRenderer;M.setPlaylistData(X,A,R.autoplayRenderer);_.Vy(l)})},LXq=function(M,d,N){var R=M.getParams(N),X=_.epj(d,R),A=M.getTempData(d,N);
A.endpoint=JSON.stringify(d);_.Q("enable_unknown_lact_fix_on_html5")&&(_.h().resolve(_.gT),A.lact=_.aQ());var l={headers:{"X-YouTube-STS":_.rK("STS"),"x-youtube-csoc":1}};_.tX(X,A);return new _.Xy(function(k,T){var W=M.getXhrParams(R),w;_.Q("kevlar_cache_on_ttl_player")&&(w=_.E9.instance);w&&_.sZL(w,d)?_.Std(w,d,A,window.location.href).then(function(p){p?k(p):T()},T):_.Zrt(M.JSC$10850_networkManager_,d,W,M.onPartsCallback_.bind(M),l).then(function(p){p?k(p):T()},T)})},tCY=function(M,d){M.triggerPromise_=
d.start();
M.triggerPromise_.then(function(N){var R=M.prefetchEndpointProvider_.getPrefetchEndpoint();if(R){var X=pzY[M.prefetchJobConfig_.pageType].prefetchedFragments;M.prefetchRequestPromise_=LXq(M.JSC$10886_networkPrefetchRequest_,R,{fragmentsRequested:X,timeBeforeNextVideo:N});M.prefetchResponseCacheKey_=M.JSC$10886_networkPrefetchRequest_.getCacheKeyForEndpoint(R);rti(M);M.prefetchRequestPromise_.then(function(A){M.storePrefetchedDataCallback_(M.prefetchResponseCacheKey_,A);if(_.Q("web_prefetch_preload_video")&&
X.length===1&&X[0]==="pl"&&A&&!A.playerAds&&!A.adPlacements){var l=_.q(R,_.$B),k=l!=null,T={raw_player_response:A,watch_endpoint:l};(A=_.h().resolve(k?_.C1V:_.aq))&&R&&A.then(function(W){k&&_.Q("web_queue_preload_video")?(T.prefer_gapless=!0,W.queueNextVideo(T)):W.preloadVideoByPlayerVars(T)})}})}})},NP=function(M,d,N,R){this.prefetchEndpointProvider_=M;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=d;this.prefetchJobConfig_=N;this.JSC$10886_networkPrefetchRequest_=R;this.prefetchResponseCacheKey_=null};
NP.prototype.enqueue=function(){this.triggerPromise_||(tCY(this,ojT(this)),_.lI(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
NP.prototype.resolve=function(){this.cancel()};
NP.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.");rti(this)};
NP.prototype.onVisibilityChange_=function(){var M=this;_.JA(_.FEj)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){M.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||tCY(this,ojT(this))};
GrD=function(M,d,N,R,X){d&&(d==null?0:d.videoId)&&N&&N.entries&&_.Q("kevlar_enable_shorts_prefetch_in_sequence")&&(Jt9(M),d=N.entries.map(function(A){var l;return(l=_.q(A.command,_.$B))==null?void 0:l.videoId}).indexOf(d.videoId),N=N.entries[d+1],N!=null&&N.command&&!_.q(N==null?void 0:N.command,_.ou)&&(R=new sAD([N.command],new hpG(R,_.IQ,1),null,"shorts",!1),M.pendingPrefetchJob_=new NP(new jAG(R.autonavEndpoints),function(){return!1},R,new dR(X)),M.pendingPrefetchJob_.enqueue()))};
aHi=function(M,d,N,R,X,A){var l=_.GQ.getInstance();if(!_.Q("block_all_player_prefetch_requests")){Jt9(M);var k=!!N.getPlaylistId(),T=N.getVideoData().isLive&&N.getVideoData().hasProgressBarBoundaries;if((l.getState()==2||k||T)&&(!N.getVideoData().isLive||T)){l={inPlaylist:k,videoDuration:N.getDuration(),makeUpNextTrigger:function(w){return new ytY(N,_.IQ,w)},
makePlaybackTrigger:function(w){return new hpG(N,_.IQ,w)}};
var W=PIC(d,l);W&&(M.pendingPrefetchJob_=new NP(W.isInPlaylist?new Oqr(X):new jAG(W.autonavEndpoints),function(w,p){p=new IHd(pzY[W.pageType].pageFragments,pzY[W.pageType].prefetchedFragments,p);return _.HdL(p)?(M.prefetchCache_.set(w,p),!0):!1},W,new EE(R,N,A,X)),M.pendingPrefetchJob_.enqueue())}}};
Ux9=function(){var M=_.cn();M.signals.parkOrScheduleJob(function(){var d=M.storage;if(d.storage)if(krP(d)){var N=d.getPlaylistId();d=TkT(d);N=!!N&&d!==void 0}else d.clear(),N=!1;else N=!1;if(N){N=M.pageManager.isOnWatch();a:{var R=M.storage;if(R.storage&&krP(R)&&(d=R.getPlaylistId(),R=TkT(R),d&&R!==void 0)){N={recoverPlaylistCommand:{listId:d,index:R,openMiniplayer:!N,openListPanel:N,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}N=void 0}N&&_.Kx(M.JSC$10686_actionRouter,[N],null)}},0,"ma")};
uQY=function(M,d,N,R,X,A){var l=_.Tx(7111);_.NT(M.JSC$15996_screenManager,l,A?_.At(A):void 0);_.XD(M.JSC$15996_screenManager,l,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:R,offlineId:d,offlineabilityFormatType:N,isDefaultFormatType:X==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:X}})};
CIP=function(M,d,N,R,X){var A,l,k,T,W;return _.B(function(w){if(w.nextAddress==1)return _.D(w,M.JSC$15996_playerApiPromise,2);A=w.yieldResult;uQY(M,d,N,"OFFLINE_OBJECT_TYPE_PLAYLIST",R,X);if(k=_.HWg[M.entityTypeMap.listEntityType])W={},l=(W[k]={maximumDownloadQuality:(T=N)!=null?T:void 0},W);return _.D(w,A.queueOfflineAction(d,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l),0)})};
xx9=function(M,d){var N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,M.JSC$15996_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3){N=l.yieldResult;if(!N)return _.vh(new _.WJ("PES is undefined")),l.return();R=_.Nr(d,"downloadStatusEntity");return _.D(l,BkT(N,R,"downloadStatusEntity"),3)}X=l.yieldResult;return l.return((A=X)==null?void 0:A.downloadState)})};
Yz$=function(M,d,N,R,X){var A,l,k,T,W,w;return _.B(function(p){switch(p.nextAddress){case 1:return _.D(p,M.JSC$15996_playerApiPromise,2);case 2:A=p.yieldResult;uQY(M,d,N,"OFFLINE_OBJECT_TYPE_VIDEO",R,X);if(k=_.HWg[M.entityTypeMap.singleEntityType])W={},l=(W[k]={maximumDownloadQuality:(T=N)!=null?T:void 0},W);return _.D(p,xx9(M,d),3);case 3:w=p.yieldResult;if(w!=="DOWNLOAD_STATE_USER_DELETED"){p.jumpTo(4);break}return _.D(p,M.deleteVideo(d),4);case 4:return _.D(p,A.queueOfflineAction(d,M.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l),0)}})};
ZqG=function(M,d,N,R,X){return _.B(function(A){return A.nextAddress==1?_.D(A,M.deleteVideo(d,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.D(A,Yz$(M,d,N,R,X),0)})};
EjP=function(M,d,N){var R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.JSC$15996_playerApiPromise,2);R=A.yieldResult;X=_.Nr(d,"mainVideoDownloadStateEntity");return _.D(A,R.updateDownloadState(X,N),0)})};
UXP=function(M){var d=_.h().resolve(_.ni);return _.B(function(N){if(N.nextAddress==1)return d.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&d.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?N.jumpTo(2):_.D(N,d.resumeVideoDownload(M),2);if(N.nextAddress!=4)return _.D(N,EjP(d,M,d.previousDownloadStateForVideo[M]),4);delete d.previousDownloadStateForVideo[M];_.Vy(N)})};
GuP=function(M,d){var N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$15996_playerApiPromise,2);N=R.yieldResult;return _.D(R,N.queueOfflineAction(d,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
f3T=function(){var M=_.h().resolve(_.ni),d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$15996_playerApiPromise,2);if(R.nextAddress!=3)return d=R.yieldResult,N={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.D(R,d.queueOfflineAction("!*$_ALL_ENTITIES_!*$",M.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",N),3);var X=M.JSC$15996_commandHandler,A=X.resolveCommand,l=_.le("DELETING_ALL",void 0,"Downloads are being deleted");
A.call(X,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ue(l)}},popupType:"TOAST"}});_.Vy(R)})};
MmC=function(M){var d,N;return _.B(function(R){if(R.nextAddress==1)return _.D(R,M.JSC$15996_prefStorage,2);d=R.yieldResult;return R.return((N=d)==null?void 0:N.get("sdois"))})};
dNY=function(M){var d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,M.JSC$15996_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){d=k.yieldResult;if(!d)return _.vh(new _.WJ("PES is undefined")),k.return();N=_.Nr("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.D(k,BkT(d,N,"settingEntity"),3)}R=k.yieldResult;return k.return((l=(X=R)==null?void 0:(A=X.settingOptionValue)==null?void 0:A.boolValue)!=null?l:!1)})};
NTJ=function(M,d){var N,R,X,A;return _.B(function(l){switch(l.nextAddress){case 1:return((N=d)==null?void 0:N.formatType)===void 0?l.return():_.D(l,M.JSC$15996_prefStorage,2);case 2:R=l.yieldResult;if(R===void 0)return l.return();if(((X=d)==null?void 0:X.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.D(l,R.set("lmqf",d.formatType),8);if(((A=d)==null?void 0:A.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){l.jumpTo(0);break}return _.D(l,R.set("lmqf",d.formatType),
6);case 6:return _.D(l,R.set("lmqflst",Math.floor((0,_.Gs)())),0);case 8:return _.D(l,R.remove("lmqflst"),0)}})};
RuJ=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15996_prefStorage,2);case 2:d=R.yieldResult;if(!d){R.jumpTo(3);break}return _.D(R,d.get("lmqflst"),4);case 4:if(N=R.yieldResult,N!==void 0)return R.return(N);case 3:return R.return(0)}})};
Xid=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,M.JSC$15996_prefStorage,2);case 2:d=R.yieldResult;if(d===void 0){R.jumpTo(3);break}return _.D(R,d.get("lmqf"),4);case 4:if(N=R.yieldResult,N!==void 0)return R.return(N);case 3:return R.return("SD")}})};
dSJ=function(M,d,N){var R,X,A,l,k,T,W,w;_.B(function(p){switch(p.nextAddress){case 1:return _.D(p,NTJ(M,(R=d)==null?void 0:R.actionParams),2);case 2:X=d.playlistId;if(!X)return p.return();if(d.action==="ACTION_ADD")return((l=d.actionParams)==null?0:l.formatType)?_.D(p,CIP(M,X,d.actionParams.formatType,(w=d.actionParams)==null?void 0:w.settingsAction,N),0):_.D(p,M.offlineWebClientEligibility,14);if(d.action==="ACTION_REMOVE_WITH_PROMPT"){var m=M.JSC$15996_commandHandler,I=m.resolveCommand,O=_.rK("INNERTUBE_CLIENT_NAME");
var y=O==="WEB_REMIX"?_.le("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.le("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var c=O==="WEB_REMIX"?[_.le("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];O=O==="WEB_REMIX"?_.le("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.le("DELETE",void 0,"Delete");var e=_.le("CANCEL",void 0,"Cancel");y=R1P(y,c,O,e,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:X});I.call(m,{openPopupAction:y});
return p.return()}if(d.action==="ACTION_REMOVE")return _.D(p,GuP(M,X),0);if(d.action!=="ACTION_SYNC"){p.jumpTo(0);break}return _.D(p,M.JSC$15996_playerApiPromise,9);case 9:return A=p.yieldResult,_.D(p,A.queueOfflineAction(X,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return k=p.yieldResult,_.D(p,Xid(M),15);case 15:return T=p.yieldResult,_.D(p,RuJ(M),16);case 16:W=p.yieldResult,d.onAddCommand&&M.JSC$15996_commandHandler.resolveCommand(d.onAddCommand,{form:{preferredFormatType:T,
offlineWebClientEligibility:k,lastOfflineQualitySettingsSavedMs:W.toString()}}),p.jumpTo(0)}})};
EBC=function(M,d,N){var R,X,A,l,k,T,W,w,p,m,I,O,y,c;_.B(function(e){switch(e.nextAddress){case 1:return _.D(e,NTJ(M,(R=d)==null?void 0:R.actionParams),2);case 2:X=d.videoId;if(!X)return e.return();if(d.action==="ACTION_REMOVE_WITH_PROMPT"){var t=M.JSC$15996_commandHandler,C=t.resolveCommand,U=_.rK("INNERTUBE_CLIENT_NAME");var Fi=U==="WEB_REMIX"?_.le("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.le("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Y=U==="WEB_REMIX"?[_.le("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];U=U==="WEB_REMIX"?_.le("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.le("DELETE",void 0,"Delete");var $i=_.le("CANCEL",void 0,"Cancel");Fi=R1P(Fi,Y,U,$i,{signal:"DELETE_DOWNLOAD",targetId:X});C.call(t,{openPopupAction:Fi});return e.return()}if(d.action==="ACTION_ADD")return((m=d.actionParams)==null?0:m.formatType)?_.D(e,Yz$(M,X,d.actionParams.formatType,(c=d.actionParams)==null?void 0:c.settingsAction,N),0):_.D(e,M.offlineWebClientEligibility,
23);if(d.action==="ACTION_RETRY")return _.D(e,Xid(M),19);if(d.action==="ACTION_PAUSE")return _.D(e,M.pauseVideoDownload(X),0);if(d.action==="ACTION_RESUME")return _.D(e,M.resumeVideoDownload(X),0);if(d.action!=="ACTION_REMOVE"){e.jumpTo(0);break}return _.D(e,xx9(M,X),13);case 13:return A=e.yieldResult,M.previousDownloadStateForVideo[X]=(l=A)!=null?l:"DOWNLOAD_STATE_UNKNOWN",_.D(e,EjP(M,X,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(M.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
M.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){e.jumpTo(15);break}return _.D(e,M.pauseVideoDownload(X),15);case 15:t=_.le("DELETED_VIDEO",void 0,"Video deleted from downloads.");C=_.le("UNDO_ACTION",void 0,"Undo");Fi=_.le("CLOSE",void 0,"Close");k={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ue(t),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ue(C),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:X}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:t+" "+C}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:X}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Fi}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};M.JSC$15996_commandHandler.resolveCommand(k);
e.jumpTo(0);break;case 19:T=e.yieldResult;T==="UNKNOWN_FORMAT_TYPE"&&(T="SD");W="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((w=d.actionParams)==null?0:w.formatType)T=d.actionParams.formatType,W=(p=d.actionParams)==null?void 0:p.settingsAction;return _.D(e,ZqG(M,X,T,W,N),20);case 20:return e.return();case 23:return I=e.yieldResult,_.D(e,Xid(M),24);case 24:return O=e.yieldResult,_.D(e,RuJ(M),25);case 25:y=e.yieldResult,d.onAddCommand&&M.JSC$15996_commandHandler.resolveCommand(d.onAddCommand,
{form:{preferredFormatType:O,offlineWebClientEligibility:I,lastOfflineQualitySettingsSavedMs:y.toString()}}),e.jumpTo(0)}})};
FdP=function(M,d){var N,R,X,A,l,k,T;return _.B(function(W){if(W.nextAddress==1)return _.D(W,M.JSC$15996_persistentStorePromiseAccessor(),2);N=W.yieldResult;if(!N)return _.vh(new _.WJ("PES is undefined")),W.return();if((R=d)==null||!R.settingItemId)return W.return();X=d;A=X.settingItemId;l=X.boolValue;k=_.Nr(A,"settingEntity");T={key:k,settingOptionValue:{boolValue:l}};return _.D(W,$xY(N,T),0)})};
AI4=function(M,d){var N,R,X,A,l,k,T;return _.B(function(W){switch(W.nextAddress){case 1:return _.D(W,M.JSC$15996_prefStorage,2);case 2:return N=W.yieldResult,R=_.kS(),_.D(W,M.JSC$15996_persistentStorePromiseAccessor(),3);case 3:return X=W.yieldResult,N?X?_.D(W,N.get("sdois"),4):(_.vh(new _.WJ("PES is undefined")),W.return()):(_.vh(new _.WJ("prefStorage is undefined")),W.return());case 4:A=W.yieldResult;k=(l=d)==null?void 0:l.boolValue;k===void 0||_.Q("kevlar_set_sd_enabled_flag_killswitch")||_.TR(0,
197,!0);A===void 0&&k===void 0&&(k=!1);if(k===void 0){W.jumpTo(0);break}return _.D(W,N.set("sdois",k),6);case 6:return _.Q("kevlar_set_sd_enabled_flag_killswitch")||(_.TR(0,196,k),R.save()),T={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:k},_.D(W,FdP(M,T),0)}})};
VmJ=function(M,d,N){var R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return _.D(T,MmC(M),2);case 2:return R=T.yieldResult,_.D(T,AI4(M,N),3);case 3:return _.D(T,MmC(M),4);case 4:return X=T.yieldResult,A=X!==R,_.D(T,dNY(M),5);case 5:l=T.yieldResult&&!_.Q("kevlar_modern_downloads_page");if((k=!X&&!l)||A)return _.D(T,d.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);T.jumpTo(0)}})};
Cx4=function(){var M=_.h().resolve(_.ni),d;_.B(function(N){switch(N.nextAddress){case 1:return _.D(N,M.JSC$15996_playerApiPromise,2);case 2:d=N.yieldResult;if(!_.Q("kevlar_force_refresh_smart_downloads")){N.jumpTo(3);break}return _.D(N,d.refreshAllStaleEntities(0),4);case 4:return N.return();case 3:return _.D(N,d.refreshAllStaleEntities(),5);case 5:return _.D(N,VmJ(M,d),0)}})};
R7i=function(M,d){var N,R;_.B(function(X){switch(X.nextAddress){case 1:return _.D(X,M.JSC$15996_playerApiPromise,2);case 2:N=X.yieldResult;switch((R=d)==null?void 0:R.settingItemId){case "SMART_DOWNLOADS_ENABLED":return X.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return X.jumpTo(4)}X.jumpTo(0);break;case 3:return _.D(X,VmJ(M,N,d),6);case 6:X.jumpTo(0);break;case 4:return _.D(X,FdP(M,d),7);case 7:X.jumpTo(0)}})};
lMi=function(M,d){var N,R,X;return _.B(function(A){if(A.nextAddress==1)return _.D(A,M.JSC$15996_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3){N=A.yieldResult;if(!N)return _.vh(new _.WJ("PES is undefined")),A.return(!1);if(!d)return A.return(!1);R=_.Nr(d,"mainVideoEntity");return _.D(A,BkT(N,R,"mainVideoEntity"),3)}X=A.yieldResult;return A.return(X!==void 0)})};
F3b=function(M){var d=_.h().resolve(_.ni),N,R,X,A,l,k,T,W,w,p,m;_.B(function(I){switch(I.nextAddress){case 1:return _.D(I,d.JSC$15996_playerApiPromise,2);case 2:N=I.yieldResult;X=(R=M)==null?void 0:R.actions;if(!X)return I.return();A=_.V(X);l=A.next();case 3:if(l.done){I.jumpTo(0);break}k=l.value;W=T=void 0;if(!(((T=k)==null?0:T.entityKey)&&((W=k)==null?0:W.actionType))){I.jumpTo(4);break}w=_.EN(k.entityKey);p=w.entityId;m=w.entityType;return _.D(I,N.queueOfflineAction(p,m,k.actionType),4);case 4:l=
A.next(),I.jumpTo(3)}})};
$N9=function(M,d){var N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return _.D(k,M.JSC$15996_prefStorage,2);if(k.nextAddress!=3)return(N=k.yieldResult)?_.D(k,N.get("psi"),3):k.return();R=k.yieldResult;l={isPaused:d,lastSyncTimestamp:(A=(X=R)==null?void 0:X.lastSyncTimestamp)!=null?A:"0"};return _.D(k,N.set("psi",l),0)})};
lcq=function(M){var d=_.h().resolve(_.ni),N,R,X,A,l,k,T,W;return _.B(function(w){switch(w.nextAddress){case 1:return _.D(w,d.JSC$15996_playerApiPromise,2);case 2:N=w.yieldResult;X=((R=M)==null?void 0:R.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((k=M)==null?void 0:k.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":A="!*$_ALL_ENTITIES_!*$";l="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return w.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return w.jumpTo(4)}w.jumpTo(5);break;case 3:return _.D(w,$N9(d,X),6);case 6:w.jumpTo(5);break;case 4:return _.D(w,lMi(d,(T=M)==null?void 0:T.videoId),7);case 7:w.yieldResult&&(A=(W=M)==null?void 0:W.videoId,l="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");w.jumpTo(5);break;case 5:if(A&&l)return _.D(w,N.queueOfflineAction(A,"videoPlaybackPositionEntity",l),0);w.jumpTo(0)}})};
BTJ=function(M,d){var N;d!==1||((N=M.currentPersistentToast)==null?0:N.opened)?M.openToast():M.currentPersistentToast=void 0};
kxY=function(){var M,d,N,R;return _.B(function(X){if(X.nextAddress==1)return M=navigator,(d=M.storage)!=null&&d.persisted?_.D(X,(N=M.storage)==null?void 0:N.persisted(),2):X.return("PERSISTED_STATE_NOT_SUPPORTED");R=X.yieldResult;return X.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
TTq=function(){var M,d,N,R;return _.B(function(X){if(X.nextAddress==1)return M=navigator,(d=M.storage)!=null&&d.persist?_.D(X,(N=M.storage)==null?void 0:N.persist(),2):X.return("PERSISTED_STATE_NOT_SUPPORTED");R=X.yieldResult;return X.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
DND=function(){var M,d;return _.B(function(N){switch(N.nextAddress){case 1:return M="PERSISTED_STATE_NOT_SUPPORTED",_.Mv(N,2),_.D(N,kxY(),4);case 4:M=N.yieldResult;if(M!=="PERSISTED_STATE_NOT_GRANTED"){N.jumpTo(5);break}return _.D(N,TTq(),6);case 6:M=N.yieldResult;case 5:_.cJ(N,3);break;case 2:d=_.Fg(N),d instanceof Error&&_.qZ(d);case 3:return _.hQ("persistentStorageStateChecked",{persistedState:M}),N.return(M)}})};
gFD=function(M,d){var N=[],R=!1;d=_.V(d);for(var X=d.next();!X.done;X=d.next()){X=M.moduleRegistry[X.value];var A=void 0,l=void 0;((A=X)==null?0:A.isFetching)&&((l=X)==null?0:l.resolver)?(N.push(X.resolver.promise),R=!0):(X=new _.MX,X.resolve(void 0),N.push(X.promise))}return R?Promise.all(N):void 0};
Wdd=function(M,d,N){N=N===void 0?{}:N;var R=M.defaultViewTransitionOptions,X=d.map(function(l){return l.beforeTransition}),A=d.map(function(l){return l.afterTransition});
return Object.assign({},R,N,{beforeTransition:function(){var l;(l=R.beforeTransition)==null||l.call(R);var k,T;(T=(k=N).beforeTransition)==null||T.call(k);l=_.V(X);for(k=l.next();!k.done;k=l.next())k=k.value,k()},
afterTransition:function(){var l;(l=R.afterTransition)==null||l.call(R);var k,T;(T=(k=N).afterTransition)==null||T.call(k);l=_.V(A);for(k=l.next();!k.done;k=l.next())k=k.value,k()}})};
wie=function(M,d,N){var R,X,A,l,k,T,W;_.B(function(w){if(M.config.disableAllTransitions)return w.return(d());if((R=N)==null||!R.transitionName)return w.return(_.KnJ(d,(X=N)==null?void 0:X.viewTransitionOptions));A=N;l=A.transitionName;k=A.viewTransitionOptions;T=M.config.transitionConfigs.get(l);if(!T)return w.return(d());var p;W=(p=M.transitionTasksMap.get(l))!=null?p:[];return w.return(_.KnJ(d,Wdd(T,W,k)))})};
Rb=function(M,d,N){M.transitionTasksMap.has(d)?M.transitionTasksMap.get(d).push(N):(M=new _.WJ("Transition task registered for unknown transition name",d),_.qZ(M))};
piP=function(M,d,N){if(M.isInitialized()){var R=aB(N),X=R==="watch";R=R==="shorts";var A=aB(d)==="watch";if(X)A||(M.backgroundPageData=d),M.watchPipMode&&A||M.deactivate(N.endpoint);else if(R){if(aB(d)!=="shorts"){var l;(l=M.getPlayerElement())==null||l.pause()}}else A&&!M.watchPipMode&&(F04(d,N)?(M.watchWhileMode&&_.S0T(M,!1),_.o8r(M,d)):M.isMiniplayerActive()&&M.watchWhileMode&&M.deactivate());A&&_.bSG(M);M.shortsPipMode&&!R&&(window.focus(),M.deactivate());if(M.pictureInPictureEnabled())if(R&&
M.shortsPipEnabled||X&&M.watchPipEnabled)_.oRZ(M.handleMediaSessionPipActivation);else if(!M.isMiniplayerActive()&&(M.shortsPipEnabled||M.watchPipEnabled)&&_.k_()&&_.BZi("Chromium")>=120){M=_.P3v().mediaSession;try{M.setActionHandler("enterpictureinpicture",null)}catch(k){}}}};
mNq=function(M,d){var N,R;_.B(function(X){if(X.nextAddress==1){if(!M||!M.navigationEndpoint)return X.return();_.$O().lockupActivation=!0;var A;d?A=_.ep(_.le("QUEUE",void 0,"Queue")):A=M.longBylineText;R=(N=A)&&M.title?{miniplayerTitle:M.title,miniplayerSubtitle:N,playlistData:null}:void 0;return _.D(X,_.x4z(_.h().resolve(_.et),M.navigationEndpoint,!0,R),2)}_.$O().userActivation=!0;_.Vy(X)})};
dr4=function(M,d){var N,R,X,A,l,k;_.B(function(T){if(T.nextAddress==1){N=_.q(d,_.Y8d);if(!N||!N.listId)return T.return();M.index=N.index||M.index||0;R=M.response&&M.response.playingVideoId||void 0;return _.D(T,_.TVL(M.JSC$10686_playlistNetworkManager,N.listId,M.index,R),2)}X=T.yieldResult;if(!X)return T.return();A=X.playlistId;l=X.playlistPanelRenderer;!M.queueProxy&&A&&l&&A.startsWith("TLPQ")&&(M.queueProxy=new _.j4(M.JSC$10686_playlistNetworkManager,A,M.setPlaylistData.bind(M),M.clearQueue.bind(M),
_.gHZ(l),M.storage));if(N.openMiniplayer&&(k=_.WMj(l))&&!M.pageManager.isOnWatch()){var W=k,w=N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";M.isMiniplayerActive()?M.openToast(W):mNq(W,w)}M.setPlaylistData(A,l,X.autoplayRenderer);_.Vy(T)})};
ZbY=function(M,d){var N=_.cn();N.index===void 0&&(N.index=0);N.temporaryItems.push.apply(N.temporaryItems,_.wu(M));if((d.videoId||d.videoIds)&&N.index!==void 0&&d.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!N.queueProxy){var R=[];if(N.response){var X=_.h().resolve(_.et).isMiniplayerActive();if(N.response.playlistPanelRenderer&&N.response.playlistId&&!N.response.playlistId.startsWith("TLPQ")){if(N.pageManager.isOnWatch()||X)R=_.gHZ(N.response.playlistPanelRenderer)}else N.response.playingVideoId&&
!d.openMiniplayer?R.push(N.response.playingVideoId):X&&N.response.playingVideoId&&d.openMiniplayer&&R.push(N.response.playingVideoId)}N.queueProxy=new _.j4(N.JSC$10686_playlistNetworkManager,"",N.setPlaylistData.bind(N),N.clearQueue.bind(N),R,N.storage);N.queueProxy.JSC$10632_setCurrentIndex(N.index)}N.queueProxy.addVideos(d.videoIds||[d.videoId],d)}DxG(N,M);N.response&&_.S4(N,_.zq(N,N.response.autoplayRenderer));N.pageManager.isOnWatch()?N.isMiniplayerActive()&&N.openToast(M[0]):(M=M[0],d=d.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",N.isMiniplayerActive()?N.openToast(M):mNq(M,d))};
huT=function(M){var d=_.$e(M);if(d=="object"||d=="array"){if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);d=d=="array"?[]:{};for(var N in M)d[N]=huT(M[N]);return d}return M};
X0=function(M,d){return _.C2v(_.wP(M,d,void 0,_.W_))};
F0=function(M,d){return _.Q9(_.wP(M,d,void 0,_.W_))};
A3=function(M,d){return _.gdZ(_.wP(M,d,void 0,_.W_))};
VV=function(M,d){return _.wP(M,d,void 0,_.W_,_.lr)};
Qq4=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;_.fK(d,N,_.eS(M.decoder_,_.M$));return!0},_.UA,_.ib);
qLT=_.iO(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.Qx(d,N,R,_.eS(M.decoder_,_.M$));return!0},_.UA,_.ib);
IMe=_.iO(function(M,d,N){if(M.nextWireType_!==1)return!1;var R=M.decoder_;M=_.n5(R);R=_.n5(R);M=_.Zm(M,R);_.fK(d,N,M);return!0},_.aDr,_.mRZ);
vF4=_.iO(function(M,d,N){if(M.nextWireType_!==5)return!1;_.fK(d,N,_.n5(M.decoder_));return!0},function(M,d,N){d=_.vP(d);
d!=null&&(_.LK(M,N,5),_.aG(M.encoder_,d))},_.sA());
OOJ=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.EGN(M.decoder_);_.fK(d,N,M===!1?void 0:M);return!0},_.U$r,_.WHA);
jqP=_.iO(function(M,d,N){if(M.nextWireType_!==2)return!1;M=_.FHS(M);_.fK(d,N,M===""?void 0:M);return!0},_.x$j,_.w$6);
sqi=_.iO(function(M,d,N){if(M.nextWireType_!==2)return!1;M=_.A72(M);_.fK(d,N,M===_.SJ()?void 0:M);return!0},_.ZJp,_.QPA);
PGr=_.e4S(function(M,d,N){if(M.nextWireType_!==0&&M.nextWireType_!==2)return!1;d=_.hj(d,d[_.II]|0,N);M.nextWireType_==2?_.Vbi(M,fcJ,d):d.push(_.H_(M.decoder_));return!0},function(M,d,N){d=_.bJq(_.Q9,d,!0);
if(d!=null&&d.length){N=_.D$Z(M,N);for(var R=0;R<d.length;R++)_.LGv(M.encoder_,d[R]);_.gei(M,N)}},_.qi2);
oFP=_.iO(function(M,d,N){if(M.nextWireType_!==0)return!1;M=_.H_(M.decoder_);_.fK(d,N,M===0?void 0:M);return!0},_.EeL,_.qi2);
rID=_.iO(function(M,d,N,R){if(M.nextWireType_!==0)return!1;_.Qx(d,N,R,_.H_(M.decoder_));return!0},_.EeL,_.qi2);
_.HQ=function(M){this.privateDoNotAccessOrElseWrappedStyleSheet=M};
_.HQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var l49=function(M,d){return new _.hw(M.x+d.x,M.y+d.y)},Kde=function(M){return M.previousElementSibling!==void 0?M.previousElementSibling:_.sCL(M.previousSibling,!1)},yIq=function(M,d){var N=[];
for(d=d||0;d<M.length;d+=2)_.W1C(M[d],M[d+1],N);return N.join("&")},JIb=function(M,d){var N=arguments.length==2?yIq(arguments[1],0):yIq(arguments,1);
return _.gZ3(M,N)},cI9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(cI9,_.Jj);cI9.prototype.getValue=function(){var M=_.wP(this,2);if(Array.isArray(M)||M instanceof _.Jj)throw Error("aa");return _.hi(this,2)};
var oP9=function(){var M=_.x$();this.JSC$7798_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Zu("channel_type"))};
oP9.prototype.increment=function(M){this.JSC$7798_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",M)};
var rXC=function(){var M=_.x$();this.JSC$7801_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Zu("channel_type"))};
rXC.prototype.increment=function(M){this.JSC$7801_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",M)};
var yX4=function(){var M=_.x$();this.JSC$7804_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Zu("channel_type"))};
yX4.prototype.increment=function(M){this.JSC$7804_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",M)};
var KYr=function(){var M=_.x$();this.JSC$7807_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
KYr.prototype.increment=function(){this.JSC$7807_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var JXG=function(){var M=_.x$();this.JSC$7810_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Zu("channel_type"),_.Zu("error_type"))};
JXG.prototype.increment=function(M,d){this.JSC$7810_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",M,d)};
var cXC=function(){var M=_.x$();this.JSC$7813_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
cXC.prototype.increment=function(){this.JSC$7813_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Sur=function(){var M=_.x$();this.JSC$7816_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Sur.prototype.increment=function(){this.JSC$7816_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var PuC=function(){var M=_.x$();this.JSC$7822_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
PuC.prototype.increment=function(){this.JSC$7822_streamzService.JSC$7671_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var SL9=function(M){return M.getCount&&typeof M.getCount=="function"?M.getCount():_.CZ(M)||typeof M==="string"?M.length:_.wF.getCount(M)},zur=function(M,d){if(typeof M.every=="function")return M.every(d,void 0);
if(_.CZ(M)||typeof M==="string")return Array.prototype.every.call(M,d,void 0);for(var N=_.V9C(M),R=_.um(M),X=R.length,A=0;A<X;A++)if(!d.call(void 0,R[A],N&&N[A],M))return!1;return!0},bOC=function(M,d,N,R){var X=new _.iX(null);
M&&_.C2(X,M);d&&_.x9(X,d);N&&_.Y9(X,N);R&&_.Zj(X,R);return X},eue=function(){var M=_.PXS&&Gp(_.haV,10)>=0,d;
if(d=_.gGZ)d=Gp(_.mBo,10)>=0;var N=_.T7&&Gp(_.haV,85)>=0;return _.$h||M||d||N},HOq=function(M){var d=_.Cro(M);
return d&&eue()?-M.scrollLeft:d&&_.ss(M,"overflowX")!="visible"?M.scrollWidth-M.clientWidth-M.scrollLeft:M.scrollLeft},nFG=function(M,d){d=Math.max(d,0);
_.Cro(M)?eue()?M.scrollLeft=-d:M.scrollLeft=M.scrollWidth-d-M.clientWidth:M.scrollLeft=d},QQd=0,jQb=!1;
up.prototype.set=function(M){this.relativeTimeStart_=M};
up.prototype.reset=function(){this.set(_.Nn())};
up.prototype.get=function(){return this.relativeTimeStart_};
var iOD=null,fMD=function(){iOD||(iOD=new up)},Ldr=function(){iOD||(iOD=new up)};
_.RX(Ldr,fMD);_.F=P7T.prototype;_.F.JSC$9149_buffer_="";_.F.set=function(M){this.JSC$9149_buffer_=""+M};
_.F.append=function(M,d,N){this.JSC$9149_buffer_+=String(M);if(d!=null)for(var R=1;R<arguments.length;R++)this.JSC$9149_buffer_+=arguments[R];return this};
_.F.clear=function(){this.JSC$9149_buffer_=""};
_.F.getLength=function(){return this.JSC$9149_buffer_.length};
_.F.toString=function(){return this.JSC$9149_buffer_};
var tm4=function(){var M={type:"unit",style:"narrow"};this.listType_=M&&M.type?M.type:"conjunction";this.listStyle_=M&&M.style?M.style:"long";this.listSymbols_=CuT;M=0;switch(this.listStyle_){case "short":M=1;break;case "narrow":M=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[M];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[M];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=
this.listSymbols_.AND_END[M];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[M];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[M];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=this.listSymbols_.OR_END[M];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[M],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[M],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[M],this.listEndPattern_=this.listSymbols_.UNIT_END[M]}};
tm4.prototype.format=function(M){return GxJ(this,M)};
var GxJ=function(M,d){var N=d.length;switch(N){case 0:return"";case 1:return String(d[0]);case 2:return M.listTwoPattern_.replace("{0}",String(d[0])).replace("{1}",String(d[1]))}for(var R=M.listStartPattern_.replace("{0}",String(d[0])).replace("{1}",String(d[1])),X=2;X<N-1;++X)R=M.listMiddlePattern_.replace("{0}",R).replace("{1}",String(d[X]));return M.listEndPattern_.replace("{0}",R).replace("{1}",String(d[N-1]))},t6C=function(){var M={style:1};
this.style_=(M==null?void 0:M.style)||0;this.durationSymbols_=_.iWt||_.MGt},aMi=function(M,d){switch(d){default:case "years":return M.durationSymbols_.YEAR;
case "months":return M.durationSymbols_.MONTH;case "weeks":return M.durationSymbols_.WEEK;case "days":return M.durationSymbols_.DAY;case "hours":return M.durationSymbols_.HOUR;case "minutes":return M.durationSymbols_.MINUTE;case "seconds":return M.durationSymbols_.SECOND}},lo=function(M,d,N){a:{N=aMi(M,N);
switch(M.style_){case 1:if(N.LONG!=void 0){M=N.LONG;break a}case 2:if(N.NARROW!=void 0){M=N.NARROW;break a}default:M=N.SHORT;break a}M=void 0}return M?(new _.IcC("{DURATION_VALUE,plural,"+M+"}")).format({DURATION_VALUE:d}):""};
t6C.prototype.format=function(M){var d=[],N=M.years,R=M.months,X=M.weeks,A=M.days,l=M.hours,k=M.minutes;M=M.seconds;N!=null&&d.push(lo(this,N,"years"));R!=null&&d.push(lo(this,R,"months"));X!=null&&d.push(lo(this,X,"weeks"));A!=null&&d.push(lo(this,A,"days"));l!=null&&d.push(lo(this,l,"hours"));k!=null&&d.push(lo(this,k,"minutes"));M!=null&&d.push(lo(this,M,"seconds"));return(new tm4).format(d)};
var UNY=!1,SIP=function(M){_.Mp.call(this,M.message||M.description||M.name);this.isMissing=M instanceof Cn;this.isTimeout=M instanceof _.yb&&M.errorCode=="net.timeout";this.isCanceled=M instanceof _.JX};
_.v(SIP,_.Mp);SIP.prototype.name="BiscottiError";var Cn=function(){_.Mp.call(this,"Biscotti ID is missing from server")};
_.v(Cn,_.Mp);Cn.prototype.name="BiscottiMissingError";var xr=null,LNC=function(){try{var M=_.cy("yt.ads.biscotti.getId_");return M?M():DUd()}catch(d){return _.cl(d)}},L0d,ucC=function(M){return _.YS({type:"SET_GUIDE_IS_EXPANDED",
payload:M})},CGb=function(M){return _.YS({type:"SET_ONLINE_STATUS",
payload:M})},xNJ=function(M,d){return _.YS({type:"SET_TRANSCRIPTION_STATE",
payload:{high:M,low:d}})},YL9=function(M){return _.YS({type:"SET_OVERLAY_STATE",
payload:M})},ZOD=0,EFb=function(M,d,N){var R=this;
this.priority=d;this.delay=N;this.jobId=0;this.completionCallback=_.wl;this.wrappedJob=function(){M();R.completionCallback()};
this.id=++ZOD};
EFb.prototype.enqueue=function(M){this.completionCallback=M;this.jobId=_.IQ.addJob(this.wrappedJob,this.priority,this.delay)};
var $w=function(){_.EK.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.v($w,_.EK);$w.prototype.addJob=function(M,d,N){M=new EFb(M,d,N);this.taskIdToTask.set(M.id,M);this.isActive?Mk4(this,M):this.suspendedTasks.add(M);return M.id};
var Mk4=function(M,d){M.scheduledTasks.add(d);d.enqueue(function(){M.scheduledTasks.delete(d)})};
$w.prototype.cancelJob=function(M){(M=this.taskIdToTask.get(M))&&(this.scheduledTasks.delete(M)?_.IQ.cancelJob(M.jobId):this.suspendedTasks.delete(M))};
$w.prototype.pause=function(){var M=this;this.isActive=!1;this.scheduledTasks.forEach(function(d){_.IQ.cancelJob(d.jobId);M.suspendedTasks.add(d)});
this.scheduledTasks.clear()};
$w.prototype.start=function(){var M=this;this.isActive=!0;this.suspendedTasks.forEach(function(d){Mk4(M,d)});
this.suspendedTasks.clear()};
$w.prototype.reset=function(){this.scheduledTasks.forEach(function(M){_.IQ.cancelJob(M.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var BE=function(M,d){this.JSC$10810_networkService_=M;this.pageRequestPromise=d};
BE.prototype.fetchData=function(M){dH9(this,this.JSC$10810_networkService_.fetchData(M))};
BE.prototype.postData=function(M,d){dH9(this,this.JSC$10810_networkService_.postData(M,d))};
BE.prototype.requestDataForServiceEndpoint=function(M,d){dH9(this,this.JSC$10810_networkService_.requestDataForServiceEndpoint(M,d))};
var dH9=function(M,d){d.then(M.pageRequestPromise.onSuccess,M.pageRequestPromise.onFailure,M.pageRequestPromise)};
BE.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var kw=function(M){this.buildNetworkRequest_=M;this.pendingRequests_=new Set};
kw.prototype.reset=function(){this.pendingRequests_.forEach(function(M){M.cancel()});
this.pendingRequests_.clear()};
kw.prototype.fetchData=function(M){var d=N5C(this);d.fetchData(M);return d.pageRequestPromise};
kw.prototype.postData=function(M,d){var N=N5C(this);N.postData(M,d);return N.pageRequestPromise};
kw.prototype.requestDataForServiceEndpoint=function(M,d){var N=N5C(this);N.requestDataForServiceEndpoint(M,d);return N.pageRequestPromise};
var N5C=function(M){var d=M.buildNetworkRequest_();M.pendingRequests_.add(d);var N=function(){M.pendingRequests_.delete(d)};
d.pageRequestPromise.then(N,N);return d},RtY=function(M){var d=new $w;
this.JSC$10817_networkService_=M;this.JSC$10817_taskManager_=d;this.JSC$10817_networkManager_=new kw(this.networkRequestFactory_.bind(this))};
_.F=RtY.prototype;_.F.networkRequestFactory_=function(){return new BE(this.JSC$10817_networkService_,new _.xO(this.JSC$10817_taskManager_))};
_.F.reset=function(){this.JSC$10817_taskManager_.reset();this.JSC$10817_networkManager_.reset()};
_.F.start=function(){this.JSC$10817_taskManager_.start()};
_.F.pause=function(){this.JSC$10817_taskManager_.pause()};
_.F.getTaskManager=function(){return this.JSC$10817_taskManager_};
_.F.getNetworkManager=function(){return this.JSC$10817_networkManager_};
var C74=null,ZAY=[],ZJ=0,MJ=0,Ew=null,X5Y=function(){var M=(0,_.XSL)();M&&YH$(M,M.mechanism.__iterator__(!0))},NJ=function(M){this.token=M};
NJ.getInstance=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.LE(),2);M=d.yieldResult;if(!M)return d.return();NJ.instance||(NJ.instance=new NJ(M));return d.return(NJ.instance)})};
var XhG=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,dZD(M.token),2);d=N.yieldResult;return N.return(d.clear("resource-manifest-assets"))})},di=function(M){this.token=M};
di.getInstance=function(){var M;return _.B(function(d){if(d.nextAddress==1)return _.D(d,_.LE(),2);M=d.yieldResult;if(!M)return d.return();di.instance||(di.instance=new di(M));return d.return(di.instance)})};
var NLJ=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,dZD(M.token),2);d=N.yieldResult;return _.D(N,d.clear("auth"),0)})},F$r=!1,RY=null,phJ=void 0,sRi=!1,AoJ=function(M){_.Mp.call(this,M)};
_.v(AoJ,_.X23);var hJJ=function(){var M=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return M?parseInt(M[1],10):0},VkT=function(M){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+M)!=-1||document.currentScript.src.indexOf("&"+M)!=-1)},l$i=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},ObD=function(M){M.length?$HJ(M.shift(),function(){ObD(M)}):qNP()},sDd=function(M){return"chrome-extension://"+M+"/cast_sender.js"},$HJ=function(M,
d,N){var R=document.createElement("script");
R.onerror=d;N&&(R.onload=N);_.Sd(R,_.wx(M));(document.head||document.documentElement).appendChild(R)},B5G=function(){var M=hJJ(),d=[];
if(M>1){var N=M-1;d.push("//www.gstatic.com/eureka/clank/"+M+"/cast_sender.js");d.push("//www.gstatic.com/eureka/clank/"+N+"/cast_sender.js")}return d},qNP=function(){var M=l$i();
M&&M(!1,"No cast extension found")},vSJ=function(){if(kHq){var M=2,d=l$i(),N=function(){M--;
M==0&&d&&d(!0)};
window.__onGCastApiAvailable=N;$HJ("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",qNP,N)}},QDG=function(){vSJ();
var M=B5G();M.push("//www.gstatic.com/eureka/clank/cast_sender.js");ObD(M)},IyT=function(){vSJ();
var M=B5G();M.push.apply(M,_.wu(jDe.map(sDd)));M.push("//www.gstatic.com/eureka/clank/cast_sender.js");ObD(M)},kHq=VkT("loadCastFramework")||VkT("loadCastApplicationFramework"),jDe=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var T59=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(T59,_.Jj);var DHJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(DHJ,_.Jj);var gMr=function(){var M=new DHJ;return _.z7(M,1,3)};var T$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(T$,_.Jj);var gCd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(gCd,_.Jj);var W$9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(W$9,_.Jj);W$9.prototype.getToken=function(){return _.rP(this,1)};
W$9.prototype.setToken=function(M){return _.U$(this,1,M)};
var TDD=function(M){return _.kZ(M,3,_.zb,_.uC())},DEr=function(M){return _.kZ(M,6,_.zb,_.uC())};var Df=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Df,_.Jj);Df.prototype.getToken=function(){return _.uk(this,W$9,2)};
Df.prototype.setToken=function(M){return _.ZG(this,2,M)};
Df.prototype.getName=function(){return _.rP(this,6)};
var w5G=_.xZ(Df);var p5T=function(M,d,N){this.requestMessage=M;this.methodDescriptor=d;this.metadata=N};
p5T.prototype.getMetadata=function(){return this.metadata};var mHD=function(M,d){d=d===void 0?{}:d;this.responseMessage=M;this.metadata=d;this.status=null};
mHD.prototype.getMetadata=function(){return this.metadata};
mHD.prototype.getStatus=function(){return this.status};var gR=function(M,d,N,R,X){this.name=M;this.methodType="unary";this.requestType=d;this.responseType=N;this.requestSerializeFn=R;this.responseDeserializeFn=X},htd=function(M,d,N){N=N===void 0?{}:N;
return new p5T(d,M,N)};
gR.prototype.getName=function(){return this.name};var WE=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(WE,_.Jj);WE.prototype.setHeader=function(M){return _.ZG(this,1,M)};
WE.prototype.hasHeader=function(){return _.p5(this,T$,1)};var Q0G=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Q0G,_.Jj);var qci=new gR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",WE,Q0G,function(M){return M.serialize()},_.xZ(Q0G));var wR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(wR,_.Jj);wR.prototype.setHeader=function(M){return _.ZG(this,1,M)};
wR.prototype.hasHeader=function(){return _.p5(this,T$,1)};var I$T=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(I$T,_.Jj);var vMG=new gR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",wR,I$T,function(M){return M.serialize()},_.xZ(I$T));var pR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(pR,_.Jj);pR.prototype.setHeader=function(M){return _.ZG(this,1,M)};
pR.prototype.hasHeader=function(){return _.p5(this,T$,1)};var OXe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(OXe,_.Jj);OXe.prototype.getLink=function(){return _.uk(this,Df,1)};var j0r=new gR("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",pR,OXe,function(M){return M.serialize()},_.xZ(OXe));var mu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(mu,_.Jj);mu.prototype.setHeader=function(M){return _.ZG(this,1,M)};
mu.prototype.hasHeader=function(){return _.p5(this,T$,1)};var s0q=new gR("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",mu,Df,function(M){return M.serialize()},w5G);var Par=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Par,_.Jj);var oMY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(oMY,_.Jj);oMY.prototype.getUrl=function(){return _.rP(this,2)};
oMY.prototype.setUrl=function(M){return _.U$(this,2,M)};var roq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(roq,_.Jj);var K$9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(K$9,_.Jj);var yoJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(yoJ,_.Jj);var j_i=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(j_i,_.Jj);var OHT=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(OHT,_.Jj);var JoD=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(JoD,_.Jj);var Jad=_.xZ(JoD);var coP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(coP,_.Jj);var h3=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(h3,_.Jj);h3.prototype.setHeader=function(M){return _.ZG(this,1,M)};
h3.prototype.hasHeader=function(){return _.p5(this,T$,1)};
h3.prototype.getCompletionUrl=function(){return _.rP(this,6)};
h3.prototype.getDeviceId=function(){return _.rP(this,11)};var ScJ=new gR("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",h3,JoD,function(M){return M.serialize()},Jad);var ztr=new Set(["SAPISIDHASH","APISIDHASH"]);var bXJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(bXJ,_.Jj);bXJ.prototype.getMessage=function(){return _.rP(this,2)};
var ete=_.xZ(bXJ);var QV=function(M,d){this.xhrNodeReadableStream_=M.nodeReadableStream;this.grpcResponseDeserializeFn_=d;this.JSC$16912_xhr_=M.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16912_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&HXe(this)},GHJ=function(M,d){var N=new nMT;
_.lI(M.JSC$16912_xhr_,"complete",function(){if(M.JSC$16912_xhr_.isSuccess()){var R=M.JSC$16912_xhr_.getResponseText();var X;if(X=d)X=M.JSC$16912_xhr_,X.JSC$7680_xhr_&&X.isComplete()?(X=X.JSC$7680_xhr_.getResponseHeader("Content-Type"),X=X===null?void 0:X):X=void 0,X=X==="text/plain";if(X){if(!atob)throw Error("Kj");R=atob(R)}try{var A=M.grpcResponseDeserializeFn_(R)}catch(k){qP(M,EvC(new _.OF(13,"Error when deserializing response data; error: "+k+(", response: "+R)),N));return}R=_.YsZ(M.JSC$16912_xhr_.getStatus());
iXG(M,f$q(M));R==0?L$e(M,A):qP(M,EvC(new _.OF(R,"Xhr succeeded but the status code is not 200"),N))}else{R=M.JSC$16912_xhr_.getResponseText();A=f$q(M);if(R){var l=tkD(M,R);R=l.code;X=l.details;l=l.metadata}else R=2,X="Rpc failed due to xhr error. uri: "+String(M.JSC$16912_xhr_.JSC$7680_lastUri_)+", error code: "+M.JSC$16912_xhr_.JSC$7680_lastErrorCode_+", error: "+M.JSC$16912_xhr_.getLastError(),l=A;iXG(M,A);qP(M,EvC(new _.OF(R,X,l),N))}})},HXe=function(M){M.xhrNodeReadableStream_.on("data",function(d){if("1"in
d){var N=d["1"];
try{var R=M.grpcResponseDeserializeFn_(N)}catch(X){qP(M,new _.OF(13,"Error when deserializing response data; error: "+X+(", response: "+N)))}R&&L$e(M,R)}if("2"in d)for(d=tkD(M,d["2"]),N=0;N<M.onStatusCallbacks_.length;N++)M.onStatusCallbacks_[N](d)});
M.xhrNodeReadableStream_.on("end",function(){iXG(M,f$q(M));for(var d=0;d<M.onEndCallbacks_.length;d++)M.onEndCallbacks_[d]()});
M.xhrNodeReadableStream_.on("error",function(){if(M.JSC$16912_onErrorCallbacks_.length!=0){var d=M.JSC$16912_xhr_.JSC$7680_lastErrorCode_;d!==0||M.JSC$16912_xhr_.isSuccess()||(d=6);var N=-1;switch(d){case 0:var R=2;break;case 7:R=10;break;case 8:R=4;break;case 6:N=M.JSC$16912_xhr_.getStatus();R=_.YsZ(N);break;default:R=14}iXG(M,f$q(M));d=_.ntd(d)+", error: "+M.JSC$16912_xhr_.getLastError();N!=-1&&(d+=", http status code: "+N);qP(M,new _.OF(R,d))}})},f$q=function(M){var d={},N=USY(M.JSC$16912_xhr_);
Object.keys(N).forEach(function(R){d[R]=N[R]});
return d},tkD=function(M,d){var N=2,R={};
try{var X=ete(d);N=_.Cy(X,1);var A=X.getMessage();_.Uq(X,cI9,3,_.uC()).length&&(R["grpc-web-status-details-bin"]=d)}catch(l){M.JSC$16912_xhr_&&M.JSC$16912_xhr_.getStatus()===404?(N=5,A="Not Found: "+String(M.JSC$16912_xhr_.JSC$7680_lastUri_)):(N=14,A="Unable to parse RpcStatus: "+l)}return{code:N,details:A,metadata:R}};
QV.prototype.on=function(M,d){M=="data"?this.onDataCallbacks_.push(d):M=="metadata"?this.onMetadataCallbacks_.push(d):M=="status"?this.onStatusCallbacks_.push(d):M=="end"?this.onEndCallbacks_.push(d):M=="error"&&this.JSC$16912_onErrorCallbacks_.push(d);return this};
var Ib=function(M,d){d=M.indexOf(d);d>-1&&M.splice(d,1)};
QV.prototype.removeListener=function(M,d){M=="data"?Ib(this.onDataCallbacks_,d):M=="metadata"?Ib(this.onMetadataCallbacks_,d):M=="status"?Ib(this.onStatusCallbacks_,d):M=="end"?Ib(this.onEndCallbacks_,d):M=="error"&&Ib(this.JSC$16912_onErrorCallbacks_,d);return this};
QV.prototype.cancel=function(){this.JSC$16912_xhr_.abort()};
var L$e=function(M,d){for(var N=0;N<M.onDataCallbacks_.length;N++)M.onDataCallbacks_[N](d)},iXG=function(M,d){for(var N=0;N<M.onMetadataCallbacks_.length;N++)M.onMetadataCallbacks_[N](d)},qP=function(M,d){for(var N=0;N<M.JSC$16912_onErrorCallbacks_.length;N++)M.JSC$16912_onErrorCallbacks_[N](d)};
QV.prototype.cancel=QV.prototype.cancel;QV.prototype.removeListener=QV.prototype.removeListener;QV.prototype.on=QV.prototype.on;var nMT=function(){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.v(nMT,Error);var vE=function(M){this.JSC$16921_worker_=M.worker||null;this.JSC$16921_streamBinaryChunks_=M.streamBinaryChunks||!1;this.JSC$16921_credentialsMode_=void 0};
_.RX(vE,_.EaZ);vE.prototype.createInstance=function(){var M=new O7(this.JSC$16921_worker_,this.JSC$16921_streamBinaryChunks_);this.JSC$16921_credentialsMode_&&M.setCredentialsMode(this.JSC$16921_credentialsMode_);return M};
vE.prototype.setCredentialsMode=function(M){this.JSC$16921_credentialsMode_=M};
var O7=function(M,d){_.mk.call(this);this.JSC$16925_worker_=M;this.JSC$16925_streamBinaryChunks_=d;this.JSC$16925_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$16925_responseHeaders_=null;this.JSC$16925_method_="GET";this.JSC$16925_url_="";this.inProgress_=!1;this.JSC$16925_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.RX(O7,_.mk);O7.prototype.open=function(M,d){if(this.readyState!=0)throw this.abort(),Error("Lj");this.JSC$16925_method_=M;this.JSC$16925_url_=d;this.readyState=1;jK(this)};
O7.prototype.send=function(M){if(this.readyState!=1)throw this.abort(),Error("Mj");this.inProgress_=!0;var d={headers:this.requestHeaders_,method:this.JSC$16925_method_,credentials:this.JSC$16925_credentialsMode_,cache:void 0};M&&(d.body=M);(this.JSC$16925_worker_||_.Np).fetch(new Request(this.JSC$16925_url_,d)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
O7.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,s7(this));this.readyState=0};
O7.prototype.handleResponse_=function(M){if(this.inProgress_&&(this.fetchResponse_=M,this.JSC$16925_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16925_responseHeaders_=M.headers,this.readyState=2,jK(this)),this.inProgress_&&(this.readyState=3,jK(this),this.inProgress_)))if(this.responseType==="arraybuffer")M.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Np.ReadableStream!==
"undefined"&&"body"in M){this.currentReader_=M.body.getReader();if(this.JSC$16925_streamBinaryChunks_){if(this.responseType)throw Error("Nj");this.response=[]}else this.response=this.responseText="",this.JSC$16925_textDecoder_=new TextDecoder;a$$(this)}else M.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var a$$=function(M){M.currentReader_.read().then(M.handleDataFromStream_.bind(M)).catch(M.handleSendFailure_.bind(M))};
O7.prototype.handleDataFromStream_=function(M){if(this.inProgress_){if(this.JSC$16925_streamBinaryChunks_&&M.value)this.response.push(M.value);else if(!this.JSC$16925_streamBinaryChunks_){var d=M.value?M.value:new Uint8Array(0);if(d=this.JSC$16925_textDecoder_.decode(d,{stream:!M.done}))this.response=this.responseText+=d}M.done?s7(this):jK(this);this.readyState==3&&a$$(this)}};
O7.prototype.handleResponseText_=function(M){this.inProgress_&&(this.response=this.responseText=M,s7(this))};
O7.prototype.handleResponseArrayBuffer_=function(M){this.inProgress_&&(this.response=M,s7(this))};
O7.prototype.handleSendFailure_=function(){this.inProgress_&&s7(this)};
var s7=function(M){M.readyState=4;M.fetchResponse_=null;M.currentReader_=null;M.JSC$16925_textDecoder_=null;jK(M)};
O7.prototype.setRequestHeader=function(M,d){this.requestHeaders_.append(M,d)};
O7.prototype.getResponseHeader=function(M){return this.JSC$16925_responseHeaders_?this.JSC$16925_responseHeaders_.get(M.toLowerCase())||"":""};
O7.prototype.getAllResponseHeaders=function(){if(!this.JSC$16925_responseHeaders_)return"";for(var M=[],d=this.JSC$16925_responseHeaders_.entries(),N=d.next();!N.done;)N=N.value,M.push(N[0]+": "+N[1]),N=d.next();return M.join("\r\n")};
O7.prototype.setCredentialsMode=function(M){this.JSC$16925_credentialsMode_=M};
var jK=function(M){M.onreadystatechange&&M.onreadystatechange.call(M)};
Object.defineProperty(O7.prototype,"withCredentials",{get:function(){return this.JSC$16925_credentialsMode_==="include"},
set:function(M){this.setCredentialsMode(M?"include":"same-origin")}});var UH4=function(M){var d="";_.wF.forEach(M,function(N,R){d+=R;d+=":";d+=N;d+="\r\n"});
return d},uTd=function(M,d,N){if(_.wF.isEmpty(N))return M;
N=UH4(N);if(typeof M==="string")return _.ne(M,_.ex(d),N);_.J8(M,d,N);return M};var Cai=function(){this.isInputValid_=!0;this.JSC$16931_streamPos_=0;this.leftoverInput_=""};
Cai.prototype.isInputValid=function(){return this.isInputValid_};var Ar=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16934_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Ar.prototype.isInputValid=function(){return this.state_!=3};
var PE=function(M,d,N,R){M.state_=3;M.errorMessage_="The stream is broken @"+M.JSC$16934_streamPos_+"/"+N+". Error: "+R+". With input:\n"+d;throw Error(M.errorMessage_);};
Ar.prototype.acceptsBinaryInput=function(){return!0};
Ar.prototype.parse=function(M){function d(T){T&128&&PE(A,l,k,"invalid tag");(T&7)!=2&&PE(A,l,k,"invalid wire type");A.tag_=T>>>3;A.tag_!=1&&A.tag_!=2&&A.tag_!=15&&PE(A,l,k,"unexpected tag");A.state_=1;A.length_=0;A.countLengthBytes_=0}
function N(T){A.countLengthBytes_++;A.countLengthBytes_==5&&T&240&&PE(A,l,k,"message length too long");A.length_|=(T&127)<<(A.countLengthBytes_-1)*7;T&128||(A.state_=2,A.countMessageBytes_=0,typeof Uint8Array!=="undefined"?A.messageBuffer_=new Uint8Array(A.length_):A.messageBuffer_=Array(A.length_),A.length_==0&&X())}
function R(T){A.messageBuffer_[A.countMessageBytes_++]=T;A.countMessageBytes_==A.length_&&X()}
function X(){if(A.tag_<15){var T={};T[A.tag_]=A.messageBuffer_;A.result_.push(T)}A.state_=0}
for(var A=this,l=M instanceof Array?M:new Uint8Array(M),k=0;k<l.length;){switch(A.state_){case 3:PE(A,l,k,"stream already broken");break;case 0:d(l[k]);break;case 1:N(l[k]);break;case 2:R(l[k]);break;default:throw Error("Pj`"+A.state_);}A.JSC$16934_streamPos_++;k++}M=A.result_;A.result_=[];return M.length>0?M:null};var dEe=function(){this.errorMessage_=null;this.JSC$16937_streamPos_=0;this.base64Decoder_=new Cai;this.pbParser_=new Ar};
dEe.prototype.isInputValid=function(){return this.errorMessage_===null};
var xH4=function(M,d,N){M.errorMessage_="The stream is broken @"+M.JSC$16937_streamPos_+". Error: "+N+". With input:\n"+d;throw Error(M.errorMessage_);};
dEe.prototype.acceptsBinaryInput=function(){return!1};
dEe.prototype.parse=function(M){this.errorMessage_!==null&&xH4(this,M,"stream already broken");var d=null;try{var N=this.base64Decoder_;if(!N.isInputValid_)throw N.isInputValid_=!1,Error("Oj`"+N.JSC$16931_streamPos_+"`stream already broken`"+M);N.leftoverInput_+=M;var R=Math.floor(N.leftoverInput_.length/4);if(R==0)var X=null;else{try{var A=_.d72(N.leftoverInput_.slice(0,R*4))}catch(T){var l=N.leftoverInput_,k=T.message;N.isInputValid_=!1;throw Error("Oj`"+N.JSC$16931_streamPos_+"`"+k+"`"+l);}N.JSC$16931_streamPos_+=
R*4;N.leftoverInput_=N.leftoverInput_.slice(R*4);X=A}d=X===null?null:this.pbParser_.parse(X)}catch(T){xH4(this,M,T.message)}this.JSC$16937_streamPos_+=M.length;return d};var MFr=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16940_streamPos_=0;this.result_=[];this.statusParsed_=!1};
MFr.prototype.isInputValid=function(){return this.errorMessage_===null};
MFr.prototype.acceptsBinaryInput=function(){return!1};
MFr.prototype.parse=function(M){function d(T){A.state_=6;A.errorMessage_="The stream is broken @"+A.JSC$16940_streamPos_+"/"+l+". Error: "+T+". With input:\n";throw Error(A.errorMessage_);}
function N(){A.jsonStreamParser_=new _.dJ({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function R(T){if(T)for(var W=0;W<T.length;W++){var w={};w[1]=T[W];A.result_.push(w)}}
function X(T){if(T){(A.statusParsed_||T.length>1)&&d("extra status: "+T);A.statusParsed_=!0;var W={};W[2]=T[0];A.result_.push(W)}}
for(var A=this,l=0;l<M.length;){var k;if(k=A.state_!==2){a:{for(;l<M.length;){if(!_.Mm(M[l])){k=!0;break a}l++;A.JSC$16940_streamPos_++}k=!1}k=!k}if(k)return null;switch(A.state_){case 6:d("stream already broken");break;case 0:M[l]==="["?(A.state_=1,l++,A.JSC$16940_streamPos_++):d("unexpected input token");break;case 1:M[l]==="["?(A.state_=2,N()):M[l]===","||M.slice(l,l+5)=="null,"?A.state_=3:M[l]==="]"?(A.state_=5,l++,A.JSC$16940_streamPos_++):d("unexpected input token");break;case 2:k=A.jsonStreamParser_.parse(M.substring(l));
R(k);A.jsonStreamParser_.done()?(A.state_=3,k=A.jsonStreamParser_.JSC$9276_buffer_,A.JSC$16940_streamPos_+=M.length-l-k.length,M=k,l=0):(A.JSC$16940_streamPos_+=M.length-l,l=M.length);break;case 3:M[l]===","||M.slice(l,l+5)=="null,"?(A.state_=4,N(),A.jsonStreamParser_.parse("["),l+=M[l]===","?1:5,A.JSC$16940_streamPos_++):M[l]==="]"&&(A.state_=5,l++,A.JSC$16940_streamPos_++);break;case 4:k=A.jsonStreamParser_.parse(M.substring(l));X(k);A.jsonStreamParser_.done()?(A.state_=5,k=A.jsonStreamParser_.JSC$9276_buffer_,
A.JSC$16940_streamPos_+=M.length-l-k.length,M=k,l=0):(A.JSC$16940_streamPos_+=M.length-l,l=M.length);break;case 5:d("extra input after stream end")}}return A.result_.length>0?(M=A.result_,A.result_=[],M):null};var YcD=function(M){this.JSC$16943_xhr_=M;this.JSC$16943_parser_=null;this.status_=this.JSC$16943_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16943_textDecoder_=null;this.JSC$16943_eventHandler_=new _.a_(this);this.JSC$16943_eventHandler_.listen(this.JSC$16943_xhr_,"readystatechange",this.JSC$16945_readyStateChangeHandler_)},ob=function(M,d){M.status_!=d&&(M.status_=d,M.statusHandler_&&M.statusHandler_())},rR=function(M){M.JSC$16943_eventHandler_.removeAll();
if(M.JSC$16943_xhr_){var d=M.JSC$16943_xhr_;M.JSC$16943_xhr_=null;d.abort();d.dispose()}};
YcD.prototype.getStatus=function(){return this.status_};
YcD.prototype.JSC$16945_readyStateChangeHandler_=function(M){M=M.target;try{if(M==this.JSC$16943_xhr_)a:{var d=_.PX(this.JSC$16943_xhr_),N=this.JSC$16943_xhr_.JSC$7680_lastErrorCode_,R=this.JSC$16943_xhr_.getStatus(),X=this.JSC$16943_xhr_.getResponseText();M=[];if(this.JSC$16943_xhr_.getResponse()instanceof Array){var A=this.JSC$16943_xhr_.getResponse();A.length>0&&A[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,M=A)}if(!(d<3||d==3&&!X&&M.length==0))if(R=R==200||R==206,d==4&&(N==8?ob(this,
7):N==7?ob(this,8):R||ob(this,3)),this.JSC$16943_parser_||(this.JSC$16943_parser_=NDG(this.JSC$16943_xhr_),this.JSC$16943_parser_==null&&ob(this,5)),this.status_>2)rR(this);else{if(M.length>this.JSC$16943_pos_){var l=M.length;N=[];try{if(this.JSC$16943_parser_.acceptsBinaryInput())for(var k=0;k<l;k++){var T=this.JSC$16943_parser_.parse(Array.from(M[k]));T&&(N=N.concat(T))}else{T="";if(!this.JSC$16943_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Qj");this.JSC$16943_textDecoder_=new TextDecoder}for(k=
0;k<l;k++)T+=this.JSC$16943_textDecoder_.decode(M[k],{stream:d==4&&k==l-1});N=this.JSC$16943_parser_.parse(T)}M.splice(0,l);N&&this.dataHandler_(N)}catch(w){ob(this,5);rR(this);break a}}else if(X.length>this.JSC$16943_pos_){k=X.slice(this.JSC$16943_pos_);this.JSC$16943_pos_=X.length;try{var W=this.JSC$16943_parser_.parse(k);W!=null&&this.dataHandler_&&this.dataHandler_(W)}catch(w){ob(this,5);rR(this);break a}}d==4?(X.length!=0||this.hasStreamingResponseData_?ob(this,2):ob(this,4),rR(this)):ob(this,
1)}}}catch(w){ob(this,6),rR(this)}};var ZXY=function(M){M=this.xhrReader_=M;var d=(0,_.gx)(this.onData_,this);M.dataHandler_=d;M=this.xhrReader_;d=(0,_.gx)(this.onStatusChange_,this);M.statusHandler_=d;this.JSC$16947_callbackMap_={};this.callbackOnceMap_={}};
_.F=ZXY.prototype;_.F.on=function(M,d){var N=this.JSC$16947_callbackMap_[M];N||(N=[],this.JSC$16947_callbackMap_[M]=N);N.push(d);return this};
_.F.addListener=function(M,d){this.on(M,d);return this};
_.F.removeListener=function(M,d){var N=this.JSC$16947_callbackMap_[M];N&&_.aN(N,d);(M=this.callbackOnceMap_[M])&&_.aN(M,d);return this};
_.F.once=function(M,d){var N=this.callbackOnceMap_[M];N||(N=[],this.callbackOnceMap_[M]=N);N.push(d);return this};
_.F.onData_=function(M){var d=this.JSC$16947_callbackMap_.data;d&&EM4(M,d);(d=this.callbackOnceMap_.data)&&EM4(M,d);this.callbackOnceMap_.data=[]};
var EM4=function(M,d){for(var N={},R=0;R<M.length;N={message$jscomp$969:void 0},R++)N.message$jscomp$969=M[R],d.forEach(function(X){return function(A){try{A(X.message$jscomp$969)}catch(l){}}}(N))};
ZXY.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:MBT(this,"readable");break;case 5:case 6:case 4:case 7:case 3:MBT(this,"error");break;case 8:MBT(this,"close");break;case 2:MBT(this,"end")}};
var MBT=function(M,d){var N=M.JSC$16947_callbackMap_[d];N&&N.forEach(function(R){try{R()}catch(X){}});
(N=M.callbackOnceMap_[d])&&N.forEach(function(R){R()});
M.callbackOnceMap_[d]=[]};var dob=function(){var M={format:"jspb"};M=M===void 0?{}:M;this.suppressCorsPreflight=M.suppressCorsPreflight||_.cy("suppressCorsPreflight",M)||!1;this.withCredentials=M.withCredentials||_.cy("withCredentials",M)||!1;this.streamInterceptors=M.streamInterceptors||[];this.unaryInterceptors=M.unaryInterceptors||[];this.workerScope=M.workerScope;this.chunkedServerStreaming=M.useFetchDownloadStreams||!1},XCG=function(M,d,N,R,X,A){A=A===void 0?{}:A;
var l=d.substring(0,d.length-X.name.length),k,T=(k=A)==null?void 0:k.signal;return NWY(function(W){return new Promise(function(w,p){if(T==null?0:T.aborted){var m=new _.OF(1,"Aborted");m.cause=T.reason;p(m)}else{var I={},O=RkP(M,W,l);O.on("error",function(y){return void p(y)});
O.on("metadata",function(y){I=y});
O.on("data",function(y){var c=I;c=c===void 0?{}:c;w(new mHD(y,c))});
T&&T.addEventListener("abort",function(){O.cancel();var y=new _.OF(1,"Aborted");y.cause=T.reason;p(y)})}})},M.unaryInterceptors).call(M,htd(X,N,R)).then(function(W){return W.responseMessage})},KR=function(M,d,N,R,X){var A=A===void 0?{}:A;
return XCG(M,d,N,R,X,A)};
dob.prototype.serverStreaming=function(M,d,N,R){var X=this,A=M.substring(0,M.length-R.name.length);return FJT(function(l){var k=l.methodDescriptor,T=l.getMetadata(),W=A9G(X,!1);T=VB9(X,T,W,A+k.getName());var w=lbG(W,k.responseDeserializeFn,!0);l=k.requestSerializeFn(l.requestMessage);W.send(T,"POST",l);return w},this.streamInterceptors).call(this,htd(R,d,N))};
var RkP=function(M,d,N){var R=d.methodDescriptor,X=d.getMetadata(),A=A9G(M,!0);M=VB9(M,X,A,N+R.getName());N=lbG(A,R.responseDeserializeFn,!1);GHJ(N,X["X-Goog-Encode-Response-If-Executable"]==="base64");d=R.requestSerializeFn(d.requestMessage);A.send(M,"POST",d);return N},A9G=function(M,d){d=M.chunkedServerStreaming&&!d;
return M.workerScope||d?new _.sF(new vE({worker:M.workerScope,streamBinaryChunks:d})):new _.sF},VB9=function(M,d,N,R){d["Content-Type"]="application/json+protobuf";
d["X-User-Agent"]="grpc-web-javascript/0.1";var X=d.Authorization;if(X&&ztr.has(X.split(" ")[0])||M.withCredentials)N.JSC$7680_withCredentials_=!0;if(M.suppressCorsPreflight)R=uTd(R,"$httpHeaders",d);else for(M=_.V(Object.keys(d)),X=M.next();!X.done;X=M.next())X=X.value,N.headers.set(X,d[X]);return R},lbG=function(M,d,N){if(N){N=new YcD(M);
var R=new ZXY(N)}return new QV({xhr:M,nodeReadableStream:R},d)},FJT=function(M,d){return d.reduce(function(N,R){return function(X){return R.intercept(X,N)}},M)},NWY=function(M,d){return d.reduce(function(N,R){return function(X){return R.intercept(X,N)}},M)};var $oJ=function(M){this.client_=new dob;this.hostname_=M==void 0?M:M.replace(/\/+$/,"")};
_.F=$oJ.prototype;_.F.JSC$16966_depositGoogleCredential=function(M,d){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",M,d||{},vMG)};
_.F.deleteLink=function(M,d){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",M,d||{},qci)};
_.F.JSC$16966_finishOAuth=function(M,d){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",M,d||{},j0r)};
_.F.getLink=function(M,d){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",M,d||{},s0q)};
_.F.startLinkingSession=function(M,d){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",M,d||{},ScJ)};var BW9=[0,OOJ,1,PGr,[0,_.U1,[0,jqP,-1]],[0,sqi],[0,oFP,-1]];var kfT=function(){this.storage=new Map},Doe=function(M,d,N,R,X){if(!M.storage.has(d))return null;
M=_.V(M.storage.get(d));for(d=M.next();!d.done;d=M.next())if(d=d.value,!X||d.linkName===X)if(N&&d.scopes&&TWe(d.scopes,N)||R&&d.capabilities&&TWe(d.capabilities,R))return d;return null},gDr=function(M,d,N){if(!N)M.storage.delete(d);
else if(M.storage.has(d)){var R=M.storage.get(d).filter(function(X){return X.linkName!==N});
R.length>0?M.storage.set(d,R):M.storage.delete(d)}},TWe=function(M,d){d=_.V(d);
for(var N=d.next();!N.done;N=d.next())if(!M.has(N.value))return!1;return!0};var WJG=function(){var M=_.rK("LINK_GAL_DOMAIN");this.alsDomain1p=_.rK("LINK_GAL_DOMAIN");this.alsDomain3p=M;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},wCd=function(M,d){M.apiKey=d;
return M};
WJG.prototype.build=function(){var M={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Rj");M.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Sj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Tj");M.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(M.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)M.apiKey=
this.apiKey,M.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Uj");M.oauthToken=this.oauthToken;M.alsDomain=this.alsDomain3p}M.clientXd3=this.clientXd3;M.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(M.authUser=this.authUser);this.bucket!==void 0&&(M.bucket=this.bucket);this.completionUrl!==void 0&&(M.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(M.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(M.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(M.locale=this.locale);M.loggerType=this.loggerType;M.clientEnvironment=this.clientEnvironment;M.colorScheme=this.colorScheme;M.showCloseOption=this.showCloseOption;return M};var VT=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(VT,_.Jj);var pCb=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(pCb,_.Jj);var moC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(moC,_.Jj);var $o=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v($o,_.Jj);var hke=function(M){return _.K5(M,1)};var QfD=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(QfD,_.Jj);var $EJ=_.xZ(QfD),lA=[1,2,3,4,5];var FyY=function(M){try{return $EJ(M)}catch(d){return null}},q$e=function(){},Aae=function(M,d){switch(_.qn(d,lA)){case 4:return(d=_.c_(d,moC,4,lA))&&M.logStateTransition(_.K5(d,1)),!0;
case 5:return(d=_.c_(d,pCb,5,lA))&&M.logInternalEvent(_.K5(d,1)),!0}return!1},BD9=function(M){switch(M){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.RC(M)}};var Rh4=function(M,d){var N=this;this.validator=M;this.messageListener=d;this.dismissCallback=function(){IbJ(N,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16995_receiveMessage=function(R){R.type==="message"&&(R=R.event_,R!==null&&(new URL(N.iframe.src)).origin===R.origin&&N.validator(R.data,R.origin)&&!N.messageListener(R.data)&&(N.JSC$16995_resolveCb!==void 0&&N.JSC$16995_resolveCb(R.data),vDD(N)))}},ltb=function(M,d,N){M.uiHandler!==void 0&&IbJ(M,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(R,X){M.JSC$16995_resolveCb=R;M.JSC$16995_rejectCb=X;M.iframe=document.createElement("iframe");_.s0(M.iframe,d);M.uiHandler=N.displayContent(M.iframe,M.dismissCallback);_.lI(window,"message",M.JSC$16995_receiveMessage,!1,M)})},IbJ=function(M,d){M.JSC$16995_rejectCb!==void 0&&M.JSC$16995_rejectCb(d);
vDD(M)},vDD=function(M){M.uiHandler!==void 0&&M.uiHandler.hideContent();
_.p2(window,"message",M.JSC$16995_receiveMessage,!1,M);M.JSC$16995_resolveCb=void 0;M.JSC$16995_rejectCb=void 0;M.uiHandler=void 0;M.iframe=void 0};var OQC=function(M){if(M===2){var d;M=((d=window)==null?0:d.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return M},VFG=function(M){M=OQC(M);
switch(M){case 0:return"light";case 1:return"dark";default:_.RC(M)}};var XmJ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),jfT=function(M,d){this.JSC$17007_linkingSession=M;this.noticeConfig=d;this.displayInfoMap=new Map;var N=new Map;if(_.p5(this.JSC$17007_linkingSession,roq,7))for(M=_.uk(this.JSC$17007_linkingSession,roq,7),M=_.Uq(M,oMY,1,_.uC()),M=_.V(M),d=M.next();!d.done;d=M.next())d=d.value,N.set(_.K5(d,1),_.Hu6(_.uk(d,_.AgN,3)));if(N.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){d=this.noticeConfig.enabledDataUsageNoticeUis;M=d.has(0)?N.get(1):void 0;d=d.has(1)?N.get(2):void 0;N=M!==void 0&&d!==void 0?N.get(3):void 0;var R=this.noticeConfig.nestedOrigins;var X=new QfD;var A=new VT;X=_.EA(X,2,lA,A);A=new QfD;var l=new VT;A=_.EA(A,3,lA,l);l=[];M!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:M,lastEvent:X,nestedOrigins:R}]),l.push({trustedUrl:M,lastEvent:X,nestedOrigins:R}));d!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:d,lastEvent:A,nestedOrigins:R}]),l.push({trustedUrl:d,lastEvent:A,nestedOrigins:R}));N!==void 0?this.displayInfoMap.set(3,[{trustedUrl:N,lastEvent:A,nestedOrigins:R}]):this.displayInfoMap.set(3,l)}};var sfe=function(M){var d=new kfT;this.galService=M;this.galCache=d};
sfe.prototype.getLink=function(M){var d=M.serviceId;var N=M.scopes;var R=M.capabilities;var X=M.linkName;var A=this,l;return _.B(function(k){if(R!==void 0&&N!==void 0)throw Error("Vj");l=Doe(A.galCache,d,N,R,X);return l!==null?k.return(l):k.return(A.galService.getLink({serviceId:d,sessionId:Math.floor(Math.random()*2147483648),scopes:N,capabilities:R,linkName:X}).then(function(T){T=Wy9(T);var W=A.galCache;W.storage.has(d)?W.storage.get(d).push(T):W.storage.set(d,[T]);return T}))})};
sfe.prototype.deleteLink=function(M,d,N){var R=this;return _.B(function(X){gDr(R.galCache,M,N);return X.return(R.galService.deleteLink({serviceId:M,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:d,linkName:N}).then(function(){return!0}))})};var oDb=function(M,d){var N=this;this.validator=M;this.msgHandler=d;this.closedPopupTimeout=this.JSC$17029_rejectCb=this.JSC$17029_resolveCb=this.popup=null;this.JSC$17029_receiveMessage=function(R){if(R!==null&&(R=R.event_,R.source===N.popup)){var X=R.data;if(N.validator(X,R.origin)){var A;(A=N.msgHandler)!=null&&A.call(N,X)||(N.JSC$17029_resolveCb!==null&&N.JSC$17029_resolveCb(X),PBG(N))}}}};
oDb.prototype.open=function(M,d){var N=this;this.popup!==null&&r9G(this);return new Promise(function(R,X){N.JSC$17029_resolveCb=R;N.JSC$17029_rejectCb=X;N.popup=_.oO(window,M,"",d);_.lI(window,"message",N.JSC$17029_receiveMessage,!1,N);KJr(N)})};
var r9G=function(M,d){M.JSC$17029_rejectCb!==null&&M.JSC$17029_rejectCb(d);PBG(M)},PBG=function(M){M.closedPopupTimeout&&(M.closedPopupTimeout.cancel(),M.closedPopupTimeout=null);
M.popup&&M.popup.close();_.p2(window,"message",M.JSC$17029_receiveMessage,!1,M);M.popup=null;M.JSC$17029_resolveCb=null;M.JSC$17029_rejectCb=null},KJr=function(M){M.closedPopupTimeout=_.S_V(100).then(function(){M.popup?M.popup.closed?y9J(M):KJr(M):r9G(M,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},y9J=function(M){M.closedPopupTimeout=_.S_V(100).then(function(){r9G(M,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var J9b=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),c94=function(M,d,N,R,X,A,l,k,T,W){var w=this;this.serviceId=M;this.sessionId=d;this.galService=N;this.oauthDetails=R;this.galLogger=X;this.interactionMode=A;this.redirectServiceUrl=l;this.consentLanguageKeys=k;this.dynamicUrlParameters=T;this.partnerConfigMinReadTimestamp=W;this.started=!1;this.JSC$17035_dataValidator=function(p,
m){var I=J9b.has(m);I||w.redirectServiceUrl===void 0||(I=w.redirectServiceUrl===m);return I?p.sentinel==="gdi":!1}};
c94.prototype.complete=function(){var M=this,d;return _.B(function(N){if(M.interactionMode!==1)return N.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=ko.getRedirectStateFromUri();return d===null?N.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):N.return(S$Y(M,d))})};
c94.prototype.start=function(){var M=this,d;return _.B(function(N){if(M.started)return N.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.rP(M.oauthDetails,1))return N.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(M.interactionMode===1)return ko.setLocation(_.rP(M.oauthDetails,1)),N.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));M.started=!0;M.galLogger.logStateTransition(5);
d=ko.getPostMessagePopup(M.JSC$17035_dataValidator);return N.return(d.open(_.rP(M.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(R){M.started=!1;var X=M.galLogger;if((R==null?void 0:R.error)!==void 0)throw X.logInternalEvent(59),Error("Wj");if((R==null?void 0:R.redirect_state)===void 0)throw X.logInternalEvent(131),Error("Xj");return S$Y(M,R.redirect_state)}).catch(function(R){M.started=
!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var S$Y=function(M,d){return _.B(function(N){return N.return(zki(M.galService,{serviceId:M.serviceId,sessionId:M.sessionId,dynamicUrlParameters:M.dynamicUrlParameters,redirectState:d,consentLanguageKeys:M.consentLanguageKeys,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp}).then(function(R){var X={statusCode:1,link:Wy9(R.getLink())};BcD(_.hi(R,3))!==void 0&&(X.callerState=BcD(_.hi(R,3)));M.galLogger.logInternalEvent(134);return X}))})},ko={getPostMessagePopup:function(M){return new oDb(M)},
getRedirectStateFromUri:function(){var M=_.Kk(ko.getLocation()).fragment_;return(new _.N2(M)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(M){_.nS(window.location,_.gH(M))},
createOAuthFlow:function(M,d){return new c94(M.serviceId,M.sessionId,M.galService,d,M.galLogger,M.interactionMode,M.redirectServiceUrl,M.consentLanguageKeys,M.dynamicUrlParameters,M.partnerConfigMinReadTimestamp)}};var bQ$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(bQ$,_.Jj);var ekJ=_.xZ(bQ$);var HQT=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),nD9=function(M,d,N,R,X,A,l,k,T){var W=this;this.serviceId=M;this.sessionId=d;this.galService=N;this.gsiWebFlowDetails=R;this.colorScheme=X;this.showCloseOption=A;this.galLogger=l;this.interactionMode=k;this.redirectServiceUrl=T;this.started=!1;this.JSC$17047_dataValidator=function(w,p){var m=HQT.has(p);m||W.redirectServiceUrl===
void 0||(m=W.redirectServiceUrl===p);return m?w.sentinel==="gal":!1};
this.logEventProcessor=function(w){return w.result?(w=FyY(w.result))?Aae(W.galLogger,w):!1:!1}};
nD9.prototype.complete=function(){var M=this,d,N;return _.B(function(R){if(M.interactionMode!==1)return R.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));d=Tm.getRedirectStateFromUri();if(d===void 0)return M.galLogger.JSC$16987_logErrorEvent(131),R.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return N=iQe(M,d),R.return(fbT(M,N))}catch(X){return R.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
nD9.prototype.start=function(){var M=this,d;return _.B(function(N){if(M.started)return N.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.rP(M.gsiWebFlowDetails,1))return N.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(M.interactionMode===1)return Tm.setLocation(LJ4(M,_.rP(M.gsiWebFlowDetails,1))),N.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
M.started=!0;d=Tm.getPostMessagePopup(M.JSC$17047_dataValidator,M.logEventProcessor);return N.return(d.open(LJ4(M,_.rP(M.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(R){M.started=!1;if((R==null?void 0:R.result)===void 0)throw M.galLogger.JSC$16987_logErrorEvent(131),Error("Xj");R=iQe(M,R.result);return fbT(M,R)}).catch(function(R){M.started=!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var LJ4=function(M,d){M=["result_channel",M.interactionMode===1?"2":"1","color_scheme",VFG(M.colorScheme),"show_close_option",M.showCloseOption];return JIb(d,M)},fbT=function(M,d){if(d!==null&&_.p5(d,$o,2)){var N,R=d==null?void 0:(N=_.uk(d,$o,2))==null?void 0:_.K5(N,2);
R&&M.galLogger.JSC$16987_logErrorEvent(BD9(R));return hke(_.uk(d,$o,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return M.galService.getLink({serviceId:M.serviceId,sessionId:M.sessionId,consistencyKey:_.rP(d,1)}).then(function(X){X=Wy9(X);M.galLogger.logInternalEvent(134);return{statusCode:1,link:X}})},iQe=function(M,d){d=ekJ(d);
if(!_.p5(d,$o,2)&&_.rP(d,1)==="")throw M.galLogger.JSC$16987_logErrorEvent(5),Error("Yj");return d},Tm={getPostMessagePopup:function(M,d){return new oDb(M,d)},
getRedirectStateFromUri:function(){return _.yf(_.Kk(Tm.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(M){_.nS(window.location,_.gH(M))},
createStreamlinedFlow:function(M,d){return new nD9(M.serviceId,M.sessionId,M.galService,d,M.colorScheme,M.showCloseOption,M.galLogger,M.interactionMode,M.redirectServiceUrl)}};var Kyq=function(){var M=_.Qni("GAL");this.storage=M?new _.w2(M):null};var yV=function(){};
_.v(yV,q$e);yV.prototype.logStateTransition=function(){};
yV.prototype.logInternalEvent=function(){};
yV.prototype.JSC$16987_logErrorEvent=function(){};var tBq=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(tBq,_.Jj);tBq.prototype.getCompletionUrl=function(){return _.rP(this,15)};var J3=function(M,d,N,R,X,A){this.serviceId=M;this.environment=d;this.sessionId=N;this.colorSchemeSelected=R;this.colorThemeDisplayed=X;this.JSC$17060_transport=A;this.currentState=1};
_.v(J3,q$e);J3.prototype.logStateTransition=function(M){var d=Gfi(this);d=_.CE(d,3,this.currentState);d=_.CE(d,1,M);this.currentState=M;M=acC(1);this.dispatch(d,M)};
J3.prototype.logInternalEvent=function(M){M=acC(M);this.dispatch(Gfi(this),M)};
J3.prototype.JSC$16987_logErrorEvent=function(M){var d=Gfi(this);d=_.CE(d,1,10);M=acC(M);this.dispatch(d,M)};
var Gfi=function(M){var d=new tBq;d=_.CE(d,1,M.currentState);d=_.VZ(d,7,M.serviceId);var N,R;var X=((N=window)==null?0:(R=N.location)==null?0:R.href)?_.Kk(window.location.href).JSC$7917_domain_:"NO_PACKAGE_NAME";N=_.VZ(d,8,X);N=_.CE(N,6,M.environment);N=_.VZ(N,5,"100");N=_.CE(N,11,M.colorSchemeSelected);return _.CE(N,12,M.colorThemeDisplayed)};
J3.prototype.dispatch=function(M,d){d===void 0&&(d=new _.AY);var N=d;M=M.serialize();N=_.VZ(N,8,M);_.Ti(N,12,this.sessionId);this.JSC$17060_transport.dispatch(d)};var abG=function(M,d){this.loggerType=M;this.sessionIndex=d!=null?d:0},Uo$;
abG.prototype.create=function(M,d,N,R,X){switch(this.loggerType){case 0:return new yV;case 1:return Uo$||(Uo$=(new _.NQ(555,this.sessionIndex.toString())).build()),new J3(M,d,N,R,X,Uo$);default:_.RC(this.loggerType,"unknown logger type")}};var De=[6,2,3,1],zhd=new Map([[4,1],[1,6],[2,2],[3,3]]),hhb={statusCode:7,statusMessage:"Failed to create flow object"},oCe=function(M,d,N,R,X,A,l,k,T,W){this.serviceId=M;this.sessionId=d;this.config=N;this.galService=R;this.JSC$17067_linkingSession=X;this.googleScopes=A;this.callerState=l;this.consentLanguageKeys=k;this.dynamicUrlParameters=T;this.partnerConfigMinReadTimestamp=W;this.currentFlow=0;R=this.JSC$17067_linkingSession;X=new Set;_.p5(R,OHT,1)&&X.add(1);_.p5(R,yoJ,2)&&_.p5(R,j_i,6)&&X.add(2);
_.p5(R,K$9,3)&&_.p5(R,j_i,6)&&X.add(3);_.p5(R,Par,4)&&X.add(6);this.supportedFlows=X;R=N.loggerType;X=N.clientEnvironment;a:{A=N.colorScheme;switch(A){case 0:A=1;break a;case 1:A=2;break a;case 2:A=3;break a;default:_.RC(A)}A=void 0}a:{l=N.colorScheme;l=OQC(l);switch(l){case 0:l=1;break a;case 1:l=2;break a;default:_.RC(l)}l=void 0}this.galLogger=(new abG(R,N.authUser)).create(M,X,d,A,l)},CBG=function(M){return new Promise(function(d){var N,R,X,A,l,k,T,W,w,p;
return _.B(function(m){switch(m.nextAddress){case 1:N=s_e(M.currentFlow,M.supportedFlows),R=!1,X=new jfT(M.JSC$17067_linkingSession,M.config.dataUsageNoticeConfig);case 2:if(N===void 0){m.jumpTo(4);break}_.Mv(m,5);var I=X,O=N,y=void 0;R?O===1&&(y=I.displayInfoMap.get(2)):O===2||O===3?y=I.displayInfoMap.get(1):O===1&&(y=I.displayInfoMap.get(3));A=y?y:[];l=M.consentLanguageKeys;k=_.V(A);T=k.next();case 7:if(T.done)return M.currentFlow=N,_.D(m,qXG(u3r(M,l)),11);W=T.value;return _.D(m,kad(W,M.config.dataUsageNoticeConfig.uiAdapter,
M.config.colorScheme,M.galLogger),10);case 10:w=m.yieldResult;if(w.statusCode!==1)return ya9(M.serviceId),M.currentFlow=0,d(BH({statusCode:w.statusCode,statusMessage:w.statusMessage},M.callerState)),m.return();w.consentLanguageKeys!==void 0&&(l=w.consentLanguageKeys);T=k.next();m.jumpTo(7);break;case 11:p=m.yieldResult;if(p.statusCode!==10)return p.statusCode!==6&&(ya9(M.serviceId),M.currentFlow=0),p.statusCode!==1&&M.callerState!==void 0&&(p.callerState=M.callerState),d(p),m.return();_.cJ(m,6);break;
case 5:_.Fg(m);case 6:N=s_e(M.currentFlow,M.supportedFlows);R=!0;m.jumpTo(2);break;case 4:ya9(M.serviceId),M.currentFlow=0,d(BH({statusCode:12,statusMessage:"Linking failed"},M.callerState)),_.Vy(m)}})})},caJ=function(M,d,N){M.currentFlow=d;
return It$(u3r(M,N)).then(function(R){return R.statusCode===10&&M.config.interactionMode===1&&s_e(M.currentFlow,M.supportedFlows)!==void 0?CBG(M):R})},u3r=function(M,d){return{flowParams:{serviceId:M.serviceId,
sessionId:M.sessionId,galService:M.galService,galLogger:M.galLogger,interactionMode:M.config.interactionMode,redirectServiceUrl:M.config.redirectServiceUrl,colorScheme:M.config.colorScheme,consentLanguageKeys:d,dynamicUrlParameters:M.dynamicUrlParameters,showCloseOption:M.config.showCloseOption,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp},currentFlow:M.currentFlow,config:M.config,session:M.JSC$17067_linkingSession,googleScopes:M.googleScopes,callerState:M.callerState}};var atJ=function(M,d){this.config=M;this.galService=d.getService();this.JSC$17080_galRepository=d.JSC$17117_galRepository};
atJ.prototype.getLink=function(M,d){return xoG(this,M,d)};
var xoG=function(M,d,N){return M.JSC$17080_galRepository.getLink({serviceId:d,scopes:void 0,capabilities:void 0,linkName:N}).then(function(R){return{statusCode:1,link:R}}).catch(function(R){return{statusCode:bHd(R.code),
statusMessage:R.message}})};
atJ.prototype.deleteLink=function(M,d){return this.JSC$17080_galRepository.deleteLink(M,this.config.accountLinkingEntryPoint,d).then(function(){return{statusCode:1}}).catch(function(N){return{statusCode:bHd(N.code),
statusMessage:N.message}})};
atJ.prototype.startLinkingSession=function(M){var d=M.serviceId;var N=M.sessionId;return rai({serviceId:d,sessionId:N!==void 0?N:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:M.loginHint,callerState:M.callerState,consentLanguageKeys:M.consentLanguageKeys,linkName:M.linkName,dynamicUrlParameters:M.dynamicUrlParameters,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp})};var eh$=null,ftP=new WeakMap;var Y$C=function(){};
Y$C.prototype.send=function(M,d){Gai(M);return this.makeRequest(M).then(function(N){if(d){var R=new d;if(N!=null){if(d==null)throw Error("$j");new d;throw Error("bk");}N=R}return N})};var ZQJ=function(M,d,N,R,X){this.gapiUrl=M;this.gapiKey=d;this.gapiConfigUpdates=N||{};this.gapiAuthParams=R||{};this.defaultApiId=X};
_.v(ZQJ,Y$C);var MtD=function(M){return nCT().then(function(d){d=d||window.gapi;ED9(M,d);return tFr(d,{apiKey:M.gapiKey,clientId:M.gapiAuthParams.clientId,scope:M.gapiAuthParams.scope,hostedDomain:M.gapiAuthParams.hostedDomain,fetchBasicProfile:M.gapiAuthParams.fetchBasicProfile}).then(function(){return d})})};
ZQJ.prototype.makeRequest=function(M){var d=this;return MtD(this).then(function(N){return _.B(function(R){if(R.nextAddress==1)return d.gapiAuthParams.minAuthTokenTimeRemaining===void 0?R.jumpTo(2):_.D(R,Lyd(N,d.gapiAuthParams.minAuthTokenTimeRemaining),2);ED9(d,N);return R.return(dbG(N.client.request({root:d.gapiUrl,path:M.path,method:M.httpMethod,body:M.body,params:M.queryParams,headers:M.headers,authType:M.authType,apiId:M.apiId||d.defaultApiId})))})})};
var dbG=function(M){return new Promise(function(d,N){M.then(function(R){d(R.result===!1&&R.body!=null?{data:R.body}:R.result)},function(R){N(R.result===!1&&R.body!=null?{data:R.body}:R.result)})})},ED9=function(M,d){for(var N in M.gapiConfigUpdates)if(M.gapiConfigUpdates.hasOwnProperty(N)){var R=d,X=N,A=M.gapiConfigUpdates[N],l=R.config.get(X);
A!==l&&R.config.update(X,A)}};
ZQJ.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var cE=function(M,d,N,R,X,A,l,k){this.apiKey=d;this.authUser=N;this.oauthToken=R;this.bucket=X;this.locale=l;this.galSdkEventHandler=k;if(R===void 0){if(d===void 0)throw Error("ck");this.requestService=new ZQJ(M,d,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":A===void 0||A===!1,"client/xd3":A===!0})}this.galServiceClient=new $oJ(M)};
cE.prototype.deleteLink=function(M){var d=M.serviceId;var N=M.sessionId;var R=M.accountLinkingEntryPoint;var X=M.linkName;var A=this,l;return _.B(function(k){var T=(new WE).setHeader(SK(A,N));var W=Nzq({serviceId:d,linkName:X});T=_.ZG(T,2,W);l=_.z7(T,3,R);return k.return(A.makeRequest(A.galServiceClient.deleteLink,l,[1,3],[2,4]))})};
var zki=function(M,d){var N=d.serviceId;var R=d.sessionId;var X=d.dynamicUrlParameters;var A=d.redirectState;var l=d.consentLanguageKeys;var k=d.partnerConfigMinReadTimestamp;var T;return _.B(function(W){var w=(new pR).setHeader(SK(M,R,X));w=_.U$(w,2,N);T=_.U$(w,4,A);l!==void 0&&_.U$(T,5,l);k!==void 0&&_.ZG(T,6,k);return W.return(M.makeRequest(M.galServiceClient.JSC$16966_finishOAuth,T,[1,3],[2,4]))})};
cE.prototype.getLink=function(M){var d=M.serviceId;var N=M.sessionId;var R=M.scopes;var X=M.capabilities;var A=M.consistencyKey;var l=M.linkName;var k=this,T;return _.B(function(W){var w=(new mu).setHeader(SK(k,N)),p=Nzq({serviceId:d,scopes:R,capabilities:X,linkName:l});T=_.ZG(w,2,p);A!==void 0&&(w=gMr(),w=_.U$(w,2,A),_.ZG(T,3,w));return W.return(k.makeRequest(k.galServiceClient.getLink,T,[1,3],[2,4]))})};
var vCG=function(M,d){var N=d.serviceId;var R=d.sessionId;var X=d.googleScopes;var A=d.consistencyKey;var l;return _.B(function(k){var T=(new wR).setHeader(SK(M,R));T=_.U$(T,2,N);var W=Array.from(X.values());T=_.ws(T,3,W,_.cP);W=gMr();W=_.U$(W,2,A);l=_.ZG(T,4,W);return k.return(M.makeRequest(M.galServiceClient.JSC$16966_depositGoogleCredential,l,[1,3],[2,4]))})};
cE.prototype.startLinkingSession=function(M){var d=M.serviceId;var N=M.sessionId;var R=M.scopes;var X=M.capabilities;var A=M.loginHint;var l=M.supportedFlows;var k=M.completionUrl;var T=M.usePingPong;var W=M.twoWayLinking;var w=M.accountLinkingEntryPoint;var p=M.callerState;var m=M.consentLanguageKeys;var I=M.googleScopes;var O=M.dataUsageNoticeConfig;var y=M.linkName;var c=M.dynamicUrlParameters;var e=M.partnerConfigMinReadTimestamp;var t=this,C,U;return _.B(function(Fi){if(X!==void 0&&R!==void 0)throw Error("Vj");
var Y=(new h3).setHeader(SK(t,N,c));C=_.U$(Y,2,d);y!==void 0&&_.U$(C,14,y);if(X!==void 0){Y=C;var $i=Array.from(X.values());_.ws(Y,5,$i,_.cP)}else R!==void 0&&(Y=C,$i=Array.from(R.values()),_.ws(Y,3,$i,_.cP));k!==void 0&&_.U$(C,6,k);T!==void 0&&_.hX(C,15,T);l!==void 0&&(Y=C,$i=Array.from(l.values()),_.ws(Y,4,$i,_.Tb));if(W!==void 0){if(W&&(!I||I.size===0))throw Error("dk");_.hX(C,8,W)}w!==void 0&&_.z7(C,9,w);A!==void 0&&_.U$(C,13,A);p!==void 0&&(Y=C,$i=(new TextEncoder).encode(p),_.m1(Y,12,_.zo($i,
!1),_.SJ()));m!==void 0&&_.U$(C,16,m);e!==void 0&&_.ZG(C,18,e);if(O!==void 0&&O.size>0||I!==void 0&&I.size>0)U=new coP,I!==void 0&&I.size>0&&(Y=U,$i=Array.from(I.values()),_.ws(Y,1,$i,_.cP)),O!==void 0&&(O.has(0)&&_.Vi6(U,2,_.Tb,1,_.WP),O.has(1)&&_.Vi6(U,2,_.Tb,2,_.WP)),_.ZG(C,17,U);return Fi.return(t.makeRequest(t.galServiceClient.startLinkingSession,C,[1],[2]))})};
cE.prototype.getMetadata=function(){var M=this,d,N,R;return _.B(function(X){if(X.nextAddress==1)return d={},M.requestService?_.D(X,MtD(M.requestService),3):(d.Authorization="Bearer "+M.oauthToken,X.jumpTo(2));X.nextAddress!=2&&(N=X.yieldResult,d["X-Goog-Api-Key"]=M.apiKey,d["X-Goog-AuthUser"]=M.authUser!==void 0?M.authUser.toString():"0",(R=N.auth.getAuthHeaderValueForFirstParty([]))&&(d.Authorization=R));M.locale&&(d["accept-language"]=M.locale);return X.return(d)})};
cE.prototype.makeRequest=function(M,d,N,R){var X=this,A;return _.B(function(l){if(l.nextAddress==1)return _.D(l,X.getMetadata(),2);A=l.yieldResult;RXq(X,N);return l.return(M.bind(X.galServiceClient)(d,A).finally(function(){RXq(X,R)}))})};
var RXq=function(M,d){M.galSdkEventHandler!==void 0&&d.forEach(function(N){M.galSdkEventHandler.onEvent(N)})},SK=function(M,d,N){var R=new T$;
d=_.m1(R,2,_.hd(d),0);d=_.z7(d,5,3);N=_.ws(d,8,N,_.cP);M.bucket!==void 0&&_.U$(N,1,M.bucket);return N},Nzq=function(M){var d=M.serviceId;
var N=M.scopes;var R=M.capabilities;M=M.linkName;if(R!==void 0&&N!==void 0)throw Error("Vj");var X=new T59;d=_.U$(X,1,d);R!==void 0?(N=Array.from(R.values()),_.ws(d,5,N,_.cP)):N!==void 0&&(N=Array.from(N.values()),_.ws(d,3,N,_.cP));M!==void 0&&_.U$(d,6,M);return d};var UET=function(M){this.galService=new cE(M.alsDomain,M.apiKey,M.authUser,M.oauthToken,M.bucket,M.clientXd3,M.locale,M.galSdkEventHandler);this.JSC$17117_galRepository=new sfe(this.galService)};
UET.prototype.getService=function(){return this.galService};var XaG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(XaG,_.Jj);var FSe=function(M){var d=new XaG;return _.CE(d,1,M)};
XaG.prototype.setErrorMessage=function(M){return _.VZ(this,2,M)};var AuG=[0,_.C5,_.G7,_.C5];var z$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(z$,_.Jj);var Vt$=[0,[1,2,3],_.ub,[0,Qq4,vF4,-1],_.ub,[0,IMe,-1],_.J7p];var l7q=[0,_.L5,1,_.C5,_.G7,-1,1,_.zsv,_.f5,_.C5,-1,Vt$];var $bP=[0,_.C5,[0,_.zsv,_.f5,[0,_.G7]],_.ti,[0,_.C5,-1]];var xo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(xo,_.Jj);var Bzd=[0,_.G7,_.C5,-2,_.L5,_.C5,_.L5,_.C5,-2,1,_.ti];var kM4=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(kM4,_.Jj);var Tzq=[0,_.L5];var Db9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Db9,_.Jj);var g_Y=[0,_.C5,$bP,Tzq,Bzd,l7q];var O6r=_.uO(Db9,g_Y);var WSC=[0,BW9];var K3i=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(K3i,_.Jj);var waG=[0,[1,3],rID,_.C5,rID];var uA=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(uA,_.Jj);var pa4=[0,_.C5];var mb4=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(mb4,_.Jj);var Co=function(M){return _.c_(M,XaG,2,UE)},hXT=function(M){var d=new mb4;
return _.EA(d,2,UE,M)},UE=[1,
2];var Q1T=[0,UE,_.ub,pa4,_.ub,AuG,_.U1,waG,1,_.C5,WSC];var qe$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(qe$,_.Jj);var v_D=function(M){var d=new qe$;return _.EA(d,3,I7e,M)},I7e=[2,
3];var bo=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(bo,_.Jj);var Ot$=function(M,d){return _.ZG(M,2,d)},j1d=function(M,d){return _.ZG(M,8,d)},s1q=function(M,d){return _.ZG(M,3,d)};var P5r=[0,_.C5,Q1T,g_Y,_.iKJ,[0,[5,6],[0,_.C5,-2],[0,_.L5,_.C5,_.G7],[0,Vt$],[0,_.G7,_.C5,-1,_.nZL],_.ub,[0,[0,_.L5],_.C5,-1],_.ub,[0,[3,4],_.C5,-1,_.ub,[0,[0,_.C5,_.ti]],_.ub,[0,[0,[0,[1,2],_.ub,[0],_.ub,[0]],_.C5]]]],_.iKJ,-1,[0,I7e,_.C5,_.ub,pa4,_.ub,AuG,_.U1,waG,[0,BW9]]];var o_Y=_.uO(bo,P5r),ru$=_.CK(P5r);var KSD=function(){_.DL.call(this)};
_.v(KSD,_.DL);KSD.prototype.init=function(){};
new KSD;var yud=_.a1(["data-"]),Jur=_.a1(["aria-"]),cur=_.a1(["aria-"]),eK=function(M,d){this.isLatencyMeasurementExperiment=M===void 0?!1:M;this.enableDialogA11yFix=d===void 0?!1:d;this.JSC$17146_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Bsg(_.Np.location.href)},sTb=function(M,d){M.onConsentPrimitiveShownCallback=d},SeD=function(M,d){return M.overriddenIframeLoadTimeout?M.overriddenIframeLoadTimeout:d!==void 0?d:5E3},oQe=function(M){if(M.prewarmPromise!==void 0)return M.prewarmPromise;
M.prewarmPromise=new Promise(function(d,N){HE(M,1);zXY(M,btG(M,!0),eXP(M));M.iframe?M.prewarmChannel||Hti(M,M.iframe,d):N(Error("ek"))});
M.prewarmPromise.finally(function(){M.prewarmPromise=void 0});
return M.prewarmPromise};
eK.prototype.showPrimitive=function(){var M=this;if(this.consentPromise!==void 0)return this.consentPromise;var d=Date.now();n_9(this,d);this.consentPromise=new Promise(function(N,R){HE(M,0,d);var X=M.isDarkTheme();M.isLatencyMeasurementExperiment||M.initialLoadingStrategy===1||M.initialLoadingStrategy===2||(M.loadingBar||(M.loadingBar=YX4(getComputedStyle(document.body).direction==="rtl",X),M.loadingBar.style.position="fixed",M.loadingBar.style.zIndex="15000"),document.body.appendChild(M.loadingBar));
zXY(M,btG(M),eXP(M));M.iframe?M.channel||itr(M,M.iframe,N,R):(f7r(M),R(Error("ek")))});
this.consentPromise.finally(function(){M.consentPromise=void 0});
return this.consentPromise};
var itr=function(M,d,N,R){var X,A;_.B(function(l){switch(l.nextAddress){case 1:HE(M,3);X=!1;setTimeout(function(){if(!X){f7r(M);LSD(M);ttT(M);var k=FSe(7).setErrorMessage("Timeout connecting to iframe");N(j1d(Ot$(new bo,hXT(k)),v_D(k)))}},SeD(M,GMJ(M)));
if(!M.prewarmPromise){l.jumpTo(2);break}_.Mv(l,3);return _.D(l,M.prewarmPromise,5);case 5:_.cJ(l,2);break;case 3:_.Fg(l),A=FSe(4).setErrorMessage("Error while prewarming."),N(j1d(Ot$(new bo,hXT(A)),v_D(A)));case 2:M.prewarmChannel&&M.prewarmChannel.send(ru$(s1q(new bo,M.consentPrimitiveRequest))),M.channel=_.Zk({destination:M.JSC$17146_win,iframe:d,origin:a7J(M),channelName:"cpw",onEstablished:function(){X=!0;f7r(M);M.isLatencyMeasurementExperiment||(M.JSC$17146_previousBodyOverflow=document.body.style.overflow,
M.JSC$17146_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,M.JSC$17146_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",M.enableDialogA11yFix&&window.addEventListener("blur",M.focusChangeListener));var k=M.iframe;k.style.bottom="0";k.style.position="fixed";k.style.right="0";k.style.border="none";k.style.left="0";k.style.top=
"0";k.style.zIndex="5000";k.style.pointerEvents="";k.style.visibility="";M.initialLoadingStrategy===2||M.initialLoadingStrategy===3?HE(M,4):HE(M,6);var T;(T=M.onConsentPrimitiveShownCallback)==null||T.call(M)},
onMessage:function(k){k=o_Y(k.data);switch(_.K5(k,1)){case 1:LSD(M);var T=ZHb(_.uk(k,_.eB,7));T&&(M.initialLoadingStrategy!==2&&M.initialLoadingStrategy!==3||HE(M,6,T),HE(M,5,T));if(T=ZHb(_.uk(k,_.eB,6)))HE(M,7,T),HE(M,8);var W,w;((W=_.uk(k,mb4,2))==null?void 0:_.qn(W,UE))!==0&&((w=_.uk(k,qe$,8))==null?void 0:_.qn(w,I7e))!==0||R(Error("fk"));N(k);break;case 2:ttT(M)}}}),_.Vy(l)}})},Hti=function(M,d,N){M.prewarmChannel=_.Zk({destination:M.JSC$17146_win,
iframe:d,origin:a7J(M),channelName:"pwcp",onEstablished:function(){HE(M,2);N()}})},a7J=function(M){var d=_.XC(M.src).toString();
return d&&d.indexOf("://")<0&&d.indexOf("//")!==0?M.origin:_.Bsg(d)},btG=function(M,d){d=d===void 0?!1:d;
var N,R=new Map([["origin",M.origin],["hl",(N=UbG(M))!=null?N:null]]);d&&R.set("pw","1");d=_.V([["cpr",M.consentPrimitiveRequest.serialize()]]);for(N=d.next();!N.done;N=d.next()){var X=_.V(N.value);N=X.next().value;X=X.next().value;R.set(N,X)}M.isDarkTheme()&&R.set("color_scheme","dark");return _.CI(M.src,R)},f7r=function(M){M.isLatencyMeasurementExperiment||M.loadingBar&&document.body.removeChild(M.loadingBar)};
eK.prototype.getSrc=function(){var M=_.GN(this.origin),d;var N=(d=_.uk(this.consentPrimitiveRequest,kM4,3))==null?void 0:_.Cy(d,1);d="consent.google.com";N=N?"/u/"+encodeURIComponent(N.toString()):"";(M==null?0:M.endsWith("youtube.com"))?d="consent.youtube.com":(M=M==null?void 0:M.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(d="consent.google."+((M[1]?"co.":"")+encodeURIComponent(M[2])));return _.RO("https://"+d+"/signedin"+N+"/landing")};
var zXY=function(M,d,N){M.iframe||(M.iframe=document.createElement("iframe"),M.iframe.style.width="100%",M.iframe.style.height="100%",N!==112496729&&(M.iframe.style.colorScheme="auto"),M.isLatencyMeasurementExperiment&&(M.iframe.style.display="none"),_.s0(M.iframe,d),M.iframe.setAttribute("jsname","C5o1O"),uU$(M.iframe),document.body.appendChild(M.iframe))},uU$=function(M){M.style.bottom="-200vh";
M.style.position="fixed";M.style.right="-200vw";M.style.border="";M.style.left="";M.style.top="";M.style.zIndex="";M.style.pointerEvents="none";M.style.visibility="hidden"},LSD=function(M){M.iframe&&(M.isLatencyMeasurementExperiment||(M.JSC$17146_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=M.JSC$17146_previousHtmlOverscroll),M.JSC$17146_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=M.JSC$17146_previousBodyOverscroll),M.JSC$17146_previousBodyOverflow!==
void 0&&(document.body.style.overflow=M.JSC$17146_previousBodyOverflow),M.enableDialogA11yFix&&C5q(M,!1)),uU$(M.iframe))};
eK.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(C5q(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var C5q=function(M,d){var N,R,X=(N=M.iframe)==null?void 0:(R=N.parentElement)==null?void 0:R.children;if(X)for(N=0;N<X.length;N++)R=X[N],R!==M.iframe&&(d?(R.hasAttribute("aria-hidden")&&_.by([_.a2(yud)],R,"data-old-aria-hidden",R.getAttribute("aria-hidden")),_.by([_.a2(Jur)],R,"aria-hidden","true")):(R.removeAttribute("aria-hidden"),R.hasAttribute("data-old-aria-hidden")&&(_.by([_.a2(cur)],R,"aria-hidden",R.getAttribute("data-old-aria-hidden")),R.removeAttribute("data-old-aria-hidden"))))},HE=function(M,
d,N){var R;
(R=M.latencyCallback)==null||R.call(M,{latencyType:d,timestampEpochMillis:N!=null?N:Date.now()})};var xb9=function(M,d,N){eK.call(this,d,N===void 0?!1:N);this.consentPrimitiveRequest=M;M=UbG(this);if(!(0,_.SRZ)(M))throw Error("H``"+String(M));this.src=this.getSrc();var R;this.initialLoadingStrategy=(R=_.uk(this.consentPrimitiveRequest,xo,4))==null?void 0:_.K5(R,4)},Yed;
_.v(xb9,eK);var jTG=function(M){var d=_.Q("enable_primitive_dialog_aria_hide_siblings");M={request:M,enableDialogA11yFix:d===void 0?!1:d};Yed||(Yed=new xb9(M.request,M.isLatencyMeasurementExperiment||_.K5(M.request,1)===2,M.enableDialogA11yFix));return Yed},UbG=function(M){var d;
return(d=_.uk(M.consentPrimitiveRequest,xo,4))==null?void 0:_.rP(d,1)},n_9=function(M,d){if(!_.p5(M.consentPrimitiveRequest,z$,5)){var N=M.consentPrimitiveRequest,R=new z$;
_.ZG(N,5,R)}var X;if((X=_.uk(M.consentPrimitiveRequest,z$,5))==null||_.T3i(_.wP(X,8))==null){var A;(A=_.uk(M.consentPrimitiveRequest,z$,5))!=null&&_.Ti(A,8,d)}},eXP=function(M){var d;
return(d=_.uk(M.consentPrimitiveRequest,z$,5))==null?void 0:_.Cy(d,1)};
xb9.prototype.isDarkTheme=function(){var M;return((M=_.uk(this.consentPrimitiveRequest,xo,4))==null?void 0:_.K5(M,2))===2};
var GMJ=function(M){var d;return((d=_.uk(M.consentPrimitiveRequest,xo,4))==null?void 0:_.Cy(d,5))||void 0},ttT=function(M){M.channel=void 0;
M.prewarmChannel=void 0;M.iframe&&(document.body.contains(M.iframe)&&document.body.removeChild(M.iframe),M.iframe=void 0);Yed=void 0},ryC=function(M){return eK.prototype.showPrimitive.call(M).then(function(d){return _.uk(d,mb4,2)})};for(var nR={},ZtP=(nR[64]="ma",nR[73]="ogb",nR[89]="cr",nR[21]="test",nR[0]="unkn",nR[137]="con",nR[155]="hl",nR[78]="yt",nR[171]="lp",nR[172]="ap",nR[177]="amo",nR[178]="pqe",nR[74]="gg",nR[1]="gm",nR[140]="am",nR),E_i=_.V(Object.keys(ZtP)),MS4=E_i.next();!MS4.done;MS4=E_i.next());var dnG=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(dnG,_.Jj);var NPe=[0,[2,3,4],_.C5,qLT,rID,_.J7p];var Rx9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Rx9,_.Jj);var X_G=_.uO(Rx9,[0,oFP,_.G7,_.C5,_.G7,_.C5,NPe]);var Fvr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(Fvr,_.Jj);Fvr.prototype.getCommand=function(){return _.K5(this,1)};
var Aiq=function(){var M=new Fvr;return _.z7(M,1,0)};var VSY=_.CK([0,oFP,_.G7,[0,_.C5,_.G7,-1]]);var lke=new _.TU("s"),$nb=new _.TU("t"),BPG=new _.TU("u"),k7q=new _.TU("v"),TPi=function(M,d,N){_.Dj.call(this,lke);this.mediaKey=M;this.photoUrl=d;this.photoSource=N};
_.v(TPi,_.Dj);var Dn4=function(){_.Dj.call(this,$nb)};
_.v(Dn4,_.Dj);var ghP=function(M){M=M===void 0?!1:M;_.Dj.call(this,BPG);this.isError=M};
_.v(ghP,_.Dj);var Wvq=function(){_.Dj.call(this,k7q)};
_.v(Wvq,_.Dj);var w_4=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,QXG=function(M){if(typeof M=="string"){if(M.charAt(0)==".")return p_q(M.substr(1));if(M.charAt(0)=="["){var d=w_4.exec(M);M=M.indexOf("=")==-1?void 0:d[3];return mnY(d[1],M)}return hxT(M)}return M},p_q=function(M){return function(d){return d.getAttribute&&_.HX(d,M)}},mnY=function(M,d){return function(N){return d!==void 0?N.getAttribute&&N.getAttribute(M)==d:N.hasAttribute&&N.hasAttribute(M)}},hxT=function(M){M=M.toUpperCase();
return function(d){return(d=d.tagName)&&d.toUpperCase()==M}},q1i=function(){return!0};var io=function(M,d){this.JSC$17174_key_=M;this.JSC$17174_value_=d},fR=function(M){throw Error("gk`"+M.JSC$17174_key_);
},Ike=function(M,d){return new TypeError("hk`"+d+"`"+M.JSC$17174_key_+"`"+M.JSC$17174_value_+"`"+typeof M.JSC$17174_value_)};
io.prototype.string=function(M){if(arguments.length==0)var d=vhb(this);else{var N;d=(N=O5J(this))!=null?N:M}return d};
var vhb=function(M){var d=O5J(M);d===null&&fR(M);return d},O5J=function(M){var d=M.JSC$17174_value_;
if(d==null)return null;if(typeof d==="string")return d;throw Ike(M,"string");};
io.prototype.bool=function(M){if(arguments.length==0){var d=this.optionalBool();d===null&&fR(this)}else{var N;d=(N=this.optionalBool())!=null?N:M}return d};
io.prototype.optionalBool=function(){var M=this.JSC$17174_value_;if(M==null)return null;if(typeof M==="boolean")return M;if(typeof M==="string"){M=M.toLowerCase();if(M==="true"||M==="1")return!0;if(M==="false"||M==="0")return!1}throw Ike(this,"boolean");};
io.prototype.number=function(M){if(arguments.length==0){var d=jXC(this);d===null&&fR(this)}else{var N;d=(N=jXC(this))!=null?N:M}return d};
var jXC=function(M){var d=M.JSC$17174_value_;if(d==null)return null;if(typeof d==="number")return d;if(typeof d==="string"){var N=Number(d);if(!isNaN(N)&&(N!==0||d.trim().length!==0))return N}throw Ike(M,"number");};
io.prototype.toString=function(){return vhb(this)};
io.prototype.array=function(M){if(arguments.length==0){var d=sXT(this);d===null&&fR(this);return d}d=sXT(this);return d==null?M:d};
var sXT=function(M){var d=M.JSC$17174_value_;if(d==null)return null;Array.isArray(d)||(typeof d!=="string"?d=[d]:(d=d.trim(),d=d==""?[]:d.split(",").map(function(N){return N.trim()})));
return Pbi(M,d)},Pbi=function(M,d){var N=M.JSC$17174_key_+"[";
return Array.from(d,function(R,X){return new io(N+X+"]",R)})};
io.prototype.object=function(M){var d=this.JSC$17174_value_;if(d==null)return M===void 0&&fR(this),M;if(typeof d==="object"&&d.constructor===Object){M={};var N=this.JSC$17174_key_+".",R;for(R in d)M[R]=new io(N+R,d[R]);return M}throw Ike(this,"object");};var LR=function(M){this.list_=ohb(M)},ohb=function(M){if(M instanceof LR)M=M.list_;
else if(M[0]instanceof LR){for(var d=new Set,N=0;N<M.length;N++)for(var R=_.V(M[N].list_),X=R.next();!X.done;X=R.next())d.add(X.value);M=d}return[].concat(_.wu(M))};
_.F=LR.prototype;_.F.each=function(M,d,N){((N===void 0?0:N)?Ak4:_.Hy)(this.list_,M,d);return this};
_.F.size=function(){return this.list_.length};
_.F.isEmpty=function(){return this.list_.length===0};
_.F.get=function(M){return this.list_[M]||null};
_.F.el=function(){return this.list_[0]||null};
_.F.map=function(M,d){return _.mi(this.list_,M,d)};
_.F.equals=function(M){return this===M||_.AC(this.list_,M.list_)};
_.F.first=function(){return this.list_.length==0?null:new t3(this.list_[0])};
_.F.find=function(M){var d=[];this.each(function(N){N=N.querySelectorAll(String(M));for(var R=0;R<N.length;R++)d.push(N[R])});
return new LR(d)};
_.F.parent=function(){var M=[];this.each(function(d){(d=d.parentElement||null)&&!_.i2(M,d)&&M.push(d)});
return new LR(M)};
_.F.children=function(){var M=[];this.each(function(d){d=_.Ke(d);for(var N=0;N<d.length;N++)M.push(d[N])});
return new LR(M)};
_.F.filter=function(M){M=_.Ai(this.list_,QXG(M));return new LR(M)};
_.F.closest=function(M){var d=[],N=QXG(M),R=function(X){return _.nA(X)&&N(X)};
this.each(function(X){(X=_.jM(X,R,!0))&&!_.i2(d,X)&&d.push(X)});
return new LR(d)};
_.F.next=function(M){return rib(this,_.PrC,M)};
_.F.prev=function(M){return rib(this,Kde,M)};
var rib=function(M,d,N){var R=[];var X=N?QXG(N):q1i;M.each(function(A){(A=d(A))&&X(A)&&R.push(A)});
return new LR(R)};
LR.prototype.setClass=function(M){return this.each(function(d){_.es(d,M)})};
var Kvr=function(M,d){return M.each(function(N){_.cz(N,d)})},yiJ=function(M,d){return M.each(function(N){_.yu(N,d)})};
LR.prototype.toggleClass=function(M,d){return d===!0?Kvr(this,M):d===!1?yiJ(this,M):this.each(function(N){_.HX(N,M)?_.yu(N,M):_.cz(N,M)})};
LR.prototype.setText=function(M){return this.each(function(d){_.yR(d,M)})};
var JiP=function(M){M.each(function(d){d.removeAttribute("aria-hidden")})};
LR.prototype.getStyle=function(M){if(this.list_.length>0){var d=this.list_[0],N=d.style[_.Ff(M)];return typeof N!=="undefined"?N:d.style[_.iJI(d,M)]||""}};
LR.prototype.getData=function(M){if(this.list_.length===0)return new io(M,null);var d=Tcd(this.list_[0],M);return new io(M,d)};
LR.prototype.focus=function(M){try{M?this.el().focus(M):this.el().focus()}catch(d){}return this};
LR.prototype.click=function(){var M=_.qy(this.el());if(M.createEvent){var d=M.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,M.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(d)}else M=M.createEventObject(),M.clientX=0,M.clientY=0,M.screenX=0,M.screenY=0,M.altKey=!1,M.ctrlKey=!1,M.shiftKey=!1,M.button=0,this.el().fireEvent("onclick",M)};
var G$=function(M,d,N,R){function X(k,T,W){var w=T;T&&T.parentNode&&(w=T.cloneNode(!0));k(w,W)}
R=R===void 0?!1:R;if(M.list_.length==1){var A=M.list_[0],l=function(k){return d(k,A)};
N instanceof LR?N.each(l,void 0,R):Array.isArray(N)?(R?Ak4:_.Hy)(N,l):l(N);return M}return M.each(function(k){N instanceof LR?N.each(function(T){X(d,T,k)}):Array.isArray(N)?_.Hy(N,function(T){X(d,T,k)}):X(d,N,k)})};
_.F=LR.prototype;_.F.append=function(M){return G$(this,function(d,N){d&&N.appendChild(d)},M)};
_.F.appendTo=function(M){(new LR([M])).append(this);return this};
_.F.remove=function(){return G$(this,function(M,d){_.l_(d)},null)};
_.F.empty=function(){return G$(this,function(M,d){_.P6(d)},null)};
_.F.after=function(M,d){return G$(this,function(N,R){N&&_.rl(N,R)},M,!(d===void 0||d))};
_.F.before=function(M){return G$(this,function(d,N){d&&_.ox(d,N)},M)};
_.F.replaceWith=function(M){return G$(this,function(d,N){d&&_.OJd(d,N)},M)};
_.F.toggle=function(M){return this.each(function(d){_.cU(d,M)})};
_.F.show=function(){return this.toggle(!0)};
_.F.hide=function(){return this.toggle(!1)};
_.F.trigger=function(M,d,N,R){return cii(this,M,d,N,R)};
var cii=function(M,d,N,R,X){return M.each(function(A){_.rA6(_.qy(A)).triggerWizEventInternal(A,d,N,R,X)})},t3=function(M,d){M instanceof LR&&(d=M.list_,M=null);
this.list_=ohb(M!=null?[M]:d)};
_.RX(t3,LR);_.F=t3.prototype;_.F.children=function(){return new LR(Array.prototype.slice.call(_.Ke(this.list_[0])))};
_.F.each=function(M,d){M.call(d,this.list_[0],0);return this};
_.F.size=function(){return 1};
_.F.el=function(){return this.list_[0]};
_.F.first=function(){return this};var ab=function(M,d){d=d===void 0?window:d;this.hostId=M;this.JSC$17185_win=d;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$17185_previousHtmlOverscroll=this.JSC$17185_previousBodyOverscroll=this.JSC$17185_previousBodyOverflow="";this.eventTarget=new _.mk;this.JSC$17185_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
b5J=function(M){var d=S14(S14(S14(new zxG(78),"po"),"hppp"),"hhc");
d.authUser=Number(_.rK("SESSION_INDEX","0"));d.colorScheme=M;return d};
ab.prototype.getOrigin=function(){return this.origin?this.origin:_.Y9(_.x9(_.C2(new _.iX,this.JSC$17185_win.location.protocol),this.JSC$17185_win.location.hostname),this.JSC$17185_win.location.port).toString()};
ab.prototype.getTargetOrigin=function(){return _.Y9(_.x9(_.C2(new _.iX,this.scheme),this.domain),this.port)};
ab.prototype.preloadIframe=function(M){var d=this;if(this.iframeLoadPromise===void 0){var N=document.createElement("iframe");this.iframe=N;FYC(N,M);this.iframeLoadPromise=new Promise(function(R,X){var A=!1,l=function(k){k.stopPropagation();N.removeEventListener("error",l);N.removeEventListener("securitypolicyviolation",l);X(Error("ik",{cause:k}))};
N.addEventListener("error",l);N.addEventListener("securitypolicyviolation",l);setTimeout(function(){A||X(Error("jk"))},3E4);
exr(d,N,function(){A=!0;N.removeEventListener("error",l);N.removeEventListener("securitypolicyviolation",l);R()})});
H5r(this);M=this.getTargetOrigin().toString();N.setAttribute("allow","camera "+M+"; display-capture "+M);this.parentElement.appendChild(N)}return this.iframeLoadPromise};
var fkT=function(M,d){var N,R;return _.B(function(X){if(X.nextAddress==1)return N=YX4(getComputedStyle(M.parentElement).direction==="rtl"),M.parentElement.appendChild(N),document.activeElement instanceof HTMLElement&&(M.elementToFocusAfterClose=document.activeElement),_.Mv(X,2),_.D(X,M.preloadIframe(d),4);if(X.nextAddress!=2){M.parentElement.removeChild(N);M.JSC$17185_previousBodyOverflow=M.parentElement.style.overflow;M.JSC$17185_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
M.JSC$17185_previousBodyOverscroll=M.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";M.parentElement.style.overscrollBehavior="contain";M.parentElement.style.overflow="hidden";var A=M.iframe;A.style.bottom="0";A.style.border="none";A.style.height="100%";A.style.left="0";A.style.position=M.iframePosition;A.style.right="0";A.style.top="0";A.style.width="100%";A.style.zIndex="2202";A.setAttribute("aria-hidden","false");A.setAttribute("aria-modal","true");
M.opened=!0;nhi(M);return _.cJ(X,0)}R=_.Fg(X);M.parentElement.removeChild(N);NBY(M.isDarkTheme());i5Y(M,!1);throw Error("kk",{cause:R});})},i5Y=function(M,d){d=d===void 0?!0:d;
M.iframe!==void 0&&(Lv4(M),document.documentElement.style.overscrollBehavior=M.JSC$17185_previousHtmlOverscroll,M.parentElement.style.overscrollBehavior=M.JSC$17185_previousBodyOverscroll,M.parentElement.style.overflow=M.JSC$17185_previousBodyOverflow,M.elementToFocusAfterClose!==void 0&&(M.elementToFocusAfterClose.focus(),M.elementToFocusAfterClose=void 0),d?H5r(M):(M.parentElement.removeChild(M.iframe),M.iframe=void 0,M.iframeLoadPromise=void 0,M.mainChannel=void 0),M.opened=!1)},Lv4=function(M){M.backgroundElementsAriaHiddenIsNull&&
(JiP(M.backgroundElementsAriaHiddenIsNull),M.backgroundElementsAriaHiddenIsNull=void 0);
M.backgroundElementsAriaHiddenIsFalse&&(M.backgroundElementsAriaHiddenIsFalse.each(function(d){d.setAttribute("aria-hidden","false")}),M.backgroundElementsAriaHiddenIsFalse=void 0);
M.backgroundElementsWithoutInert&&(M.backgroundElementsWithoutInert.each(function(d){d.removeAttribute("inert")}),M.backgroundElementsWithoutInert=void 0)},nhi=function(M){M.backgroundElementsAriaHiddenIsNull=(new t3(M.iframe.parentElement)).children().filter(function(d){return d.getAttribute("aria-hidden")===null&&d!==M.iframe});
M.backgroundElementsAriaHiddenIsNull.each(function(d){d.setAttribute("aria-hidden","true")});
M.backgroundElementsAriaHiddenIsFalse=(new t3(M.iframe.parentElement)).children().filter(function(d){return d.getAttribute("aria-hidden")==="false"&&d!==M.iframe});
M.backgroundElementsAriaHiddenIsFalse.each(function(d){d.setAttribute("aria-hidden","true")});
M.backgroundElementsWithoutInert=(new t3(M.iframe.parentElement)).children().filter(function(d){return!d.hasAttribute("inert")&&d!==M.iframe});
M.backgroundElementsWithoutInert.each(function(d){d.setAttribute("inert","true")})},H5r=function(M){M=M.iframe;
M.style.bottom="-1000px";M.style.position="fixed";M.style.right="-1000px";M.style.border="";M.style.height="";M.style.left="";M.style.top="";M.style.width="";M.style.zIndex="";M.setAttribute("aria-hidden","true");M.setAttribute("aria-modal","false")};
ab.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var zxG=function(M,d){ab.call(this,ZtP[M],d);this.options=[];this.style=""};
_.v(zxG,ab);var tSe=function(M){M.style="youtube";return M},G7i=function(M,d){M.eventTarget.listen(BPG,d);
return M},akq=function(M,d){M.eventTarget.listen(lke,d);
return M},S14=function(M,d){M.options.push(d);
return M},UnY=function(M){var d=[M.getOrigin()];
M.ancestorOrigins&&d.push.apply(d,_.wu(M.ancestorOrigins));var N=new _.iX(M.JSC$17185_win.location.href),R=M.startUrl?M.startUrl:M.options.includes("po")?"profile-picture/art":"profile-picture";d=Yo(_.Zj(M.getTargetOrigin(),R),"origin",d);M.startUrl&&_.J8(d,"startPath",M.startUrl);M.authUser>0&&_.J8(d,"authuser",M.authUser);M.pageId!==void 0&&_.J8(d,"pageId",M.pageId);_.J8(d,"hostId",M.hostId);M.jsMode!==void 0&&_.J8(d,"jsmode",M.jsMode);M.options.length>0&&_.J8(d,"opts",M.options.join(","));try{for(var X=
_.V(["utm_source","utm_medium","utm_campaign","utm_content"]),A=X.next();!A.done;A=X.next()){var l=A.value;_.yf(N,l)&&_.J8(d,l,_.yf(N,l))}var k,T=(k=M.hl)!=null?k:_.yf(N,"hl");T!==void 0&&_.J8(d,"hl",T)}catch(W){if(!(W instanceof URIError))throw W;}M.colorScheme&&_.J8(d,"theme",M.colorScheme);M.style&&_.J8(d,"style",M.style);return d},uqJ=function(M,d){M.mainChannel=_.Zk({destination:M.JSC$17185_win,
iframe:d,origin:M.getTargetOrigin().toString(),channelName:"ow",onMessage:function(N){N=X_G(N.data);if(d===M.iframe)switch(_.K5(N,1)){case 1:M.eventTarget.dispatchEvent(new ghP);i5Y(M);break;case 2:M.eventTarget.dispatchEvent(new TPi(_.rP(N,4),_.rP(N,2),_.K5(N,5),_.uk(N,dnG,6)));break;case 0:var R;M.eventTarget.dispatchEvent(new Dn4(_.rP(N,2),(R=_.K5(N,3))!=null?R:0));break;case 3:M.eventTarget.dispatchEvent(new ghP(!0));i5Y(M,!1);break;case 4:M.eventTarget.dispatchEvent(new Wvq)}}})},exr=function(M,
d,N){_.Zk({destination:M.JSC$17185_win,
iframe:d,origin:_.Y9(_.x9(_.C2(new _.iX,M.scheme),M.domain),M.port).toString(),channelName:"owi",onMessage:function(R){d===M.iframe&&(N!==void 0&&N(),uqJ(M,d),M.opened&&M.mainChannel.send(VSY(Aiq())),R.reply(),exr(M,d))}})};
zxG.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?ab.prototype.preloadIframe.call(this,UnY(this).toString()):this.iframeLoadPromise};
zxG.prototype.openPicker=function(M){var d=this;return _.B(function(N){if(N.nextAddress==1)return d.startUrl=M?M:d.options.includes("po")?"profile-picture/art":"profile-picture",_.D(N,fkT(d,UnY(d).toString()),2);if(d.mainChannel){var R=d.mainChannel,X=R.send;var A=Aiq();A=_.VZ(A,2,d.startUrl);X.call(R,VSY(A))}_.Vy(N)})};var CbJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(CbJ,_.Jj);_.F=CbJ.prototype;_.F.getSize=function(){return F0(this,1)};
_.F.setSize=function(M){return _.SS(this,1,M)};
_.F.getWidth=function(){return F0(this,12)};
_.F.getHeight=function(){return F0(this,13)};
_.F.setCenterCrop=function(M){return _.Eq(this,20,M)};
_.F.getHtml=function(){return _.jS(this,4)};
_.F.getToken=function(){return _.A8(this,24)};
_.F.setToken=function(M){return _.VZ(this,24,M)};
_.F.getBackgroundColor=function(){return F0(this,87)};
_.F.hasBackgroundColor=function(){return _.Q9(_.wP(this,87))!=null};
_.F.getStoryboardLevel=function(){return F0(this,109)};var U7=function(M){this.JSC$17193_value_=void 0;this.childNodes_={};if(M){var d=_.V9C(M);M=_.um(M);for(var N=0;N<d.length;N++)this.set(d[N],M[N])}};
U7.prototype.set=function(M,d){xn9(this,M,d,!1)};
U7.prototype.add=function(M,d){xn9(this,M,d,!0)};
var xn9=function(M,d,N,R){for(var X=0;X<d.length;X++){var A=d.charAt(X);M.childNodes_[A]||(M.childNodes_[A]=new U7);M=M.childNodes_[A]}if(R&&M.JSC$17193_value_!==void 0)throw Error("lk`"+d);M.JSC$17193_value_=N},Y1i=function(M,d){for(var N=0;N<d.length;N++)if(M=M.childNodes_[d.charAt(N)],!M)return;
return M};
U7.prototype.get=function(M){return(M=Y1i(this,M))?M.JSC$17193_value_:void 0};
U7.prototype.getValues=function(){var M=[];Z5C(this,M);return M};
var Z5C=function(M,d){M.JSC$17193_value_!==void 0&&d.push(M.JSC$17193_value_);for(var N in M.childNodes_)Z5C(M.childNodes_[N],d)};
U7.prototype.getKeys=function(M){var d=[];if(M){for(var N=this,R=0;R<M.length;R++){var X=M.charAt(R);if(!N.childNodes_[X])return[];N=N.childNodes_[X]}Eh4(N,M,d)}else Eh4(this,"",d);return d};
var Eh4=function(M,d,N){M.JSC$17193_value_!==void 0&&N.push(d);for(var R in M.childNodes_)Eh4(M.childNodes_[R],d+R,N)};
_.F=U7.prototype;_.F.containsKey=function(M){return this.get(M)!==void 0};
_.F.containsValue=function(M){if(this.JSC$17193_value_===M)return!0;for(var d in this.childNodes_)if(this.childNodes_[d].containsValue(M))return!0;return!1};
_.F.clear=function(){this.childNodes_={};this.JSC$17193_value_=void 0};
_.F.remove=function(M){for(var d=this,N=[],R=0;R<M.length;R++){var X=M.charAt(R);if(!d.childNodes_[X])throw Error("mk`"+M);N.push([d,X]);d=d.childNodes_[X]}M=d.JSC$17193_value_;for(delete d.JSC$17193_value_;N.length>0;)if(R=N.pop(),d=R[0],R=R[1],d.childNodes_[R].isEmpty())delete d.childNodes_[R];else break;return M};
_.F.clone=function(){return new U7(this)};
_.F.getCount=function(){return SL9(this.getValues())};
_.F.isEmpty=function(){return this.JSC$17193_value_===void 0&&_.wF.isEmpty(this.childNodes_)};var BBJ=function(){if(!MIr){var M=MIr=new U7,d;for(d in dIr)M.add(d,dIr[d])}},MIr,uo=function(M,d){this.types=M;
this.setters=d},dIr={a:new uo([3,
0],[function(M,d){_.Eq(M,21,d)},
function(M,d){_.SS(M,56,d)}]),
al:new uo([3],[function(M,d){_.Eq(M,74,d)}]),
b:new uo([3,0],[function(M,d){_.Eq(M,23,d)},
function(M,d){_.SS(M,38,d)}]),
ba:new uo([0],[function(M,d){_.SS(M,85,d)}]),
bc:new uo([0],[function(M,d){_.SS(M,87,d)}]),
br:new uo([0],[function(M,d){_.SS(M,86,d)}]),
c:new uo([3,0],[function(M,d){_.Eq(M,2,d)},
function(M,d){_.SS(M,39,d)}]),
cc:new uo([3],[function(M,d){_.Eq(M,51,d)}]),
ci:new uo([3],[function(M,d){_.Eq(M,32,d)}]),
ckm:new uo([3],[function(M,d){_.Eq(M,104,d)}]),
cp:new uo([0],[function(M,d){_.SS(M,92,d)}]),
cr:new uo([3],[function(M,d){_.Eq(M,108,d)}]),
cv:new uo([0],[function(M,d){_.SS(M,94,d)}]),
d:new uo([3],[function(M,d){_.Eq(M,3,d)}]),
dc:new uo([5],[function(M,d){_.VZ(M,99,d)}]),
df:new uo([3],[function(M,d){_.Eq(M,80,d)}]),
dv:new uo([3],[function(M,d){_.Eq(M,90,d)}]),
e:new uo([0],[function(M,d){_.SS(M,15,d)}]),
em:new uo([0],[function(M,d){_.SS(M,107,d)}]),
f:new uo([4],[function(M,d){_.VZ(M,16,d)}]),
fg:new uo([3],[function(M,d){_.Eq(M,34,d)}]),
fh:new uo([3],[function(M,d){_.Eq(M,30,d)}]),
fm:new uo([3],[function(M,d){_.Eq(M,84,d)}]),
fo:new uo([2],[function(M,d){_.xY(M,79,_.Ad(d))}]),
ft:new uo([3],[function(M,d){_.Eq(M,50,d)}]),
fv:new uo([3],[function(M,d){_.Eq(M,31,d)}]),
g:new uo([3],[function(M,d){_.Eq(M,14,d)}]),
gce:new uo([4],[function(M,d){_.VZ(M,112,d)}]),
gd:new uo([3],[function(M,d){_.Eq(M,83,d)}]),
gm:new uo([3],[function(M,d){_.Eq(M,105,d)}]),
h:new uo([3,0],[function(M,d){_.Eq(M,4,d)},
function(M,d){_.SS(M,13,d)}]),
i:new uo([3],[function(M,d){_.Eq(M,22,d)}]),
ic:new uo([0],[function(M,d){_.SS(M,71,d)}]),
id:new uo([3],[function(M,d){_.Eq(M,70,d)}]),
il:new uo([3],[function(M,d){_.Eq(M,96,d)}]),
ip:new uo([3],[function(M,d){_.Eq(M,54,d)}]),
iv:new uo([0],[function(M,d){_.Ti(M,75,d)}]),
j:new uo([1],[function(M,d){d=d==null?d:$U4(d);_.xY(M,29,d)}]),
k:new uo([3,0],[function(M,d){_.Eq(M,17,d)},
function(M,d){_.SS(M,42,d)}]),
l:new uo([0],[function(M,d){_.SS(M,44,d)}]),
lf:new uo([3],[function(M,d){_.Eq(M,65,d)}]),
lo:new uo([3],[function(M,d){_.Eq(M,97,d)}]),
m:new uo([0],[function(M,d){_.SS(M,63,d)}]),
md:new uo([3],[function(M,d){_.Eq(M,91,d)}]),
mm:new uo([4],[function(M,d){_.VZ(M,81,d)}]),
mo:new uo([3],[function(M,d){_.Eq(M,73,d)}]),
mv:new uo([3],[function(M,d){_.Eq(M,66,d)}]),
n:new uo([3],[function(M,d){M.setCenterCrop(d)}]),
nc:new uo([3],[function(M,d){_.Eq(M,55,d)}]),
nd:new uo([3],[function(M,d){_.Eq(M,53,d)}]),
ng:new uo([3],[function(M,d){_.Eq(M,95,d)}]),
ngm:new uo([3],[function(M,d){_.Eq(M,106,d)}]),
no:new uo([3],[function(M,d){_.Eq(M,37,d)}]),
ns:new uo([3],[function(M,d){_.Eq(M,40,d)}]),
nt0:new uo([4],[function(M,d){_.VZ(M,36,d)}]),
ntm:new uo([3],[function(M,d){_.Eq(M,114,d)}]),
nu:new uo([3],[function(M,d){_.Eq(M,46,d)}]),
nw:new uo([3],[function(M,d){_.Eq(M,48,d)}]),
o:new uo([1,3],[function(M,d){d=d==null?d:$U4(d);_.xY(M,7,d)},
function(M,d){_.Eq(M,27,d)}]),
p:new uo([3,0],[function(M,d){_.Eq(M,19,d)},
function(M,d){_.SS(M,43,d)}]),
pa:new uo([3],[function(M,d){_.Eq(M,61,d)}]),
pc:new uo([0],[function(M,d){_.SS(M,88,d)}]),
pd:new uo([3],[function(M,d){_.Eq(M,60,d)}]),
pf:new uo([3],[function(M,d){_.Eq(M,67,d)}]),
pg:new uo([3],[function(M,d){_.Eq(M,72,d)}]),
pi:new uo([2],[function(M,d){_.xY(M,76,_.Ad(d))}]),
pp:new uo([3],[function(M,d){_.Eq(M,52,d)}]),
pt:new uo([4],[function(M,d){_.VZ(M,111,d)}]),
q:new uo([4],[function(M,d){_.VZ(M,28,d)}]),
r:new uo([3,0],[function(M,d){_.Eq(M,6,d)},
function(M,d){_.SS(M,26,d)}]),
ra:new uo([3],[function(M,d){_.Eq(M,103,d)}]),
rf:new uo([3],[function(M,d){_.Eq(M,100,d)}]),
rg:new uo([3],[function(M,d){_.Eq(M,59,d)}]),
rh:new uo([3],[function(M,d){_.Eq(M,49,d)}]),
rj:new uo([3],[function(M,d){_.Eq(M,57,d)}]),
ro:new uo([2],[function(M,d){_.xY(M,78,_.Ad(d))}]),
rp:new uo([3],[function(M,d){_.Eq(M,58,d)}]),
rw:new uo([3],[function(M,d){_.Eq(M,35,d)}]),
rwa:new uo([3],[function(M,d){_.Eq(M,64,d)}]),
rwu:new uo([3],[function(M,d){_.Eq(M,41,d)}]),
s:new uo([3,0],[function(M,d){_.Eq(M,33,d)},
function(M,d){M.setSize(d)}]),
sb:new uo([0],[function(M,d){_.SS(M,110,d)}]),
sc:new uo([0],[function(M,d){_.SS(M,89,d)}]),
sg:new uo([3],[function(M,d){_.Eq(M,82,d)}]),
sl:new uo([0],[function(M,d){_.SS(M,109,d)}]),
sm:new uo([3],[function(M,d){_.Eq(M,93,d)}]),
t:new uo([4],[function(M,d){M.setToken(d)}]),
tm:new uo([3],[function(M,d){_.Eq(M,113,d)}]),
u:new uo([3],[function(M,d){_.Eq(M,18,d)}]),
ut:new uo([3],[function(M,d){_.Eq(M,45,d)}]),
v:new uo([0],[function(M,d){_.SS(M,62,d)}]),
vb:new uo([0],[function(M,d){_.Ti(M,68,d)}]),
vf:new uo([4],[function(M,d){_.VZ(M,102,d)}]),
vl:new uo([0],[function(M,d){_.Ti(M,69,d)}]),
vm:new uo([3],[function(M,d){_.Eq(M,98,d)}]),
w:new uo([0],[function(M,d){_.SS(M,12,d)}]),
x:new uo([0],[function(M,d){_.SS(M,9,d)}]),
y:new uo([0],[function(M,d){_.SS(M,10,d)}]),
ya:new uo([2],[function(M,d){_.xY(M,77,_.Ad(d))}]),
z:new uo([0],[function(M,d){_.SS(M,11,d)}])};
BBJ.prototype.parse=function(M){var d=new CbJ,N=new CbJ;if(M=="")M=!0;else{M=M.split("-");for(var R=!0,X=0;X<M.length;X++){var A=M[X];if(A.length==0)R=!1;else{var l=A,k=!1;var T=l;var W=l.charAt(0);W!=W.toLowerCase()&&(k=!0,T=l.charAt(0).toLowerCase()+l.substring(1));var w=MIr;for(W=1;W<=T.length;++W){var p=w,m=T.substring(0,W);if(m.length==0?p.isEmpty():!Y1i(p,m))break}T=W==1?null:(T=w.get(T.substring(0,W-1)))?{option:l.substring(0,W-1),value:l.substring(W-1),signed:k,attributes:T}:null;if(T){l=
[];k=[];W=!1;for(w=0;w<T.attributes.types.length;w++){p=T.attributes.types[w];var I=T.value;m=X;if(T.signed&&p==1)for(var O=I.length;O<12&&m<M.length-1;)I+="-"+M[m+1],O=I.length,++m;else if(p==2)for(;m<M.length-1&&M[m+1].match(/^[\d\.]/);)I+="-"+M[m+1],++m;O=T.attributes.setters[w];I=NlY(this,p)(T.option,I,d,N,O);if(I===null){W=!0;X=m;break}else l.push(p),k.push(I)}if(!W)for(T=0;T<k.length;T++)w=l[T],I=k[T],RvP(this,w)(A,I);R=R&&W}else R=!1}}M=R}return new X64(d,N,M)};
var CR=function(M,d,N,R,X,A){X(N,d);M=M.charAt(0);A=A(M==M.toUpperCase());X(R,A)};
_.F=BBJ.prototype;_.F.parseAndSetIntOption_=function(M,d,N,R,X){if(d=="")return 0;isFinite(d)&&(d=String(d));d=typeof d==="string"?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN;if(isNaN(d))return 1;CR(M,d,N,R,X,Number);return null};
_.F.logIntParseError_=function(){};
_.F.parseAndSetFloatOption_=function(M,d,N,R,X){if(d=="")return 0;var A=Number(d);d=A==0&&_.ki(d)?NaN:A;if(isNaN(d))return 1;CR(M,d,N,R,X,Number);return null};
_.F.logFloatParseError_=function(){};
_.F.parseAndSetBoolOption_=function(M,d,N,R,X){if(d!="")return 2;CR(M,!0,N,R,X,Boolean);return null};
_.F.logBoolParseError_=function(){};
_.F.parseAndSetStringOption_=function(M,d,N,R,X){if(d=="")return 0;CR(M,d,N,R,X,function(A){return A?"1":""});
return null};
_.F.logStringParseError_=function(){};
_.F.parseAndSetUint64Base64Option_=function(M,d,N,R,X){if(d=="")return 0;CR(M,d,N,R,X,function(A){return A?1:0});
return null};
var NlY=function(M,d){switch(d){case 0:return(0,_.gx)(M.parseAndSetIntOption_,M);case 2:return(0,_.gx)(M.parseAndSetFloatOption_,M);case 3:return(0,_.gx)(M.parseAndSetBoolOption_,M);case 4:return(0,_.gx)(M.parseAndSetStringOption_,M);case 1:return(0,_.gx)(M.parseAndSetUint64Base64Option_,M);default:return function(){}}},RvP=function(M,d){switch(d){case 0:return(0,_.gx)(M.logIntParseError_,M);
case 2:return(0,_.gx)(M.logFloatParseError_,M);case 3:return(0,_.gx)(M.logBoolParseError_,M);case 4:case 1:return(0,_.gx)(M.logStringParseError_,M);default:return function(){}}},X64=function(M,d,N){this.valueProto_=M;
this.signatureFlagProto_=d;this.JSC$17205_valid_=N};
X64.prototype.isValid=function(){return this.JSC$17205_valid_};var AXr=function(M){this.JSC$17206_parser_=null;this.JSC$17206_components_=[];this.JSC$17206_parsedOptions_=null;F2P(this,M)},AMr=function(M){M.JSC$17206_parser_==null&&(M.JSC$17206_parser_=new BBJ);
return M.JSC$17206_parser_},F2P=function(M,d){M.JSC$17206_parsedOptions_=d?typeof d==="string"?AMr(M).parse(d):d:AMr(M).parse("")},xw=function(M,d){return M==d?!1:!0};
_.F=AXr.prototype;_.F.JSC$17208_setCrop=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,_.jS(N,2),_.jS(d.signatureFlagProto_,2))&&_.Eq(N,2,M);return this};
_.F.JSC$17208_setCircleCrop=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,X0(N,51),X0(d.signatureFlagProto_,51))&&_.Eq(N,51,M);return this};
_.F.JSC$17208_setImageCrop=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,X0(N,32),X0(d.signatureFlagProto_,32))&&_.Eq(N,32,M);return this};
_.F.JSC$17208_setHeight=function(M){var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,N.getHeight(),d.signatureFlagProto_.getHeight())&&_.SS(N,13,M);return this};
_.F.setCenterCrop=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,_.jS(N,20),_.jS(d.signatureFlagProto_,20))&&N.setCenterCrop(M);return this};
_.F.JSC$17208_setSmartCrop=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,_.jS(N,19),_.jS(d.signatureFlagProto_,19))&&_.Eq(N,19,M);return this};
_.F.JSC$17208_setPad=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,X0(N,60),X0(d.signatureFlagProto_,60))&&_.Eq(N,60,M);return this};
_.F.JSC$17208_setSmartCropUseFace=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,_.jS(N,67),_.jS(d.signatureFlagProto_,67))&&_.Eq(N,67,M);return this};
_.F.JSC$17208_setSmartCropNoClip=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,_.jS(N,52),_.jS(d.signatureFlagProto_,52))&&_.Eq(N,52,M);return this};
_.F.setSize=function(M){var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,N.getSize(),d.signatureFlagProto_.getSize())&&N.setSize(M);return this};
_.F.setToken=function(M){M=M||void 0;var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,N.getToken(),d.signatureFlagProto_.getToken())&&N.setToken(M);return this};
_.F.JSC$17208_setWidth=function(M){var d=this.JSC$17206_parsedOptions_,N=d.valueProto_;xw(M,N.getWidth(),d.signatureFlagProto_.getWidth())&&_.SS(N,12,M);return this};
_.F.clearOptions=function(){F2P(this,"");return this};
_.F.build=function(){this.JSC$17206_components_.length=0;var M=this.JSC$17206_parsedOptions_,d=M.valueProto_;M=M.signatureFlagProto_;Yw(this,"s",d.getSize(),M.getSize());Yw(this,"w",d.getWidth(),M.getWidth());Zf(this,"c",_.jS(d,2),_.jS(M,2));Zf(this,"d",_.jS(d,3),_.jS(M,3));Yw(this,"h",d.getHeight(),M.getHeight());Zf(this,"s",X0(d,33),X0(M,33));Zf(this,"h",d.getHtml(),M.getHtml());Zf(this,"p",_.jS(d,19),_.jS(M,19));Zf(this,"pp",_.jS(d,52),_.jS(M,52));Zf(this,"pf",_.jS(d,67),_.jS(M,67));Zf(this,"n",
_.jS(d,20),_.jS(M,20));Yw(this,"r",F0(d,26),F0(M,26));Zf(this,"r",_.jS(d,6),_.jS(M,6));Zf(this,"o",X0(d,27),X0(M,27));var N=_.O1(d,7,_.W_);E7(this,"o",N,_.O1(M,7,_.W_));N=_.O1(d,29,_.W_);E7(this,"j",N,_.O1(M,29,_.W_));Yw(this,"x",F0(d,9),F0(M,9));Yw(this,"y",F0(d,10),F0(M,10));Yw(this,"z",F0(d,11),F0(M,11));Zf(this,"g",_.jS(d,14),_.jS(M,14));Yw(this,"e",F0(d,15),F0(M,15));E7(this,"f",_.A8(d,16),_.A8(M,16));Zf(this,"k",X0(d,17),X0(M,17));Zf(this,"u",X0(d,18),!0);Zf(this,"ut",X0(d,45),!0);Zf(this,"i",
X0(d,22),!0);Zf(this,"a",X0(d,21),X0(M,21));Zf(this,"b",_.jS(d,23),_.jS(M,23));Yw(this,"b",F0(d,38),F0(M,38));Yw(this,"c",F0(d,39),F0(M,39),16,8);E7(this,"q",_.A8(d,28),_.A8(M,28));Zf(this,"fh",X0(d,30),X0(M,30));Zf(this,"fv",X0(d,31),X0(M,31));Zf(this,"fg",_.jS(d,34),_.jS(M,34));Zf(this,"ci",X0(d,32),X0(M,32));E7(this,"t",d.getToken(),M.getToken());E7(this,"nt0",_.A8(d,36),_.A8(M,36));Zf(this,"rw",_.jS(d,35),_.jS(M,35));Zf(this,"rwu",_.jS(d,41),_.jS(M,41));Zf(this,"rwa",_.jS(d,64),_.jS(M,64));Zf(this,
"nw",_.jS(d,48),_.jS(M,48));Zf(this,"rh",_.jS(d,49),_.jS(M,49));Zf(this,"no",_.jS(d,37),_.jS(M,37));Zf(this,"ns",X0(d,40),X0(M,40));Yw(this,"k",F0(d,42),F0(M,42));Yw(this,"p",F0(d,43),F0(M,43));Yw(this,"l",F0(d,44),F0(M,44));Yw(this,"v",F0(d,62),F0(M,62));Zf(this,"nu",X0(d,46),X0(M,46));Zf(this,"ft",X0(d,50),X0(M,50));Zf(this,"cc",X0(d,51),X0(M,51));Zf(this,"nd",X0(d,53),X0(M,53));Zf(this,"ip",X0(d,54),X0(M,54));Zf(this,"nc",X0(d,55),X0(M,55));Yw(this,"a",F0(d,56),F0(M,56));Zf(this,"rj",X0(d,57),
X0(M,57));Zf(this,"rp",X0(d,58),X0(M,58));Zf(this,"rg",X0(d,59),X0(M,59));Zf(this,"pd",X0(d,60),X0(M,60));Zf(this,"pa",X0(d,61),X0(M,61));Yw(this,"m",F0(d,63),F0(M,63));Yw(this,"vb",A3(d,68),A3(M,68));Yw(this,"vl",A3(d,69),A3(M,69));Zf(this,"lf",X0(d,65),X0(M,65));Zf(this,"mv",X0(d,66),X0(M,66));Zf(this,"id",X0(d,70),X0(M,70));Yw(this,"ic",F0(d,71),!0);Zf(this,"pg",_.jS(d,72),_.jS(M,72));Zf(this,"mo",X0(d,73),X0(M,73));Zf(this,"al",X0(d,74),X0(M,74));Yw(this,"iv",A3(d,75),A3(M,75));Yw(this,"pi",VV(d,
76),VV(M,76));Yw(this,"ya",VV(d,77),VV(M,77));Yw(this,"ro",VV(d,78),VV(M,78));Yw(this,"fo",VV(d,79),VV(M,79));Zf(this,"df",X0(d,80),X0(M,80));E7(this,"mm",_.A8(d,81),_.A8(M,81));Zf(this,"sg",X0(d,82),X0(M,82));Zf(this,"gd",X0(d,83),X0(M,83));Zf(this,"fm",X0(d,84),X0(M,84));Yw(this,"ba",F0(d,85),F0(M,85));Yw(this,"br",F0(d,86),F0(M,86));Yw(this,"bc",d.getBackgroundColor(),M.getBackgroundColor(),16,8);Yw(this,"pc",F0(d,88),F0(M,88),16,8);Yw(this,"sc",F0(d,89),F0(M,89),16,8);Zf(this,"dv",X0(d,90),X0(M,
90));Zf(this,"md",X0(d,91),X0(M,91));Yw(this,"cp",F0(d,92),F0(M,92));Zf(this,"sm",X0(d,93),X0(M,93));Yw(this,"cv",F0(d,94),F0(M,94));Zf(this,"ng",X0(d,95),X0(M,95));Zf(this,"il",X0(d,96),X0(M,96));Zf(this,"lo",X0(d,97),X0(M,97));Zf(this,"vm",X0(d,98),X0(M,98));E7(this,"dc",_.A8(d,99),_.A8(M,99));Zf(this,"rf",X0(d,100),X0(M,100));E7(this,"vf",_.A8(d,102),_.A8(M,102));Zf(this,"ra",_.jS(d,103),_.jS(M,103));Zf(this,"ckm",X0(d,104),X0(M,104));Zf(this,"gm",X0(d,105),X0(M,105));Zf(this,"ngm",X0(d,106),X0(M,
106));Yw(this,"em",F0(d,107),F0(M,107));Zf(this,"cr",X0(d,108),X0(M,108));Yw(this,"sl",d.getStoryboardLevel(),M.getStoryboardLevel());Yw(this,"sb",F0(d,110),F0(M,110));E7(this,"pt",_.A8(d,111),_.A8(M,111));E7(this,"gce",_.A8(d,112),_.A8(M,112));Zf(this,"tm",X0(d,113),X0(M,113));Zf(this,"ntm",X0(d,114),X0(M,114));return this.JSC$17206_components_.join("-")};
var Yw=function(M,d,N,R,X,A){if(N!=null){var l=X==void 0||X!=10&&X!=16?10:X;N=Number(N).toString(l);X=new P7T;X.append(l==16?"0x":"");l=X.append;A==void 0?A="":(A-=N.length,A=A<=0?"":(0,_.B3L)("0",A));l.call(X,A);X.append(N);VI9(M,d,X.toString(),!!Number(R))}},Zf=function(M,d,N,R){N&&VI9(M,d,"",!!R)},E7=function(M,d,N,R){N&&VI9(M,d,String(N),!!Number(R))},VI9=function(M,d,N,R){R&&(d=d.charAt(0).toUpperCase()+d.substring(1));
M.JSC$17206_components_.push(d+N)};_.RX(gi,AXr);_.F=gi.prototype;_.F.JSC$17208_setCrop=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setCrop.call(this,M)};
_.F.JSC$17208_setHeight=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return gi.superClass_.JSC$17208_setHeight.call(this,M)};
_.F.JSC$17208_setImageCrop=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setImageCrop.call(this,M)};
_.F.JSC$17208_setCircleCrop=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setCircleCrop.call(this,M)};
_.F.setSize=function(M){_.Me(M)&&(M=Math.max(M.width,M.height));M=M==null||M<0?void 0:M;M!=null&&(this.JSC$17208_setWidth(),this.JSC$17208_setHeight());return gi.superClass_.setSize.call(this,M)};
_.F.JSC$17208_setSmartCrop=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setSmartCrop.call(this,M)};
_.F.JSC$17208_setSmartCropNoClip=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setSmartCropNoClip.call(this,M)};
_.F.JSC$17208_setSmartCropUseFace=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setSmartCropUseFace.call(this,M)};
_.F.setCenterCrop=function(M){M&&Mj(this);return gi.superClass_.setCenterCrop.call(this,M)};
_.F.JSC$17208_setPad=function(M){M&&Mj(this);return gi.superClass_.JSC$17208_setPad.call(this,M)};
_.F.JSC$17208_setWidth=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return gi.superClass_.JSC$17208_setWidth.call(this,M)};
var l0Y=function(M){M.clearOptions();var d=M.JSC$17206_parsedOptions_,N=d.valueProto_;xw(!0,_.jS(N,3),_.jS(d.signatureFlagProto_,3))&&_.Eq(N,3,!0);return M},Mj=function(M){M.setCenterCrop();
M.JSC$17208_setCircleCrop();M.JSC$17208_setCrop();M.JSC$17208_setImageCrop();M.JSC$17208_setPad();M.JSC$17208_setSmartCrop();M.JSC$17208_setSmartCropNoClip();M.JSC$17208_setSmartCropUseFace()};
gi.prototype.build=function(){var M=this.JSC$17206_parsedOptions_.valueProto_;X0(M,18)||X0(M,45)?M.getSize()||this.setSize(0):(M=this.JSC$17206_parsedOptions_.valueProto_,M.getSize()||M.getWidth()||M.getHeight()||(this.setSize(),this.JSC$17208_setHeight(),this.JSC$17208_setWidth(),Mj(this)));return gi.superClass_.build.call(this)};var $I4=/^[^\/]*\/\//,dp=function(M,d){d=d===void 0?!1:d;this.original_=M;this.originalPrefix_="";(M=this.original_.match($I4))&&M[0]?(this.originalPrefix_=M[0],M=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):M="http://"+this.original_;this.uri_=_.Kk(M,!0);this.isFreeformUrl_=d;this.JSC$17212_valid_=!0;this.obfuscated_=!1},BlD=function(M,d){M.JSC$17214_pathPrefix_=M.JSC$17214_pathPrefix_?M.JSC$17214_pathPrefix_+("/"+d):d},Nj=function(M){if(M.JSC$17214_components_==
void 0){var d=M.uri_.getPath().substring(1);
M.JSC$17214_pathPrefix_=null;if(M.isFreeformUrl_){M.JSC$17214_components_=[];if((d.match(/=/g)||[]).length>1)return M.JSC$17212_valid_=!1,M.JSC$17214_components_;var N=d.indexOf("=");N!=-1?(M.JSC$17214_components_.push(d.substr(0,N)),M.JSC$17214_components_.push(d.substr(N+1))):M.JSC$17214_components_.push(d);return M.JSC$17214_components_}M.JSC$17214_components_=d.split("/");d=M.JSC$17214_components_.length;d>2&&M.JSC$17214_components_[0]=="u"&&(BlD(M,M.JSC$17214_components_[0]+"/"+M.JSC$17214_components_[1]),
M.JSC$17214_components_.shift(),M.JSC$17214_components_.shift(),d-=2);if(d==0||d==4||d>7)return M.JSC$17212_valid_=!1,M.JSC$17214_components_;if(d==2)BlD(M,M.JSC$17214_components_[0]);else if(M.JSC$17214_components_[0]=="image")BlD(M,M.JSC$17214_components_[0]);else if(d==7||d==3)return M.JSC$17212_valid_=!1,M.JSC$17214_components_;if(d<=3){M.obfuscated_=!0;d==3&&(BlD(M,M.JSC$17214_components_[1]),M.JSC$17214_components_.shift(),--d);--d;N=M.JSC$17214_components_[d];var R=N.indexOf("=");R!=-1&&(M.JSC$17214_components_[d]=
N.substr(0,R),M.JSC$17214_components_.push(N.substr(R+1)))}}return M.JSC$17214_components_};
dp.prototype.isValid=function(){Nj(this);return this.JSC$17212_valid_};
dp.prototype.isObfuscated=function(){Nj(this);return this.obfuscated_};
var dLd=function(M){Nj(M);return M.isFreeformUrl_},RV=function(M){Nj(M);
M.JSC$17214_pathPrefix_==void 0&&(M.JSC$17214_pathPrefix_=null);return M.JSC$17214_pathPrefix_},NYe=function(M){switch(Nj(M).length){case 7:return!0;
case 6:return RV(M)==null;case 5:return!1;case 3:return!0;case 2:return RV(M)==null;case 1:return!1;default:return!1}},Xd=function(M,d){if(dLd(M))a:{switch(d){case 7:d=0;
break;case 4:if(!NYe(M)){M=null;break a}d=1;break;default:M=null;break a}M=Nj(M)[d]}else if(M.isObfuscated())a:{var N=RV(M)!=null?1:0;switch(d){case 6:d=N;break;case 4:if(!NYe(M)){M=null;break a}d=1+N;break;default:M=null;break a}M=Nj(M)[d]}else a:{N=RV(M)!=null?1:0;switch(d){case 0:d=N;break;case 1:d=1+N;break;case 2:d=2+N;break;case 3:d=3+N;break;case 4:if(!NYe(M)){M=null;break a}d=4+N;break;case 5:d=NYe(M)?1:0;d=4+N+d;break;default:M=null;break a}M=Nj(M)[d]}return M};
dp.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Xd(this,4));return this.options_};var $w9=function(){};
$w9.prototype.parse=function(M,d){return new VEe(M,d===void 0?!1:d)};
var VEe=function(M,d){dp.call(this,M,d===void 0?!1:d)};
_.v(VEe,dp);_.RX(WH,gi);var lIb;WH.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
WH.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var M=WH.superClass_.build.call(this),d=[];RV(this.parsedImageUrl_)!=null&&d.push(RV(this.parsedImageUrl_));var N=dLd(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var R=this.parsedImageUrl_;R.obfuscatedData_==void 0&&(R.obfuscatedData_=Xd(R,6));d.push(R.obfuscatedData_+(M?"="+M:""))}else if(N){R=d.push;var X=this.parsedImageUrl_;X.freeformUrlPath_===void 0&&(X.freeformUrlPath_=Xd(X,
7));R.call(d,X.freeformUrlPath_);M&&d.push(M)}else R=d.push,X=this.parsedImageUrl_,X.obfuscatedGaiaId_==void 0&&(X.obfuscatedGaiaId_=Xd(X,0)),R.call(d,X.obfuscatedGaiaId_),R=d.push,X=this.parsedImageUrl_,X.photoId_==void 0&&(X.photoId_=Xd(X,1)),R.call(d,X.photoId_),R=d.push,X=this.parsedImageUrl_,X.imageVersion_==void 0&&(X.imageVersion_=Xd(X,2)),R.call(d,X.imageVersion_),R=d.push,X=this.parsedImageUrl_,X.signature_==void 0&&(X.signature_=Xd(X,3)),R.call(d,X.signature_),M&&d.push(M),M=d.push,R=this.parsedImageUrl_,
R.filename_==void 0&&(R.filename_=Xd(R,5)),M.call(d,R.filename_);d=N?d.join("="):d.join("/");d=_.Kk(this.protocolPrefix_+this.JSC$17220_domain_+"/"+d+(this.JSC$17220_query_?"?"+this.JSC$17220_query_:"")).toString();d.startsWith("%3a//")&&(d=d.replace("%3a//","://"));return d};var RVG=_.a1(["viewBox"]),X3G=_.a1(["width"]),FEP=_.a1(["height"]),A4r=_.a1(["fill"]),VXe=_.a1(["id"]),lBq=_.a1(["x"]),$LC=_.a1(["y"]);kD$.prototype.getLength=function(){return this.parsedData.length};
kD$.prototype.write=function(M){for(var d=0,N=this.parsedData.length;d<N;d++)M.put(this.parsedData[d],8)};
var mwq=function(M,d){var N=new kD$(d);M.dataList.push(N);N=M.errorCorrectLevel;var R=1,X=encodeURI(d).toString().replace(/%[0-9a-fA-F]{2}/g,"a");d=X.length+(X.length!=d?3:0);X=0;for(var A=Fd.length;X<=A;X++){var l=0;switch(N){case 1:l=Fd[X][0];break;case 0:l=Fd[X][1];break;case 3:l=Fd[X][2];break;case 2:l=Fd[X][3]}if(d<=l)break;else R++}if(R>Fd.length)throw Error("vk");M.typeNumber=R;M.dataCache=null};
TBr.prototype.isDark=function(M,d){if(M<0||this.moduleCount<=M||d<0||this.moduleCount<=d)throw Error("nk`"+M+"`"+d);return this.modules[M][d]};
for(var hgG=function(M,d,N){M.moduleCount=M.typeNumber*4+17;M.modules=Array(M.moduleCount);for(var R=0;R<M.moduleCount;R++){M.modules[R]=Array(M.moduleCount);for(var X=0;X<M.moduleCount;X++)M.modules[R][X]=null}BY$(M,0,0);BY$(M,M.moduleCount-7,0);BY$(M,0,M.moduleCount-7);R=kY9[M.typeNumber-1];for(X=0;X<R.length;X++)for(var A=0;A<R.length;A++){var l=R[X],k=R[A];if(M.modules[l][k]==null)for(var T=-2;T<=2;T++)for(var W=-2;W<=2;W++)M.modules[l+T][k+W]=T==-2||T==2||W==-2||W==2||T==0&&W==0?!0:!1}for(R=
8;R<M.moduleCount-8;R++)M.modules[R][6]==null&&(M.modules[R][6]=R%2==0);for(R=8;R<M.moduleCount-8;R++)M.modules[6][R]==null&&(M.modules[6][R]=R%2==0);R=M.errorCorrectLevel<<3|N;for(X=R<<10;Ap(X)-Ap(1335)>=0;)X^=1335<<Ap(X)-Ap(1335);R=(R<<10|X)^21522;for(X=0;X<15;X++)A=!d&&(R>>X&1)==1,X<6?M.modules[X][8]=A:X<8?M.modules[X+1][8]=A:M.modules[M.moduleCount-15+X][8]=A;for(X=0;X<15;X++)A=!d&&(R>>X&1)==1,X<8?M.modules[8][M.moduleCount-X-1]=A:X<9?M.modules[8][15-X-1+1]=A:M.modules[8][15-X-1]=A;M.modules[M.moduleCount-
8][8]=!d;if(M.typeNumber>=7){R=M.typeNumber;for(X=R<<12;Ap(X)-Ap(7973)>=0;)X^=7973<<Ap(X)-Ap(7973);R=R<<12|X;for(X=0;X<18;X++)A=!d&&(R>>X&1)==1,M.modules[Math.floor(X/3)][X%3+M.moduleCount-8-3]=A;for(X=0;X<18;X++)A=!d&&(R>>X&1)==1,M.modules[X%3+M.moduleCount-8-3][Math.floor(X/3)]=A}if(M.dataCache==null){X=M.typeNumber;A=M.dataList;d=M.errorCorrectLevel;R=TYd(X,d);if(R==void 0)throw Error("uk`"+X+"`"+d);l=R.length/3;d=[];for(k=0;k<l;k++){T=R[k*3];W=R[k*3+1];for(var w=R[k*3+2],p=0;p<T;p++)d.push(new Dwi(W,
w))}R=new gPr;for(l=0;l<A.length;l++)k=A[l],R.put(k.mode,4),R.put(k.getLength(),DLb(k.mode,X)),k.write(R);for(l=X=0;l<d.length;l++)X+=d[l].dataCount;if(R.length>X*8)throw Error("ok`"+R.length+"`"+X*8);for(R.length+4<=X*8&&R.put(0,4);R.length%8!=0;)gk4(R,!1);for(;!(R.length>=X*8);){R.put(236,8);if(R.length>=X*8)break;R.put(17,8)}A=X=W=0;l=Array(d.length);k=Array(d.length);for(T=0;T<d.length;T++){p=d[T].dataCount;var m=d[T].totalCount-p;X=Math.max(X,p);A=Math.max(A,m);l[T]=Array(p);for(w=0;w<l[T].length;w++)l[T][w]=
255&R.buffer[w+W];W+=p;w=m;p=new wi([1],0);for(m=0;m<w;m++)p=p.multiply(new wi([1,WE$(m)],0));w=p;p=(new wi(l[T],w.getLength()-1)).mod(w);k[T]=Array(w.getLength()-1);for(w=0;w<k[T].length;w++)m=w+p.getLength()-k[T].length,k[T][w]=m>=0?p.get(m):0}for(w=R=0;w<d.length;w++)R+=d[w].totalCount;R=Array(R);for(w=W=0;w<X;w++)for(T=0;T<d.length;T++)w<l[T].length&&(R[W++]=l[T][w]);for(w=0;w<A;w++)for(T=0;T<d.length;T++)w<k[T].length&&(R[W++]=k[T][w]);M.dataCache=R}d=M.dataCache;R=-1;X=M.moduleCount-1;A=7;l=
0;for(k=M.moduleCount-1;k>0;k-=2)for(k==6&&k--;;){for(T=0;T<2;T++)M.modules[X][k-T]==null&&(W=!1,l<d.length&&(W=(d[l]>>>A&1)==1),w3$(N,X,k-T)&&(W=!W),M.modules[X][k-T]=W,A--,A==-1&&(l++,A=7));X+=R;if(X<0||M.moduleCount<=X){X-=R;R=-R;break}}},BY$=function(M,d,N){for(var R=-1;R<=7;R++)if(!(d+R<=-1||M.moduleCount<=d+R))for(var X=-1;X<=7;X++)N+X<=-1||M.moduleCount<=N+X||(M.modules[d+R][N+X]=0<=R&&R<=6&&(X==0||X==6)||0<=X&&X<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=X&&X<=4?!0:!1)},QnY=function(M){for(var d=0,
N=0,R=0;R<8;R++){hgG(M,!0,R);
var X=M;for(var A=X.moduleCount,l=0,k=0;k<A;k++)for(var T=0;T<A;T++){for(var W=0,w=X.isDark(k,T),p=-1;p<=1;p++)if(!(k+p<0||A<=k+p))for(var m=-1;m<=1;m++)T+m<0||A<=T+m||(p!=0||m!=0)&&w==X.isDark(k+p,T+m)&&W++;W>5&&(l+=3+W-5)}for(k=0;k<A-1;k++)for(T=0;T<A-1;T++)if(W=0,X.isDark(k,T)&&W++,X.isDark(k+1,T)&&W++,X.isDark(k,T+1)&&W++,X.isDark(k+1,T+1)&&W++,W==0||W==4)l+=3;for(k=0;k<A;k++)for(T=0;T<A-6;T++)X.isDark(k,T)&&!X.isDark(k,T+1)&&X.isDark(k,T+2)&&X.isDark(k,T+3)&&X.isDark(k,T+4)&&!X.isDark(k,T+5)&&
X.isDark(k,T+6)&&(l+=40);for(T=0;T<A;T++)for(k=0;k<A-6;k++)X.isDark(k,T)&&!X.isDark(k+1,T)&&X.isDark(k+2,T)&&X.isDark(k+3,T)&&X.isDark(k+4,T)&&!X.isDark(k+5,T)&&X.isDark(k+6,T)&&(l+=40);for(T=W=0;T<A;T++)for(k=0;k<A;k++)X.isDark(k,T)&&W++;X=l+=Math.abs(100*W/A/A-50)/5*10;if(R==0||d>X)d=X,N=R}return N},kY9=[[],
[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]],Ap=function(M){for(var d=0;M!=0;)d++,M>>>=1;return d},w3$=function(M,d,N){switch(M){case 0:return(d+N)%2==0;
case 1:return d%2==0;case 2:return N%3==0;case 3:return(d+N)%3==0;case 4:return(Math.floor(d/2)+Math.floor(N/3))%2==0;case 5:return d*N%2+d*N%3==0;case 6:return(d*N%2+d*N%3)%2==0;case 7:return(d*N%3+(d+N)%2)%2==0;default:throw Error("pk`"+M);}},DLb=function(M,d){if(1<=d&&d<10)switch(M){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+M);}else if(d<27)switch(M){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+M);}else if(d<41)switch(M){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+M);}else throw Error("rk`"+d);},Vn=function(M){if(M<1)throw Error("sk`"+M);
return p34[M]},WE$=function(M){for(;M<0;)M+=255;
for(;M>=256;)M-=255;return lq[M]},lq=Array(256),p34=Array(256),mLe=0;mLe<8;mLe++)lq[mLe]=1<<mLe;
for(var $E=8;$E<256;$E++)lq[$E]=lq[$E-4]^lq[$E-5]^lq[$E-6]^lq[$E-8];for(var hVC=0;hVC<255;hVC++)p34[lq[hVC]]=hVC;wi.prototype.get=function(M){return this.num[M]};
wi.prototype.getLength=function(){return this.num.length};
wi.prototype.multiply=function(M){for(var d=Array(this.getLength()+M.getLength()-1),N=0;N<this.getLength();N++)for(var R=0;R<M.getLength();R++)d[N+R]^=WE$(Vn(this.get(N))+Vn(M.get(R)));return new wi(d,0)};
wi.prototype.mod=function(M){if(this.getLength()-M.getLength()<0)return this;for(var d=Vn(this.get(0))-Vn(M.get(0)),N=Array(this.getLength()),R=0;R<this.getLength();R++)N[R]=this.get(R);for(R=0;R<M.getLength();R++)N[R]^=WE$(Vn(M.get(R))+d);return(new wi(N,0)).mod(M)};
var QUP=[[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]],TYd=function(M,d){switch(d){case 1:return QUP[(M-1)*4];case 0:return QUP[(M-1)*4+1];case 3:return QUP[(M-1)*4+2];case 2:return QUP[(M-1)*4+3]}};
gPr.prototype.get=function(M){return(this.buffer[Math.floor(M/8)]>>>7-M%8&1)==1};
gPr.prototype.put=function(M,d){for(var N=0;N<d;N++)gk4(this,(M>>>d-N-1&1)==1)};
var gk4=function(M,d){var N=Math.floor(M.length/8);M.buffer.length<=N&&M.buffer.push(0);d&&(M.buffer[N]|=128>>>M.length%8);M.length++},Fd=[[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]],pl$=function(){var M=function(d,N){this.JSC$17240__el=d;this.JSC$17240__htOption=N};
M.prototype.draw=function(d){function N(w,p){w=document.createElementNS("http://www.w3.org/2000/svg",w);for(var m in p)p.hasOwnProperty(m)&&(m==="href"?_.o4G(w,p[m]):_.by([_.a2(RVG),_.a2(X3G),_.a2(FEP),_.a2(A4r),_.a2(VXe),_.a2(lBq),_.a2($LC)],w,m,p[m]));return w}
var R=this.JSC$17240__htOption,X=this.JSC$17240__el,A=d.moduleCount;this.clear();var l=N("svg",{viewBox:"0 0 "+String(A)+" "+String(A),width:"100%",height:"100%",fill:R.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});X.appendChild(l);l.appendChild(N("rect",{fill:R.colorLight,width:"100%",height:"100%"}));l.appendChild(N("rect",{fill:R.colorDark,width:"1",height:"1",id:"template"}));for(var k=0;k<A;k++)for(var T=0;T<A;T++)if(d.isDark(k,T)){var W=N("use",{x:String(k),y:String(T),href:"#template"});
l.appendChild(W)}};
M.prototype.clear=function(){for(;this.JSC$17240__el.hasChildNodes();)this.JSC$17240__el.removeChild(this.JSC$17240__el.lastChild)};
return M}(),wl4=document.documentElement.tagName.toLowerCase()==="svg"?pl$:typeof CanvasRenderingContext2D!="undefined"?function(){var M=function(d,N){this._bIsPainted=!1;
WYY();this.JSC$17240__htOption=N;this._elCanvas=document.createElement("canvas");this._elCanvas.width=N.width;this._elCanvas.height=N.height;d.appendChild(this._elCanvas);this.JSC$17240__el=d;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$17240__el.appendChild(this._elImage);this._bSupportDataURI=null};
M.prototype._onMakeImage=function(){var d=this._elCanvas.toDataURL("image/png");this._elImage.src=d;this._elImage.style.display="block";this._elCanvas.style.display="none"};
M.prototype._safeSetDataURI=function(d,N){var R=this;R._fFail=N;R._fSuccess=d;R._bSupportDataURI===null?(d=_.Vf("IMG"),N=function(){R._bSupportDataURI=!1;R._fFail&&R._fFail.call(R)},d.onabort=N,d.onerror=N,d.onload=function(){R._bSupportDataURI=!0;
R._fSuccess&&R._fSuccess.call(R)},d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):R._bSupportDataURI===!0&&R._fSuccess?R._fSuccess.call(R):R._bSupportDataURI===!1&&R._fFail&&R._fFail.call(R)};
M.prototype.draw=function(d){var N=this._oContext,R=this.JSC$17240__htOption,X=d.moduleCount,A=R.width/X,l=R.height/X,k=Math.round(A),T=Math.round(l);this._elImage.style.display="none";this.clear();for(var W=0;W<X;W++)for(var w=0;w<X;w++){var p=d.isDark(W,w),m=w*A,I=W*l;N.strokeStyle=p?R.colorDark:R.colorLight;N.lineWidth=1;N.fillStyle=p?R.colorDark:R.colorLight;N.fillRect(m,I,A,l);N.strokeRect(Math.floor(m)+.5,Math.floor(I)+.5,k,T);N.strokeRect(Math.ceil(m)-.5,Math.ceil(I)-.5,k,T)}this._bIsPainted=
!0};
M.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
M.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
M.prototype.round=function(d){return d?Math.floor(d*1E3)/1E3:d};
return M}():function(){var M=function(d,N){this.JSC$17240__el=d;
this.JSC$17240__htOption=N};
M.prototype.draw=function(d){for(var N=this.JSC$17240__htOption,R=this.JSC$17240__el,X=d.moduleCount,A=Math.floor(N.width/X),l=Math.floor(N.height/X),k=['<table style="border:0;border-collapse:collapse;">'],T=0;T<X;T++){k.push("<tr>");for(var W=0;W<X;W++)k.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+A+"px;height:"+l+"px;background-color:"+(d.isDark(T,W)?N.colorDark:N.colorLight)+';"></td>');k.push("</tr>")}k.push("</table>");d=k.join("");d=_.Mie(_.NqI,d);_.zP(R,d);
d=R.childNodes[0];X=(N.width-d.offsetWidth)/2;A=(N.height-d.offsetHeight)/2;X>0&&A>0&&(d.style.margin=A+"px "+X+"px")};
M.prototype.clear=function(){this.JSC$17240__el.textContent=""};
return M}();
qu9.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17243__android||this.JSC$17243__android>=3)&&this._oDrawing.makeImage()};
qu9.prototype.clear=function(){this._oDrawing.clear()};
_.Np.QRCode=qu9;var qM4={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var B2=function(){};
B2.prototype.stringify=function(M){return _.Np.JSON.stringify(M,void 0)};
B2.prototype.parse=function(M){return _.Np.JSON.parse(M,void 0)};var IB$=function(){_.Dj.call(this,"z")};
_.RX(IB$,_.Dj);var vkT=function(){_.Dj.call(this,"y")};
_.RX(vkT,_.Dj);var Oxb=null,jUi=function(){return Oxb=Oxb||new _.mk},sUG=function(M){_.Dj.call(this,"serverreachability",M)};
_.RX(sUG,_.Dj);var kE=function(M){var d=jUi();d.dispatchEvent(new sUG(d,M))},PVT=function(M){_.Dj.call(this,"statevent",M)};
_.RX(PVT,_.Dj);var Ty=function(M){var d=jUi();d.dispatchEvent(new PVT(d,M))},oke=function(M,d,N,R){_.Dj.call(this,"timingevent",M);
this.size=d;this.rtt=N;this.retries=R};
_.RX(oke,_.Dj);var r4e=function(M,d,N){var R=jUi();R.dispatchEvent(new oke(R,M,d,N))},DZ=function(M,d){if(typeof M!=="function")throw Error("wk");
return _.Np.setTimeout(function(){M()},d)};var gp=function(){this.redactEnabled_=!0};
gp.prototype.disableRedact=function(){this.redactEnabled_=!1};
var KEY=function(M,d,N,R,X,A){M.info(function(){if(M.redactEnabled_)if(A){var l="";for(var k=A.split("&"),T=0;T<k.length;T++){var W=k[T].split("=");if(W.length>1){var w=W[0];W=W[1];var p=w.split("_");l=p.length>=2&&p[1]=="type"?l+(w+"="+W+"&"):l+(w+"=redacted&")}}}else l=null;else l=A;return"XMLHTTP REQ ("+R+") [attempt "+X+"]: "+d+"\n"+N+"\n"+l})},y4e=function(M,d,N,R,X,A,l){M.info(function(){return"XMLHTTP RESP ("+R+") [ attempt "+X+"]: "+d+"\n"+N+"\n"+A+" "+l})},W2=function(M,d,N,R){M.info(function(){return"XMLHTTP TEXT ("+
d+"): "+J4q(M,N)+(R?" "+R:"")})},c4i=function(M,d){M.info(function(){return"TIMEOUT: "+d})};
gp.prototype.debug=function(){};
gp.prototype.info=function(){};
gp.prototype.warning=function(){};
var J4q=function(M,d){if(!M.redactEnabled_)return d;if(!d)return null;try{var N=JSON.parse(d);if(N)for(var R=0;R<N.length;R++)if(Array.isArray(N[R])){var X=N[R];if(!(X.length<2)){var A=X[1];if(Array.isArray(A)&&!(A.length<1)){var l=A[0];if(l!="noop"&&l!="stop"&&l!="close")for(var k=1;k<A.length;k++)A[k]=""}}}return(0,_.js)(N)}catch(T){return M.debug("Exception parsing expected JS array - probably was not JS"),d}};var wp=function(M,d,N,R,X){this.JSC$17265_channel_=M;this.JSC$17265_channelDebug_=d;this.sid_=N;this.JSC$17265_rid_=R;this.JSC$17265_retryId_=X||1;this.JSC$17265_eventHandler_=new _.a_(this);this.timeout_=45E3;this.JSC$17265_extraHeaders_=null;this.JSC$17265_successful_=!1;this.JSC$17265_postData_=this.JSC$17265_requestUri_=this.JSC$17265_baseUri_=this.JSC$17265_type_=this.JSC$17265_requestStartTime_=this.JSC$17265_watchDogTimeoutTime_=this.JSC$17265_watchDogTimerId_=null;this.JSC$17265_pendingMessages_=
[];this.JSC$17265_xmlHttp_=null;this.JSC$17265_xmlHttpChunkStart_=0;this.JSC$17265_lastError_=this.JSC$17265_verb_=null;this.JSC$17265_lastStatusCode_=-1;this.JSC$17265_cancelled_=!1;this.JSC$17265_readyStateChangeThrottleMs_=0;this.JSC$17265_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new SMG},SMG=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},zV$=function(M,d){switch(M){case 0:return"Non-200 return code ("+d+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},bxG={},eVi={};
wp.prototype.setTimeout=function(M){this.timeout_=M};
var nkq=function(M,d,N){M.JSC$17265_type_=1;M.JSC$17265_baseUri_=_.XX(d.clone());M.JSC$17265_postData_=N;M.decodeChunks_=!0;Hxq(M,null)},Hxq=function(M,d){M.JSC$17265_requestStartTime_=Date.now();
ixq(M);M.JSC$17265_requestUri_=M.JSC$17265_baseUri_.clone();Yo(M.JSC$17265_requestUri_,"t",M.JSC$17265_retryId_);M.JSC$17265_xmlHttpChunkStart_=0;var N=M.JSC$17265_channel_.JSC$17284_supportsCrossDomainXhrs_;M.fetchResponseState_=new SMG;M.JSC$17265_xmlHttp_=fBi(M.JSC$17265_channel_,N?d:null,!M.JSC$17265_postData_);M.JSC$17265_readyStateChangeThrottleMs_>0&&(M.JSC$17265_readyStateChangeThrottle_=new _.ua((0,_.gx)(M.JSC$17269_xmlHttpHandler_,M,M.JSC$17265_xmlHttp_),M.JSC$17265_readyStateChangeThrottleMs_));
M.JSC$17265_eventHandler_.listen(M.JSC$17265_xmlHttp_,"readystatechange",M.JSC$17269_readyStateChangeHandler_);d=M.JSC$17265_extraHeaders_?_.wF.clone(M.JSC$17265_extraHeaders_):{};M.JSC$17265_postData_?(M.JSC$17265_verb_||(M.JSC$17265_verb_="POST"),d["Content-Type"]="application/x-www-form-urlencoded",M.JSC$17265_xmlHttp_.send(M.JSC$17265_requestUri_,M.JSC$17265_verb_,M.JSC$17265_postData_,d)):(M.JSC$17265_verb_="GET",M.JSC$17265_xmlHttp_.send(M.JSC$17265_requestUri_,M.JSC$17265_verb_,null,d));kE(1);
KEY(M.JSC$17265_channelDebug_,M.JSC$17265_verb_,M.JSC$17265_requestUri_,M.JSC$17265_rid_,M.JSC$17265_retryId_,M.JSC$17265_postData_)};
wp.prototype.JSC$17269_readyStateChangeHandler_=function(M){M=M.target;var d=this.JSC$17265_readyStateChangeThrottle_;d&&_.PX(M)==3?(this.JSC$17265_channelDebug_.debug("Throttling readystatechange."),d.fire()):this.JSC$17269_xmlHttpHandler_(M)};
wp.prototype.JSC$17269_xmlHttpHandler_=function(M){try{M==this.JSC$17265_xmlHttp_?LEq(this):this.JSC$17265_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(d){this.JSC$17265_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),tXi(this)}finally{}};
var LEq=function(M){var d=_.PX(M.JSC$17265_xmlHttp_),N=M.JSC$17265_xmlHttp_.JSC$7680_lastErrorCode_,R=M.JSC$17265_xmlHttp_.getStatus();if(!(d<3||d==3&&!tXi(M))){M.JSC$17265_cancelled_||d!=4||N==7||(N==8||R<=0?kE(3):kE(2));GYD(M);var X=M.JSC$17265_xmlHttp_.getStatus();M.JSC$17265_lastStatusCode_=X;N=aBG(M);tXi(M)||M.JSC$17265_channelDebug_.debug(function(){return"No response text for uri "+M.JSC$17265_requestUri_+" status "+X});
M.JSC$17265_successful_=X==200;y4e(M.JSC$17265_channelDebug_,M.JSC$17265_verb_,M.JSC$17265_requestUri_,M.JSC$17265_rid_,M.JSC$17265_retryId_,d,X);if(M.JSC$17265_successful_){if(M.decodeInitialResponse_&&!M.initialResponseDecoded_)if(R=ULe(M))W2(M.JSC$17265_channelDebug_,M.JSC$17265_rid_,R,"Initial handshake response via X-HTTP-Initial-Response"),M.initialResponseDecoded_=!0,uNb(M,R);else{M.JSC$17265_successful_=!1;M.JSC$17265_lastError_=3;Ty(12);M.JSC$17265_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
M.JSC$17265_rid_+")");pY(M);mo(M);return}M.decodeChunks_?CVP(M,d,N):(W2(M.JSC$17265_channelDebug_,M.JSC$17265_rid_,N,null),uNb(M,N));d==4&&pY(M);M.JSC$17265_successful_&&!M.JSC$17265_cancelled_&&(d==4?xLJ(M.JSC$17265_channel_,M):(M.JSC$17265_successful_=!1,ixq(M)))}else USY(M.JSC$17265_xmlHttp_),X==400&&N.indexOf("Unknown SID")>0?(M.JSC$17265_lastError_=3,Ty(12),M.JSC$17265_channelDebug_.warning("XMLHTTP Unknown SID ("+M.JSC$17265_rid_+")")):(M.JSC$17265_lastError_=0,Ty(13),M.JSC$17265_channelDebug_.warning("XMLHTTP Bad status "+
X+" ("+M.JSC$17265_rid_+")")),pY(M),mo(M)}},ULe=function(M){return M.JSC$17265_xmlHttp_&&(M=FH(M.JSC$17265_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ki(M)?M:null},aBG=function(M){if(!YMr(M))return M.JSC$17265_xmlHttp_.getResponseText();
var d=M.JSC$17265_xmlHttp_.getResponse();if(d==="")return"";var N="",R=d.length,X=_.PX(M.JSC$17265_xmlHttp_)==4;if(!M.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return pY(M),mo(M),"";M.fetchResponseState_.textDecoder=new _.Np.TextDecoder}for(var A=0;A<R;A++)M.fetchResponseState_.responseArrivedForFetch=!0,N+=M.fetchResponseState_.textDecoder.decode(d[A],{stream:!(X&&A==R-1)});d.length=0;M.fetchResponseState_.responseBuffer+=N;M.JSC$17265_xmlHttpChunkStart_=0;return M.fetchResponseState_.responseBuffer},
tXi=function(M){return M.JSC$17265_xmlHttp_?M.fetchResponseState_.responseArrivedForFetch?!0:!(!M.JSC$17265_xmlHttp_.getResponseText()&&!M.JSC$17265_xmlHttp_.getResponse()):!1},YMr=function(M){return M.JSC$17265_xmlHttp_?M.JSC$17265_verb_=="GET"&&M.JSC$17265_type_!=2&&M.JSC$17265_channel_.usesFetchStreams_:!1},CVP=function(M,d,N){for(var R=!0,X;!M.JSC$17265_cancelled_&&M.JSC$17265_xmlHttpChunkStart_<N.length;)if(X=Zx9(M,N),X==eVi){d==4&&(M.JSC$17265_lastError_=4,Ty(14),R=!1);
W2(M.JSC$17265_channelDebug_,M.JSC$17265_rid_,null,"[Incomplete Response]");break}else if(X==bxG){M.JSC$17265_lastError_=4;Ty(15);W2(M.JSC$17265_channelDebug_,M.JSC$17265_rid_,N,"[Invalid Chunk]");R=!1;break}else W2(M.JSC$17265_channelDebug_,M.JSC$17265_rid_,X,null),uNb(M,X);YMr(M)&&M.JSC$17265_xmlHttpChunkStart_!=0&&(M.fetchResponseState_.responseBuffer=M.fetchResponseState_.responseBuffer.slice(M.JSC$17265_xmlHttpChunkStart_),M.JSC$17265_xmlHttpChunkStart_=0);d!=4||N.length!=0||M.fetchResponseState_.responseArrivedForFetch||
(M.JSC$17265_lastError_=1,Ty(16),R=!1);M.JSC$17265_successful_=M.JSC$17265_successful_&&R;R?N.length>0&&!M.firstByteReceived_&&(M.firstByteReceived_=!0,d=M.JSC$17265_channel_,d.JSC$17284_backChannelRequest_==M&&d.detectBufferingProxy_&&!d.bpDetectionDone_&&(d.JSC$17284_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+N.length),EkJ(d),d.bpDetectionDone_=!0,Ty(11))):(W2(M.JSC$17265_channelDebug_,M.JSC$17265_rid_,N,"[Invalid Chunked Response]"),pY(M),mo(M))},Zx9=function(M,d){var N=
M.JSC$17265_xmlHttpChunkStart_,R=d.indexOf("\n",N);
if(R==-1)return eVi;N=Number(d.substring(N,R));if(isNaN(N))return bxG;R+=1;if(R+N>d.length)return eVi;d=d.slice(R,R+N);M.JSC$17265_xmlHttpChunkStart_=R+N;return d};
wp.prototype.cancel=function(){this.JSC$17265_cancelled_=!0;pY(this)};
var ixq=function(M){M.JSC$17265_watchDogTimeoutTime_=Date.now()+M.timeout_;MPT(M,M.timeout_)},MPT=function(M,d){if(M.JSC$17265_watchDogTimerId_!=null)throw Error("xk");
M.JSC$17265_watchDogTimerId_=DZ((0,_.gx)(M.JSC$17269_onWatchDogTimeout_,M),d)},GYD=function(M){M.JSC$17265_watchDogTimerId_&&(_.Np.clearTimeout(M.JSC$17265_watchDogTimerId_),M.JSC$17265_watchDogTimerId_=null)};
wp.prototype.JSC$17269_onWatchDogTimeout_=function(){this.JSC$17265_watchDogTimerId_=null;var M=Date.now();M-this.JSC$17265_watchDogTimeoutTime_>=0?(c4i(this.JSC$17265_channelDebug_,this.JSC$17265_requestUri_),this.JSC$17265_type_!=2&&(kE(3),Ty(17)),pY(this),this.JSC$17265_lastError_=2,mo(this)):(this.JSC$17265_channelDebug_.warning("WatchDog timer called too early"),MPT(this,this.JSC$17265_watchDogTimeoutTime_-M))};
var mo=function(M){M.JSC$17265_channel_.state_==0||M.JSC$17265_cancelled_||xLJ(M.JSC$17265_channel_,M)},pY=function(M){GYD(M);
_.tw(M.JSC$17265_readyStateChangeThrottle_);M.JSC$17265_readyStateChangeThrottle_=null;M.JSC$17265_eventHandler_.removeAll();if(M.JSC$17265_xmlHttp_){var d=M.JSC$17265_xmlHttp_;M.JSC$17265_xmlHttp_=null;d.abort();d.dispose()}};
wp.prototype.getLastError=function(){return this.JSC$17265_lastError_};
var uNb=function(M,d){try{var N=M.JSC$17265_channel_;if(N.state_!=0&&(N.JSC$17284_backChannelRequest_==M||dGJ(N.forwardChannelRequestPool_,M)))if(!M.initialResponseDecoded_&&dGJ(N.forwardChannelRequestPool_,M)&&N.state_==3){try{var R=N.wireCodec_.JSC$17279_parser_.parse(d)}catch(k){R=null}if(Array.isArray(R)&&R.length==3){d=R;if(d[0]==0)a:if(N.JSC$17284_channelDebug_.debug("Server claims our backchannel is missing."),N.JSC$17284_backChannelTimerId_)N.JSC$17284_channelDebug_.debug("But we are currently starting the request.");
else{if(N.JSC$17284_backChannelRequest_)if(N.JSC$17284_backChannelRequest_.JSC$17265_requestStartTime_+3E3<M.JSC$17265_requestStartTime_)NI9(N),Rii(N);else break a;else N.JSC$17284_channelDebug_.warning("We do not have a BackChannel established");XFJ(N);Ty(18)}else{N.JSC$17284_lastPostResponseArrayId_=d[1];var X=N.JSC$17284_lastPostResponseArrayId_-N.JSC$17284_lastArrayId_;if(0<X){var A=d[2];N.JSC$17284_channelDebug_.debug(A+" bytes (in "+X+" arrays) are outstanding on the BackChannel");A<37500&&
N.enableStreaming_&&N.JSC$17284_backChannelRetryCount_==0&&!N.JSC$17284_deadBackChannelTimerId_&&(N.JSC$17284_deadBackChannelTimerId_=DZ((0,_.gx)(N.JSC$17286_onBackChannelDead_,N),6E3))}}if(FsY(N.forwardChannelRequestPool_)<=1&&N.forwardChannelFlushedCallback_){try{N.forwardChannelFlushedCallback_()}catch(k){}N.forwardChannelFlushedCallback_=void 0}}else N.JSC$17284_channelDebug_.debug("Bad POST response data returned"),hp(N,11)}else if((M.initialResponseDecoded_||N.JSC$17284_backChannelRequest_==
M)&&NI9(N),!_.ki(d)){var l=N.wireCodec_.JSC$17279_parser_.parse(d);N.onInput_(l,M)}kE(4)}catch(k){}};var AVb=function(M,d){this.JSC$17272_mapId=M;this.map=d;this.context=null};var VPi=function(M){this.maxPoolSizeConfigured_=M||10;_.Np.PerformanceNavigationTiming?(M=_.Np.performance.getEntriesByType("navigation"),M=M.length>0&&(M[0].nextHopProtocol=="hq"||M[0].nextHopProtocol=="h2")):M=!!(_.Np.chrome&&_.Np.chrome.loadTimes&&_.Np.chrome.loadTimes()&&_.Np.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17275_maxSize_=M?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17275_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17275_request_=null;this.JSC$17275_pendingMessages_=
[]},lAJ=function(M){return M.JSC$17275_request_?!0:M.requestPool_?M.requestPool_.size>=M.JSC$17275_maxSize_:!1},FsY=function(M){return M.JSC$17275_request_?1:M.requestPool_?M.requestPool_.size:0},dGJ=function(M,d){return M.JSC$17275_request_?M.JSC$17275_request_==d:M.requestPool_?M.requestPool_.has(d):!1},$GD=function(M,d){M.requestPool_?M.requestPool_.add(d):M.JSC$17275_request_=d},BI9=function(M,d){M.JSC$17275_request_&&M.JSC$17275_request_==d?M.JSC$17275_request_=null:M.requestPool_&&M.requestPool_.has(d)&&
M.requestPool_.delete(d)};
VPi.prototype.cancel=function(){this.JSC$17275_pendingMessages_=k9d(this);if(this.JSC$17275_request_)this.JSC$17275_request_.cancel(),this.JSC$17275_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var M=_.V(this.requestPool_.values()),d=M.next();!d.done;d=M.next())d.value.cancel();this.requestPool_.clear()}};
var k9d=function(M){if(M.JSC$17275_request_!=null)return M.JSC$17275_pendingMessages_.concat(M.JSC$17275_request_.JSC$17265_pendingMessages_);if(M.requestPool_!=null&&M.requestPool_.size!==0){var d=M.JSC$17275_pendingMessages_;M=_.V(M.requestPool_.values());for(var N=M.next();!N.done;N=M.next())d=d.concat(N.value.JSC$17265_pendingMessages_);return d}return _.US(M.JSC$17275_pendingMessages_)},TIY=function(M,d){M.JSC$17275_pendingMessages_=M.JSC$17275_pendingMessages_.concat(d)};var DGG=function(M,d){var N=new gp;N.debug("TestLoadImage: loading "+M);if(_.Np.Image){var R=new Image;R.onload=_.B1(Qn,N,"TestLoadImage: loaded",!0,d,R);R.onerror=_.B1(Qn,N,"TestLoadImage: error",!1,d,R);R.onabort=_.B1(Qn,N,"TestLoadImage: abort",!1,d,R);R.ontimeout=_.B1(Qn,N,"TestLoadImage: timeout",!1,d,R);_.Np.setTimeout(function(){if(R.ontimeout)R.ontimeout()},1E4);
R.src=M}else d(!1)},gnP=function(M,d){var N=new gp,R=new AbortController,X=setTimeout(function(){R.abort();
Qn(N,"TestPingServer: timeout",!1,d)},1E4);
fetch(M,{signal:R.signal}).then(function(A){clearTimeout(X);A.ok?Qn(N,"TestPingServer: ok",!0,d):Qn(N,"TestPingServer: server error",!1,d)}).catch(function(){clearTimeout(X);
Qn(N,"TestPingServer: error",!1,d)})},Qn=function(M,d,N,R,X){try{M.debug(d),X&&(X.onload=null,X.onerror=null,X.onabort=null,X.ontimeout=null),R(N)}catch(A){}};var WsG=function(){this.JSC$17279_parser_=new B2},wFP=function(M,d,N){var R=N||"";
try{_.lK3(M,function(X,A){var l=X;_.Me(X)&&(l=(0,_.js)(X));d.push(R+A+"="+encodeURIComponent(l))})}catch(X){throw d.push(R+"type="+encodeURIComponent("_badmap")),X;
}};var qj=function(M,d,N){return N&&N.internalChannelParams?N.internalChannelParams[M]||d:d},IV=function(M){this.serverVersion_=0;
this.JSC$17284_outgoingMaps_=[];this.JSC$17284_channelDebug_=new gp;this.JSC$17284_hostPrefix_=this.JSC$17284_backChannelUri_=this.JSC$17284_forwardChannelUri_=this.JSC$17284_path_=this.JSC$17284_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17284_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17284_extraHeaders_=null;this.JSC$17284_nextMapId_=this.JSC$17284_nextRid_=0;this.JSC$17284_failFast_=qj("failFast",!1,M);this.enableStreaming_=this.JSC$17284_deadBackChannelTimerId_=
this.JSC$17284_backChannelTimerId_=this.JSC$17284_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17284_lastPostResponseArrayId_=this.JSC$17284_lastArrayId_=-1;this.JSC$17284_backChannelAttemptId_=this.JSC$17284_backChannelRetryCount_=this.JSC$17284_forwardChannelRetryCount_=0;this.JSC$17284_baseRetryDelayMs_=qj("baseRetryDelayMs",5E3,M);this.JSC$17284_retryDelaySeedMs_=qj("retryDelaySeedMs",1E4,M);this.JSC$17284_forwardChannelMaxRetries_=
qj("forwardChannelMaxRetries",2,M);this.JSC$17284_forwardChannelRequestTimeoutMs_=qj("forwardChannelRequestTimeoutMs",2E4,M);this.JSC$17284_xmlHttpFactory_=M&&M.xmlHttpFactory||void 0;this.networkTestUrl_=M&&M.networkTestUrl||void 0;this.usesFetchStreams_=M&&M.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17284_supportsCrossDomainXhrs_=M&&M.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new VPi(M&&M.concurrentRequestLimit);this.wireCodec_=new WsG;this.fastHandshake_=
M&&M.fastHandshake||!1;this.encodeInitMessageHeaders_=M&&M.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17284_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=M&&M.blockingHandshake||!1;M&&M.disableRedact&&this.JSC$17284_channelDebug_.disableRedact();M&&M.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
M&&M.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;M&&M.longPollingTimeout&&M.longPollingTimeout>0&&(this.longPollingTimeout_=M.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
IV.prototype.JSC$17286_channelVersion_=8;IV.prototype.state_=1;
IV.prototype.connect=function(M,d,N,R){this.JSC$17284_channelDebug_.debug("connect()");Ty(0);this.JSC$17284_path_=M;this.JSC$17284_extraParams_=d||{};N&&R!==void 0&&(this.JSC$17284_extraParams_.OSID=N,this.JSC$17284_extraParams_.OAID=R);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17284_channelDebug_.debug("connectChannel_()");M=pFd(this,null,this.JSC$17284_path_);this.JSC$17284_channelDebug_.debug("GetForwardChannelUri: "+M);this.JSC$17284_forwardChannelUri_=M;mGP(this)};
IV.prototype.disconnect=function(){this.JSC$17284_channelDebug_.debug("disconnect()");hiq(this);if(this.state_==3){var M=this.JSC$17284_nextRid_++,d=this.JSC$17284_forwardChannelUri_.clone();_.J8(d,"SID",this.sid_);_.J8(d,"RID",M);_.J8(d,"TYPE","terminate");v2(this,d);M=new wp(this,this.JSC$17284_channelDebug_,this.sid_,M);M.JSC$17265_type_=2;M.JSC$17265_baseUri_=_.XX(d.clone());d=!1;if(_.Np.navigator&&_.Np.navigator.sendBeacon)try{d=_.Np.navigator.sendBeacon(M.JSC$17265_baseUri_.toString(),"")}catch(N){}!d&&
_.Np.Image&&((new Image).src=M.JSC$17265_baseUri_,d=!0);d||(M.JSC$17265_xmlHttp_=fBi(M.JSC$17265_channel_,null),M.JSC$17265_xmlHttp_.send(M.JSC$17265_baseUri_));M.JSC$17265_requestStartTime_=Date.now();ixq(M)}Qg$(this)};
var Rii=function(M){M.JSC$17284_backChannelRequest_&&(EkJ(M),M.JSC$17284_backChannelRequest_.cancel(),M.JSC$17284_backChannelRequest_=null)},hiq=function(M){Rii(M);
M.JSC$17284_backChannelTimerId_&&(_.Np.clearTimeout(M.JSC$17284_backChannelTimerId_),M.JSC$17284_backChannelTimerId_=null);NI9(M);M.forwardChannelRequestPool_.cancel();M.JSC$17284_forwardChannelTimerId_&&(typeof M.JSC$17284_forwardChannelTimerId_==="number"&&_.Np.clearTimeout(M.JSC$17284_forwardChannelTimerId_),M.JSC$17284_forwardChannelTimerId_=null)};
IV.prototype.getState=function(){return this.state_};
var mGP=function(M){lAJ(M.forwardChannelRequestPool_)||M.JSC$17284_forwardChannelTimerId_||(M.JSC$17284_forwardChannelTimerId_=!0,_.QK(M.JSC$17286_onStartForwardChannelTimer_,M),M.JSC$17284_forwardChannelRetryCount_=0)},IAY=function(M,d){if(FsY(M.forwardChannelRequestPool_)>=M.forwardChannelRequestPool_.JSC$17275_maxSize_-(M.JSC$17284_forwardChannelTimerId_?1:0))return!1;
if(M.JSC$17284_forwardChannelTimerId_)return M.JSC$17284_channelDebug_.debug("Use the retry request that is already scheduled."),M.JSC$17284_outgoingMaps_=d.JSC$17265_pendingMessages_.concat(M.JSC$17284_outgoingMaps_),!0;if(M.state_==1||M.state_==2||M.JSC$17284_forwardChannelRetryCount_>=(M.JSC$17284_failFast_?0:M.JSC$17284_forwardChannelMaxRetries_))return!1;M.JSC$17284_channelDebug_.debug("Going to retry POST");M.JSC$17284_forwardChannelTimerId_=DZ((0,_.gx)(M.JSC$17286_onStartForwardChannelTimer_,
M,d),qYG(M,M.JSC$17284_forwardChannelRetryCount_));M.JSC$17284_forwardChannelRetryCount_++;return!0};
IV.prototype.JSC$17286_onStartForwardChannelTimer_=function(M){if(this.JSC$17284_forwardChannelTimerId_)if(this.JSC$17284_forwardChannelTimerId_=null,this.JSC$17284_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!M){this.JSC$17284_channelDebug_.debug("open_()");this.JSC$17284_nextRid_=Math.floor(Math.random()*1E5);M=this.JSC$17284_nextRid_++;var d=new wp(this,this.JSC$17284_channelDebug_,"",M),N=this.JSC$17284_extraHeaders_;this.initHeaders_&&(N?(N=_.wF.clone(N),_.wF.extend(N,this.initHeaders_)):
N=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(d.JSC$17265_extraHeaders_=N,N=null);var R;if(this.fastHandshake_)a:{for(var X=R=0;X<this.JSC$17284_outgoingMaps_.length;X++){b:{var A=this.JSC$17284_outgoingMaps_[X];if("__data__"in A.map&&(A=A.map.__data__,typeof A==="string")){A=A.length;break b}A=void 0}if(A===void 0)break;R+=A;if(R>4096){R=X;break a}if(R===4096||X===this.JSC$17284_outgoingMaps_.length-1){R=X+1;break a}}R=1E3}else R=1E3;R=vn4(this,d,R);
X=this.JSC$17284_forwardChannelUri_.clone();_.J8(X,"RID",M);_.J8(X,"CVER",22);this.httpSessionIdParam_&&_.J8(X,"X-HTTP-Session-Id",this.httpSessionIdParam_);v2(this,X);N&&(this.encodeInitMessageHeaders_?R="headers="+_.ex(UH4(N))+"&"+R:this.httpHeadersOverwriteParam_&&uTd(X,this.httpHeadersOverwriteParam_,N));$GD(this.forwardChannelRequestPool_,d);this.blockingHandshake_&&_.J8(X,"TYPE","init");this.fastHandshake_?(_.J8(X,"$req",R),_.J8(X,"SID","null"),d.decodeInitialResponse_=!0,nkq(d,X,null)):nkq(d,
X,R);this.state_=2}}else this.state_==3&&(M?O7D(this,M):this.JSC$17284_outgoingMaps_.length==0?this.JSC$17284_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):lAJ(this.forwardChannelRequestPool_)||(O7D(this),this.JSC$17284_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var O7D=function(M,d){var N;d?N=d.JSC$17265_rid_:N=M.JSC$17284_nextRid_++;var R=M.JSC$17284_forwardChannelUri_.clone();_.J8(R,"SID",M.sid_);_.J8(R,"RID",N);_.J8(R,"AID",M.JSC$17284_lastArrayId_);v2(M,R);M.httpHeadersOverwriteParam_&&M.JSC$17284_extraHeaders_&&uTd(R,M.httpHeadersOverwriteParam_,M.JSC$17284_extraHeaders_);N=new wp(M,M.JSC$17284_channelDebug_,M.sid_,N,M.JSC$17284_forwardChannelRetryCount_+1);M.httpHeadersOverwriteParam_===null&&(N.JSC$17265_extraHeaders_=M.JSC$17284_extraHeaders_);d&&
(M.JSC$17284_outgoingMaps_=d.JSC$17265_pendingMessages_.concat(M.JSC$17284_outgoingMaps_));d=vn4(M,N,1E3);N.setTimeout(Math.round(M.JSC$17284_forwardChannelRequestTimeoutMs_*.5)+Math.round(M.JSC$17284_forwardChannelRequestTimeoutMs_*.5*Math.random()));$GD(M.forwardChannelRequestPool_,N);nkq(N,R,d)},v2=function(M,d){M.JSC$17284_extraParams_&&_.wF.forEach(M.JSC$17284_extraParams_,function(N,R){_.J8(d,R,N)});
M.handler_&&_.lK3({},function(N,R){_.J8(d,R,N)})},vn4=function(M,d,N){N=Math.min(M.JSC$17284_outgoingMaps_.length,N);
var R=M.handler_?(0,_.gx)(M.handler_.JSC$17290_badMapError,M.handler_,M):null;a:{for(var X=M.JSC$17284_outgoingMaps_,A=-1;;){var l=["count="+N];A==-1?N>0?(A=X[0].JSC$17272_mapId,l.push("ofs="+A)):A=0:l.push("ofs="+A);for(var k=!0,T=0;T<N;T++){var W=X[T].JSC$17272_mapId,w=X[T].map;W-=A;if(W<0)A=Math.max(0,X[T].JSC$17272_mapId-100),k=!1;else try{wFP(w,l,"req"+W+"_")}catch(p){R&&R(w)}}if(k){R=l.join("&");break a}}R=void 0}M=M.JSC$17284_outgoingMaps_.splice(0,N);d.JSC$17265_pendingMessages_=M;return R},
jgY=function(M){M.JSC$17284_backChannelRequest_||M.JSC$17284_backChannelTimerId_||(M.JSC$17284_backChannelAttemptId_=1,_.QK(M.JSC$17286_onStartBackChannelTimer_,M),M.JSC$17284_backChannelRetryCount_=0)},XFJ=function(M){if(M.JSC$17284_backChannelRequest_||M.JSC$17284_backChannelTimerId_||M.JSC$17284_backChannelRetryCount_>=3)return!1;
M.JSC$17284_channelDebug_.debug("Going to retry GET");M.JSC$17284_backChannelAttemptId_++;M.JSC$17284_backChannelTimerId_=DZ((0,_.gx)(M.JSC$17286_onStartBackChannelTimer_,M),qYG(M,M.JSC$17284_backChannelRetryCount_));M.JSC$17284_backChannelRetryCount_++;return!0};
IV.prototype.JSC$17286_onStartBackChannelTimer_=function(){this.JSC$17284_backChannelTimerId_=null;sgT(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17284_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17284_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17284_backChannelRequest_+" "+this.handshakeRttMs_);else{var M=2*this.handshakeRttMs_;this.JSC$17284_channelDebug_.info("BP detection timer enabled: "+M);this.bpDetectionTimerId_=DZ((0,_.gx)(this.onBpDetectionTimer_,
this),M)}};
IV.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17284_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17284_backChannelRequest_.JSC$17265_xmlHttp_!=null){var M=this.JSC$17284_backChannelRequest_.JSC$17265_xmlHttp_.getResponseText();M&&this.JSC$17284_channelDebug_.warning("Timer should have been cancelled : "+M)}this.JSC$17284_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ty(10);Rii(this);sgT(this)}else this.JSC$17284_channelDebug_.warning("Invalid operation.")};
var EkJ=function(M){M.bpDetectionTimerId_!=null&&(M.JSC$17284_channelDebug_.debug("Cancel the BP detection timer."),_.Np.clearTimeout(M.bpDetectionTimerId_),M.bpDetectionTimerId_=null)},sgT=function(M){M.JSC$17284_channelDebug_.debug("Creating new HttpRequest");
M.JSC$17284_backChannelRequest_=new wp(M,M.JSC$17284_channelDebug_,M.sid_,"rpc",M.JSC$17284_backChannelAttemptId_);M.httpHeadersOverwriteParam_===null&&(M.JSC$17284_backChannelRequest_.JSC$17265_extraHeaders_=M.JSC$17284_extraHeaders_);M.JSC$17284_backChannelRequest_.JSC$17265_readyStateChangeThrottleMs_=0;var d=M.JSC$17284_backChannelUri_.clone();_.J8(d,"RID","rpc");_.J8(d,"SID",M.sid_);_.J8(d,"AID",M.JSC$17284_lastArrayId_);_.J8(d,"CI",M.enableStreaming_?"0":"1");!M.enableStreaming_&&M.longPollingTimeout_&&
_.J8(d,"TO",M.longPollingTimeout_);_.J8(d,"TYPE","xmlhttp");v2(M,d);M.httpHeadersOverwriteParam_&&M.JSC$17284_extraHeaders_&&uTd(d,M.httpHeadersOverwriteParam_,M.JSC$17284_extraHeaders_);M.backChannelRequestTimeoutMs_&&M.JSC$17284_backChannelRequest_.setTimeout(M.backChannelRequestTimeoutMs_);var N=M.JSC$17284_backChannelRequest_,R=M.JSC$17284_hostPrefix_;N.JSC$17265_type_=1;N.JSC$17265_baseUri_=_.XX(d.clone());N.JSC$17265_postData_=null;N.decodeChunks_=!0;Hxq(N,R);M.JSC$17284_channelDebug_.debug("New Request created")};
IV.prototype.JSC$17286_onBackChannelDead_=function(){this.JSC$17284_deadBackChannelTimerId_!=null&&(this.JSC$17284_deadBackChannelTimerId_=null,Rii(this),XFJ(this),Ty(19))};
var NI9=function(M){M.JSC$17284_deadBackChannelTimerId_!=null&&(_.Np.clearTimeout(M.JSC$17284_deadBackChannelTimerId_),M.JSC$17284_deadBackChannelTimerId_=null)},xLJ=function(M,d){M.JSC$17284_channelDebug_.debug("Request complete");
var N=null;if(M.JSC$17284_backChannelRequest_==d){NI9(M);EkJ(M);M.JSC$17284_backChannelRequest_=null;var R=2}else if(dGJ(M.forwardChannelRequestPool_,d))N=d.JSC$17265_pendingMessages_,BI9(M.forwardChannelRequestPool_,d),R=1;else return;if(M.state_!=0)if(d.JSC$17265_successful_)R==1?(r4e(d.JSC$17265_postData_?d.JSC$17265_postData_.length:0,Date.now()-d.JSC$17265_requestStartTime_,M.JSC$17284_forwardChannelRetryCount_),mGP(M)):jgY(M);else{var X=d.JSC$17265_lastStatusCode_,A=d.getLastError();if(A==3||
A==0&&X>0)M.JSC$17284_channelDebug_.debug("Not retrying due to error type"),X>200&&(M.errorResponseStatusCode_=d.JSC$17265_lastStatusCode_);else{M.JSC$17284_channelDebug_.debug(function(){return"Maybe retrying, last error: "+zV$(A,M.errorResponseStatusCode_)});
if(R==1&&IAY(M,d)||R==2&&XFJ(M))return;M.JSC$17284_channelDebug_.debug("Exceeded max number of retries")}N&&N.length>0&&TIY(M.forwardChannelRequestPool_,N);M.JSC$17284_channelDebug_.debug("Error: HTTP request failed");switch(A){case 1:hp(M,5);break;case 4:hp(M,10);break;case 3:hp(M,6);break;default:hp(M,2)}}},qYG=function(M,d){var N=M.JSC$17284_baseRetryDelayMs_+Math.floor(Math.random()*M.JSC$17284_retryDelaySeedMs_);
M.isActive()||(M.JSC$17284_channelDebug_.debug("Inactive channel"),N*=2);return N*d};
IV.prototype.onInput_=function(M,d){for(var N=0;N<M.length;N++){var R=M[N];this.JSC$17284_lastArrayId_=R[0];R=R[1];if(this.state_==2)if(R[0]=="c"){this.sid_=R[1];this.JSC$17284_hostPrefix_=R[2];var X=R[3];X!=null&&(this.JSC$17286_channelVersion_=X,this.JSC$17284_channelDebug_.info("VER="+this.JSC$17286_channelVersion_));X=R[4];X!=null&&(this.serverVersion_=X,this.JSC$17284_channelDebug_.info("SVER="+this.serverVersion_));R=R[5];R!=null&&typeof R==="number"&&R>0&&(this.backChannelRequestTimeoutMs_=
R*=1.5,this.JSC$17284_channelDebug_.info("backChannelRequestTimeoutMs_="+R));if(R=d.JSC$17265_xmlHttp_){var A=FH(R,"X-Client-Wire-Protocol");A&&(X=this.forwardChannelRequestPool_,!X.requestPool_&&(_.T6(A,"spdy")||_.T6(A,"quic")||_.T6(A,"h2"))&&(X.JSC$17275_maxSize_=X.maxPoolSizeConfigured_,X.requestPool_=new Set,X.JSC$17275_request_&&($GD(X,X.JSC$17275_request_),X.JSC$17275_request_=null)));this.httpSessionIdParam_&&((R=FH(R,"X-HTTP-Session-Id"))?(this.httpSessionId_=R,_.J8(this.JSC$17284_forwardChannelUri_,
this.httpSessionIdParam_,R)):this.JSC$17284_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17290_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-d.JSC$17265_requestStartTime_,this.JSC$17284_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));R=d;X=pFd(this,this.JSC$17284_supportsCrossDomainXhrs_?this.JSC$17284_hostPrefix_:null,this.JSC$17284_path_);this.JSC$17284_channelDebug_.debug("GetBackChannelUri: "+
X);this.JSC$17284_backChannelUri_=X;R.initialResponseDecoded_?(this.JSC$17284_channelDebug_.debug("Upgrade the handshake request to a backchannel."),BI9(this.forwardChannelRequestPool_,R),X=R,(A=this.backChannelRequestTimeoutMs_)&&X.setTimeout(A),X.JSC$17265_watchDogTimerId_&&(GYD(X),ixq(X)),this.JSC$17284_backChannelRequest_=R):jgY(this);this.JSC$17284_outgoingMaps_.length>0&&mGP(this)}else R[0]!="stop"&&R[0]!="close"||hp(this,7);else this.state_==3&&(R[0]=="stop"||R[0]=="close"?R[0]=="stop"?hp(this,
7):this.disconnect():R[0]!="noop"&&this.handler_&&this.handler_.JSC$17290_channelHandleArray(R),this.JSC$17284_backChannelRetryCount_=0)}};
var hp=function(M,d){M.JSC$17284_channelDebug_.info("Error code "+d);if(d==2){var N=(0,_.gx)(M.testNetworkCallback_,M),R=M.networkTestUrl_,X=!R;R=new _.iX(R||"//www.google.com/images/cleardot.gif");_.Np.location&&_.Np.location.protocol=="http"||_.C2(R,"https");_.XX(R);X?DGG(R.toString(),N):gnP(R.toString(),N)}else Ty(2);M.onError_(d)};
IV.prototype.testNetworkCallback_=function(M){M?(this.JSC$17284_channelDebug_.info("Successfully pinged google.com"),Ty(2)):(this.JSC$17284_channelDebug_.info("Failed to ping google.com"),Ty(1))};
IV.prototype.onError_=function(M){this.JSC$17284_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$17290_channelError(M);Qg$(this);hiq(this)};
var Qg$=function(M){M.state_=0;M.nonAckedMapsAtChannelClose_=[];if(M.handler_){var d=k9d(M.forwardChannelRequestPool_);if(d.length!=0||M.JSC$17284_outgoingMaps_.length!=0)M.JSC$17284_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+d.length+", outgoing: "+M.JSC$17284_outgoingMaps_.length}),_.xi(M.nonAckedMapsAtChannelClose_,d),_.xi(M.nonAckedMapsAtChannelClose_,M.JSC$17284_outgoingMaps_),M.forwardChannelRequestPool_.JSC$17275_pendingMessages_.length=0,_.US(M.JSC$17284_outgoingMaps_),
M.JSC$17284_outgoingMaps_.length=0;
M.handler_.JSC$17290_channelClosed()}},Pcq=function(M){if(M.state_==0)return M.nonAckedMapsAtChannelClose_;
var d=[];_.xi(d,k9d(M.forwardChannelRequestPool_));_.xi(d,M.JSC$17284_outgoingMaps_);return d},pFd=function(M,d,N){var R=_.Kk(N);
R.JSC$7917_domain_!=""?(d&&_.x9(R,d+"."+R.JSC$7917_domain_),_.Y9(R,R.JSC$7917_port_)):(R=_.Np.location,R=bOC(R.protocol,d?d+"."+R.hostname:R.hostname,+R.port,N));d=M.httpSessionIdParam_;N=M.httpSessionId_;d&&N&&_.J8(R,d,N);_.J8(R,"VER",M.JSC$17286_channelVersion_);v2(M,R);return R},fBi=function(M,d,N){if(d&&!M.JSC$17284_supportsCrossDomainXhrs_)throw Error("yk");
d=M.usesFetchStreams_&&!M.JSC$17284_xmlHttpFactory_?new _.sF(new vE({streamBinaryChunks:N})):new _.sF(M.JSC$17284_xmlHttpFactory_);d.JSC$7680_withCredentials_=M.JSC$17284_supportsCrossDomainXhrs_;return d};
IV.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var onq=function(){};
_.F=onq.prototype;_.F.JSC$17290_channelOpened=function(){};
_.F.JSC$17290_channelHandleArray=function(){};
_.F.JSC$17290_channelError=function(){};
_.F.JSC$17290_channelClosed=function(){};
_.F.isActive=function(){return!0};
_.F.JSC$17290_badMapError=function(){};var rVT=function(){},jA=function(M,d){_.mk.call(this);
this.JSC$17293_channel_=new IV(d);this.JSC$17293_url_=M;this.messageUrlParams_=d&&d.messageUrlParams||null;M=d&&d.messageHeaders||null;d&&d.clientProtocolHeaderRequired&&(M?_.wF.set(M,"X-Client-Protocol","webchannel"):M=_.wF.create("X-Client-Protocol","webchannel"));this.JSC$17293_channel_.JSC$17284_extraHeaders_=M;M=d&&d.initMessageHeaders||null;d&&d.messageContentType&&(M?_.wF.set(M,"X-WebChannel-Content-Type",d.messageContentType):M=_.wF.create("X-WebChannel-Content-Type",d.messageContentType));
d&&d.clientProfile&&(M?_.wF.set(M,"X-WebChannel-Client-Profile",d.clientProfile):M=_.wF.create("X-WebChannel-Client-Profile",d.clientProfile));this.JSC$17293_channel_.initHeaders_=M;(M=d&&d.httpHeadersOverwriteParam)&&!_.ki(M)&&(this.JSC$17293_channel_.httpHeadersOverwriteParam_=M);this.supportsCrossDomainXhr_=d&&d.supportsCrossDomainXhr||!1;this.sendRawJson_=d&&d.sendRawJson||!1;(d=d&&d.httpSessionIdParam)&&!_.ki(d)&&(this.JSC$17293_channel_.httpSessionIdParam_=d,_.wF.containsKey(this.messageUrlParams_,
d)&&_.wF.remove(this.messageUrlParams_,d));this.channelHandler_=new Ov(this)};
_.RX(jA,_.mk);jA.prototype.open=function(){this.JSC$17293_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17293_channel_.JSC$17284_supportsCrossDomainXhrs_=!0);this.JSC$17293_channel_.connect(this.JSC$17293_url_,this.messageUrlParams_||void 0)};
jA.prototype.close=function(){this.JSC$17293_channel_.disconnect()};
jA.prototype.send=function(M){var d=this.JSC$17293_channel_;if(typeof M==="string"){var N={};N.__data__=M;M=N}else this.sendRawJson_&&(N={},N.__data__=(0,_.js)(M),M=N);d.JSC$17284_outgoingMaps_.push(new AVb(d.JSC$17284_nextMapId_++,M));d.state_==3&&mGP(d)};
jA.prototype.disposeInternal=function(){this.JSC$17293_channel_.handler_=null;delete this.channelHandler_;this.JSC$17293_channel_.disconnect();delete this.JSC$17293_channel_;jA.superClass_.disposeInternal.call(this)};
var Ksb=function(M){IB$.call(this);M.__headers__&&(this.headers=M.__headers__,this.statusCode=M.__status__,delete M.__headers__,delete M.__status__);var d=M.__sm__;d?this.data=(this.metadataKey=_.wF.getAnyKey(d))?_.wF.get(d,this.metadataKey):d:this.data=M};
_.RX(Ksb,IB$);var yVJ=function(M){vkT.call(this);this.status=1;this.errorCode=M};
_.RX(yVJ,vkT);var Ov=function(M){this.JSC$17300_channel_=M};
_.RX(Ov,onq);Ov.prototype.JSC$17290_channelOpened=function(){this.JSC$17300_channel_.dispatchEvent("w")};
Ov.prototype.JSC$17290_channelHandleArray=function(M){this.JSC$17300_channel_.dispatchEvent(new Ksb(M))};
Ov.prototype.JSC$17290_channelError=function(M){this.JSC$17300_channel_.dispatchEvent(new yVJ(M))};
Ov.prototype.JSC$17290_channelClosed=function(){this.JSC$17300_channel_.dispatchEvent("x")};
var JVT=function(M,d){this.transportChannel_=M;this.JSC$17303_channel_=d},cVq=function(M){return Pcq(M.JSC$17303_channel_).map(function(d){var N=M.transportChannel_;
d=d.map;"__data__"in d?(d=d.__data__,N=N.sendRawJson_?(0,_.HIt)(d):d):N=d;return N})};var sv=function(M){SYT.dispatchEvent(new ziC(SYT,M))},SYT=new _.mk,ziC=function(M){_.Dj.call(this,"statevent",M)};
_.v(ziC,_.Dj);var P2=function(M,d,N,R,X){this.JSC$17308_channel_=M;this.JSC$17308_channelDebug_=d;this.sid_=N;this.JSC$17308_rid_=R;this.JSC$17308_retryId_=X||1;this.timeout_=45E3;this.JSC$17308_eventHandler_=new _.a_(this);this.pollingTimer_=new _.Ga;this.pollingTimer_.setInterval(250)};
_.F=P2.prototype;_.F.JSC$17310_extraHeaders_=null;_.F.JSC$17310_successful_=!1;_.F.JSC$17310_watchDogTimerId_=null;_.F.JSC$17310_watchDogTimeoutTime_=null;_.F.JSC$17310_requestStartTime_=null;_.F.JSC$17310_type_=null;_.F.JSC$17310_baseUri_=null;_.F.JSC$17310_requestUri_=null;_.F.JSC$17310_postData_=null;_.F.JSC$17310_xmlHttp_=null;_.F.JSC$17310_xmlHttpChunkStart_=0;_.F.trident_=null;_.F.JSC$17310_verb_=null;_.F.JSC$17310_lastError_=null;_.F.JSC$17310_lastStatusCode_=-1;_.F.sendClose_=!0;
_.F.JSC$17310_cancelled_=!1;_.F.JSC$17310_readyStateChangeThrottleMs_=0;_.F.JSC$17310_readyStateChangeThrottle_=null;var b7$=function(M,d){switch(M){case 0:return"Non-200 return code ("+d+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},eiJ={},H79={};
P2.prototype.setTimeout=function(M){this.timeout_=M};
var i7C=function(M,d,N){M.JSC$17310_type_=1;M.JSC$17310_baseUri_=_.XX(d.clone());M.JSC$17310_postData_=N;M.decodeChunks_=!0;nnD(M,null)},fAJ=function(M,d,N,R,X){M.JSC$17310_type_=1;
M.JSC$17310_baseUri_=_.XX(d.clone());M.JSC$17310_postData_=null;M.decodeChunks_=N;X&&(M.sendClose_=!1);nnD(M,R)},nnD=function(M,d){M.JSC$17310_requestStartTime_=Date.now();
LsY(M);M.JSC$17310_requestUri_=M.JSC$17310_baseUri_.clone();Yo(M.JSC$17310_requestUri_,"t",M.JSC$17308_retryId_);M.JSC$17310_xmlHttpChunkStart_=0;M.JSC$17310_xmlHttp_=M.JSC$17308_channel_.JSC$17317_createXhrIo(M.JSC$17308_channel_.JSC$17317_shouldUseSecondaryDomains()?d:null);M.JSC$17310_readyStateChangeThrottleMs_>0&&(M.JSC$17310_readyStateChangeThrottle_=new _.ua((0,_.gx)(M.JSC$17310_xmlHttpHandler_,M,M.JSC$17310_xmlHttp_),M.JSC$17310_readyStateChangeThrottleMs_));M.JSC$17308_eventHandler_.listen(M.JSC$17310_xmlHttp_,
"readystatechange",M.JSC$17310_readyStateChangeHandler_);d=M.JSC$17310_extraHeaders_?_.wF.clone(M.JSC$17310_extraHeaders_):{};M.JSC$17310_postData_?(M.JSC$17310_verb_="POST",d["Content-Type"]="application/x-www-form-urlencoded",M.JSC$17310_xmlHttp_.send(M.JSC$17310_requestUri_,M.JSC$17310_verb_,M.JSC$17310_postData_,d)):(M.JSC$17310_verb_="GET",M.sendClose_&&!_.B_&&(d.Connection="close"),M.JSC$17310_xmlHttp_.send(M.JSC$17310_requestUri_,M.JSC$17310_verb_,null,d));M.JSC$17308_channel_.notifyServerReachabilityEvent(1);
d=M.JSC$17308_channelDebug_;var N=M.JSC$17310_postData_;if(N){var R="";N=N.split("&");for(var X=0;X<N.length;X++){var A=N[X].split("=");if(A.length>1){var l=A[0];A=A[1];var k=l.split("_");R=k.length>=2&&k[1]=="type"?R+(l+"="+A+"&"):R+(l+"=redacted&")}}}else R=null;d.info("XMLHTTP REQ ("+M.JSC$17308_rid_+") [attempt "+M.JSC$17308_retryId_+"]: "+M.JSC$17310_verb_+"\n"+M.JSC$17310_requestUri_+"\n"+R)};
P2.prototype.JSC$17310_readyStateChangeHandler_=function(M){M=M.target;var d=this.JSC$17310_readyStateChangeThrottle_;d&&_.PX(M)==3?(this.JSC$17308_channelDebug_.debug("Throttling readystatechange."),d.fire()):this.JSC$17310_xmlHttpHandler_(M)};
P2.prototype.JSC$17310_xmlHttpHandler_=function(M){try{if(M==this.JSC$17310_xmlHttp_)a:{var d=_.PX(this.JSC$17310_xmlHttp_),N=this.JSC$17310_xmlHttp_.JSC$7680_lastErrorCode_,R=this.JSC$17310_xmlHttp_.getStatus();if(_.B_&&!i6Y("420+")){if(d<4)break a}else if(d<3||d==3&&!this.JSC$17310_xmlHttp_.getResponseText())break a;this.JSC$17310_cancelled_||d!=4||N==7||(N==8||R<=0?this.JSC$17308_channel_.notifyServerReachabilityEvent(3):this.JSC$17308_channel_.notifyServerReachabilityEvent(2));tPi(this);var X=
this.JSC$17310_xmlHttp_.getStatus();this.JSC$17310_lastStatusCode_=X;var A=this.JSC$17310_xmlHttp_.getResponseText();A||this.JSC$17308_channelDebug_.debug("No response text for uri "+this.JSC$17310_requestUri_+" status "+X);this.JSC$17310_successful_=X==200;this.JSC$17308_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17308_rid_+") [ attempt "+this.JSC$17308_retryId_+"]: "+this.JSC$17310_verb_+"\n"+this.JSC$17310_requestUri_+"\n"+d+" "+X);if(this.JSC$17310_successful_){d==4&&oV(this);if(this.decodeChunks_){for(M=
!0;!this.JSC$17310_cancelled_&&this.JSC$17310_xmlHttpChunkStart_<A.length;){var l=G9T(this,A);if(l==H79){d==4&&(this.JSC$17310_lastError_=4,sv(15),M=!1);rp(this.JSC$17308_channelDebug_,this.JSC$17308_rid_,null,"[Incomplete Response]");break}else if(l==eiJ){this.JSC$17310_lastError_=4;sv(16);rp(this.JSC$17308_channelDebug_,this.JSC$17308_rid_,A,"[Invalid Chunk]");M=!1;break}else rp(this.JSC$17308_channelDebug_,this.JSC$17308_rid_,l,null),aAT(this,l)}d==4&&A.length==0&&(this.JSC$17310_lastError_=1,
sv(17),M=!1);this.JSC$17310_successful_=this.JSC$17310_successful_&&M;M||(rp(this.JSC$17308_channelDebug_,this.JSC$17308_rid_,A,"[Invalid Chunked Response]"),oV(this),UGC(this))}else rp(this.JSC$17308_channelDebug_,this.JSC$17308_rid_,A,null),aAT(this,A);this.JSC$17310_successful_&&!this.JSC$17310_cancelled_&&(d==4?this.JSC$17308_channel_.JSC$17317_onRequestComplete(this):(this.JSC$17310_successful_=!1,LsY(this)))}else X==400&&A.indexOf("Unknown SID")>0?(this.JSC$17310_lastError_=3,sv(13),this.JSC$17308_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17308_rid_+")")):(this.JSC$17310_lastError_=0,sv(14),this.JSC$17308_channelDebug_.warning("XMLHTTP Bad status "+X+" ("+this.JSC$17308_rid_+")")),oV(this),UGC(this)}else this.JSC$17308_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(k){this.JSC$17308_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var G9T=function(M,d){var N=M.JSC$17310_xmlHttpChunkStart_,R=d.indexOf("\n",N);if(R==-1)return H79;N=Number(d.substring(N,R));if(isNaN(N))return eiJ;R+=1;if(R+N>d.length)return H79;d=d.slice(R,R+N);M.JSC$17310_xmlHttpChunkStart_=R+N;return d};
P2.prototype.cancel=function(){this.JSC$17310_cancelled_=!0;oV(this)};
var LsY=function(M){M.JSC$17310_watchDogTimeoutTime_=Date.now()+M.timeout_;uMP(M,M.timeout_)},uMP=function(M,d){if(M.JSC$17310_watchDogTimerId_!=null)throw Error("xk");
M.JSC$17310_watchDogTimerId_=po((0,_.gx)(M.JSC$17310_onWatchDogTimeout_,M),d)},tPi=function(M){M.JSC$17310_watchDogTimerId_&&(_.Np.clearTimeout(M.JSC$17310_watchDogTimerId_),M.JSC$17310_watchDogTimerId_=null)};
P2.prototype.JSC$17310_onWatchDogTimeout_=function(){this.JSC$17310_watchDogTimerId_=null;var M=Date.now();M-this.JSC$17310_watchDogTimeoutTime_>=0?(this.JSC$17308_channelDebug_.info("TIMEOUT: "+this.JSC$17310_requestUri_),this.JSC$17310_type_!=2&&this.JSC$17308_channel_.notifyServerReachabilityEvent(3),oV(this),this.JSC$17310_lastError_=2,sv(18),UGC(this)):(this.JSC$17308_channelDebug_.warning("WatchDog timer called too early"),uMP(this,this.JSC$17310_watchDogTimeoutTime_-M))};
var UGC=function(M){M.JSC$17308_channel_.JSC$17317_isClosed()||M.JSC$17310_cancelled_||M.JSC$17308_channel_.JSC$17317_onRequestComplete(M)},oV=function(M){tPi(M);
_.tw(M.JSC$17310_readyStateChangeThrottle_);M.JSC$17310_readyStateChangeThrottle_=null;M.pollingTimer_.stop();M.JSC$17308_eventHandler_.removeAll();if(M.JSC$17310_xmlHttp_){var d=M.JSC$17310_xmlHttp_;M.JSC$17310_xmlHttp_=null;d.abort();d.dispose()}M.trident_&&(M.trident_=null)};
P2.prototype.getLastError=function(){return this.JSC$17310_lastError_};
var aAT=function(M,d){try{M.JSC$17308_channel_.JSC$17317_onRequestData(M,d),M.JSC$17308_channel_.notifyServerReachabilityEvent(4)}catch(N){}};var rp=function(M,d,N,R){var X=M.info;a:if(N&&N!="y2f%"){try{var A=JSON.parse(N);if(A)for(var l=0;l<A.length;l++)if(Array.isArray(A[l])){var k=A[l];if(!(k.length<2)){var T=k[1];if(Array.isArray(T)&&!(T.length<1)){var W=T[0];if(W!="noop"&&W!="stop")for(var w=1;w<T.length;w++)T[w]=""}}}var p=(0,_.js)(A);break a}catch(m){M.debug("Exception parsing expected JS array - probably was not JS");p=N;break a}p=void 0}else p=N;X.call(M,"XMLHTTP TEXT ("+d+"): "+p+(R?" "+R:""))};
mc.prototype.debug=function(M){this.info(M)};
mc.prototype.info=function(){};
mc.prototype.warning=function(){};var CcY=function(M,d){this.JSC$17315_channel_=M;this.JSC$17315_channelDebug_=d;this.JSC$17315_parser_=new B2};
_.F=CcY.prototype;_.F.JSC$17317_extraHeaders_=null;_.F.JSC$17317_request_=null;_.F.receivedIntermediateResult_=!1;_.F.JSC$17317_path_=null;_.F.state_=null;_.F.JSC$17317_lastStatusCode_=-1;_.F.JSC$17317_hostPrefix_=null;_.F.blockedPrefix_=null;
_.F.connect=function(M){this.JSC$17317_path_=M;M=xG9(this.JSC$17315_channel_,this.JSC$17317_path_);sv(3);Date.now();var d=this.JSC$17315_channel_.firstTestResults_;d!=null?(this.JSC$17317_hostPrefix_=d[0],(this.blockedPrefix_=d[1])?(this.state_=1,YYq(this)):(this.state_=2,Z7i(this))):(Yo(M,"MODE","init"),this.JSC$17317_request_=new P2(this,this.JSC$17315_channelDebug_),this.JSC$17317_request_.JSC$17310_extraHeaders_=this.JSC$17317_extraHeaders_,fAJ(this.JSC$17317_request_,M,!1,null,!0),this.state_=
0)};
var YYq=function(M){var d=Ene(M.JSC$17315_channel_,M.blockedPrefix_,"/mail/images/cleardot.gif");_.XX(d);OLJ(d.toString(),5E3,(0,_.gx)(M.checkBlockedCallback_,M),3,2E3);M.notifyServerReachabilityEvent(1)};
CcY.prototype.checkBlockedCallback_=function(M){if(M)this.state_=2,Z7i(this);else{sv(4);var d=this.JSC$17315_channel_;d.JSC$17318_channelDebug_.debug("Test Connection Blocked");d.JSC$17322_lastStatusCode_=d.connectionTest_.JSC$17317_lastStatusCode_;KY(d,9)}M&&this.notifyServerReachabilityEvent(2)};
var Z7i=function(M){M.JSC$17315_channelDebug_.debug("TestConnection: starting stage 2");var d=M.JSC$17315_channel_.secondTestResults_;d!=null?(M.JSC$17315_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+d?"Buffered":"Unbuffered"),sv(5),d?(sv(11),yn(M.JSC$17315_channel_,M,!1)):(sv(12),yn(M.JSC$17315_channel_,M,!0))):(M.JSC$17317_request_=new P2(M,M.JSC$17315_channelDebug_),M.JSC$17317_request_.JSC$17310_extraHeaders_=M.JSC$17317_extraHeaders_,d=MO$(M.JSC$17315_channel_,
M.JSC$17317_hostPrefix_,M.JSC$17317_path_),sv(5),Yo(d,"TYPE","xmlhttp"),fAJ(M.JSC$17317_request_,d,!1,M.JSC$17317_hostPrefix_,!1))};
_.F=CcY.prototype;_.F.JSC$17317_createXhrIo=function(M){return this.JSC$17315_channel_.JSC$17317_createXhrIo(M)};
_.F.abort=function(){this.JSC$17317_request_&&(this.JSC$17317_request_.cancel(),this.JSC$17317_request_=null);this.JSC$17317_lastStatusCode_=-1};
_.F.JSC$17317_isClosed=function(){return!1};
_.F.JSC$17317_onRequestData=function(M,d){this.JSC$17317_lastStatusCode_=M.JSC$17310_lastStatusCode_;if(this.state_==0)if(this.JSC$17315_channelDebug_.debug("TestConnection: Got data for stage 1"),d){try{var N=this.JSC$17315_parser_.parse(d)}catch(R){dmY(this.JSC$17315_channel_,this);return}this.JSC$17317_hostPrefix_=N[0];this.blockedPrefix_=N[1]}else this.JSC$17315_channelDebug_.debug("TestConnection: Null responseText"),dmY(this.JSC$17315_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(sv(7),Date.now()):d=="11111"?(sv(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17317_lastStatusCode_=200,this.JSC$17317_request_.cancel(),this.JSC$17315_channelDebug_.debug("Test connection succeeded; using streaming connection"),sv(12),yn(this.JSC$17315_channel_,this,!0)):(sv(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.F.JSC$17317_onRequestComplete=function(){this.JSC$17317_lastStatusCode_=this.JSC$17317_request_.JSC$17310_lastStatusCode_;this.JSC$17317_request_.JSC$17310_successful_?this.state_==0?(this.JSC$17315_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,YYq(this)):(this.state_=2,Z7i(this))):this.state_==2&&(this.JSC$17315_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17315_channelDebug_.debug("Test connection succeeded; using streaming connection"),
sv(12),yn(this.JSC$17315_channel_,this,!0)):(this.JSC$17315_channelDebug_.debug("Test connection failed; not using streaming"),sv(11),yn(this.JSC$17315_channel_,this,!1))):(this.JSC$17315_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?sv(9):this.state_==2&&sv(10),dmY(this.JSC$17315_channel_,this,this.JSC$17317_request_.getLastError()))};
_.F.JSC$17317_shouldUseSecondaryDomains=function(){return this.JSC$17315_channel_.JSC$17317_shouldUseSecondaryDomains()};
_.F.isActive=function(){return this.JSC$17315_channel_.isActive()};
_.F.notifyServerReachabilityEvent=function(M){this.JSC$17315_channel_.notifyServerReachabilityEvent(M)};var Jp=function(M,d,N){this.state_=1;this.JSC$17318_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17318_channelDebug_=new mc;this.JSC$17318_parser_=new B2;this.firstTestResults_=M||null;this.secondTestResults_=d!=null?d:null;this.asyncTest_=N||!1},NJd=function(M,d){this.JSC$17320_mapId=M;
this.map=d;this.context=null};
_.F=Jp.prototype;_.F.JSC$17322_extraHeaders_=null;_.F.JSC$17322_extraParams_=null;_.F.forwardChannelRequest_=null;_.F.JSC$17322_backChannelRequest_=null;_.F.JSC$17322_path_=null;_.F.JSC$17322_forwardChannelUri_=null;_.F.JSC$17322_backChannelUri_=null;_.F.JSC$17322_hostPrefix_=null;_.F.JSC$17322_nextRid_=0;_.F.JSC$17322_nextMapId_=0;_.F.handler_=null;_.F.JSC$17322_forwardChannelTimerId_=null;_.F.JSC$17322_backChannelTimerId_=null;_.F.JSC$17322_deadBackChannelTimerId_=null;_.F.connectionTest_=null;
_.F.useChunked_=null;_.F.JSC$17322_lastArrayId_=-1;_.F.JSC$17322_lastPostResponseArrayId_=-1;_.F.JSC$17322_lastStatusCode_=-1;_.F.JSC$17322_forwardChannelRetryCount_=0;_.F.JSC$17322_backChannelRetryCount_=0;_.F.JSC$17322_channelVersion_=8;var R0$={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},X0J=function(M,d,N,R){_.Dj.call(this,"timingevent",M);this.size=d;this.rtt=N;this.retries=R};
_.RX(X0J,_.Dj);var FQb=function(M){_.Dj.call(this,"serverreachability",M)};
_.RX(FQb,_.Dj);Jp.prototype.connect=function(M,d,N,R,X){this.JSC$17318_channelDebug_.debug("connect()");sv(0);this.JSC$17322_path_=d;this.JSC$17322_extraParams_=N||{};R&&X!==void 0&&(this.JSC$17322_extraParams_.OSID=R,this.JSC$17322_extraParams_.OAID=X);this.asyncTest_?(po((0,_.gx)(this.connectTest_,this,M),100),AO4(this)):this.connectTest_(M)};
Jp.prototype.disconnect=function(){this.JSC$17318_channelDebug_.debug("disconnect()");VOq(this);if(this.state_==3){var M=this.JSC$17322_nextRid_++,d=this.JSC$17322_forwardChannelUri_.clone();_.J8(d,"SID",this.sid_);_.J8(d,"RID",M);_.J8(d,"TYPE","terminate");c2(this,d);M=new P2(this,this.JSC$17318_channelDebug_,this.sid_,M);M.JSC$17310_type_=2;M.JSC$17310_baseUri_=_.XX(d.clone());(new Image).src=M.JSC$17310_baseUri_.toString();M.JSC$17310_requestStartTime_=Date.now();LsY(M)}l6C(this)};
Jp.prototype.connectTest_=function(M){this.JSC$17318_channelDebug_.debug("connectTest_()");this.connectionTest_=new CcY(this,this.JSC$17318_channelDebug_);this.connectionTest_.JSC$17317_extraHeaders_=this.JSC$17322_extraHeaders_;this.connectionTest_.JSC$17315_parser_=this.JSC$17318_parser_;this.connectionTest_.connect(M)};
var AO4=function(M){M.JSC$17318_channelDebug_.debug("connectChannel_()");M.JSC$17322_ensureInState_(1,0);M.JSC$17322_forwardChannelUri_=xG9(M,M.JSC$17322_path_);$mD(M)},VOq=function(M){M.connectionTest_&&(M.connectionTest_.abort(),M.connectionTest_=null);
M.JSC$17322_backChannelRequest_&&(M.JSC$17322_backChannelRequest_.cancel(),M.JSC$17322_backChannelRequest_=null);M.JSC$17322_backChannelTimerId_&&(_.Np.clearTimeout(M.JSC$17322_backChannelTimerId_),M.JSC$17322_backChannelTimerId_=null);BJJ(M);M.forwardChannelRequest_&&(M.forwardChannelRequest_.cancel(),M.forwardChannelRequest_=null);M.JSC$17322_forwardChannelTimerId_&&(_.Np.clearTimeout(M.JSC$17322_forwardChannelTimerId_),M.JSC$17322_forwardChannelTimerId_=null)},kJ$=function(M,d){if(M.state_==0)throw Error("Ak");
M.JSC$17318_outgoingMaps_.length==1E3&&M.JSC$17318_parser_.stringify(d);M.JSC$17318_outgoingMaps_.push(new NJd(M.JSC$17322_nextMapId_++,d));M.state_!=2&&M.state_!=3||$mD(M)};
Jp.prototype.JSC$17317_isClosed=function(){return this.state_==0};
Jp.prototype.getState=function(){return this.state_};
var $mD=function(M){M.forwardChannelRequest_||M.JSC$17322_forwardChannelTimerId_||(M.JSC$17322_forwardChannelTimerId_=po((0,_.gx)(M.JSC$17322_onStartForwardChannelTimer_,M),0),M.JSC$17322_forwardChannelRetryCount_=0)};
Jp.prototype.JSC$17322_onStartForwardChannelTimer_=function(M){this.JSC$17322_forwardChannelTimerId_=null;TJb(this,M)};
var TJb=function(M,d){M.JSC$17318_channelDebug_.debug("startForwardChannel_");if(M.state_==1){if(!d){M.JSC$17318_channelDebug_.debug("open_()");M.JSC$17322_nextRid_=Math.floor(Math.random()*1E5);d=M.JSC$17322_nextRid_++;var N=new P2(M,M.JSC$17318_channelDebug_,"",d);N.JSC$17310_extraHeaders_=M.JSC$17322_extraHeaders_;var R=DmC(M),X=M.JSC$17322_forwardChannelUri_.clone();_.J8(X,"RID",d);_.J8(X,"CVER","1");c2(M,X);i7C(N,X,R);M.forwardChannelRequest_=N;M.state_=2}}else M.state_==3&&(d?gcJ(M,d):M.JSC$17318_outgoingMaps_.length==
0?M.JSC$17318_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):M.forwardChannelRequest_||(gcJ(M),M.JSC$17318_channelDebug_.debug("startForwardChannel_ finished, sent request")))},gcJ=function(M,d){if(d)if(M.JSC$17322_channelVersion_>6){M.JSC$17318_outgoingMaps_=M.pendingMaps_.concat(M.JSC$17318_outgoingMaps_);
M.pendingMaps_.length=0;var N=M.JSC$17322_nextRid_-1;d=DmC(M)}else N=d.JSC$17308_rid_,d=d.JSC$17310_postData_;else N=M.JSC$17322_nextRid_++,d=DmC(M);var R=M.JSC$17322_forwardChannelUri_.clone();_.J8(R,"SID",M.sid_);_.J8(R,"RID",N);_.J8(R,"AID",M.JSC$17322_lastArrayId_);c2(M,R);N=new P2(M,M.JSC$17318_channelDebug_,M.sid_,N,M.JSC$17322_forwardChannelRetryCount_+1);N.JSC$17310_extraHeaders_=M.JSC$17322_extraHeaders_;N.setTimeout(1E4+Math.round(1E4*Math.random()));M.forwardChannelRequest_=N;i7C(N,R,d)},
c2=function(M,d){M.handler_&&(M=M.handler_.JSC$17329_getAdditionalParams())&&_.wF.forEach(M,function(N,R){_.J8(d,R,N)})},DmC=function(M){var d=Math.min(M.JSC$17318_outgoingMaps_.length,1E3),N=["count="+d];
if(M.JSC$17322_channelVersion_>6&&d>0){var R=M.JSC$17318_outgoingMaps_[0].JSC$17320_mapId;N.push("ofs="+R)}else R=0;for(var X={},A=0;A<d;X={mapId$jscomp$3:void 0},A++){X.mapId$jscomp$3=M.JSC$17318_outgoingMaps_[A].JSC$17320_mapId;var l=M.JSC$17318_outgoingMaps_[A].map;X.mapId$jscomp$3=M.JSC$17322_channelVersion_<=6?A:X.mapId$jscomp$3-R;try{_.wF.forEach(l,function(k){return function(T,W){N.push("req"+k.mapId$jscomp$3+"_"+W+"="+encodeURIComponent(T))}}(X))}catch(k){N.push("req"+X.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}M.pendingMaps_=M.pendingMaps_.concat(M.JSC$17318_outgoingMaps_.splice(0,d));
return N.join("&")},WQD=function(M){M.JSC$17322_backChannelRequest_||M.JSC$17322_backChannelTimerId_||(M.JSC$17322_backChannelAttemptId_=1,M.JSC$17322_backChannelTimerId_=po((0,_.gx)(M.JSC$17322_onStartBackChannelTimer_,M),0),M.JSC$17322_backChannelRetryCount_=0)},p0b=function(M){if(M.JSC$17322_backChannelRequest_||M.JSC$17322_backChannelTimerId_||M.JSC$17322_backChannelRetryCount_>=3)return!1;
M.JSC$17318_channelDebug_.debug("Going to retry GET");M.JSC$17322_backChannelAttemptId_++;M.JSC$17322_backChannelTimerId_=po((0,_.gx)(M.JSC$17322_onStartBackChannelTimer_,M),w0b(M,M.JSC$17322_backChannelRetryCount_));M.JSC$17322_backChannelRetryCount_++;return!0};
Jp.prototype.JSC$17322_onStartBackChannelTimer_=function(){this.JSC$17322_backChannelTimerId_=null;this.JSC$17318_channelDebug_.debug("Creating new HttpRequest");this.JSC$17322_backChannelRequest_=new P2(this,this.JSC$17318_channelDebug_,this.sid_,"rpc",this.JSC$17322_backChannelAttemptId_);this.JSC$17322_backChannelRequest_.JSC$17310_extraHeaders_=this.JSC$17322_extraHeaders_;this.JSC$17322_backChannelRequest_.JSC$17310_readyStateChangeThrottleMs_=0;var M=this.JSC$17322_backChannelUri_.clone();_.J8(M,
"RID","rpc");_.J8(M,"SID",this.sid_);_.J8(M,"CI",this.useChunked_?"0":"1");_.J8(M,"AID",this.JSC$17322_lastArrayId_);c2(this,M);_.J8(M,"TYPE","xmlhttp");fAJ(this.JSC$17322_backChannelRequest_,M,!0,this.JSC$17322_hostPrefix_,!1);this.JSC$17318_channelDebug_.debug("New Request created")};
var yn=function(M,d,N){M.JSC$17318_channelDebug_.debug("Test Connection Finished");M.useChunked_=M.secondTestResults_==null?N:!M.secondTestResults_;M.JSC$17322_lastStatusCode_=d.JSC$17317_lastStatusCode_;M.asyncTest_||AO4(M)},dmY=function(M,d){M.JSC$17318_channelDebug_.debug("Test Connection Failed");
M.JSC$17322_lastStatusCode_=d.JSC$17317_lastStatusCode_;KY(M,2)};
Jp.prototype.JSC$17317_onRequestData=function(M,d){if(this.state_!=0&&(this.JSC$17322_backChannelRequest_==M||this.forwardChannelRequest_==M))if(this.JSC$17322_lastStatusCode_=M.JSC$17310_lastStatusCode_,this.forwardChannelRequest_==M&&this.state_==3)if(this.JSC$17322_channelVersion_>7){try{var N=this.JSC$17318_parser_.parse(d)}catch(R){N=null}if(Array.isArray(N)&&N.length==3)if(d=N,d[0]==0)a:if(this.JSC$17318_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17322_backChannelTimerId_)this.JSC$17318_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17322_backChannelRequest_)if(this.JSC$17322_backChannelRequest_.JSC$17310_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17310_requestStartTime_)BJJ(this),this.JSC$17322_backChannelRequest_.cancel(),this.JSC$17322_backChannelRequest_=null;else break a;else this.JSC$17318_channelDebug_.warning("We do not have a BackChannel established");p0b(this);sv(19)}else this.JSC$17322_lastPostResponseArrayId_=d[1],M=this.JSC$17322_lastPostResponseArrayId_-this.JSC$17322_lastArrayId_,0<
M&&(d=d[2],this.JSC$17318_channelDebug_.debug(d+" bytes (in "+M+" arrays) are outstanding on the BackChannel"),d<37500&&this.useChunked_&&this.JSC$17322_backChannelRetryCount_==0&&!this.JSC$17322_deadBackChannelTimerId_&&(this.JSC$17322_deadBackChannelTimerId_=po((0,_.gx)(this.JSC$17322_onBackChannelDead_,this),6E3)));else this.JSC$17318_channelDebug_.debug("Bad POST response data returned"),KY(this,11)}else d!="y2f%"&&(this.JSC$17318_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
KY(this,11));else this.JSC$17322_backChannelRequest_==M&&BJJ(this),_.ki(d)||(M=this.JSC$17318_parser_.parse(d),this.onInput_(M))};
Jp.prototype.JSC$17322_onBackChannelDead_=function(){this.JSC$17322_deadBackChannelTimerId_!=null&&(this.JSC$17322_deadBackChannelTimerId_=null,this.JSC$17322_backChannelRequest_.cancel(),this.JSC$17322_backChannelRequest_=null,p0b(this),sv(20))};
var BJJ=function(M){M.JSC$17322_deadBackChannelTimerId_!=null&&(_.Np.clearTimeout(M.JSC$17322_deadBackChannelTimerId_),M.JSC$17322_deadBackChannelTimerId_=null)};
Jp.prototype.JSC$17317_onRequestComplete=function(M){this.JSC$17318_channelDebug_.debug("Request complete");if(this.JSC$17322_backChannelRequest_==M){BJJ(this);this.JSC$17322_backChannelRequest_=null;var d=2}else if(this.forwardChannelRequest_==M)this.forwardChannelRequest_=null,d=1;else return;this.JSC$17322_lastStatusCode_=M.JSC$17310_lastStatusCode_;if(this.state_!=0)if(M.JSC$17310_successful_)if(d==1){d=M.JSC$17310_postData_?M.JSC$17310_postData_.length:0;M=Date.now()-M.JSC$17310_requestStartTime_;
var N=SYT;N.dispatchEvent(new X0J(N,d,M,this.JSC$17322_forwardChannelRetryCount_));$mD(this);this.handler_&&this.handler_.JSC$17329_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else WQD(this);else{N=M.getLastError();if(N==3||N==7||N==0&&this.JSC$17322_lastStatusCode_>0)this.JSC$17318_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17318_channelDebug_.debug("Maybe retrying, last error: "+b7$(N,this.JSC$17322_lastStatusCode_));var R;if(R=d==1)this.forwardChannelRequest_||
this.JSC$17322_forwardChannelTimerId_||this.state_==1||this.JSC$17322_forwardChannelRetryCount_>=2?R=!1:(this.JSC$17318_channelDebug_.debug("Going to retry POST"),this.JSC$17322_forwardChannelTimerId_=po((0,_.gx)(this.JSC$17322_onStartForwardChannelTimer_,this,M),w0b(this,this.JSC$17322_forwardChannelRetryCount_)),this.JSC$17322_forwardChannelRetryCount_++,R=!0);if(R||d==2&&p0b(this))return;this.JSC$17318_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17318_channelDebug_.debug("Error: HTTP request failed");
switch(N){case 1:KY(this,5);break;case 4:KY(this,10);break;case 3:KY(this,6);break;case 7:KY(this,12);break;default:KY(this,2)}}};
var w0b=function(M,d){var N=5E3+Math.floor(Math.random()*1E4);M.isActive()||(M.JSC$17318_channelDebug_.debug("Inactive channel"),N*=2);return N*d};
Jp.prototype.onInput_=function(M){for(var d=0;d<M.length;d++){var N=M[d];this.JSC$17322_lastArrayId_=N[0];N=N[1];this.state_==2?N[0]=="c"?(this.sid_=N[1],this.JSC$17322_hostPrefix_=N[2],N=N[3],N!=null?this.JSC$17322_channelVersion_=N:this.JSC$17322_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17329_channelOpened(),this.JSC$17322_backChannelUri_=MO$(this,this.JSC$17322_hostPrefix_,this.JSC$17322_path_),WQD(this)):N[0]=="stop"&&KY(this,7):this.state_==3&&(N[0]=="stop"?KY(this,7):
N[0]!="noop"&&this.handler_&&this.handler_.JSC$17329_channelHandleArray(N),this.JSC$17322_backChannelRetryCount_=0)}};
Jp.prototype.JSC$17322_ensureInState_=function(M){if(!_.i2(arguments,this.state_))throw Error("Bk`"+this.state_);};
var KY=function(M,d){M.JSC$17318_channelDebug_.info("Error code "+d);if(d==2||d==9){var N=null;M.handler_&&(N=null);var R=(0,_.gx)(M.testGoogleComCallback_,M);N||(N=new _.iX("//www.google.com/images/cleardot.gif"),_.XX(N));vP9(N.toString(),1E4,R)}else sv(2);M.onError_(d)};
Jp.prototype.testGoogleComCallback_=function(M){M?(this.JSC$17318_channelDebug_.info("Successfully pinged google.com"),sv(2)):(this.JSC$17318_channelDebug_.info("Failed to ping google.com"),sv(1),this.onError_(8))};
Jp.prototype.onError_=function(M){this.JSC$17318_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$17329_channelError(M);l6C(this);VOq(this)};
var l6C=function(M){M.state_=0;M.JSC$17322_lastStatusCode_=-1;if(M.handler_)if(M.pendingMaps_.length==0&&M.JSC$17318_outgoingMaps_.length==0)M.handler_.JSC$17329_channelClosed();else{M.JSC$17318_channelDebug_.debug("Number of undelivered maps, pending: "+M.pendingMaps_.length+", outgoing: "+M.JSC$17318_outgoingMaps_.length);var d=_.US(M.pendingMaps_),N=_.US(M.JSC$17318_outgoingMaps_);M.pendingMaps_.length=0;M.JSC$17318_outgoingMaps_.length=0;M.handler_.JSC$17329_channelClosed(d,N)}},xG9=function(M,
d){d=Ene(M,null,d);
M.JSC$17318_channelDebug_.debug("GetForwardChannelUri: "+d);return d},MO$=function(M,d,N){d=Ene(M,M.JSC$17317_shouldUseSecondaryDomains()?d:null,N);
M.JSC$17318_channelDebug_.debug("GetBackChannelUri: "+d);return d},Ene=function(M,d,N){var R=_.Kk(N);
if(R.JSC$7917_domain_!="")d&&_.x9(R,d+"."+R.JSC$7917_domain_),_.Y9(R,R.JSC$7917_port_);else{var X=window.location;R=bOC(X.protocol,d?d+"."+X.hostname:X.hostname,+X.port,N)}M.JSC$17322_extraParams_&&_.wF.forEach(M.JSC$17322_extraParams_,function(A,l){_.J8(R,l,A)});
_.J8(R,"VER",M.JSC$17322_channelVersion_);c2(M,R);return R};
Jp.prototype.JSC$17317_createXhrIo=function(M){if(M)throw Error("yk");M=new _.sF;M.JSC$7680_withCredentials_=!1;return M};
Jp.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Jp.prototype.notifyServerReachabilityEvent=function(M){var d=SYT;d.dispatchEvent(new FQb(d,M))};
Jp.prototype.JSC$17317_shouldUseSecondaryDomains=function(){return!1};
new Ldr;var mmi=function(){};
_.F=mmi.prototype;_.F.JSC$17329_channelOpened=function(){};
_.F.JSC$17329_channelHandleArray=function(){};
_.F.JSC$17329_channelSuccess=function(){};
_.F.JSC$17329_channelError=function(){};
_.F.JSC$17329_channelClosed=function(){};
_.F.JSC$17329_getAdditionalParams=function(){return{}};
_.F.isActive=function(){return!0};var h0P=function(M){M.front_.length===0&&(M.front_=M.back_,M.front_.reverse(),M.back_=[])};
_.F=snC.prototype;_.F.enqueue=function(M){this.back_.push(M)};
_.F.peek=function(){h0P(this);return _.cj(this.front_)};
_.F.getCount=function(){return this.front_.length+this.back_.length};
_.F.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.F.clear=function(){this.front_=[];this.back_=[]};
_.F.contains=function(M){return _.i2(this.front_,M)||_.i2(this.back_,M)};
_.F.remove=function(M){var d=this.front_;var N=Array.prototype.lastIndexOf.call(d,M,d.length-1);N>=0?(_.G6(d,N),d=!0):d=!1;return d||_.aN(this.back_,M)};
_.F.getValues=function(){for(var M=[],d=this.front_.length-1;d>=0;--d)M.push(this.front_[d]);d=this.back_.length;for(var N=0;N<d;++N)M.push(this.back_[N]);return M};var SA=function(M){this.JSC$17333_map_=new _.Xz;this.size=0;M&&this.addAll(M)},QHY=function(M){var d=typeof M;
return d=="object"&&M||d=="function"?"o"+_.d3(M):d.charAt(0)+M};
_.F=SA.prototype;_.F.getCount=function(){return this.JSC$17333_map_.size};
_.F.add=function(M){this.JSC$17333_map_.set(QHY(M),M);this.size=this.JSC$17333_map_.size};
_.F.addAll=function(M){M=_.um(M);for(var d=M.length,N=0;N<d;N++)this.add(M[N]);this.size=this.JSC$17333_map_.size};
_.F.removeAll=function(M){M=_.um(M);for(var d=M.length,N=0;N<d;N++)this.remove(M[N]);this.size=this.JSC$17333_map_.size};
_.F.delete=function(M){M=this.JSC$17333_map_.remove(QHY(M));this.size=this.JSC$17333_map_.size;return M};
_.F.remove=function(M){return this.delete(M)};
_.F.clear=function(){this.JSC$17333_map_.clear();this.size=0};
_.F.isEmpty=function(){return this.JSC$17333_map_.size===0};
_.F.has=function(M){return this.JSC$17333_map_.containsKey(QHY(M))};
_.F.contains=function(M){return this.JSC$17333_map_.containsKey(QHY(M))};
_.F.getValues=function(){return this.JSC$17333_map_.getValues()};
_.F.values=function(){return this.JSC$17333_map_.values()};
_.F.clone=function(){return new SA(this)};
_.F.equals=function(M){return this.getCount()==SL9(M)&&qjY(this,M)};
var qjY=function(M,d){var N=SL9(d);if(M.getCount()>N)return!1;!(d instanceof SA)&&N>5&&(d=new SA(d));return zur(M,function(R){var X=d;return X.contains&&typeof X.contains=="function"?X.contains(R):X.containsValue&&typeof X.containsValue=="function"?X.containsValue(R):_.CZ(X)||typeof X==="string"?_.i2(X,R):_.wF.containsValue(X,R)})};
SA.prototype.__iterator__=function(){return this.JSC$17333_map_.__iterator__(!1)};
SA.prototype[Symbol.iterator]=function(){return this.values()};var I6P={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(M){return(this._clampValue(M)-this.min)/(this.max-this.min)},
_clampValue:function(M){return Math.min(this.max,Math.max(this.min,this._calcStep(M)))},
_calcStep:function(M){M=parseFloat(M);if(!this.step)return M;M=Math.round((M-this.min)/this.step);return this.step<1?M/(1/this.step)+this.min:M*this.step+this.min},
_validateValue:function(){var M=this._clampValue(this.value);this.value=this.oldValue=isNaN(M)?this.oldValue:M;return this.value!==M},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var vcG;var OGr;_.kQ({_template:function(){if(OGr!==void 0)return OGr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;vcG===void 0&&(vcG=document.createElement("template"));var R=vcG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return OGr=M},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.bM(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(M){M.keyCode===27&&(M.preventDefault(),this.close())},
_track:function(M){if(!this.persistent&&!this.disableSwipe)switch(M.preventDefault(),M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackMove(M);break;case "end":this._trackEnd(M)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var M=this.$.contentContainer.getBoundingClientRect();this._savedWidth=M.width;this._translateOffset=this.position==="left"?M.left:M.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(M){this._trackDetails&&(this._translateDrawer(M.detail.dx+this._translateOffset),this._trackDetails.push({dx:M.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(M){if(this._trackDetails){var d=M.detail.dx+this._translateOffset,N=this.getWidth();d=this.position==="left"?d>=0||d<=-N:d<=0||d>=N;if(!d){var R=this._trackDetails;this._trackDetails=null;this._flingDrawer(M,R);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}N/=2;M.detail.dx<-N?this.opened=this.position==="right":M.detail.dx>N&&(this.opened=this.position==="left");d?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(M,d){for(var N=Date.now(),R=N-100,X,A=0,l=d.length-1;A<=l;){var k=A+l>>1,T=d[k];T.timeStamp>=R?(X=T,l=k-1):A=k+1}return X?(M.detail.dx-X.dx)/(N-X.timeStamp||1):0},
_flingDrawer:function(M,d){d=this._calculateVelocity(M,d);if(!(Math.abs(d)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;M=M.detail.dx+this._translateOffset;var N=this.getWidth(),R=this.position==="left",X=d>0;X?(d=Math.max(d,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(d=Math.min(d,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");d=this._FLING_INITIAL_SLOPE*(!X&&R?-(M+N):X&&!R?N-M:-M)/d;this._styleTransitionDuration(d);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,d)}},
_styleTransitionDuration:function(M){this.style.transitionDuration=M+"ms";this.$.contentContainer.style.transitionDuration=M+"ms";this.$.scrim.style.transitionDuration=M+"ms"},
_styleTransitionTimingFunction:function(M){this.$.contentContainer.style.transitionTimingFunction=M;this.$.scrim.style.transitionTimingFunction=M},
_translateDrawer:function(M){var d=this.getWidth();this.position==="left"?(M=Math.max(-d,Math.min(M,0)),this.$.scrim.style.opacity=1+M/d):(M=Math.max(0,Math.min(M,d)),this.$.scrim.style.opacity=1-M/d);this.translate3d(M+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var M=this._drawerState;M===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;M!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),M!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var M=_.Wl(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');M.length>0?(this._firstTabStop=M[0],this._lastTabStop=M[M.length-1]):
this._lastTabStop=this._firstTabStop=null;(M=this.getAttribute("tabindex"))&&parseInt(M,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(M){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||M.keyCode!==9||(M.shiftKey?this._firstTabStop&&_.Wl(M).localTarget===this._firstTabStop&&(M.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Wl(M).localTarget===this._lastTabStop&&(M.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(M,d){this.toggleClass("visible",M&&!d,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 jHd;var sHY;_.kQ({_template:function(){if(sHY!==void 0)return sHY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;jHd===void 0&&(jHd=document.createElement("template"));var R=jHd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return sHY=M},
is:"tp-yt-paper-progress",behaviors:[I6P],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(M){this.toggleClass("indeterminate",M,this.$.primaryProgress)},
_transformProgress:function(M,d){M.style.transform=M.style.webkitTransform="scaleX("+d/100+")"},
_mainRatioChanged:function(M){this._transformProgress(this.$.primaryProgress,M)},
_progressChanged:function(M,d,N,R,X){M=this._clampValue(M);d=this._clampValue(d);var A=this._calcRatio(M)*100,l=this._calcRatio(d)*100;this._setSecondaryRatio(A);this._transformProgress(this.$.secondaryProgress,A);this._transformProgress(this.$.primaryProgress,l);this.secondaryProgress=M;X?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",d);this.setAttribute("aria-valuemin",N);this.setAttribute("aria-valuemax",R)},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false")},
_hideSecondaryProgress:function(M){return M===0}});var P0J;var oci;var rOY=function(){};
_.F=rOY.prototype;_.F.registered=function(){};
_.F.addOwnKeyBinding=function(){};
_.F.removeOwnKeyBindings=function(){};
_.F.keyboardEventMatchesKeys=function(){};
_.F._collectKeyBindings=function(){};
_.F._prepKeyBindings=function(){};
_.F._addKeyBinding=function(){};
_.F._resetKeyEventListeners=function(){};
_.F._listenKeyEventListeners=function(){};
_.F._unlistenKeyEventListeners=function(){};
_.F._onKeyBindingEvent=function(){};
_.F._triggerKeyHandler=function(){};
_.F._tapHandler=function(){};
_.F._focusChanged=function(){};
_.F._detectKeyboardFocus=function(){};
_.F._userActivate=function(){};
_.F._upHandler=function(){};
_.F._spaceKeyDownHandler=function(){};
_.F._spaceKeyUpHandler=function(){};
_.F._asyncClick=function(){};
_.F._pressedChanged=function(){};
_.F._ariaActiveAttributeChanged=function(){};
_.F._activeChanged=function(){};
_.F._controlStateChanged=function(){};
_.F._changedButtonState=function(){};
_.F._focusBlurHandler=function(){};
_.F._disabledChanged=function(){};
_.F._changedControlState=function(){};
_.F._buttonStateChanged=function(){};
_.F._downHandler=function(){};
_.F.ensureRipple=function(){};
_.F.getRipple=function(){};
_.F.hasRipple=function(){};
_.F._noinkChanged=function(){};
_.F._calcRatio=function(){};
_.F._clampValue=function(){};
_.F._calcStep=function(){};
_.F._validateValue=function(){};
_.F._update=function(){};
_.F._setImmediateValue=function(){};
_.F._setExpand=function(){};
_.F._setDragging=function(){};
_.F._setTransiting=function(){};
_.F._setMarkers=function(){};
_.F._setPressed=function(){};
_.F._setPointerDown=function(){};
_.F._setReceivedFocusFromKeyboard=function(){};
_.F._setFocused=function(){};
_.F._setRatio=function(){};
rOY=_.kQ({_template:function(){if(oci!==void 0)return oci;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;P0J===void 0&&(P0J=document.createElement("template"));var R=P0J;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return oci=M},
is:"tp-yt-paper-slider",behaviors:[_.pG,_.qm,_.q$d,I6P],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&&_.qE(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(M,d,N){this.setAttribute("aria-valuemin",d);this.setAttribute("aria-valuemax",N);this.setAttribute("aria-valuenow",M);this._positionKnob(this._calcRatio(M)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(M){this._setImmediateValue(this._calcStep(this._calcKnobPosition(M)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(M){return(this.max-this.min)*M/100+this.min},
_onTrack:function(M){M.stopPropagation();switch(M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackX(M);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(M){this.dragging||this._trackStart(M);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,M.detail.dx*(this._isRTL?-1:1)));M=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(M);M=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(M+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var M=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;M.transform=M.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(M){this._expandKnob();M.preventDefault();this.focus()},
_bartrack:function(M){this._allowBarEvent(M)&&this._onTrack(M)},
_barclick:function(M){this._w=this.$.sliderBar.offsetWidth;var d=this.$.sliderBar.getBoundingClientRect();d=(M.detail.x-d.left)/this._w*100;this._isRTL&&(d=100-d);var N=this.ratio;this._setTransiting(!0);this._positionKnob(d);N===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
M.preventDefault();this.focus()},
_bardown:function(M){this._allowBarEvent(M)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(M))},
_knobTransitionEnd:function(M){M.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(M,d,N,R){R||this._setMarkers([]);d=Math.round((N-d)/this.step);d>M&&(d=M);if(d<0||!isFinite(d))d=0;this._setMarkers(Array(d))},
_mergeClasses:function(M){return Object.keys(M).filter(function(d){return M[d]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(M){return!this.ignoreBarTouch||M.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(M){this._isRTL?this._incrementKey(M):this._decrementKey(M)},
_rightKey:function(M){this._isRTL?this._decrementKey(M):this._incrementKey(M)},
_incrementKey:function(M){this.disabled||(M.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),M.preventDefault())},
_decrementKey:function(M){this.disabled||(M.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),M.preventDefault())},
_changeValue:function(M){this.value=M.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(M){M.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Qfm._createRipple.call(this)},
_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=M?"":"none",this._ripple.holdDown=M)}});var KQe;var yOP;var zy=null,JOT=function(){};
_.F=JOT.prototype;_.F.fit=function(){};
_.F._discoverInfo=function(){};
_.F.resetFit=function(){};
_.F.refit=function(){};
_.F.position=function(){};
_.F.constrain=function(){};
_.F._sizeDimension=function(){};
_.F.__sizeDimension=function(){};
_.F.center=function(){};
_.F.__getNormalizedRect=function(){};
_.F.__getOffscreenArea=function(){};
_.F.__getPosition=function(){};
_.F.notifyResize=function(){};
_.F.assignParentResizable=function(){};
_.F.stopResizeNotificationsFor=function(){};
_.F._subscribeIronResize=function(){};
_.F._unsubscribeIronResize=function(){};
_.F.resizerShouldNotify=function(){};
_.F._onDescendantIronResize=function(){};
_.F._fireResize=function(){};
_.F._onIronRequestResizeNotifications=function(){};
_.F._parentResizableChanged=function(){};
_.F._notifyDescendant=function(){};
_.F._requestResizeNotifications=function(){};
_.F._findParent=function(){};
_.F.toggle=function(){};
_.F.open=function(){};
_.F.close=function(){};
_.F.cancel=function(){};
_.F.invalidateTabbables=function(){};
_.F._ensureSetup=function(){};
_.F._canceledChanged=function(){};
_.F._withBackdropChanged=function(){};
_.F._prepareRenderOpened=function(){};
_.F._finishRenderOpened=function(){};
_.F._finishRenderClosed=function(){};
_.F._preparePositioning=function(){};
_.F._finishPositioning=function(){};
_.F._applyFocus=function(){};
_.F._onCaptureClick=function(){};
_.F._onCaptureFocus=function(){};
_.F._onCaptureEsc=function(){};
_.F._onCaptureTab=function(){};
_.F._onIronResize=function(){};
_.F._onNodesChange=function(){};
_.F.__ensureFirstLastFocusables=function(){};
_.F.__openedChanged=function(){};
_.F.__deraf=function(){};
_.F.__updateScrollObservers=function(){};
_.F.__addScrollListeners=function(){};
_.F.__removeScrollListeners=function(){};
_.F.__isValidScrollAction=function(){};
_.F.__onCaptureScroll=function(){};
_.F.__saveScrollPosition=function(){};
_.F.__restoreScrollPosition=function(){};
_.F._setCanceled=function(){};
JOT=_.kQ({_template:function(){if(yOP!==void 0)return yOP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;KQe===void 0&&(KQe=document.createElement("template"));var R=KQe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);return yOP=M},
is:"tp-yt-paper-toast",behaviors:[_.fG],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(){_.ms._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.b0.requestAvailability()},
show:function(M){typeof M=="string"&&(M={text:M});for(var d in M)d.indexOf("_")===0?_.ms._warn('The property "'+d+'" is private and was not set.'):d in this?this[d]=M[d]:_.ms._warn('The property "'+d+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(M){M&&M.target===this&&M.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(zy&&zy!==this&&zy.close(),zy=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):zy===this&&(zy=null);_.i0._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(M){this.positionTarget=M},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var cOT=new _.x("disablePersonalizationAction");var Icd=new _.x("showDmaConsentFlowCommand");var vQC=new _.x("showMmgNoticeCommand");var Sji=new _.x("saveConsentAction");var z0$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ye(M)};
_.v(z0$,_.Jj);var bGC=_.Ns6(z0$);var e0C=new _.x("updateTopbarAvatarAction");var HGJ=new _.x("channelHandleValidationResultRenderer");var nc9=new _.x("generateHandleFromNameResultRenderer");var iG9=new _.x("channelHandleInputRenderer");var f6Y=new _.x("copyLinkRenderer");var LQe=new _.x("timedCommand");var tOP=new _.x("clearCookieAction");var GJ$=new _.x("getMultiPageMenuAction");var a6T=new _.x("addToGuideSectionAction"),Umr=new _.x("removeFromGuideSectionAction");var uzr=new _.x("updateNotificationsUnseenCountAction");var C0r=new _.x("resetChannelUnreadCountCommand");var xme=new _.x("resetSubscriptionsUnreadDotCommand");var YjP=new _.x("selectLanguageCommand");var erD=new _.x("sendFeedbackAction");var ZGP=new _.x("uploadImageToScottyCommand");var Ec4=new _.x("registerPromoCommand");var MHP=new _.x("setPushNotificationsEnabledCommand");var ds9=new _.x("desktopTopbarRenderer");var N9C=new _.x("surveyFollowUpRenderer");var RKT=new _.x("handlesClaimingRadioOptionRenderer");var Xqe=new _.x("hotkeyDialogRenderer");var F6Y=new _.x("modifyReportFormCommand");var A69=new _.x("accountLinkCommand");var VHr=new _.x("accountUnlinkCommand");var l1e=new _.x("logAccountLinkingEventCommand");var $sC=new _.x("guideCollapsibleEntryRenderer");var B9b=new _.x("guideDownloadsEntryRenderer");var bq=new _.x("guideEntryRenderer");var kQT=new _.x("getLocationCommand");var T9T=new _.x("locationCollectionCommand");var Ds9=new _.x("storiesItemViewModel");var g3i=new _.x("addToRemoteQueueAction");var W6J=new _.x("insertInRemoteQueueAction");var wqr=new _.x("removeFromRemoteQueueAction");var pqJ=new _.x("notificationRenderer");var VGY=new _.x("localWatchHistoryCommand");var msP=new _.x("pdgBuyFlowHeaderRenderer");var hKq=new _.x("pdgColorSliderRenderer");var Qu9=new _.x("pdgCommentOptionRenderer");var qP$=new _.x("pdgCommentPreviewRenderer");var I1d=new _.x("superVodSelectableItemButtonRenderer");var v3d=new _.x("switchButtonRenderer");var O99=new _.x("upsellDialogRenderer");var juG=new _.x("feedbackQuestionRenderer"),suC=new _.x("feedbackOptionRenderer");var P8T=new _.x("sponsorshipsTierRenderer"),o3b=new _.x("sponsorshipsPromotionChannelRenderer");var r6T=new _.x("simpleSurveyMessageRenderer");var e7b=new _.x("invokeInstrumentManagerAction");var K6Y=new _.x("logYpcFlowDismissCommand");var y6P=new _.x("logYpcFlowStartCommand");var J6q=new _.x("unlimitedCreateFamilyEndpoint");var c6P=new _.x("iconBadgeRenderer");var XNd=new _.x("collaborativePlaylistVisibilityValidationRule");var SP4=function(M){_.Dj.call(this,"channelMessage");this.message=M};
_.v(SP4,_.Dj);var zKb=function(M){_.Dj.call(this,"channelError");this.error=M};
_.v(zKb,_.Dj);var b9e={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"},eK4={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},H9C={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
n3e={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},i9r={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var eA=function(M){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.Xz;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";M&&(this.id=M.id||M.name,this.name=M.name,this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=M.app,this.type=M.type||"REMOTE_CONTROL",this.username=M.user||"",this.avatar=M.userAvatarUri||"",this.obfuscatedGaiaId=M.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=M.ownerObfuscatedGaiaId||"",this.theme=M.theme||"u",f1G(this,M.capabilities||""),L64(this,M.compatibleSenderThemes||""),tHY(this,M.experiments||""),
this.remoteControllerUrl=M.remoteControllerUrl||"",this.localChannelEncryptionKey=M.localChannelEncryptionKey||"",this.deviceContext=M.deviceContext,this.brand=M.brand||"",this.model=M.model||"",this.year=M.year||0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=M.pairingType||"unknown",M=M.deviceInfo)&&(M=JSON.parse(M),this.brand=M.brand||"",this.model=M.model||"",this.year=M.year||
0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
eA.prototype.copy=function(){var M={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(M.brand=this.brand);
this.model&&(M.model=this.model);this.year&&(M.year=this.year);this.os&&(M.os=this.os);this.osVersion&&(M.osVersion=this.osVersion);this.chipset&&(M.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(M.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(M.mdxDialServerType=this.mdxDialServerType);M=new eA(M);M.connected=this.connected;M.remoteControllerUrl=this.remoteControllerUrl;M.localChannelEncryptionKey=this.localChannelEncryptionKey;M.deviceContext=
this.deviceContext;return M};
eA.prototype.equals=function(M){return M?this.id==M.id:!1};
var f1G=function(M,d){M.capabilities.clear();_.Ai(d.split(","),_.B1(_.wF.contains,b9e)).forEach(function(N){M.capabilities.add(N)})},L64=function(M,d){M.compatibleSenderThemes.clear();
_.Ai(d.split(","),_.B1(_.wF.contains,eK4)).forEach(function(N){M.compatibleSenderThemes.add(N)})},tHY=function(M,d){M.experiments.clear();
d.split(",").forEach(function(N){M.experiments.add(N)})};var GQb=function(M,d){this.action=M;this.params=d||{}};_.RX(PXT,_.DL);_.F=PXT.prototype;_.F.JSC$17369_onTick_=function(){this.JSC$17367_interval_=Math.min(3E5,this.JSC$17367_interval_*2);this.JSC$17369_listener_();this.nextTickTime_&&this.start()};
_.F.start=function(){var M=this.JSC$17367_interval_+15E3*Math.random(),d=this.delay_;d.isActive()||d.start(M);this.nextTickTime_=Date.now()+M};
_.F.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.F.isActive=function(){return this.delay_.isActive()};
_.F.reset=function(){this.delay_.stop();this.JSC$17367_interval_=5E3};_.RX(hr,mmi);_.F=hr.prototype;_.F.subscribe=function(M,d,N){return this.pubsub_.subscribe(M,d,N)};
_.F.unsubscribe=function(M,d,N){return this.pubsub_.unsubscribe(M,d,N)};
_.F.unsubscribeByKey=function(M){return this.pubsub_.unsubscribeByKey(M)};
_.F.publish=function(M,d){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.F.dispose=function(){this.JSC$17370_disposed_||(this.JSC$17370_disposed_=!0,_.tw(this.pubsub_),this.disconnect(),_.tw(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17370_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.RD({})})};
_.F.isDisposed=function(){return this.JSC$17370_disposed_};
_.F.connect=function(M,d,N){var R=this,X,A,l,k;return _.B(function(T){if(T.nextAddress==1)return _.Nv(T,2),R.useAsyncBrowserChannelHandler_?_.D(T,R.connectPromise_,2):T.jumpTo(2);_.du(T);if(R.JSC$17370_disposed_||R.JSC$17370_channel_&&R.JSC$17370_channel_.getState()==2)return T.return();R.sCookie_="";R.reconnectTimer_.stop();R.connectionParams_=M||null;R.connectUi_=d||0;X=R.JSC$17370_pathPrefix_+"/test";A=R.JSC$17370_pathPrefix_+"/bind";l=new Jp(N?N.firstTestResults:null,N?N.secondTestResults:null,
R.enableAsyncTest_);if(k=R.JSC$17370_channel_)k.handler_=null;l.handler_=R;R.JSC$17370_channel_=l;if(R.useAsyncBrowserChannelHandler_)return R.connectPromise_=a1i(R).then(function(){return UsG(R,X,A,k,N)}),T.return(R.connectPromise_.then(function(){R.connectPromise_=_.RD()}));
UsG(R,X,A,k,N);return _.Xg(T,0)})};
var UsG=function(M,d,N,R,X){u6G(M);if(M.JSC$17370_channel_){var A=_.rK("ID_TOKEN"),l=M.JSC$17370_channel_.JSC$17322_extraHeaders_||{};A?l["x-youtube-identity-token"]=A:delete l["x-youtube-identity-token"];M.JSC$17370_channel_.JSC$17322_extraHeaders_=l}C8b(M);R?(R.getState(),M.JSC$17370_channel_.connect(d,N,M.defaultQueryParams_,R.sid_,R.JSC$17322_lastArrayId_)):X?M.JSC$17370_channel_.connect(d,N,M.defaultQueryParams_,X.sessionId,X.arrayId):M.JSC$17370_channel_.connect(d,N,M.defaultQueryParams_)};
hr.prototype.disconnect=function(M){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.RD())}finally{this.disconnectUi_=M||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),u6G(this),this.JSC$17370_channel_&&(this.JSC$17370_channel_.getState()==3&&TJb(this.JSC$17370_channel_),this.JSC$17370_channel_.disconnect()),this.disconnectUi_=0}};
hr.prototype.sendMessage=function(M,d){var N=this,R;return _.B(function(X){switch(X.nextAddress){case 1:_.Nv(X,2);if(!N.useAsyncBrowserChannelHandler_){X.jumpTo(2);break}return _.D(X,N.connectPromise_,2);case 2:_.du(X);if(N.JSC$17370_disposed_)return X.return();R={_sc:M};d&&_.wF.extend(R,d);if(N.reconnectTimer_.isActive()||(N.JSC$17370_channel_?N.JSC$17370_channel_.getState():0)==2){N.JSC$17370_pendingMessages_.push(R);X.jumpTo(6);break}if(!N.isChannelOpened()){X.jumpTo(6);break}_.Nv(X,8);if(!N.useAsyncBrowserChannelHandler_||
xsY(N,M)){X.jumpTo(8);break}return _.D(X,a1i(N),8);case 8:_.du(X,0,0,1);N.isChannelOpened()&&(xsY(N,M)||C8b(N),u6G(N),kJ$(N.JSC$17370_channel_,R));_.Xg(X,6,1);break;case 6:_.Xg(X,0)}})};
var xsY=function(M,d){return M.enableMdxAuthForConnectionOnly_?!0:M.disableMdxAuthForAdMessages_?Object.values(H9C).includes(d):M.disableMdxAuthForNonPlaybackMessages_?!Object.values(n3e).includes(d):M.disableMdxAuthForShortsMessages_?Object.values(i9r).includes(d):!1};
hr.prototype.JSC$17329_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17370_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)YP4(this);else{var M=this.JSC$17370_pendingMessages_;this.JSC$17370_pendingMessages_=[];var d=M.length;C8b(this);Z9G(this,M,d);E3J(this)}else E3J(this)};
var YP4=function(M){var d,N;_.B(function(R){if(R.nextAddress==1)return _.Nv(R,2),_.D(R,a1i(M),2);_.du(R);d=M.JSC$17370_pendingMessages_;M.JSC$17370_pendingMessages_=[];N=d.length;Z9G(M,d,N);E3J(M);return _.Xg(R,0)})},Z9G=function(M,d,N){for(var R=0;R<N;++R)kJ$(M.JSC$17370_channel_,d[R]);
E3J(M)},E3J=function(M){M.publish("handlerOpened");
M.JSC$17370_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.F=hr.prototype;_.F.JSC$17329_channelError=function(M){var d=M==2&&this.JSC$17370_channel_.JSC$17322_lastStatusCode_==401;M==4||d||this.reconnectTimer_.start();this.publish("handlerError",M,d);d=Object.keys(R0$).find(function(N){return R0$[N]===M});
this.JSC$17370_channelErrorCounter.increment("BROWSER_CHANNEL",d!=null?d:"UNKNOWN")};
_.F.JSC$17329_channelClosed=function(M,d){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(d)for(var N=d.length,R=0;R<N;++R){var X=d[R].map;X&&this.JSC$17370_pendingMessages_.push(X)}this.JSC$17370_channelClosedCounter.increment("BROWSER_CHANNEL");M&&this.pendingMapsOnClosedCounter.JSC$7813_streamzService.JSC$7671_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",M.length);d&&this.undeliveredMapsOnClosedCounter.JSC$7816_streamzService.JSC$7671_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
d.length)};
_.F.JSC$17329_channelSuccess=function(M,d){d!=null&&M!=null&&this.channelMessageSentCounter.increment()};
_.F.JSC$17329_getAdditionalParams=function(){var M={v:2};this.sCookie_&&(M.gsessionid=this.sCookie_);this.connectUi_!=0&&(M.ui=""+this.connectUi_);this.disconnectUi_!=0&&(M.ui=""+this.disconnectUi_);this.connectionParams_&&_.wF.extend(M,this.connectionParams_);return M};
_.F.JSC$17329_channelHandleArray=function(M){M[0]=="S"?this.sCookie_=M[1]:M[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17370_channel_.disconnect()):this.publish("handlerMessage",new GQb(M[0],M[1]));this.JSC$17370_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.F.isChannelOpened=function(){return!!this.JSC$17370_channel_&&this.JSC$17370_channel_.getState()==3};
var u6G=function(M){if(M.JSC$17370_channel_){var d=M.JSC$17370_getXsrfToken_(),N=M.JSC$17370_channel_.JSC$17322_extraHeaders_||{};d?N["x-youtube-lounge-xsrf-token"]=d:delete N["x-youtube-lounge-xsrf-token"];M.JSC$17370_channel_.JSC$17322_extraHeaders_=N}},a1i=function(M){if(M.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.RD();
if(!M.enableCachedUpdateAuthorizationHeader_)return M4G(M);M.updateAuthorizationHeaderPromise_===null&&(M.updateAuthorizationHeaderPromise_=M4G(M));return M.updateAuthorizationHeaderPromise_},M4G=function(M){return _.Ie(M.getAuthorizationHeader_().then(function(d){dTr(M,d)}).thenCatch(function(){}),function(){M.updateAuthorizationHeaderPromise_=null})},dTr=function(M,d){if(M.JSC$17370_channel_){var N=M.JSC$17370_channel_.JSC$17322_extraHeaders_||{};
d&&Object.keys(d).length>0?N=Object.assign({},N,d):delete N.Authorization;M.JSC$17370_channel_.JSC$17322_extraHeaders_=N}},C8b=function(M){M.getAuthorizationHeaderSync_&&!M.useAsyncBrowserChannelHandler_&&dTr(M,M.getAuthorizationHeaderSync_())};
_.F=hr.prototype;_.F.setLoungeToken=function(M){(this.defaultQueryParams_.loungeIdToken=M)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17370_channel_){var d=this.JSC$17370_channel_.JSC$17322_extraHeaders_||{};M?d["X-YouTube-LoungeId-Token"]=M:delete d["X-YouTube-LoungeId-Token"];this.JSC$17370_channel_.JSC$17322_extraHeaders_=d}};
_.F.getDeviceId=function(){return this.defaultQueryParams_.id};
_.F.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.F.reconnect=function(){var M=this.reconnectTimer_;M.delay_.fire();M.start()};
_.F.safeReconnect_=function(){var M=this.JSC$17370_channel_,d=0;M.JSC$17322_backChannelRequest_&&d++;M.forwardChannelRequest_&&d++;d==0&&this.connect(this.connectionParams_,this.connectUi_)};var sE=function(M,d){var N=M.basePath;M.supportCors&&(N=M.scheme+"://"+M.domain+M.port+M.basePath);return _.LF(N+d,{})};
QT.prototype.sendRequest=function(M,d,N,R,X,A,l){M={format:A?"RAW":"JSON",method:M,context:this,timeout:5E3,withCredentials:!!l,onSuccess:_.B1(this.JSC$17375_onSuccess_,R,!A),onError:_.B1(this.onError_,X),onTimeout:_.B1(this.JSC$17375_onTimeout_,X)};N&&(M.postParams=N,M.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Am(d,M)};
QT.prototype.JSC$17375_onSuccess_=function(M,d,N,R){d?M(R):M({text:N.responseText})};
QT.prototype.onError_=function(M,d){M(Error("Ck`"+d.status))};
QT.prototype.JSC$17375_onTimeout_=function(M){M(Error("Dk"))};var IY=function(M,d){return!!d&&(M.id==d||M.uuid==d)},NmJ=function(M){return{name:M.name,
screenId:M.id,loungeToken:M.token,dialId:M.uuid,screenIdType:M.idType}},RHd=function(M){return new qJ(M)},XnC=function(M){return Array.isArray(M)?_.mi(M,RHd):[]},bbP=function(M){if(!M)return"null";
var d=M.token?".."+M.token.slice(-6):"-",N=M.uuid?".."+M.uuid.slice(-6):"-";return'{name:"'+M.name+'",id:'+M.id.substr(0,6)+"..,token:"+(d+",uuid:"+N+",idType:"+M.idType+"}")},kRG=function(M){return Array.isArray(M)?"["+_.mi(M,bbP).join(",")+"]":"null"};var GDb="",jW=null;var MD9=function(M,d){_.mk.call(this);var N=this;this.handler=M();this.handler.subscribe("handlerOpened",this.JSC$17382_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(R,X){N.onError(X)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=d};
_.v(MD9,_.mk);_.F=MD9.prototype;_.F.connect=function(M,d,N){this.handler.connect(M,d,N)};
_.F.disconnect=function(M){this.handler.disconnect(M)};
_.F.reconnect=function(){this.handler.reconnect()};
_.F.getDeviceId=function(){return this.handler.getDeviceId()};
_.F.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.F.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.F.JSC$17382_onOpened=function(){this.dispatchEvent("channelOpened");var M=this.handler,d=this.currentScreenId;_.X5("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!M.JSC$17370_channel_.useChunked_,sessionId:M.JSC$17370_channel_.sid_,arrayId:M.JSC$17370_channel_.JSC$17322_lastArrayId_});_.X5("yt-remote-session-screen-id",d);M=HLT();d=nPi();_.i2(M,d)||M.push(d);tEr(M);LYe()};
_.F.onClosed=function(){this.dispatchEvent("channelClosed")};
_.F.onMessage=function(M){this.dispatchEvent(new SP4(M))};
_.F.onError=function(M){this.dispatchEvent(new zKb(M?1:0))};
_.F.sendMessage=function(M,d){this.handler.sendMessage(M,d)};
_.F.setLoungeToken=function(M){this.handler.setLoungeToken(M)};
_.F.dispose=function(){this.handler.dispose()};var EPC=function(M,d,N){var R=this;N=N===void 0?function(){return""}:N;
var X=X===void 0?new rVT:X;var A=A===void 0?new _.lk:A;this.pathPrefix=M;this.defaultQueryParams=d;this.getXsrfToken=N;this.JSC$17385_pubsub=A;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new PXT(function(){var l;((l=R.channel)==null?void 0:FsY((new JVT(l,l.JSC$17293_channel_)).JSC$17303_channel_.forwardChannelRequestPool_))===0&&R.connect(R.connectionParams,R.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17385_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17385_channelOpenedCounter=new oP9;this.JSC$17385_channelClosedCounter=new rXC;this.JSC$17385_channelMessageReceivedCounter=new yX4;this.JSC$17385_channelErrorCounter=new JXG};
EPC.prototype.connect=function(M,d){M=M===void 0?{}:M;d=d===void 0?0:d;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=M,this.connectUi=d,FTJ(this),(M=_.rK("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=M:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new jA(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,AbG(this))};
var AbG=function(M){_.lI(M.channel,"w",function(){M.channelState=3;M.reconnectTimer.reset();M.connectionParams=null;M.connectUi=0;for(var d=_.V(M.nonAckedMessagesOnChannelClosed),N=d.next();!N.done;N=d.next())N=N.value,M.channel&&M.channel.send(N);M.nonAckedMessagesOnChannelClosed=[];M.publish("webChannelOpened");M.JSC$17385_channelOpenedCounter.increment("WEB_CHANNEL")});
_.lI(M.channel,"x",function(){M.channelState=0;M.reconnectTimer.isActive()||M.publish("webChannelClosed");var d,N=(d=M.channel)==null?void 0:cVq(new JVT(d,d.JSC$17293_channel_));N&&(M.nonAckedMessagesOnChannelClosed=[].concat(_.wu(N)));M.JSC$17385_channelClosedCounter.increment("WEB_CHANNEL")});
_.lI(M.channel,"z",function(d){var N=d.data;N[0]==="gracefulReconnect"?(M.reconnectTimer.start(),M.channel&&M.channel.close()):M.publish("webChannelMessage",new GQb(N[0],N[1]));M.lastStatusCode=d.statusCode;M.JSC$17385_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.lI(M.channel,"y",function(){M.lastStatusCode===401||M.reconnectTimer.start();M.publish("webChannelError");M.JSC$17385_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.F=EPC.prototype;_.F.disconnect=function(M){this.disconnectUi=M===void 0?0:M;this.reconnectTimer.stop();FTJ(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.F.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.F.reconnect=function(){var M=this.reconnectTimer;M.delay_.fire();M.start()};
_.F.sendMessage=function(M,d){this.channel&&(FTJ(this),M=Object.assign({},{_sc:M},d),this.channel.send(M))};
_.F.setLoungeToken=function(M){M||this.reconnectTimer.stop();M?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=M:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var FTJ=function(M){var d=M.getXsrfToken();d?M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=d:delete M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.F=EPC.prototype;_.F.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.F.publish=function(M){return this.JSC$17385_pubsub.publish.apply(this.JSC$17385_pubsub,[M].concat(_.wu(_.wH.apply(1,arguments))))};
_.F.subscribe=function(M,d,N){return this.JSC$17385_pubsub.subscribe(M,d,N)};
_.F.unsubscribe=function(M,d,N){return this.JSC$17385_pubsub.unsubscribe(M,d,N)};
_.F.unsubscribeByKey=function(M){return this.JSC$17385_pubsub.unsubscribeByKey(M)};
_.F.dispose=function(){this.JSC$17385_disposed||(this.JSC$17385_disposed=!0,_.tw(this.JSC$17385_pubsub),this.disconnect(),_.tw(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.F.isDisposed=function(){return this.JSC$17385_disposed};var ZLq=function(M){_.mk.call(this);this.webChannelService=M();this.webChannelService.subscribe("webChannelOpened",this.JSC$17393_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.v(ZLq,_.mk);_.F=ZLq.prototype;_.F.connect=function(M,d){this.webChannelService.connect(M,d)};
_.F.disconnect=function(M){this.webChannelService.disconnect(M)};
_.F.reconnect=function(){this.webChannelService.reconnect()};
_.F.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.F.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.F.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.F.JSC$17393_onOpened=function(){this.dispatchEvent("channelOpened")};
_.F.onClosed=function(){this.dispatchEvent("channelClosed")};
_.F.onMessage=function(M){this.dispatchEvent(new SP4(M))};
_.F.onError=function(){this.dispatchEvent(new zKb(this.webChannelService.lastStatusCode===401?1:0))};
_.F.sendMessage=function(M,d){this.webChannelService.sendMessage(M,d)};
_.F.setLoungeToken=function(M){this.webChannelService.setLoungeToken(M)};
_.F.dispose=function(){this.webChannelService.dispose()};var BUq=Date.now(),PH=null,lye=Array(50),Ko=-1,$ir=!1;_.RX(yT,_.nn);yT.prototype.getScreens=function(){return this.screens};
yT.prototype.contains=function(M){return!!egD(this.screens,M)};
yT.prototype.get=function(M){return M?vH(this.screens,M):null};
var V4$=function(M,d){var N=M.get(d.uuid)||M.get(d.id);if(N)return M=N.name,N.id=d.id||N.id,N.name=d.name,N.token=d.token,N.uuid=d.uuid||N.uuid,N.name!=M;M.screens.push(d);return!0},lYY=function(M,d){var N=M.screens.length!=d.length;
M.screens=_.Ai(M.screens,function(A){return!!egD(d,A)});
for(var R=d.length,X=0;X<R;X++)N=V4$(M,d[X])||N;return N},$Tb=function(M,d){var N=M.screens.length;
M.screens=_.Ai(M.screens,function(R){return!(R||d?!R!=!d?0:R.id==d.id:1)});
return M.screens.length<N};
yT.prototype.info=function(M){oY(this.JSC$17394_logName_,M)};var Bm9=function(M,d,N,R,X){_.nn.call(this);this.JSC$17397_http_=M;this.pairingCode_=d;this.deviceId_=N;this.friendlyName_=R;this.enableShortLivedLoungeToken_=X;this.pollIndex_=0;this.JSC$17397_xhr_=null;this.JSC$17397_timer_=NaN};
_.v(Bm9,_.nn);_.F=Bm9.prototype;_.F.start=function(){!this.JSC$17397_xhr_&&isNaN(this.JSC$17397_timer_)&&this.poll_()};
_.F.stop=function(){this.JSC$17397_xhr_&&(this.JSC$17397_xhr_.abort(),this.JSC$17397_xhr_=null);isNaN(this.JSC$17397_timer_)||(_.XO(this.JSC$17397_timer_),this.JSC$17397_timer_=NaN)};
_.F.disposeInternal=function(){this.stop();_.nn.prototype.disposeInternal.call(this)};
_.F.poll_=function(){this.JSC$17397_timer_=NaN;this.JSC$17397_xhr_=_.Am(sE(this.JSC$17397_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.gx)(this.JSC$17399_onSuccess_,this),onError:(0,_.gx)(this.onError_,this),onTimeout:(0,_.gx)(this.JSC$17399_onTimeout_,this)})};
_.F.JSC$17399_onSuccess_=function(M,d){this.JSC$17397_xhr_=null;M=d.screen||{};M.dialId=this.deviceId_;M.name=this.friendlyName_;d=-1;this.enableShortLivedLoungeToken_&&M.shortLivedLoungeToken&&M.shortLivedLoungeToken.value&&M.shortLivedLoungeToken.refreshIntervalMs&&(M.screenIdType="shortLived",M.loungeToken=M.shortLivedLoungeToken.value,d=M.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new qJ(M),d)};
_.F.onError_=function(M){this.JSC$17397_xhr_=null;M.status&&M.status==404?this.pollIndex_>=kq4.length?this.publish("pairingFailed",Error("Ek")):(M=kq4[this.pollIndex_],this.JSC$17397_timer_=_.NB((0,_.gx)(this.poll_,this),M),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+M.status))};
_.F.JSC$17399_onTimeout_=function(){this.JSC$17397_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var kq4=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.RX(cH,yT);_.F=cH.prototype;_.F.start=function(){Jr(this)&&this.publish("screenChange");!_.F5("yt-remote-lounge-token-expiration")&&Tmq(this);_.XO(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.NB((0,_.gx)(this.start,this),1E4)};
_.F.add=function(M,d){Jr(this);V4$(this,M);DTe(this,!1);this.publish("screenChange");d(M);M.token||Tmq(this)};
_.F.remove=function(M,d){var N=Jr(this);$Tb(this,M)&&(DTe(this,!1),N=!0);d(M);N&&this.publish("screenChange")};
_.F.updateName=function(M,d,N,R){var X=Jr(this),A=this.get(M.id);A?(A.name!=d&&(A.name=d,DTe(this,!1),X=!0),N(M)):R(Error("Hk"));X&&this.publish("screenChange")};
_.F.disposeInternal=function(){_.XO(this.loungeTokenRefreshTimer_);cH.superClass_.disposeInternal.call(this)};
var Tmq=function(M){if(M.screens.length){var d=_.mi(M.screens,function(R){return R.id}),N=sE(M.JSC$17401_http_,"/pairing/get_lounge_token_batch");
M.JSC$17401_http_.sendRequest("POST",N,{screen_ids:d.join(",")},(0,_.gx)(M.handleLoungeTokens_,M),(0,_.gx)(M.handleLoungeTokenError_,M))}};
cH.prototype.handleLoungeTokens_=function(M){Jr(this);var d=this.screens.length;M=M&&M.screens||[];for(var N=M.length,R=0;R<N;++R){var X=M[R],A=this.get(X.screenId);A&&(A.token=X.loungeToken,--d)}DTe(this,!d);d&&oY(this.JSC$17394_logName_,"Missed "+d+" lounge tokens.")};
cH.prototype.handleLoungeTokenError_=function(M){oY(this.JSC$17394_logName_,"Requesting lounge tokens failed: "+M)};
var Jr=function(M){if(_.Q("deprecate_pair_servlet_enabled"))return lYY(M,[]);var d=XnC(Uwb());d=_.Ai(d,function(N){return!N.uuid});
return lYY(M,d)},DTe=function(M,d){CXY(_.mi(M.screens,NmJ));
d&&uf4()};var H2=function(M,d){_.nn.call(this);this.getScreensToCheck_=d;d=(d=_.F5("yt-remote-online-screen-ids")||"")?d.split(","):[];for(var N={},R=this.getScreensToCheck_(),X=R.length,A=0;A<X;++A){var l=R[A].id;N[l]=_.i2(d,l)}this.screenIdSet_=N;this.JSC$17404_http_=M;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;gOC("Initialized with "+(0,_.js)(this.screenIdSet_))};
_.v(H2,_.nn);H2.prototype.isOnline=function(M){return!!this.screenIdSet_[M]};
H2.prototype.start=function(){var M=parseInt(_.F5("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Nn()-144E5<M?0:M)?WTY(this):(this.fastCheckEndTime_=_.Nn()+3E5,_.X5("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
H2.prototype.isEmpty=function(){return _.wF.isEmpty(this.screenIdSet_)};
H2.prototype.update=function(){gOC("Updating availability on schedule.");var M=this.getScreensToCheck_(),d=_.wF.filter(this.screenIdSet_,function(N,R){return N&&!!vH(M,R)},this);
wne(this,d)};
var pnr=function(M,d,N){var R=sE(M.JSC$17404_http_,"/pairing/get_screen_availability");M.JSC$17404_http_.sendRequest("POST",R,{lounge_token:d.token},(0,_.gx)(function(X){X=X.screens||[];for(var A=X.length,l=0;l<A;++l)if(X[l].loungeToken==d.token){N(X[l].status=="online");return}N(!1)},M),(0,_.gx)(function(){N(!1)},M))};
H2.prototype.disposeInternal=function(){_.XO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.nn.prototype.disposeInternal.call(this)};
var wne=function(M,d){a:if(_.wF.getCount(d)!=_.wF.getCount(M.screenIdSet_))var N=!1;else{N=_.wF.getKeys(d);for(var R=N.length,X=0;X<R;++X)if(!M.screenIdSet_[N[X]]){N=!1;break a}N=!0}N||(gOC("Updated online screens: "+(0,_.js)(M.screenIdSet_)),M.screenIdSet_=d,M.publish("screenChange"));mTC(M)},WTY=function(M){isNaN(M.refreshTimer_)||_.XO(M.refreshTimer_);
M.refreshTimer_=_.NB((0,_.gx)(M.requestScreenAvailability_,M),M.fastCheckEndTime_>0&&M.fastCheckEndTime_<_.Nn()?2E4:1E4)};
H2.prototype.requestScreenAvailability_=function(){_.XO(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var M=hHG(this);if(_.wF.getCount(M)){var d=sE(this.JSC$17404_http_,"/pairing/get_screen_availability"),N={lounge_token:_.wF.getKeys(M).join(",")};this.currentRequest_=this.JSC$17404_http_.sendRequest("POST",d,N,(0,_.gx)(this.onScreenAvailability_,this,M),(0,_.gx)(this.onScreenAvailabilityError_,this))}else wne(this,{}),WTY(this)};
H2.prototype.onScreenAvailability_=function(M,d){this.currentRequest_=null;var N=_.wF.getKeys(hHG(this));if(_.AC(N,_.wF.getKeys(M))){d=d.screens||[];N={};for(var R=d.length,X=0;X<R;++X)N[M[d[X].loungeToken]]=d[X].status=="online";wne(this,N);WTY(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
H2.prototype.onScreenAvailabilityError_=function(M){this.warn_("Screen availability failed: "+M);this.currentRequest_=null;WTY(this)};
var gOC=function(M){oY("OnlineScreenService",M)};
H2.prototype.warn_=function(M){oY("OnlineScreenService",M)};
var hHG=function(M){var d={};_.Hy(M.getScreensToCheck_(),function(N){N.token?d[N.token]=N.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return d},mTC=function(M){M=_.wF.getKeys(_.wF.filter(M.screenIdSet_,function(d){return d}));
M.sort(_.XL);M.length?_.X5("yt-remote-online-screen-ids",M.join(","),60):_.AK("yt-remote-online-screen-ids")};_.RX(SW,yT);_.F=SW.prototype;_.F.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.F.add=function(M,d,N){this.localScreenService_.add(M,d,N)};
_.F.remove=function(M,d,N){this.localScreenService_.remove(M,d,N);this.onlineScreenService_.update()};
_.F.updateName=function(M,d,N,R){this.localScreenService_.contains(M)?this.localScreenService_.updateName(M,d,N,R):(M="Updating name of unknown screen: "+M.name,oY(this.JSC$17394_logName_,M),R(Error(M)))};
_.F.getScreens=function(M){return M?this.screens:lx9(this.screens,_.Ai(this.automaticScreens_,function(d){return!this.contains(d)},this))};
_.F.JSC$17409_getOnlineScreens=function(){return _.Ai(this.getScreens(!0),function(M){return this.onlineScreenService_.isOnline(M.id)},this)};
var q9D=function(M,d,N,R,X,A){M.info("getAutomaticScreenByIds "+N+" / "+d);N||(N=M.deviceToScreenId_[d]);var l=M.getScreens(),k=N?vH(l,N):null;N&&(M.disableAutomaticScreenCache_||k)||(k=vH(l,d));if(k){k.uuid=d;var T=nY(M,k);pnr(M.onlineScreenService_,T,function(W){X(W?T:null)})}else N?QLd(M,N,(0,_.gx)(function(W){var w=nY(this,new qJ({name:R,
screenId:N,loungeToken:W,dialId:d||""}));pnr(this.onlineScreenService_,w,function(p){X(p?w:null)})},M),A):X(null)};
SW.prototype.JSC$17409_getScreenByPollingPairingCode=function(M,d,N,R,X,A){var l=this;this.info("getDialScreenByPairingCode "+M+" / "+d);var k=new Bm9(this.JSC$17407_http_,M,d,N,R);k.subscribe("pairingComplete",function(T,W){_.tw(k);X(nY(l,T),W)});
k.subscribe("pairingFailed",function(T){_.tw(k);A(T)});
k.start();return(0,_.gx)(k.stop,k)};
var IYd=function(M,d){for(var N=M.screens.length,R=0;R<N;++R)if(M.screens[R].name==d)return M.screens[R];return null};
SW.prototype.JSC$17409_getScreenByPairingCode=function(M,d,N,R){_.Am(sE(this.JSC$17407_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:M},timeout:5E3,onSuccess:(0,_.gx)(function(X,A){X=new qJ(A.screen||{});if(!X.name||IYd(this,X.name)){a:{A=X.name;for(var l=2,k=d(A,l);IYd(this,k);){l++;if(l>20)break a;k=d(A,l)}A=k}X.name=A}N(nY(this,X))},this),
onError:(0,_.gx)(function(X){R(Error("Ik`"+X.status))},this),
onTimeout:(0,_.gx)(function(){R(Error("Jk"))},this)})};
var vOe=function(M,d,N){pnr(M.onlineScreenService_,d,N)};
SW.prototype.disposeInternal=function(){_.tw(this.localScreenService_);_.tw(this.onlineScreenService_);SW.superClass_.disposeInternal.call(this)};
var QLd=function(M,d,N,R){M.info("requestLoungeToken_ for "+d);var X={postParams:{screen_ids:d},method:"POST",context:M,onSuccess:function(A,l){A=l&&l.screens||[];A[0]&&A[0].screenId==d?N(A[0].loungeToken):R(Error("Kk"))},
onError:function(){R(Error("Lk"))}};
_.Am(sE(M.JSC$17407_http_,"/pairing/get_lounge_token_batch"),X)},O4C=function(M){M.screens=M.localScreenService_.getScreens();
for(var d=_.wF.transpose(M.deviceToScreenId_),N=M.screens.length,R=0;R<N;++R){var X=M.screens[R];X.uuid=d[X.id]||""}M.info("Updated manual screens: "+kRG(M.screens))};
SW.prototype.handleScreenChange_=function(){O4C(this);this.publish("screenChange");this.onlineScreenService_.update()};
var TUi=function(M){jL9(M);M.localScreenService_=new cH(M.JSC$17407_http_);M.localScreenService_.subscribe("screenChange",(0,_.gx)(M.handleScreenChange_,M));O4C(M);M.disableAutomaticScreenCache_||(M.automaticScreens_=XnC(_.F5("yt-remote-automatic-screen-cache")||[]));jL9(M);M.info("Initializing automatic screens: "+kRG(M.automaticScreens_));M.onlineScreenService_=new H2(M.JSC$17407_http_,(0,_.gx)(M.getScreens,M,!0));M.onlineScreenService_.subscribe("screenChange",(0,_.gx)(function(){this.publish("onlineScreenChange")},
M))},nY=function(M,d){var N=M.get(d.id);
N?(N.uuid=d.uuid,d=N):((N=vH(M.automaticScreens_,d.uuid))?(N.id=d.id,N.token=d.token,d=N):M.automaticScreens_.push(d),M.disableAutomaticScreenCache_||sLb(M));jL9(M);M.deviceToScreenId_[d.uuid]=d.id;_.X5("yt-remote-device-id-map",M.deviceToScreenId_,31536E3);return d},sLb=function(M){M=_.Ai(M.automaticScreens_,function(d){return d.idType!="shortLived"});
_.X5("yt-remote-automatic-screen-cache",_.mi(M,NmJ))},jL9=function(M){M.deviceToScreenId_=_.F5("yt-remote-device-id-map")||{}};
SW.prototype.dispose=SW.prototype.dispose;_.RX(zm,_.nn);var iq=function(M,d){M.screen_=d;M.publish("sessionScreen",M.screen_)},Pgr=function(M,d){M.screen_&&(M.screen_.token=d,nY(M.JSC$17411_screenService_,M.screen_));
M.publish("sessionScreen",M.screen_)};
zm.prototype.onSessionStopped=function(M){this.isDisposed()||(M&&(fY(this,""+M),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
zm.prototype.info=function(M){oY(this.JSC$17411_logName_,M)};
var fY=function(M,d){oY(M.JSC$17411_logName_,d)};
zm.prototype.JSC$17413_getCastSession=function(){return null};
zm.prototype.setDisplayStatus=function(M){var d=this.receiver_;M?(d.displayStatus=new chrome.cast.ReceiverDisplayStatus(M,[]),d.displayStatus.showStop=!0):d.displayStatus=null;chrome.cast.setReceiverDisplayStatus(d,(0,_.gx)(function(){this.info("Updated receiver status for "+d.friendlyName+": "+M)},this),(0,_.gx)(function(){fY(this,"Failed to update receiver status for: "+d.friendlyName)},this))};
zm.prototype.disposeInternal=function(){this.setDisplayStatus("");zm.superClass_.disposeInternal.call(this)};var LY=function(M,d,N){zm.call(this,M,d,"CastSession");var R=this;this.config_=N;this.JSC$17416_session_=null;this.JSC$17416_boundSessionUpdate_=(0,_.gx)(this.JSC$17418_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.gx)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.NB(function(){oOr(R,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17416_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17416_isInitLoungeToken_=!1;this.JSC$17416_lastLoungeTokenRefreshError_="unknown"};
_.v(LY,zm);_.F=LY.prototype;
_.F.setCastSession=function(M){if(this.JSC$17416_session_){if(this.JSC$17416_session_==M)return;fY(this,"Overriding cast session with new session object");rb$(this);this.JSC$17416_isInitLoungeToken_=!1;this.JSC$17416_lastLoungeTokenRefreshError_="unknown";this.JSC$17416_session_.removeUpdateListener(this.JSC$17416_boundSessionUpdate_);this.JSC$17416_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17416_session_=M;this.JSC$17416_session_.addUpdateListener(this.JSC$17416_boundSessionUpdate_);this.JSC$17416_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);KT$(this,"getMdxSessionStatus")};
_.F.launchWithParams=function(M){this.info("launchWithParams no-op for Cast: "+(0,_.js)(M))};
_.F.stop=function(){if(this.JSC$17416_session_)this.JSC$17416_session_.stop((0,_.gx)(function(){this.onSessionStopped()},this),(0,_.gx)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.F.setDisplayStatus=function(){};
_.F.disposeInternal=function(){this.info("disposeInternal");rb$(this);this.JSC$17416_session_&&(this.JSC$17416_session_.removeUpdateListener(this.JSC$17416_boundSessionUpdate_),this.JSC$17416_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17416_session_=null;zm.prototype.disposeInternal.call(this)};
var Jbr=function(M,d){_.XO(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0;d==0?ybT(M):M.getLoungeTokenTimeoutKey_=_.NB(function(){ybT(M)},d)},ybT=function(M){KT$(M,"getLoungeToken");
_.XO(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=_.NB(function(){cbP(M,null)},3E4)},KT$=function(M,d){M.info("sendYoutubeMessage_: "+d+" "+(0,_.js)(void 0));
var N={};N.type=d;M.JSC$17416_session_?M.JSC$17416_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",N,function(){},(0,_.gx)(function(){fY(this,"Failed to send message: "+d+".")},M)):fY(M,"Sending yt message without session: "+(0,_.js)(N))};
LY.prototype.onYoutubeMessage_=function(M,d){if(!this.isDisposed())if(d)if(d=(0,_.mY)(d),_.Me(d))switch(M=""+d.type,d=d.data||{},this.info("onYoutubeMessage_: "+M+" "+(0,_.js)(d)),M){case "mdxSessionStatus":oOr(this,d);break;case "loungeToken":cbP(this,d);break;default:fY(this,"Unknown youtube message: "+M)}else fY(this,"Unable to parse message.");else fY(this,"No data in message.")};
var S9b=function(M,d){if(d)M.info("onConnectedScreenId_: Received screenId: "+d),M.screen_&&M.screen_.id==d||M.getScreen_(d,function(N){iq(M,N)},function(){return M.onSessionStopped()},5);
else M.onSessionStopped(Error("Ok"))},b4J=function(M,d,N){M.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(d));
var R=new qJ(d);zHd(M,R,function(X){X?(M.JSC$17416_isInitLoungeToken_=!0,nY(M.JSC$17411_screenService_,R),iq(M,R),M.JSC$17416_lastLoungeTokenRefreshError_="unknown",Jbr(M,N)):(_.yD(Error("Pk`"+JSON.stringify(d))),M.onSessionStopped())},5)},oOr=function(M,d){_.XO(M.sessionStatusTimeoutKey_);
M.sessionStatusTimeoutKey_=0;if(d)M.config_.enableCastLoungeToken&&d.loungeToken?d.deviceId?M.screen_&&M.screen_.uuid==d.deviceId||(d.loungeTokenRefreshIntervalMs?b4J(M,{name:M.receiver_.friendlyName,screenId:d.screenId,loungeToken:d.loungeToken,dialId:d.deviceId,screenIdType:"shortLived"},d.loungeTokenRefreshIntervalMs):(_.yD(Error("Rk`"+JSON.stringify(d))),S9b(M,d.screenId))):(_.yD(Error("Qk`"+JSON.stringify(d))),S9b(M,d.screenId)):S9b(M,d.screenId);else M.onSessionStopped(Error("Ok"))},cbP=function(M,
d){_.XO(M.onLoungeTokenTimeoutKey_);
M.onLoungeTokenTimeoutKey_=0;var N=null;if(d)if(d.loungeToken){var R;((R=M.screen_)==null?void 0:R.token)==d.loungeToken&&(N="staleLoungeToken")}else N="missingLoungeToken";else N="noLoungeTokenResponse";N?(M.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(d)+", error: "+N)),M.JSC$17416_lastLoungeTokenRefreshError_=N,Jbr(M,3E4)):(Pgr(M,d.loungeToken),M.JSC$17416_isInitLoungeToken_=!1,M.JSC$17416_lastLoungeTokenRefreshError_="unknown",Jbr(M,d.loungeTokenRefreshIntervalMs))};
LY.prototype.getScreen_=function(M,d,N,R){_.XO(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;q9D(this.JSC$17411_screenService_,this.receiver_.label,M,this.receiver_.friendlyName,(0,_.gx)(function(X){X?d(X):R>=0?(fY(this,"Screen "+M+" appears to be offline. "+R+" retries left."),this.getScreenTimeoutKey_=_.NB((0,_.gx)(this.getScreen_,this,M,d,N,R-1),300)):N(Error("Sk"))},this),N)};
var zHd=function(M,d,N,R){_.XO(M.JSC$17416_checkScreenAvailabilityTimeoutKey_);M.JSC$17416_checkScreenAvailabilityTimeoutKey_=0;vOe(M.JSC$17411_screenService_,d,function(X){X||R<0?N(X):M.JSC$17416_checkScreenAvailabilityTimeoutKey_=_.NB(function(){zHd(M,d,N,R-1)},300)})};
LY.prototype.JSC$17413_getCastSession=function(){return this.JSC$17416_session_};
LY.prototype.JSC$17418_onSessionUpdate_=function(M){this.isDisposed()||M||(fY(this,"Cast session died."),this.onSessionStopped())};
var rb$=function(M){_.XO(M.getScreenTimeoutKey_);M.getScreenTimeoutKey_=0;_.XO(M.JSC$17416_checkScreenAvailabilityTimeoutKey_);M.JSC$17416_checkScreenAvailabilityTimeoutKey_=0;_.XO(M.sessionStatusTimeoutKey_);M.sessionStatusTimeoutKey_=0;_.XO(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=0;_.XO(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0};var tp=function(M,d,N,R){zm.call(this,M,d,"DialSession");this.config_=R;this.JSC$17420_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17420_theme_=N;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17420_deferredLaunchDeadlineTimer_=NaN;this.JSC$17420_boundSessionUpdate_=(0,_.gx)(this.JSC$17422_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17420_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17420_isInitLoungeToken_=!1;this.JSC$17420_lastLoungeTokenRefreshError_="unknown"};
_.v(tp,zm);tp.prototype.setCastSession=function(M){this.JSC$17420_session_=M;this.JSC$17420_session_.addUpdateListener(this.JSC$17420_boundSessionUpdate_)};
tp.prototype.launchWithParams=function(M){this.connectData_=M;this.deferredLaunch_()};
tp.prototype.stop=function(){eHY(this);if(this.JSC$17420_session_)this.JSC$17420_session_.stop((0,_.gx)(this.onSessionStopped,this,null),(0,_.gx)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
tp.prototype.disposeInternal=function(){eHY(this);this.JSC$17420_session_&&this.JSC$17420_session_.removeUpdateListener(this.JSC$17420_boundSessionUpdate_);this.JSC$17420_session_=null;zm.prototype.disposeInternal.call(this)};
var H4J=function(M){var d;return!!(M.config_.enableDialLoungeToken&&((d=M.JSC$17420_session_)==null?0:d.getDialAppInfo))},nO4=function(M){M.cancelPolling_=M.JSC$17411_screenService_.JSC$17409_getScreenByPollingPairingCode(M.reversePairingCode_,M.receiver_.label,M.receiver_.friendlyName,H4J(M),function(d,N){M.cancelPolling_=function(){};
M.JSC$17420_isInitLoungeToken_=!0;iq(M,d);d.idType=="shortLived"&&N>0&&Gy(M,N)},function(d){M.cancelPolling_=function(){};
M.onSessionStopped(d)})};
tp.prototype.JSC$17422_onSessionUpdate_=function(M){this.isDisposed()||M||(fY(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var i4i=function(M){var d={};d.pairingCode=M.reversePairingCode_;d.theme=M.JSC$17420_theme_;YuY()&&(d.env_useStageMdx=1);return _.VO(d)},fYY=function(M){return new Promise(function(d){M.reversePairingCode_=zge();
if(M.connectData_){var N=new chrome.cast.DialLaunchResponse(!0,i4i(M));d(N);nO4(M)}else M.deferredLaunch_=function(){_.XO(M.JSC$17420_deferredLaunchDeadlineTimer_);M.deferredLaunch_=function(){};
M.JSC$17420_deferredLaunchDeadlineTimer_=NaN;var R=new chrome.cast.DialLaunchResponse(!0,i4i(M));d(R);nO4(M)},M.JSC$17420_deferredLaunchDeadlineTimer_=_.NB(function(){M.deferredLaunch_()},100)})},t44=function(M,d,N){M.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(d));
var R=new qJ(d);return(new Promise(function(X){LTb(M,R,function(A){A?(M.JSC$17420_isInitLoungeToken_=!0,nY(M.JSC$17411_screenService_,R),iq(M,R),Gy(M,N)):_.yD(Error("Uk`"+JSON.stringify(d)));X(A)},5)})).then(function(X){return X?new chrome.cast.DialLaunchResponse(!1):fYY(M)})},Gq4=function(M,d){var N=M.launchData_.receiver.label,R=M.receiver_.friendlyName;
return(new Promise(function(X){q9D(M.JSC$17411_screenService_,N,d,R,function(A){A&&A.token&&iq(M,A);X(A)},function(A){fY(M,"Failed to get DIAL screen: "+A);
X(null)})})).then(function(X){return X&&X.token?new chrome.cast.DialLaunchResponse(!1):fYY(M)})},LTb=function(M,d,N,R){_.XO(M.JSC$17420_checkScreenAvailabilityTimeoutKey_);
M.JSC$17420_checkScreenAvailabilityTimeoutKey_=0;vOe(M.JSC$17411_screenService_,d,function(X){X||R<0?N(X):M.JSC$17420_checkScreenAvailabilityTimeoutKey_=_.NB(function(){LTb(M,d,N,R-1)},300)})},Gy=function(M,d){M.info("getDialAppInfoWithTimeout_ "+d);
H4J(M)&&(_.XO(M.getDialAppInfoTimeoutKey_),M.getDialAppInfoTimeoutKey_=0,d==0?aYr(M):M.getDialAppInfoTimeoutKey_=_.NB(function(){aYr(M)},d))},aYr=function(M){H4J(M)&&M.JSC$17420_session_.getDialAppInfo(function(d){M.info("getDialAppInfo dialLaunchData: "+JSON.stringify(d));
d=d.extraData||{};var N=null;if(d.loungeToken){var R;((R=M.screen_)==null?void 0:R.token)==d.loungeToken&&(N="staleLoungeToken")}else N="missingLoungeToken";N?(M.JSC$17420_lastLoungeTokenRefreshError_=N,Gy(M,3E4)):(M.JSC$17420_isInitLoungeToken_=!1,M.JSC$17420_lastLoungeTokenRefreshError_="unknown",Pgr(M,d.loungeToken),Gy(M,d.loungeTokenRefreshIntervalMs))},function(d){M.info("getDialAppInfo error: "+d);
M.JSC$17420_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Gy(M,3E4)})},eHY=function(M){_.XO(M.JSC$17420_checkScreenAvailabilityTimeoutKey_);
M.JSC$17420_checkScreenAvailabilityTimeoutKey_=0;_.XO(M.getDialAppInfoTimeoutKey_);M.getDialAppInfoTimeoutKey_=0;M.cancelPolling_();M.cancelPolling_=function(){};
_.XO(M.JSC$17420_deferredLaunchDeadlineTimer_)};var aV=function(M,d){zm.call(this,M,d,"ManualSession");this.JSC$17424_deferredLaunchDeadlineTimer_=_.NB((0,_.gx)(this.launchWithParams,this,null),150)};
_.v(aV,zm);aV.prototype.stop=function(){this.onSessionStopped()};
aV.prototype.setCastSession=function(){};
aV.prototype.launchWithParams=function(){_.XO(this.JSC$17424_deferredLaunchDeadlineTimer_);this.JSC$17424_deferredLaunchDeadlineTimer_=NaN;var M=vH(this.JSC$17411_screenService_.getScreens(),this.receiver_.label);if(M)iq(this,M);else this.onSessionStopped(Error("Vk"))};
aV.prototype.disposeInternal=function(){_.XO(this.JSC$17424_deferredLaunchDeadlineTimer_);this.JSC$17424_deferredLaunchDeadlineTimer_=NaN;zm.prototype.disposeInternal.call(this)};var no=function(M,d){_.nn.call(this);this.config_=d;this.JSC$17427_screenService_=M;this.JSC$17427_appId_=d.appId||"233637DE";this.JSC$17427_theme_=d.theme||"cl";this.disableDial_=d.disableCastApi||!1;this.forceMirroring_=d.forceMirroring||!1;this.JSC$17427_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.gx)(this.onReceiverAction_,this)};
_.v(no,_.nn);
no.prototype.init=function(M,d){chrome.cast.timeout.requestSession=3E4;var N=new chrome.cast.SessionRequest(this.JSC$17427_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.Q("desktop_enable_cast_connect")&&(N.androidReceiverCompatible=!0);this.disableDial_||(N.dialRequest=new chrome.cast.DialRequest("YouTube"));var R=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;M=M||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var X=(0,_.gx)(this.onReceiverUpdated_,
this);N=new chrome.cast.ApiConfig(N,(0,_.gx)(this.onSessionEstablished_,this),X,R,M);N.customDialLaunchCallback=(0,_.gx)(this.onDialLaunchRequested_,this);chrome.cast.initialize(N,(0,_.gx)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),FNr(),this.JSC$17427_screenService_.subscribe("onlineScreenChange",(0,_.gx)(this.JSC$17429_onScreenChange_,this)),this.customReceivers_=UTT(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.gx)(function(A){this.warn_("Failed to set initial custom receivers: "+(0,_.js)(A))},this)),this.publish("yt-remote-cast2-availability-change",Uv(this)),d(!0))},this),(0,_.gx)(function(A){this.warn_("Failed to initialize API: "+(0,_.js)(A));
d(!1)},this))};
no.prototype.setConnectedScreenStatus=function(M,d){uq("Setting connected screen ID: "+M+" -> "+d);if(this.JSC$17427_session_){var N=this.JSC$17427_session_.screen_;if(!M||N&&N.id!=M)uq("Unsetting old screen status: "+this.JSC$17427_session_.receiver_.friendlyName),CY(this,null)}if(M&&d){if(!this.JSC$17427_session_){M=vH(this.JSC$17427_screenService_.getScreens(),M);if(!M){uq("setConnectedScreenStatus: Unknown screen.");return}if(M.idType=="shortLived"){uq("setConnectedScreenStatus: Screen with id type to be short lived.");
return}N=uDr(this,M);N||(uq("setConnectedScreenStatus: Connected receiver not custom..."),N=new chrome.cast.Receiver(M.uuid?M.uuid:M.id,M.name),N.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(N),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.gx)(function(R){this.warn_("Failed to set initial custom receivers: "+(0,_.js)(R))},this)));
uq("setConnectedScreenStatus: new active receiver: "+N.friendlyName);CY(this,new aV(this.JSC$17427_screenService_,N),!0)}this.JSC$17427_session_.setDisplayStatus(d)}else uq("setConnectedScreenStatus: no screen.")};
var uDr=function(M,d){return d?_.Sr(M.customReceivers_,function(N){return IY(d,N.label)},M):null};
no.prototype.setLaunchParams=function(M){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17427_session_?this.JSC$17427_session_.launchWithParams(M):this.warn_("Setting connection data without a session")};
no.prototype.JSC$17429_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17427_session_?(this.JSC$17427_session_.stop(),CY(this,null)):uq("Stopping non-existing session")};
no.prototype.requestSession=function(){chrome.cast.requestSession((0,_.gx)(this.onSessionEstablished_,this),(0,_.gx)(this.onSessionRequestFailed_,this))};
no.prototype.disposeInternal=function(){this.JSC$17427_screenService_.unsubscribe("onlineScreenChange",(0,_.gx)(this.JSC$17429_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.aN(_.cy("yt.mdx.remote.debug.handlers_")||[],NUi);_.tw(this.JSC$17427_session_);_.nn.prototype.disposeInternal.call(this)};
var uq=function(M){oY("Controller",M)};
no.prototype.warn_=function(M){oY("Controller",M)};
var NUi=function(M){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(M)},Uv=function(M){return M.hasCastReceiver_||!!M.customReceivers_.length||!!M.JSC$17427_session_},CY=function(M,d,N){d!=M.JSC$17427_session_&&(_.tw(M.JSC$17427_session_),(M.JSC$17427_session_=d)?(N?M.publish("yt-remote-cast2-receiver-resumed",d.receiver_):M.publish("yt-remote-cast2-receiver-selected",d.receiver_),d.subscribe("sessionScreen",(0,_.gx)(M.onSessionScreen_,M,d)),d.subscribe("sessionFailed",
function(){return CgJ(M,d)}),d.screen_?M.publish("yt-remote-cast2-session-change",d.screen_):N&&M.JSC$17427_session_.launchWithParams(null)):M.publish("yt-remote-cast2-session-change",null))},CgJ=function(M,d){M.JSC$17427_session_==d&&M.publish("yt-remote-cast2-session-failed")};
_.F=no.prototype;_.F.onSessionScreen_=function(M,d){this.JSC$17427_session_==M&&(d||CY(this,null),this.publish("yt-remote-cast2-session-change",d))};
_.F.onReceiverAction_=function(M,d){if(!this.isDisposed())if(M)switch(M.friendlyName=chrome.cast.unescape(M.friendlyName),uq("onReceiverAction_ "+M.label+" / "+M.friendlyName+"-- "+d),d){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17427_session_)if(this.JSC$17427_session_.receiver_.label!=M.label)uq("onReceiverAction_: Stopping active receiver: "+this.JSC$17427_session_.receiver_.friendlyName),this.JSC$17427_session_.stop();else{uq("onReceiverAction_: Casting to active receiver.");this.JSC$17427_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17427_session_.screen_);break}switch(M.receiverType){case chrome.cast.ReceiverType.CUSTOM:CY(this,new aV(this.JSC$17427_screenService_,M));break;case chrome.cast.ReceiverType.DIAL:CY(this,new tp(this.JSC$17427_screenService_,M,this.JSC$17427_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:CY(this,new LY(this.JSC$17427_screenService_,M,this.config_));break;default:this.warn_("Unknown receiver type: "+M.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17427_session_&&
this.JSC$17427_session_.receiver_.label==M.label?this.JSC$17427_session_.stop():this.warn_("Stopping receiver w/o session: "+M.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.F.onDialLaunchRequested_=function(M){if(this.isDisposed())return Promise.reject(Error("Wk"));var d=M.receiver;d.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+d.friendlyName),d.receiverType=chrome.cast.ReceiverType.DIAL);var N=this.JSC$17427_session_?this.JSC$17427_session_.receiver_:null;if(!N||N.label!=d.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+d.friendlyName),Promise.reject(Error("Xk"));if(N&&N.label==d.label&&N.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17427_session_.screen_)return uq("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17427_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+N.receiverType+'" to "dial" for '+d.friendlyName);CY(this,new tp(this.JSC$17427_screenService_,d,this.JSC$17427_theme_,this.config_))}d=this.JSC$17427_session_;d.launchData_=M;d.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(M=d.launchData_.extraData||{},N=M.screenId||null,H4J(d)&&M.loungeToken?M.loungeTokenRefreshIntervalMs?M=t44(d,{name:d.receiver_.friendlyName,screenId:M.screenId,loungeToken:M.loungeToken,dialId:d.launchData_.receiver.label,screenIdType:"shortLived"},M.loungeTokenRefreshIntervalMs):(_.yD(Error("Tk`"+JSON.stringify(M))),M=Gq4(d,N)):M=Gq4(d,N)):M=fYY(d);return M};
_.F.onSessionEstablished_=function(M){var d=this;if(!this.isDisposed()&&!this.forceMirroring_){uq("New cast session ID: "+M.sessionId);var N=M.receiver;if(N.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17427_session_)if(N.receiverType==chrome.cast.ReceiverType.CAST)uq("Got resumed cast session before resumed mdx connection."),N.friendlyName=chrome.cast.unescape(N.friendlyName),CY(this,new LY(this.JSC$17427_screenService_,N,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var R=this.JSC$17427_session_.receiver_,X=vH(this.JSC$17427_screenService_.getScreens(),R.label);X&&IY(X,N.label)&&R.receiverType!=chrome.cast.ReceiverType.CAST&&N.receiverType==chrome.cast.ReceiverType.CAST&&(uq("onSessionEstablished_: manual to cast session change "+N.friendlyName),_.tw(this.JSC$17427_session_),this.JSC$17427_session_=new LY(this.JSC$17427_screenService_,N,this.config_),this.JSC$17427_session_.subscribe("sessionScreen",(0,_.gx)(this.onSessionScreen_,this,this.JSC$17427_session_)),
this.JSC$17427_session_.subscribe("sessionFailed",function(){return CgJ(d,d.JSC$17427_session_)}),this.JSC$17427_session_.launchWithParams(null));
this.JSC$17427_session_.setCastSession(M)}}};
_.F.JSC$17429_getCastSession=function(){return this.JSC$17427_session_?this.JSC$17427_session_.JSC$17413_getCastSession():null};
_.F.onSessionRequestFailed_=function(M){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.js)(M)),M.code!=chrome.cast.ErrorCode.CANCEL&&CY(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.F.onReceiverUpdated_=function(M){uq("Receiver availability updated: "+M);if(!this.isDisposed()){var d=Uv(this);this.hasCastReceiver_=M==chrome.cast.ReceiverAvailability.AVAILABLE;Uv(this)!=d&&this.publish("yt-remote-cast2-availability-change",Uv(this))}};
var UTT=function(M){var d=M.JSC$17427_screenService_.JSC$17409_getOnlineScreens(),N=M.JSC$17427_session_&&M.JSC$17427_session_.receiver_;M=_.mi(d,function(R){N&&IY(R,N.label)&&(N=null);var X=R.uuid?R.uuid:R.id,A=uDr(this,R);A?(A.label=X,A.friendlyName=R.name):(A=new chrome.cast.Receiver(X,R.name),A.receiverType=chrome.cast.ReceiverType.CUSTOM);return A},M);
N&&(N.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(N=new chrome.cast.Receiver(N.label,N.friendlyName),N.receiverType=chrome.cast.ReceiverType.CUSTOM),M.push(N));return M};
no.prototype.JSC$17429_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=UTT(this),uq("Updating custom receivers: "+(0,_.js)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.gx)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Uv(this)))};
no.prototype.setLaunchParams=no.prototype.setLaunchParams;no.prototype.setConnectedScreenStatus=no.prototype.setConnectedScreenStatus;no.prototype.stopSession=no.prototype.JSC$17429_stopSession;no.prototype.getCastSession=no.prototype.JSC$17429_getCastSession;no.prototype.requestSession=no.prototype.requestSession;no.prototype.init=no.prototype.init;no.prototype.dispose=no.prototype.dispose;var r$r=[];var xTq=function(M){M.audioTrackId=null;M.trackData=null;M.playerState=-1;M.hasPrevious=!1;M.hasNext=!1;M.playerTime_=0;M.playerTimeAt_=_.Nn();M.seekableStart_=0;M.seekableEnd_=0;M.duration_=0;M.loadedTime=0;M.liveIngestionTime_=NaN;M.isLive_=!1};
_.F=iA.prototype;
_.F.reset=function(M){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;M&&(this.index=M.index,this.listId=M.listId,this.videoId=M.videoId,this.playerState=M.playerState,this.volume=M.volume,this.muted=M.muted,this.audioTrackId=M.audioTrackId,this.trackData=M.trackData,this.hasPrevious=M.hasPrevious,this.hasNext=M.hasNext,this.playerTime_=M.playerTime,this.playerTimeAt_=M.playerTimeAt,this.seekableStart_=M.seekableStart,this.seekableEnd_=M.seekableEnd,this.duration_=M.duration,this.loadedTime=
M.loadedTime,this.liveIngestionTime_=M.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.F.stopPlayer=function(){this.index=-1;this.videoId="";xTq(this)};
_.F.isPlaying=function(){return this.playerState==1};
_.F.isBuffering=function(){return this.playerState==3};
_.F.isAdPlaying=function(){return this.playerState==1081};
var xE=function(M,d){M.playerTime_=d;M.playerTimeAt_=_.Nn()},Y9G=function(M){switch(M.playerState){case 1:case 1081:return(_.Nn()-M.playerTimeAt_)/1E3+M.playerTime_;
case -1E3:return 0}return M.playerTime_};
iA.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Nn()-this.playerTimeAt_)/1E3:0):this.duration_};
var Z4r=function(M,d,N){var R=M.videoId;M.videoId=d;M.index=N;d!=R&&xTq(M)},EOY=function(M){var d={};
d.index=M.index;d.listId=M.listId;d.videoId=M.videoId;d.playerState=M.playerState;d.volume=M.volume;d.muted=M.muted;d.audioTrackId=M.audioTrackId;d.trackData=_.wF.unsafeClone(M.trackData);d.hasPrevious=M.hasPrevious;d.hasNext=M.hasNext;d.playerTime=M.playerTime_;d.playerTimeAt=M.playerTimeAt_;d.seekableStart=M.seekableStart_;d.seekableEnd=M.seekableEnd_;d.duration=M.duration_;d.loadedTime=M.loadedTime;d.liveIngestionTime=M.liveIngestionTime_;return d};
iA.prototype.clone=function(){return new iA(EOY(this))};var YE=function(M,d){_.nn.call(this);var N=this;this.state_=0;this.connection_=M;this.contextSubscriptions_=[];this.actionQueue_=new snC;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.gx)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.gx)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.gx)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.gx)(this.onCloudviewAvailabilityChange_,this);var R=0;M?(R=M.getProxyState(),
R!=3&&(M.subscribe("proxyStateChange",this.setState_,this),MVY(this))):R=3;R!=0&&(d?this.setState_(R):_.NB(function(){N.setState_(R)},0));
(M=c$J())&&dlP(this,M);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.v(YE,_.nn);YE.prototype.getState=function(){return this.state_};
YE.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
YE.prototype.reconnect=function(){this.connection_.reconnect()};
var ZZ=function(M){return new iA(M.connection_.getPlayerContextData())};
_.F=YE.prototype;_.F.play=function(){Ev(this)?(this.castMedia_?this.castMedia_.play(null,_.wl,Nbb(this,"play")):Mz(this,"play"),RfC(this,1,Y9G(ZZ(this))),this.publish("remotePlayerChange")):dd(this,this.play)};
_.F.pause=function(){Ev(this)?(this.castMedia_?this.castMedia_.pause(null,_.wl,Nbb(this,"pause")):Mz(this,"pause"),RfC(this,2,Y9G(ZZ(this))),this.publish("remotePlayerChange")):dd(this,this.pause)};
_.F.seekTo=function(M){if(Ev(this)){if(this.castMedia_){var d=ZZ(this),N=new chrome.cast.media.SeekRequest;N.currentTime=M;d.isPlaying()||d.isBuffering()?N.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:N.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(N,_.wl,Nbb(this,"seekTo",{newTime:M}))}else Mz(this,"seekTo",{newTime:M});RfC(this,3,M);this.publish("remotePlayerChange")}else dd(this,_.B1(this.seekTo,M))};
_.F.stop=function(){if(Ev(this)){this.castMedia_?this.castMedia_.stop(null,_.wl,Nbb(this,"stopVideo")):Mz(this,"stopVideo");var M=ZZ(this);M.stopPlayer();Nz(this,M);this.publish("remotePlayerChange")}else dd(this,this.stop)};
_.F.setVolume=function(M,d){if(Ev(this)){var N=ZZ(this);if(this.castSession_){if(N.volume!=M){var R=Math.round(M)/100;this.castSession_.setReceiverVolumeLevel(R,(0,_.gx)(function(){ri("set receiver volume: "+R)},this),(0,_.gx)(function(){this.warn_("failed to set receiver volume.")},this))}N.muted!=d&&this.castSession_.setReceiverMuted(d,(0,_.gx)(function(){ri("set receiver muted: "+d)},this),(0,_.gx)(function(){this.warn_("failed to set receiver muted.")},this))}else{var X={volume:M,
muted:d};N.volume!=-1&&(X.delta=M-N.volume);Mz(this,"setVolume",X)}N.muted=d;N.volume=M;Nz(this,N)}else dd(this,_.B1(this.setVolume,M,d))};
_.F.setAudioTrack=function(M,d){Ev(this)?(d=d.getLanguageInfo().getId(),Mz(this,"setAudioTrack",{videoId:M,audioTrackId:d}),M=ZZ(this),M.audioTrackId=d,Nz(this,M)):dd(this,_.B1(this.setAudioTrack,M,d))};
_.F.addVideo=function(M){Ev(this)?Mz(this,"addVideo",{videoId:M}):dd(this,_.B1(this.addVideo,M))};
_.F.addPlaylist=function(M){Ev(this)?Mz(this,"addVideos",{listId:M}):dd(this,_.B1(this.addPlaylist,M))};
_.F.addVideos=function(M){M.length==0?this.warn_("Ignore add videos request due to empty list"):Ev(this)?Mz(this,"addVideos",{videoIds:M.join(",")}):dd(this,_.B1(this.addVideos,M))};
_.F.JSC$17439_removeVideo=function(M){Ev(this)?Mz(this,"removeVideo",{videoId:M}):dd(this,_.B1(this.JSC$17439_removeVideo,M))};
_.F.JSC$17439_insertVideo=function(M){Ev(this)?Mz(this,"insertVideo",{videoId:M}):dd(this,_.B1(this.JSC$17439_insertVideo,M))};
_.F.playVideo=function(M,d,N,R,X,A,l){R=R===void 0?null:R;X=X===void 0?null:X;A=A===void 0?null:A;l=l===void 0?null:l;var k=ZZ(this),T={videoId:M};N!==void 0&&(T.currentIndex=N);Z4r(k,M,N||0);d!==void 0&&(xE(k,d),T.currentTime=d);R&&(T.listId=R);X&&(T.playerParams=X);A&&(T.clickTrackingParams=A);l&&(T.locationInfo=(0,_.js)(l));Mz(this,"setPlaylist",T);R||Nz(this,k)};
_.F.nextVideo=function(M,d){if(Ev(this)){if(M&&d){var N=ZZ(this);Z4r(N,M,d);Nz(this,N)}Mz(this,"next")}else dd(this,_.B1(this.nextVideo,M,d))};
_.F.clearPlaylist=function(){if(Ev(this)){Mz(this,"clearPlaylist");var M=ZZ(this);M.reset();Nz(this,M);this.publish("remotePlayerChange")}else dd(this,this.clearPlaylist)};
_.F.dispose=function(){if(this.state_!=3){var M=this.state_;this.state_=3;this.publish("proxyStateChange",M,this.state_)}_.nn.prototype.dispose.call(this)};
_.F.disposeInternal=function(){XA4(this);this.connection_=null;this.actionQueue_.clear();dlP(this,null);_.nn.prototype.disposeInternal.call(this)};
var MVY=function(M){_.Hy("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(d){this.contextSubscriptions_.push(this.connection_.subscribe(d,_.B1(this.onProxyEvent_,d),this))},M)},XA4=function(M){_.Hy(M.contextSubscriptions_,function(d){this.connection_.unsubscribeByKey(d)},M);
M.contextSubscriptions_.length=0},Ev=function(M){return M.getState()==1},dd=function(M,d){M.actionQueue_.getCount()<50&&M.actionQueue_.enqueue(d)},RfC=function(M,d,N){var R=ZZ(M);
xE(R,N);R.playerState!=-1E3&&(R.playerState=d);Nz(M,R)},Mz=function(M,d,N){M.connection_.sendMessage(d,N)},Nz=function(M,d){XA4(M);
M.connection_.setPlayerContextData(EOY(d));MVY(M)};
YE.prototype.setState_=function(M){if((M!=this.state_||M==2)&&this.state_!=3&&M!=0){var d=this.state_;this.state_=M;this.publish("proxyStateChange",d,M);if(M==1)for(;!this.actionQueue_.isEmpty();)M=this.actionQueue_,h0P(M),M.front_.pop().apply(this);else M==3&&this.dispose()}};
YE.prototype.onProxyEvent_=function(M,d){this.publish(M,d)};
var dlP=function(M,d){M.castSession_&&(M.castSession_.removeUpdateListener(M.boundCastStatusListener_),M.castSession_.removeMediaListener(M.boundCastMediaListener_),M.onCastMediaChange_(null));M.castSession_=d;if(M.castSession_&&(ri("Setting cast session: "+M.castSession_.sessionId),M.castSession_.addUpdateListener(M.boundCastStatusListener_),M.castSession_.addMediaListener(M.boundCastMediaListener_),M.castSession_.media.length))M.onCastMediaChange_(M.castSession_.media[0])};
YE.prototype.onCastStatusUpdate_=function(M){if(!M)this.onCastMediaChange_(null),dlP(this,null);else if(this.castSession_.receiver.volume){M=this.castSession_.receiver.volume;var d=ZZ(this),N=Math.round(100*M.level||0);if(d.volume!=N||d.muted!=M.muted)ri("Cast volume update: "+M.level+(M.muted?" muted":"")),d.volume=N,d.muted=!!M.muted,Nz(this,d)}};
YE.prototype.onCastMediaChange_=function(M){ri("Cast media: "+!!M);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=M)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),FMT(this),this.publish("remotePlayerChange")};
var FMT=function(M){var d=M.castMedia_.media,N=M.castMedia_.customData;if(d&&N){var R=ZZ(M);d.contentId!=R.videoId&&ri("Cast changing video to: "+d.contentId);R.videoId=d.contentId;R.playerState=N.playerState;xE(R,M.castMedia_.getEstimatedTime());Nz(M,R)}else ri("No cast media video. Ignoring state update.")};
YE.prototype.onCastMediaUpdate_=function(M){if(M)FMT(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
YE.prototype.onCloudviewAvailabilityChange_=function(){var M=c$J();M&&dlP(this,M)};
YE.prototype.warn_=function(M){oY("CP",M)};
var Nbb=function(M,d,N){return(0,_.gx)(function(R){this.warn_("Failed to "+d+" with cast v2 channel. Error code: "+R.code);R.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+d+" using MDx browser channel."),Mz(this,d,N))},M)};var XA=function(M,d,N,R){R=R===void 0?!1:R;_.nn.call(this);var X=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$17446_http_=M;this.enableConnectWithInitialState_=R;this.listeners_.push(_.LA(window,"beforeunload",function(){X.JSC$17449_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new iA;this.currentScreenId_=d.id;this.currentScreenIdType_=d.idType;this.channelService=dii(this.JSC$17446_http_,N,this.JSC$17449_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){AKq(X)});
this.channelService.listen("channelClosed",function(){Ri("Channel closed");isNaN(X.connectTimerId_)?OE(!0):OE();X.dispose()});
this.channelService.listen("channelError",function(A){OE();isNaN(X.getReconnectTimeout_())?(A==1&&X.currentScreenIdType_=="shortLived"&&X.publish("browserChannelAuthError",A),Ri("Channel error: "+A+" without reconnection"),X.dispose()):(X.reconnecting_=!0,Ri("Channel error: "+A+" with reconnection in "+X.getReconnectTimeout_()+" ms"),VVY(X,2))});
this.channelService.listen("channelMessage",function(A){lpe(X,A)});
this.channelService.setLoungeToken(d.token);this.subscribe("remoteQueueChange",function(){var A=X.playerContext_.videoId;iLr()&&_.X5("yt-remote-session-video-id",A)})};
_.v(XA,_.nn);
XA.prototype.connect=function(M,d){if(d){var N=d.listId,R=d.videoId,X=d.videoIds,A=d.playerParams,l=d.clickTrackingParams,k=d.index,T={videoId:R},W=d.currentTime,w=d.locationInfo;d=d.loopMode;W!==void 0&&(T.currentTime=W<=5?0:W);A&&(T.playerParams=A);w&&(T.locationInfo=w);l&&(T.clickTrackingParams=l);N&&(T.listId=N);X&&X.length>0&&(T.videoIds=X.join(","));k!==void 0&&(T.currentIndex=k);this.enableConnectWithInitialState_&&(T.loopMode=d||"LOOP_MODE_OFF");N&&(this.playerContext_.listId=N);this.playerContext_.videoId=
R;this.playerContext_.index=k||0;this.playerContext_.state=3;xE(this.playerContext_,W);this.autoplayMode_="UNSUPPORTED";N=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Ri("Connecting with "+N+" and params: "+(0,_.js)(T));this.channelService.connect({method:N,params:(0,_.js)(T)},M,aIP())}else Ri("Connecting without params"),this.channelService.connect({},M,aIP());$l9(this)};
XA.prototype.setLoungeToken=function(M){this.channelService.setLoungeToken(M)};
XA.prototype.dispose=function(){this.isDisposed()||(_.fE("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),VVY(this,3));_.nn.prototype.dispose.call(this)};
XA.prototype.disposeInternal=function(){BbY(this);knq(this);Tb$(this);_.XO(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.XO(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.xXN(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.nn.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Dli=function(M){return _.Sr(M.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"})},Ri=function(M){oY("conn",M)},VVY=function(M,d){M.publish("proxyStateChange",d)},$l9=function(M){M.connectTimerId_=_.NB(function(){Ri("Connecting timeout");
M.JSC$17449_disconnect_(1)},2E4)},BbY=function(M){_.XO(M.connectTimerId_);
M.connectTimerId_=NaN},Tb$=function(M){_.XO(M.reconnectedCheckScreenTimeout_);
M.reconnectedCheckScreenTimeout_=NaN},gHJ=function(M){knq(M);
M.playingSyncTimerId_=_.NB(function(){FA(M,"getNowPlaying")},2E4)},knq=function(M){_.XO(M.playingSyncTimerId_);
M.playingSyncTimerId_=NaN},AKq=function(M){Ri("Channel opened");
M.reconnecting_&&(M.reconnecting_=!1,Tb$(M),M.reconnectedCheckScreenTimeout_=_.NB(function(){Ri("Timing out waiting for a screen.");M.JSC$17449_disconnect_(1)},15E3))},wA$=function(M,d){var N=null;
if(d){var R=Dli(M);R&&(N={clientName:R.clientName,deviceMake:R.brand,deviceModel:R.model,osVersion:R.osVersion})}_.fE("yt.mdx.remote.remoteClient_",N);d&&(BbY(M),Tb$(M));N=M.channelService.isChannelOpened()&&isNaN(M.connectTimerId_);d==N?d&&(VVY(M,1),FA(M,"getSubtitlesTrack")):d?(M.getOtherConnectedRemoteId_()&&M.playerContext_.reset(),VVY(M,1),FA(M,"getNowPlaying"),WMP(M)):M.JSC$17449_disconnect_(1)},pAJ=function(M,d){var N=d.params.videoId;
delete d.params.videoId;N==M.playerContext_.videoId&&(_.wF.isEmpty(d.params)?M.playerContext_.trackData=null:M.playerContext_.trackData=d.params,M.publish("remotePlayerChange"))},ml$=function(M,d,N){var R=d.params.videoId||d.params.video_id,X=parseInt(d.params.currentIndex,10);
M.playerContext_.listId=d.params.listId||M.playerContext_.listId;Z4r(M.playerContext_,R,X);M.publish("remoteQueueChange",N)},hfC=function(M,d){d.params=d.params||{};
ml$(M,d,"NOW_PLAYING_MAY_CHANGE");M.onStateChange_(d);M.publish("autoplayDismissed")};
XA.prototype.onStateChange_=function(M){var d=parseInt(M.params.currentTime||M.params.current_time,10);xE(this.playerContext_,isNaN(d)?0:d);d=parseInt(M.params.state,10);d=isNaN(d)?-1:d;d==-1&&this.playerContext_.playerState==-1E3&&(d=-1E3);this.playerContext_.playerState=d;d=Number(M.params.loadedTime);this.playerContext_.loadedTime=isNaN(d)?0:d;d=Number(M.params.duration);this.playerContext_.duration_=isNaN(d)?0:d;d=this.playerContext_;var N=Number(M.params.liveIngestionTime);d.liveIngestionTime_=
N;d.isLive_=isNaN(N)?!1:!0;d=this.playerContext_;N=Number(M.params.seekableStartTime);M=Number(M.params.seekableEndTime);d.seekableStart_=isNaN(N)?0:N;d.seekableEnd_=isNaN(M)?0:M;this.playerContext_.playerState==1?gHJ(this):knq(this);this.publish("remotePlayerChange")};
XA.prototype.onAdStateChange_=function(M){if(this.playerContext_.playerState!=-1E3){var d=1085;switch(parseInt(M.params.adState,10)){case 1:d=1081;break;case 2:d=1084;break;case 0:d=1083}this.playerContext_.playerState=d;M=parseInt(M.params.currentTime,10);xE(this.playerContext_,isNaN(M)?0:M);this.publish("remotePlayerChange")}};
var QhT=function(M,d){var N=d.params.muted=="true";M.playerContext_.volume=parseInt(d.params.volume,10);M.playerContext_.muted=N;M.publish("remotePlayerChange")},qnd=function(M,d){M.autoplayVideoId_=d.params.videoId;
M.publish("nowAutoplaying",parseInt(d.params.timeout,10))},IpC=function(M,d){M.autoplayVideoId_=d.params.videoId||null;
M.publish("autoplayUpNext",M.autoplayVideoId_)},vHb=function(M,d){M.autoplayMode_=d.params.autoplayMode;
M.publish("autoplayModeChange",M.autoplayMode_);M.autoplayMode_=="DISABLED"&&M.publish("autoplayDismissed")},O$$=function(M,d){var N=d.params.hasNext=="true";
M.playerContext_.hasPrevious=d.params.hasPrevious=="true";M.playerContext_.hasNext=N;M.publish("previousNextChange")};
XA.prototype.isCapabilitySupportedOnConnectedDevices_=function(M){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var d=_.V(this.connectedDevices_),N=d.next();!N.done;N=d.next())if(!N.value.capabilities.has(M))return!1;return!0};
var lpe=function(M,d){d=d.message;d.params?Ri("Received: action="+d.action+", params="+(0,_.js)(d.params)):Ri("Received: action="+d.action+" {}");switch(d.action){case "loungeStatus":d=(0,_.mY)(d.params.devices);M.connectedDevices_=_.mi(d,function(R){return new eA(R)});
d=!!_.Sr(M.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
wA$(M,d);d=M.isCapabilitySupportedOnConnectedDevices_("mlm");M.publish("multiStateLoopEnabled",d);break;case "loungeScreenDisconnected":V6q(M.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
wA$(M,!1);break;case "remoteConnected":var N=new eA((0,_.mY)(d.params.device));_.Sr(M.connectedDevices_,function(R){return R.equals(N)})||_.mpq(M.connectedDevices_,N);
break;case "remoteDisconnected":N=new eA((0,_.mY)(d.params.device));V6q(M.connectedDevices_,function(R){return R.equals(N)});
break;case "gracefulDisconnect":break;case "playlistModified":ml$(M,d,"QUEUE_MODIFIED");break;case "nowPlaying":hfC(M,d);break;case "onStateChange":M.onStateChange_(d);break;case "onAdStateChange":M.onAdStateChange_(d);break;case "onVolumeChanged":QhT(M,d);break;case "onSubtitlesTrackChanged":pAJ(M,d);break;case "nowAutoplaying":qnd(M,d);break;case "autoplayDismissed":M.publish("autoplayDismissed");break;case "autoplayUpNext":IpC(M,d);break;case "onAutoplayModeChanged":vHb(M,d);break;case "onHasPreviousNextChanged":O$$(M,
d);break;case "requestAssistedSignIn":M.publish("assistedSignInRequested",d.params.authCode);break;case "onLoopModeChanged":M.publish("loopModeChange",d.params.loopMode);break;default:Ri("Unrecognized action: "+d.action)}};
_.F=XA.prototype;_.F.getProxyState_=function(){var M=3;this.isDisposed()||(M=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(M=1):M=2);return M};
_.F.JSC$17449_disconnect_=function(M){Ri("Disconnecting with "+M);_.fE("yt.mdx.remote.remoteClient_",null);BbY(this);this.publish("beforeDisconnect",M);M==1&&OE();this.channelService.disconnect(M);this.dispose()};
_.F.getPlayerContextData_=function(){var M=this.playerContext_;this.clientVideoId_&&(M=this.playerContext_.clone(),Z4r(M,this.clientVideoId_,M.index));return EOY(M)};
_.F.setPlayerContextData_=function(M){var d=this,N=new iA(M);N.videoId&&N.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=N.videoId,_.XO(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.NB(function(){if(d.clientVideoId_){var X=d.clientVideoId_;d.clientVideoId_=null;d.playerContext_.videoId!=X&&FA(d,"getNowPlaying")}},5E3));
var R=[];this.playerContext_.listId==N.listId&&this.playerContext_.videoId==N.videoId&&this.playerContext_.index==N.index||R.push("remoteQueueChange");this.playerContext_.playerState==N.playerState&&this.playerContext_.volume==N.volume&&this.playerContext_.muted==N.muted&&Y9G(this.playerContext_)==Y9G(N)&&(0,_.js)(this.playerContext_.trackData)==(0,_.js)(N.trackData)||R.push("remotePlayerChange");this.playerContext_.reset(M);_.Hy(R,function(X){this.publish(X)},this)};
_.F.getOtherConnectedRemoteId_=function(){var M=this.channelService.getDeviceId(),d=_.Sr(this.connectedDevices_,function(N){return N.type=="REMOTE_CONTROL"&&N.id!=M});
return d?d.id:""};
_.F.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.F.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.F.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.F.JSC$17449_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var WMP=function(M){_.XO(M.idleDisconnectTimerId_);M.idleDisconnectTimerId_=_.NB(function(){M.JSC$17449_disconnect_(1)},864E5)},FA=function(M,d,N){N?Ri("Sending: action="+d+", params="+(0,_.js)(N)):Ri("Sending: action="+d);
M.channelService.sendMessage(d,N)};
XA.prototype.sendMessageWithUserAction_=function(M,d){FA(this,M,d);WMP(this)};
XA.prototype.JSC$17449_getXsrfToken_=function(){var M=_.BJ.get("SAPISID","")||_.BJ.get("__Secure-1PAPISID",void 0)||"",d=_.BJ.get("__Secure-3PAPISID","")||"";if(!M&&!d)return"";M=_.UT(_.T5(M),2);d=_.UT(_.T5(d),2);return _.UT(_.T5(","+M+","+d),2)};
XA.prototype.subscribe=XA.prototype.subscribe;XA.prototype.unsubscribeByKey=XA.prototype.unsubscribeByKey;XA.prototype.getProxyState=XA.prototype.getProxyState_;XA.prototype.disconnect=XA.prototype.JSC$17449_disconnect_;XA.prototype.getPlayerContextData=XA.prototype.getPlayerContextData_;XA.prototype.setPlayerContextData=XA.prototype.setPlayerContextData_;XA.prototype.getOtherConnectedRemoteId=XA.prototype.getOtherConnectedRemoteId_;XA.prototype.getReconnectTimeout=XA.prototype.getReconnectTimeout_;
XA.prototype.getAutoplayMode=XA.prototype.getAutoplayMode_;XA.prototype.getAutoplayVideoId=XA.prototype.getAutoplayVideoId_;XA.prototype.reconnect=XA.prototype.JSC$17449_reconnect_;XA.prototype.sendMessage=XA.prototype.sendMessageWithUserAction_;XA.prototype.getXsrfToken=XA.prototype.JSC$17449_getXsrfToken_;XA.prototype.isCapabilitySupportedOnConnectedDevices=XA.prototype.isCapabilitySupportedOnConnectedDevices_;var jh4=function(M){yT.call(this,"ScreenServiceProxy");this.instance_=M;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.gx)(this.JSC$17452_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.gx)(this.onOnlineScreenChange_,this)))};
_.v(jh4,yT);_.F=jh4.prototype;_.F.getScreens=function(M){return this.instance_.$_gs(M)};
_.F.contains=function(M){return!!this.instance_.$_c(M)};
_.F.get=function(M){return this.instance_.$_g(M)};
_.F.start=function(){this.instance_.$_st()};
_.F.add=function(M,d,N){this.instance_.$_a(M,d,N)};
_.F.remove=function(M,d,N){this.instance_.$_r(M,d,N)};
_.F.updateName=function(M,d,N,R){this.instance_.$_un(M,d,N,R)};
_.F.disposeInternal=function(){for(var M=this.subscriptionKeys_.length,d=0;d<M;++d)this.instance_.$_ubk(this.subscriptionKeys_[d]);this.subscriptionKeys_.length=0;this.instance_=null;yT.prototype.disposeInternal.call(this)};
_.F.JSC$17452_onScreenChange_=function(){this.publish("screenChange")};
_.F.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
SW.prototype.$_st=SW.prototype.start;SW.prototype.$_gspc=SW.prototype.JSC$17409_getScreenByPairingCode;SW.prototype.$_gsppc=SW.prototype.JSC$17409_getScreenByPollingPairingCode;SW.prototype.$_c=SW.prototype.contains;SW.prototype.$_g=SW.prototype.get;SW.prototype.$_a=SW.prototype.add;SW.prototype.$_un=SW.prototype.updateName;SW.prototype.$_r=SW.prototype.remove;SW.prototype.$_gs=SW.prototype.getScreens;SW.prototype.$_gos=SW.prototype.JSC$17409_getOnlineScreens;SW.prototype.$_s=SW.prototype.subscribe;
SW.prototype.$_ubk=SW.prototype.unsubscribeByKey;var JK9=function(M){xwe();if(!jW||!jW.get("yt-remote-disable-remote-module-for-dev")){M=_.rK("MDX_CONFIG")||M;X5Y();LYe();An||(An=new QT(M?M.loungeApiHost:void 0),YuY()&&(An.basePath="/api/loungedev"));V5||(V5=_.cy("yt.mdx.remote.deferredProxies_")||[],_.fE("yt.mdx.remote.deferredProxies_",V5));shP();var d=li();if(!d){var N=new SW(An,M?M.disableAutomaticScreenCache||!1:!1);_.fE("yt.mdx.remote.screenService_",N);d=li();var R={};M&&(R={appId:M.appId,disableDial:M.disableDial,theme:M.theme,loadCastApiSetupScript:M.loadCastApiSetupScript,
disableCastApi:M.disableCastApi,enableDialLoungeToken:M.enableDialLoungeToken,enableCastLoungeToken:M.enableCastLoungeToken,forceMirroring:M.forceMirroring});_.fE("yt.mdx.remote.enableConnectWithInitialState_",M?M.enableConnectWithInitialState||!1:!1);Pe4(N,function(A){A?$6()&&zJb($6(),"YouTube TV"):N.subscribe("onlineScreenChange",function(){Uw("yt-remote-receiver-availability-change")})},R)}if(M&&!_.cy("yt.mdx.remote.initialized_")){_.fE("yt.mdx.remote.initialized_",!0);
Br("Initializing: "+(0,_.js)(M));k6.push(_.Zx("yt-remote-cast2-api-ready",function(){Uw("yt-remote-api-ready")}));
k6.push(_.Zx("yt-remote-cast2-availability-change",function(){Uw("yt-remote-receiver-availability-change")}));
k6.push(_.Zx("yt-remote-cast2-receiver-selected",function(){PWD();Uw("yt-remote-auto-connect","cast-selector-receiver")}));
k6.push(_.Zx("yt-remote-cast2-receiver-resumed",function(){Uw("yt-remote-receiver-resumed","cast-selector-receiver")}));
k6.push(_.Zx("yt-remote-cast2-session-change",oHP));k6.push(_.Zx("yt-remote-connection-change",function(A){A?zJb($6(),"YouTube TV"):rKq()||(zJb(null,null),J$i())}));
k6.push(_.Zx("yt-remote-cast2-session-failed",function(){Uw("yt-remote-connection-failed")}));
R=KMT();M.isAuto&&(R.id+="#dial");var X=M.capabilities||[];_.Q("desktop_enable_autoplay")&&X.push("atp");X.length>0&&(R.capabilities=X);R.name=M.device;R.app=M.app;(M=M.theme)&&(R.theme=M);Br(" -- with channel params: "+(0,_.js)(R));R?(_.X5("yt-remote-session-app",R.app),_.X5("yt-remote-session-name",R.name)):(_.AK("yt-remote-session-app"),_.AK("yt-remote-session-name"));_.fE("yt.mdx.remote.channelParams_",R);d.start();$6()||yKC()}}},Sn9=function(){var M=li().instance_.$_gos();
var d=cK4();d&&TO()&&(egD(M,d)||M.push(d));return bLG(M)},zfd=function(){var M=Sn9(),d=cK4();
d||(d=rKq());return _.Sr(M,function(N){return d&&IY(d,N.key)?!0:!1})},cK4=function(){var M=$6();
if(!M)return null;var d=li().getScreens();return vH(d,M)},oHP=function(M){Br("remote.onCastSessionChange_: "+bbP(M));
if(M){var d=cK4();d&&d.id==M.id?(zJb(d.id,"YouTube TV"),M.idType=="shortLived"&&(M=M.token)&&(d=TO())&&d.setLoungeToken(M)):(d&&b$C(),efd(M,1))}else TO()&&b$C()},b$C=function(){SNr()?HH().stopSession():eW("stopSession called before API ready.");
var M=TO();M&&(M.disconnect(1),H$Y(null))},nHr=function(){var M=TO();
return M&&M.getProxyState()!=3?new YE(TO(),void 0):null},Br=function(M){oY("remote",M)},li=function(){if(!i$G){var M=_.cy("yt.mdx.remote.screenService_");
i$G=M?new jh4(M):null}return i$G},$6=function(){return _.cy("yt.mdx.remote.currentScreenId_")},fpd=function(M){_.fE("yt.mdx.remote.currentScreenId_",M)},PWD=function(){_.fE("yt.mdx.remote.connectData_",null)},TO=function(){return _.cy("yt.mdx.remote.connection_")},H$Y=function(M){var d=TO();
PWD();M||fpd("");_.fE("yt.mdx.remote.connection_",M);V5&&(_.Hy(V5,function(N){N(M)}),V5.length=0);
d&&!M?Uw("yt-remote-connection-change",!1):!d&&M&&Uw("yt-remote-connection-change",!0)},rKq=function(){var M=iLr();
if(!M)return null;var d=li();if(!d)return null;d=d.getScreens();return vH(d,M)},efd=function(M,d){fpd(M.id);
M=new XA(An,M,KMT(),_.cy("yt.mdx.remote.enableConnectWithInitialState_")||!1);M.connect(d,_.cy("yt.mdx.remote.connectData_"));M.subscribe("beforeDisconnect",function(N){Uw("yt-remote-before-disconnect",N)});
M.subscribe("beforeDispose",function(){TO()&&H$Y(null)});
M.subscribe("browserChannelAuthError",function(){var N=cK4();N&&N.idType=="shortLived"&&(SNr()?HH().handleBrowserChannelAuthError():eW("refreshLoungeToken called before API ready."))});
H$Y(M)},yKC=function(){var M=rKq();
M?(Br("Resume connection to: "+bbP(M)),efd(M,0)):(OE(),J$i(),Br("Skipping connecting because no session screen found."))},An=null,V5=null,i$G=null,shP=function(){var M=KMT();
if(_.wF.isEmpty(M)){M=nPi();var d=_.F5("yt-remote-session-name")||"",N=_.F5("yt-remote-session-app")||"";M={device:"REMOTE_CONTROL",id:M,name:d,app:N,mdxVersion:3};M.authuser=String(_.rK("SESSION_INDEX","0"));(d=_.rK("DELEGATED_SESSION_ID"))&&(M.pageId=String(d));_.fE("yt.mdx.remote.channelParams_",M)}},KMT=function(){return _.cy("yt.mdx.remote.channelParams_")||{}},k6=[];var LMT=new _.Pf("yt-menu"),tV4=function(){},apr=function(M,d,N){M=d=="right-click"?N.rightClickMenuPopupHint:N.menuPopupHint;
if(!(GnT(d)>10))return d=d||"default",LMT.set(d+"-impression",GnT(d)+1),M},GnT=function(M){return parseInt(LMT.get((M||"default")+"-impression")||0,10)};
_.dP(tV4);var UlC=function(){this.contexts_=new WeakMap;this.JSC$17458_networkService_=this.activeContext_=null},u5J=function(M,d,N){var R=M.contexts_.get(d);
R||(R=new RtY(M.JSC$17458_networkService_),M.contexts_.set(d,R));M.activeContext_=R;N&&M.activeContext_.reset();M.activeContext_.start();return M.activeContext_};var D_=function(){};
D_.prototype.enqueue=function(){var M=this,d;return _.B(function(N){if(M.isCounterfactual())return(d=M.getCounterfactualData())&&M.shouldLogCounterfactualImpression()&&M.sendImpressionEndpoints(d),N.return();M.doEnqueue();_.Vy(N)})};
D_.prototype.sendImpressionEndpoints=function(M){_.ch.getInstance().triggerOptionalAction("yt-service-request",{},M[0])};var gd=function(M,d){this.renderer=M;this.page=d};
_.v(gd,D_);gd.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
gd.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
gd.prototype.shouldLogCounterfactualImpression=function(){return!0};
gd.prototype.doEnqueue=function(){var M=_.Hi(this.page);M&&M.pause();this.renderer.impressionCommand&&_.ch.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Kx(_.ch.getInstance(),[this.renderer.promoCommand],this.page)};var CWd=function(M,d){this.renderer=M;this.resolver=_.KO();this.JSC$17470_enforcementCounter=new _.Vzt;d?this.JSC$17470_playerManager=_.Hi(d):this.JSC$17470_playerManager=null;_.X8(1,!0)};
_.v(CWd,D_);_.F=CWd.prototype;_.F.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var M=[];this.renderer.impressionEndpoints.forEach(function(d){(d=_.ht(d))&&M.push(d)});
return M}};
_.F.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.F.shouldLogCounterfactualImpression=function(){var M=_.Chv();M?(this.JSC$17470_enforcementCounter.increment("POPUP"),_.X8(3)):_.X8(2);return M};
_.F.cancel=function(){this.resolver.promise.cancel()};
_.F.doEnqueue=function(){var M=this;_.Chv()?(this.JSC$17470_enforcementCounter.increment("POPUP"),_.X8(3),xl4(this)):this.JSC$17470_playerManager?(this.resolver.promise.then(function(){xl4(M)}),Yn4(this.resolver,this.JSC$17470_playerManager)):_.X8(2)};
var Yn4=function(M,d){var N=_.KO();d.getPlayerPromise().then(function(R){N.resolve(R)});
N.promise.then(function(R){R.addEventListener("onAbnormalityDetected",M.resolve);_.Ie(M.promise,function(){R.removeEventListener("onAbnormalityDetected",M.resolve)})});
M.promise.thenCatch(function(){N.promise.cancel()})},xl4=function(M){_.X8(3);
var d={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:M.renderer}};d=_.ch.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{});Promise.all(d).then(function(){Z$d();M.JSC$17470_playerManager&&M.JSC$17470_playerManager.pause()})},Z$d=function(){ax9(function(M,d){_.tw4(M,d);
M===0?_.X8(7):_.X8(4)})};var EHY=function(M,d){this.renderer=M;this.page=d;this.resolver=_.KO()};
_.v(EHY,D_);_.F=EHY.prototype;_.F.cancel=function(){this.resolver.promise.cancel()};
_.F.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.F.isCounterfactual=function(){return!this.renderer.isVisible};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var M=this;this.resolver.promise.then(function(){var N={popup:{mealbarPromoRenderer:M.renderer},popupType:"MEALBAR"};_.ch.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:N},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var d=_.Hi(this.page);d&&M$P(this.resolver,d)}break;default:this.resolver.resolve()}};
var M$P=function(M,d){var N=_.KO();d.getPlayerPromise().then(function(R){N.resolve(R)});
N.promise.then(function(R){R.addEventListener("onAdEnd",M.resolve);_.Ie(M.promise,function(){R.removeEventListener("onAdEnd",M.resolve)})});
M.promise.thenCatch(function(){N.promise.cancel()})};var dhP=function(M,d){this.renderer=M;this.page=d};
_.v(dhP,D_);_.F=dhP.prototype;_.F.cancel=function(){this.JSC$17478_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17478_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17478_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.F.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.F.isCounterfactual=function(){return!this.renderer.isVisible};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var M=this,d,N;((d=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(N=d.playbackUpsellDialogTriggerConditionData)==null?void 0:N.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17478_downloadedVideosCountSelectorUnsubscriber=_.kO(_.iY(),iAT,function(R,X){R>X&&(NQd(M),M.cancel())}):NQd(this)};
var NQd=function(M){var d={popup:{upsellDialogRenderer:M.renderer},popupType:"MODAL"};_.ch.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:d},{});(M=_.Hi(M.page))&&M.pause()};var Wr={},RAG=(Wr.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Wr.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Wr.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Wr.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Wr.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Wr.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Wr.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Wr),XGi=function(M,d){this.renderer=M;this.targetManager=
d};
_.v(XGi,D_);_.F=XGi.prototype;_.F.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17485_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17485_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17485_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.F.getCounterfactualData=function(){if(this.isCounterfactual()){var M;return(M=this.renderer.promoConfig)==null?void 0:M.impressionEndpoints}};
_.F.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.F.shouldLogCounterfactualImpression=function(){return!0};
_.F.doEnqueue=function(){var M=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17485_downloadedVideosCountSelectorUnsubscriber=_.kO(_.iY(),iAT,function(d,N){M.renderer.targetId&&d>N&&(ctP(M.targetManager,M.renderer.targetId,Fq4(M)),M.cancel())});
break;default:ctP(this.targetManager,this.renderer.targetId,Fq4(this))}};
var Fq4=function(M){var d;if((d=M.renderer.suggestedPosition)==null?0:d.type)var N=RAG[M.renderer.suggestedPosition.type];N||(N="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:M.renderer},popupType:"HINT",position:N}}};var Asi=function(){this.previousPage=null},V$9;
Asi.prototype.registerPromoCommand=function(M,d){ldb(this,void 0,void 0,_.q(M.roadblock,O99),void 0,void 0,d)};
var ldb=function(M,d,N,R,X,A,l){M.previousPage!==l&&M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel();M.previousPage=l;X?(M.pendingEnforcementPromo&&M.pendingEnforcementPromo.cancel(),M.pendingEnforcementPromo=new CWd(X,l),M.pendingEnforcementPromo.enqueue()):A?(M.pendingCommandWrapperPromo=new gd(A,l),M.pendingCommandWrapperPromo.enqueue()):R?(M.pendingRoadblockPromo&&M.pendingRoadblockPromo.cancel(),M.pendingRoadblockPromo=new dhP(R,l),M.pendingRoadblockPromo.enqueue()):d?(M.pendingMealbarPromo&&
M.pendingMealbarPromo.cancel(),M.pendingMealbarPromo=new EHY(d,l),M.pendingMealbarPromo.enqueue()):N&&(M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel(),M.pendingTooltipPromo=new XGi(N,_.Nl()),M.pendingTooltipPromo.enqueue())},$hY=function(){V$9||(V$9=new Asi);
return V$9};var ibi=!1;var b6P=function(M,d){var N=_.rK("SESSION_INDEX");this.actionToken_=M;this.commonToken_=d;this.sessionIndex_=N},z7i=function(M){var d=_.KO(),N=_.cy("payments.business.integration.bootstrap"),R=_.cy("payments.business.integration"),X=R.Style.create().withMaterialDesignStyle(),A=R.mashupMode.popup("instrument-manager");
N.asMashupMode(A).usingUserIndex(M.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(X).inStandaloneContext(R.standaloneContextAuthId.forUserId()).instrumentManager(M.actionToken_,M.commonToken_.length>0?M.commonToken_:void 0,function(l){var k=l.instrumentId;k?d.resolve(k):(k=_.cy("payments.business.integration.scenario.InstrumentManager"),d.reject(l.errorCode&&l.errorCode===k.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(l){_.yD(l);
d.reject("instrumentManagerLoadError")});
return d.promise};var Gm=function(M,d,N){this.payloadName="transactionFlowFailed";this.payload={errorType:M,serializedTransactionFlowLoggingParams:d,isUserDismiss:N===void 0?!1:N}};
_.fE("yt.ypc.shared.YpcTransactionFlowError",Gm);var wd=function(){return _.MS.apply(this,arguments)||this};
_.v(wd,_.MS);wd.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
wd.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
wd.prototype.onErrorMessageDismiss=wd.prototype.onErrorMessageDismiss;_.G([_.H({readOnly:!0,observer:"errorRendererChanged"}),_.a("design:type",Object)],wd.prototype,"errorRenderer",void 0);_.G([_.C3("yt-live-chat-error-message-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wd.prototype,"onErrorMessageDismiss",null);wd=_.G([_.d4()],wd);var BQT=[wd.prototype];var kcY;var TQ4;var Dhr=new _.Pf("yt-live-chat"),gyD=new Map;gyD.set("timestamp_toggle","show-timestamps");gyD.set("reactions_toggle","allow-reactions");var pv=function(){return _.n.apply(this,arguments)||this};
_.v(pv,_.n);_.F=pv.prototype;_.F.menuItemIdentifierChanged=function(){var M;(M=this.data)!=null&&M.menuItemIdentifier&&(M=gyD.get(this.data.menuItemIdentifier))&&(_.Q("enable_lwe_web_mute")?(M=Dhr.get(M),this.isToggled=!(M===void 0?!this.data.isToggled:!M)):this.isToggled=Dhr.get(M))};
_.F.onFocus=function(){this.toggleButton.focus()};
_.F.onTap=function(){var M=this.data.command;M&&this.componentBehavior.resolveCommand(M)};
_.F.computeText=function(M,d,N){return this.componentBehavior.getSimpleString(M?N:d)};
_.F.computeIcon=function(M,d,N){return(M=M?N:d)&&M.iconType?_.C6(M.iconType):""};
pv.prototype.onTap=pv.prototype.onTap;pv.prototype.onFocus=pv.prototype.onFocus;pv.prototype.menuItemIdentifierChanged=pv.prototype.menuItemIdentifierChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],pv.prototype,"componentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pv.prototype,"data",void 0);
_.G([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.a("design:type",String)],pv.prototype,"icon",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],pv.prototype,"isToggled",void 0);_.G([_.Z3("tp-yt-paper-toggle-button"),_.a("design:type",Object)],pv.prototype,"toggleButton",void 0);_.G([_.xB("data.menuItemIdentifier"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pv.prototype,"menuItemIdentifierChanged",null);
_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pv.prototype,"onFocus",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pv.prototype,"onTap",null);pv=_.G([_.w4({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],pv);
_.L(pv,"yt-live-chat-toggle-renderer",function(){if(TQ4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;kcY===void 0&&(kcY=document.createElement("template"));var R=kcY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);TQ4=M}M=TQ4;return M},{mode:_.Q("live_chat_enable_sink_wrapper")?2:0});var Wqr=new _.x5("NAVIGATION_PROGRESS_TOKEN");_.oJ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var wGD={},uPq=(wGD.CSI=function(M,d){var N={};N[M]=d;M=_.JA(_.A42)(N);Object.keys(M).length>0&&_.qi(M)},wGD.ECATCHER=function(M){return function(d,N){_.rK(M)[d]=N}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),wGD);var pGD={},mhT={},hA$=(mhT[T9T.name]=!0,mhT),mU=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;M.tabGesturesIsActive=!1;M.actionRouterIsRoot=!0;M.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};M.pageTitle="";M.titleSuffix="YouTube";M.unseenNotificationCount=
0;M.hasNavigated=!1;M.hasSetScrollTopForNavigation=!1;M.pagePreparer=null;M.zwiebackInitJobId=0;M.dataUpdatePromise=null;M.loadDepsPromise=_.RD();M.hasPendingNavigation=!1;M.pendingPlayerOnResponseReceivedActions=[];return M};
_.v(mU,_.MS);mU.prototype.attached=function(){QdG(this);document.addEventListener("yt-navigate-cache",_.ux(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var M=hn();M.init();M.dispatchElement=this.hostElement};
var QdG=function(M,d){d=d===void 0?0:d;var N=_.h().resolve(_.CF(_.db));if(N)qbC(M,N);else{if(d>=5)throw Error("Yk");setTimeout(function(){QdG(M,d+1)},0)}},qbC=function(M,d){d.addEventListener("yt-navigate-start",_.ux(M,M.onYtNavigateStart));
d.addEventListener("yt-navigate-finish",_.ux(M,M.onYtNavigateFinish));d.addEventListener("yt-navigate-error",_.ux(M,M.onYtNavigateError));d.addEventListener("yt-page-data-fetched",_.ux(M,M.onYtPageDataFetched))};
_.F=mU.prototype;_.F.detached=function(){var M=_.h().resolve(_.db);M.removeEventListener("yt-navigate-start",_.ux(this,this.onYtNavigateStart));M.removeEventListener("yt-navigate-finish",_.ux(this,this.onYtNavigateFinish));M.removeEventListener("yt-navigate-error",_.ux(this,this.onYtNavigateError));M.removeEventListener("yt-page-data-fetched",_.ux(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ux(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.F.setPageOffset=function(M,d){M?_.ZI(this.hostElement,"yt-set-page-offset",[M,d]):_.qZ(Error("Zk"))};
_.F.setPageOffsetForNavigation=function(M,d){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(M,d))};
_.F.onYtNavigateSetPageOffset=function(M,d){this.setPageOffsetForNavigation(d.page,d.offset)};
_.F.getPageOffset=function(){var M=_.K(this.hostElement).querySelector("#page-manager").getCurrentPage(),d=0;M&&(d=_.ZI(this.hostElement,"yt-get-page-offset",[M])[0]);return d};
_.F.onYtHistoryPop=function(M,d){if(_.KF("DISABLE_WARM_LOADS"))M.preventDefault(),window.location.reload();else{var N=_.h().resolve(_.db);N.hasPendingNavigation()&&M.preventDefault();N.cancelPendingNavigation();_.Eu(this.hostElement,"yt-pending-navigation-cancelled");d.errorMsg&&(M=d.errorMsg.split(" - "),d=Error(M[0]),M.length==2&&M[1]&&(_.OD(d,M[1]),_.vh(d)),window.location.reload())}};
_.F.onYtHistoryLoad=function(M,d){var N=this;if(_.KF("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(M=d.endpoint)&&Object.keys(M).length||(M=null);var R=d.historyEntry,X=_.h().resolve(_.db),A=_.h().resolve(_.em),l=null;R&&R.rootData&&(l=R.rootData);var k=l&&Ide(l);!l||k||l.filler?M?(X.navigate(M,!0),vy4(this,M)):(d.legacyBorder||k||(d.JSC$26349_savedComponentState==null&&l==null?_.vh(new _.WJ("Incomplete history entry",d.forward)):_.IR(new _.WJ("Malformed history entry",d.JSC$26349_savedComponentState,
d.forward,l))),window.location.reload()):(_.gkZ({isHot:!0}),_.qi({webInfo:{navigationReason:"h"}}),_.yvA(),_.v1("srt"),_.v1("pdc"),this.cancelPendingTasks(),OVr(this,d.forward,l),l.player&&(l.player.loaded=!1),vy4(this,M),_.ePe(X,M||{},l,2,{},!1,d).then(function(){N.setPageOffset(A.getCurrentPage(),R.scrollTop||0)}))}};
_.F.initHistoryManager=function(M){if(!this.hasNavigated){this.hasNavigated=!0;var d=_.K(this.hostElement).querySelector("#page-manager").getCurrentData();M=isNaN(M)?this.getPageOffset():M;var N=_.h().resolve(_.db).currentEndpoint;this.replaceState(N,d,M)}};
_.F.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.F.onYtNavigateStart=function(M,d){this.cancelPendingTasks();d.noProgressBar||(M=_.h().resolve(_.CF(Wqr)))&&M.start();M=this.hasPendingNavigation?null:this.data;this.hasError=!1;var N=_.h().resolve(_.em),R,X,A;_.Q("kevlar_use_vimio_behavior")&&!((R=d.endpoint)==null?0:(X=R.commandMetadata)==null?0:(A=X.webCommandMetadata)==null?0:A.ignoreNavigation)&&(R=N.getCurrentPage())&&R.disconnectVisibilityRoot();N.prepareForNavigation(d.pageType,d.endpoint);_.Q("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.iW(1,"pcl"),_.f$(this.pagePreparer,N.preparePage.bind(N,d.pageType,d.endpoint)));R=this.getPageOffset();this.initHistoryManager(R);d.reload||this.hasPendingNavigation?this.replaceState(d.endpoint,M,R):(M==null?void 0:M.page)==="watch"&&d.pageType==="watch"&&_.Q("kevlar_replace_watch_to_watch_history_state")?this.replaceState(d.endpoint,M,R):(M==null?void 0:M.page)!=="shorts"||d.pageType!=="shorts"||d.endpoint.reelWatchEndpoint.sequenceParams||_.Q("short_to_short_back_nav_killswitch")?d.type!=
"navigate-back"&&d.type!="navigate-forward"&&(d.pageType==="shorts"&&_.YP(this.hostElement,"yt-shorts-reset"),this.saveAndPush(d.url,d.endpoint,M,R)):this.replaceState(d.endpoint,M,0);this.hasPendingNavigation=!0};
var jdr=function(M){M.hasPendingNavigation=!1;(M=_.h().resolve(_.CF(Wqr)))&&M.finish()};
mU.prototype.onYtNavigateError=function(M,d){jdr(this);this.hasError=!0;d&&d.errorMessage?this.errorMessage=d.errorMessage:this.errorMessage=void 0;M=this.get("endpoint.commandMetadata.webCommandMetadata.url",d);var N=_.is(window.location.href);M&&!N.pbjreload&&(d=d.navigationErrorReason||"10",_.Q("kevlar_parent_on_pbjreload")&&(N={csn:_.Ou()},this.get("data.endpoint.clickTrackingParams")&&(N.itct=this.data.endpoint.clickTrackingParams),_.tX(M,N)),_.Ij(_.fF(M,{pbjreload:d})))};
mU.prototype.onYtNavigateCache=function(M,d){var N=this,R=d.url,X=d.endpoint,A=d.data;M=!!d.miniplayer;d=!!d.skipHistory;if(R&&X&&A){var l=this.getPageOffset(),k=this.data||null;d||this.saveAndPush(R,X,k,l);R=_.ePe(_.h().resolve(_.db),X,A,M?4:3,{},M);M&&R.then(function(){N.dataUpdatePromise&&N.dataUpdatePromise.then(function(){var T=_.h().resolve(_.em);N.setPageOffset(T.getCurrentPage(),0)})})}};
mU.prototype.onYtNavigateFinish=function(M,d){var N=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){sdd(N,d.fromHistory)})};
var sdd=function(M,d){jdr(M);if(M.pendingPlayerOnResponseReceivedActions){for(var N=_.V(M.pendingPlayerOnResponseReceivedActions),R=N.next();!R.done;R=N.next())_.Zc(R.value,M.hostElement);M.pendingPlayerOnResponseReceivedActions=[]}N=_.h().resolve(_.em);!d&&M.hasNavigated&&((d=N.getCurrentPage())?d.is==="ytd-shorts"||M.tabGesturesIsActive||M.setPageOffsetForNavigation(d,0):_.vh(Error("$k")));_.vu(function(){_.vu(function(){_.v1("pda")})})};
mU.prototype.onYtNavigate=function(M){if(!M.detail.endpoint){var d=new _.WJ("Error: Missing yt-navigate endpoint from target:",M.target,M.target.nodeName);_.qZ(d)}if(d=_.Q("cold_missing_history"))d=hn(),d.init(!1),d=!(d.browserHistory.boundHistoryReplaceState&&d.browserHistory.boundHistoryPushState);if(d){_.oJ("DISABLE_WARM_LOADS",!0);d=new _.WJ("Failed to initialize history manager",this.getDebugString());var N=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
N?_.vh(d):_.qZ(d)}d=M.detail.endpoint;var R,X;_.Q("debug_forward_web_query_parameters")&&((R=d.commandMetadata)==null?0:(X=R.webCommandMetadata)==null?0:X.url)&&(d=JSON.parse(JSON.stringify(d)),d.commandMetadata.webCommandMetadata.url=_.atZ(d.commandMetadata.webCommandMetadata.url,window.location.search));M={type:0,command:d,form:{params:M.detail.params,tempData:M.detail.tempData||{},requestType:M.detail.type,createScreenConfig:M.detail.createScreenConfig,reload:M.detail.reload?M.detail.reload:!1,
requestForm:M.detail}};_.Q("kevlar_yt_navigate_command_handler")?(R=_.h().resolve(_.xV),M.form.skipDefaultElement=!0,R.resolveCommand(d,{form:M.form})):this.handleNavigate(M)};
mU.prototype.handleNavigate=function(M){this.hasSetScrollTopForNavigation=!1;var d=_.h().resolve(_.db),N=M.form||{};d.navigate(M.command,N.reload,N.params,N.tempData,N.requestType,N.createScreenConfig,N.ignoreConfirmation,N.requestForm)&&vy4(this,M.command,N.tempData)};
mU.prototype.onYtPageDataFetched=function(M,d){try{_.nJC().reset();this.data=d.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.h().resolve(_.em).updatePageData(this.data);var N=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);N&&Cei(N);var R=this.get("response.responseContext.serviceTrackingParams",this.data);R&&Cei(R);var X=
this.get("playerResponse.onResponseReceivedActions",this.data);X&&(X=PnD(this,X));X&&_.Ni(this.hostElement,X,this.hostElement);var A=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),l=this.get("response.responseContext.consistencyTokenJar",this.data);if(A||l){var k=_.cN6(),T=(0,_.wF.getValues)(k.tokenJars);A&&k.replace(T,A);l&&k.replace(T,l)}}catch(W){_.qZ(W)}};
var vy4=function(M,d,N){try{M.onYtEndpointChangeHandler(d,N)}catch(R){_.qZ(R)}};
_.F=mU.prototype;_.F.onYtEndpointChangeHandler=function(){};
_.F.setPageTitle=function(M){M=(this.pageTitle=M)?M+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+M};
_.F.onYtUpdateTitle=function(M,d){this.setPageTitle(d)};
_.F.setUnseenNotificationCount=function(M){this.unseenNotificationCount=M;this.setPageTitle(this.pageTitle)};
_.F.handleUpdateNotificationsUnseenCountAction=function(M){_.q(M,uzr)&&((M=_.q(M,uzr).unseenCount)?this.setUnseenNotificationCount(M):this.setUnseenNotificationCount(0))};
_.F.handleClearCookieAction=function(M){var d;(M=(d=_.q(M,tOP))==null?void 0:d.cookieName)&&_.BBZ(M)};
_.F.onYtUpdateUnseenNotificationCount=function(M,d){this.setUnseenNotificationCount(d)};
_.F.loadData=function(M){var d=this;this.loadDepsPromise.then(function(){var N=_.h().resolve(_.CF(_.db));N||_.qZ(Error("al"));if(M&&M.response){if(!M.endpoint){var R=_.SE(window.document.location.href)||"/",X="";if(R==="/"||R.startsWith("/?"))X="WEB_PAGE_TYPE_BROWSE";M.endpoint={commandMetadata:{webCommandMetadata:{url:R,webPageType:X,rootVe:3854}}}}_.ePe(N,M.endpoint,M,5,{})}else M.endpoint?N.navigate(M.endpoint):N.navigate(_.Bn);_.IQ.cancelJob(d.zwiebackInitJobId);d.zwiebackInitJobId=_.IQ.addLowPriorityJob(fyi)})};
var hn=function(){return _.h().resolve(_.Nf)};
mU.prototype.getDebugString=function(){return hn().getDebugString()};
mU.prototype.getThirdPartyManipulationSuspected=function(){return hn().getThirdPartyManipulationSuspected()};
mU.prototype.replaceState=function(M,d,N){hn().saveAndReplace(M,d,N)};
mU.prototype.saveAndPush=function(M,d,N,R){hn().saveAndPush(M,d,N,R)};
var Ide=function(M){return _.Q("web_honor_cache_for_back")&&(_.q(M.endpoint,_.nL)||_.q(M.endpoint,_.$B))?!0:!M||isNaN(M.expirationTime)?!1:(0,_.Gs)()>M.expirationTime},OVr=function(M,d,N){var R=M.get("response.trackingParams",N),X=_.vl(),A=_.Ou();
if(R&&X&&A&&(R=M.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",N),!R&&N.rootVe&&(R=N.rootVe),X=d?"forwardButton":"backButton",d=M.get("playerResponse.topbar.desktopTopbarRenderer."+X+".buttonRenderer.command.clickTrackingParams",M.data),M=M.get("response.topbar.desktopTopbarRenderer."+X+".buttonRenderer.command.clickTrackingParams",M.data),d=(M=d||M)?_.At(M):void 0,M=_.Nx(),X=[_.RD(N)],_.dm(M,R,d,{dataPromises:X,csnToClone:N.csn}),N.graftedVes))for(N=
_.V(N.graftedVes),R=N.next();!R.done;R=N.next())_.NT(M,R.value)};
mU.prototype.onStoreGraftedVeAction=function(M){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(M)):_.vh(Error("bl"))};
var PnD=function(M,d){return d.filter(function(N){for(var R in N)if(hA$[R])return M.pendingPlayerOnResponseReceivedActions.push(N),!0;return!1})};
_.Hm.Object.defineProperties(mU.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
mU.prototype.onStoreGraftedVeAction=mU.prototype.onStoreGraftedVeAction;mU.prototype.loadData=mU.prototype.loadData;mU.prototype.onYtUpdateUnseenNotificationCount=mU.prototype.onYtUpdateUnseenNotificationCount;mU.prototype.handleClearCookieAction=mU.prototype.handleClearCookieAction;mU.prototype.handleUpdateNotificationsUnseenCountAction=mU.prototype.handleUpdateNotificationsUnseenCountAction;mU.prototype.setUnseenNotificationCount=mU.prototype.setUnseenNotificationCount;
mU.prototype.onYtUpdateTitle=mU.prototype.onYtUpdateTitle;mU.prototype.setPageTitle=mU.prototype.setPageTitle;mU.prototype.onYtEndpointChangeHandler=mU.prototype.onYtEndpointChangeHandler;mU.prototype.onYtPageDataFetched=mU.prototype.onYtPageDataFetched;mU.prototype.handleNavigate=mU.prototype.handleNavigate;mU.prototype.onYtNavigate=mU.prototype.onYtNavigate;mU.prototype.onYtNavigateFinish=mU.prototype.onYtNavigateFinish;mU.prototype.onYtNavigateCache=mU.prototype.onYtNavigateCache;
mU.prototype.onYtNavigateError=mU.prototype.onYtNavigateError;mU.prototype.onYtNavigateStart=mU.prototype.onYtNavigateStart;mU.prototype.cancelPendingTasks=mU.prototype.cancelPendingTasks;mU.prototype.initHistoryManager=mU.prototype.initHistoryManager;mU.prototype.onYtHistoryLoad=mU.prototype.onYtHistoryLoad;mU.prototype.onYtHistoryPop=mU.prototype.onYtHistoryPop;mU.prototype.onYtNavigateSetPageOffset=mU.prototype.onYtNavigateSetPageOffset;mU.prototype.setPageOffset=mU.prototype.setPageOffset;
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],mU.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mU.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],mU.prototype,"hasError",void 0);_.G([_.H(),_.a("design:type",Object)],mU.prototype,"errorMessage",void 0);
_.G([_.C3("yt-navigate-set-page-offset"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],mU.prototype,"onYtNavigateSetPageOffset",null);_.G([_.C3("yt-history-pop"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],mU.prototype,"onYtHistoryPop",null);
_.G([_.C3("yt-history-load"),_.a("design:type",Function),_.a("design:paramtypes",[Event,_.Xez]),_.a("design:returntype")],mU.prototype,"onYtHistoryLoad",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],mU.prototype,"onYtNavigate",null);_.G([_.C3("yt-update-title"),_.a("design:type",Function),_.a("design:paramtypes",[Event,String]),_.a("design:returntype")],mU.prototype,"onYtUpdateTitle",null);
_.G([_.C3("yt-update-unseen-notification-count"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Number]),_.a("design:returntype")],mU.prototype,"onYtUpdateUnseenNotificationCount",null);mU=_.G([_.d4()],mU);pGD.YtdAppBehavior=[_.tK.YtActionHandlerBehavior,mU.prototype];var Q5=function(){var M=_.MS.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.v(Q5,_.MS);Q5.prototype.ready=function(){var M=this;_.K(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){M.onChange_()})};
Q5.prototype.dataChanged_=function(){_.K(this.hostElement).querySelector("#checkbox").checked=!1};
Q5.prototype.onChange_=function(){var M=_.K(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.YP(this.hostElement,"yt-dismissal-reason-"+M,this.data.feedbackToken)};
Q5.prototype.dataChanged_=Q5.prototype.dataChanged_;_.G([_.H(),_.a("design:type",Object)],Q5.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q5.prototype,"dataChanged_",null);Q5=_.G([_.d4()],Q5);var oyY=[Q5.prototype];var qz=function(){var M=_.MS.apply(this,arguments)||this;M.timeoutJobId=0;M.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return M};
_.v(qz,_.MS);qz.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
qz.prototype.startTimeout=function(){var M=this,d=this.data&&this.data.displayDurationSeconds;d&&!this.timeoutJobId&&(this.timeoutJobId=_.gL(_.IQ,function(){_.ZI(M.hostElement,"yt-close-popup-action",[M.is]);M.timeoutJobId=0},d*1E3))};
qz.prototype.cancelTimeout=function(){_.IQ.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
qz.prototype.ytdHatsSurveyBehaviorDataChanged=qz.prototype.ytdHatsSurveyBehaviorDataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],qz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],qz.prototype,"ytdHatsSurveyBehaviorDataChanged",null);qz=_.G([_.d4()],qz);var rsT=[_.tK.YtActionHandlerBehavior,qz.prototype];var Kqq=function(M,d){return M.SHARED_RENDERERS_.hasOwnProperty(d)?"yt":M.prefix},Ii={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}};Ii.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.Q("kevlar_mealbar_above_player"),modern:_.Q("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"}};
Ii.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Ii.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Ii.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Ii.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)"}};
Ii.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};
Ii.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};
Ii.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};
Ii.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};Ii.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"}};
Ii.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Ii.TOAST={component:null,properties:{}};var ysr=new function(M,d,N){this.supportedPopups=M;this.navigationEndpointPopupMap=d;this.popupTypeMap=N;this.supportedPopups=M;this.navigationEndpointPopupMap=d;this.popupTypeMap=N}({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:_.Q("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"}),Js9=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17537_popupConfig=Ii;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 csq=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.hN.getInstance()},vr=function(M,d){var N=M.pageNameToElement.get(d);
if(!N){switch(d){case "watch":var R=_.Q("web_watch_force_learning_journey_for_testing")?_.n$("ytd-watch-learning-journey"):_.Q("kevlar_watch_fixie")?_.n$("ytd-watch-fixie"):_.Q("kevlar_watch_grid")?_.n$("ytd-watch-grid"):_.n$("ytd-watch-flexy");break;case "learning-journey-watch":R=_.n$("ytd-watch-learning-journey");break;case "shorts":R=_.n$("ytd-shorts");break;case "search":R=_.n$("ytd-search");break;case "channel":R=_.n$("ytd-browse");R.pageSubtype="channels";break;case "trending":R=_.n$("ytd-browse");
R.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":R=
_.n$("ytd-browse");R.pageSubtype=d;break;case "browse":R=_.n$("ytd-browse");break;default:_.vh(new _.WJ("Error getting page element for type",d))}N=R;M.pageNameToElement.set(d,N)}return N};
csq.prototype.preparePage=function(M,d,N){N&&(M=Yr(N)||M);if(M!=="watch"){var R=this.elementPoolPopulator,X=M;X!=R.targetPage_&&R.pendingPages_.indexOf(X)>-1&&(R.targetPage_&&(R.pendingPages_.unshift(R.targetPage_),R.abort()),bqi(R,X),_.dYd(R,X))}if((R=vr(this,M))||!_.q(N,_.JQ)){R.isAttached||R===d||(R.hidden=!0);if(!(R.data||M==="watch"&&_.Q("swatcheroo_page_pool_dont_provide_filler_data"))){var A;if(M=(A=_.rK("FILLER_DATA",{})[M])==null?void 0:A.response)R.data=M}return R}};var SbD=function(M){this.JSC$28272_clientRoot=M;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ES9,"yt-end-playlist-command":MpC,"yt-recover-playlist-command":N_Y,"yt-refresh-playlist-command":FZD,"yt-playlist-remove-videos-action":R59};_.S5(_.ch.getInstance(),this.playlistHandlerActionMap,this.JSC$28272_clientRoot);Ux9()},zAe;var O2=function(M,d,N){this.apiKey=M;this.endpoint=d;this.confidenceThreshold=N===void 0?.5:N;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=d==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||d==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
d==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||d==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new rVT};
_.F=O2.prototype;
_.F.start=function(M){if(this.state===0)if(this.isOnline()){M.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=M.supportsHttpHeadersOverwriteParam);M.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=M.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.ID("voice_assistant");_.ON("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=M.languageCode||"en-US";this.supportsCrossDomainXhr=M.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=M.youtubeAssistantRequest||null;this.listeningHandler=M.listeningHandler||this.listeningHandler;this.audioDetectedHandler=M.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=M.stopHandler||this.stopHandler;this.completeHandler=M.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=M.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=M.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
M.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=M.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=M.accessToken;this.additionalHeaders=M.additionalHeaders||{};var d;this.prefetchResponseTimeoutMs=(d=M.prefetchResponseTimeoutMs)!=null?d:this.prefetchResponseTimeoutMs;bV$(this);this.startAudio();eAP(this)}else this.errorHandler("OFFLINE")};
_.F.stop=function(M){var d=M===void 0?{}:M;M=d.logCancel===void 0?!0:d.logCancel;var N=d.logMicClosed===void 0?!0:d.logMicClosed;var R=d.handleError===void 0?!0:d.handleError;d=d.handleStop===void 0?!0:d.handleStop;this.state!==0&&(M&&jh("voz_cx"),s2(this,{logMicClosed:N,handleStop:d}),R&&this.errorHandler("ABORTED"))};
_.F.getState=function(){return this.state};
_.F.isSupported=function(){return!0};
_.F.stopAudio=function(M){(M===void 0||M)&&jh("voz_mf")};
_.F.startAudio=function(){jh("voz_vp");return _.RD(null)};
var HVr=function(M,d){M.channelOpen&&(M.state!==2&&(M.state=2,jh("voz_ss"),M.listeningHandler()),d=new Uint8Array(d),d='{ "audioIn": "'+_.UT(d)+'" }',M.channel.send(d))},s2=function(M,d){var N=d===void 0?{}:d;
d=N.logMicClosed===void 0?!0:N.logMicClosed;N=N.handleStop===void 0?!0:N.handleStop;M.vozEndOfDataTimeout>-1&&(clearTimeout(M.vozEndOfDataTimeout),M.vozEndOfDataTimeout=-1);nyT(M);M.stopAudio(d);M.channel&&(M.channelOpen=!1,M.manuallyClosedChannel=!0,M.channel.close(),M.channel=void 0);M.transcribedSpeechResults=[];M.state=0;N&&M.stopHandler()},bV$=function(M){var d={httpHeadersOverwriteParam:M.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},M.additionalHeaders,M.accessToken&&M.isUsingVoz?{Authorization:"Bearer "+M.accessToken}:{"x-goog-api-key":M.apiKey}),supportsCrossDomainXhr:M.supportsCrossDomainXhr};M.channel=new jA(M.endpoint,d);M.channel.open();_.lI(M.channel,"w",function(){var N=M.channel,R=N.send,X=M.isUsingVoz?"PLACEHOLDER":"example";X={config:{dialogStateIn:{languageCode:M.languageCode},deviceConfig:{deviceId:X,deviceModelId:X},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!M.isUsingVoz)X.config.requestType=4;else if(M.isUsingVoz&&M.youtubeAssistantRequest){var A=JSON.stringify(M.youtubeAssistantRequest);X.config.internalIn={youtubeAssistantS3InputJson:A}}R.call(N,X);M.channelOpen=!0;M.manuallyClosedChannel=!1});
_.lI(M.channel,"x",function(){M.manuallyClosedChannel||(M.channelOpen=!1,M.channel=void 0,s2(M))});
_.lI(M.channel,"z",function(N){if(N.data){nyT(M);for(var R=0;R<N.data.length;R++){var X=M,A=N.data[R],l=A.speechResults;if(l)a:{var k=[];A=[];var T=!1;l=_.V(l);for(var W=l.next();!W.done;W=l.next()){W=W.value;if(W.noSpeech){s2(X);X.errorHandler("NO_SPEECH");break a}W.transcript!==void 0&&W.stability!==void 0&&(W.stability<X.confidenceThreshold&&(T=!0),T?A.push(W.transcript):k.push(W.transcript))}if(k.length!==0||A.length!==0)k=k.join(" "),A=A.join(" "),X.receivedEndOfUtterance&&!X.isUsingVoz?X.isUsingVoz||
X.completeHandler([k,A]):(T=X,l=k,W=A,jh("voz_sf"),T.transcriptionUpdateHandler(l,W),T.transcribedSpeechResults=[l,W]),X.receivedEndOfUtterance&&(jh("voz_eou"),X.transcriptionCompleteHandler([k,A]),X.isUsingVoz&&(X.prefetchResponseTimeoutMs===0?s2(X,{logMicClosed:!1,handleStop:!0}):X.prefetchResponseTimeoutMs>0&&iVe(X)))}else X.isUsingVoz&&(A==null?0:A.internalOut)?(A=JSON.parse(A.internalOut.youtubeAssistantS3OutputJson),A.userHasOptedInToVaa||A.vaaConsent?X.vaaConsentUpdateHandler(!!A.userHasOptedInToVaa,
!!A.vaaConsent):(fdb(X),A&&(k=X.transcribedSpeechResults,jh("voz_rqf"),X.completeHandler(k,A)))):A.eventType==="END_OF_UTTERANCE"?X.receivedEndOfUtterance=!0:(jh("voz_err"),X.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.vh(Error("cl")))}}});
_.lI(M.channel,"y",function(N){s2(M);switch(N.status){case 1:N="WEBCHANNEL_NETWORK_ERROR";break;case 2:N="WEBCHANNEL_SERVER_ERROR";break;default:N="WEBCHANNEL_UNKNOWN_ERROR"}M.errorHandler(N);M.logError(Error(N))})};
O2.prototype.logError=function(M){_.qZ(M)};
O2.prototype.isOnline=function(){return!0};
var iVe=function(M){fdb(M);M.prefetchResponseSetTimeoutId=setTimeout(function(){s2(M,{logMicClosed:!1,handleStop:!0})},M.prefetchResponseTimeoutMs)},fdb=function(M){M.prefetchResponseSetTimeoutId>-1&&(clearTimeout(M.prefetchResponseSetTimeoutId),M.prefetchResponseSetTimeoutId=-1)},eAP=function(M){nyT(M);
M.noResponseReceivedTimeout=window.setTimeout(function(){s2(M);M.errorHandler("NO_SPEECH")},11E3)},nyT=function(M){M.noResponseReceivedTimeout>-1&&(window.clearTimeout(M.noResponseReceivedTimeout),M.noResponseReceivedTimeout=-1)},jh=function(M){_.v1(M,void 0,"voice_assistant")};var Pr=function(){O2.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.v(Pr,O2);Pr.prototype.isSupported=function(){return ATP()};
Pr.prototype.startAudio=function(){var M=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.cl(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(R){LqC(M,R)};
this.processor.connect(this.audioContext.destination);var d=function(R){M.stream=R;if(!M.audioContext)return _.RD(null);R=M.audioContext.createMediaStreamSource(R);M.processor&&R.connect(M.processor);return _.RD(null)},N={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?d(this.stream):navigator.mediaDevices.getUserMedia(N).then(d).catch(function(R){s2(M);R.name&&R.name==="NotAllowedError"?M.errorHandler("NO_MICROPHONE_PERMISSION"):(M.errorHandler("AUDIO_ERROR"),M.logError(R));return _.cl(null)});
return O2.prototype.startAudio.call(this)};
Pr.prototype.stopAudio=function(M){M=M===void 0?!0:M;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(d){d.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;O2.prototype.stopAudio.call(this,M)};
Pr.prototype.isOnline=function(){return navigator.onLine};
var LqC=function(M,d){if(M.audioContext)if(window.OfflineAudioContext){var N=M.audioContext.sampleRate,R=d.inputBuffer.getChannelData(0);d=new window.OfflineAudioContext(1,R.length,16E3);for(var X=d.createBuffer(1,R.length,N),A=X.getChannelData(0),l=0,k=0;k<R.length;k++)A[k]=R[k],l+=A[k]*A[k];!M.audioDetected&&Math.sqrt(l/R.length)>.01&&(M.audioDetected=!0,M.audioDetectedHandler());R=d.createBufferSource();R.buffer=X;R.connect(d.destination);R.start(0);d.oncomplete=function(T){T=T.renderedBuffer.getChannelData(0);
for(var W=Math.floor(16384E3/N),w=new Int16Array(W),p=0;p<W;++p)w[p]=Math.max(-1,Math.min(1,T[p]))*32767;HVr(M,w.buffer)};
d.startRendering()}else t$b(M,d)},t$b=function(M,d){var N=M.audioContext.sampleRate,R=d.inputBuffer.getChannelData(0),X=Math.floor((N+8E3)/16E3);
N=R.length/X;d=new Float32Array(N);for(var A=0;A<N;++A)d[A]=R[A*X];R=new Int16Array(N);for(X=0;X<N;++X)R[X]=Math.max(-1,Math.min(1,d[X]))*32767;HVr(M,R.buffer)};var GcC={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var adD=function(){this.JSC$17602_audioEnabled=!0;this.audioFeedbackHolder={}};
adD.prototype.isPlaying=function(M){return M.currentTime>0&&!M.paused&&!M.ended&&M.readyState>2};
var Uh9=function(M){for(var d=_.V(Object.values(GcC)),N=d.next();!N.done;N=d.next())N=N.value,M.audioFeedbackHolder[N]=new Audio,M.audioFeedbackHolder[N].src="/s/search/audio/"+N+".mp3",M.audioFeedbackHolder[N].load()},oi=function(M,d){if(M.JSC$17602_audioEnabled!==!1&&d in M.audioFeedbackHolder){for(var N=_.V(Object.values(M.audioFeedbackHolder)),R=N.next();!R.done;R=N.next())R=R.value,M.isPlaying(R)&&R.pause();
M.audioFeedbackHolder[d].currentTime=0;M.audioFeedbackHolder[d].play().catch(function(){})}};var uni=function(M,d){var N=this;this.store=M;this.service=d;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){N.setState("offline");N.stop()};
this.audioPlayer=new adD;var R;(R=this.audioPlayer)==null||Uh9(R)};
_.F=uni.prototype;_.F.getService=function(){return this.service};
_.F.isEnabled=function(){return!!this.service};
_.F.isSupported=function(){var M;return(M=this.service)==null?void 0:M.isSupported()};
_.F.start=function(){var M=this,d,N,R,X,A,l,k,T,W,w,p,m,I;return _.B(function(O){switch(O.nextAddress){case 1:M.store.dispatch(xNJ("",""));if(!navigator.onLine)return M.setState("offline"),O.return();window.addEventListener("offline",M.handleOfflineEvent);M.stream=null;if(!M.permissionsSupported){O.jumpTo(2);break}_.Mv(O,3);return _.D(O,Cn$(M),5);case 5:d=O.yieldResult;if(!d)return(N=M.audioPlayer)==null||oi(N,"failure"),O.return();M.service.stream=M.stream;M.setState("listening");_.cJ(O,2);break;
case 3:_.Fg(O),M.permissionsSupported=!1;case 2:R={context:_.miv(_.Ud())},R.youtubeAssistantParams={searchParams:{inlineSearchResponse:M.enableInlineSearchResponse}},X=function(y,c){M.store.dispatch(YL9("transcribing"));M.store.dispatch(xNJ(y,c))},A=function(){var y;
(y=M.audioPlayer)==null||oi(y,"open");M.setState("listening")},l=function(){M.setState("transcribing")},k=function(y){M.setErrorState(y)},T=function(y,c){var e;
(e=M.audioPlayer)==null||oi(e,"success");c&&(_.Q("kevlar_voice_search_inline_search")&&(M.responseProcessor=_.h().resolve(_.Z_N),M.responseProcessor&&(e=c.navigationAction,y=c.prefetchedSearchResponse,e&&y&&(e=(new _.k6T).JSC$11790_getStoreKey(e),_.ft(M.responseProcessor,y,e)))),M.JSC$17620_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",c))},W=function(){window.removeEventListener("offline",M.handleOfflineEvent)},w=_.PeZ(!1),p=w.Authorization!=null,m=M.enableFirstPartyAuth||
M.enableFPAForSignedInUsers&&p?w:{"X-Goog-Visitor-Id":w["X-Goog-Visitor-Id"]},I={completeHandler:T,
errorHandler:k,listeningHandler:A,audioDetectedHandler:l,stopHandler:W,transcriptionUpdateHandler:X,youtubeAssistantRequest:R,languageCode:xhb(),additionalHeaders:m,supportsCrossDomainXhr:M.enableFirstPartyAuth||M.enableFPAForSignedInUsers&&p,supportsHttpHeadersOverwriteParam:!M.disableHttpHeadersOverwrite},M.service.start(I),_.Vy(O)}})};
_.F.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.F.reset=function(){this.store.dispatch(_.YS({type:"RESET_VOICE_SEARCH_STATE"}))};
_.F.setState=function(M){this.store.dispatch(YL9(M))};
_.F.setErrorState=function(M){switch(M){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var d;(d=this.audioPlayer)==null||oi(d,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Cn$(this);else{var N;(N=this.audioPlayer)==null||oi(N,"failure");this.setState("permission-denied")}break;case "ABORTED":var R;(R=this.audioPlayer)==null||oi(R,"no_input");break;default:var X;(X=this.audioPlayer)==
null||oi(X,"no_input");this.setState("timeout")}};
var Cn$=function(M){var d,N;return _.B(function(R){switch(R.nextAddress){case 1:return _.D(R,navigator.permissions.query({name:"microphone"}),2);case 2:d=R.yieldResult;if(d.state==="granted")return R.return(!0);if(d.state==="denied")return M.setState("permission-denied"),R.return(!1);M.setState("permission");N={audio:{sampleSize:16,channelCount:1},video:!1};_.Mv(R,3);return _.D(R,navigator.mediaDevices.getUserMedia(N),5);case 5:return M.stream=R.yieldResult,R.return(!0);case 3:return _.Fg(R),M.setState("permission-denied"),
R.return(!1)}})},xhb=function(){var M=_.rK("INNERTUBE_CONTEXT_HL"),d=_.rK("INNERTUBE_CONTEXT_GL");
return M.indexOf("-")>-1?M:M+"-"+d};var Ybe=function(M,d,N){uni.call(this,d,N);this.JSC$17620_actionRouter=M;this.enableInlineSearchResponse=_.Q("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.Q("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.Q("kevlar_voice_search_enable_fpa_signedin_users")},ZVd;
_.v(Ybe,uni);
var Eye=function(){if(!ZVd){var M="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.Q("kevlar_voice_search_auth_enabled")||_.Q("kevlar_voice_search_use_yt_endpoint")?M="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.Q("kevlar_voice_search_use_fp_endpoint")&&(M="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");ZVd=
new Ybe(_.ch.getInstance(),_.iY(),new Pr(_.rK("VOZ_API_KEY"),M,.5))}return ZVd};var MQT=function(M){this.JSC$17624_clientRoot=M;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$17624_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)]]));M=_.V(this.eventListeners);for(var d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=
_.V(R.value);R=X.next().value;X=X.next().value;d.addEventListener(R,X)}}_.S5(_.ch.getInstance(),this.autonavPauseActionMap,this.JSC$17624_clientRoot)},d1e,NhD=function(M){return _.Q("kevlar_autonav_popup_filtering")?(M=_.cN(M))?M.hasAttribute("prevent-autonav"):!0:!0};
_.F=MQT.prototype;_.F.onIronOverlayOpened=function(M){NhD(M)&&(this.autonavPauseReasons.overlayOpen=!0,rd(this))};
_.F.onIronOverlayClosed=function(M){NhD(M)&&(this.autonavPauseReasons.overlayOpen=!1,rd(this))};
_.F.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;rd(this)};
_.F.onYtAutonavPauseBlur=function(){var M=this;_.IQ.addJob(function(){M.isInBackground()||(M.autonavPauseReasons.inputBoxFocus=!1,rd(M))},8,0)};
_.F.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;rd(this)};
_.F.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;rd(this)};
_.F.onYtAutonavPauseScroll=function(){var M=_.h().resolve(_.em);M.isOnWatch()&&(M=M.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=M.getBoundingClientRect().top<-200,rd(this))};
_.F.onYtAutonavPauseUserEngagement=function(M){var d=this;if(_.Q("user_engagement_enable_autoplay_pause_feature")){var N=Number(M.lowEngagementThresholdMs);isNaN(N)||N<=0||M.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.h().resolve(_.gT),_.aQ()<N?_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.asP()?(this.userEngagementCsn=_.Ou(),_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
d.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,rd(this)):_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.SzZ(Error("dl`"+JSON.stringify(M)))};
_.F.onYtAutonavPausePlayer=function(M){this.autonavPauseReasons.requestedByPlayer=!!M.detail;rd(this)};
_.F.onYtAutonavVisibilityChanged=function(){var M=this,d,N,R;return _.B(function(X){if(X.nextAddress==1)return(d=_.nO())?_.D(X,d.getPlayerPromise(),2):X.return();N=X.yieldResult;R=N.isMuted()||N.getVolume()===0;M.autonavPauseReasons.backgroundAndMute=M.isInBackground()&&R;rd(M);_.Vy(X)})};
_.F.onYtAutonavPausePlayerEnded=function(){_.h().resolve(_.gT);var M=144E5;_.Q("user_engagement_enable_autoplay_pause_feature")||_.Q("is_part_of_any_user_engagement_experiment")||(M=45E5);this.autonavPauseReasons.longIdle=_.aQ()>M;Rm9(this);rd(this)};
_.F.onYtUserActivity=function(){var M=this;this.autonavPauseReasons.userEngagement&&(_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",M.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,rd(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",M.userEngagementCsn);_.Qc()}),this.autonavPauseReasons.youthereLactExperiment=!1,rd(this));
this.autonavPauseReasons.longIdle&&!_.Q("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,rd(this))};
_.F.isInBackground=function(){var M=window.document.visibilityState;return!(!M||M==="visible")};
var rd=function(M){for(var d=!1,N=_.V(Object.values(M.autonavPauseReasons)),R=N.next();!R.done;R=N.next())R=R.value,d=d||R;d?_.GQ.getInstance().pause(M.autonavPauseReasons):(M=_.GQ.getInstance(),M.autonavState_==3?(M.setState(2,!1,!1),M.autonavPauseReason_=void 0):M.autonavState_==1&&(M.disabledAutonavPauseReason_=void 0))},Rm9=function(M){var d=!1;
if(_.Q("enable_autoplay_pause_by_lact")){_.h().resolve(_.gT);d=_.ZR("autoplay_pause_by_lact_sec")*1E3;var N=_.ZR("autoplay_pause_by_lact_sampling_fraction");(d=_.aQ()>=d&&Math.random()<N)&&!_.asP()&&(_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),d=!1)}d!==M.autonavPauseReasons.youthereLactExperiment&&(M.autonavPauseReasons.youthereLactExperiment=d)&&(M.userEngagementCsn=_.Ou(),_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",M.userEngagementCsn)}));
M.autonavPauseReasons.userEngagement&&_.gL(_.IQ,function(){_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",M.userEngagementCsn)})};
MQT.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.bp("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Qc(),this.autonavPauseReasons.youthereLactExperiment=!1,rd(this));this.autonavPauseReasons.userEngagement&&(_.bp("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,rd(this))};
MQT.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Kv=function(){var M=_.n.apply(this,arguments)||this;M.miniGuideVisible=!1;M.guideOpened=_.Q("disable_initial_guide_state_fix")?!1:M.canFitPersistentGuide(M.initialBodyClientWidth);M.guideUserStateOpened=M.getInitialGuideUserStateOpened();M.isFullscreenShorts=!1;M.miniGuideWidthThreshold=_.ZR("kevlar_mini_guide_width_threshold",791);M.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");M.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
M.persistentGuideBlockedPagePathRegex=new RegExp(M.persistentGuideBlockedPagesPatterns.join("|"));M.animationTransitionDuration=0;M.lateDataResolver=_.KO();M.serviceEndpoint=lHY;M.initialGuideDataFetchFailed=!1;M.initialLoad=!0;M.guideRenderers=new Set;M.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return M};
_.v(Kv,_.n);_.F=Kv.prototype;_.F.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.F.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.F.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.F.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.F.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.F.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.F.ready=function(){_.h().addProvider({provide:_.rh,useValue:this.hostElement})};
_.F.attached=function(){var M=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ux(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ux(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ux(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ux(this,this.onYtGuideShow));_.bM(this,function(){M.animationTransitionDuration=200})};
_.F.detached=function(){document.removeEventListener("yt-navigate-finish",_.ux(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ux(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ux(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ux(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ux(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ux(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ux(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.F.getData=function(){return this.data};
_.F.load=function(){var M=this,d,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=M.lateDataResolver.resolve.bind(M),A.return(M.lateDataResolver.promise);if(window.ytInitialGuideData)return d=_.KO(),d.resolve(window.ytInitialGuideData),A.return(d.promise);R=!1;_.Mv(A,2);return _.D(A,M.fetchGuideData(),4);case 4:N=A.yieldResult;_.cJ(A,3);break;case 2:X=_.Fg(A),X.message==="Returned error"&&(R=!0);
case 3:if(N)return A.return(N);M.onYtGuideClose();R||(M.initialGuideDataFetchFailed=!0);return A.return(M.lateDataResolver.promise)}})};
_.F.fetchGuideData=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){if(k.nextAddress==1)return M.guidePromise||(M.guidePromise=_.dU(M.hostElement,[M.serviceEndpoint])),_.D(k,M.guidePromise,2);if(k.nextAddress!=3)return d=k.yieldResult,N=_.h(),R=N.resolve(_.y1),_.D(k,R(),3);(X=k.yieldResult)&&((A=d)==null?0:A.data)&&((l=d.data.responseContext)==null?void 0:l.maxAgeSeconds)!==0&&X.put("service:guide:fallback",new _.Zh({innertubeResponse:d.data}));return k.return(d.data)})};
_.F.initializeGuideDataIfEmpty=function(){var M=this,d,N;return _.B(function(R){if(R.nextAddress==1){if(!M.initialGuideDataFetchFailed||M.data)return R.return();_.Mv(R,2);return _.D(R,M.fetchGuideData(),4)}if(R.nextAddress!=2)return(d=R.yieldResult)&&M.lateDataResolver.resolve(d),_.cJ(R,0);N=_.Fg(R);_.vh(N);_.Vy(R)})};
_.F.initializeGuideData=function(){var M=this,d;return _.B(function(N){switch(N.nextAddress){case 1:return _.D7(oWe(),{mainAppWeb:_.oj()}),_.Mv(N,2),_.D(N,M.load(),4);case 4:M.data=N.yieldResult;_.cJ(N,3);break;case 2:_.Fg(N),_.gz(oWe(),"FAILURE");case 3:d=M.data&&M.data.items&&M.data.items.length>0?"SUCCESS":"FAILURE",_.gz(oWe(),d),_.Vy(N)}})};
_.F.setGuideData=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1)return d.disabled?X.return():d.data?(M.data=d.data,d.guideRenderers.add(M),X.return()):_.D(X,d.initializeGuideData(),2);d.graftGuideToPage();N=_.KF("IS_HOMEPAGE_COLD")?"eop":void 0;_.Q("disable_element_pool_populator")?d.setGuideDataAfterInit(M):(R=new _.iW(1,N),_.f$(R,d.setGuideDataAfterInit.bind(d,M)));_.Vy(X)})};
_.F.setGuideDataAfterInit=function(M){M.data=this.data;M.markDirty();this.guideRenderers.add(M);_.vu(function(){_.v1("gle")});
_.bM(this,function(){_.v1("gpe")})};
_.F.graftGuideToPage=function(){if(this.data){var M=this.data&&this.data.trackingParams;M&&(M=_.At(M),_.RL(_.Nx(),M))}};
_.F.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ux(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.F.onDrawerOpenedChanged=function(M,d){!d.value&&this.guideOpened&&(this.guideOpened=!1)};
_.F.onYtGuideToggle=function(M){var d=this.guideOpened;this.guideOpened=!d;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var N=_.kS();_.TR(0,109,!this.guideUserStateOpened);N.save()}this.updateGuideDrawerElementState();if(this.guideElement){var R;this.guideOpened&&((R=M.detail)==null?0:R.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ux(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.ux(this,
this.onAppDrawerTransitioned))}d||this.initializeGuideDataIfEmpty()};
_.F.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ux(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Hf(this.guideElement)};
_.F.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ux(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(ucC(this.guideOpened))};
_.F.guidePersistentAndVisibleChanged=function(){_.Eu(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.F.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.YS({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.F.miniGuideVisibleChanged=function(){_.Eu(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.F.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(ucC(this.guideOpened)),this.initialLoad=!1);_.Eu(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.F.activeEndpointChanged=function(){_.Eu(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.F.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.F.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()};
_.F.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var M=this.canFitPersistentGuide(this.cachedClientWidth);M?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=M}this.updateGuideDrawerElementState()};
_.F.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.F.getGuideOpened=function(){return this.guideOpened};
_.F.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.F.getActiveEndpoint=function(){return this.activeEndpoint};
_.F.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.F.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&&_.YP(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.F.computeGuidePersistentAndVisible=function(){var M=this;_.OH(this,"computeGuidePersistentAndVisible",function(){M.guidePersistentAndVisible=M.guideOpened&&M.guidePersistent;M.guideIsVisibleButNotPersistent=!(!M.guideOpened||M.guidePersistent)})};
_.F.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.F.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.F.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.F.startLoadingWatch=function(){this.closeGuide()};
_.F.startLoadingShorts=function(){_.Q("web_hide_guide_on_shorts")&&this.closeGuide()};
_.F.onYtNavigateFinish=function(M,d){if(!_.lb||d){this.activeEndpoint=d.endpoint;this.pageType=d.pageType;this.pageUrl=d.response.url;var N,R;M=(R=_.q((N=d.endpoint)==null?void 0:N.commandMetadata,_.an))==null?void 0:R.url;!this.pageUrl&&M&&(this.pageUrl=M);_.Q("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.F.getVisibleGuideRenderer=function(){for(var M=_.V(this.guideRenderers),d=M.next();!d.done;d=M.next())if(d=d.value,this.miniGuideVisible&&d.is==="ytd-mini-guide-renderer"||this.guideOpened&&d.is==="ytd-guide-renderer")return d;return null};
_.F.markGuideRendererDirty=function(M){if(M){typeof M.markDirty==="function"&&M.markDirty();M=_.V([].concat(_.wu(_.K(M).children)));for(var d=M.next();!d.done;d=M.next())this.markGuideRendererDirty(d.value)}};
_.F.persistentGuideEnabled=function(M,d){if(!d||M==="watch"||M==="settings"||M==="shorts"&&this.isFullscreenShorts||_.Q("reels_web_disable_persistent_guide_shorts")&&M==="shorts")return!1;var N=_.FO(d)||"";return _.Q("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(R){return N===R}):!this.persistentGuideBlockedPagePathRegex.test(N)};
_.F.canFitPersistentGuide=function(M){var d=_.ZR("kevlar_persistent_guide_width_threshold",1312);return d===-1||_.Q("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:M>d};
_.F.canFitMiniGuide=function(M){return this.miniGuideWidthThreshold===-1?!1:M>this.miniGuideWidthThreshold};
_.F.onResize=function(){var M=this;_.OH(this,"calculateGuideState",function(){M.onResizeDebounced()})};
_.F.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.F.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.F.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.F.getInitialGuideUserStateOpened=function(){return!_.kS().getFlag(109)};
_.Hm.Object.defineProperties(Kv.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.rK("initialBodyClientWidth")||window.innerWidth}}});
Kv.prototype.onResize=Kv.prototype.onResize;Kv.prototype.observeForMiniGuideVisible=Kv.prototype.observeForMiniGuideVisible;Kv.prototype.computeGuidePersistentAndVisible=Kv.prototype.computeGuidePersistentAndVisible;Kv.prototype.cachedClientWidthChanged=Kv.prototype.cachedClientWidthChanged;Kv.prototype.resetGuide=Kv.prototype.resetGuide;Kv.prototype.activeEndpointChanged=Kv.prototype.activeEndpointChanged;Kv.prototype.guideOpenedChanged=Kv.prototype.guideOpenedChanged;
Kv.prototype.miniGuideVisibleChanged=Kv.prototype.miniGuideVisibleChanged;Kv.prototype.guideIsVisibleButNotPersistentChanged=Kv.prototype.guideIsVisibleButNotPersistentChanged;Kv.prototype.guidePersistentAndVisibleChanged=Kv.prototype.guidePersistentAndVisibleChanged;Kv.prototype.onGuideElementChanged=Kv.prototype.onGuideElementChanged;Kv.prototype.onGuidePersistentChanged=Kv.prototype.onGuidePersistentChanged;Kv.prototype.onRenderGuideChanged=Kv.prototype.onRenderGuideChanged;
Kv.prototype.onActiveEndpointChanged=Kv.prototype.onActiveEndpointChanged;Kv.prototype.onMiniGuideVisibleChanged=Kv.prototype.onMiniGuideVisibleChanged;Kv.prototype.onGuideIsVisibleButNotPersistentChanged=Kv.prototype.onGuideIsVisibleButNotPersistentChanged;Kv.prototype.onGuidePersistendAndVisibleChanged=Kv.prototype.onGuidePersistendAndVisibleChanged;_.G([_.S(_.sj),_.a("design:type",Object)],Kv.prototype,"ironResizableBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Kv.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Kv.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Kv.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kv.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],Kv.prototype,"disabled",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Kv.prototype,"guidePersistentAndVisible",void 0);_.G([_.xB("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onGuidePersistendAndVisibleChanged",null);_.G([_.H(),_.a("design:type",Boolean)],Kv.prototype,"guideIsVisibleButNotPersistent",void 0);
_.G([_.xB("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.G([_.H(),_.a("design:type",Object)],Kv.prototype,"miniGuideVisible",void 0);_.G([_.xB("miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onMiniGuideVisibleChanged",null);_.G([_.H(),_.a("design:type",Boolean)],Kv.prototype,"forceMiniGuideClose",void 0);
_.G([_.H(),_.a("design:type",Object)],Kv.prototype,"activeEndpoint",void 0);_.G([_.xB("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onActiveEndpointChanged",null);_.G([_.H(),_.a("design:type",Boolean)],Kv.prototype,"renderGuide",void 0);_.G([_.xB("renderGuide"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onRenderGuideChanged",null);
_.G([_.H(),_.a("design:type",Object)],Kv.prototype,"guideOpened",void 0);_.G([_.H(),_.a("design:type",Boolean)],Kv.prototype,"guidePersistent",void 0);_.G([_.xB("guidePersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onGuidePersistentChanged",null);_.G([_.H(),_.a("design:type",Object)],Kv.prototype,"guideUserStateOpened",void 0);_.G([_.H(),_.a("design:type",String)],Kv.prototype,"pageUrl",void 0);
_.G([_.H(),_.a("design:type",String)],Kv.prototype,"pageType",void 0);_.G([_.H(),_.a("design:type",Number)],Kv.prototype,"cachedClientWidth",void 0);_.G([_.H(),_.a("design:type",Object)],Kv.prototype,"guideElement",void 0);_.G([_.H({selector:_.$D}),_.a("design:type",Object)],Kv.prototype,"isFullscreenShorts",void 0);_.G([_.xB("guideElement"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onGuideElementChanged",null);
_.G([_.xB("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"guidePersistentAndVisibleChanged",null);_.G([_.NS("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.G([_.xB("miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"miniGuideVisibleChanged",null);_.G([_.NS("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"guideOpenedChanged",null);_.G([_.xB("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"activeEndpointChanged",null);
_.G([_.NS("pageUrl"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"resetGuide",null);_.G([_.NS("cachedClientWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"cachedClientWidthChanged",null);_.G([_.xB("guideOpened","guidePersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"computeGuidePersistentAndVisible",null);
_.G([_.NS("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"observeForMiniGuideVisible",null);_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Kv.prototype,"onResize",null);Kv=_.G([_.f({disableElementRegistration:!0,is:"yt-guide-manager"})],Kv);var Xkb=_.L(Kv,"yt-guide-manager",void 0,{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var y5=function(){var M=_.n.apply(this,arguments)||this;M.JSC$17634_keyboardInUse=!1;M.boundHandleCapturedKeydownEvent=function(d){M.handleCapturedKeydownEvent(d)};
return M};
_.v(y5,_.n);_.F=y5.prototype;_.F.attached=function(){this.listenToDocument(document)};
_.F.listenToDocument=function(M){M.addEventListener("keydown",_.ux(this,this.onKeyDownEvent));M.addEventListener("keyup",_.ux(this,this.onKeyUpEvent));M.addEventListener("mousedown",_.ux(this,this.onMouseDownEvent));_.Q("desktop_keyboard_capture_keydown_killswitch")||M.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.addEventListener("yt-page-data-updated",_.ux(this,this.onPageUpdate))};
_.F.detached=function(){this.unlistenFromDocument(document)};
_.F.unlistenFromDocument=function(M){M.removeEventListener("keydown",_.ux(this,this.onKeyDownEvent));M.removeEventListener("keyup",_.ux(this,this.onKeyUpEvent));M.removeEventListener("mousedown",_.ux(this,this.onMouseDownEvent));_.Q("desktop_keyboard_capture_keydown_killswitch")||M.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.removeEventListener("yt-page-data-updated",_.ux(this,this.onPageUpdate))};
_.F.ready=function(){_.h().addProvider({provide:_.TH,useValue:this})};
_.F.isKeyBoardInUse=function(){return this.JSC$17634_keyboardInUse};
_.F.handleCapturedKeydownEvent=function(M){if(M.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(M)};
_.F.onMouseDownEvent=function(){this.JSC$17634_keyboardInUse=!1};
_.F.onPageUpdate=function(){if(_.Q("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.Q("web_shorts_keyboard_shortcut_usage_log")){_.Ln.clear();for(var M=_.V(_.ip),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;N=_.Tx(N);_.Ln.set(d,N);_.c1(_.Ou(),_.vl(),N)}_.t0.clear();M=_.V(_.fn);for(d=M.next();!d.done;d=M.next())N=_.V(d.value),d=N.next().value,N=N.next().value,N=_.Tx(N),_.t0.set(d,N),_.c1(_.Ou(),_.vl(),N);_.eU(_.Ou(),_.vl(),[].concat(_.wu(_.t0.values()),
_.wu(_.Ln.values())));_.zR(_.Ou(),[].concat(_.wu(_.t0.values()),_.wu(_.Ln.values())))}};
_.F.onMiniplayerActiveChange=function(){var M;(M=_.h().resolve(_.et).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(M.document):this.unlistenFromDocument(M.document))};
_.F.ignoreKeyEvent=function(M){if(M.ctrlKey||M.altKey)if(_.Q("kevlar_macro_markers_keyboard_shortcut")){if(M.keyCode!==37&&M.keyCode!==39)return!0}else return!0;var d=_.J2(M)||[];return _.Ckr(d)?!0:M.defaultPrevented?(XH(M.keyCode,M.shiftKey,this.isShortsPage),!0):M.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(M):!1};
_.F.isSpacebarClick=function(M){var d=M||window.event;var N;d.composedPath&&typeof d.composedPath==="function"?N=d.composedPath():N=d.path;N&&N.length?d=N[0]:(d=d||window.event,d=d.target||d.srcElement,d.nodeType==3&&(d=d.parentNode));return d&&M.keyCode===32&&(M=d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT",d=(d=d.getAttribute("role"))&&(d==="option"||d==="button"||d.indexOf("menuitem")===0),M||d)?!0:!1};
_.F.onKeyDownEvent=function(M){if(!this.ignoreKeyEvent(M)&&(M.keyCode===191&&(M.shiftKey||M.metaKey?M.repeat!=null&&M.repeat||(this.openHotkeyDialog(),XH(M.keyCode,M.shiftKey,this.isShortsPage)):(this.focusSearchBox(),M.preventDefault())),!M.metaKey)){var d=_.h().resolve(_.et);switch(M.keyCode){case 9:this.JSC$17634_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(M);break;case 84:d.pipController.getWindow()&&window.focus();this.toggleTheaterMode(M.keyCode,M.shiftKey);break;case 73:d.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(M.keyCode,M.shiftKey);break;case 70:if(this.isShortsPage&&_.Q("web_fullscreen_shorts")){_.YdT();break}this.isMiniplayerActive()?d.pipController.getWindow()&&(d.close(!0),window.focus()):this.passEventToPlayer(M);break;case 27:this.closeMiniplayer(M.keyCode,M.shiftKey)||this.passEventToPlayer(M);break;case 13:M.shiftKey&&_.Q("web_ephemeral_actions")&&_.h().resolve(_.Ea).activate(M);break;default:this.passEventToPlayer(M)}}};
_.F.onKeyUpEvent=function(M){if(!this.ignoreKeyEvent(M))if(_.Q("web_speedmaster_spacebar_control")&&M.keyCode===32)this.handlePlayerSpaceKey(M,!0);else{var d=this.getPlayerManager();d&&(d=d.getPlayer())&&d.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code)}};
_.F.getPlayerManager=function(){var M=_.nO(),d=_.h().resolve(_.CF(_.em));return M&&d&&d.isOnWatch()?M:null};
_.F.passEventToPlayer=function(M,d){var N=this,R,X,A;return _.B(function(l){if(l.nextAddress==1)return!_.Q("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&N.isMiniplayerActive()?R=_.h().resolve(_.et).getPlayerElement():N.inlinePreviewIsActive?(X=_.Eu(N.hostElement,"yt-get-inline-preview-player-action"))&&X[0]&&(R=X[0]):R=_.nO(),R?_.D(l,R.getPlayerPromise(),3):l.jumpTo(0);A=l.yieldResult;d?A.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat):A.handleGlobalKeyDown(M.keyCode,
M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat);M.keyCode!==38&&M.keyCode!==40&&XH(M.keyCode,M.shiftKey,N.isShortsPage);_.Vy(l)})};
_.F.focusSearchBox=function(){_.YP(this.hostElement,"yt-focus-searchbox")};
_.F.openHotkeyDialog=function(){_.YP(this.hostElement,"yt-open-hotkey-dialog")};
_.F.isMiniplayerActive=function(){return _.h().resolve(_.et).isMiniplayerActive()};
_.F.closeMiniplayer=function(M,d){return this.isMiniplayerActive()?(_.h().resolve(_.et).close(),XH(M,d,this.isShortsPage),!0):!1};
_.F.toggleTheaterMode=function(M,d){var N=_.WK(_.iY().getState()),R=this.getPlayerManager(),X=_.Q("disable_theater_mode_keyboard")||_.KF("START_IN_FULL_WINDOW_MODE");R&&!X&&(N=!N,_.Uu()&&_.Q("external_fullscreen")&&(N=!0),_.ZI(this.hostElement,"yt-toggle-theater-mode",[N]),XH(M,d,this.isShortsPage))};
_.F.toggleMiniplayer=function(M,d){var N=this.getPlayerManager();if(this.isMiniplayerActive()){var R;((R=_.h().resolve(_.CF(_.em)))==null?0:R.isOnWatch())?_.h().resolve(_.et).close(!0):_.V8(_.h().resolve(_.et));XH(M,d,this.isShortsPage)}else N&&(_.ZI(this.hostElement,"yt-activate-miniplayer-from-watch-action"),XH(M,d,this.isShortsPage))};
_.F.handlePlayerSpaceKey=function(M,d){var N=!!_.nO()||this.isMiniplayerActive();N=_.Q("disable_space_scroll_fix")||N;_.Q("global_spacebar_pause")&&!this.isKeyBoardInUse()&&N&&(M.preventDefault(),this.passEventToPlayer(M,d))};
y5.prototype.onMiniplayerActiveChange=y5.prototype.onMiniplayerActiveChange;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],y5.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],y5.prototype,"ytdReduxBehavior",void 0);_.G([_.H({selector:_.K6i}),_.a("design:type",Boolean)],y5.prototype,"inlinePreviewIsActive",void 0);_.G([_.H({selector:_.UBb}),_.a("design:type",Boolean)],y5.prototype,"isShortsPage",void 0);
_.G([_.H({selector:_.vD}),_.a("design:type",Boolean)],y5.prototype,"miniplayerIsActive",void 0);_.G([_.xB("miniplayerIsActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],y5.prototype,"onMiniplayerActiveChange",null);y5=_.G([_.f({disableElementRegistration:!0,is:"yt-hotkey-manager"})],y5);_.L(y5,"yt-hotkey-manager",void 0,{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var Jn=function(){var M=_.n.apply(this,arguments)||this;M.loopStateEntityKey_=null;M.playlistLoopStateEntity_=null;M.isShuffleNextPlaylist=!1;M.PLAYER_EVENTS_=new Map;M.playerListenersSetup_=!1;M.videoSkipJob_=0;M.canAutoAdvance_=!1;M.playerManager_=null;M.TEST_ONLY={};return M};
_.v(Jn,_.n);_.F=Jn.prototype;_.F.ready=function(){_.h().addProvider({provide:_.oL,useValue:this.hostElement})};
_.F.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_)};
_.F.attached=function(){document.addEventListener("yt-navigate-start",_.ux(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ux(this,this.onYtNavigateFinish_))};
_.F.detached=function(){document.removeEventListener("yt-navigate-start",_.ux(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ux(this,this.onYtNavigateFinish_))};
_.F.updatePlaylistEventListeners=function(M,d){d&&!this.playerListenersSetup_?(this.playerManager_=M,this.registerPlaylistEventListeners_(M)):!d&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(M))};
_.F.setPlayer=function(M){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=M};
_.F.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.F.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.F.registerPlaylistEventListeners_=function(M){var d=this;M.getPlayerPromise().then(function(N){d.playerListenersSetup_||(d.ytPlayerListenerBehavior.listenToPlayerEvents(N,d.PLAYER_EVENTS_),d.playerListenersSetup_=!0)})};
_.F.removePlaylistEventListeners_=function(M){var d=this;M.getPlayerPromise().then(function(N){d.playerListenersSetup_&&(d.ytPlayerListenerBehavior.unlistenFromPlayerEvents(N,d.PLAYER_EVENTS_),d.playerListenersSetup_=!1)})};
_.F.setPlaylistComponent=function(M){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ux(this,this.onPlaylistYtNavigate_)),M&&(M.data&&this.playlistComponent.data&&M.data.playlistId==this.playlistComponent.data.playlistId?(M.loopOn=this.playlistComponent.loopOn,M.shuffleOn=this.playlistComponent.shuffleOn):(M.loopOn=!1,M.shuffleOn=!1),this.isShuffleNextPlaylist&&(M.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=M;this.playlistComponent.addEventListener("yt-navigate",
_.ux(this,this.onPlaylistYtNavigate_))};
_.F.setAutoplayRenderer=function(M){this.autoplayData=M};
_.F.setPlaylistData=function(M){this.currentPlaylistData_=M;_.YP(this.hostElement,"yt-playlist-data-updated");_.wF.isEmpty(M)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(M)};
_.F.setPlayerPlaybackControlData=function(M){this.playerManager_&&this.playerManager_.updatePlayerComponents(M.playlistPanelRenderer)};
_.F.getPlaylistData=function(){return this.currentPlaylistData_};
_.F.getTempData_=function(M,d){if(this.playlistComponent==null)return null;M={};this.playlistComponent.shuffleOn&&(M.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(M.loop_on=this.playlistComponent.loopOn);d&&(M.autonav="1",_.h().resolve(_.gT),d=_.aQ(),d>0&&(M.lact=d),this.playerManager_&&(d=this.playerManager_.getPlayer())&&d.shouldSendVisibilityState()&&(d=d.getVisibilityState(),d!=0&&(M.vis=d)));_.Q("enable_unknown_lact_fix_on_html5")&&(_.h().resolve(_.gT),M.lact=_.aQ());
return M};
_.F.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.F.setLoopStateEntityKey_=function(M){var d;this.loopStateEntityKey_=((d=this.getPlaylistLoopData_(M))==null?void 0:d.playlistLoopStateEntityKey)||null};
_.F.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.F.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.F.skipVideo=function(){var M=this,d=_.Q("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||d)d=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.kM(_.IQ,function(){M.onPlaylistNext();M.videoSkipJob_=0},d)};
_.F.cancelVideoSkip=function(){this.videoSkipJob_&&(_.IQ.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.F.isInBackground_=function(){var M=window.document.visibilityState;return!(!M||M=="visible")};
_.F.onPlaylistIndex_=function(M){this.playlistComponent&&(M=this.playlistComponent.data.contents[M].playlistPanelVideoRenderer.navigationEndpoint,_.YP(this.hostElement,"yt-navigate",{endpoint:M,tempData:this.getTempData_(M)}))};
_.F.onPlayerStateChange_=function(M){if(M=M==0&&this.playlistComponent&&this.canAutoAdvance_)M=_.GQ.getInstance(),M=!(M.autonavState_===3?M.autonavPauseReason_&&M.autonavPauseReason_.inputBoxFocus===!0:M.autonavState_===1&&M.disabledAutonavPauseReason_&&M.disabledAutonavPauseReason_.inputBoxFocus===!0);M&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.F.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.F.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.F.navigateToAutoplayWatchEndpoint_=function(M,d,N){var R=this.playlistComponent.data.currentIndex,X=this.getNumPlayableVideos_();M=="NORMAL"&&d=="autoplayVideo"&&R+1>=X&&N||!(M=this.getVideoEndpoint_(M,d))||(N=this.getTempData_(M,N),_.YP(this.hostElement,"yt-navigate",{endpoint:M,tempData:N}))};
_.F.getNumPlayableVideos_=function(){for(var M=0,d=_.V(this.playlistComponent.data.contents||[]),N=d.next();!N.done;N=d.next())N.value.playlistPanelVideoRenderer&&(M+=1);return M};
_.F.getVideoEndpoint_=function(M,d){if(this.autoplayData&&this.autoplayData.sets)for(var N=0,R=this.autoplayData.sets.length;N<R;N++){var X=this.autoplayData.sets[N];if(X.mode==M){if(X[d])return X[d];break}}else M=new _.WJ("AutoplayData is undefined in playlist manager","Mode: "+M+" endpoint: "+d),_.vh(M)};
_.F.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.F.onPlaylistYtNavigate_=function(M){if(M.detail.endpoint){M.stopPropagation();var d=M.detail;d.tempData=this.getTempData_(M.detail.endpoint);_.YP(this.hostElement,"yt-navigate",d)}};
_.F.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.F.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.F.playlistLoopStateEntityChanged_=function(M){var d=this,N,R,X;return _.B(function(A){if(A.nextAddress==1){if(!M)return A.return();N=M.state==="PLAYLIST_LOOP_STATE_ONE";return d.playerManager_?_.D(A,d.playerManager_.getPlayerPromise(),3):A.jumpTo(2)}A.nextAddress!=2&&(R=A.yieldResult,R.setLoopVideo(N));X=M.state==="PLAYLIST_LOOP_STATE_ALL";d.playlistComponent&&(d.playlistComponent.loopOn=X);_.Vy(A)})};
_.F.getPlaylistLoopData_=function(M){var d,N;if(M=M==null?void 0:(d=M.playlistButtons)==null?void 0:(N=d.menuRenderer)==null?void 0:N.topLevelButtons)for(d=_.V(M),N=d.next();!N.done;N=d.next())if(N=N.value,N.playlistLoopButtonRenderer)return N.playlistLoopButtonRenderer};
_.F.getLoopStateCommand_=function(M){var d=this.getPlaylistData(),N;d=((N=this.getPlaylistLoopData_(d))==null?void 0:N.states)||[];var R;M=(R=_.q(d[M?1:2],_.rY3))==null?void 0:R.button;var X;return(X=_.q(M,_.K9))==null?void 0:X.command};
_.F.onPlayerLoopChange_=function(M){this.playlistLoopStateEntity_&&(M?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(M=this.getLoopStateCommand_(M))&&this.ytComponentBehavior.resolveCommand(M)};
_.F.onSleepTimerSettingsChanged_=function(M){this.canAutoAdvance_=M!=="End of video"};
Jn.prototype.onPlaylistLoopStateEntityChanged=Jn.prototype.onPlaylistLoopStateEntityChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Jn.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],Jn.prototype,"ytPlayerListenerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Jn.prototype,"loopStateEntityKey_",void 0);
_.G([_.H({selectorArgs:["loopStateEntityKey_"],selector:_.C4S}),_.a("design:type",Object)],Jn.prototype,"playlistLoopStateEntity_",void 0);_.G([_.xB("playlistLoopStateEntity_"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jn.prototype,"onPlaylistLoopStateEntityChanged",null);Jn=_.G([_.f({disableElementRegistration:!0,is:"yt-playlist-manager"})],Jn);_.L(Jn,"yt-playlist-manager",void 0,{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var F4b,ANC=function(){if(F4b!==void 0)return F4b;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return F4b=M};var cr=function(){var M=_.n.apply(this,arguments)||this;M.lastCallback=null;M.getAccountLinkPromises={};M.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);M.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return M};
_.v(cr,_.n);_.F=cr.prototype;_.F.getLocation=function(){return window.location.href};
_.F.getCompletionUrl=function(){return _.LL(this.getLocation())};
_.F.containsRedirectState=function(M){return(M=_.se(_.oAZ(M)))?(new URLSearchParams(M)).get("redirect_state")!==null:!1};
_.F.createGalConfig=function(M,d){var N=new WJG;M=N=d?this.getPopupOrRedirectSetting(N,_.rK("LINK_API_KEY"),_.rK("LINK_API_KEY_REDIRECT"),M):wCd(N,_.rK("LINK_API_KEY"));M.authUser=_.rK("SESSION_INDEX")||0;M.supportedFlows=new Set([4]);return M.build()};
_.F.getPopupOrRedirectSetting=function(M,d,N,R){this.isGalInteractionPopupMode(R)?(M.interactionMode=0,M=wCd(M,d)):(M.interactionMode=1,d=this.getCompletionUrl(),M.completionUrl=d,M=wCd(M,N));return M};
_.F.isGalInteractionPopupMode=function(M){if(this.redirectModeProviderAllowlist.has(M))switch(M){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.Q("main_web_redirect_integration_riot");default:return!1}return!0};
_.F.getStatusEntityKeyForProviderId=function(M){return _.Nr(M+":all","accountLinkStatusEntity")};
_.F.findNestedPropValue=function(M,d){var N=!1,R=null;JSON.stringify(M,function(X,A){N||X!==d||(N=!0,R=A);return N?null:A});
return R};
_.F.findAccountLinkButtonViewModel=function(M,d){var N=null,R=!1;JSON.stringify(M,function(X,A){R||A.accountLinkStatusEntityKey!==d||A.accountLinkStatusSecondaryEntityKey||(R=!0,N=A);return R?null:A});
return N};
_.F.executeLinkingSuccessOrFailureCommands=function(M,d,N){var R=null,X;(d==null?0:(X=d.url)==null?0:X.includes("account_sharing"))?R=d==null?void 0:d.response:R=d==null?void 0:d.response;(d=this.findAccountLinkButtonViewModel(R,M))?(M=N?this.findNestedPropValue(d,"onSuccessCommand"):this.findNestedPropValue(d,"onFailureCommand"))?_.FP([M],this.hostElement):_.Sx(Error("el")):_.Sx(Error("fl`"+M))};
_.F.handleInitializeRequest=function(M,d){var N=this,R=uKd(this.createGalConfig(M,!0));this.containsRedirectState(this.getLocation())?SXT(M,R.config,R.galService).then(function(X){var A=N.getStatusEntityKeyForProviderId(M);if(X.statusCode===1)d&&N.executeLinkingSuccessOrFailureCommands(A,d,!0),X=N.getLocation().indexOf("#"),X!==-1&&window.history.pushState(null,"",N.getLocation().substring(0,X));else return d&&N.executeLinkingSuccessOrFailureCommands(A,d,!1),Promise.reject(Error(X.statusMessage))}).catch(function(X){_.vh(X);
_.hQ("gamingAccountLinkStatusChanged",{serviceId:M,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(X)}):this.getAccountLinkPromises[M]=R.startLinkingSession({serviceId:M})};
_.F.handleAccountLinkCommand=function(M){_.q(M,A69)&&this.handleLinkRequest(_.q(M,A69))};
_.F.handleLinkRequest=function(M){var d=this,N=M.thirdPartyId;if(N)if(this.isGalInteractionPopupMode(N)){var R=function(){d.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onFailureCommand)},X=function(){d.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onSuccessCommand)};
this.lastCallback=X;this.getAccountLinkPromises[N].then(function(A){CBG(A).then(function(l){l.statusCode===1?X():R()})}).catch(function(){R()})}else this.getAccountLinkPromises[N].then(function(A){CBG(A).then(function(l){if(l.statusCode!==1)return Promise.reject(Error(l.statusMessage))})}).catch(function(A){_.vh(A);
_.hQ("gamingAccountLinkStatusChanged",{serviceId:N,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)})};
_.F.closeAndFire=function(M,d){_.ZI(this.hostElement,"yt-close-popup-action",[M]);d&&_.FP([d],this.hostElement)};
_.F.handleAccountUnlinkCommand=function(M){_.q(M,VHr)&&this.handleUnlinkRequest(_.q(M,VHr))};
_.F.handleUnlinkRequest=function(M){var d=this,N=M.thirdPartyId;if(N){var R=function(){d.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onFailureCommand)},X=function(){d.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onSuccessCommand)};
this.lastCallback=X;var A=uKd(this.createGalConfig(N,!1));this.unlinkUserGal(A,N).then(function(l){l.statusCode===1?X():R()}).catch(function(){R()})}};
_.F.unlinkUserGal=function(M,d){return M.deleteLink(d)};
_.F.handleLogAccountLinkingEventCommand=function(M){_.Q("enable_gel_log_commands")&&_.q(M,l1e)&&(M=_.q(M,l1e).event)&&_.hQ("gamingAccountLinkStatusChanged",M)};
_.Hm.Object.defineProperties(cr,{template:{configurable:!0,enumerable:!0,get:function(){return ANC()}}});
_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],cr.prototype,"ytOpenPopupBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],cr.prototype,"ytActionHandlerBehavior",void 0);cr=_.G([_.f({disableElementRegistration:!0,is:"ytd-third-party-manager"})],cr);_.L(cr,"ytd-third-party-manager",function(){return ANC()},{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var VQP,lhq=function(){return VQP!==void 0?VQP:VQP=document.createElement("template")};
document.head.appendChild(lhq().content);var $1C,BhY=function(){if($1C!==void 0)return $1C;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(lhq().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $1C=M};var k1d=_.a1(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),Sh=function(){var M=_.n.apply(this,arguments)||this;M.currentPage=void 0;M.renderLoadingStateJobId=0;M.updatePageDataJobId=0;M.pageDisposeJobsets=new WeakMap;M.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};M.applyZoomTransition=_.El("web_page_transition_type")==="zoom";M.applySlideTransition=_.El("web_page_transition_type")==="slide";M.TEST_ONLY=void 0;return M};
_.v(Sh,_.n);_.F=Sh.prototype;_.F.ready=function(){var M=_.h();M.addProvider({provide:_.em,useValue:this});M.addProvider({provide:_.nqd,useValue:this})};
_.F.created=function(){this.pagePool=new csq;this.contextSwitcher=new UlC};
_.F.attached=function(){_.YP(this.hostElement,"attached");var M=_.h().resolve(_.CF(_.Tu));M&&(this.contextSwitcher.JSC$17458_networkService_=M);this.viewTransitionManager=_.h().resolve(_.CF(_.K1i));this.setupPageTransitionAnimation()};
_.F.getPageOffset=function(M){return M.getScrollTop()};
_.F.setPageOffset=function(M,d){try{M.setScrollTop(d)}catch(N){}};
_.F.setPageOffsetForNavigation=function(M,d){_.YP(this.hostElement,"yt-navigate-set-page-offset",{page:M,offset:d===void 0?0:d})};
_.F.pauseActiveContext=function(){var M=this.contextSwitcher;M.activeContext_&&M.activeContext_.pause()};
_.F.getModuleNameForType=function(M){return M==="watch"?_.Q("kevlar_watch_fixie")?"watchFixie":_.Q("kevlar_watch_grid")?"watchGrid":"watchFlexy":M==="shorts"||M==="search"?M:"browse"};
_.F.attachPage=function(M){var d,N=!_.Q("pc_is_attached_ks")&&(M==null?void 0:(d=M.polymerController)==null?void 0:d.isAttached);if(!M.isAttached&&!N)try{_.K(this.hostElement).appendChild(M)}catch(X){var R;_.vh(new _.WJ("Error attaching page element for component",{origin:(R=this.currentPage)==null?void 0:R.is,component:M.is}))}};
_.F.setActivePage=function(M){var d=this,N=!1,R=function(){var X=d.isOnWatch(),A=d.currentPage;if(M)if(M!==d.currentPage){A&&(A.hidden=!0,A.active=!1,A.removeAttribute("role"));d.currentPage=M;var l,k=Yr((l=d.data)==null?void 0:l.endpoint);A&&_.YP(d.hostElement,"yt-page-type-changed",{oldPageType:A.is,newPageType:M.is,newPageSubtype:k});_.r4().dispatch(_.YS({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:M.is}));_.r4().dispatch(_.YS({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:k||""}));M.hidden=
!1;d.attachPage(M);M.active=!0;M.setAttribute("role","main");A&&d.setPageOffsetForNavigation(M,0);_.Q("kevlar_remove_page_dom_on_switch")&&!X&&A&&_.K(d.hostElement).removeChild(A)}else N=!0;else X=new _.WJ("Unable to set active page",A?A.is:"unknown origin",(k=d.data)==null?void 0:k.endpoint),_.qZ(X)};
this.viewTransitionManager?wie(this.viewTransitionManager,R,this.viewTransitionConfigForSetActivePage(this.currentPage,M)):R();return N};
_.F.viewTransitionConfigForSetActivePage=function(M,d){return _.Q("web_thumbnail_to_watch_transition")&&(M==null?void 0:M.is)==="ytd-browse"&&this.isWatchPage(d)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(M==null?void 0:M.is)==="ytd-browse"&&(d==null?void 0:d.is)==="ytd-browse"&&M!==d?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.F.updatePageData=function(M){var d=this,N=this.data;this.updatePageDataJobId&&_.IQ.cancelJob(this.updatePageDataJobId);this.data=M;return new _.Xy(function(R){var X=function(){M.filler?d.performDataUpdate(M,N):Sz4(function(){d.performDataUpdate(M,N)});
var T=_.K4();_.ym(T,"cr")||T.processSignal("cr");R()},A=function(){M&&M.page==="watch"?d.updatePageDataJobId=_.kM(_.IQ,X):X()};
if(_.Q("kevlar_enable_mss_page_modules_client")&&M){var l=_.h().resolve(_.nt),k=d.getModuleNameForType(M.page);(l=gFD(l,[k]))?l.then(A):A()}else A()})};
_.F.isDownloadsPage=function(M){var d,N;return(M==null?void 0:(d=M.endpoint)==null?void 0:(N=d.browseEndpoint)==null?void 0:N.browseId)==="FEdownloads"};
_.F.setPlayerSyncInterval=function(M){var d;return _.B(function(N){if(N.nextAddress==1)return _.D(N,_.h().resolve(_.aq),2);d=N.yieldResult;d.setUpPositionSyncInterval(M);_.Vy(N)})};
_.F.performDataUpdate=function(M,d){_.Q("kevlar_early_popup_close")||_.ZI(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var N=!M.filler;N&&(_.v1("lps"),_.Q("config_age_report_killswitch")||lSd());var R=aB(M),X,A=!1;if(_.Q("kevlar_remove_page_dom_on_switch")){var l=d&&aB(d);R===l&&(X=this.getCurrentPage())}X||(X=vr(this.pagePool,R));N&&epP(this.pagePool.elementPoolPopulator,R);N&&!this.renderLoadingStateJobId&&(A=this.setActivePage(X));if(X){l=R==="watch";var k=
R==="shorts";_.Q("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(X);if(l||k)X.playerData=M.playerResponse;if(k){M.reelWatchSequenceResponse?X.reelWatchSequenceResponse=M.reelWatchSequenceResponse:M.cachedReelWatchSequenceResponse&&(X.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse);X.currentEndpoint=M.endpoint;var T;X.isPreviousPageShorts=!!(d==null?0:(T=d.endpoint)==null?0:T.reelWatchEndpoint);M.cachedReelWatchSequenceResponse=M.reelWatchSequenceResponse||
M.cachedReelWatchSequenceResponse||(d==null?void 0:d.cachedReelWatchSequenceResponse);X.cachedReelWatchSequenceResponse=M.cachedReelWatchSequenceResponse}T=this.isDownloadsPage(M);var W=this.isDownloadsPage(d);T&&!W?this.setPlayerSyncInterval(6E5):!T&&W&&this.setPlayerSyncInterval();_.Q("block_all_player_prefetch_requests")||this.preparePrefetchRequest(M,X,N,l,k);piP(_.h().resolve(_.et),d,M);_.nAL(_.h().resolve(_.gT));_.Q("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(X);
N?(N=typeof X.loadPage,N==="function"?(X.pageContext=u5J(this.contextSwitcher,X,X.data!==M.response),d=function(){X.loadPage(M.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&X.is==="ytd-browse"&&A?this.applySlideTransition?wie(this.viewTransitionManager,d,{transitionName:"slide"}):wie(this.viewTransitionManager,d,{transitionName:"zoom"}):d()):_.IR(new _.WJ("b/38014653 ",[R,
X.is,X.nodeName,N,X.isAttached,d&&aB(d),this.hostElement.children.length])),_.v1("pdl")):(X.hidden=!0,M.response.filler=!0,X.data=M.response,this.attachPage(X));_.YP(this.hostElement,"yt-page-data-updated",{pageType:R})}_.gL(_.IQ,function(){_.Q("logging_avoid_blocking_during_navigation")&&_.AtZ().transition("none");var w=$hY(),p=X;if(M){var m=HbG(M),I=nSq(M),O;a:{if(M.playerResponse){var y=M.playerResponse,c;if((O=y.auxiliaryUi)==null?0:(c=O.messageRenderers)==null?0:c.upsellDialogRenderer){O=y.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(M.response&&(O=M.response,(y=O.overlay)==null?0:y.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var e;var t;c=(e=M.playerResponse)==null?void 0:(t=e.auxiliaryUi)==null?void 0:t.messageRenderers;e=(c==null?void 0:c.enforcementMessageViewModel)||(c==null?void 0:c.bkaEnforcementMessageViewModel);e=(e==null?void 0:e.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?e:void 0;var C;a:{if(M.response&&(t=M.response,(C=t.overlay)==null?0:C.commandWrapperPromoRenderer)){C=
t.overlay.commandWrapperPromoRenderer;break a}C=void 0}ldb(w,m,I,O,e,C,p)}})};
_.F.preparePrefetchRequest=function(M,d,N,R,X){var A,l,k,T,W,w,p,m,I,O,y,c,e,t,C;return _.B(function(U){if(U.nextAddress==1)return!N||!R&&!X||_.Q("kevlar_disable_background_prefetch")&&_.JA(_.FEj)()===0?U.return():(A=_.Hi(d))?_.D(U,A.getPlayerPromise(),2):U.return();l=U.yieldResult;k=_.h().resolve(_.CF(_.Tu));if(!k)return U.return();if(X)return T=_.FU(_.Ml),GrD(T,(W=M.endpoint)==null?void 0:W.reelWatchEndpoint,d.reelWatchSequenceResponse,l,k),U.return();m=(w=M.response)==null?void 0:(p=w.responseContext)==
null?void 0:p.webResponseContextExtensionData;if(!m)return U.return();e=(I=M.response)==null?void 0:(O=I.contents)==null?void 0:(y=O.twoColumnWatchNextResults)==null?void 0:(c=y.autoplay)==null?void 0:c.autoplay;t=_.h().resolve(_.oL);C=_.FU(_.Ml);aHi(C,m,l,k,t,e);_.Vy(U)})};
_.F.movePlayerToWatch=function(M){var d=this,N,R;return _.B(function(X){N=vr(d.pagePool,"watch");R=N.getPlayerContainer();M.appendTo(R);_.Vy(X)})};
_.F.movePlayerToShorts=function(M){var d=this,N,R,X;return _.B(function(A){N=vr(d.pagePool,"shorts");R=N.getPlayerContainer();(X=M)==null||X.appendTo(R,void 0,!0);_.Vy(A)})};
_.F.getPlayerFromWatch=function(){var M=vr(this.pagePool,"watch");return _.Hi(M)};
_.F.getPlayerFromShorts=function(){var M=vr(this.pagePool,"shorts");return _.Hi(M)};
_.F.startLoadingWatch=function(){var M=vr(this.pagePool,"watch");this.renderLoadingStateJobId?(_.IQ.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(M)};
_.F.startLoadingShorts=function(){var M=vr(this.pagePool,"shorts");this.setActivePage(M)};
_.F.getCurrentPage=function(){return this.currentPage};
_.F.getDestinationPageType=function(){return this.destinationPageType};
_.F.getCurrentData=function(){return this.data};
_.F.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.F.isOnShorts=function(){var M;return((M=this.currentPage)==null?void 0:M.is)==="ytd-shorts"};
_.F.isWatchPage=function(M){return!!M&&(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-fixie"||M.is==="ytd-watch-grid")};
_.F.preparePage=function(M,d){var N=this,R=function(){var l=N.pagePool.preparePage(M,N.currentPage,d);l&&N.attachPage(l)},X=function(l){_.OD(l,d);
_.vh(l)};
if(_.Q("kevlar_enable_mss_page_modules_client")){var A=this.getModuleNameForType(M);if(A=gFD(_.h().resolve(_.nt),[A])){A.then(R.bind(this)).catch(X.bind(this));return}}try{R()}catch(l){X(l)}};
_.F.lazyPrepareCriticalPages=function(M,d){M=Yr(d)||M;_.Q("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(M).then(this.maybePrepareWatchPage.bind(this,M)):this.maybePrepareWatchPage(M)};
_.F.maybePrepareWatchPage=function(M){M!=="watch"&&_.gL(_.IQ,this.preparePage.bind(this,"watch"))};
_.F.downloadPageModules=function(M){M=this.getModuleNameForType(M);var d=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);d.delete(M);var N=_.h().resolve(_.nt);N.JSC$16197_loadModules(M);return N.JSC$16197_loadModules.apply(N,_.wu(d))};
_.F.renderPageLoadingState=function(M,d){this.preparePage(M,d);var N=vr(this.pagePool,M);N.loadingData&&(N.loadingData.endpoint=d);N.loading=!0;this.setActivePage(N);M==="watch"&&_.YP(this.hostElement,"yt-guide-close")};
_.F.prepareForNavigation=function(M,d){var N=this;if(this.currentPage&&this.data){var R=Yr(d)||M;this.destinationPageType=R;aB(this.data)==R&&_.YP(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(M==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.IQ.cancelJob(this.renderLoadingStateJobId);_.h().resolve(_.et).deactivate(d);var X=this.data;this.renderLoadingStateJobId=_.m$(_.IQ,function(){if(N.data!=X){var A=vr(N.pagePool,M);N.setActivePage(A)}else N.renderPageLoadingState(M,
d);N.renderLoadingStateJobId=0},150)}};
_.F.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var M=new _.iW(1);this.currentPage.pageDisposeJobs.forEach(function(d){_.f$(M,d)});
this.pageDisposeJobsets.set(this.currentPage,M)}};
_.F.flushPageDisposeJobset=function(M){var d=this.pageDisposeJobsets.get(M);d&&(d.flushJobs(),this.pageDisposeJobsets.delete(M))};
_.F.onYtStopOldPlayer=function(M,d){d=d===void 0?!1:d;var N,R=_.MB("kevlar_new_stop_old_player_logic_pages");if(_.Q("kevlar_check_current_page_on_stop_old_player")&&(R.length===0||this.currentPage&&R.includes(this.currentPage.is)))if(this.data&&(N=aB(this.data)),aB(M)===N&&this.currentPage&&aB(this.currentPage.data)!==N)var X=_.Hi(this.currentPage);else N=aB(this.data),X=vr(this.pagePool,N),X=_.Hi(X);else this.data&&(N=aB(this.data),X=vr(this.pagePool,N),X=_.Hi(X));if(X)if(M=aB(M),R=vr(this.pagePool,
M),R=_.Hi(R),X==R)d&&!_.Q("kevlar_disable_preemptive_player_reset")&&X.resetForNewPlayback();else if(d=N==="watch"&&M!=="watch",!d||M==="shorts"||_.Ahz()&&!XfG(this.data)&&M!=="yts-products"&&M!="mini_app"&&M!="playables")N=_.h().resolve(_.et),d&&N.isMiniplayerActive()&&N.pipController.getWindow()||X.stop()};
_.F.setupPageTransitionAnimation=function(){var M=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){Rb(this.viewTransitionManager,"slide",{beforeTransition:function(){M.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){M.hostElement.style.viewTransitionName=""}});
Rb(this.viewTransitionManager,"zoom",{beforeTransition:function(){M.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){M.hostElement.style.viewTransitionName=""}});
var d=_.ZR("web_page_transition_exit_ms"),N=_.ZR("web_page_transition_wait_ms"),R=_.ZR("web_page_transition_enter_ms");if(!isNaN(d)||!isNaN(N)||!isNaN(R))if(d=k2T(k1d,d,N,R))N=document.createElement("style"),N.textContent=_.OKZ(d),document.head.appendChild(N)}};
_.Hm.Object.defineProperties(Sh,{template:{configurable:!0,enumerable:!0,get:function(){return BhY()}}});
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Sh.prototype,"ytActionHandlerBehavior",void 0);Sh=_.G([_.f({disableElementRegistration:!0,is:"ytd-page-manager"})],Sh);_.L(Sh,"ytd-page-manager",function(){return BhY()},{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var zO=function(M,d,N){N=N===void 0?!1:N;_.DL.call(this);this.draggableElement=M;this.callbacks=d;this.allowClicks=N;this.dragOccurred=!1;this.internalDragger=new _.cv(this.draggableElement);this.dragDelay=new _.fH(this.delayedDrag.bind(this));Thd(this);this.allowClicks&&(_.PkI(this.internalDragger,5),M.addEventListener("click",_.ux(this,this.validateClick),{capture:!0}))};
_.v(zO,_.DL);var Thd=function(M){_.lI(M.internalDragger,"earlycancel",function(){M.allowClicks&&(M.dragOccurred=!1)});
_.lI(M.internalDragger,"start",function(d){var N,R;(R=(N=M.callbacks).onStartDrag)==null||R.call(N,d);!d.defaultPrevented&&M.allowClicks&&(M.dragOccurred=!0)});
_.lI(M.internalDragger,"beforedrag",function(d){d.preventDefault();M.lastOffset=new _.hw(d.clientX-M.internalDragger.startX,d.clientY-M.internalDragger.startY);M.dragDelay.start()});
_.lI(M.internalDragger,"end",function(){M.dragDelay.stop();var d,N;(N=(d=M.callbacks).onEndDrag)==null||N.call(d);M.lastOffset=void 0})};
zO.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
zO.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.ux(this,this.validateClick),{capture:!0})};
zO.prototype.validateClick=function(M){this.dragOccurred&&(this.dragOccurred=!1,M.stopPropagation(),M.preventDefault())};var bi=function(M,d){_.DL.call(this);this.JSC$17659_resizeContainer=M;this.callbacks=d;this.aspectRatio=16/9;this.JSC$17659_resizers=[];M=_.V(this.JSC$17659_resizeContainer.children);for(d=M.next();!d.done;d=M.next())D1J(this,d.value)};
_.v(bi,_.DL);bi.prototype.disposeInternal=function(){for(var M=_.V(this.JSC$17659_resizers),d=M.next();!d.done;d=M.next())d.value.dispose();M=_.V(this.JSC$17659_resizeContainer.children);for(d=M.next();!d.done;d=M.next())d.value.setAttribute("disabled","");this.JSC$17659_resizers.length=0};
bi.prototype.setSize=function(M){this.currentMiniplayerSize=M};
bi.prototype.setAspectRatio=function(M){this.aspectRatio=M};
bi.prototype.update=function(M,d){for(var N=_.V(this.JSC$17659_resizeContainer.children),R=N.next();!R.done;R=N.next()){R=R.value;var X=R.getAttribute("alignment");_.Gu(R,"disabled",X===M||X===d)}};
var D1J=function(M,d){var N=d.getAttribute("alignment"),R=new zO(d,{onStartDrag:function(X){if(d.hasAttribute("disabled"))X.preventDefault();else{M.dragStartSize=M.currentMiniplayerSize;var A,l;(l=(A=M.callbacks).onStartResize)==null||l.call(A)}},
onDrag:function(X){if(M.dragStartSize){N!=="north"&&N!=="west"||X.scale(-1);var A=N==="north"||N==="south";X=A?X.y:X.x;A&&M.aspectRatio>=1?X*=M.aspectRatio:!A&&M.aspectRatio<1&&(X/=M.aspectRatio);M.callbacks.onResize(M.dragStartSize+X)}}});
M.JSC$17659_resizers.push(R)};var g0Y,W4i=function(){return g0Y!==void 0?g0Y:g0Y=document.createElement("template")};
document.head.appendChild(W4i().content);var wkJ;var pkY=_.SG(function(M){var d=_.e5(),N=M.onDrag,R=M.onDragStart,X=M.onDragEnd,A=_.cu(M,{allowClicks:!1,dragThreshold:5}),l=A.dragThreshold,k=A.allowClicks;M=A.children;A=A.className;var T=void 0,W=void 0,w=new _.hw(0,0),p=!1;_.IJ(function(){T=new _.cv(d.value);W=new _.fH(I);m(T,W);if(k()){_.PkI(T,l());var y;(y=d.value)==null||y.addEventListener("click",O,{capture:!0})}_.mF(function(){var c;(c=T)==null||c.dispose();if(k()){var e;(e=d.value)==null||e.removeEventListener("click",O,{capture:!0})}})});
var m=function(y,c){_.lI(y,"earlycancel",function(){k()&&(p=!1)});
_.lI(y,"start",function(e){R==null||R(e);e.defaultPrevented||k()&&(p=!0)});
_.lI(y,"beforedrag",function(e){T&&W&&(e.preventDefault(),w=new _.hw(e.clientX-T.startX,e.clientY-T.startY),W.start())});
_.lI(y,"end",function(){c.stop();X==null||X();w=new _.hw(0,0)})},I=function(){w&&N(w)},O=function(y){p&&(p=!1,y.stopPropagation(),y.preventDefault())};
return _.g("yt-draggable",{el:d,class:_.xj("ytDraggableComponentHost",A)},M)},"Xf");var m1i=_.SG(function(M){var d=_.V(_.d0(0,void 0,"Pf10wb")),N=d.next().value,R=d.next().value;d=function(X){var A={},l={};return _.g(pkY,{className:_.xj("ytdMiniplayerComponentResizer",(A.ytdMiniplayerComponentResizerDisabled=function(){return X===M.horizontalAlignment()||X===M.verticalAlignment()},A.ytdMiniplayerComponentResizerNorth=X==="north",A.ytdMiniplayerComponentResizerEast=X==="east",A.ytdMiniplayerComponentResizerSouth=X==="south",A.ytdMiniplayerComponentResizerWest=X==="west",A)),
onDragStart:function(){R(M.currentMiniplayerSize())},
onDrag:function(k){X!=="north"&&X!=="west"||k.scale(-1);var T;k=(T=X==="north"||X==="south")?k.y:k.x;var W=M.currentAspectRatio();T&&W>=1?k*=W:!T&&W<1&&(k/=W);T=k;M.onResize(N()+T)}},_.g("div",{class:_.xj("ytdMiniplayerComponentResizerCorner",(l.ytdMiniplayerComponentResizerNorthCorner=X==="north",l.ytdMiniplayerComponentResizerEastCorner=X==="east",l.ytdMiniplayerComponentResizerSouthCorner=X==="south",l.ytdMiniplayerComponentResizerWestCorner=X==="west",l))}))};
return _.g("div",{class:"ytdMiniplayerComponentResizers"},d("north"),d("east"),d("south"),d("west"))},"Yf");var hmG=16/9,Qkb=_.SG(function(){var M=_.e5(),d=_.V(_.d0(new _.R8(NaN,NaN),void 0,"yxHohf")),N=d.next().value,R=d.next().value;d=_.V(_.d0(!1,void 0,"ku1l7c"));var X=d.next().value,A=d.next().value;d=_.V(_.d0(!1,void 0,"pbOm3b"));var l=d.next().value,k=d.next().value;d=_.V(_.d0(!1,void 0,"LqfsYc"));var T=d.next().value,W=d.next().value;d=_.V(_.d0(!1,void 0,"wYZnZe"));var w=d.next().value,p=d.next().value;d=_.V(_.d0(!1,void 0,"KVndGb"));var m=d.next().value,I=d.next().value;d=_.V(_.d0(!1,void 0,"ofTiZe"));
var O=d.next().value,y=d.next().value;d=_.V(_.d0(hmG,void 0,"bpheWd"));var c=d.next().value,e=d.next().value,t=_.V(_.d0(!1,void 0,"MIV0Jb"));d=t.next().value;var C=t.next().value;t=_.V(_.d0(!1,void 0,"Y2idSc"));var U=t.next().value,Fi=t.next().value;t=_.V(_.d0(void 0,void 0,"IuZWBb"));var Y=t.next().value,$i=t.next().value;t=_.V(_.d0(_.rK("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var vj=t.next().value,Pj=t.next().value;t=_.V(_.d0("south",void 0,"mV91if"));var sS=t.next().value,tL=t.next().value;
t=_.V(_.d0(400,void 0,"OwmImd"));var b2=t.next().value,Hj=t.next().value,LZ=_.h().resolve(_.et).miniplayerPropSignalMap[0],w3=LZ.data,XY=LZ.externalPlaylistData;t=LZ.toastData;var jJ=LZ.playabilityStatus,Ne=LZ.isDisabled,Vz=LZ.watchWhile;LZ=_.V(_.Rq(LZ.isReadyToResume));var oI=LZ.next().value,$d=LZ.next().value,CJ;_.IJ(function(){R(_.lx());M.value.addEventListener("animationend",function(q$){q$.target===M.value&&(I(!1),y(!1))})});
_.bv("yt-window-resized",function(q$){q$&&R(q$)});
var xd=function(){CJ&&e(CJ.getVideoAspectRatio())},Vq=function(){if(CJ){var q$=CJ.getPlayerState()===1;
oI()&&q$&&$d(!1)}};
_.bv("yt-activate-miniplayer",function(q$){var BV;return _.B(function(fZ){if(fZ.nextAddress==1)return X()?fZ.return():_.D(fZ,(BV=_.h().resolve(_.et).getPlayerElement())==null?void 0:BV.getPlayerPromise(),2);CJ=fZ.yieldResult;if(!CJ)return fZ.return();!U()&&_.Q("kevlar_watch_while_v2")&&(tL(q$&&!_.Q("kevlar_watch_while_bottom_align")?"north":"south"),Pj(_.rK("HTML_DIR")==="rtl"?"west":"east"));var WV=CJ;WV.addEventListener("onVideoDataChange",xd);WV.addEventListener("onStateChange",Vq);e(CJ.getVideoAspectRatio());
A(!0);I(!0);_.Vy(fZ)})});
_.bv("yt-deactivate-miniplayer",function(q$){return _.B(function(BV){A(!1);$d(!1);y(q$);I(!0);if(CJ){var fZ=CJ;fZ.removeEventListener("onVideoDataChange",xd);fZ.removeEventListener("onStateChange",Vq)}_.Vy(BV)})});
var uL=function(){var q$=!!w3(),BV=m(),fZ=Vz();return(fZ===void 0?0:fZ)&&_.Q("kevlar_watch_while_modern")?!1:q$||BV},fg=function(){var q$;
return!((q$=XY())==null||!q$.contents)},M9=function(){var q$=b2();
var BV=N();BV=Math.min(Math.min(BV.width,BV.height)-32,720);var fZ=c(),WV=uL(),V9=fg()&&l(),Qz=Math.min(q$,BV);q$=new _.R8(192,WV?116:192);fZ=G3C(new _.R8(V9?hmG:fZ,1),new _.R8(Qz,WV?Qz-76:Qz));q$.width<=fZ.width&&q$.height<=fZ.height||(tGJ(fZ,q$),fZ.width=Math.min(fZ.width,BV),fZ.height=Math.min(fZ.height,BV));return new _.R8(fZ.width,_.Ju(192,fZ.height+kLC(WV,V9),720))},OV=function(){var q$=M9(),BV=uL(),fZ=fg()&&l();
return new _.R8(q$.width,q$.height-kLC(BV,fZ))},UV=function(){var q$=function(BV){BV.target===M.value&&w()&&(p(!1),M.value.removeEventListener("transitionend",q$))};
M.value.addEventListener("transitionend",q$);p(!0);k(!l())};
LZ={};return _.g("ytd-miniplayer",{el:M,class:_.xj("ytdMiniplayerComponentHost",(LZ.ytdMiniplayerComponentVisible=function(){return X()||m()},LZ.ytdMiniplayerComponentAnimatingSnap=T,LZ.ytdMiniplayerComponentAnimatingPlaylistExpand=w,LZ.ytdMiniplayerComponentAnimatingFade=m,LZ),function(){if(m()){var q$=sS();
var BV=X(),fZ=O();q$=BV?q$==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":fZ?q$==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":q$==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else q$="";return q$}),
style:_.Xc({top:function(){return sS()==="north"?"16px":""},
right:function(){return vj()==="east"?"16px":""},
bottom:function(){return sS()==="south"?"16px":""},
left:function(){return vj()==="west"?"16px":""},
width:function(){return M9().width+"px"},
height:function(){return M9().height+"px"},
transform:function(){var q$=Y();return q$?"translate("+q$.x+"px, "+q$.y+"px)":""}})},_.g("div",{class:"ytdMiniplayerComponentContent"},_.g(pkY,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(q$){var BV=B_C(vj(),sS(),N(),M9(),Y()),fZ=OV();Math.abs(q$.clientY-(BV.y+fZ.height))>15?C(!0):q$.preventDefault()},
onDrag:function(q$){$i(q$)},
onDragEnd:function(){var q$=VpC(B_C(vj(),sS(),N(),M9(),Y()),N(),M9()),BV=$r4(vj(),sS(),N(),M9()),fZ=$r4(q$.horizontalAlignment,q$.verticalAlignment,N(),M9());fZ=new _.hw(fZ.x-BV.x,fZ.y-BV.y);var WV;BV=BV.y+(((WV=Y())==null?void 0:WV.y)||0)+M9().height/2;var V9=function(){vj()===q$.horizontalAlignment&&sS()===q$.verticalAlignment||Fi(!0);Pj(q$.horizontalAlignment);tL(q$.verticalAlignment);$i(void 0)},Qz=function(IC){IC.target===M.value&&T()&&(W(!1),V9(),M.value.removeEventListener("transitionend",
Qz))};
C(!1);sS()==="south"&&BV>N().height?(V9(),_.h().resolve(_.et).close()):(M.value.addEventListener("transitionend",Qz),W(!0),$i(fZ))}},_.g(_.kV,{cond:X,
then:function(){return _.g(_.z6T,{isDisabled:Ne,playabilityStatus:jJ,size:OV})}}),_.g(_.kV,{cond:uL,
then:function(){return _.g(_.cjr,{isReadyToResume:oI,data:w3,expanded:l,onExpandClick:UV,playlistData:XY})}}),_.g(_.kV,{cond:d,
then:function(){return _.g("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.g(_.kV,{cond:function(){return fg()&&l()||w()},
then:function(){return _.g(_.VZC,{className:"ytdMiniplayerComponentPlaylistPanel",data:XY,hideHeaderText:!0,withinMiniplayer:!0})}}),_.g("div",{class:"ytdMiniplayerComponentToast"},_.g(_.bKP,{toastData:t}))),_.g(m1i,{onResize:function(q$){Hj(_.Ju(192,q$,720))},
currentAspectRatio:c,currentMiniplayerSize:b2,horizontalAlignment:vj,verticalAlignment:sS}))},"Zf");_.Q("ytd_miniplayer_to_wiz")&&_.eC(Qkb,"ytd-miniplayer",{});_.eC(_.bKP,"ytd-miniplayer-toast",{props:{toastData:_.cA}});var qpC=16/9,IhG=new _.R8(400,400/qpC),eh=function(){var M=_.n.apply(this,arguments)||this;M.active=!1;M.hasNoData=!1;M.enabled=!1;M.expanded=!1;M.readyToResume=!1;M.isDisabled=!1;M.externalPlaylistData={};M.premiumBadges=[];M.watchWhile=!1;M.playerState=null;M.verticalAttachment="south";M.horizontalAttachment=_.rK("HTML_DIR")==="rtl"?"west":"east";M.isAnimatingFade=!1;M.isAnimatingSnap=!1;M.isAnimatingExpand=!1;M.isDragging=!1;M.playerHidden=!1;M.hasPlaylistData=!1;M.closed=!1;M.expandedClosed=!1;
M.isForReadyToResume=!1;M.watchResponse=null;M.player=null;M.playerVe=null;M.expandVe=null;M.closeVe=null;M.readyToResumeCloseVe=null;M.disabledInitialStateIsPlaying=!1;M.PLAYER_EVENTS=new Map;M.aspectRatio=qpC;M.currentMiniplayerSize=400;M.userSetSize=!1;M.userSetPosition=!1;M.userHasDragged=!1;M.maxMiniplayerSize=720;M.transform=new _.hw(0,0);M.windowDimensions=new _.R8(NaN,NaN);M.dimensions=IhG;M.screenLayer=3;M.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return M};
_.v(eh,_.n);_.F=eh.prototype;_.F.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.F.ready=function(){this.setUpDragging();this.setUpResizing()};
_.F.attached=function(){this.onWindowResized(_.lx());this.hostElement.addEventListener("animationend",_.ux(this,this.resetFadingAnimation))};
_.F.detached=function(){this.hostElement.removeEventListener("animationend",_.ux(this,this.resetFadingAnimation))};
_.F.resetFadingAnimation=function(M){M.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.F.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.F.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.F.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var M=_.Ou(this.screenLayer);this.readyToResumeCloseVe&&M&&_.zR(M,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.F.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var M=_.Ou(0),d=_.vl(0);M&&d&&(_.c1(M,d,this.readyToResumeVe),_.zR(M,[this.readyToResumeVe]))}};
_.F.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var M=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=M===-1||M===1||M===3)&&this.player.pauseVideo()}};
_.F.activate=function(M,d){d=d===void 0?!1:d;var N=this,R;return _.B(function(X){if(X.nextAddress==1)return N.setInitialActivatePositioning(d),N.enabled=!0,N.active=!0,N.expanded=!1,N.closed=!1,N.expandedClosed=!1,N.watchWhileHidden||(N.isAnimatingFade=!0),_.h().resolve(_.oL).setPlaylistComponent(N.JSC$17670_playlistPanel),M.appendTo(N.playerContainer),_.D(X,M.getPlayerPromise(),2);R=X.yieldResult;R.setSizeStyle(!1,!0);N.ytPlayerListenerBehavior.listenToPlayerEvents(R,N.PLAYER_EVENTS);N.player=R;
N.watchWhile&&_.Q("kevlar_watch_while_minimum_size")&&N.setMiniplayerSize(192);N.setAspectRatio(N.player.getVideoAspectRatio());N.onIsDisabledChanged();_.Vy(X)})};
_.F.setInitialActivatePositioning=function(M){if(!this.userSetPosition&&_.Q("kevlar_watch_while_v2")){this.verticalAttachment=M&&!_.Q("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.rK("HTML_DIR")==="rtl"?"west":"east";var d;(d=this.JSC$17670_resizers)==null||d.update(this.horizontalAttachment,this.verticalAttachment)}};
_.F.deactivate=function(M,d){var N=this;return _.B(function(R){if(!N.active)return R.return();M||(N.expanded?N.expandedClosed=!0:N.closed=!0);N.active=!1;N.isForReadyToResume=!1;d&&_.Q("kevlar_watch_while_counterfactual")||(N.isAnimatingFade=!0);N.player&&N.ytPlayerListenerBehavior.unlistenFromPlayerEvents(N.player,N.PLAYER_EVENTS);N.player=null;_.Vy(R)})};
_.F.onMetadataTap=function(M){this.expandVe&&(M===void 0||M)&&(M=_.Ou(this.screenLayer))&&_.eD(M,this.expandVe);_.V8(_.h().resolve(_.et))};
_.F.onDisabledTap=function(M){M.target===_.K(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.F.onPlaylistExpandTap=function(M){if(this.hasPlaylistData){M=_.J2(M)||[];M=_.V(M);for(var d=M.next();!d.done;d=M.next()){d=d.value;if(d===this.hostElement)break;if(d.classList&&d.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.F.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.ux(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.F.animatedResizePlaylist=function(M){M.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.ux(this,this.animatedResizePlaylist)))};
_.F.getExpandIcon=function(M){return M?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.F.onPlayerVideoDataChange=function(){var M,d=(M=this.player)==null?void 0:M.getVideoAspectRatio();d&&d!==this.aspectRatio&&this.setAspectRatio(d)};
_.F.setAspectRatio=function(M){if(this.active){this.aspectRatio=M;this.updateDimensionsAndResize();var d;(d=this.JSC$17670_resizers)==null||d.setAspectRatio(M)}};
_.F.updateDimensionsAndResize=function(){var M=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),d=this.expanded?qpC:this.aspectRatio,N=new _.R8(192,this.showInfoBar?116:192);M=G3C(new _.R8(d,1),new _.R8(M,this.showInfoBar?M-76:M));N.width<=M.width&&N.height<=M.height||(tGJ(M,N),M.width=Math.min(M.width,this.maxMiniplayerSize),M.height=Math.min(M.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&d<=1?Math.max(M.width,M.height)+76:Math.max(M.width,M.height)));this.dimensions=
new _.R8(M.width,this.clamp(M.height+this.getNonPlayerHeight()));this.resize()};
_.F.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var M=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=M.height+"px";var d;(d=this.player)==null||d.setInternalSize(M.width,M.height)};
_.F.getPlayerSize=function(M){var d=Math.max(0,M.height-this.getNonPlayerHeight());return new _.R8(M.width,d)};
_.F.getNonPlayerHeight=function(){var M=0;this.showInfoBar&&(M+=76);this.expanded&&(M+=285);return M};
_.F.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.h().resolve(_.et).close()};
_.F.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.F.logClosingClick=function(){this.closeVe&&_.eD(_.Ou(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.eD(_.Ou(this.screenLayer),this.readyToResumeCloseVe)};
_.F.onPlayerExpandMiniplayer=function(){if(this.expandVe){var M=_.Ou(this.screenLayer);M&&_.eD(M,this.expandVe)}};
_.F.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var M=this.playerState===1;this.continueWatching&&M&&(this.continueWatching=!1);this.premiumBadges.length&&M&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.F.getScreenLayer=function(){return this.screenLayer};
_.F.logMiniplayer=function(){var M=_.Ou(this.screenLayer),d=_.vl(this.screenLayer);M&&d&&this.playerVe&&(_.c1(M,d,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.eU(M,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.zR(M,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.eU(M,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.F.computePlaylistData=function(M,d){return d};
_.F.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.F.computeExpandButtonHidden=function(M,d,N){return!M||!d||N};
_.F.computePlaylistIndexHidden=function(M,d){return!M||d};
_.F.computePlaylistPanelHidden=function(M,d){return!d&&!M};
_.F.computeExpandButtonLabel=function(M){return M?_.le("MINIPLAYER_COLLAPSE_LABEL"):_.le("MINIPLAYER_EXPAND_LABEL")};
_.F.computeDisabledStateCloseButtonLabel=function(){return _.le("MINIPLAYER_CLOSE",void 0,"Close")};
_.F.onWindowResized=function(M){M&&(M=this.windowDimensions=M,this.maxMiniplayerSize=Math.min(Math.min(M.width,M.height)-32,720),this.updateDimensionsAndResize())};
_.F.setUpResizing=function(){var M=this;this.JSC$17670_resizers||(this.JSC$17670_resizers=new bi(this.JSC$17670_resizeContainer,{onStartResize:function(){M.handleResizeStart()},
onResize:function(d){M.handleResize(d)}}),this.JSC$17670_resizers.setSize(this.currentMiniplayerSize),this.JSC$17670_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.F.handleResizeStart=function(){var M=_.Ou(this.screenLayer);this.userSetSize||(this.userSetSize=!0,M&&this.resizeVe&&_.zR(M,[this.resizeVe]));M&&this.resizeVe&&_.eD(M,this.resizeVe)};
_.F.handleResize=function(M){this.setMiniplayerSize(M);this.updateDimensionsAndResize()};
_.F.setUpDragging=function(){var M=this;this.JSC$17670_dragger||(this.JSC$17670_dragger=new zO(this.draggableContainer,{onStartDrag:function(d){!M.isSafeToDrag(d)||M.isAnimatingSnap?d.preventDefault():M.handleDragStart()},
onDrag:function(d){M.transform=d;M.setTransform(M.transform)},
onEndDrag:function(){M.handleDragEnd()}},!0))};
_.F.handleDragStart=function(){this.isDragging=!0;var M=_.Ou(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,M&&this.repositionVe&&_.zR(M,[this.repositionVe]));M&&this.repositionVe&&_.eD(M,this.repositionVe)};
_.F.handleDragEnd=function(){this.isDragging=!1;var M=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&M>this.windowDimensions.height&&_.h().resolve(_.et).close();this.animateSnapToCorner()};
_.F.animateSnapToCorner=function(){var M=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),d=this.getNearestAttachments();d=this.getGlobalPositionFromAttachments(d.horizontalAttachment,d.verticalAttachment);M=new _.hw(d.x-M.x,d.y-M.y);this.isAnimatingSnap=!0;this.setTransform(M);this.hostElement.addEventListener("transitionend",_.ux(this,this.endSnapAnimation))};
_.F.endSnapAnimation=function(M){M.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.ux(this,this.endSnapAnimation)),this.endDrag())};
_.F.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.F.setTransform=function(M){this.hostElement.style.transform=M?"translate("+M.x+"px, "+M.y+"px)":""};
_.F.getGlobalPositionFromAttachments=function(M,d){return new _.hw(M==="west"?16:this.windowDimensions.width-this.dimensions.width-16,d==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.F.updateAttachments=function(){var M=this.getNearestAttachments();if(this.horizontalAttachment!==M.horizontalAttachment||this.verticalAttachment!==M.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=M.horizontalAttachment;this.verticalAttachment=M.verticalAttachment;var d;(d=this.JSC$17670_resizers)==null||d.update(this.horizontalAttachment,this.verticalAttachment)};
_.F.getNearestAttachments=function(){var M=this.getCurrentGlobalPosition();return{horizontalAttachment:M.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:M.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.F.getCurrentGlobalPosition=function(){var M=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return l49(M,this.transform)};
_.F.isSafeToDrag=function(M){var d=this.playerContainer.getBoundingClientRect();return Math.abs(M.clientY-(d.y+d.height))>15};
_.F.setMiniplayerSize=function(M){this.currentMiniplayerSize=this.clamp(M);var d;(d=this.JSC$17670_resizers)==null||d.setSize(this.currentMiniplayerSize)};
_.F.clamp=function(M){return _.Ju(192,M,720)};
_.F.registerViewTransitionTasks=function(){var M=this,d=_.h().resolve(_.CF(_.K1i));if(d){var N={beforeTransition:function(){M.hostElement&&(M.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){M.hostElement&&(M.hostElement.style.viewTransitionName="")}};
Rb(d,"slide",N);Rb(d,"zoom",N)}};
_.Hm.Object.defineProperties(eh.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.Q("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.le("CONTINUE_WATCHING",void 0,"Continue watching")};var M;if((M=this.externalPlaylistData)==null?0:M.contents)return this.externalPlaylistData.titleText;var d;return(d=this.data)==null?void 0:d.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.externalPlaylistData)==null?0:M.contents){var d;return(d=_.WMj(this.externalPlaylistData))==null?void 0:d.title}var N;return(N=this.data)==null?void 0:N.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var M,d,N,R;return((M=this.externalPlaylistData)==null?void 0:M.currentIndex)!==void 0&&((d=this.externalPlaylistData)==null?0:d.totalVideos)&&!((N=this.data)==null?0:(R=N.playlistData)==null?0:R.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.U3Z(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.Q("kevlar_watch_while_counterfactual")}}});
eh.prototype.onIsDisabledChanged=eh.prototype.onIsDisabledChanged;eh.prototype.readyToResumeVeChanged=eh.prototype.readyToResumeVeChanged;eh.prototype.premiumBrandingChanged=eh.prototype.premiumBrandingChanged;eh.prototype.onPlayerVeChange=eh.prototype.onPlayerVeChange;eh.prototype.hasPlaylistDataChanged=eh.prototype.hasPlaylistDataChanged;_.G([_.S(_.z1.YtPlayerListenerBehavior),_.a("design:type",_.b$)],eh.prototype,"ytPlayerListenerBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],eh.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],eh.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],eh.prototype,"ytdReduxBehavior",void 0);_.G([_.Z3("#draggable"),_.a("design:type",HTMLDivElement)],eh.prototype,"draggableContainer",void 0);
_.G([_.Z3("#resize-container"),_.a("design:type",HTMLDivElement)],eh.prototype,"JSC$17670_resizeContainer",void 0);_.G([_.Z3("#video-container"),_.a("design:type",HTMLDivElement)],eh.prototype,"videoContainer",void 0);_.G([_.Z3("#player-container"),_.a("design:type",HTMLDivElement)],eh.prototype,"playerContainer",void 0);_.G([_.Z3("#playlist"),_.a("design:type",HTMLDivElement)],eh.prototype,"JSC$17670_playlistPanel",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"active",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"hasNoData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"enabled",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"expanded",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"readyToResume",void 0);
_.G([_.H(),_.a("design:type",Object)],eh.prototype,"isDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"externalPlaylistData",void 0);_.G([_.H(),_.a("design:type",Array)],eh.prototype,"premiumBadges",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"toastData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"watchWhile",void 0);_.G([_.H(),_.a("design:type",Boolean)],eh.prototype,"premiumBranding",void 0);
_.G([_.H(),_.a("design:type",Object)],eh.prototype,"playerState",void 0);_.G([_.H(),_.a("design:type",Boolean)],eh.prototype,"continueWatching",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],eh.prototype,"verticalAttachment",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],eh.prototype,"horizontalAttachment",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"isAnimatingFade",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"isAnimatingSnap",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"isAnimatingExpand",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"isDragging",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"playerHidden",void 0);
_.G([_.H({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.a("design:type",Object)],eh.prototype,"playlistData",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.a("design:type",Object)],eh.prototype,"hasPlaylistData",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"closed",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],eh.prototype,"expandedClosed",void 0);
_.G([_.H({selector:_.o36}),_.a("design:type",Boolean)],eh.prototype,"isSingleOptionSurveyActive",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.OW}),_.a("design:type",Boolean)],eh.prototype,"isWatchPage",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("watchWhile"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"showInfoBar",null);_.G([_.z("premiumBadges","showInfoBar"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"showOverlayPremiumBadges",null);
_.G([_.H(),_.a("design:type",Object)],eh.prototype,"watchResponse",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"miniplayerRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"playabilityStatus",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"playerVe",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"expandVe",void 0);_.G([_.H(),_.a("design:type",Object)],eh.prototype,"closeVe",void 0);
_.G([_.H(),_.a("design:type",Object)],eh.prototype,"readyToResumeCloseVe",void 0);_.G([_.H(),_.a("design:type",_.qw)],eh.prototype,"readyToResumeVe",void 0);_.G([_.H(),_.a("design:type",_.qw)],eh.prototype,"resizeVe",void 0);_.G([_.H(),_.a("design:type",_.qw)],eh.prototype,"repositionVe",void 0);_.G([_.xB("hasPlaylistData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eh.prototype,"hasPlaylistDataChanged",null);
_.G([_.xB("playerVe"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eh.prototype,"onPlayerVeChange",null);_.G([_.xB("premiumBranding"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eh.prototype,"premiumBrandingChanged",null);_.G([_.xB("readyToResumeVe"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eh.prototype,"readyToResumeVeChanged",null);
_.G([_.xB("isDisabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eh.prototype,"onIsDisabledChanged",null);_.G([_.z("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"miniplayerSubtitle",null);_.G([_.z("data.miniplayerTitle","externalPlaylistData"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"miniplayerTitle",null);
_.G([_.z("externalPlaylistData","continueWatching"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"playlistIndexMessage",null);_.G([_.H({reflectToAttribute:!0}),_.z("playabilityStatus"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"showErrorScreen",null);_.G([_.H({reflectToAttribute:!0}),_.z("watchWhile"),_.a("design:type",Object),_.a("design:paramtypes",[])],eh.prototype,"watchWhileHidden",null);
_.Q("ytd_miniplayer_to_wiz")||_.L(eh,"ytd-miniplayer",function(){if(wkJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
M.content.insertBefore(W4i().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);wkJ=M}M=wkJ;return M},{mode:2});var v0D;var Hr=function(){var M=_.n.apply(this,arguments)||this;M.useListItemStyles=_.Q("web_list_item_style_for_menu_items");M.systemIcons=_.Q("kevlar_system_icons");return M};
_.v(Hr,_.n);_.F=Hr.prototype;_.F.ready=function(){this.hostElement.addEventListener("tap",_.ux(this,this.onEndpointTapExtra))};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.F.onEndpointTapExtra=function(M){_.YP(this.hostElement,"iron-activate");var d=this.data.navigationEndpoint;d&&_.q(d,_.lCr)&&(M.stopPropagation(),_.Ni(this.hostElement,[d],this.hostElement))};
_.F.computeIcon=function(M){return M&&M.iconType?_.C6(M.iconType):""};
_.F.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.forceUpdateStylesOnLegacyBrowsers=function(){_.Q("kevlar_legacy_browsers")&&_.UO(this.hostElement)};
Hr.prototype.forceUpdateStylesOnLegacyBrowsers=Hr.prototype.forceUpdateStylesOnLegacyBrowsers;Hr.prototype.onFocus=Hr.prototype.onFocus;_.G([_.S(_.zc),_.a("design:type",Object)],Hr.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.BSm.YtConditionalRendererBehavior),_.a("design:type",Object)],Hr.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],Hr.prototype,"ytEndpointBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Hr.prototype,"data",void 0);_.G([_.H({computed:"computeIcon(data.icon)",value:""}),_.a("design:type",String)],Hr.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Hr.prototype,"useIcons",void 0);_.G([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Boolean)],Hr.prototype,"hasSeparator",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"useListItemStyles",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Hr.prototype,"systemIcons",void 0);_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"onFocus",null);_.G([_.xB("useIcons","hasSeparator"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hr.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.L(Hr,"ytd-menu-navigation-item-renderer",function(){if(v0D===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);v0D=M}M=v0D;return M},{mode:1});var OfJ;var jkY=_.ep(_.le("DOWNLOAD",{},"Download")),skT=_.ep(_.le("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),P$C=_.ep(_.le("RETRY",{},"Retry")),o0d=_.ep(_.le("PAUSE_DOWNLOADING",{},"Pause downloading")),rNr=_.ep(_.le("RESUME_DOWNLOAD",{},"Resume download")),nv=function(){var M=_.n.apply(this,arguments)||this;M.primaryText=jkY;M.primaryIconType="OFFLINE_DOWNLOAD";M.hasSecondaryContent=!1;M.hasSeparator=!1;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.isHidden=!1;M.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return M};
_.v(nv,_.n);_.F=nv.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){this.primaryEntry.focus()};
_.F.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.F.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.F.getRemoveAction=function(){return"ACTION_REMOVE"};
_.F.sendOfflineAction=function(M){var d=this.data.serviceEndpoint;if(d){var N=_.q(d,_.NH);N&&M&&(N.action=M);this.ytComponentBehavior.resolveCommand(d)}};
_.F.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=jkY,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=jkY;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=P$C;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=skT;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=rNr;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=skT;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
o0d;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=skT;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=skT;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=jkY,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.F.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.F.isSecondaryEntryHidden=function(M,d){return M?!0:!d};
_.F.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
nv.prototype.showHideButton=nv.prototype.showHideButton;nv.prototype.onTransferStateChange=nv.prototype.onTransferStateChange;nv.prototype.onFocus=nv.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],nv.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],nv.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],nv.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],nv.prototype,"primaryText",void 0);_.G([_.H(),_.a("design:type",String)],nv.prototype,"primaryIconType",void 0);_.G([_.H(),_.a("design:type",String)],nv.prototype,"primaryAction",void 0);_.G([_.H(),_.a("design:type",Object)],nv.prototype,"secondaryText",void 0);_.G([_.H(),_.a("design:type",String)],nv.prototype,"secondaryIconType",void 0);
_.G([_.H(),_.a("design:type",String)],nv.prototype,"secondaryAction",void 0);_.G([_.H(),_.a("design:type",Object)],nv.prototype,"hasSecondaryContent",void 0);_.G([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Object)],nv.prototype,"hasSeparator",void 0);_.G([_.H({selector:_.jp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",String)],nv.prototype,"transferState",void 0);
_.G([_.H({selector:_.C86,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",Object)],nv.prototype,"isVideoDeletedByUser",void 0);_.G([_.H(),_.a("design:type",Object)],nv.prototype,"isHidden",void 0);_.G([_.H({selector:_.L6Z,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.a("design:type",Object)],nv.prototype,"offlineabilityState",void 0);_.G([_.Z3("#primary-entry"),_.a("design:type",Object)],nv.prototype,"primaryEntry",void 0);
_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nv.prototype,"onFocus",null);_.G([_.NS("transferState","isVideoDeletedByUser"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nv.prototype,"onTransferStateChange",null);_.G([_.NS("offlineabilityState"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nv.prototype,"showHideButton",null);
_.L(nv,"ytd-menu-service-item-download-renderer",function(){if(OfJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);OfJ=M}M=OfJ;return M},{mode:1});var K4d;var ii=function(){var M=_.n.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.Q("kevlar_system_icons");M.useListItemStyles=_.Q("web_list_item_style_for_menu_items");return M};
_.v(ii,_.n);_.F=ii.prototype;_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.F.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.F.onTap=function(){_.Eu(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var M=this.data.serviceEndpoint,d=this.data.command;if(M){var N,R=(N=this.data)==null?void 0:N.trackingParams;N=!!_.q(M,_.JVV);R&&N&&_.iY().dispatch(_.YS({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:R}}));this.ytComponentBehavior.resolveCommand(M)||_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}})}d&&(this.ytComponentBehavior.resolveCommand(d)||_.Ni(this.hostElement,
[d],this.hostElement))};
_.F.computeIcon=function(M){return M&&M.iconType?_.C6(M.iconType):""};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
_.F.forceUpdateStylesOnLegacyBrowsers=function(){_.Q("kevlar_legacy_browsers")&&_.UO(this.hostElement)};
_.F.computeIsSelected=function(){var M;return!((M=this.data)==null||!M.isSelected)};
ii.prototype.forceUpdateStylesOnLegacyBrowsers=ii.prototype.forceUpdateStylesOnLegacyBrowsers;ii.prototype.onTap=ii.prototype.onTap;ii.prototype.onFocus=ii.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],ii.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.BSm.YtConditionalRendererBehavior),_.a("design:type",Object)],ii.prototype,"ytConditionalRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ii.prototype,"data",void 0);_.G([_.H({computed:"computeIcon(data.icon)",value:""}),_.a("design:type",String)],ii.prototype,"icon",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ii.prototype,"useIcons",void 0);
_.G([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ii.prototype,"hasSeparator",void 0);_.G([_.H({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.a("design:type",Boolean)],ii.prototype,"isSelected",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ii.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ii.prototype,"useListItemStyles",void 0);
_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ii.prototype,"onFocus",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],ii.prototype,"onTap",null);_.G([_.xB("useIcons","hasSeparator"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ii.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.L(ii,"ytd-menu-service-item-renderer",function(){if(K4d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);K4d=M}M=K4d;return M},{mode:2});var yNi;var fv=function(){return _.n.apply(this,arguments)||this};
_.v(fv,_.n);_.F=fv.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onDataChanged=function(){var M=this;_.bM(this,function(){M.postbox.openDialog();M.focus();_.YP(M.hostElement,"yt-refit")})};
_.F.focus=function(){this.postbox.focus()};
_.F.closePopup=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
_.F.onYtCommentboxDismiss=function(){this.closePopup()};
fv.prototype.onYtCommentboxDismiss=fv.prototype.onYtCommentboxDismiss;fv.prototype.onDataChanged=fv.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fv.prototype,"data",void 0);_.G([_.H({value:function(){return _.le("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],fv.prototype,"closeButtonAriaLabel",void 0);_.G([_.Z3("#postbox"),_.a("design:type",Object)],fv.prototype,"postbox",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fv.prototype,"onDataChanged",null);_.G([_.C3("yt-commentbox-dismiss"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fv.prototype,"onYtCommentboxDismiss",null);
fv=_.G([_.f({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],fv);
_.L(fv,"ytd-backstage-post-dialog-popup-renderer",function(){if(yNi!==void 0)return yNi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return yNi=M},{mode:1});var JNr;var Lv=function(){return _.n.apply(this,arguments)||this};
_.v(Lv,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Lv.prototype,"data",void 0);Lv=_.G([_.f({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Lv);
_.L(Lv,"ytd-sender-id-section-renderer",function(){if(JNr!==void 0)return JNr;var M=document.createElement("template");_.P(M,'\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');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return JNr=M},{mode:1});var cNb;var Sp9;var zmq;var tn=function(){return _.n.apply(this,arguments)||this};
_.v(tn,_.n);tn.prototype.closePopup=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tn.prototype,"data",void 0);tn=_.G([_.w4({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],tn);
_.L(tn,"yt-community-post-section-renderer",function(){if(zmq===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Sp9===void 0&&(Sp9=document.createElement("template"));var R=Sp9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);zmq=M}M=zmq;return M},{mode:2});var bfr;var emG;var Hfr;var n0r;var ifC;var fhP;var ui=function(){return _.n.apply(this,arguments)||this};
_.v(ui,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ui.prototype,"data",void 0);ui=_.G([_.w4({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],ui);
_.L(ui,"yt-share-start-time-with-context-renderer",function(){if(fhP===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;ifC===void 0&&(ifC=document.createElement("template"));var R=ifC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);fhP=M}M=fhP;return M},{mode:2});var Cv=function(){return _.n.apply(this,arguments)||this};
_.v(Cv,_.n);Cv.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cv.prototype,"data",void 0);Cv=_.G([_.w4({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Cv);
_.L(Cv,"yt-share-panel-title-v15-renderer",function(){if(n0r===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Hfr===void 0&&(Hfr=document.createElement("template"));var R=Hfr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);n0r=M}M=n0r;return M},{mode:2});var x6=function(){return _.n.apply(this,arguments)||this};
_.v(x6,_.n);x6.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],x6.prototype,"data",void 0);x6=_.G([_.w4({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],x6);
_.L(x6,"yt-share-panel-header-renderer",function(){if(emG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;bfr===void 0&&(bfr=document.createElement("template"));var R=bfr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);emG=M}M=emG;return M},{mode:2});var L4P;var tQd;var Y6=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-open-popup-action":"onOpen"};return M};
_.v(Y6,_.n);_.F=Y6.prototype;_.F.attached=function(){this.onOpen()};
_.F.updateTimeSecs=function(M){this.currentTimeSecs=M};
_.F.computeTimeString=function(M){M=M.toString();var d=Math.floor(Number(M)/3600),N=Math.floor(Number(M)%3600%60);return(d>0?d+":":"")+_.dl(Math.floor(Number(M)%3600/60),d>0?2:1)+":"+_.dl(N,2)};
_.F.computeTimeStringA11y=function(M){M=_.YPZ({seconds:M});var d=M.hours===void 0?0:M.hours,N=M.minutes===void 0?0:M.minutes,R=M.seconds===void 0?0:M.seconds;M=[];if(d>0){var X=G2D().format({hours:d});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.r_)||d>9999)X=X.replace(d.toString(),_.Z9A(d)),_.r_==="km"&&(X=X.replace(".",","));M.push(X)}N>0&&M.push(G2D().format({minutes:N}));R>0&&M.push(G2D().format({seconds:R}));d="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");N=_.r_==
"am"?"{0}\u1363 ":_.r_=="fa"?"{0}\u060c\u200f ":_.r_=="my"?"{0} - ":_.r_=="ne"?"{0},":_.r_=="th"?"{0} ":_.r_=="ur"?"{0}\u060c ":_.r_=="ar"||_.r_=="ar-XB"?"{0} \u0648":_.r_=="ja"||_.r_=="zh-CN"||_.r_=="zh-HK"||_.r_=="zh-TW"?"{0}\u3001":"{0}, ";R=_.r_=="am"?"\u1363 ":_.r_=="fa"?"\u060c\u200f ":_.r_=="my"?" - ":_.r_=="th"?" ":_.r_=="ur"?"\u060c ":_.r_=="ar"||_.r_=="ar-XB"?" \u0648":_.r_=="ja"||_.r_=="zh-CN"||_.r_=="zh-HK"||_.r_=="zh-TW"?"\u3001":", ";X=_.r_=="am"?" \u12a5\u1293 {0}":_.r_=="as"?" \u0986\u09f0\u09c1 {0}":
_.r_=="az"?" v\u0259 {0}":_.r_=="bn"?" \u098f\u09ac\u0982 {0}":_.r_=="cs"?" a\u00a0{0}":_.r_=="de"?" und {0}":_.r_=="el"?" \u03ba\u03b1\u03b9 {0}":_.r_=="eu"?" eta {0}":_.r_=="fa"?"\u060c \u0648 {0}":_.r_=="fil"?", at {0}":_.r_=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.r_=="hi"?", \u0914\u0930 {0}":_.r_=="hu"?" \u00e9s {0}":_.r_=="hy"?" \u0587 {0}":_.r_=="id"?", dan {0}":_.r_=="iw"?" \u05d5-{0}":_.r_=="ja"?"\u3001{0}":_.r_=="ka"?" \u10d3\u10d0 {0}":_.r_=="km"?" \u1793\u17b7\u1784 {0}":_.r_=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.r_=="ko"?" \ubc0f {0}":_.r_=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.r_=="lt"?" ir {0}":_.r_=="lv"?" un {0}":_.r_=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.r_=="mr"?" \u0906\u0923\u093f {0}":_.r_=="ms"?" dan {0}":_.r_=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.r_=="ne"?" \u0930 {0}":_.r_=="or"?", \u0b13 {0}":_.r_=="pa"?" \u0a05\u0a24\u0a47 {0}":_.r_=="ro"?" \u0219i {0}":_.r_=="si"?", \u0dc3\u0dc4 {0}":_.r_=="sk"?" a {0}":_.r_=="sl"?" in {0}":_.r_=="sq"?" dhe {0}":_.r_=="sv"?" och {0}":
_.r_=="sw"?" na {0}":_.r_=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.r_=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.r_=="th"?" \u0e41\u0e25\u0e30{0}":_.r_=="tr"?" ve {0}":_.r_=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.r_=="uz"?" va {0}":_.r_=="vi"?" v\u00e0 {0}":_.r_=="zh-HK"?"\u53ca{0}":_.r_=="zu"?", ne-{0}":_.r_=="af"||_.r_=="nl"?" en {0}":_.r_=="ar"||_.r_=="ar-XB"?" \u0648{0}":_.r_=="be"||_.r_=="uk"?" \u0456 {0}":_.r_=="en-GB"||_.r_=="en-IN"?" and {0}":_.r_=="en"||_.r_=="en-XA"?
", and {0}":_.r_=="et"||_.r_=="fi"?" ja {0}":_.r_=="fr"||_.r_=="fr-CA"?" et {0}":_.r_=="zh-CN"||_.r_=="zh-TW"?"\u548c{0}":_.r_=="da"||_.r_=="is"||_.r_=="no"?" og {0}":_.r_=="es"||_.r_=="es-419"||_.r_=="es-US"?" y {0}":_.r_=="kk"||_.r_=="lo"||_.r_=="mn"?", {0}":_.r_=="bg"||_.r_=="mk"||_.r_=="ru"||_.r_=="sr"?" \u0438 {0}":_.r_=="gl"||_.r_=="it"||_.r_=="pt-BR"||_.r_=="pt-PT"?" e {0}":" i {0}";var A=_.r_=="am"?"{0} \u12a5\u1293 {1}":_.r_=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.r_=="az"?"{0} v\u0259 {1}":
_.r_=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.r_=="de"?"{0} und {1}":_.r_=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.r_=="eu"?"{0} eta {1}":_.r_=="fa"?"{0} \u0648 {1}":_.r_=="fil"?"{0} at {1}":_.r_=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.r_=="hi"?"{0} \u0914\u0930 {1}":_.r_=="hu"?"{0} \u00e9s {1}":_.r_=="hy"?"{0} \u0587 {1}":_.r_=="iw"?"{0} \u05d5-{1}":_.r_=="ja"?"{0}\u3001{1}":_.r_=="ka"?"{0} \u10d3\u10d0 {1}":_.r_=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.r_=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.r_=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.r_=="ko"?"{0} \ubc0f {1}":_.r_=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.r_=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.r_=="lt"?"{0} ir {1}":_.r_=="lv"?"{0} un {1}":_.r_=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.r_=="mn"?"{0}, {1}":_.r_=="mr"?"{0} \u0906\u0923\u093f {1}":_.r_=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.r_=="ne"?"{0} \u0930 {1}":_.r_=="or"?"{0} \u0b13 {1}":_.r_=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.r_=="ro"?"{0} \u0219i {1}":_.r_==
"si"?"{0} \u0dc3\u0dc4 {1}":_.r_=="sl"?"{0} in {1}":_.r_=="sq"?"{0} dhe {1}":_.r_=="sv"?"{0} och {1}":_.r_=="sw"?"{0} na {1}":_.r_=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.r_=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.r_=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.r_=="tr"?"{0} ve {1}":_.r_=="ur"?"{0} \u0627\u0648\u0631 {1}":_.r_=="uz"?"{0} va {1}":_.r_=="vi"?"{0} v\u00e0 {1}":_.r_=="zh-HK"?"{0}\u53ca{1}":_.r_=="zu"?"{0} ne-{1}":_.r_=="af"||_.r_=="nl"?"{0} en {1}":_.r_=="ar"||_.r_==
"ar-XB"?"{0} \u0648{1}":_.r_=="be"||_.r_=="uk"?"{0} \u0456 {1}":_.r_=="cs"||_.r_=="sk"?"{0} a\u00a0{1}":_.r_=="et"||_.r_=="fi"?"{0} ja {1}":_.r_=="fr"||_.r_=="fr-CA"?"{0} et {1}":_.r_=="id"||_.r_=="ms"?"{0} dan {1}":_.r_=="zh-CN"||_.r_=="zh-TW"?"{0}\u548c{1}":_.r_=="da"||_.r_=="is"||_.r_=="no"?"{0} og {1}":_.r_=="es"||_.r_=="es-419"||_.r_=="es-US"?"{0} y {1}":_.r_=="bg"||_.r_=="mk"||_.r_=="ru"||_.r_=="sr"?"{0} \u0438 {1}":_.r_=="en"||_.r_=="en-GB"||_.r_=="en-IN"||_.r_=="en-XA"?"{0} and {1}":_.r_==
"gl"||_.r_=="it"||_.r_=="pt-BR"||_.r_=="pt-PT"?"{0} e {1}":"{0} i {1}";_.r_==="sq"?(X=X.replace("dhe","e"),A=A.replace("dhe","e")):_.r_==="th"?(R=R.replace("{0}"," {0}"),A=A.replace("{0}","{0} "),A=A.replace("{1}"," {1}")):_.r_==="ne"?R=",":_.r_==="zh-CN"?R="":d.includes(_.r_)&&(R=" ");return M.length<2?M.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.r_)?M.length===2?
A.replace("{0}",M[0]).replace("{1}",M[1]):N.replace("{0}",M[0])+M.slice(1,-1).join(R)+X.replace("{0}",M[M.length-1]):M.join(R)};
_.F.getTimeParam=function(){return T_C(this.timeString)};
_.F.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var M={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},d;_.FD(_.Nx(),(d=this.data)==null?void 0:d.trackingParams,M,7)};
_.F.onChangeStartAtTimestamp=function(){for(var M=this.startAtTimestamp.value.split(":"),d=0,N=1,R=M.length-1;R>=0;R--)d+=Number(M[R])*N,N*=60;this.updateTimeSecs(d);this.setTimestamp()};
_.F.onOpen=function(){var M=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var d=_.nO();d?d.getPlayerPromise().then(function(N){N=N.getCurrentTime();M.updateTimeSecs(N)}):L7d()&&this.updateTimeSecs(L7d())};
_.F.setTimestamp=function(){var M=Math.floor(this.currentTimeSecs);_.ZI(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!M,timestamp:M||""}])};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Y6.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Y6.prototype,"data",void 0);_.G([_.H({value:!1,notify:!0}),_.a("design:type",Boolean)],Y6.prototype,"isStartAtChecked",void 0);_.G([_.H(),_.a("design:type",Number)],Y6.prototype,"currentTimeSecs",void 0);
_.G([_.H({computed:"computeTimeString(currentTimeSecs)"}),_.a("design:type",String)],Y6.prototype,"timeString",void 0);_.G([_.H({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.a("design:type",String)],Y6.prototype,"timeStringA11y",void 0);_.G([_.Z3("#start-at-timestamp"),_.a("design:type",Object)],Y6.prototype,"startAtTimestamp",void 0);Y6=_.G([_.w4({is:"yt-start-at-renderer",disableElementRegistration:!0})],Y6);
_.L(Y6,"yt-start-at-renderer",function(){if(tQd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;L4P===void 0&&(L4P=document.createElement("template"));var R=L4P;N.call(d,R.content.cloneNode(!0),M.content.firstChild);tQd=M}M=tQd;return M},{mode:2});var G1G;var ahe;var U1$=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"]]),uBd=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"]]),C$T=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var x1i={};x1i.YtBindingExpressionsBehavior={identity:_.z6,msg:function(M,d){d=d===void 0?{}:d;return _.le(M,d,M)},
msgPlural:function(M,d){return _.$S(M,d)},
getMusicIconFromType:function(M){if(_.Q("music_web_enable_icon_wil"))M=_.C6(M);else if(uBd.has(M))M="yt-sys-icons:"+uBd.get(M);else{var d=U1$.get(M)||_.C6(M).split(":")[1];d=_.CQN(d);var N;M=((N=C$T.get(M))!=null?N:"yt-sys-icons:")+d}return M}};var YpT;var ZfT;var E0Y;var MY4=document.head,dfe=MY4.appendChild,N1b;if(E0Y===void 0){var RTY=document.createElement("template");_.P(RTY,'\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>');E0Y=RTY}N1b=E0Y;dfe.call(MY4,N1b.content);var Z_=function(){var M=_.n.apply(this,arguments)||this;M.screenLayer=7;return M};
_.v(Z_,_.n);Z_.prototype.getScreenLayer=function(){return this.screenLayer};
Z_.prototype.onTap=function(M){M&&M.detail&&(M.detail.x||M.detail.y)&&_.K(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.dU(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(M=this.getScreenLayer(),_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:M}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Hm.Object.defineProperties(Z_.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()}}});
Z_.prototype.onTap=Z_.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Z_.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Z_.prototype,"data",void 0);_.G([_.z("data.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],Z_.prototype,"title",null);
_.G([_.z("data.serviceName"),_.a("design:type",String),_.a("design:paramtypes",[])],Z_.prototype,"icon",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Z_.prototype,"onTap",null);Z_=_.G([_.w4({is:"yt-share-target-renderer",disableElementRegistration:!0})],Z_);
_.L(Z_,"yt-share-target-renderer",function(){if(ZfT===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;YpT===void 0&&(YpT=document.createElement("template"));var R=YpT;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ZfT=M}M=ZfT;return M},{mode:2});var Xc4;var FfC;var E2=function(){var M=_.n.apply(this,arguments)||this;M.SHARE_TARGET_WIDTH=70;M.SHARE_TARGET_MARGIN_RIGHT=8;M.PAGE_SCROLL_SPEED=9;M.actionMap={"yt-share-panel-reset-action":"onReset_"};return M};
_.v(E2,_.n);_.F=E2.prototype;_.F.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.F.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.K(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.K(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.F.onReset_=function(){if(_.K(this.hostElement).querySelector("#list")){var M=_.K(this.hostElement).querySelector("#list");var d=_.K(this.hostElement).querySelector("#list");var N=d.offsetLeft,R=d.offsetParent;R||_.LGm(d)!="fixed"||(R=_.qy(d).documentElement);if(R){if(_.$h&&!i6Y(58)){var X=_.YTJ(R);N+=X.left}else Number(_.vGr)>=8&&!(Number(_.vGr)>=9)&&(X=_.YTJ(R),N-=X.left);d=_.Cro(R)?R.clientWidth-(N+d.offsetWidth):N}else d=N;nFG(M,d);this.updateScrollButtons_()}};
_.F.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.F.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.F.onScrollWheel_=function(M){M.stopPropagation();M.preventDefault();var d=HOq(_.K(this.hostElement).querySelector("#list"));M=Math.abs(M.deltaX)>Math.abs(M.deltaY)?M.deltaX:M.deltaY;nFG(_.K(this.hostElement).querySelector("#list"),d+M);this.updateScrollButtons_()};
_.F.smoothScrollByOnePage_=function(M){var d=_.K(this.hostElement).querySelector("#list"),N=(Math.floor(d.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,R=HOq(d),X=N*(M?1:-1),A=this.PAGE_SCROLL_SPEED,l=this.updateScrollButtons_.bind(this),k=0,T;(function w(){k+=A;T=k/N*2;nFG(d,R+X*(T<1?T*T:-T*T+4*T-2));k<N?window.requestAnimationFrame(w):l()})()};
_.F.updateScrollButtons_=function(){var M=HOq(_.K(this.hostElement).querySelector("#list")),d=_.K(this.hostElement).querySelector("#list").scrollWidth-_.K(this.hostElement).querySelector("#list").clientWidth;_.K(this.hostElement).querySelector("#scroll-button-back").hidden=M<=0;_.K(this.hostElement).querySelector("#scroll-button-forward").hidden=M>=d};
E2.prototype.onScrollWheel_=E2.prototype.onScrollWheel_;E2.prototype.onDataChanged_=E2.prototype.onDataChanged_;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],E2.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(x1i.YtBindingExpressionsBehavior),_.a("design:type",Object)],E2.prototype,"ytBindingExpressionsBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],E2.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],E2.prototype,"onDataChanged_",null);_.G([_.C3("wheel"),_.a("design:type",Function),_.a("design:paramtypes",[WheelEvent]),_.a("design:returntype")],E2.prototype,"onScrollWheel_",null);
E2=_.G([_.w4({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],E2);
_.L(E2,"yt-third-party-share-target-section-renderer",function(){if(FfC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Xc4===void 0&&(Xc4=document.createElement("template"));var R=Xc4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);FfC=M}M=FfC;return M},{mode:2});var M6=function(){return _.n.apply(this,arguments)||this};
_.v(M6,_.n);M6.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"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M6.prototype,"data",void 0);M6=_.G([_.w4({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],M6);
_.L(M6,"yt-third-party-network-section-renderer",function(){if(ahe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;G1G===void 0&&(G1G=document.createElement("template"));var R=G1G;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ahe=M}M=ahe;return M},{mode:2});_.eC(_.SG(function(M){return _.g("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.g("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.g(_.ho,{data:function(){return M.data().firstPartyItems}},{listItemViewModel:_.gX})))},"$f"),"first-party-network-section-view-model",{props:{data:_.cA}});var Ah9=_.a1(["data:image/svg+xml;charset=UTF-8;base64,",""]),d7=function(){var M=_.n.apply(this,arguments)||this;M.screenLayer=7;M.qrCodeEnabled=_.Q("web_enable_sharing_qr_code");M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return M};
_.v(d7,_.n);_.F=d7.prototype;_.F.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"}}}};
_.F.attached=function(){this.JSC$17722_scroller&&(this.JSC$17722_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17722_scroller.attached&&typeof this.JSC$17722_scroller.attached==="function"&&this.JSC$17722_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.F.onDataChanged=function(){var M=this,d;(d=this.data)!=null&&d.contents&&(this.hostElement.setAttribute("links-only","true"),_.Gu(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.bM(this,function(){_.YP(M.hostElement,"yt-refit");M.focusSharePanelHeader()}))};
_.F.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.F.handleSetTimestamp=function(M){var d=this.shortUrl();M.isSet&&(d=_.ne(d,"t",M.timestamp));this.maybeRenderQrCode(d)};
_.F.shortUrl=function(){var M,d=(M=this.data)==null?void 0:M.contents;if(d)for(M=0;M<d.length;M++){var N=void 0,R=void 0;if((N=d[M])==null?0:(R=N.thirdPartyNetworkSection)==null?0:R.copyLinkContainer){var X=R=N=void 0;return(X=_.q((N=d[M])==null?void 0:(R=N.thirdPartyNetworkSection)==null?void 0:R.copyLinkContainer,f6Y))==null?void 0:X.shortUrl}}};
_.F.maybeRenderQrCode=function(M){var d=this,N,R,X,A,l,k,T,W,w;return _.B(function(p){if(p.nextAddress==1){N=_.K(d.hostElement).querySelector("#qr-code");if(!d.qrCodeEnabled||!M)return N&&(N.style.display="none"),p.return();R=_.$AZ(_.h().resolve(_.xQ),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});X=document.createElement("div");return typeof R==="function"?(R(X),p.jumpTo(2)):_.D(p,R,3)}p.nextAddress!=2&&(A=p.yieldResult,A(X));T=(l=X)==null?void 0:(k=l.firstChild)==null?void 0:k.firstChild;
W=document.createElement("img");w=_.pS(Ah9,btoa(T.outerHTML));W.onload=function(){var m={canvas:N,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:W},I=new TBr;mwq(I,M);hgG(I,!1,QnY(I));var O=I.modules,y=Object.assign({},qM4,m);O=structuredClone(O);m=O.length;var c,e=(c=y.canvas)!=null?c:document.createElement("canvas");c=y.cellSize;I=y.logo;var t,C=(t=y.logoSize)!=null?t:Math.floor(m/4);m%2!==C%2&&C++;var U=y.logoPadding,Fi=y.backgroundColor;t=m*c;var Y=
y.width,$i=0;Y&&($i=y.padding,$i=Math.ceil($i*t/(Y-$i*2)),e.style.width=Y+"px",e.style.height=Y+"px");e.width!==t+$i*2&&(e.width=t+$i*2);e.height!==t+$i*2&&(e.height=t+$i*2);t=e.getContext("2d");y.autoClear&&t.clearRect(0,0,e.width,e.height);t.fillStyle=Fi;t.beginPath();t.roundRect(0,0,e.width,e.height,y.borderRadius);t.fill();t.save();t.translate($i,$i);if(I)for(e=Math.floor(m-C)/2-U,U=Math.floor(m+C)/2+U,Fi=e;Fi<U;Fi++)for(Y=e;Y<U;Y++)O[Fi][Y]=!1;for(e=0;e<m;e++)for(U=0;U<m;U++)(e<7&&U<7||e<7&&
U>=m-7||e>=m-7&&U<7)&&(O[e][U]=!1);var vj;e=(vj=y.markerColor)!=null?vj:y.color;IIb(t,0,0,c,e);IIb(t,c*(m-7),0,c,e);IIb(t,0,c*(m-7),c,e);switch(y.cellStyle){case 0:vj=O;O=vj.length;e=y.cellSize;t.beginPath();for(U=0;U<O;U++)for(Fi=0;Fi<O;Fi++)vj[U][Fi]&&t.rect(U*e,Fi*e,e,e);t.fillStyle=y.color;t.fill();break;case 1:vj=O;O=vj.length;e=y.cellSize;U=e*y.relativeCircleSize;t.fillStyle=y.color;t.beginPath();for(y=0;y<O;y++)for(Fi=0;Fi<O;Fi++)vj[y][Fi]&&(t.beginPath(),t.ellipse((y+.5)*e,(Fi+.5)*e,U/2,U/
2,0,0,2*Math.PI),t.fill());t.fill();break;case 2:vj=O;O=vj.length;e=y.cellSize;t.fillStyle=y.color;y=[[1,1],[-1,1],[-1,-1],[1,-1]];t.beginPath();for(U=0;U<O;U++)for(Fi=0;Fi<O;Fi++)if(vj[U][Fi])t.roundRect(U*e,Fi*e,e,e,e/2),U+1<O&&vj[U+1][Fi]&&t.rect(U*e+e/2,Fi*e,e,e),Fi+1<O&&vj[U][Fi+1]&&t.rect(U*e,Fi*e+e/2,e,e);else{Y=U*e+e/2;$i=Fi*e+e/2;for(var Pj=0;Pj<4;Pj++){var sS=_.V(y[Pj]),tL=sS.next().value;sS=sS.next().value;U+tL>=0&&U+tL<O&&Fi+sS>=0&&Fi+sS<O&&vj[U+tL][Fi]&&vj[U][Fi+sS]&&vj[U+tL][Fi+sS]&&
(tL=Pj*Math.PI/2,sS=e/2,t.moveTo(Y+sS*Math.cos(tL),$i+sS*Math.sin(tL)),t.arc(Y,$i,e/2,tL,tL+Math.PI/2,!1),t.lineTo(Y+sS*(Math.cos(tL)-Math.sin(tL)),$i+sS*(Math.cos(tL)+Math.sin(tL))),t.lineTo(Y+sS*Math.cos(tL),$i+sS*Math.sin(tL)))}}t.fill()}I&&t.drawImage(I,(m-C)*c/2,(m-C)*c/2,C*c,C*c);t.restore();N.style.removeProperty("display")};
W.src=_.$8(w);_.Vy(p)})};
_.F.hasCommunityPostRenderer=function(){var M,d,N,R;return!!((M=this.data)==null?0:(d=M.header)==null?0:(N=d.sharePanelHeaderRenderer)==null?0:(R=N.communityPost)==null?0:R.communityPostSectionRenderer)};
_.F.onTapClose=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.F.getScreenLayer=function(){return this.screenLayer};
_.F.logSharePanelPage=function(){if(!_.Q("enable_share_panel_navigation_logging_fix_on_web")){var M;if((M=this.data)!=null&&M.trackingParams){M=this.data.trackingParams;var d=this.parentClickTrackingParams;d=d?_.At(d):void 0;var N=_.Nx();_.dm(N,21760,d,{layer:7,parentLayer:0});N.graftServerVe(M,void 0,7);_.iY().dispatch(_.YS({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
d7.prototype.onDataChanged=d7.prototype.onDataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],d7.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],d7.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],d7.prototype,"data",void 0);_.G([_.H({value:_.le("SBOX_INAPPROPRIATE_CANCEL")}),_.a("design:type",String)],d7.prototype,"closeButtonAriaLabel",void 0);_.G([_.Z3("yt-share-panel-header-renderer"),_.a("design:type",HTMLElement)],d7.prototype,"header",void 0);_.G([_.H({selector:function(M){return M.share.parentClickTrackingParams}}),
_.a("design:type",String)],d7.prototype,"parentClickTrackingParams",void 0);_.G([_.H(),_.a("design:type",Object)],d7.prototype,"qrCodeEnabled",void 0);_.G([_.Z3("#scroller"),_.a("design:type",Object)],d7.prototype,"JSC$17722_scroller",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],d7.prototype,"onDataChanged",null);d7=_.G([_.f({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],d7);
_.L(d7,"ytd-unified-share-panel-renderer",function(){if(cNb!==void 0)return cNb;var M=document.createElement("template");_.P(M,'\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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return cNb=M},{mode:1});var VYr;var N6=function(){var M=_.n.apply(this,arguments)||this;M.modernModal=_.Q("kevlar_sign_in_modal_modernization");return M};
_.v(N6,_.n);N6.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
N6.prototype.computeShouldHideOldButtons=function(){var M;return!((M=this.data)==null?0:M.button)};
_.Hm.Object.defineProperties(N6.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var M,d;if(this.modernModal&&((M=this.data)==null?0:(d=M.button)==null?0:d.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var N,R;return(N=this.data)==null?void 0:(R=N.button)==null?void 0:R.buttonRenderer}}});
_.G([_.H(),_.a("design:type",Object)],N6.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],N6.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],N6.prototype,"modernModal",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],N6.prototype,"buttonRendererData",null);
N6=_.G([_.f({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],N6);
_.L(N6,"ytd-modal-with-title-and-button-renderer",function(){if(VYr!==void 0)return VYr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return VYr=M},{mode:1});var llq;var RM=function(){return _.n.apply(this,arguments)||this};
_.v(RM,_.n);RM.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("page-changed",this.page))};
RM.prototype.pageChangedForBinding=RM.prototype.pageChangedForBinding;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RM.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],RM.prototype,"page",void 0);_.G([_.xB("page"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RM.prototype,"pageChangedForBinding",null);
RM=_.G([_.f({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],RM);
_.L(RM,"ytd-account-item-section-header-renderer",function(){if(llq!==void 0)return llq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return llq=M},{mode:1});var $fd;var X$=function(){return _.n.apply(this,arguments)||this};
_.v(X$,_.n);X$.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"}}}};
X$.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],X$.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],X$.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Function)],X$.prototype,"onAccountItemTap",void 0);
X$=_.G([_.f({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],X$);
_.L(X$,"ytd-account-item-section-renderer",function(){if($fd!==void 0)return $fd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $fd=M},{mode:1});var B1e;var k4e;var F$=function(){return _.n.apply(this,arguments)||this};
_.v(F$,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],F$.prototype,"data",void 0);F$=_.G([_.f({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],F$);
_.L(F$,"ytd-accounts-dialog-header-renderer",function(){if(k4e!==void 0)return k4e;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return k4e=M},{mode:1});var T1P;var AP=function(){return _.n.apply(this,arguments)||this};
_.v(AP,_.n);AP.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],AP.prototype,"data",void 0);AP=_.G([_.f({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],AP);
_.L(AP,"ytd-google-account-header-renderer",function(){if(T1P!==void 0)return T1P;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return T1P=M},{mode:1});var Vd=function(){return _.n.apply(this,arguments)||this};
_.v(Vd,_.n);Vd.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"}}}};
Vd.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("page-changed",this.page))};
Vd.prototype.pageChangedForBinding=Vd.prototype.pageChangedForBinding;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vd.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Vd.prototype,"page",void 0);
_.G([_.xB("page"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Vd.prototype,"pageChangedForBinding",null);Vd=_.G([_.f({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Vd);
_.ty()(Vd,"ytd-account-section-list-renderer",function(){if(B1e===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);B1e=M}M=B1e;return M},{allowedProps:["data"],
mode:1});var DfG;var lw=function(){var M=_.n.apply(this,arguments)||this;M.enableHandlesAccountMenuSwitcher=_.Q("enable_handles_account_menu_switcher");return M};
_.v(lw,_.n);lw.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
lw.prototype.dataChanged=lw.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lw.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.G([_.Z3("#avatar"),_.a("design:type",Object)],lw.prototype,"avatar",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lw.prototype,"dataChanged",null);lw=_.G([_.f({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],lw);
_.ty()(lw,"ytd-active-account-header-renderer",function(){if(DfG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);DfG=M}M=DfG;return M},{allowedProps:["data"],
mode:1});var g29;var WfG;var $u=function(){return _.n.apply(this,arguments)||this};
_.v($u,_.n);$u.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$u.prototype.onBackTap=function(){_.YP(this.hostElement,"yt-menu-back-tapped")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$u.prototype,"data",void 0);$u=_.G([_.f({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],$u);
_.ty()($u,"ytd-simple-menu-header-renderer",function(){if(WfG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);WfG=M}M=WfG;return M},{allowedProps:["data"],
mode:2});var wcC;var BO=function(){return _.n.apply(this,arguments)||this};
_.v(BO,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BO.prototype,"data",void 0);BO=_.G([_.f({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],BO);
_.L(BO,"ytd-comment-video-thumbnail-header-renderer",function(){if(wcC!==void 0)return wcC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wcC=M},{mode:1});var pcq;var ku=function(){return _.n.apply(this,arguments)||this};
_.v(ku,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ku.prototype,"data",void 0);ku=_.G([_.f({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ku);
_.L(ku,"ytd-abuse-type-selector-renderer",function(){if(pcq!==void 0)return pcq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pcq=M},{mode:1});var mfG;var TF=function(){return _.n.apply(this,arguments)||this};
_.v(TF,_.n);TF.prototype.attached=function(){var M=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){M.additionalContextInput.focusTextInput()})};
TF.prototype.handleAdditionalContextChanged=function(){var M=this;_.OH(this,"ytd-report-channel-additional-context-update",function(){M.ytdReduxBehavior.dispatch(_.YS({type:"ADDITIONAL_CONTEXT_UPDATED",payload:M.additionalContext}))},300)};
TF.prototype.updateAdditionalContextFromBinding=function(M){this.additionalContext=M.detail.value};
TF.prototype.handleAdditionalContextChanged=TF.prototype.handleAdditionalContextChanged;_.G([_.S(_.Op),_.a("design:type",Object)],TF.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",String)],TF.prototype,"additionalContext",void 0);_.G([_.H({selector:function(M){return M.reportChannelAbuse.additionalContext}}),
_.a("design:type",String)],TF.prototype,"additionalContextRedux",void 0);_.G([_.H(),_.a("design:type",Object)],TF.prototype,"data",void 0);_.G([_.Z3("yt-text-input-form-field-renderer"),_.a("design:type",Object)],TF.prototype,"additionalContextInput",void 0);_.G([_.xB("additionalContext"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],TF.prototype,"handleAdditionalContextChanged",null);
TF=_.G([_.f({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],TF);
_.L(TF,"ytd-report-channel-modal-additional-context-renderer",function(){if(mfG!==void 0)return mfG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return mfG=M},{mode:1});var hTG;var DU=function(){var M=_.n.apply(this,arguments)||this;M.nextButtonDisabled=null;M.submitEndpoint=null;M.navigationEndpoint=null;M.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return M};
_.v(DU,_.n);_.F=DU.prototype;_.F.computeNextButtonData=function(M,d,N){var R={};d&&(R.navigationEndpoint=d);N&&(R.serviceEndpoint=N);M&&M.buttonRenderer&&_.wF.extend(R,M.buttonRenderer);return R};
_.F.handleReportChannelModalDisableNextButtonAction=function(M){this.setNextButtonIsDisabled(M)};
_.F.handleReportFormEndpointUpdateAction=function(M){this.setNextButtonIsDisabled(!!M.disableSubmitButton);this.resetEndpointData();M.submitEndpoint?this.submitEndpoint=M.submitEndpoint:M.submitNavigationEndpoint&&(this.navigationEndpoint=M.submitNavigationEndpoint)};
_.F.handleSignalActionSubmitForm=function(){var M,d=Object.keys(((M=this.reportChannelAbuseForm)==null?void 0:M.selectedVideoIds)||{}),N;M=((N=this.reportChannelAbuseForm)==null?void 0:N.additionalContext)||"";var R;N=((R=this.reportChannelAbuseForm)==null?void 0:R.impersonatedChannelUrl)||"";var X;if((X=this.data)==null?0:X.submitEndpoint){d={impersonated_channel_url:N,text:M,video_ids:d};var A;_.h().resolve(_.xV).resolveCommand((A=this.data)==null?void 0:A.submitEndpoint,{form:Object.assign({},
d,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.F.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.F.onYtServiceRequestError=function(M){this.setNextButtonIsDisabled(!1);_.Q8(this.hostElement,M.detail.error.message)};
_.F.setNextButtonIsDisabled=function(M){this.set("data.nextButton.buttonRenderer.isDisabled",M)};
_.F.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
DU.prototype.onYtServiceRequestError=DU.prototype.onYtServiceRequestError;DU.prototype.onYtServiceRequestCompleted=DU.prototype.onYtServiceRequestCompleted;_.G([_.H(),_.a("design:type",Object)],DU.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],DU.prototype,"nextButtonDisabled",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],DU.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],DU.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],DU.prototype,"submitEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],DU.prototype,"navigationEndpoint",void 0);_.G([_.H({selector:function(M){return M.reportChannelAbuse}}),
_.a("design:type",Object)],DU.prototype,"reportChannelAbuseForm",void 0);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DU.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],DU.prototype,"onYtServiceRequestError",null);
DU=_.G([_.f({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],DU);
_.L(DU,"ytd-report-channel-modal-footer-renderer",function(){if(hTG!==void 0)return hTG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hTG=M},{mode:1});var Qm4;var g7=function(){var M=_.n.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.closePopup()};
return M};
_.v(g7,_.n);g7.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
g7.prototype.handleDataChanged=function(){_.e6(this.hostElement)};
g7.prototype.closePopup=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
g7.prototype.handleDataChanged=g7.prototype.handleDataChanged;_.G([_.H(),_.a("design:type",Object)],g7.prototype,"boundOnTapDismissButton",void 0);_.G([_.H(),_.a("design:type",Object)],g7.prototype,"data",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],g7.prototype,"handleDataChanged",null);g7=_.G([_.f({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],g7);
_.L(g7,"ytd-report-channel-modal-header-renderer",function(){if(Qm4!==void 0)return Qm4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Qm4=M},{mode:1});var qfG;var WO=function(){var M=_.n.apply(this,arguments)||this;M.autoValidate=!1;M.invalid=!1;M.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return M};
_.v(WO,_.n);_.F=WO.prototype;_.F.attached=function(){var M=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){M.channelUrlInput.focusTextInput()})};
_.F.disableNextButton=function(M){_.ZI(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[M])};
_.F.handleImpersonatedChannelUrlChanged=function(){var M=this;this.disableNextButton(!0);this.invalid=!1;_.OH(this,"ytd-report-channel-impersonated-channel-update",function(){var d=M.impersonatedChannelUrl.trim();M.ytdReduxBehavior.dispatch(_.YS({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:d}));var N;((N=M.data)==null?0:N.submitEndpoint)&&d&&_.h().resolve(_.xV).resolveCommand(M.data.submitEndpoint,{form:{impersonated_channel_url:d,element:M.hostElement}})},500)};
_.F.handleModifyReportFormCommand=function(M){this.invalid=this.get("modifyReportFormCommand.action",M)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.F.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.F.updateImpersonatedChannelUrlFromBinding=function(M){this.impersonatedChannelUrl=M.detail.value};
WO.prototype.handleImpersonatedChannelUrlChanged=WO.prototype.handleImpersonatedChannelUrlChanged;_.G([_.S(_.Op),_.a("design:type",Object)],WO.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],WO.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WO.prototype,"autoValidate",void 0);_.G([_.H(),_.a("design:type",Object)],WO.prototype,"invalid",void 0);
_.G([_.H(),_.a("design:type",String)],WO.prototype,"impersonatedChannelUrl",void 0);_.G([_.H({selector:function(M){return M.reportChannelAbuse.impersonatedChannelUrl}}),
_.a("design:type",String)],WO.prototype,"impersonatedChannelUrlRedux",void 0);_.G([_.H(),_.a("design:type",Object)],WO.prototype,"data",void 0);_.G([_.Z3("#text-input"),_.a("design:type",Object)],WO.prototype,"channelUrlInput",void 0);_.G([_.xB("impersonatedChannelUrl"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WO.prototype,"handleImpersonatedChannelUrlChanged",null);
WO=_.G([_.f({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],WO);
_.L(WO,"ytd-report-channel-modal-impersonation-renderer",function(){if(qfG!==void 0)return qfG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qfG=M},{mode:1});var Il9;var v2C;var w7=function(){return _.n.apply(this,arguments)||this};
_.v(w7,_.n);w7.prototype.onCheckboxToggled=function(M){var d,N,R=(N=_.q((d=this.data)==null?void 0:d.video,_.bGI))==null?void 0:N.videoId;R&&this.ytdReduxBehavior.dispatch(M.target.checked?_.YS({type:"VIDEO_SELECTED",payload:R}):_.YS({type:"VIDEO_UNSELECTED",payload:R}))};
w7.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Hm.Object.defineProperties(w7.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.data)==null?void 0:M.video;if(!d)return{};var N;M=(N=_.q(d,_.bGI))==null?void 0:N.navigationEndpoint;if(!M)return d;_.q(M==null?void 0:M.commandMetadata,_.an)&&(_.q(M.commandMetadata,_.an).ignoreNavigation=!0);return d}}});
_.G([_.H({reflectToAttribute:!0,selector:function(M,d){return d in M.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.a("design:type",Boolean)],w7.prototype,"checked",void 0);_.G([_.H(),_.a("design:type",Object)],w7.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],w7.prototype,"video",null);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],w7.prototype,"ytdReduxBehavior",void 0);w7=_.G([_.f({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],w7);
_.L(w7,"ytd-selectable-video-renderer",function(){if(v2C!==void 0)return v2C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return v2C=M},{mode:1});var pT=function(){var M=_.n.apply(this,arguments)||this;M.monitorScroll=!0;return M};
_.v(pT,_.n);pT.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pT.prototype,"data",void 0);pT=_.G([_.f({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],pT);
_.L(pT,"ytd-selectable-video-list-renderer",function(){if(Il9!==void 0)return Il9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Il9=M},{mode:1});var OWJ;_.pO("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var mb=function(){return _.n.apply(this,arguments)||this};
_.v(mb,_.n);mb.prototype.onChange=function(M){if(M=_.cN(M).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.Q("kevlar_command_handler_migration_killswitch"))_.Ni(this.hostElement,M,this.hostElement);else{M=_.V(M);for(var d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)}};
mb.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
mb.prototype.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],mb.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mb.prototype,"data",void 0);_.G([_.H({computed:"isEnabled(data)"}),_.a("design:type",Boolean)],mb.prototype,"enabled",void 0);mb=_.G([_.f({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],mb);
_.L(mb,"ytd-toggle-item-renderer",function(){if(OWJ!==void 0)return OWJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return OWJ=M},{mode:1});var jmY;var smr;var P1r;var hP=function(){var M=_.n.apply(this,arguments)||this;M.setVisible=!1;M.boundOnSubmitButtonClick=function(){M.onSubmitButtonClick()};
M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.v(hP,_.n);hP.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}}}}}};
hP.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
hP.prototype.onSubmitButtonClick=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&!_.Q("enable_ytc_refunds_submit_form_signal_action")&&_.dU(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
hP.prototype.handleSignalActionSubmitForm=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&_.dU(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Hm.Object.defineProperties(hP.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hiddenByDefault)&&!this.setVisible}}});
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],hP.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hP.prototype,"setVisible",void 0);_.G([_.H(),_.a("design:type",Object)],hP.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],hP.prototype,"surveyFeedbackData",void 0);_.G([_.H(),_.a("design:type",Object)],hP.prototype,"boundOnSubmitButtonClick",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data","setVisible"),_.a("design:type",Object),_.a("design:paramtypes",[])],hP.prototype,"visibilityHidden",null);hP=_.G([_.w4({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],hP);
_.L(hP,"yt-flow-footer-renderer",function(){if(P1r===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;smr===void 0&&(smr=document.createElement("template"));var R=smr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);P1r=M}M=P1r;return M},{mode:2});var Qd=function(){return _.n.apply(this,arguments)||this};
_.v(Qd,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Qd.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qd.prototype,"data",void 0);_.G([_.H({selector:function(M){return M.ypc.surveyFeedbackData}}),
_.a("design:type",Object)],Qd.prototype,"surveyFeedbackData",void 0);Qd=_.G([_.f({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Qd);
_.L(Qd,"ytd-flow-footer-renderer",function(){if(jmY!==void 0)return jmY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jmY=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var o29;var rh4;var q6=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return M};
_.v(q6,_.n);_.F=q6.prototype;_.F.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.md("multiPageMenuSectionItems")}}};
_.F.handleHideEnclosingAction_=function(M){if(this.data&&this.data.items)for(var d=0;d<this.data.items.length;d++){var N=this.data.items[d].notificationRenderer;if(N&&N.notificationId==M.hideEnclosingAction.notificationId){this.splice("data.items",d,1);_.ZI(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.F.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Gu(this.hostElement,"hidden",!0)};
_.F.updateMenu_=function(M){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&M&&!M.doNotRefreshInbox){M=this.data.continuations;for(var d=0;d<M.length;d++)if(M[d].invalidationContinuationData){var N=void 0;var R=(N=M[d].invalidationContinuationData)==null?void 0:N.continuation;break}M=_.wF.clone(this.data.continuationUpdateEndpoint||null);M.continuation=R;M.click_tracking_params=this.data.trackingParams;_.dU(this.hostElement,[M])}};
_.F.onServiceRequestCompleted_=function(M,d){if(this.data&&(M=d.actions)){d=0;for(var N=M.length;d<N;d++){var R=_.q(M[d],_.L2d);if(!R)break;if((R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||R.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&R.continuationItems&&this.data.items){var X=this.data.items.length-1;this.data.items[X].continuationItemRenderer&&this.splice.apply(this,["data.items",X,1].concat(R.continuationItems))}}}};
q6.prototype.onServiceRequestCompleted_=q6.prototype.onServiceRequestCompleted_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],q6.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q6.prototype,"data",void 0);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],q6.prototype,"onServiceRequestCompleted_",null);q6=_.G([_.w4({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],q6);
_.ty()(q6,"yt-multi-page-menu-section-renderer",function(){if(rh4===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;o29===void 0&&(o29=document.createElement("template"));var R=o29;N.call(d,R.content.cloneNode(!0),M.content.firstChild);rh4=M}M=rh4;return M},{allowedProps:["data"],
mode:2});var Kf4;var yhd;var IM=function(){return _.n.apply(this,arguments)||this};
_.v(IM,_.n);IM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Hm.Object.defineProperties(IM.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)==null?0:this.data.progress*100}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IM.prototype,"data",void 0);_.G([_.z("data.progress"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],IM.prototype,"showProgressBar",null);
_.G([_.z("data.progress"),_.a("design:type",Number),_.a("design:paramtypes",[])],IM.prototype,"progress",null);IM=_.G([_.w4({is:"yt-flow-header-renderer",disableElementRegistration:!0})],IM);
_.L(IM,"yt-flow-header-renderer",function(){if(yhd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Kf4===void 0&&(Kf4=document.createElement("template"));var R=Kf4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);yhd=M}M=yhd;return M},{mode:2});var Jhq;var chd;var vO=function(){return _.n.apply(this,arguments)||this};
_.v(vO,_.n);vO.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],vO.prototype,"data",void 0);vO=_.G([_.w4({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],vO);
_.L(vO,"yt-post-confirmation-flow-step-renderer",function(){if(chd===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Jhq===void 0&&(Jhq=document.createElement("template"));var R=Jhq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);chd=M}M=chd;return M},{mode:2});var Sf9;var zT9;var OG=function(){return _.n.apply(this,arguments)||this};
_.v(OG,_.n);
OG.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],OG.prototype,"data",void 0);OG=_.G([_.w4({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],OG);
_.L(OG,"yt-refund-confirmation-flow-step-renderer",function(){if(zT9===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Sf9===void 0&&(Sf9=document.createElement("template"));var R=Sf9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);zT9=M}M=zT9;return M},{mode:2});_.aR(DrP);_.aR(g$G);var WZ4=_.W5({avatarViewModel:_.If});_.aR(wD$);var pD9=_.W5({commentInteractionViewModel:g$G,sharedSubscriptionViewModel:wD$,buttonViewModel:_.o0});_.aR(mr9);_.aR(h59);_.aR(QzD);_.aR(qWi);_.aR(I4G);var v$Y=_.W5({profileIdentityInfoViewModel:_.Lii,profileInfoViewModel:I4G});_.aR(Ohq);_.aA(Ohq,"yt-profile-card-view-model",{propNames:["data"]});var j0=function(){var M=_.n.apply(this,arguments)||this;M.enableFocusFix=_.Q("music_web_enable_focus_on_setting_menu_fix")&&_.KF("IS_MOBILE_WEB",!1);M.covered=!1;M.hideMenu=!1;M.isCommentNotificationOnProfileCard=!1;M.scrolledByTouch=!1;M.disableBackdropFilter=_.Q("web_disable_backdrop_filter");M.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return M};
_.v(j0,_.n);_.F=j0.prototype;
_.F.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"}}}};
_.F.ready=function(){var M=this;this.JSC$17831_containerElement.addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.F.attributeChanged=function(M,d){M==="menu-style"&&_.ZI(this.hostElement,"yt-multi-page-menu-closed-action",[d])};
_.F.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ux(this,this.focusOnStampFinished))};
_.F.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ux(this,this.focusOnStampFinished))};
_.F.reset=function(){this.closeJobId&&(_.IQ.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.F.focusOnStampFinished=function(M){M.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ux(this,this.focusOnStampFinished)),this.doFocus())};
_.F.doFocus=function(){var M=_.doo(this.sectionsElement);M.length&&M[0].focus()};
_.F.computeMenuStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.F.computeIsCommentNotificationOnProfileCard=function(M){return _.Q("enable_profile_cards_on_comments")&&M.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.F.computeHideMenu=function(M,d){return M||!(!d||!d.showLoadingSpinner)};
_.F.onPopupClosed=function(){this.isPopUpOpen=!1;_.ZI(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.F.onPopupOpened=function(M,d){this.isPopUpOpen=!0;d.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.YP(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.YS({type:"CHANNEL_REPORT_RESET"})))};
_.F.onYtNavigate=function(M,d){this.shouldCloseOnNavigateEvent(d.endpoint)&&_.ZI(this.hostElement,"yt-close-all-popups-action")};
_.F.handleEndpoint=function(M){M=_.q(M,_.sP);!this.isCommentNotificationOnProfileCard&&M&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17831_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.F.handleActions=function(M){for(var d=0,N=M.length;d<N;d++){var R=_.q(M[d],GJ$);R&&this.handleGetMultiPageMenuAction(R);(R=_.q(M[d],_.L2d))&&this.handleAppendContinuationItemsAction(R)}};
_.F.onServiceRequestSentOrCompleted=function(M,d){M.detail&&M.detail.endpoint&&this.handleEndpoint(M.detail.endpoint);d.actions&&this.handleActions(d.actions)};
_.F.handleGetMultiPageMenuAction=function(M){var d=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.K(this.submenuElement).appendChild(d);(M=M.menu.multiPageMenuRenderer)&&this.logSubmenu(M);d.data=M;d.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.F.handleAppendContinuationItemsAction=function(M){if(this.data&&M.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&M.continuationItems&&this.data.sections){var d=this.data.sections.length-1;this.data.sections[d].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),d--);if(this.data.sections[d].multiPageMenuNotificationSectionRenderer&&M.continuationItems){M=_.V(M==null?void 0:M.continuationItems);for(var N=M.next();!N.done;N=M.next())if(N=N.value,_.q(N,pqJ)){var R=
void 0,X=void 0,A=void 0,l=void 0,k=void 0;((R=this)==null?0:(X=R.data)==null?0:(A=X.sections)==null?0:(l=A[d])==null?0:(k=l.multiPageMenuNotificationSectionRenderer)==null?0:k.items)&&this.push("data.sections."+d+".multiPageMenuNotificationSectionRenderer.items",N)}else if(_.q(N,_.o9z)||_.q(N,_.R1))this.push("data.sections",N),d++}}};
_.F.logSubmenu=function(M){if(!_.Q("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var d=this.ytRendererBehavior.getScreenLayer(),N=_.Ou(d),R=_.vl(d);if((M=M.trackingParams)&&N&&R){var X=_.At(M);_.Q("combine_ve_grafts")?_.Nx().graftServerVe(M,R,d):_.c1(N,R,X)}}};
_.F.emptySubmenuContainer=function(){for(var M=_.K(this.submenuElement);M.firstChild;)M.removeChild(M.firstChild)};
_.F.onMenuBackTap=function(M){_.YP(this.hostElement,"yt-submenu-closed");M.stopPropagation()};
_.F.onSubmenuClosed=function(M){_.cN(M)!==this.hostElement&&(this.covered=!1,_.YP(this.hostElement,"yt-refit"),M.stopPropagation())};
_.F.onRetrieveLocation=function(M,d){d.hasComments&&(d.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),M.stopPropagation())};
_.F.shouldCloseOnNavigateEvent=function(M){if(!M)return!0;if(_.q(M,_.jgL)||_.q(M,_.sgV)||_.q(M,_.O7m)||_.q(M,_.JQ))return!1;var d;return((d=_.q(M==null?void 0:M.commandMetadata,_.an))==null?0:d.ignoreNavigation)?!1:!0};
_.F.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.F.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.F.refitAfterRender=function(){var M=this;_.bM(this,function(){_.YP(M.hostElement,"yt-refit")})};
j0.prototype.refitAfterRender=j0.prototype.refitAfterRender;j0.prototype.onRetrieveLocation=j0.prototype.onRetrieveLocation;j0.prototype.onSubmenuClosed=j0.prototype.onSubmenuClosed;j0.prototype.onMenuBackTap=j0.prototype.onMenuBackTap;j0.prototype.onServiceRequestSentOrCompleted=j0.prototype.onServiceRequestSentOrCompleted;j0.prototype.onYtNavigate=j0.prototype.onYtNavigate;j0.prototype.onPopupOpened=j0.prototype.onPopupOpened;j0.prototype.onPopupClosed=j0.prototype.onPopupClosed;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],j0.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],j0.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],j0.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],j0.prototype,"enableFocusFix",void 0);_.G([_.H(),_.a("design:type",Object)],j0.prototype,"covered",void 0);_.G([_.H({computed:"computeHideMenu(covered, data)"}),_.a("design:type",Object)],j0.prototype,"hideMenu",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.a("design:type",String)],j0.prototype,"menuStyle",void 0);
_.G([_.H({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.a("design:type",Object)],j0.prototype,"isCommentNotificationOnProfileCard",void 0);_.G([_.H(),_.a("design:type",Boolean)],j0.prototype,"isPopUpOpen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"scrolledByTouch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],j0.prototype,"disableBackdropFilter",void 0);
_.G([_.Z3("#sections"),_.a("design:type",HTMLElement)],j0.prototype,"sectionsElement",void 0);_.G([_.Z3("#spinner"),_.a("design:type",HTMLElement)],j0.prototype,"spinnerElement",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],j0.prototype,"headerElement",void 0);_.G([_.Z3("#container"),_.a("design:type",HTMLElement)],j0.prototype,"JSC$17831_containerElement",void 0);_.G([_.Z3("#submenu"),_.a("design:type",HTMLElement)],j0.prototype,"submenuElement",void 0);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],j0.prototype,"onPopupClosed",null);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],j0.prototype,"onPopupOpened",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],j0.prototype,"onYtNavigate",null);
_.G([_.C3("yt-service-request-completed"),_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],j0.prototype,"onServiceRequestSentOrCompleted",null);_.G([_.C3("yt-menu-back-tapped"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],j0.prototype,"onMenuBackTap",null);
_.G([_.C3("yt-submenu-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],j0.prototype,"onSubmenuClosed",null);_.G([_.C3("yt-retrieve-location"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],j0.prototype,"onRetrieveLocation",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],j0.prototype,"refitAfterRender",null);
j0=_.G([_.f({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],j0);
_.L(j0,"ytd-multi-page-menu-renderer",function(){if(g29!==void 0)return g29;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return g29=M},{mode:1});var bWP;var sG=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return M};
_.v(sG,_.n);_.F=sG.prototype;_.F.created=function(){this.showTooltips=!0};
_.F.computeAccessibility_=function(M){return this.get("accessibility.accessibilityData",M)||null};
_.F.onTap=function(){var M=_.Eu(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(M&&M.length===1&&M[0])_.ZI(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var d;if((d=this.data)==null?0:d.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var N;((N=this.data)==null?0:N.menuRequest)&&_.dU(this.hostElement,[this.data.menuRequest])}}};
_.F.handleTopbarMenuClosedAction=function(M){var d,N;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(M)===((d=this.data)==null?void 0:(N=d.icon)==null?void 0:N.iconType)&&this.toggleIconState(!1)};
_.F.toggleIconState=function(M){_.Q("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=M)};
_.F.handleUpdateTopbarAvatarAction=function(M){var d;M=(d=_.q(M,e0C))==null?void 0:d.avatarUrl;var N,R;d=(N=this.data)==null?void 0:(R=N.avatar)==null?void 0:R.thumbnails;M&&d&&(N={thumbnails:[Object.assign({},d[0],{url:M})]},this.set("data.avatar",N))};
_.Hm.Object.defineProperties(sG.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.K(this.hostElement).querySelector("#button")}}});
sG.prototype.onTap=sG.prototype.onTap;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],sG.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],sG.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.S5d.YtButtonBehavior),_.a("design:type",Object)],sG.prototype,"ytButtonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sG.prototype,"data",void 0);
_.G([_.Z3("yt-icon-button#button"),_.a("design:type",Object)],sG.prototype,"iconButton",void 0);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sG.prototype,"onTap",null);sG=_.G([_.f({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],sG);
_.L(sG,"ytd-topbar-menu-button-renderer",function(){if(bWP!==void 0)return bWP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bWP=M},{mode:1});var eTY;var PO=function(){return _.n.apply(this,arguments)||this};
_.v(PO,_.n);PO.prototype.getSelected=function(){return this.reasons.selected};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PO.prototype,"data",void 0);_.G([_.Z3("#reasons"),_.a("design:type",Object)],PO.prototype,"reasons",void 0);PO=_.G([_.f({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],PO);
_.L(PO,"ytd-ad-feedback-content",function(){if(eTY!==void 0)return eTY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return eTY=M},{mode:1});var HWJ;var oM=function(){return _.n.apply(this,arguments)||this};
_.v(oM,_.n);_.F=oM.prototype;_.F.onPopupOpened=function(){_.ZI(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.F.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
_.F.computeCancelButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.cancelLabel}};
_.F.onConfirmTap=function(){var M=this.content.getSelected();M!==void 0&&(M=this.data.reasons[M].endpoint)&&(_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}}),_.ZI(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.F.sendFeedbackSubmitToastAction=function(){var M;(M=this.data)!=null&&M.completionMessage&&_.ZI(this.hostElement,"yt-open-popup-action",[_.Lh(this.data.completionMessage),this])};
_.F.onCancelTap=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
oM.prototype.onPopupOpened=oM.prototype.onPopupOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oM.prototype,"data",void 0);_.G([_.Z3("#content"),_.a("design:type",Object)],oM.prototype,"content",void 0);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],oM.prototype,"onPopupOpened",null);
oM=_.G([_.f({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],oM);
_.L(oM,"ytd-ad-feedback-renderer",function(){if(HWJ!==void 0)return HWJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HWJ=M},{mode:1});var n2T;var r7=function(){return _.n.apply(this,arguments)||this};
_.v(r7,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],r7.prototype,"data",void 0);r7=_.G([_.f({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],r7);
_.L(r7,"ytd-ad-info-dialog-content",function(){if(n2T!==void 0)return n2T;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return n2T=M},{mode:1});var iWG;var KT=function(){return _.n.apply(this,arguments)||this};
_.v(KT,_.n);KT.prototype.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
KT.prototype.onConfirmTap=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
KT.prototype.computeShouldShowTitle=function(){var M;return!((M=this.data)==null||!M.title)};
KT.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
KT.prototype.onPopupClosed=KT.prototype.onPopupClosed;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],KT.prototype,"data",void 0);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],KT.prototype,"onPopupClosed",null);KT=_.G([_.f({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],KT);
_.L(KT,"ytd-ad-info-dialog-renderer",function(){if(iWG!==void 0)return iWG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return iWG=M},{mode:1});var fl9;var yd=function(){var M=_.n.apply(this,arguments)||this;M.actionButtonClass="action-button";M.dismissButtonId="dismiss-button";M.dialogDismiss=!0;return M};
_.v(yd,_.n);_.F=yd.prototype;_.F.computeInPlayer=function(M){return(M==null?void 0:M.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.F.computedLogo=function(){var M,d;return this.isDarkTheme()?(M=this.data)==null?void 0:M.logoDark:(d=this.data)==null?void 0:d.logo};
_.F.computedHeaderImage=function(){var M,d;return this.isDarkTheme()?(M=this.data)==null?void 0:M.headerImageDark:(d=this.data)==null?void 0:d.headerImage};
_.F.computeLogoIconId=function(){var M,d,N,R=(M=this.computedLogo())==null?void 0:(d=M.sources)==null?void 0:(N=d[0])==null?void 0:N.height;return R&&R%31===0?"logo-icon-with-padding":"logo-icon"};
_.F.computeLogoIconHeight=function(){var M,d,N,R=(M=this.computedLogo())==null?void 0:(d=M.sources)==null?void 0:(N=d[0])==null?void 0:N.height;return R&&R%31===0?"31":"24"};
_.F.onPopupClosed=function(){_.h().resolve(_.Gg).dispose()};
_.F.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.F.onShow=function(){this.inPlayer&&_.X8(6)};
_.F.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++){var d=_.q(this.data.impressionEndpoints[M],_.mX);d&&this.ytComponentBehavior.resolveCommand(d)}};
_.F.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ZI(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Hm.Object.defineProperties(yd.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var M,d;return!((M=this.data)==null||!M.headerImageDark)&&!((d=this.data)==null||!d.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.secondaryButton)}}});
yd.prototype.onPopupClosed=yd.prototype.onPopupClosed;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],yd.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.oh.YtVisibilityBehavior),_.a("design:type",Object)],yd.prototype,"ytVisibilityBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yd.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],yd.prototype,"actionButtonClass",void 0);_.G([_.H(),_.a("design:type",Object)],yd.prototype,"dismissButtonId",void 0);_.G([_.H(),_.a("design:type",Object)],yd.prototype,"dialogDismiss",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],yd.prototype,"hasHeaderImage",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],yd.prototype,"hasPremiumButton",null);
_.G([_.H({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.a("design:type",Boolean)],yd.prototype,"inPlayer",void 0);_.G([_.Z3("#dismiss-button"),_.a("design:type",HTMLElement)],yd.prototype,"dismissButton",void 0);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],yd.prototype,"onPopupClosed",null);yd=_.G([_.f({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],yd);
_.L(yd,"ytd-enforcement-message-view-model",function(){if(fl9!==void 0)return fl9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return fl9=M},{mode:1});var Lfr;var tYd;var JP=function(){var M=_.n.apply(this,arguments)||this;M.TEST_ONLY={immediateValidation:function(){M.immediateValidation()},
onValidationResponse:function(d){M.onValidationResponse(d)},
onGenerateHandleFromNameResponse:function(d){M.onGenerateHandleFromNameResponse(d)}};
return M};
_.v(JP,_.n);_.F=JP.prototype;_.F.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.F.validate=function(){this.immediateValidation()};
_.F.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.F.setHandleInputValue=function(M){this.handleDir=this.getHandleDir(M);this.handleInput.value=M;this.validationState={status:"PENDING"};this.immediateValidation()};
_.F.getHandleDir=function(M){var d=M===""&&!1;return(d=_.axz.test.call(_.axz,M))?"rtl":"ltr"};
_.F.onDataChanged=function(){var M,d;this.handleDir=this.getHandleDir((d=(M=this.data)==null?void 0:M.handle)!=null?d:"");var N;this.validationState=((N=this.data)==null?0:N.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var R;((R=this.data)==null?0:R.validateOnInit)&&this.immediateValidation()};
_.F.stopPropagation=function(M){M.stopPropagation()};
_.F.onInput=function(){var M;this.handleDir=this.getHandleDir((M=this.handleInput.value)!=null?M:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.F.onFocusout=function(M){this.handleInput.contains(M.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.F.delayedValidation=function(){var M,d;this.debouncedValidation((d=(M=this.data)==null?void 0:M.validationDelayMs)!=null?d:1E3)};
_.F.immediateValidation=function(){this.debouncedValidation(0)};
_.F.debouncedValidation=function(M){var d=this;_.OH(this,"debouncedValidation",function(){var N,R=d.staticValidation((N=d.handleInput.value)!=null?N:"");if(R!==void 0)d.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:R};else{var X;if((X=d.data)!=null&&X.validateChannelHandleCommand){d.validationState={status:"LOADING"};var A;d.ytComponentBehavior.resolveCommand(d.data.validateChannelHandleCommand,{form:{handle:(A=d.handleInput.value)!=null?A:""},commandController:{onSuccess:function(l,
k){d.onValidationResponse(k)},
onServerError:function(l,k){d.onValidationServerError(k)}}})}else d.handleUnexpectedValidationError(new _.WJ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",d.data))}},M)};
_.F.staticValidation=function(M){var d;if(((d=this.data)==null?void 0:d.channelHandleStaticValidationParams)!==void 0){d=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(M)&&d.validValueRegexpErrorMessage!==void 0)return d.validValueRegexpErrorMessage;if(d.minLength!==void 0&&M.length<d.minLength&&d.minLengthErrorMessage!==void 0)return d.minLengthErrorMessage;if(d.maxLength!==void 0&&M.length>d.maxLength&&d.maxLengthErrorMessage!==void 0)return d.maxLengthErrorMessage}};
_.F.onValidationResponse=function(M){var d=_.q(M.result,HGJ);d===void 0?this.handleUnexpectedValidationError(new _.WJ("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",M)):this.handleValidationResultRenderer(d)};
_.F.onValidationServerError=function(M){this.handleUnexpectedValidationError(new _.WJ("ValidateChannelHandle request failed.",M))};
_.F.handleValidationResultRenderer=function(M){if(M.handle===void 0)this.handleUnexpectedValidationError(new _.WJ("ChannelHandleValidationResultRenderer does not contain handle.",M));else if(M.handle===this.handleInput.value)switch(M.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:M.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:M.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.WJ("Unrecognized ChannelHandleValidationResult",M));break;default:_.RC(M.result)}};
_.F.handleUnexpectedValidationError=function(M){var d;this.validationState={status:"UNKNOWN",handle:(d=this.handleInput.value)!=null?d:""};_.vh(M)};
_.F.stopEventPropagation=function(M){M.stopPropagation()};
_.F.updateHandleOnChannelNameInputChange=function(M){if(!this.wasEdited){var d,N;this.debouncedGenerateHandleFromName(M,(N=(d=this.data)==null?void 0:d.validationDelayMs)!=null?N:1E3)}};
_.F.debouncedGenerateHandleFromName=function(M,d){var N=this;_.OH(this,"debouncedGenerateHandleFromName",function(){var R;(R=N.data)!=null&&R.validateChannelHandleCommand?N.ytComponentBehavior.resolveCommand(N.data.validateChannelHandleCommand,{form:{name:M},commandController:{onSuccess:function(X,A){N.onGenerateHandleFromNameResponse(A)},
onServerError:function(X,A){_.vh(new _.WJ("Error calling GenerateHandleFromName",A))}}}):_.vh(new _.WJ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",N.data))},d)};
_.F.onGenerateHandleFromNameResponse=function(M){this.wasEdited||((M=_.q(M.result,nc9))?this.setHandleInputValue(M.handle):_.vh(new _.WJ("Invalid results when generate handle from name")))};
_.Hm.Object.defineProperties(JP.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M;if(M=this.validationState)M=this.validationState,M=M.status==="OK"||M.status==="UNKNOWN";if(M)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.validationState)==null?void 0:M.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var M,d=(M=this.channelHandleEntity)==null?void 0:M.handleEdit;this.handleDir=this.getHandleDir(d!=null?d:"");return d}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var M,d;if(((M=this.data)==null?void 0:(d=M.channelHandleStaticValidationParams)==null?void 0:d.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
JP.prototype.stopEventPropagation=JP.prototype.stopEventPropagation;JP.prototype.onDataChanged=JP.prototype.onDataChanged;JP.prototype.applyHandleEdit=JP.prototype.applyHandleEdit;JP.prototype.onValueChanged=JP.prototype.onValueChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],JP.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JP.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Boolean)],JP.prototype,"wasEdited",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],JP.prototype,"handleDir",void 0);_.G([_.Z3("#handle-input"),_.a("design:type",Object)],JP.prototype,"handleInput",void 0);_.G([_.H(),_.z("validationState"),_.a("design:type",Object),_.a("design:paramtypes",[])],JP.prototype,"value",null);
_.G([_.xB("value"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JP.prototype,"onValueChanged",null);_.G([_.z("validationState"),_.a("design:type",Object),_.a("design:paramtypes",[])],JP.prototype,"errorIndicator",null);_.G([_.H({reflectToAttribute:!0}),_.z("errorIndicator"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],JP.prototype,"borderErrorIndicator",null);
_.G([_.H({selectorArgs:["data.channelHandleEntityKey"],selector:function(M,d){return _.Rz(M.entities,"channelHandle",d)}}),
_.a("design:type",Object)],JP.prototype,"channelHandleEntity",void 0);_.G([_.z("channelHandleEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],JP.prototype,"handleEdit",null);_.G([_.xB("handleEdit"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JP.prototype,"applyHandleEdit",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JP.prototype,"onDataChanged",null);
_.G([_.z("data.channelHandleStaticValidationParams.validValueRegexp"),_.a("design:type",Object),_.a("design:paramtypes",[])],JP.prototype,"validValueRegexp",null);_.G([_.C3("yt-service-request-sent"),_.C3("yt-service-request-completed"),_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],JP.prototype,"stopEventPropagation",null);JP=_.G([_.f({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],JP);
_.L(JP,"ytd-channel-handle-input-renderer",function(){if(tYd!==void 0)return tYd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return tYd=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var cO=function(){var M=_.n.apply(this,arguments)||this;M.data=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!1;M.enableNewChannelCreationOnIdForAll=_.Q("enable_new_channel_creation_for_id4all");M.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};M.testOnly={setErrorMessage:function(d){M.resetErrorState();
M.setErrorState(d)}};
return M};
_.v(cO,_.n);_.F=cO.prototype;_.F.created=function(){this.logScreenVe()};
_.F.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")};
_.F.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var M;((M=this.zeroStepErrorMessageEntity)==null?0:M.value)&&this.set("errorMessage",_.ep(this.zeroStepErrorMessageEntity.value))};
_.F.onCreateTap=function(){var M=this;if(this.data&&this.data.channelCreationEndpoint){var d,N;if(!((d=this.data.createChannelButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)){var R;if((R=this.nameInput)!=null&&R.value){this.setLoadingState();var X,A;d=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(X=this.handleInput)==null?void 0:X.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((A=this.handleInput)==null?void 0:A.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:d,commandController:{onSuccess:function(l,k){M.onChannelCreationEndpointSuccess(k);M.obakeImageSource&&_.hQ("channelCreatedWithObakeImage",{imageSourceType:M.obakeImageSource})},
onServerError:function(){M.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.F.endpointRequiresServiceRequestAction=function(M){return!!_.q(M,_.Kt)||!!_.q(M,e0C)};
_.F.isNavigateAction=function(M){var d;return!!_.q(M,_.oE)||!!_.q((d=_.q(M,LQe))==null?void 0:d.command,_.oE)};
_.F.isPlaylistAction=function(M){return!!_.q(M,_.Pq)||!!_.q(M,_.J6)};
_.F.onChannelCreationEndpointSuccess=function(M){if(M.createChannelError){var d;this.setErrorState((d=M.createChannelError)==null?void 0:d.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.Q("enable_secondary_channel_creation_form")&&M.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(M.navigationEndpoint);if(M.actions){d=_.V(M.actions);for(var N=d.next();!N.done;N=d.next())if(N=N.value,this.endpointRequiresServiceRequestAction(N)&&this.ytComponentBehavior.resolveCommand(N),
this.isNavigateAction(N)){var R=void 0;N=_.q((R=_.q(N,LQe))==null?void 0:R.command,_.oE);R=void 0;this.isPlaylistAction((R=N)==null?void 0:R.endpoint)&&(_.ZI(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),R=void 0,this.ytComponentBehavior.resolveCommand((R=N)==null?void 0:R.endpoint))}}M.actions&&M.actions.some(function(X){var A;return _.q(X,_.oE)||_.q((A=_.q(X,LQe))==null?void 0:A.command,_.oE)})||_.ZI(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.F.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.F.onCancelTap=function(){var M,d,N;if(!((M=this.data)==null?0:(d=M.cancelButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)){var R,X,A;M=(R=this.data)==null?void 0:(X=R.cancelButton)==null?void 0:(A=X.buttonRenderer)==null?void 0:A.command;if(!M||!_.q(M,_.nIr)){var l;this.nameInput&&((l=this.data)==null?0:l.name)&&(this.nameInput.value=this.data.name);var k;this.handleInput&&((k=this.data)==null?0:k.channelHandleInput)&&(this.handleInput.data=_.q(this.data.channelHandleInput,iG9));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.F.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.F.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.F.onClearProfilePhotoTap=function(){var M,d,N;((M=this.data)==null?0:(d=M.clearProfilePhotoButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.F.onEditAvatarTap=function(){var M,d,N;((M=this.data)==null?0:(d=M.editAvatarButton)==null?0:(N=d.buttonRenderer)==null?0:N.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.F.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)};
_.F.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var M;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((M=this.data)==null?0:M.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.F.setErrorState=function(M){this.resetErrorState();if(M)this.set("errorMessage",M);else{var d;if((d=this.zeroStepErrorMessageEntity)==null?0:d.value)this.set("errorMessage",_.ep(this.zeroStepErrorMessageEntity.value));else{var N;((N=this.data)==null?0:N.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.F.fetchImageBlobWithAlr=function(M,d){d=d===void 0?5:d;var N=this,R,X,A,l,k;return _.B(function(T){switch(T.nextAddress){case 1:return _.D(T,fetch(M,{method:"GET",mode:"cors"}),2);case 2:R=T.yieldResult;if(R.ok){T.jumpTo(3);break}if(d===0)throw Error();X=N.addJitter(Math.pow(2,5-d));return _.D(T,new Promise(function(W){setTimeout(W,X*1E3)}),4);
case 4:return T.return(N.fetchImageBlobWithAlr(M,d-1));case 3:if(!R.headers.get("content-type").split(";").some(function(W){return W.trim()==="text/plain"})){T.jumpTo(5);
break}A=N;l=A.fetchImageBlobWithAlr;return _.D(T,R.text(),6);case 6:return T.return(l.call(A,T.yieldResult,d-1));case 5:return _.D(T,R.blob(),7);case 7:return k=T.yieldResult,T.return(k)}})};
_.F.addJitter=function(M){var d=M*.3*Math.random();Math.random()>.5&&(d*=-1);return M+d};
_.F.openProfilePicturePicker=function(){var M=this,d,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){d=M.data.scottyUploadUrl;if(!d)return l.return();N=document.documentElement.hasAttribute("dark");R=document.body.style.colorScheme;N&&(document.body.style.colorScheme="dark");X=G7i(akq(tSe(b5J(N?"dark":"light")),function(k){var T,W,w,p,m;return _.B(function(I){if(I.nextAddress==1)return T=_.ne(l0Y(new WH(k.photoUrl,!1)).build(),"alr","yes"),M.obakeImageSource=M.pictureChangeSourceToObakeImageSourceType(k.photoSource),
_.Mv(I,2),M.setLoadingState(),_.D(I,M.fetchImageBlobWithAlr(T),4);if(I.nextAddress!=2)return W=I.yieldResult,w=new FileReader,w.addEventListener("load",function(){var O,y,c,e,t,C;return _.B(function(U){if(U.nextAddress==1){if(W.size>15728640)return M.setErrorState((O=M.data)==null?void 0:O.imageSizeErrorMessage),_.vh(Error("jl")),U.return();if(!w.result)return M.setErrorState((y=M.data)==null?void 0:y.genericImageLoadErrorMessage),_.vh(Error("kl")),U.return();c=w.result;_.Mv(U,2);return _.D(U,jzP(W,
d),4)}if(U.nextAddress!=2)return e=U.yieldResult,M.handleImageUpdatedAction(c,e),M.resetErrorState(),_.cJ(U,0);t=_.Fg(U);M.setErrorState((C=M.data)==null?void 0:C.uploadErrorMessage);if(t instanceof Error)_.qZ(t);else{var Fi=new _.WJ(JSON.stringify(t));_.qZ(Fi)}_.Vy(U)})}),w.readAsDataURL(W),_.cJ(I,0);
p=_.Fg(I);M.setErrorState((m=M.data)==null?void 0:m.genericImageLoadErrorMessage);p instanceof Error?_.qZ(p):_.IR(new _.WJ(JSON.stringify(p)));_.Vy(I)})}),function(){M.hideContainer=!1;
document.body.style.colorScheme=R});
_.Mv(l,2);return _.D(l,X.openPicker(),4)}if(l.nextAddress!=2)return _.cJ(l,0);_.Fg(l);M.setErrorState((A=M.data)==null?void 0:A.selectImageErrorMessage);_.Vy(l)})};
_.F.pictureChangeSourceToObakeImageSourceType=function(M){switch(M){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.F.logScreenVe=function(){_.dm(_.Nx(),124448)};
_.F.graftServerVe=function(){var M=_.vl(),d,N,R=(d=this.data)==null?void 0:(N=d.loggingDirectives)==null?void 0:N.trackingParams;R&&M&&(this.channelCreationFormVe=_.Nx().graftServerVe(R,M),M={visualElement:this.channelCreationFormVe},_.Mx().reportShown(M))};
_.F.isNameChanged=function(M){var d;return((d=this.data)==null?void 0:d.name)!==M};
_.F.isHandleChanged=function(M){var d,N=_.q((d=this.data)==null?void 0:d.channelHandleInput,iG9);return N&&M?N.handle!==M:!1};
_.F.handleImageUpdatedAction=function(M,d){this.hideContainer=!1;this.previewDataUrl=M;this.encryptedBlobId=d};
_.F.handleImageSelectionErrorAction=function(M){this.hideContainer=!1;this.setErrorState(M)};
_.F.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.F.showContainer=function(){this.hideContainer=!1};
_.F.maybeWipeZeroStepErrorMessage=function(){var M,d=(M=this.data)==null?void 0:M.zeroStepErrorMessageEntityKey,N;d&&((N=this.zeroStepErrorMessageEntity)==null?0:N.value)&&this.ytdReduxBehavior.dispatch(_.la("stringEntity",d,{key:d,value:""}))};
_.Hm.Object.defineProperties(cO.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var M;return((M=this.photoThumbnail)==null?0:M.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.descriptionInfo}}});
cO.prototype.dataChanged=cO.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],cO.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cO.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],cO.prototype,"errorMessage",void 0);
_.G([_.H(),_.a("design:type",Object)],cO.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",String)],cO.prototype,"previewDataUrl",void 0);_.G([_.H(),_.a("design:type",Number)],cO.prototype,"obakeImageSource",void 0);_.G([_.H(),_.a("design:type",Object)],cO.prototype,"hideContainer",void 0);_.G([_.Z3("#title-input"),_.a("design:type",Object)],cO.prototype,"nameInput",void 0);_.G([_.Z3("#handle-input"),_.a("design:type",Object)],cO.prototype,"handleInput",void 0);
_.G([_.H(),_.a("design:type",Boolean)],cO.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.G([_.H({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.vI6}),_.a("design:type",Object)],cO.prototype,"zeroStepErrorMessageEntity",void 0);_.G([_.z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"photoThumbnail",null);
_.G([_.z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"userSetPhotoThumbnailUrl",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],cO.prototype,"hideProfilePhotoButtonLayer",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],cO.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.G([_.NS("data","zeroStepErrorMessageEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],cO.prototype,"dataChanged",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],cO.prototype,"description",null);cO=_.G([_.f({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],cO);
_.L(cO,"ytd-channel-creation-dialog-renderer",function(){if(Lfr!==void 0)return Lfr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" 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');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Lfr=M},{mode:1});var G4G;var S0=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.isDisabled=!1;return M};
_.v(S0,_.n);S0.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
S0.prototype.updateDisabled=function(){var M;this.isDisabled=this.isLoading||((M=this.handleInput)==null?void 0:M.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
S0.prototype.onSaveClick=function(){var M=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var d;((d=this.data)==null?void 0:d.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 N;if((N=M.data)==null?0:N.nextEndpoint){var R;M.ytComponentBehavior.resolveCommand((R=M.data)==null?void 0:R.nextEndpoint)}else M.isLoading=
!1,M.closeDialog()},
onServerError:function(){M.isLoading=!1;M.handleInput.validate();var N;M.errorMessage=(N=M.data)==null?void 0:N.errorMessage}}}))}};
S0.prototype.closeDialog=function(){_.ZI(this.hostElement,"yt-close-popup-action",[this.is])};
S0.prototype.updateDisabled=S0.prototype.updateDisabled;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],S0.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],S0.prototype,"data",void 0);_.G([_.Z3("#handle-input"),_.a("design:type",Object)],S0.prototype,"handleInput",void 0);_.G([_.xB("isLoading"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],S0.prototype,"updateDisabled",null);
S0=_.G([_.f({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],S0);
_.L(S0,"ytd-channel-handle-edit-dialog-renderer",function(){if(G4G!==void 0)return G4G;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return G4G=M},{mode:1});var alr;var zF=function(){return _.n.apply(this,arguments)||this};
_.v(zF,_.n);zF.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zF.prototype,"data",void 0);zF=_.G([_.f({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],zF);
_.L(zF,"ytd-channel-switcher-footer-renderer",function(){if(alr!==void 0)return alr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return alr=M},{mode:1});var UfP;var u1q;var bw=function(){return _.n.apply(this,arguments)||this};
_.v(bw,_.n);bw.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
bw.prototype.onIronChange=bw.prototype.onIronChange;_.G([_.H(),_.a("design:type",Object)],bw.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Function)],bw.prototype,"onDontAskAgainChanged",void 0);_.G([_.Z3("#checkbox"),_.a("design:type",Object)],bw.prototype,"checkbox",void 0);_.G([_.C3("iron-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],bw.prototype,"onIronChange",null);
bw=_.G([_.f({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],bw);
_.L(bw,"ytd-identity-prompt-footer-renderer",function(){if(u1q!==void 0)return u1q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return u1q=M},{mode:1});var e0=function(){var M=_.n.apply(this,arguments)||this;M.dontAskAgain=!1;M.showPopup=!1;M.boundDontAskAgainChanged=function(d){M.dontAskAgainChanged(d)};
M.boundOnAccountItemTap=function(d){M.onAccountItemTap(d)};
return M};
_.v(e0,_.n);_.F=e0.prototype;
_.F.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]]"}}}}}};
_.F.ready=function(){var M=this;_.K(this.hostElement).querySelector("#container").addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.F.dontAskAgainChanged=function(M){this.dontAskAgain=M};
_.F.onAccountItemTap=function(M){if(M){var d={};this.dontAskAgain&&(d={dont_ask_again:this.dontAskAgain});_.Ij(M,d)}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.F.redirectOnlyAccount=function(M){M.sections&&M.sections.length>0&&(M=_.q(M.sections[0],_.nhJ),(M==null?0:M.contents)&&(M==null?void 0:M.contents.length)<=1?(M=_.is(window.location.href),(M==null?0:M.next)&&_.j_r(M.next)?_.Ij(M.next):_.Ij("/")):this.showPopup=!0)};
e0.prototype.dataChanged=e0.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],e0.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],e0.prototype,"dontAskAgain",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],e0.prototype,"showPopup",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],e0.prototype,"boundDontAskAgainChanged",void 0);_.G([_.H({reflectToAttribute:!1}),_.a("design:type",Object)],e0.prototype,"boundOnAccountItemTap",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],e0.prototype,"dataChanged",null);
e0=_.G([_.f({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],e0);
_.L(e0,"ytd-channel-switcher-renderer",function(){if(UfP!==void 0)return UfP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return UfP=M},{mode:1});var C1P;var HO=function(){return _.n.apply(this,arguments)||this};
_.v(HO,_.n);_.Hm.Object.defineProperties(HO.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.G([_.H(),_.a("design:type",Object)],HO.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],HO.prototype,"steps",null);HO=_.G([_.f({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],HO);
_.L(HO,"ytd-channel-transfer-stepper-renderer",function(){if(C1P!==void 0)return C1P;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return C1P=M},{mode:1});var xfG;var nT=function(){var M=_.n.apply(this,arguments)||this;M.data=null;M.isError=!1;M.isLoading=!1;return M};
_.v(nT,_.n);_.F=nT.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.F.computeProfileName=function(M){return M?M.givenNameValue+" "+M.familyNameValue:""};
_.F.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)};
_.F.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)};
nT.prototype.onYtServiceRequestError=nT.prototype.onYtServiceRequestError;nT.prototype.onYtServiceRequestSent=nT.prototype.onYtServiceRequestSent;nT.prototype.dataChanged=nT.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nT.prototype,"data",void 0);
_.G([_.H({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.a("design:type",String)],nT.prototype,"profileName",void 0);_.G([_.H(),_.a("design:type",Object)],nT.prototype,"isError",void 0);_.G([_.H(),_.a("design:type",Object)],nT.prototype,"isLoading",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nT.prototype,"dataChanged",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],nT.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],nT.prototype,"onYtServiceRequestError",null);nT=_.G([_.f({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],nT);
_.L(nT,"ytd-channel-warm-welcome-cont-renderer",function(){if(xfG!==void 0)return xfG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return xfG=M},{mode:1});var Yfd;var iw=function(){var M=_.n.apply(this,arguments)||this;M.data=null;return M};
_.v(iw,_.n);iw.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],iw.prototype,"data",void 0);iw=_.G([_.f({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],iw);
_.L(iw,"ytd-channel-warm-welcome-renderer",function(){if(Yfd!==void 0)return Yfd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Yfd=M},{mode:1});var ZWG;var fT=function(){return _.n.apply(this,arguments)||this};
_.v(fT,_.n);_.Hm.Object.defineProperties(fT.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.authorThumbnail)||{}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],fT.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],fT.prototype,"thumbnailDetails",null);fT=_.G([_.f({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],fT);
_.L(fT,"ytd-comment-preview-renderer",function(){if(ZWG!==void 0)return ZWG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZWG=M},{mode:1});var E2i;var LT=function(){return _.n.apply(this,arguments)||this};
_.v(LT,_.n);LT.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Hm.Object.defineProperties(LT.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.submitButton}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LT.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],LT.prototype,"submitButton",null);LT=_.G([_.f({is:"ytd-notice-renderer",disableElementRegistration:!0})],LT);
_.L(LT,"ytd-notice-renderer",function(){if(E2i!==void 0)return E2i;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return E2i=M},{mode:1});var Mq4;var tP=function(){return _.n.apply(this,arguments)||this};
_.v(tP,_.n);tP.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tP.prototype,"data",void 0);tP=_.G([_.f({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],tP);
_.L(tP,"ytd-preview-comment-dialog-content",function(){if(Mq4!==void 0)return Mq4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Mq4=M},{mode:1});var dMJ;var GF=function(){return _.n.apply(this,arguments)||this};
_.v(GF,_.n);GF.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
GF.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],GF.prototype,"data",void 0);GF=_.G([_.f({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],GF);
_.L(GF,"ytd-preview-comment-dialog-renderer",function(){if(dMJ!==void 0)return dMJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return dMJ=M},{mode:1});var NVD;var RUd=_.Q("web_button_rework")&&_.KF("BUTTON_REWORK")||_.Q("web_button_rework_with_live"),aM=function(){var M=_.n.apply(this,arguments)||this;M.selectedAmountIndex=1;M.privacyCheckboxValue=!1;M.useAmsterdamStyle=RUd;M.amountPlaceholderIndex=-1;return M};
_.v(aM,_.n);_.F=aM.prototype;_.F.onAmountClick=function(M){this.selectedAmountIndex=_.K(this.hostElement).querySelector("#amounts").indexForElement(M.currentTarget)};
_.F.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ZI(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.F.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ZI(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ZI(this.hostElement,"yt-close-popup-action",[this.is]);var M;(M=_.nO())==null||M.getPlayerPromise().then(function(d){d.pauseVideo()})}};
_.F.donationCallback=function(M){M.success?(this.hostElement.hasAttribute("live-chat")&&M.response&&M.response.data&&M.response.data.actions&&_.ZI(this.hostElement,"yt-live-chat-open-popup",[M.response.data.actions[0]]),_.ZI(this.hostElement,"yt-close-popup-action",[this.is]),_.ZI(this.hostElement,"yt-live-chat-close-buy-flow")):M.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(M.errorMessageRenderer)};
_.F.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.K(this.hostElement).querySelector("#custom-amount-input").focus()};
_.F.updateConfirmationDialogTextWithAmount=function(M){var d=this.getConfirmDialogRuns();d&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(d),"text"],this.getFormattedAmount(M))};
_.F.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.F.getAmountPlaceholderIndex=function(M){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=M.findIndex(function(d){return d.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.F.getFormattedAmount=function(M){var d;return(new _.Kh(4,((d=this.data)==null?void 0:d.currencyCode)||"")).format(M)};
_.F.isAmountValid=function(M){if(M==="")return!1;M=Number(M)*1E6;var d=this.get("minAmountMicros",this.data),N=this.get("maxAmountMicros",this.data);return d&&M<d||N&&M>N?!1:!0};
_.F.setInputError=function(){this.shouldShowValidationError?_.K(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.K(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.F.setInitialCheckboxValue=function(){var M;this.privacyCheckboxValue=!((M=this.data)==null||!M.privacyCheckboxInitialState)};
_.F.updateCustomAmountInputFromBinding=function(M){this.customAmountInput=M.detail.value};
_.F.updatePrivacyCheckboxValueFromBinding=function(M){this.privacyCheckboxValue=M.detail.value};
_.Hm.Object.defineProperties(aM.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var M=this,d,N;return((d=this.data)==null?void 0:(N=d.suggestedAmounts)==null?void 0:N.map(function(R,X){return{buttonRenderer:{style:M.selectedAmountIndex===X?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:R.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var M=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(M&&this.amountMicros!==null)return Object.assign({},M,{ypcGetCartEndpoint:Object.assign({},M.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var M=this.get("confirmLargeAmount",this.data);if(M&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),M}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.get("donateButton.buttonRenderer",this.data);if(M)return Object.assign({},M,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
aM.prototype.setInitialCheckboxValue=aM.prototype.setInitialCheckboxValue;aM.prototype.setInputError=aM.prototype.setInputError;aM.prototype.setFocusOnCustomAmountInput=aM.prototype.setFocusOnCustomAmountInput;_.G([_.S(BQT),_.a("design:type",Object)],aM.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],aM.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],aM.prototype,"selectedAmountIndex",void 0);_.G([_.H(),_.a("design:type",String)],aM.prototype,"customAmountInput",void 0);_.G([_.H(),_.a("design:type",Object)],aM.prototype,"privacyCheckboxValue",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],aM.prototype,"useAmsterdamStyle",void 0);_.G([_.xB("customAmount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aM.prototype,"setFocusOnCustomAmountInput",null);_.G([_.z("data","selectedAmountIndex"),_.a("design:type",Array),_.a("design:paramtypes",[])],aM.prototype,"suggestedAmountButtons",null);
_.G([_.z("data","selectedAmountIndex"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],aM.prototype,"isCustomAmountSelected",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],aM.prototype,"showPrivacyCheckbox",null);_.G([_.z("data","selectedAmountIndex","customAmount"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"amountMicros",null);
_.G([_.z("isCustomAmountSelected","customAmountInput"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"customAmount",null);_.G([_.z("customAmount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],aM.prototype,"shouldShowValidationError",null);_.G([_.z("customAmount"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],aM.prototype,"isDonateButtonEnabled",null);
_.G([_.z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"donateCommand",null);_.G([_.z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"donateCommandWithConfirmation",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"largeDonationThreshold",null);
_.G([_.z("customAmount","donateCommand","amountMicros"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"confirmLargeAmountCommand",null);_.G([_.z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.a("design:type",Object),_.a("design:paramtypes",[])],aM.prototype,"donateButtonRenderer",null);_.G([_.xB("shouldShowValidationError"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aM.prototype,"setInputError",null);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],aM.prototype,"setInitialCheckboxValue",null);aM=_.G([_.f({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],aM);
_.L(aM,"ytd-donation-amount-picker-renderer",function(){if(NVD!==void 0)return NVD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" 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="" 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">\n      </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">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </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">\n            [[getSimpleString(data.campaignDescription)]]\n          </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">\n        [[getSimpleString(data.campaignDescription)]]\n      </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">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return NVD=M},{mode:1});var XIP;var UG=function(){return _.n.apply(this,arguments)||this};
_.v(UG,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],UG.prototype,"ytComponentBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],UG.prototype,"data",void 0);UG=_.G([_.f({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],UG);
_.L(UG,"ytd-donation-post-transaction-content",function(){if(XIP!==void 0)return XIP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return XIP=M},{mode:1});var Fgb;var uw=function(){return _.n.apply(this,arguments)||this};
_.v(uw,_.n);uw.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],uw.prototype,"data",void 0);uw=_.G([_.f({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],uw);
_.L(uw,"ytd-donation-post-transaction-renderer",function(){if(Fgb!==void 0)return Fgb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Fgb=M},{mode:1});var AzG;var Vq4;var CT=function(){return _.n.apply(this,arguments)||this};
_.v(CT,_.n);CT.prototype.computeIsStreamingProvider=function(M){return!!M.isStreamingShelf};
CT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],CT.prototype,"data",void 0);_.G([_.H({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],CT.prototype,"isStreamingProvider",void 0);
CT=_.G([_.f({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],CT);
_.L(CT,"ytd-media-provider-renderer",function(){if(Vq4!==void 0)return Vq4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Vq4=M},{mode:1});var lgb;var xu=function(){return _.n.apply(this,arguments)||this};
_.v(xu,_.n);xu.prototype.observeLightsourcePalette=function(){var M,d=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;d&&_.Wi(this.hostElement,d)};
xu.prototype.observeLightsourcePalette=xu.prototype.observeLightsourcePalette;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],xu.prototype,"data",void 0);
_.G([_.xB("data.vibrantsourceColorPaletteData"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xu.prototype,"observeLightsourcePalette",null);xu=_.G([_.f({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],xu);
_.L(xu,"ytd-streaming-pop-up-dialog",function(){if(lgb!==void 0)return lgb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return lgb=M},{mode:1});var Yu=function(){return _.n.apply(this,arguments)||this};
_.v(Yu,_.n);Yu.prototype.onPopupOpened_=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.h().resolve(_.xV).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Yu.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Yu.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"}}}}};
Yu.prototype.onPopupOpened_=Yu.prototype.onPopupOpened_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Yu.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.j1),_.a("design:type",Object)],Yu.prototype,"ytContinuationHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Yu.prototype,"data",void 0);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Yu.prototype,"onPopupOpened_",null);Yu=_.G([_.f({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Yu);
_.L(Yu,"ytd-brandconnect-popup-renderer",function(){if(AzG!==void 0)return AzG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return AzG=M},{mode:1});var $Mb;var ZU=function(){return _.n.apply(this,arguments)||this};
_.v(ZU,_.n);_.F=ZU.prototype;_.F.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){for(var M=0;M<this.getOptionRenderers().length;M++)this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.F.updateSubmitButton=function(M){this.set("data.submitButton.buttonRenderer.isDisabled",!M)};
_.F.computeAlt=function(M){return _.HD(M)};
_.F.onDismissTap=function(){_.ZI(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.getOptionRenderers=function(M){return(M=M||this.data)&&M.options?M.options.reduce(function(d,N){N.checkboxSurveyOptionRenderer&&d.push(N.checkboxSurveyOptionRenderer);return d},[]):[]};
_.F.onOptionChange=function(M){var d=this,N=!1;if(M.detail.checked)for(var R=this.getOptionRenderers().find(function(k){return k.value===M.detail.value}),X=this.getOptionRenderers(),A=0;A<X.length;A++){var l=X[A];
this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked");l.checked&&((R==null?0:R.isExclusiveOption)?!l.isExclusiveOption:l.isExclusiveOption)?this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1):l.checked&&(N=!0)}else N=this.getOptionRenderers().some(function(k,T){d.notifyPath("data.options."+T+".checkboxSurveyOptionRenderer.checked");return k.checked});
this.updateSubmitButton(N)};
_.F.onSubmitTap=function(){var M=this.getOptionRenderers().filter(function(A){return A.checked});
if(M.length!==0){var d=M.map(function(A){return A.responseEndpoint});
M=[];for(var N=1;N<d.length;N++){var R=void 0,X=(R=_.q(d[N],_.yr))==null?void 0:R.feedbackToken;X&&M.push(X)}d=[d[0]];M.length&&d.push({extra_feedback_tokens:M});_.dU(this.hostElement,d);_.ZI(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);M=this.data&&this.data.submitActions||[];if(_.Q("kevlar_command_handler_migration_killswitch"))_.Ni(this.hostElement,M,this.hostElement);else for(M=_.V(M),d=M.next();!d.done;d=M.next())this.ytComponentBehavior.resolveCommand(d.value)}};
ZU.prototype.onOptionChange=ZU.prototype.onOptionChange;ZU.prototype.dataChanged=ZU.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],ZU.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ZU.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.G([_.S(rsT),_.a("design:type",Object)],ZU.prototype,"ytdHatsSurveyBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZU.prototype,"data",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZU.prototype,"dataChanged",null);
_.G([_.C3("ytd-checkbox-survey-option-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ZU.prototype,"onOptionChange",null);ZU=_.G([_.f({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],ZU);
_.L(ZU,"ytd-checkbox-survey-renderer",function(){if($Mb!==void 0)return $Mb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $Mb=M},{mode:1});var BVi;var kS9;var EG=function(){return _.n.apply(this,arguments)||this};
_.v(EG,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.G([_.S(oyY),_.a("design:type",Object)],EG.prototype,"ytdDismissalReasonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],EG.prototype,"data",void 0);EG=_.G([_.f({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],EG);
_.L(EG,"ytd-dismissal-reason-text-renderer",function(){if(kS9!==void 0)return kS9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return kS9=M},{mode:1});var TVY;var M8=function(){return _.n.apply(this,arguments)||this};
_.v(M8,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.G([_.S(oyY),_.a("design:type",Object)],M8.prototype,"ytdDismissalReasonBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M8.prototype,"data",void 0);M8=_.G([_.f({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],M8);
_.L(M8,"ytd-dismissal-reason-video-renderer",function(){if(TVY!==void 0)return TVY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return TVY=M},{mode:1});var dn=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(dn,_.n);_.F=dn.prototype;_.F.created=function(){this.selectedFeedbackTokens=new SA};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.F.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.F.onDismissalReasonSelected=function(M,d){_.YP(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(d);this.hasReasonsSelected=!0};
_.F.onDismissalReasonDeselected=function(M,d){_.YP(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(d);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.F.onCancelTap=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
_.F.onSubmitTap=function(){var M=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(M={feedback_tokens:M},_.h().resolve(_.xV).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}));_.ZI(this.hostElement,"yt-close-popup-action")};
dn.prototype.onDismissalReasonDeselected=dn.prototype.onDismissalReasonDeselected;dn.prototype.onDismissalReasonSelected=dn.prototype.onDismissalReasonSelected;dn.prototype.dataChanged=dn.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dn.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Boolean)],dn.prototype,"hasReasonsSelected",void 0);_.G([_.H(),_.a("design:type",SA)],dn.prototype,"selectedFeedbackTokens",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],dn.prototype,"darkerDarkTheme",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dn.prototype,"dataChanged",null);
_.G([_.C3("yt-dismissal-reason-selected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],dn.prototype,"onDismissalReasonSelected",null);_.G([_.C3("yt-dismissal-reason-deselected"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,String]),_.a("design:returntype")],dn.prototype,"onDismissalReasonDeselected",null);dn=_.G([_.f({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],dn);
_.L(dn,"ytd-dismissal-follow-up-renderer",function(){if(BVi!==void 0)return BVi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return BVi=M},{mode:1});var DMq;var N8=function(){return _.n.apply(this,arguments)||this};
_.v(N8,_.n);_.F=N8.prototype;_.F.onCheckedChange=function(){this.multiselect||_.YP(this.hostElement,"yt-feedback-single-select-changed");_.K(this.hostElement).querySelector("#freeform").focus();_.YP(this.hostElement,"yt-refit")};
_.F.showTextBox=function(M,d){return M&&d};
_.F.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))};
_.F.updateDataCheckedFromBinding=function(M){this.set("data.checked",M.detail.value)};
_.F.updateDataResultTextFromBinding=function(M){this.set("data.resultText",M.detail.value)};
N8.prototype.dataChanged=N8.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],N8.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],N8.prototype,"multiselect",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],N8.prototype,"dataChanged",null);
N8=_.G([_.f({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],N8);
_.L(N8,"ytd-feedback-option-renderer",function(){if(DMq!==void 0)return DMq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return DMq=M},{mode:1});var glY;var Rv=function(){return _.n.apply(this,arguments)||this};
_.v(Rv,_.n);Rv.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Rv.prototype.onSingleSelectCheckedChanged=function(M){M=_.cN(M);for(var d=0;d<this.data.options.length;d++)if(M.data!==_.q(this.data.options[d],suC)){var N="data.options."+d+".feedbackOptionRenderer.checked";this.notifyPath(N);this.set(N,!1)}};
Rv.prototype.onSingleSelectCheckedChanged=Rv.prototype.onSingleSelectCheckedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Rv.prototype,"data",void 0);
_.G([_.C3("yt-feedback-single-select-changed"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Rv.prototype,"onSingleSelectCheckedChanged",null);Rv=_.G([_.f({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Rv);
_.L(Rv,"ytd-feedback-question-renderer",function(){if(glY!==void 0)return glY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return glY=M},{mode:1});var Wge;var Xb=function(){return _.n.apply(this,arguments)||this};
_.v(Xb,_.n);Xb.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Xb.prototype.getSelectedFeedbackResults=function(){for(var M={},d=0;d<this.data.questions.length;d++)for(var N=_.q(this.data.questions[d],juG),R=0;R<N.options.length;R++){var X=_.q(N.options[R],suC);X&&X.checked&&(M[X.optionKey]=X.resultText)}return M};
Xb.prototype.onKeyUp=function(){var M=this;_.Lq(_.IQ,function(){_.YP(M.hostElement,"yt-refit")});
_.IQ.start()};
Xb.prototype.submitSurvey=function(){var M=this.getSelectedFeedbackResults();Object.keys(M).length>0&&this.data.submitFeedbackEndpoint&&(M={survey_results:M,is_feedback_token_unencrypted:!0},_.h().resolve(_.xV).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Xb.prototype,"data",void 0);Xb=_.G([_.f({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Xb);
_.L(Xb,"ytd-feedback-survey-renderer",function(){if(Wge!==void 0)return Wge;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Wge=M},{mode:1});var wID;var pIe;var Fb=function(){return _.n.apply(this,arguments)||this};
_.v(Fb,_.n);Fb.prototype.computeAlt=function(M){return _.HD(M)};
Fb.prototype.submitResponse=function(){var M,d;(M=this.data)!=null&&M.feedbackToken&&((d=this.data)==null?void 0:d.nextStageIndex)!==void 0&&(_.Eu(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Eu(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Fb.prototype.onClick=function(){this.submitResponse()};
Fb.prototype.onClick=Fb.prototype.onClick;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Fb.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Fb.prototype,"vertical",void 0);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fb.prototype,"onClick",null);
Fb=_.G([_.f({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Fb);
_.L(Fb,"ytd-single-select-answer-option-renderer",function(){if(pIe!==void 0)return pIe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pIe=M},{mode:1});var mMd;var AR=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return M};
_.v(AR,_.n);AR.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
AR.prototype.dataChanged=function(){var M,d;this.vertical=((d=(M=this.data)==null?void 0:M.answerOrientation)!=null?d:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
AR.prototype.submitFeedback=function(M){var d;((d=this.data)==null?0:d.responseEndpoint)&&M&&_.dU(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[M]}])};
AR.prototype.dataChanged=AR.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],AR.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],AR.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],AR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],AR.prototype,"vertical",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],AR.prototype,"darkerDarkTheme",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],AR.prototype,"dataChanged",null);AR=_.G([_.f({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],AR);
_.L(AR,"ytd-single-select-question-renderer",function(){if(mMd!==void 0)return mMd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return mMd=M},{mode:1});var V2=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return M};
_.v(V2,_.n);_.F=V2.prototype;_.F.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"}}}};
_.F.dataChanged=function(){this.jumpToStage(0)};
_.F.jumpToStage=function(M){var d,N;if((d=this.data)==null?0:(N=d.stages)==null?0:N[M])this.currentStage=this.data.stages[M],this.refitAfterRender()};
_.F.computeAlt=function(M){return _.HD(M)};
_.F.computeSimpleMessage=function(M){var d;return(d=_.q(M,r6T))==null?void 0:d.messageText};
_.F.computeHideDismiss=function(M){var d;return(d=_.q(M,N9C))==null?void 0:d.hideParentDismissButton};
_.F.onDismissTap=function(){_.ZI(this.hostElement,"yt-close-popup-action");_.q(this.currentStage,r6T)||this.data.dismissalEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.F.refitAfterRender=function(){var M=this;_.bM(this,function(){_.YP(M.hostElement,"yt-refit")})};
V2.prototype.dataChanged=V2.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],V2.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);
_.G([_.S(rsT),_.a("design:type",Object)],V2.prototype,"ytdHatsSurveyBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],V2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],V2.prototype,"currentStage",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],V2.prototype,"dataChanged",null);V2=_.G([_.f({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],V2);
_.L(V2,"ytd-multi-stage-survey-renderer",function(){if(wID!==void 0)return wID;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return wID=M},{mode:1});var hU$;var lt=function(){return _.n.apply(this,arguments)||this};
_.v(lt,_.n);lt.prototype.computeAlt=function(M){return _.HD(M)};
lt.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.h().resolve(_.xV).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ZI(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.PCe(!1)))};
lt.prototype.onTap=function(){this.vertical&&this.submitResponse()};
lt.prototype.onTap=lt.prototype.onTap;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lt.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],lt.prototype,"vertical",void 0);
_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lt.prototype,"onTap",null);lt=_.G([_.f({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],lt);
_.L(lt,"ytd-single-option-survey-option-renderer",function(){if(hU$!==void 0)return hU$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hU$=M},{mode:1});var QrY;var $N=function(){return _.n.apply(this,arguments)||this};
_.v($N,_.n);_.F=$N.prototype;_.F.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){var M,d;this.vertical=(((M=this.data)==null?void 0:(d=M.surveyOrientation)==null?void 0:d.type)||"HORIZONTAL")==="VERTICAL"};
_.F.computeAlt=function(M){return _.HD(M)};
_.F.onDismissTap=function(){_.ZI(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.h().resolve(_.xV).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.PCe(!1))};
$N.prototype.dataChanged=$N.prototype.dataChanged;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],$N.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(rsT),_.a("design:type",Object)],$N.prototype,"ytdHatsSurveyBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],$N.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$N.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$N.prototype,"vertical",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$N.prototype,"dataChanged",null);$N=_.G([_.f({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],$N);
_.L($N,"ytd-single-option-survey-renderer",function(){if(QrY!==void 0)return QrY;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return QrY=M},{mode:1});var qy9;var Bd=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Bd,_.n);Bd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bd.prototype.onDismissTap=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
Bd.prototype.onNavigate=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
Bd.prototype.onNavigate=Bd.prototype.onNavigate;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Bd.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bd.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bd.prototype,"darkerDarkTheme",void 0);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Bd.prototype,"onNavigate",null);Bd=_.G([_.f({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Bd);
_.L(Bd,"ytd-survey-follow-up-renderer",function(){if(qy9!==void 0)return qy9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qy9=M},{mode:1});var IgD;var vlq;var ONi;var kN=function(){var M=_.n.apply(this,arguments)||this;M.polymer2="Element"in Polymer;return M};
_.v(kN,_.n);_.F=kN.prototype;_.F.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.F.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.F.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.F.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("minutes-changed",this.minutes))};
_.F.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("seconds-changed",this.seconds))};
_.F.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.F.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
kN.prototype.secondsChangedForBinding=kN.prototype.secondsChangedForBinding;kN.prototype.minutesChangedForBinding=kN.prototype.minutesChangedForBinding;kN.prototype.secondsChanged=kN.prototype.secondsChanged;_.G([_.H(),_.a("design:type",String)],kN.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],kN.prototype,"seconds",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],kN.prototype,"polymer2",void 0);
_.G([_.Z3("#seconds"),_.a("design:type",Object)],kN.prototype,"secondsEl",void 0);_.G([_.xB("seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kN.prototype,"secondsChanged",null);_.G([_.xB("minutes"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kN.prototype,"minutesChangedForBinding",null);
_.G([_.xB("seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],kN.prototype,"secondsChangedForBinding",null);kN=_.G([_.w4({is:"yt-timestamp-input",disableElementRegistration:!0})],kN);
_.L(kN,"yt-timestamp-input",function(){if(ONi===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vlq===void 0&&(vlq=document.createElement("template"));var R=vlq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ONi=M}M=ONi;return M},{mode:2});var Tl=function(){return _.n.apply(this,arguments)||this};
_.v(Tl,_.n);_.F=Tl.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18003_scroller.dialogElement=this.hostElement.parentNode};
_.F.dataChanged=function(){var M=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.iG().getPlayerPromise().then(function(d){d=d.getCurrentTime();M.minutes=Math.floor(d/60).toString();M.seconds=(Math.floor(d)%60).toString()})};
_.F.onTapSubmit=function(M){M.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(M={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(M.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(M.minutes=this.minutes,M.seconds=this.seconds),_.h().resolve(_.xV).resolveCommand(this.serviceEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.F.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.F.onYtServiceRequestCompleted=function(M,d){d=d.actions;if(Array.isArray(d))for(var N=0,R=d.length;N<R;N++)_.q(d[N],_.Iu)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(d[N]))};
_.F.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.F.toggleSubmitButton=function(M){this.set("submitButton.isDisabled",!M)};
_.F.handleInput=function(){var M=this.issueType,d=this.affiliation,N=this.minutes,R=this.seconds;N=!this.showTimestamp||!!N&&!!R;this.toggleSubmitButton(!!this.descriptionText&&!!M&&!!d&&N)};
_.F.computeServiceEndpoint=function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)};
_.F.computeSubmitButton=function(M){(M=this.get("submitButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.F.computeShowTimestamp=function(M){return!!M};
_.F.onValueChangedForIssueType=function(M){this.issueType=M.detail.value};
_.F.onValueChangedForAffiliation=function(M){this.affiliation=M.detail.value};
_.F.updateDescriptionTextFromBinding=function(M){this.descriptionText=M.detail.value};
_.F.updateFullNameTextFromBinding=function(M){this.fullNameText=M.detail.value};
_.F.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.F.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
Tl.prototype.handleInput=Tl.prototype.handleInput;Tl.prototype.onYtServiceRequestError=Tl.prototype.onYtServiceRequestError;Tl.prototype.onYtServiceRequestCompleted=Tl.prototype.onYtServiceRequestCompleted;Tl.prototype.onYtServiceRequestSent=Tl.prototype.onYtServiceRequestSent;Tl.prototype.dataChanged=Tl.prototype.dataChanged;_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],Tl.prototype,"ytOpenPopupBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.G([_.Z3("#scroller"),_.a("design:type",Object)],Tl.prototype,"JSC$18003_scroller",void 0);_.G([_.Z3("#description"),_.a("design:type",HTMLInputElement)],Tl.prototype,"description",void 0);_.G([_.Z3("#full-name"),_.a("design:type",Object)],Tl.prototype,"fullName",void 0);_.G([_.H(),_.a("design:type",Object)],Tl.prototype,"data",void 0);
_.G([_.H({computed:"computeShowTimestamp(data.timestampLabel)"}),_.a("design:type",Boolean)],Tl.prototype,"showTimestamp",void 0);_.G([_.H({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.a("design:type",Object)],Tl.prototype,"serviceEndpoint",void 0);_.G([_.H({computed:"computeSubmitButton(data)"}),_.a("design:type",Object)],Tl.prototype,"submitButton",void 0);_.G([_.H(),_.a("design:type",String)],Tl.prototype,"descriptionText",void 0);
_.G([_.H(),_.a("design:type",Number)],Tl.prototype,"issueType",void 0);_.G([_.H(),_.a("design:type",Number)],Tl.prototype,"affiliation",void 0);_.G([_.H(),_.a("design:type",String)],Tl.prototype,"fullNameText",void 0);_.G([_.H(),_.a("design:type",String)],Tl.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],Tl.prototype,"seconds",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tl.prototype,"dataChanged",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],Tl.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],Tl.prototype,"onYtServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Tl.prototype,"onYtServiceRequestError",null);_.G([_.xB("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tl.prototype,"handleInput",null);Tl=_.G([_.f({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Tl);
_.L(Tl,"ytd-legal-report-details-form-renderer",function(){if(IgD!==void 0)return IgD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return IgD=M},{mode:1});var jre;var DO=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return M};
_.v(DO,_.n);DO.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
DO.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var M=this.formRenderer.getForm();M&&this.data.submitEndpoint&&(_.h().resolve(_.xV).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},M,{element:this.hostElement})}),_.ZI(this.hostElement,"yt-close-popup-action"))}};
DO.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ZI(this.hostElement,"yt-close-popup-action"))};
DO.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
DO.prototype.onPopupClosed=DO.prototype.onPopupClosed;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],DO.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],DO.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);
_.G([_.Z3("yt-form-renderer"),_.a("design:type",Object)],DO.prototype,"formRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],DO.prototype,"data",void 0);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],DO.prototype,"onPopupClosed",null);DO=_.G([_.f({is:"ytd-form-popup-content",disableElementRegistration:!0})],DO);
_.L(DO,"ytd-form-popup-content",function(){if(jre!==void 0)return jre;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return jre=M},{mode:1});var sre;var gn=function(){return _.n.apply(this,arguments)||this};
_.v(gn,_.n);gn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gn.prototype.onPopupOpened=function(){_.YP(this.hostElement,"yt-invalidate-popup-tabbables")};
gn.prototype.onYtServiceRequestCompleted=function(M,d){d.data&&d.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.YP(this.hostElement,"yt-invalidate-popup-tabbables"))};
gn.prototype.onYtServiceRequestCompleted=gn.prototype.onYtServiceRequestCompleted;gn.prototype.onPopupOpened=gn.prototype.onPopupOpened;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],gn.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],gn.prototype,"data",void 0);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gn.prototype,"onPopupOpened",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],gn.prototype,"onYtServiceRequestCompleted",null);gn=_.G([_.f({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],gn);
_.L(gn,"ytd-form-popup-renderer",function(){if(sre!==void 0)return sre;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return sre=M},{mode:1});var PKe;var Wd=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;return M};
_.v(Wd,_.n);_.F=Wd.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");e1C(this.hostElement)};
_.F.onYtServiceRequestSent=function(){this.isLoading=!0};
_.F.onYtServiceRequestCompleted=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.F.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Ni(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.F.closePopupHandler=function(){this.fireOnCloseActions()};
_.F.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var M=this.get("data.headerImage.thumbnails");M&&(M=_.Hz(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")")}};
_.F.onYtNavigate=function(M){(M=_.cN(M))&&M.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Wd.prototype.onYtNavigate=Wd.prototype.onYtNavigate;Wd.prototype.onHeaderImageChanged=Wd.prototype.onHeaderImageChanged;Wd.prototype.closePopupHandler=Wd.prototype.closePopupHandler;Wd.prototype.onYtServiceRequestCompleted=Wd.prototype.onYtServiceRequestCompleted;Wd.prototype.onYtServiceRequestSent=Wd.prototype.onYtServiceRequestSent;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Wd.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wd.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Wd.prototype,"isLoading",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLDivElement)],Wd.prototype,"header",void 0);_.G([_.Z3("#confirm-button"),_.a("design:type",_.Xn)],Wd.prototype,"confirmButton",void 0);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Wd.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Wd.prototype,"onYtServiceRequestCompleted",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Wd.prototype,"closePopupHandler",null);_.G([_.xB("data.headerImage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Wd.prototype,"onHeaderImageChanged",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Wd.prototype,"onYtNavigate",null);
Wd=_.G([_.f({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Wd);
_.L(Wd,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(PKe!==void 0)return PKe;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return PKe=M},{mode:1});var olT;var wn=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;return M};
_.v(wn,_.n);_.F=wn.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);e1C(this.hostElement)};
_.F.onYtServiceRequestCompleted=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.F.onYtServiceRequestError=function(M){_.Q8(this.hostElement,M.detail.error.message)};
_.F.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.F.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ZI(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.F.onDataChanged=function(){this.isLoading=!1;var M=this.get("data.headerImage.thumbnails");M&&(M=_.Hz(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")");M=_.Ou();var d=_.vl(),N=this.get("data.trackingParams");N&&d&&M&&_.c1(M,d,_.At(N))};
_.Hm.Object.defineProperties(wn.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
wn.prototype.onDataChanged=wn.prototype.onDataChanged;wn.prototype.onDomChange=wn.prototype.onDomChange;wn.prototype.onYtServiceRequestError=wn.prototype.onYtServiceRequestError;wn.prototype.onYtServiceRequestCompleted=wn.prototype.onYtServiceRequestCompleted;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],wn.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wn.prototype,"isLoading",void 0);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],wn.prototype,"hasDescription",null);_.G([_.Z3("tp-yt-paper-dialog-scrollable"),_.a("design:type",Object)],wn.prototype,"scrollable",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],wn.prototype,"header",void 0);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wn.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wn.prototype,"onYtServiceRequestError",null);
_.G([_.C3("dom-change"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wn.prototype,"onDomChange",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wn.prototype,"onDataChanged",null);wn=_.G([_.f({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],wn);
_.L(wn,"ytd-gaming-account-link-setting-renderer",function(){if(olT!==void 0)return olT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return olT=M},{mode:1});var rzT;var Kgr;var pC=function(){var M=_.n.apply(this,arguments)||this;M.isHeader=!1;M.getEndpointForm=yTe;return M};
_.v(pC,_.n);_.F=pC.prototype;_.F.triggerHintActions=function(){var M=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var d=_.Eu(M.hostElement,"yt-get-opened-popups-action");!(d&&d.length===1?d[0]:[]).some(function(N){N=N.openPopupAction.popupType;return N==="SURVEY"||N==="MEALBAR"||N==="HINT"})&&M.data.hintActions&&M.guideOpened&&(_.Ni(M.hostElement,M.data.hintActions,M.hostElement),M.data.hintActions=void 0)})};
_.F.getBadgeIconType=function(M){return M&&M.liveBroadcasting?"live":null};
_.F.onDown=function(){this.interaction.triggerDown()};
_.F.onUp=function(){this.interaction.triggerUp()};
_.F.onTap=function(M){if(this.data.serviceEndpoint){var d;_.Q("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.q(this.data.serviceEndpoint,_.$B))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):KZT(this.data.serviceEndpoint,this);M.preventDefault()}else this.data.navigationEndpoint&&!_.Sm(_.J2(M),this.hostElement,["A".toString()])&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.F.computeActive=function(M,d){if(!M)return!1;var N=M.navigationEndpoint;M=M.serviceEndpoint;if(!N&&!M||!d)return!1;if(N){M=(M=Yr(d))&&["subscriptions","filteredsubscriptions"].includes(M);if(_.q(N,_.F8)&&_.q(d,_.F8)&&!M){var R=_.q(N,_.F8).browseId;d=_.q(d,_.F8).browseId;return R!==void 0&&d!==void 0&&(R===d||R==="VLWL"&&d==="FEwatch_later"||R==="FEwatch_later"&&d==="VLWL")}var X;N=(X=_.q(N.commandMetadata,_.an))==null?void 0:X.url;d=(R=_.q(d.commandMetadata,_.an))==null?void 0:R.url;return!(!N||
!d||N!==d&&N!==_.FO(d))}return this.isActiveShortsTab(M,d)};
_.F.isActiveShortsTab=function(M,d){d=!!_.q(d,_.$B)||!!_.q(d,_.ou);return(!!_.q(M,_.$B)||!!_.q(M,_.ou))&&d};
_.F.computeIsPrimary=function(M){return!!M};
_.Hm.Object.defineProperties(pC.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&M)return M}}});
pC.prototype.onTap=pC.prototype.onTap;pC.prototype.onUp=pC.prototype.onUp;pC.prototype.onDown=pC.prototype.onDown;pC.prototype.triggerHintActions=pC.prototype.triggerHintActions;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],pC.prototype,"componentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pC.prototype,"rendererBehavior",void 0);_.G([_.S(_.HA.YtTaskEmitterBehavior),_.a("design:type",Object)],pC.prototype,"taskEmitterBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],pC.prototype,"activeEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],pC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],pC.prototype,"guideOpened",void 0);_.G([_.H(),_.a("design:type",String)],pC.prototype,"type",void 0);_.G([_.Z3("yt-interaction"),_.a("design:type",Object)],pC.prototype,"interaction",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pC.prototype,"isHeader",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data","activeEndpoint"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],pC.prototype,"active",null);_.G([_.H({reflectToAttribute:!0}),_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],pC.prototype,"isPrimary",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.count","data.presentationStyle","data.badges.*"),_.a("design:type",String),_.a("design:paramtypes",[])],pC.prototype,"lineEndStyle",null);
_.G([_.z("lineEndStyle"),_.a("design:type",Object),_.a("design:paramtypes",[])],pC.prototype,"ariaLabel",null);_.G([_.xB("data.hintActions","guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pC.prototype,"triggerHintActions",null);_.G([_.C3("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pC.prototype,"onDown",null);
_.G([_.C3("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],pC.prototype,"onUp",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],pC.prototype,"onTap",null);pC=_.G([_.f({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],pC);
_.L(pC,"ytd-guide-entry-renderer",function(){if(Kgr!==void 0)return Kgr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Kgr=M},{mode:1});var m_=function(){var M=_.n.apply(this,arguments)||this;M.userToggled=!1;return M};
_.v(m_,_.n);_.F=m_.prototype;_.F.getItemsPath=function(){return"data.expandableItems"};
_.F.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.F.onExpanderItemTapped=function(M){var d=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.Q("kevlar_guide_expandable_items_killswitch")&&_.bM(this,function(){_.Hf(d.expandableItems)});
M.preventDefault()};
_.F.onCollapserItemTapped=function(M){var d=this;this._setExpanded(!1);this.userToggled=!0;M.preventDefault();this.expandableItems&&!_.Q("kevlar_guide_collapsible_items_killswitch")&&_.bM(this,function(){_.e6(d.hostElement)})};
_.F.observeActiveEndpoint=function(){for(var M=this.activeEndpoint,d=this.data,N=this.expandableItems.children,R=0,X=N.length;R<X;R++)N[R].activeEndpoint=M;d&&d.autoExpandCommand&&M&&!this.userToggled&&(N=this.data.autoExpandCommand,d=!(!_.q(N,_.F8)||!_.q(M,_.F8)||_.q(N,_.F8).browseId!==_.q(M,_.F8).browseId),M=this.get("commandMetadata.webCommandMetadata.url",M),N=this.get("commandMetadata.webCommandMetadata.url",N),d=d||!!(M&&N&&M.includes(N)),this._setExpanded(d),d&&this.ytLazyListBehavior.fillRemainingListItems())};
m_.prototype.observeActiveEndpoint=m_.prototype.observeActiveEndpoint;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],m_.prototype,"ytLazyListBehavior",void 0);_.G([_.Z3("#expandable-items"),_.a("design:type",HTMLElement)],m_.prototype,"expandableItems",void 0);
_.G([_.H(),_.a("design:type",Object)],m_.prototype,"data",void 0);_.G([_.H({readOnly:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],m_.prototype,"expanded",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],m_.prototype,"initialCount",void 0);_.G([_.H(),_.a("design:type",Object)],m_.prototype,"activeEndpoint",void 0);_.G([_.xB("data","activeEndpoint","canShowMore"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],m_.prototype,"observeActiveEndpoint",null);
m_=_.G([_.f({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],m_);
_.L(m_,"ytd-guide-collapsible-entry-renderer",function(){if(rzT!==void 0)return rzT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return rzT=M},{mode:_.G3("kevlar_poly_si_batch_j079")?1:2});var yzb;var JzC;var hR=function(){var M=_.n.apply(this,arguments)||this;M.allVideosCount=0;M.renderGuideEntry=!1;return M};
_.v(hR,_.n);hR.prototype.observeRenderEntry=function(){var M;this.renderGuideEntry=!((M=this.data)==null||!M.alwaysShow)||!!this.allVideosCount};
hR.prototype.observeRenderEntry=hR.prototype.observeRenderEntry;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],hR.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hR.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],hR.prototype,"activeEndpoint",void 0);_.G([_.H({selector:_.eKZ}),_.a("design:type",Object)],hR.prototype,"allVideosCount",void 0);
_.G([_.H(),_.a("design:type",Object)],hR.prototype,"renderGuideEntry",void 0);_.G([_.NS("allVideosCount","data.alwaysShow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],hR.prototype,"observeRenderEntry",null);hR=_.G([_.f({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],hR);
_.L(hR,"ytd-guide-downloads-entry-renderer",function(){if(JzC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);JzC=M}M=JzC;return M},{mode:1});var Q2=function(){var M=_.n.apply(this,arguments)||this;M.youtab=_.Q("web_enable_youtab");M.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return M};
_.v(Q2,_.n);_.F=Q2.prototype;_.F.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]]"}}}}}};
_.F.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var M=this.sectionItems.children,d=0,N=M.length;d<N;d++)M[d].activeEndpoint=this.activeEndpoint}};
_.F.handleAddToGuideSectionAction=function(M){var d=_.q(M,a6T);if(d&&this.data&&(M=d.items,d=d.handlerData,M&&d&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(d)>-1)){d=0;for(var N=M.length;d<N;d++)M[d].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,M[d])}};
_.F.handleRemoveFromGuideSectionAction=function(M){var d=_.q(M,Umr);d&&this.data&&(M=d.guideEntryId,d=d.handlerData,M&&d&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(d)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(M,this.data.sectionItems),this.removeFromCollapsedSection(M,this.data.sectionItems)))};
_.F.removeFromExpandedSection=function(M,d){M=this.getEntryIndexMatchingId(M,d);M!==-1&&this.splice("data.sectionItems",M,1)};
_.F.removeFromCollapsedSection=function(M,d){var N=d.findIndex(function(R){return!!_.q(R,$sC)});
N&&N!==-1&&d[N]&&_.q(d[N],$sC)&&(d=_.q(d[N],$sC).expandableItems)&&(M=this.getEntryIndexMatchingId(M,d),M!==-1&&this.splice("data.sectionItems."+N+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.F.getEntryIndexMatchingId=function(M,d){var N=this;return d.findIndex(function(R){return N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
Q2.prototype.activeEndpointChanged=Q2.prototype.activeEndpointChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Q2.prototype,"actionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#section-items"),_.a("design:type",HTMLDivElement)],Q2.prototype,"sectionItems",void 0);
_.G([_.Z3("#header-entry"),_.a("design:type",Object)],Q2.prototype,"headerEntry",void 0);_.G([_.H(),_.a("design:type",Object)],Q2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Q2.prototype,"activeEndpoint",void 0);_.G([_.H(),_.a("design:type",Object)],Q2.prototype,"youtab",void 0);_.G([_.xB("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Q2.prototype,"activeEndpointChanged",null);
Q2=_.G([_.f({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Q2);
_.L(Q2,"ytd-guide-collapsible-section-entry-renderer",function(){if(yzb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);yzb=M}M=yzb;return M},{mode:1});var czr;var Syq;var q8=function(){var M=_.n.apply(this,arguments)||this;M.modernTypography=_.Q("web_modern_typography");M.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return M};
_.v(q8,_.n);_.F=q8.prototype;
_.F.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}}}}};
_.F.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var M=_.Eu(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);M&&M.length===1&&M[0]&&_.Eu(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.F.handleResetChannelUnreadCountCommand=function(M){var d;(M=(d=_.q(M,C0r))==null?void 0:d.channelId)&&this.data&&this.data.items&&(d=this.getPathToEntryMatchingId(M))&&(this.set(d+".guideEntryRenderer.count",0),this.set(d+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.F.handleResetSubscriptionsUnreadDotCommand=function(M){var d,N=(d=_.q(M,xme))==null?void 0:d.targetId,R;N&&(R=this.data)!=null&&R.items&&(M=this.data.items.findIndex(function(X){var A;return((A=X.guideEntryRenderer)==null?void 0:A.targetId)===N}),M<0||this.set("data.items."+M+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.F.getPathToEntryMatchingId=function(M){if(this.data&&this.data.items){var d=this.getEntryIndexMatchingId(M,this.data.items);if(d>-1)return"data.items."+d;for(var N=0;N<this.data.items.length;N++)if(d=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[N]))if(d=this.getEntryIndexMatchingId(M,d),d>-1)return"data.items."+N+".guideCollapsibleEntryRenderer.expandableItems."+d}};
_.F.handleAddToGuideSectionAction=function(M){var d=this;if(_.q(M,a6T)){var N=_.q(M,a6T).items;M=_.q(M,a6T).handlerData;var R,X;N&&M&&((R=this.data)==null?void 0:(X=R.handlerDatas)==null?void 0:X.indexOf(M))>-1&&(N=N.filter(function(A){return(A=d.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",A))&&!d.isGuideItemPresent(A)}),this.unshift.apply(this,["data.items"].concat(_.wu(N))))}};
_.F.isGuideItemPresent=function(M){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(M,this.data.items)!==-1)return!0;var d=this.data.items.find(function(N){return!!N.guideCollapsibleEntryRenderer});
if((d==null?0:d.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(M,d.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.F.getEntryIndexMatchingId=function(M,d){var N=this;return d.findIndex(function(R){return N.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===M})};
_.F.handleRemoveFromGuideSectionAction=function(M){if(_.q(M,Umr)){var d=_.q(M,Umr).guideEntryId;M=_.q(M,Umr).handlerData;var N,R;d&&M&&((N=this.data)==null?void 0:(R=N.handlerDatas)==null?void 0:R.indexOf(M))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(d,this.data.items),this.removeFromCollapsedSection(d,this.data.items))}};
_.F.removeFromExpandedSection=function(M,d){M=this.getEntryIndexMatchingId(M,d);M!==-1&&this.splice("data.items",M,1)};
_.F.removeFromCollapsedSection=function(M,d){var N=d.findIndex(function(R){return!!R.guideCollapsibleEntryRenderer});
N!==-1&&(d=d[N].guideCollapsibleEntryRenderer.expandableItems)&&(M=this.getEntryIndexMatchingId(M,d),M!==-1&&this.splice("data.items."+N+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.F.activeEndpointChanged=function(){for(var M=_.K(this.hostElement).querySelector("#items").children,d=0,N=M.length;d<N;d++)M[d].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.F.guideOpenedChanged=function(){for(var M=_.K(this.hostElement).querySelector("#items").children,d=0,N=M.length;d<N;d++)M[d].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
q8.prototype.guideOpenedChanged=q8.prototype.guideOpenedChanged;q8.prototype.activeEndpointChanged=q8.prototype.activeEndpointChanged;q8.prototype.persistentGuideChanged=q8.prototype.persistentGuideChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],q8.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],q8.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],q8.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],q8.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q8.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],q8.prototype,"modernTypography",void 0);_.G([_.H(),_.a("design:type",String)],q8.prototype,"type",void 0);_.G([_.H({value:20}),_.a("design:type",Number)],q8.prototype,"initialCount",void 0);_.G([_.H({value:10}),_.a("design:type",Number)],q8.prototype,"targetFramerate",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],q8.prototype,"autoFill",void 0);_.G([_.H({value:50}),_.a("design:type",Number)],q8.prototype,"renderDelay",void 0);
_.G([_.xB("guidePersistentAndVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q8.prototype,"persistentGuideChanged",null);_.G([_.NS("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q8.prototype,"activeEndpointChanged",null);_.G([_.NS("guideOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q8.prototype,"guideOpenedChanged",null);
q8=_.G([_.f({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],q8);
_.L(q8,"ytd-guide-section-renderer",function(){if(Syq!==void 0)return Syq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Syq=M},{mode:_.G3("kevlar_poly_si_batch_j073")?1:2});var zUY;var Iv=function(){return _.n.apply(this,arguments)||this};
_.v(Iv,_.n);_.Hm.Object.defineProperties(Iv.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Iv.prototype,"rendererBehaviors",void 0);_.G([_.H(),_.a("design:type",Object)],Iv.prototype,"data",void 0);_.G([_.H(),_.z("data.signInButton.buttonRenderer.style"),_.a("design:type",Object),_.a("design:paramtypes",[])],Iv.prototype,"alignByText",null);Iv=_.G([_.f({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Iv);
_.L(Iv,"ytd-guide-signin-promo-renderer",function(){if(zUY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);zUY=M}M=zUY;return M},{mode:1});var vd=function(){var M=_.n.apply(this,arguments)||this;M.showFooter=!1;return M};
_.v(vd,_.n);vd.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}}}}};
vd.prototype.attached=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){d=_.h().resolve(_.CF(_.rh));if(!d)return N.jumpTo(0);d.setGuideData(M.hostElement);return _.D(N,0,3)}M.ytLazyListBehavior.initialCount=2;return N.return()})};
vd.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
vd.prototype.dataChanged=vd.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],vd.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.G1.YtLazyListBehavior),_.a("design:type",Object)],vd.prototype,"ytLazyListBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],vd.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],vd.prototype,"showFooter",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],vd.prototype,"autoFill",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vd.prototype,"dataChanged",null);vd=_.G([_.f({is:"ytd-guide-renderer",disableElementRegistration:!0})],vd);
_.L(vd,"ytd-guide-renderer",function(){if(czr!==void 0)return czr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return czr=M},{mode:_.G3("kevlar_poly_si_batch_j073")?1:2});var bNi;var Ok=function(){var M=_.n.apply(this,arguments)||this;M.systemIcons=_.Q("kevlar_system_icons");M.frostedGlass=_.Q("web_frosted_glass");M.getEndpointForm=yTe;return M};
_.v(Ok,_.n);_.F=Ok.prototype;_.F.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.F.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.HD(this.data.formattedTitle))};
_.F.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.F.onDown=function(){this.interaction.triggerDown()};
_.F.onUp=function(){this.interaction.triggerUp()};
_.F.onTap=function(M){if(this.data.serviceEndpoint){var d;_.Q("shorts_controller_retrieve_seedless_sequence_v2")&&((d=_.q(this.data.serviceEndpoint,_.$B))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):KZT(this.data.serviceEndpoint,this);M.preventDefault()}else{var N;((N=this.data)==null?0:N.navigationEndpoint)&&!_.Sm(_.J2(M),this.hostElement,["A".toString()])&&_.YP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.F.computeActive=function(M,d){if(!M)return!1;var N=M.navigationEndpoint;M=M.serviceEndpoint;if(!N&&!M||!d)return!1;if(N){M=_.q(N,_.F8);var R=_.q(d,_.F8);if(M&&R)return M.browseId===R.browseId&&M.params===R.params;var X;N=(X=_.q(N.commandMetadata,_.an))==null?void 0:X.url;var A;d=(A=_.q(d.commandMetadata,_.an))==null?void 0:A.url;return!(!N||!d||N!==d&&N!==_.FO(d))}return this.isActiveShortsTab(M,d)};
_.F.isActiveShortsTab=function(M,d){d=!!_.q(d,_.$B)||!!_.q(d,_.ou);return(!!_.q(M,_.$B)||!!_.q(M,_.ou))&&d};
_.F.computeTitle=function(M,d){return d?"":_.HD(M)};
_.Hm.Object.defineProperties(Ok.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Ok.prototype.onTap=Ok.prototype.onTap;Ok.prototype.onUp=Ok.prototype.onUp;Ok.prototype.onDown=Ok.prototype.onDown;Ok.prototype.onActiveStateChange=Ok.prototype.onActiveStateChange;Ok.prototype.dataChanged=Ok.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ok.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.oH),_.a("design:type",Object)],Ok.prototype,"ironButtonState",void 0);_.G([_.H(),_.a("design:type",Object)],Ok.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ok.prototype,"activeEndpoint",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Ok.prototype,"noLabels",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.a("design:type",Boolean)],Ok.prototype,"isActive",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ok.prototype,"systemIcons",void 0);_.G([_.Z3("yt-interaction"),_.a("design:type",Object)],Ok.prototype,"interaction",void 0);_.G([_.z("isActive"),_.a("design:type",Object),_.a("design:paramtypes",[])],Ok.prototype,"ariaSelected",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Ok.prototype,"frostedGlass",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ok.prototype,"dataChanged",null);_.G([_.xB("isActive"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ok.prototype,"onActiveStateChange",null);_.G([_.C3("down"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ok.prototype,"onDown",null);
_.G([_.C3("up"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ok.prototype,"onUp",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Ok.prototype,"onTap",null);Ok=_.G([_.f({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Ok);
_.L(Ok,"ytd-mini-guide-entry-renderer",function(){if(bNi!==void 0)return bNi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" 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');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return bNi=M},{mode:_.G3("kevlar_poly_si_batch_j063")?1:2});var eUi;var jc=function(){var M=_.n.apply(this,arguments)||this;M.allVideosCount=0;M.noLabels=_.Q("kevlar_mini_guide_no_labels");M.frostedGlass=_.Q("web_frosted_glass");return M};
_.v(jc,_.n);_.F=jc.prototype;_.F.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.F.visibleChanged=function(){if(this.visible&&!this.data){var M=_.h().resolve(_.CF(_.rh));M&&M.setGuideData(this.hostElement)}};
_.F.dataChanged=function(){var M=[],d;if((d=this.data)!=null&&d.items){d=_.V(this.data.items);for(var N=d.next();!N.done;N=d.next()){N=N.value;var R=void 0;if((R=N.guideSectionRenderer)==null?0:R.items)for(R=void 0,N=_.V((R=N.guideSectionRenderer)==null?void 0:R.items),R=N.next();!R.done;R=N.next())if(R=R.value,R.guideEntryRenderer)R=R.guideEntryRenderer,R.isPrimary&&M.push({guideEntryRenderer:R});else if(R.guideCollapsibleSectionEntryRenderer){var X=void 0;((X=_.q(R.guideCollapsibleSectionEntryRenderer.headerEntry,
bq))==null?0:X.isPrimary)&&M.push({guideEntryRenderer:_.q(R.guideCollapsibleSectionEntryRenderer.headerEntry,bq)});if(R=R.guideCollapsibleSectionEntryRenderer.sectionItems)for(R=_.V(R),X=R.next();!X.done;X=R.next()){var A=X.value;X=_.q(A,B9b);var l=void 0;((l=_.q(A,bq))==null?0:l.isPrimary)?M.push({guideEntryRenderer:_.q(A,bq)}):X&&(A=void 0,_.q((A=X)==null?void 0:A.entryRenderer,bq)&&(X.alwaysShow||this.allVideosCount)&&M.push({guideEntryRenderer:_.q(X.entryRenderer,bq)}))}}}}this.miniGuideItems=
M};
_.F.activeEndpointChanged=function(){for(var M=this.items.children,d=0;d<M.length;d++)M[d].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
jc.prototype.activeEndpointChanged=jc.prototype.activeEndpointChanged;jc.prototype.dataChanged=jc.prototype.dataChanged;jc.prototype.visibleChanged=jc.prototype.visibleChanged;_.G([_.S(_.Op),_.a("design:type",Object)],jc.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],jc.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],jc.prototype,"ytComponentBehavior",void 0);_.G([_.Z3("#items"),_.a("design:type",Object)],jc.prototype,"items",void 0);_.G([_.H(),_.a("design:type",Object)],jc.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],jc.prototype,"visible",void 0);
_.G([_.H(),_.a("design:type",Object)],jc.prototype,"miniGuideItems",void 0);_.G([_.H({selector:_.eKZ}),_.a("design:type",Object)],jc.prototype,"allVideosCount",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jc.prototype,"noLabels",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jc.prototype,"frostedGlass",void 0);_.G([_.NS("visible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"visibleChanged",null);
_.G([_.NS("data","allVideosCount"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"dataChanged",null);_.G([_.NS("activeEndpoint"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],jc.prototype,"activeEndpointChanged",null);jc=_.G([_.f({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],jc);
_.L(jc,"ytd-mini-guide-renderer",function(){if(eUi===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);eUi=M}M=eUi;return M},{mode:1});var HNP;var nlD=/^[\x00-\x7F]+$/,sk=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(sk,_.n);_.Hm.Object.defineProperties(sk.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var M,d=_.HD((M=this.data)==null?void 0:M.handle);if(d)return _.ep("@"+d)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.HD(this.displayHandle),d,N=_.HD((d=this.data)==null?void 0:d.handleUrl);if(M&&N)return _.ep(N+M)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var M=_.HD(this.displayHandle);if(M&&!nlD.test(M)){var d;return(d=this.data)==null?void 0:d.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.HD(this.displayHandleUrl),d,N=_.HD((d=this.data)==null?void 0:d.urlInfoText);if(M&&N)return _.ep(N+" "+M)}}});
_.G([_.H(),_.a("design:type",Object)],sk.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],sk.prototype,"displayHandle",null);_.G([_.z("displayHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],sk.prototype,"displayHandleUrl",null);_.G([_.z("displayHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],sk.prototype,"warningText",null);
_.G([_.z("displayHandleUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],sk.prototype,"urlInfoTextWithUrl",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],sk.prototype,"darkerDarkTheme",void 0);sk=_.G([_.f({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],sk);
_.L(sk,"ytd-handles-claiming-confirm-dialog-content",function(){if(HNP!==void 0)return HNP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return HNP=M},{mode:1});var iNr;var Pd=function(){var M=_.n.apply(this,arguments)||this;M.okButtonOverride={style:"mono",type:"outline",size:"M"};return M};
_.v(Pd,_.n);Pd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Pd.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pd.prototype,"okButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],Pd.prototype,"data",void 0);Pd=_.G([_.f({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Pd);
_.L(Pd,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(iNr!==void 0)return iNr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return iNr=M},{mode:1});var fgP;var LgT=/^[\x00-\x7F]+$/,ov=function(){var M=_.n.apply(this,arguments)||this;M.isLoading=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(ov,_.n);ov.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var M;this.selectedHandle=(M=this.handleInput)==null?void 0:M.value;this.onSelectedHandleChanged(this.selectedHandle);_.Eu(this.hostElement,"yt-refit-popups-action")}};
_.Hm.Object.defineProperties(ov.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.ep("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.ep(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!LgT.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ov.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],ov.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],ov.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Function)],ov.prototype,"onSelectedHandleChanged",void 0);_.G([_.Z3("#channel-handle-input"),_.a("design:type",Object)],ov.prototype,"handleInput",void 0);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],ov.prototype,"handleUrlPrefix",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],ov.prototype,"displayHandle",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],ov.prototype,"displayHandleUrl",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],ov.prototype,"warningText",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ov.prototype,"darkerDarkTheme",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);ov=_.G([_.f({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],ov);
_.L(ov,"ytd-handles-claiming-edit-dialog-content",function(){if(fgP!==void 0)return fgP;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return fgP=M},{mode:1});var tqJ;var rn=function(){var M=_.n.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.selectButtonDisabled=!1;M.isLoading=!1;M.hasSelectedHandleEventListener=!1;M.selectedHandleChanged=function(d){M.selectedHandle=d};
return M};
_.v(rn,_.n);_.F=rn.prototype;_.F.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.F.onDataChanged=function(){var M,d;this.selectedHandle=(d=_.q((M=this.data)==null?void 0:M.inputField,iG9))==null?void 0:d.handle};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onCancel=function(){this.selectedHandle="";_.ZI(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var d;((d=this.data)==null?void 0:d.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(N,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.Q8(M.hostElement,_.HD(R.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var X;if((X=M.data)==null?0:X.onChannelUpdateSuccess){N=M.data.onChannelUpdateSuccess;var A,l;if(R=(A=_.q(N,_.Iu))==null?void 0:(l=A.popup)==null?void 0:l.handlesClaimingConfirmDialogRenderer)R.handle=_.ep(M.selectedHandle);M.ytComponentBehavior.resolveCommand(N);_.ZI(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){var N;M.content&&((N=M.content)==null?0:N.handleInput)&&M.content.handleInput.validate();M.isLoading=!1;_.Q8(M.hostElement,_.le("TRY_AGAIN_LATER"))}}}))}};
_.F.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
rn.prototype.onDataChanged=rn.prototype.onDataChanged;rn.prototype.onSelectedHandleChanged=rn.prototype.onSelectedHandleChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],rn.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"actionButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"cancelButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",String)],rn.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"selectButtonDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"hasSelectedHandleEventListener",void 0);_.G([_.H(),_.a("design:type",Object)],rn.prototype,"handleInput",void 0);
_.G([_.xB("selectedHandle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rn.prototype,"onSelectedHandleChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rn.prototype,"onDataChanged",null);_.G([_.Z3("ytd-handles-claiming-edit-dialog-content"),_.a("design:type",Object)],rn.prototype,"content",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);rn=_.G([_.f({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],rn);
_.L(rn,"ytd-handles-claiming-edit-dialog-renderer",function(){if(tqJ!==void 0)return tqJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return tqJ=M},{mode:1});var GST;var KC=function(){return _.n.apply(this,arguments)||this};
_.v(KC,_.n);_.Hm.Object.defineProperties(KC.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.handle){var d;return _.ep("@"+_.HD((d=this.data)==null?void 0:d.handle))}}}});
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],KC.prototype,"formattedHandle",null);_.G([_.H(),_.a("design:type",Object)],KC.prototype,"data",void 0);KC=_.G([_.f({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],KC);
_.L(KC,"ytd-handles-claiming-radio-option-renderer",function(){if(GST!==void 0)return GST;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return GST=M},{mode:1});var age;var UMT=/^[\x00-\x7F]+$/,y2=function(){var M=_.n.apply(this,arguments)||this;M.initialRadioIndex="-1";M.isLoading=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.maybeSubmitFeedback=function(){M.feedbackSurveyRenderer.submitSurvey()};
return M};
_.v(y2,_.n);y2.prototype.updateSelectedHandleIndexFromBinding=function(M){this.selectedRadioIndex=+M.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(M)};
y2.prototype.selectedHandleChanged=function(M){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var d;this.selectedHandle=(d=this.handleInput)==null?void 0:d.value;this.onSelectedHandleChanged(M)}};
_.Hm.Object.defineProperties(y2.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return this.ytRendererBehavior.getSimpleString((M=this.data)==null?void 0:M.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.ep("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.ep(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!UMT.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.G([_.H(),_.a("design:type",Object)],y2.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],y2.prototype,"initialRadioIndex",void 0);_.G([_.H(),_.a("design:type",Number)],y2.prototype,"selectedRadioIndex",void 0);_.G([_.H(),_.a("design:type",String)],y2.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],y2.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Function)],y2.prototype,"onSelectedHandleChanged",void 0);
_.G([_.H(),_.a("design:type",Function)],y2.prototype,"onSelectedRadioIndexChanged",void 0);_.G([_.Z3("#channel-handle-input"),_.a("design:type",Object)],y2.prototype,"handleInput",void 0);_.G([_.Z3("ytd-feedback-survey-renderer"),_.a("design:type",Object)],y2.prototype,"feedbackSurveyRenderer",void 0);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],y2.prototype,"radioButtonLength",null);
_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],y2.prototype,"handleUrlPrefix",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],y2.prototype,"displayHandle",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],y2.prototype,"displayHandleUrl",null);_.G([_.z("selectedHandle"),_.a("design:type",Object),_.a("design:paramtypes",[])],y2.prototype,"warningText",null);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],y2.prototype,"darkerDarkTheme",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);y2=_.G([_.f({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],y2);
_.L(y2,"ytd-handles-claiming-select-dialog-content",function(){if(age!==void 0)return age;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return age=M},{mode:1});var ur9;var JR=function(){var M=_.n.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.initialRadioIndex="-1";M.selectButtonDisabled=!1;M.isLoading=!1;M.selectedRadioIndexChanged=function(d){M.selectedRadioIndex=Number(d.detail.value)};
M.selectedHandleChanged=function(d){M.selectedHandle=d.detail.value};
M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(JR,_.n);_.F=JR.prototype;_.F.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.F.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.F.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Eu(this.hostElement,"yt-refit-popups-action")};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ZI(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var d;((d=this.data)==null?void 0:d.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(N,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.Q8(M.hostElement,_.HD(R.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var X;if((X=M.data)==null?0:X.onChannelUpdateSuccess){N=M.data.onChannelUpdateSuccess;R=_.q(N,_.Iu);var A;if(R==null?0:(A=R.popup)==null?0:A.handlesClaimingConfirmDialogRenderer)R.popup.handlesClaimingConfirmDialogRenderer.handle=_.ep(M.selectedHandle);M.ytComponentBehavior.resolveCommand(N);_.ZI(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){if(M.selectedRadioIndex===M.radioButtonLength){var N;M.content&&((N=M.content)==null?0:N.handleInput)&&M.content.handleInput.validate()}M.isLoading=!1;_.Q8(M.hostElement,_.le("TRY_AGAIN_LATER"))}}}))}};
_.F.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var M,d;this.selectedHandle=(M=this.content)==null?void 0:(d=M.handleInput)==null?void 0:d.value}else this.selectedRadioIndex>=0&&((M=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(M==null?void 0:M.handle):this.selectedHandle=void 0)};
_.F.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.F.getRadioItem=function(M){if(this.radioButtonLength>M&&M>=0)return _.q(this.data.radioButton[M],RKT)};
_.Hm.Object.defineProperties(JR.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}}});
JR.prototype.onSelectedHandleChanged=JR.prototype.onSelectedHandleChanged;JR.prototype.onSelectedHandleIndexChanged=JR.prototype.onSelectedHandleIndexChanged;JR.prototype.onDataChanged=JR.prototype.onDataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],JR.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"actionButtonOverride",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"cancelButtonOverride",void 0);
_.G([_.H(),_.a("design:type",Object)],JR.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"initialRadioIndex",void 0);_.G([_.H(),_.a("design:type",Number)],JR.prototype,"selectedRadioIndex",void 0);_.G([_.H(),_.a("design:type",String)],JR.prototype,"selectedHandle",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"selectButtonDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],JR.prototype,"isLoading",void 0);
_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],JR.prototype,"radioButtonLength",null);_.G([_.Z3("ytd-handles-claiming-select-dialog-content"),_.a("design:type",Object)],JR.prototype,"content",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JR.prototype,"onDataChanged",null);
_.G([_.xB("selectedRadioIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JR.prototype,"onSelectedHandleIndexChanged",null);_.G([_.xB("selectedHandle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],JR.prototype,"onSelectedHandleChanged",null);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],JR.prototype,"darkerDarkTheme",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);JR=_.G([_.f({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],JR);
_.L(JR,"ytd-handles-claiming-select-dialog-renderer",function(){if(ur9!==void 0)return ur9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ur9=M},{mode:1});var CKi;var xMi;var cd=function(){return _.n.apply(this,arguments)||this};
_.v(cd,_.n);cd.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],cd.prototype,"data",void 0);cd=_.G([_.f({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],cd);
_.L(cd,"ytd-hotkey-dialog-section-option-renderer",function(){if(xMi!==void 0)return xMi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return xMi=M},{mode:1});var Yy$;var Sc=function(){return _.n.apply(this,arguments)||this};
_.v(Sc,_.n);Sc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Sc.prototype,"data",void 0);Sc=_.G([_.f({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Sc);
_.L(Sc,"ytd-hotkey-dialog-section-renderer",function(){if(Yy$!==void 0)return Yy$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Yy$=M},{mode:1});var zl=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(zl,_.n);zl.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],zl.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],zl.prototype,"darkerDarkTheme",void 0);zl=_.G([_.f({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],zl);
_.L(zl,"ytd-hotkey-dialog-content",function(){if(CKi!==void 0)return CKi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return CKi=M},{mode:1});var ZNi;var bt=function(){return _.n.apply(this,arguments)||this};
_.v(bt,_.n);bt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M=document.querySelector("ytd-hotkey-dialog-content #scrollable");M&&(M.dialogElement=this.hostElement.parentElement)};
bt.prototype.onCloseTap=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],bt.prototype,"data",void 0);bt=_.G([_.f({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],bt);
_.L(bt,"ytd-hotkey-dialog-renderer",function(){if(ZNi!==void 0)return ZNi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return ZNi=M},{mode:1});var Eld;var ec=function(){return _.n.apply(this,arguments)||this};
_.v(ec,_.n);ec.prototype.onYtServiceRequestError=function(){if(this.blocked){var M;var d=(M=this.data)==null?void 0:M.defaultServiceEndpoint}else{var N;d=(N=this.data)==null?void 0:N.toggledServiceEndpoint}var R;(d=(R=_.q(d,_.cWz))==null?void 0:R.onFailureAction)&&this.ytComponentBehavior.resolveCommand(d);this.updateBlockState(!this.blocked)};
ec.prototype.onYtToggleButton=function(M){this.updateBlockState(M.detail.toggled)};
ec.prototype.updateBlockState=function(M){if(M!==this.blocked){var d=this.blockedEntityKey;d&&this.ytdReduxBehavior.dispatch(_.la("blockStateEntity",d,{key:d,blocked:M}));this.set("data.isToggled",M)}};
_.Hm.Object.defineProperties(ec.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)}}});
ec.prototype.onYtToggleButton=ec.prototype.onYtToggleButton;ec.prototype.onYtServiceRequestError=ec.prototype.onYtServiceRequestError;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ec.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],ec.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ec.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ec.prototype,"blockedEntityKey",void 0);
_.G([_.H({selectorArgs:["blockedEntityKey"],selector:function(M,d){return _.Rz(M.entities,"blockStateEntity",d)}}),
_.a("design:type",Object)],ec.prototype,"blockStateEntity",void 0);_.G([_.z("data","blockStateEntity"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],ec.prototype,"blocked",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ec.prototype,"onYtServiceRequestError",null);
_.G([_.C3("yt-toggle-button"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ec.prototype,"onYtToggleButton",null);ec=_.G([_.f({is:"ytd-block-button",disableElementRegistration:!0})],ec);
_.L(ec,"ytd-block-button",function(){if(Eld!==void 0)return Eld;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Eld=M},
{mode:1});var M1b;var d0b;var Hd=function(){return _.n.apply(this,arguments)||this};
_.v(Hd,_.n);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Hd.prototype,"data",void 0);Hd=_.G([_.f({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Hd);
_.L(Hd,"ytd-kids-blocklist-picker-item-renderer",function(){if(d0b!==void 0)return d0b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return d0b=M},{mode:1});var nC=function(){return _.n.apply(this,arguments)||this};
_.v(nC,_.n);nC.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nC.prototype,"data",void 0);nC=_.G([_.f({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],nC);
_.L(nC,"ytd-kids-blocklist-picker-content",function(){if(M1b!==void 0)return M1b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return M1b=
M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var N$T;var fC=function(){var M=_.n.apply(this,arguments)||this;M.hasAnyRequestSucceeded=!1;M.hasAnyRequestFailed=!1;M.numPendingRequests=0;return M};
_.v(fC,_.n);_.F=fC.prototype;_.F.attached=function(){this.hostElement.setAttribute("dialog","")};
_.F.onDoneButtonTap=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.F.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.F.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.F.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.F.onPopupClosed=function(M){var d,N;if(((d=M.detail)==null?void 0:(N=d.popup)==null?void 0:N.is)==="tp-yt-paper-dialog"){var R;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((R=this.data)==null?0:R.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Lh(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
fC.prototype.onPopupClosed=fC.prototype.onPopupClosed;fC.prototype.onYtServiceRequestError=fC.prototype.onYtServiceRequestError;fC.prototype.onYtServiceRequestCompleted=fC.prototype.onYtServiceRequestCompleted;fC.prototype.onYtServiceRequestSent=fC.prototype.onYtServiceRequestSent;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],fC.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],fC.prototype,"data",void 0);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fC.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fC.prototype,"onYtServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],fC.prototype,"onYtServiceRequestError",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],fC.prototype,"onPopupClosed",null);fC=_.G([_.f({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],fC);
_.L(fC,"ytd-kids-blocklist-picker-renderer",function(){if(N$T!==void 0)return N$T;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return N$T=M},{mode:1});var RCi;var Xs$;var LC=function(){return _.n.apply(this,arguments)||this};
_.v(LC,_.n);LC.prototype.setTip=function(M){var d=this;this.data&&(this.tip=apr(tV4.getInstance(),M,this.data),_.bM(this,function(){_.YP(d.hostElement,"yt-refit")}))};
LC.prototype.clearTip=function(){this.tip=void 0};
LC.prototype.computeHidden=function(M){return!M};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],LC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.a("design:type",Boolean)],LC.prototype,"hidden",void 0);_.G([_.H(),_.a("design:type",Object)],LC.prototype,"tip",void 0);LC=_.G([_.f({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],LC);
_.L(LC,"ytd-menu-popup-tip-renderer",function(){if(Xs$!==void 0)return Xs$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);
return Xs$=M},{mode:1});var Fzq;var tR=function(){var M=_.n.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.Q("kevlar_system_icons");M.useListItemStyles=_.Q("web_list_item_style_for_menu_items");return M};
_.v(tR,_.n);_.F=tR.prototype;_.F.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.F.onTap=function(){var M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(M&&_.q(M,_.XP))this.componentBehavior.resolveCommand(M),this.updateToggledStateInEntity();else if(M){this.componentBehavior.resolveCommand(M)||_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}});var d;((d=_.q(M,_.A$))==null?void 0:d.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.F.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.F.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.F.updateToggledStateInEntity=function(){var M=this.data.toggleMenuServiceItemEntityKey,d=!this.data.isToggled;M&&this.ytdReduxBehavior.dispatch(_.la("toggleMenuServiceItemEntity",M,{key:M,isToggled:d}))};
_.F.computeIcon=function(M,d,N){return(M=M?N:d)&&M.iconType?_.C6(M.iconType):""};
_.F.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.F.isIconActive=function(M){return!_.Q("toggle_menu_active_icon_killswitch")&&M};
_.Hm.Object.defineProperties(tR.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?0:M.isToggled)?(d=this.data)==null?void 0:d.toggledText:(N=this.data)==null?void 0:N.defaultText}}});
tR.prototype.toggledStateEntityChanged=tR.prototype.toggledStateEntityChanged;tR.prototype.onYtServiceRequestCompleted=tR.prototype.onYtServiceRequestCompleted;tR.prototype.onTap=tR.prototype.onTap;tR.prototype.onFocus=tR.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],tR.prototype,"componentBehavior",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],tR.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tR.prototype,"useIcons",void 0);_.G([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.a("design:type",String)],tR.prototype,"icon",void 0);
_.G([_.H({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(M,d){return _.Rz(M.entities,"toggleMenuServiceItemEntity",d)}}),
_.a("design:type",Object)],tR.prototype,"toggleMenuServiceItemEntity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tR.prototype,"systemIcons",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],tR.prototype,"useListItemStyles",void 0);_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tR.prototype,"onFocus",null);
_.G([_.z("data.isToggled"),_.a("design:type",Object),_.a("design:paramtypes",[])],tR.prototype,"toggleButtonText",null);_.G([_.C3("tap"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tR.prototype,"onTap",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tR.prototype,"onYtServiceRequestCompleted",null);
_.G([_.xB("toggleMenuServiceItemEntity.isToggled","data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],tR.prototype,"toggledStateEntityChanged",null);tR=_.G([_.f({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],tR);
_.L(tR,"ytd-toggle-menu-service-item-renderer",function(){if(Fzq!==void 0)return Fzq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Fzq=M},{mode:1});var A1D;var Gl=function(){return _.n.apply(this,arguments)||this};
_.v(Gl,_.n);Gl.prototype.onFocus=function(){var M;(M=_.K(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.Hm.Object.defineProperties(Gl.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.gH(this.data.iconUrl)}}});
Gl.prototype.onFocus=Gl.prototype.onFocus;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Gl.prototype,"rendererBehavior",void 0);_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],Gl.prototype,"ytEndpointBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Gl.prototype,"data",void 0);_.G([_.C3("focus"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Gl.prototype,"onFocus",null);
_.G([_.z("data.iconUrl"),_.a("design:type",Object),_.a("design:paramtypes",[])],Gl.prototype,"imageSource",null);Gl=_.G([_.f({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Gl);
_.L(Gl,"ytd-menu-custom-icon-item-renderer",function(){if(A1D!==void 0)return A1D;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return A1D=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});_.eC(_.gX,"yt-list-item-view-model",{props:{data:_.cA,isMenuItem:_.cA,isCompact:_.cA,onTap:_.bI,trailingAccessory:_.bI,hideSelectionTextChevron:_.cA,disabled:_.cA,inPopup:_.cA,disableHorizontalPadding:_.cA,isOverlay:_.cA}});var av=function(){var M=_.n.apply(this,arguments)||this;M.disableBackdropFilter=_.Q("web_disable_backdrop_filter");return M};
_.v(av,_.n);_.F=av.prototype;
_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.F.computeAriaLabel=function(M){return M};
_.F.onPopupOpened=function(){this.items.selected=0;for(var M=_.V(_.K(this.items).children),d=M.next();!d.done;d=M.next())d.value.popupPositionTarget=this.positionTarget;if(M=this.popupTip||void 0)M.setTip(this.source||""),this.source=void 0;this.veData&&(M=_.Ou())&&_.zR(M,[this.veData])};
_.F.onPopupClosed=function(){var M=this.popupTip||void 0;M&&M.clearTip()};
_.F.onIronActivate=function(M){this.shouldPersist(M)||_.ZI(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(M=_.Ou())&&_.eD(M,this.veData)};
_.F.shouldPersist=function(M){var d,N;if(((d=M.detail)==null?void 0:d.selected)===void 0||(N=this.data)==null||!N.items)return!1;var R,X;return!((X=(R=this.data.items[M.detail.selected])==null?void 0:R.toggleMenuServiceItemRenderer)==null||!X.persistentOnMenuPopup)};
_.F.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(M){return M.menuNavigationItemRenderer?!!M.menuNavigationItemRenderer.icon:M.menuServiceItemRenderer?!!M.menuServiceItemRenderer.icon:M.menuConditionalServiceItemRenderer?!!M.menuConditionalServiceItemRenderer.icon:M.menuConditionalNavigationItemRenderer?!!M.menuConditionalNavigationItemRenderer.icon:M.toggleMenuServiceItemRenderer?!!M.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
av.prototype.onPopupClosed=av.prototype.onPopupClosed;av.prototype.onPopupOpened=av.prototype.onPopupOpened;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],av.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],av.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],av.prototype,"veData",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.a("design:type",String)],av.prototype,"ariaLabel",void 0);_.G([_.H({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],av.prototype,"useIcons",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],av.prototype,"disableBackdropFilter",void 0);_.G([_.Z3("#items"),_.a("design:type",Object)],av.prototype,"items",void 0);_.G([_.Z3("ytd-menu-popup-tip-renderer"),_.a("design:type",Object)],av.prototype,"popupTip",void 0);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],av.prototype,"onPopupOpened",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],av.prototype,"onPopupClosed",null);av=_.G([_.f({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],av);
_.L(av,"ytd-menu-popup-renderer",function(){if(RCi!==void 0)return RCi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return RCi=M},{mode:1});var V1i;var lo9=_.SG(function(M){M=_.cu(M,{icon:void 0});var d=M.data;M=M.icon;var N=function(){return d().iconBadgeText},R={},X=_.xj("yt-spec-icon-badge-shape",function(){a:switch(d().iconBadgeType){case "notification":var A="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":A="yt-spec-icon-badge-shape--type-cart";break a;default:A=""}return A},function(){a:switch(d().iconBadgeStyle){case "overlay":var A="yt-spec-icon-badge-shape--style-overlay";
break a;default:A=""}return A},(R["yt-spec-icon-badge-shape--text-size-small"]=function(){var A=N();
return!!((A==null?0:A.length)&&A.length>2)},R));
return _.g("yt-icon-badge-shape",null,_.g(_.kV,{cond:M,then:function(A){return _.g("div",{class:X},_.g("div",{class:"yt-spec-icon-badge-shape__icon"},_.g(_.Fc,{icon:A})),_.g(_.kV,{cond:N,then:function(l){return _.g("div",{class:"yt-spec-icon-badge-shape__badge"},l)}}))}}))},"ag");
lo9.idomCompat=!0;_.eC(lo9,"yt-icon-badge-shape",{props:{data:_.cA,icon:_.cA}});var Uk=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};M.unseenCount=0;M.isOverlay=!1;return M};
_.v(Uk,_.n);_.F=Uk.prototype;_.F.attached=function(){var M=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(d){M.onServiceWorkerMessage(d)})};
_.F.onDataChanged=function(){this.isAttached&&!this.JSC$18134_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18134_lastData=this.data};
_.F.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.F.computeIcon=function(){var M,d;return(M=this.data)==null?void 0:(d=M.icon)==null?void 0:d.iconType};
_.F.onServiceWorkerMessage=function(M){M.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.F.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.q(this.data.updateUnseenCountEndpoint,_.A$)&&_.q(this.data.updateUnseenCountEndpoint,_.A$).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.F.handleUpdateNotificationsUnseenCountAction=function(M){var d=this;M=_.q(M,uzr);M!=null&&M.unseenCount&&M.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(M.unseenCount),_.IQ.addLowPriorityJob(function(){d.data.updateUnseenCountEndpoint&&d.ytComponentBehavior.resolveCommand(d.data.updateUnseenCountEndpoint)},M.timeoutMs))};
_.F.onClick=function(){_.YP(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var M=_.Eu(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),d=this.data.menuRequest;M&&M.length===1&&M[0]?_.ZI(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):d&&this.ytComponentBehavior.resolveCommand(d)};
_.F.handleTopbarMenuClosedAction=function(M){M==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.F.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
_.F.sendUnseenCountRequest=function(M){var d=this;_.gL(_.IQ,function(){d.ytComponentBehavior.resolveCommand(M)})};
_.F.updateCountUI=function(M){this.set("unseenCount",M<9?M:"9+")};
_.Hm.Object.defineProperties(Uk.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Uk.prototype.handleUpdateNotificationsUnseenCountAction=Uk.prototype.handleUpdateNotificationsUnseenCountAction;Uk.prototype.onDataChanged=Uk.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Uk.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.zc),_.a("design:type",Object)],Uk.prototype,"ytdOpenPopupBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Uk.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Uk.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Uk.prototype,"unseenCount",void 0);_.G([_.H(),_.a("design:type",Object)],Uk.prototype,"isOverlay",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],Uk.prototype,"showTooltips",void 0);_.G([_.Z3("yt-icon-button"),_.a("design:type",Object)],Uk.prototype,"iconButton",void 0);
_.G([_.z("unseenCount"),_.a("design:type",Object),_.a("design:paramtypes",[])],Uk.prototype,"showNotificationCount",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Uk.prototype,"onDataChanged",null);_.G([_.C3("yt-update-notifications-unseen-count-action"),_.a("design:type",Function),_.a("design:paramtypes",[Object]),_.a("design:returntype")],Uk.prototype,"handleUpdateNotificationsUnseenCountAction",null);
Uk=_.G([_.f({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Uk);
_.L(Uk,"ytd-notification-topbar-button-renderer",function(){if(V1i!==void 0)return V1i;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return V1i=M},{mode:_.G3("kevlar_poly_si_batch_j025")?1:2});var $0b;var ut=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return M};
_.v(ut,_.n);ut.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}}}}}};
ut.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
ut.prototype.onDarkModeToggled=function(M){this.dark=M};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ut.prototype,"data",void 0);_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],ut.prototype,"dark",void 0);
ut=_.G([_.f({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],ut);
_.L(ut,"yt-pdg-buy-flow-header-renderer",function(){if($0b!==void 0)return $0b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return $0b=M},{mode:1});var B$r;var kj4;var CC=function(){var M=_.n.apply(this,arguments)||this;M.immediateValue=0;M.isDarkTheme=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(CC,_.n);_.F=CC.prototype;_.F.created=function(){_.b0.requestAvailability()};
_.F.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.F.dataChanged=function(){var M=_.K(this.hostElement).querySelector("#color-slider");M.immediateValue&&this.updateSliderKnobAndGradientStyles(M.immediateValue);this.data.notches[0].knobColorArgb&&_.UO(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.ml(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.rK("HTML_DIR")==="rtl"&&_.K(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.F.onSliderImmediateChange=function(){var M=_.K(this.hostElement).querySelector("#color-slider");M.dragging&&(M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue)),this.updateSliderAria())};
_.F.onSliderChange=function(){var M=_.K(this.hostElement).querySelector("#color-slider");M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue));this.updateSliderAria()};
_.F.updateSliderAria=function(){var M=_.K(this.hostElement).querySelector("#color-slider"),d=_.K(this.hostElement).querySelector("#color-slider");d=_.HD(this.data.notches[d.immediateValue].tierValue);_.rZ()&&_.YP(this.hostElement,"iron-announce",{text:d});M.setAttribute("aria-valuetext",d)};
_.F.updateSuperThanksSelectedTierEntity=function(M){if(M!==this.immediateValue){var d,N,R=this==null?void 0:(d=this.data)==null?void 0:(N=d.superThanksSelectedTierEntity)==null?void 0:N.key;R&&R.length>0&&this.ytdReduxBehavior.dispatch(_.la("superThanksSelectedTierEntity",R,{key:R,index:M}))}};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.updateSliderKnobAndGradientStyles=function(M){this.immediateValue=M;M=this.data.notches[M];if(M==null?0:M.knobColorArgb)var d={"--ytd-pdg-color-slider-knob-color":_.ml(M.knobColorArgb)};(M==null?0:M.linearGradientCssStyle)&&d!==null&&(d=Object.assign({},d,{"--ytd-pdg-color-slider-active-color":M==null?void 0:M.linearGradientCssStyle}));d!==null&&_.UO(this.hostElement,d)};
CC.prototype.onSliderChange=CC.prototype.onSliderChange;CC.prototype.onSliderImmediateChange=CC.prototype.onSliderImmediateChange;CC.prototype.dataChanged=CC.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],CC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],CC.prototype,"immediateValue",void 0);_.G([_.H(),_.a("design:type",Number)],CC.prototype,"maxMarkers",void 0);
_.G([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aS4}),_.a("design:type",Object)],CC.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],CC.prototype,"isDarkTheme",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],CC.prototype,"ytdReduxBehavior",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CC.prototype,"dataChanged",null);
_.G([_.C3("immediate-value-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CC.prototype,"onSliderImmediateChange",null);_.G([_.C3("change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],CC.prototype,"onSliderChange",null);CC=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],CC);
_.L(CC,"ytd-pdg-color-slider-renderer",function(){if(kj4!==void 0)return kj4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return kj4=M},{mode:1});var T$b;var D0q;var xN=null;
_.kQ({is:"ytd-comment-input",_template:function(){if(D0q!==void 0)return D0q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return D0q=M},
behaviors:[_.Igv.YtHostElementBehavior,_.pG,_.jV.YtComponentBehavior,_.L$.YtRendererstamperBehavior,_.BNo.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 _.j$}},
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",_.ux(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;_.lc();this.focus()},
detached:function(){document.removeEventListener("tap",_.ux(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var d=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(d,M);this.maybeUpdateTextDirection_();_.YP(this.hostElement,"input")},
getInputRange_:function(){var M=_.gW();if(M){M=M.getBrowserRangeObject();for(var d=M.commonAncestorContainer;d;){if(d===this.getEditableTextArea_())return M;d=d.parentNode}}M=this.getEditableTextArea_();M=_.y0(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,d,N){(d=this.emojiManager.createDocumentFragment(d,!0,!1,N===void 0?!0:N))&&d.childNodes.length!==0&&(M.collapsed||M.deleteContents(),N=d.lastChild,M.insertNode(d),_.dXd(N).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var M=_.gW();if(M){var d=M.JSC$9140_getStartNode(),N=M.JSC$9140_getEndNode();if(JTr(d)&&JTr(N)){var R=M.JSC$9140_getStartOffset(),X;if(_.kh&&d.nodeType===Node.ELEMENT_NODE&&(X=_.wPm(d)))_.y0(X,0).select();else{X=fo(d)?d:_.jM(d,fo);var A=fo(N)?N:_.jM(N,fo);if(X||A)if(M.isCollapsed()){if(d.nodeType===Node.TEXT_NODE){M=!0;R===d.length&&(M=!1);if(xN==="end"||xN==="right")M=!1;d=d.parentNode;M=[].concat(_.wu(d.parentNode.childNodes)).indexOf(d)+(M?0:1);_.y0(d.parentNode,M).select()}}else X?
X.previousSibling&&X.previousSibling.length>0?_.JV(N,M.JSC$9140_getEndOffset(),X.previousSibling,X.previousSibling.length-1).select():(d=document.createTextNode("\u200b"),X.parentNode.insertBefore(d,X),_.JV(N,M.JSC$9140_getEndOffset(),d,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.JV(d,M.JSC$9140_getStartOffset(),A.nextSibling,1).select():(N=document.createTextNode("\u200b"),A.parentNode.insertBefore(N,A.nextSibling),_.JV(d,M.JSC$9140_getStartOffset(),N,N.length).select()));xN=null}}else xN=
null}else xN=null},
leftKeyPressed_:function(){xN="left"},
rightKeyPressed_:function(){xN="right"},
endKeyPressed_:function(){xN="end"},
maybeDeleteChip_:function(){var M=HhT(!0);if(M){var d=_.gW(),N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();_.sY(N,d,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=HhT(!1);if(M){var d=_.gW(),N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();_.sY(N,d,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var d=_.gW();if(d.isCollapsed()){var N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();var R=n$4(N,d,!0);R&&(_.sY(N,d,R,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var d=_.gW();if(d.isCollapsed()){var N=d.JSC$9140_getStartNode();d=d.JSC$9140_getStartOffset();var R=n$4(N,d,!1);R&&(_.sY(N,d,R,R.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onContentClick:function(M){M.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(M){M.defaultPrevented||M.currentTarget.tagName==="YTD-COMMENT-INPUT"&&fo(M.target)&&M.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.K(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.K(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(M,d){M=SWY(M,this.emojiManager,d).cloneNode(!0);for(d=M.firstChild;d;)if(d.nodeType!==1)d=d.nextSibling;else switch(d.tagName){case "BR":var N=_.jI();_.OJd(N,d);d=N.nextSibling;break;case "DIV":(N=d.lastChild)&&d.nextSibling&&_.rl(_.jI(),N);d.previousSibling&&(d.previousSibling.nodeType===1||d.previousSibling.nodeType===3&&!d.previousSibling.textContent.endsWith("\n"))&&_.ox(_.jI(),d);N&&N.nodeName==="BR"&&_.l_(N);N=d;d.hasChildNodes()?(d=d.firstChild,
_.jCL(N)):(d=d.nextSibling,_.l_(N));break;default:d=d.nextSibling}return ihC(M)},
setTextAreaValue:function(M){M||(M="");var d=this.getEditableFormattedString_();d.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});d.text=M},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();xN=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.y0(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.rK("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),d=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",d)}},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var d=this.getInputRange_();d&&(M=this.emojiInput.retrieveTextBeforeRange(d))}this.insertText_(M,!0);this.updateCharCount_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(M){this.isEmojiButtonDisplayed&&(M.preventDefault(),M.stopImmediatePropagation(),M=M.clipboardData.getData("text/plain"),this.insertText_(M,!1,!1),_.YP(this.hostElement,"input"))},
insertText_:function(M,d,N){d=d===void 0?!1:d;N=N===void 0?!0:N;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(d&&this.emojiInput.offsetStartOfRangeBy(R,M.length),this.insertTextWithEmojis_(R,M,N),cTe(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,M),this.updateSuggestionOffset_(R)))}},
getSimpleString:_.HD,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computePlaceholderText_:function(M){return this.getSimpleString(M)},
computeEditableText_:function(M){return this.getSimpleString(M)},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(M,d){M?this.fire("yt-autonav-pause-focus"):d!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var d=this.getEditableTextArea_();[].concat(_.wu(M.dataTransfer.items)).forEach(function(N){N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(R){d.appendChild(document.createTextNode(R))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.K(this.emojiInput).querySelector("#dropdown")){var d=this.getEditableTextArea_().getBoundingClientRect().bottom,N=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(d-N)+5;d=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-d;_.K(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Pf("yt-post"));return this.localStorage}});var YN=function(){var M=_.n.apply(this,arguments)||this;M.currentCommentOptionIndex=0;M.isEmojiPickerDisplayed=!1;M.emojiManager=_.j$;M.isUgcEmpty=!1;M.userGeneratedCommentChangedHandler=function(){_.YP(M.hostElement,"ytd-pdg-user-generated-comment-changed");M.isEmojiYtdCommentInputEnabled&&(M.isUgcEmpty=!M.ytdCommentInputEl.getTextAreaValue())};
M.pasteHandler=function(d){d.preventDefault();d.stopImmediatePropagation();var N;if(d=(N=d.clipboardData)==null?void 0:N.getData("text/plain"))N=document.getSelection().getRangeAt(0),N.collapsed||N.deleteContents(),d=document.createTextNode(d),N.insertNode(d),N.selectNodeContents(d),N.collapse(!1),d=window.getSelection(),d.removeAllRanges(),d.addRange(N)};
M.onDocumentClick=function(d){if(M.isEmojiPickerDisplayed){var N,R,X;!(d.target instanceof Node)||(N=d.composedPath())!=null&&N.includes(M.editableTextEl)||(R=d.composedPath())!=null&&R.includes(M.emojiButtonEl)||(X=d.composedPath())!=null&&X.includes(M.emojiPickerEl)||(M.isEmojiPickerDisplayed=!1)}};
return M};
_.v(YN,_.n);_.F=YN.prototype;_.F.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.F.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.F.detached=function(){var M;(M=this.contentEl)==null||M.removeEventListener("input",this.userGeneratedCommentChangedHandler);var d;(d=this.contentEl)==null||d.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.F.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.F.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var M;this.contentEl.textContent=this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.F.reloadEmojis=function(){this.emojiPickerEl&&_.q(this.emojiPicker,_.G_3)&&this.emojiPickerEl.updateEmojiCategories()};
_.F.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.UO(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.F.handleBackgroundColorStyling=function(){var M;if((M=this.currentCommentOption)==null?0:M.commentBackgroundColorArgb){var d;_.UO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.ml((d=this.currentCommentOption)==null?void 0:d.commentBackgroundColorArgb)})}else _.UO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.F.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var M;(M=this.contentEl)==null||M.focus()}};
_.F.onEditButtonClick=function(M){var d=document.getSelection();d&&this.contentEl&&(M.stopPropagation(),M.preventDefault(),d.selectAllChildren(this.contentEl),d.collapseToEnd())};
_.F.onContentDrop=function(M){var d=this;if(M.dataTransfer){M=_.V(M.dataTransfer.items);for(var N=M.next();!N.done;N=M.next())N=N.value,N.kind==="string"&&N.type.match("^text/plain")&&N.getAsString(function(R){var X;(X=d.contentEl)==null||X.appendChild(document.createTextNode(R))})}};
_.F.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.F.getUserGeneratedCommentText=function(){var M,d=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(M=this.contentEl)==null?void 0:M.textContent;return d?d.trim():""};
_.F.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.F.onEmojiSelect=function(M){this.ytdCommentInputEl.onEmojiSelect(M)};
_.Hm.Object.defineProperties(YN.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.currentCommentOption)==null||!M.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(_.q((M=this.currentCommentOption)==null?void 0:M.chipRenderer,_.dmL)){var d;return _.q((d=this.currentCommentOption)==null?void 0:d.chipRenderer,_.dmL)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var M,d;return((M=this.data)==null?0:M.commentOptionRenderers)?_.q((d=this.data)==null?void 0:d.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Qu9):void 0}var N,R;return((N=this.data)==null?0:N.commentOptionRenderers)?_.q((R=this.data)==null?void 0:R.commentOptionRenderers[this.currentCommentOptionIndex],Qu9):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.be3))==null?void 0:d.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.be3))==null?void 0:d.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.be3))==null?void 0:d.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(d=_.q((M=this.data)==null?void 0:M.commentDialog,_.be3))==null?void 0:d.emojiPicker;if(!_.q(N,_.G_3)||!_.q(N,_.G_3).categories)return!1;M=function(A){return A.emojiPickerCategoryRenderer?A.emojiPickerCategoryRenderer.emojiIds&&A.emojiPickerCategoryRenderer.emojiIds.length>0:A.emojiPickerUpsellCategoryRenderer?A.emojiPickerUpsellCategoryRenderer.emojis&&A.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var R,X;return((R=_.q(N,_.G_3))==null?0:(X=R.categories)==null?0:X.find(M))?!0:!1}}});
YN.prototype.onEmojiSelect=YN.prototype.onEmojiSelect;YN.prototype.dataChanged=YN.prototype.dataChanged;YN.prototype.currentCommentOptionChanged=YN.prototype.currentCommentOptionChanged;_.G([_.S(_.Op),_.a("design:type",Object)],YN.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],YN.prototype,"rendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.Z3("#content-dom-if"),_.a("design:type",_.Dc)],YN.prototype,"contentDomIfEl",void 0);_.G([_.Z3("#content-no-emojis"),_.a("design:type",HTMLElement)],YN.prototype,"contentEl",void 0);_.G([_.Z3("#container"),_.a("design:type",HTMLElement)],YN.prototype,"containerEl",void 0);_.G([_.Z3("#comment-chip-container"),_.a("design:type",HTMLElement)],YN.prototype,"paidCommentChipContainerEl",void 0);_.G([_.Z3("#text-input"),_.a("design:type",HTMLElement)],YN.prototype,"editableTextEl",void 0);
_.G([_.Z3("#emoji-button"),_.a("design:type",HTMLElement)],YN.prototype,"emojiButtonEl",void 0);_.G([_.Z3("#emoji-picker > yt-emoji-picker-renderer"),_.a("design:type",Object)],YN.prototype,"emojiPickerEl",void 0);_.G([_.Z3("#text-input > ytd-comment-input"),_.a("design:type",Object)],YN.prototype,"ytdCommentInputEl",void 0);_.G([_.H(),_.a("design:type",Object)],YN.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],YN.prototype,"currentCommentOptionIndex",void 0);
_.G([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aS4}),_.a("design:type",Object)],YN.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.H(),_.a("design:type",Object)],YN.prototype,"isEmojiPickerDisplayed",void 0);_.G([_.H(),_.a("design:type",Object)],YN.prototype,"emojiManager",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],YN.prototype,"isUgcEmpty",void 0);
_.G([_.xB("currentCommentOption"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YN.prototype,"currentCommentOptionChanged",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],YN.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YN.prototype,"isEmojiYtdCommentInputEnabled",null);
_.G([_.z("data.title"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"title",null);_.G([_.z("data.authorText"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"channelName",null);_.G([_.z("data.commentOptionRenderers","currentCommentOption"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YN.prototype,"shouldShowPaidCommentChipRenderer",null);
_.G([_.z("data.commentOptionRenderers","currentCommentOption"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"paidCommentChipRenderer",null);_.G([_.z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"currentCommentOption",null);
_.G([_.z("data.defaultCommentText","superThanksSelectedTierEntity"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"commentText",null);_.G([_.z("data.placeholderText"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"placeholderText",null);_.G([_.z("data.commentDialog.commentDialogRenderer.editableText"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"editableText",null);
_.G([_.z("data.commentDialog.commentDialogRenderer.emojiButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"emojiButton",null);_.G([_.z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.a("design:type",Object),_.a("design:paramtypes",[])],YN.prototype,"emojiPicker",null);
_.G([_.z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],YN.prototype,"isEmojiButtonDisplayed",null);_.G([_.C3("yt-emoji-select"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],YN.prototype,"onEmojiSelect",null);YN=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],YN);
_.L(YN,"ytd-pdg-comment-preview-renderer",function(){if(T$b!==void 0)return T$b;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return T$b=M},{mode:2});var g1D;var ZO=function(){var M=_.n.apply(this,arguments)||this;M.selected=!1;return M};
_.v(ZO,_.n);_.F=ZO.prototype;_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.F.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.F.dataChanged=function(){this.data&&(_.L3(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.UO(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.ml(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.ml(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.F.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.F.onClick=function(){this.logClick()};
_.F.onKeyboardSelect=function(){_.YP(this.hostElement,"tap");this.onClick()};
_.F.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ZO.prototype.onClick=ZO.prototype.onClick;ZO.prototype.selectedChanged=ZO.prototype.selectedChanged;ZO.prototype.dataChanged=ZO.prototype.dataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],ZO.prototype,"componentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.pG),_.a("design:type",Object)],ZO.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.S(_.sH),_.a("design:type",Object)],ZO.prototype,"ironSelectableBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"shownThumbnail",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"basePriceText",void 0);_.G([_.H(),_.a("design:type",Object)],ZO.prototype,"purchaseCommand",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ZO.prototype,"selected",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZO.prototype,"dataChanged",null);_.G([_.xB("selected"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZO.prototype,"selectedChanged",null);_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ZO.prototype,"onClick",null);
ZO=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],ZO);
_.L(ZO,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(g1D!==void 0)return g1D;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return g1D=M},{mode:1});var Ek=function(){var M=_.n.apply(this,arguments)||this;M.selectedItemIndex=0;M.buyButtonDisabled=!1;return M};
_.v(Ek,_.n);_.F=Ek.prototype;
_.F.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]]"}}}}}};
_.F.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var M;var d=(M=_.q(this.data.colorSlider,hKq))==null?void 0:M.notches[this.selectedItemIndex].purchaseCommand}else{var N;d=(N=_.q(this.data.selectableItemButtons[this.selectedItemIndex],I1d))==null?void 0:N.purchaseCommand}if(d){M=_.q(d,_.vHo);M.productData||(M.productData={});var R;M.productData={pdgData:{commentMessageText:(R=this.commentPreviewRenderer)==null?void 0:R.getUserGeneratedCommentText()}};
_.YP(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(d)}}};
_.F.dataChanged=function(){if(this.data){_.j$.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.t7t(_.j$,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.j$.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var M;this.buyButtonDisabled=!((M=_.q(this.data.commentPreview,qP$))==null||!M.placeholderText);this.updatePriceSelectorStatus();var d;if((d=this.data)==null?0:d.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;M=[];this.data.preloadImages&&(M=this.data.preloadImages);
M=M.map(function(N){return _.Hz(N.thumbnails,1920)});
M=_.V(M);for(d=M.next();!d.done;d=M.next())(d=d.value)&&_.YBp(d).thenCatch(function(){_.vh(Error("ll"))})}};
_.F.superThanksSelectedTierEntityChanged=function(){var M;(this==null?void 0:(M=this.superThanksSelectedTierEntity)==null?void 0:M.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.F.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.F.updatePriceSelectorStatus=function(){this.isColorSlider?(_.K(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.K(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.K(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.K(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.F.closeBuyFlow=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.F.onUserGeneratedContentChanged=function(){var M;this.buyButtonDisabled=!((M=this.commentPreviewRenderer)==null?0:M.getUserGeneratedCommentText())};
_.F.updateSelectedItemIndexFromBinding=function(M){this.selectedItemIndex=M.detail.value};
_.Hm.Object.defineProperties(Ek.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disclaimerText)}}});
Ek.prototype.onUserGeneratedContentChanged=Ek.prototype.onUserGeneratedContentChanged;Ek.prototype.closeBuyFlow=Ek.prototype.closeBuyFlow;Ek.prototype.selectedItemIndexChanged=Ek.prototype.selectedItemIndexChanged;Ek.prototype.superThanksSelectedTierEntityChanged=Ek.prototype.superThanksSelectedTierEntityChanged;Ek.prototype.dataChanged=Ek.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Ek.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"selectedItemIndex",void 0);_.G([_.H(),_.a("design:type",Boolean)],Ek.prototype,"isColorSlider",void 0);
_.G([_.H(),_.a("design:type",Object)],Ek.prototype,"buyButtonDisabled",void 0);_.G([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aS4}),_.a("design:type",Object)],Ek.prototype,"superThanksSelectedTierEntity",void 0);_.G([_.Z3("ytd-pdg-comment-preview-renderer"),_.a("design:type",Object)],Ek.prototype,"commentPreviewRenderer",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Ek.prototype,"ytdReduxBehavior",void 0);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"dataChanged",null);_.G([_.xB("superThanksSelectedTierEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"superThanksSelectedTierEntityChanged",null);_.G([_.xB("selectedItemIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"selectedItemIndexChanged",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"closeBuyFlow",null);_.G([_.C3("ytd-pdg-user-generated-comment-changed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ek.prototype,"onUserGeneratedContentChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Ek.prototype,"isDisclaimerTextShown",null);
Ek=_.G([_.f({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Ek);
_.L(Ek,"yt-super-vod-buy-flow-content-renderer",function(){if(B$r!==void 0)return B$r;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return B$r=M},{mode:1});var Wzb;var M4=function(){var M=_.n.apply(this,arguments)||this;M.lottieAnimationRef={};return M};
_.v(M4,_.n);_.F=M4.prototype;_.F.created=function(){_.b0.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ux(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.F.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.YP(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.F.detached=function(){this.autoCloseJobId&&_.IQ.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ux(this,this.onPopupIronOverlayOpened))};
_.F.dataChanged=function(){var M=this;this.data&&this.data.autoCloseDelay&&(_.ZI(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Lq(_.IQ,function(){M.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.UO(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.F.onDOMLoadedLottie=function(){var M=this,d,N,R=Number((d=this.data)==null?void 0:(N=d.autoCloseDelay)==null?void 0:N.seconds)||0;this.fadeOutJobId=_.Lq(_.IQ,function(){M.lottiePlayerEl.classList.add("fadeout")},(R-.25)*1E3);
this.autoCloseJobId=_.Lq(_.IQ,function(){M.closePopup()},R*1E3)};
_.F.openPopup=function(){this.ironOverlayBehavior.open()};
_.F.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ZI(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Ni(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.h().resolve(_.xV).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.IQ.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.IQ.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.F.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var M,d;(M=this.lottieAnimationRef)==null||(d=M.lottieEl)==null||d.destroy();M=this.data.lottie;var N,R;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:M.url+"_"+Math.random(),path:M.url,autoplay:!0,loop:(R=(N=M.settings)==null?void 0:N.loop)!=null?R:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Hm.Object.defineProperties(M4.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var M,d;return!!((M=this.data)==null?0:(d=M.lottie)==null?0:d.url)}}});
M4.prototype.maybeInitializeLottie=M4.prototype.maybeInitializeLottie;M4.prototype.dataChanged=M4.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],M4.prototype,"rendererBehavior",void 0);_.G([_.S(_.fG),_.a("design:type",Object)],M4.prototype,"ironOverlayBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],M4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],M4.prototype,"lottiePlayerProps",void 0);
_.G([_.H(),_.a("design:type",Object)],M4.prototype,"lottieAnimationRef",void 0);_.G([_.Z3("ytd-lottie-player"),_.a("design:type",HTMLElement)],M4.prototype,"lottiePlayerEl",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"dataChanged",null);_.G([_.z("data"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],M4.prototype,"hasLottieAnimation",null);
_.G([_.xB("data.lottie.url"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],M4.prototype,"maybeInitializeLottie",null);M4=_.G([_.f({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],M4);
_.L(M4,"ytd-desktop-image-overlay-renderer",function(){if(Wzb!==void 0)return Wzb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Wzb=M},{mode:1});var wsd;var dC=function(){return _.n.apply(this,arguments)||this};
_.v(dC,_.n);_.F=dC.prototype;_.F.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"}}}}};
_.F.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",_.ux(this,this.closePopup))};
_.F.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ux(this,this.closePopup))};
_.F.dataChanged=function(){_.Eu(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.q(this.data.header,msP)&&(this.hasBackgroundBanner=!!_.q(this.data.header,msP).backgroundBanner)};
_.F.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ux(this,this.closePopup))};
_.F.closePopup=function(){this.data&&this.data.onCloseCommand&&_.dU(this.hostElement,[this.data.onCloseCommand])};
dC.prototype.handleBuyflowSelectionSubmitted=dC.prototype.handleBuyflowSelectionSubmitted;dC.prototype.dataChanged=dC.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],dC.prototype,"data",void 0);
_.G([_.H({value:!0,reflectToAttribute:!0}),_.a("design:type",Boolean)],dC.prototype,"hasBackgroundBanner",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dC.prototype,"dataChanged",null);_.G([_.C3("yt-pdg-buy-flow-selection-submitted"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],dC.prototype,"handleBuyflowSelectionSubmitted",null);
dC=_.G([_.f({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],dC);
_.L(dC,"ytd-pdg-buy-flow-renderer",function(){if(wsd!==void 0)return wsd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wsd=M},{mode:1});var psq;var N4=function(){var M=_.n.apply(this,arguments)||this;M.isOpen=!1;M.isPlaylistCreated=!1;return M};
_.v(N4,_.n);_.F=N4.prototype;_.F.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.F.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.YP(this.hostElement,"yt-refit")};
_.F.onCreateTap=function(){var M=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.dU(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(d,N){if(!_.Q("killswitch_ep_in_create_playlist_response")&&(N==null?0:N.actions))for(d=_.V(N.actions),N=d.next();!N.done;N=d.next())N=N.value,_.q(N,_.Kt)&&M.ytComponentBehavior.resolveCommand(N)}}]),this.isPlaylistCreated=!0)};
_.F.onKeydown=function(M){if(M.keyCode===13)this.onCreateTap()};
_.F.onServiceRequestCompleted=function(M){M.stopPropagation();_.ZI(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.F.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
N4.prototype.onServiceRequestCompleted=N4.prototype.onServiceRequestCompleted;N4.prototype.onKeydown=N4.prototype.onKeydown;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],N4.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],N4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],N4.prototype,"isOpen",void 0);
_.G([_.H(),_.a("design:type",Object)],N4.prototype,"isPlaylistCreated",void 0);_.G([_.H({value:{REQUIRED_LABEL:_.le("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.le("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.a("design:type",Object)],N4.prototype,"addToStrings",void 0);_.G([_.H({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.a("design:type",Array)],N4.prototype,"privacyBadge",void 0);
_.G([_.Z3("#privacy-input"),_.a("design:type",Object)],N4.prototype,"privacyInput",void 0);_.G([_.Z3("#name-input"),_.a("design:type",Object)],N4.prototype,"nameInput",void 0);_.G([_.C3("keydown"),_.a("design:type",Function),_.a("design:paramtypes",[KeyboardEvent]),_.a("design:returntype")],N4.prototype,"onKeydown",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],N4.prototype,"onServiceRequestCompleted",null);
N4=_.G([_.f({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],N4);
_.L(N4,"ytd-add-to-playlist-create-renderer",function(){if(psq!==void 0)return psq;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return psq=M},{mode:1});var m04;var hCr;var RS=function(){var M=_.n.apply(this,arguments)||this;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.v(RS,_.n);RS.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
RS.prototype.onCheckboxChange=function(M){var d=this;this.data&&_.OH(this,"yt-playlist-checkbox-changed",function(){var N=_.cN(M).checked?d.data.addToPlaylistServiceEndpoint:d.data.removeFromPlaylistServiceEndpoint;N&&_.h().resolve(_.xV).resolveCommand(N,{form:{element:d.hostElement}});_.Q("dl_playlist_killswitch")||d.transferState!=="TRANSFER_STATE_UNKNOWN"&&d.transferState!=="TRANSFER_STATE_FAILED"&&d.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:d.data.playlistId,action:"ACTION_SYNC"}})},
100)};
RS.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
RS.prototype.dataChanged=RS.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],RS.prototype,"data",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],RS.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],RS.prototype,"ytComponentBehavior",void 0);_.G([_.Z3("#checkbox"),_.a("design:type",HTMLInputElement)],RS.prototype,"checkbox",void 0);
_.G([_.H({selector:_.sW,selectorArgs:["data.playlistId"]}),_.a("design:type",String)],RS.prototype,"transferState",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],RS.prototype,"dataChanged",null);RS=_.G([_.f({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],RS);
_.L(RS,"ytd-playlist-add-to-option-renderer",function(){if(hCr!==void 0)return hCr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hCr=M},{mode:1});_.aR(f4e);_.aA(f4e,"ytd-menu-title-renderer",{propNames:["data"]});var Xh=function(){var M=_.n.apply(this,arguments)||this;M.addToStrings={ADD_TO_DROPDOWN_LABEL:_.le("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};M.closeButtonAriaLabel=_.le("SBOX_INAPPROPRIATE_CANCEL");M.dialog=_.Q("desktop_add_to_playlist_renderer_dialog_popup");return M};
_.v(Xh,_.n);_.F=Xh.prototype;_.F.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"}}}};
_.F.onPopupOpened=function(){_.t2(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.F.onPopupClosed=function(){_.t2(this.playlists,"scrollable",!1)};
_.F.computeAriaLabel=function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.V(this.data.actions);for(var d=M.next();!d.done;d=M.next())if(d=d.value,d.menuTitleRenderer)return _.HD(d.menuTitleRenderer.title)}};
_.F.onTapClose=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Hm.Object.defineProperties(Xh.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.V(this.data.actions);for(var d=M.next();!d.done;d=M.next())if(d=d.value,d.menuTitleRenderer)return d.menuTitleRenderer}return!1}}});
Xh.prototype.onPopupClosed=Xh.prototype.onPopupClosed;Xh.prototype.onPopupOpened=Xh.prototype.onPopupOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Xh.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Xh.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Xh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Xh.prototype,"addToStrings",void 0);_.G([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.a("design:type",String)],Xh.prototype,"ariaLabel",void 0);_.G([_.H(),_.a("design:type",String)],Xh.prototype,"closeButtonAriaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Xh.prototype,"dialog",void 0);
_.G([_.Z3("#playlists"),_.a("design:type",HTMLElement)],Xh.prototype,"playlists",void 0);_.G([_.Z3("ytd-add-to-playlist-create-renderer"),_.a("design:type",Object)],Xh.prototype,"createRenderer",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Xh.prototype,"menuTitleRenderer",null);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Xh.prototype,"onPopupOpened",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Xh.prototype,"onPopupClosed",null);Xh=_.G([_.f({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Xh);
_.L(Xh,"ytd-add-to-playlist-renderer",function(){if(m04!==void 0)return m04;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return m04=M},{mode:1});var QZY;var Fh=function(){var M=_.n.apply(this,arguments)||this;M.isPlaylistEditComplete=!1;M.isCollabEngagementDisabled=!1;M.closeButtonAriaLabel=_.le("SBOX_INAPPROPRIATE_CANCEL");M.saveButton={title:_.le("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};M.onValueChanged=function(){M.updateSaveButtonState();M.computeCollabEngagementDisabled()};
return M};
_.v(Fh,_.n);_.F=Fh.prototype;_.F.attached=function(){this.JSC$18190_scroller&&(this.JSC$18190_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18190_scroller.attached&&typeof this.JSC$18190_scroller.attached==="function"&&this.JSC$18190_scroller.attached())};
_.F.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.F.onPopupClosed=function(){this.reset()};
_.F.close=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.F.onClickSave=function(){var M=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var d=[];this.nameInput.value!==null&&d.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&d.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var N=Number(this.privacyInput.value);isNaN(N)||d.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:N})}this.votingInput.value!==null&&(N=this.votingInput.value)&&d.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:N});if(d.length>0){var R;_.q((R=this.data)==null?void 0:R.updateSettingsEndpoint,_.Pq).actions=d;var X;if((X=this.data)==null?0:X.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){M.close()}}}),this.isPlaylistEditComplete=!0}}};
_.F.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
_.F.computeEditorData=function(M){var d,N;return M==null?void 0:(d=M.sections)==null?void 0:(N=d[0])==null?void 0:N.playlistSettingsEditorCasualSectionRenderer};
_.F.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.F.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}}}}}};
_.F.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"}))};
_.F.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.F.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.F.isNameChanged=function(){var M,d,N;return(((M=this.editorData)==null?void 0:(d=M.name)==null?void 0:(N=d.textInputFormFieldRenderer)==null?void 0:N.value)||"")!==(this.nameInput.value||"")};
_.F.isDescriptionChanged=function(){var M,d,N;return(((M=this.editorData)==null?void 0:(d=M.description)==null?void 0:(N=d.textInputFormFieldRenderer)==null?void 0:N.value)||"")!==(this.descriptionInput.value||"")};
_.F.isPrivacyChanged=function(){var M,d,N,R,X,A,l,k;return((l=(M=this.editorData)==null?void 0:(d=M.privacy)==null?void 0:(N=d.dropdownFormFieldRenderer)==null?void 0:(R=N.dropdown)==null?void 0:(X=R.dropdownRenderer)==null?void 0:(A=X.entries)==null?void 0:A.find(function(T){var W;return T==null?void 0:(W=T.privacyDropdownItemRenderer)==null?void 0:W.isSelected}))==null?void 0:(k=l.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.privacyInput.value};
_.F.isVotingChanged=function(){var M,d,N,R,X,A,l,k;return((l=(M=this.editorData)==null?void 0:(d=M.voting)==null?void 0:(N=d.dropdownFormFieldRenderer)==null?void 0:(R=N.dropdown)==null?void 0:(X=R.dropdownRenderer)==null?void 0:(A=X.entries)==null?void 0:A.find(function(T){var W;return T==null?void 0:(W=T.privacyDropdownItemRenderer)==null?void 0:W.isSelected}))==null?void 0:(k=l.privacyDropdownItemRenderer)==null?void 0:k.int32Value)!==this.votingInput.value};
Fh.prototype.onPopupClosed=Fh.prototype.onPopupClosed;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Fh.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Fh.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Fh.prototype,"ytRendererStamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"data",void 0);_.G([_.H({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.a("design:type",Array)],Fh.prototype,"privacyBadge",void 0);_.G([_.H({computed:"computeEditorData(data)"}),_.a("design:type",Object)],Fh.prototype,"editorData",void 0);_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"isPlaylistEditComplete",void 0);_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"isCollabEngagementDisabled",void 0);
_.G([_.H({value:{REQUIRED_LABEL:_.le("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.le("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.a("design:type",Object)],Fh.prototype,"addToStrings",void 0);_.G([_.H(),_.a("design:type",String)],Fh.prototype,"closeButtonAriaLabel",void 0);_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"saveButton",void 0);_.G([_.Z3("#name-input"),_.a("design:type",Object)],Fh.prototype,"nameInput",void 0);
_.G([_.Z3("#description-input"),_.a("design:type",Object)],Fh.prototype,"descriptionInput",void 0);_.G([_.Z3("#privacy-input"),_.a("design:type",Object)],Fh.prototype,"privacyInput",void 0);_.G([_.Z3("#voting-input"),_.a("design:type",Object)],Fh.prototype,"votingInput",void 0);_.G([_.Z3("#scroller"),_.a("design:type",Object)],Fh.prototype,"JSC$18190_scroller",void 0);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Fh.prototype,"onPopupClosed",null);_.G([_.H(),_.a("design:type",Object)],Fh.prototype,"onValueChanged",void 0);Fh=_.G([_.f({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Fh);
_.L(Fh,"ytd-playlist-settings-editor-renderer",function(){if(QZY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" 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]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);QZY=M}M=QZY;return M},{mode:1});var qtb;_.pO("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Ac=function(){return _.n.apply(this,arguments)||this};
_.v(Ac,_.n);_.F=Ac.prototype;_.F.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}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var M=this.get("data.nextButton.buttonRenderer.navigationEndpoint");M&&(this.nextNavigationEndpoint=M,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.F.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var M={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",M)}}};
_.F.onPopupOpened=function(M){M.detail!==this&&M.detail!==this.hostElement||!_.Q("enable_premium_voluntary_pause")||_.ZI(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.F.onNextButtonTap=function(){var M=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);M&&this.ytdOpenPopupBehavior.openPopup(M)};
_.F.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
Ac.prototype.onPopupOpened=Ac.prototype.onPopupOpened;Ac.prototype.onSelectedResponseIndexChange=Ac.prototype.onSelectedResponseIndexChange;Ac.prototype.dataChanged=Ac.prototype.dataChanged;_.G([_.S(_.zc),_.a("design:type",Object)],Ac.prototype,"ytdOpenPopupBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Ac.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],Ac.prototype,"selectedResponseIndex",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ac.prototype,"dataChanged",null);_.G([_.xB("selectedResponseIndex"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Ac.prototype,"onSelectedResponseIndexChange",null);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Ac.prototype,"onPopupOpened",null);Ac=_.G([_.f({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Ac);
_.L(Ac,"ytd-red-cancel-survey-renderer",function(){if(qtb!==void 0)return qtb;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return qtb=M},{mode:1});var Iob;var Vi=function(){var M=_.n.apply(this,arguments)||this;M.closeButtonAriaLabel=_.le("SBOX_INAPPROPRIATE_CANCEL");return M};
_.v(Vi,_.n);Vi.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Vi.prototype.onClickClose=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Vi.prototype,"rendererStamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Vi.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Vi.prototype,"closeButtonAriaLabel",void 0);Vi=_.G([_.f({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Vi);
_.L(Vi,"ytd-search-filter-options-dialog-renderer",function(){if(Iob!==void 0)return Iob;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Iob=M},{mode:1});var v1G;var GLJ=function(){return function(M){M=M.availabilityType;return M===void 0||M==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||M==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var lh=function(){var M=_.n.apply(this,arguments)||this;M.qualityOptions=[];M.upsellOptions=[];M.showUpsellSection=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.rememberSettingsChecked=!1;return M};
_.v(lh,_.n);_.F=lh.prototype;_.F.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}}}}};
_.F.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.F.updateQualityOptions=function(){if(this.formats===void 0)_.ZI(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var M=[],d=[];this.showUpsellSection=!1;for(var N=_.V(this.formats),R=N.next();!R.done;R=N.next())(R=R.value)&&(R.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?d.push(R):M.push(R));M.length&&(this.qualityOptions=tpb(M));d.length&&(this.showUpsellSection=!0,this.upsellOptions=tpb(d))}};
_.F.updateRememberString=function(){if(this.downloadQualityPickerEntity)var M=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var d;M=(d=this.data)==null?void 0:d.premiumRememberSettingString}else{var N;M=(N=this.data)==null?void 0:N.rememberSettingString}M=M===void 0?_.le("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):M;this.rememberSettingsCheckboxRenderer={title:_.ue(M),disabled:!1}};
_.F.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Hm.Object.defineProperties(lh.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
lh.prototype.updateRememberString=lh.prototype.updateRememberString;lh.prototype.updateQualityOptions=lh.prototype.updateQualityOptions;lh.prototype.dataChanged=lh.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],lh.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],lh.prototype,"data",void 0);
_.G([_.S(_.Op),_.a("design:type",Object)],lh.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],lh.prototype,"selectedUpsellQuality",void 0);_.G([_.H({computed:"computeIcon_(data.premiumIcon)",value:""}),_.a("design:type",String)],lh.prototype,"premiumIcon",void 0);_.G([_.H({selector:fxY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.a("design:type",Object)],lh.prototype,"downloadQualityPickerEntity",void 0);
_.G([_.H(),_.a("design:type",Array)],lh.prototype,"qualityOptions",void 0);_.G([_.H(),_.a("design:type",Array)],lh.prototype,"upsellOptions",void 0);_.G([_.H(),_.a("design:type",Object)],lh.prototype,"showUpsellSection",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],lh.prototype,"darkerDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],lh.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.G([_.Z3("#remember-settings"),_.a("design:type",HTMLInputElement)],lh.prototype,"rememberSettingsCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],lh.prototype,"rememberSettingsChecked",void 0);_.G([_.H(),_.a("design:type",Function)],lh.prototype,"onRememberSettingsCheckedChanged",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lh.prototype,"dataChanged",null);
_.G([_.xB("downloadQualityPickerEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lh.prototype,"updateQualityOptions",null);_.G([_.xB("selectedUpsellQuality"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],lh.prototype,"updateRememberString",null);lh=_.G([_.f({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],lh);
_.L(lh,"ytd-download-quality-selector-content",function(){if(v1G!==void 0)return v1G;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return v1G=M},{mode:1});var OdD;var $x=function(){var M=_.n.apply(this,arguments)||this;M.selectedUpsellQuality=!1;M.qualityOptions=[];M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.useUpsellDismissAlternate=_.Q("use_not_now_dl_upsell_dismiss_cta");M.shouldShowAlternateUpsellDimiss=!1;M.rememberSettings=!1;M.rememberSettingsChecked=!1;M.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};M.rememberSettingsCheckedChanged=function(d){M.rememberSettingsChecked=d};
return M};
_.v($x,_.n);_.F=$x.prototype;
_.F.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ue(_.le("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ue(_.le("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ue(_.le("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ue(_.le("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.F.updateQualityOptions=function(){this.formats===void 0?_.ZI(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=tpb(this.formats)};
_.F.onQualityOptionsSelect=function(M){if(this.qualityOptions&&M){M!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var d=_.V(this.qualityOptions.entries()),N=d.next();!N.done;N=
d.next()){N=_.V(N.value);var R=N.next().value;N=N.next().value;var X=void 0,A=void 0;if(((X=N)==null?void 0:(A=X.settingsRadioOptionRenderer)==null?void 0:A.id)===M){this.selectedQualityIndex=R;M=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((M=this.formats[R])==null?void 0:M.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.F.onClickSubmit=function(){var M;if((M=this.downloadButtonRenderer)==null||!M.isDisabled){var d,N;M=(N=(d=this.data)==null?void 0:d.onSubmitEndpoint)!=null?N:{};var R,X;if(this.formats&&(((R=_.q(M,_.NH))==null?0:R.videoId)||((X=_.q(M,_.R0))==null?0:X.playlistId))){var A,l,k,T,W,w;d={formatType:(T=(A=this.formats)==null?void 0:(l=A[(k=this.selectedQualityIndex)!=null?k:0])==null?void 0:l.format)!=null?T:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(W=this.getOfflineEndpoint(M))==null?void 0:(w=W.actionParams)==null?void 0:w.settingsAction)};this.getOfflineEndpoint(M).actionParams=d;this.ytComponentBehavior.resolveCommand(M)}_.ZI(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.F.onClickUpsell=function(){var M;if((M=this.upsellButtonRenderer)==null||!M.isDisabled){var d,N;M=(N=(d=this.data)==null?void 0:d.upsellEndpoint)!=null?N:{};this.ytComponentBehavior.resolveCommand(M);_.ZI(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);d="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var R,X,A,l;d=(l=(R=this.formats)==null?void 0:(X=R[(A=this.selectedQualityIndex)!=null?A:0])==null?void 0:X.format)!=null?l:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:d}})}};
_.F.onClickClose=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.F.getOfflineSettingsAction=function(M,d){return M?d===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":d:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.F.getOfflineEndpoint=function(M){return _.q(M,_.NH)?_.q(M,_.NH):_.q(M,_.R0)};
_.Hm.Object.defineProperties($x.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.ue(_.le("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
$x.prototype.updateQualityOptions=$x.prototype.updateQualityOptions;$x.prototype.dataChanged=$x.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],$x.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Number)],$x.prototype,"selectedQualityIndex",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"selectedUpsellQuality",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],$x.prototype,"ytdReduxBehavior",void 0);
_.G([_.H({selector:fxY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.a("design:type",Object)],$x.prototype,"downloadQualityPickerEntity",void 0);_.G([_.H(),_.a("design:type",Array)],$x.prototype,"qualityOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],$x.prototype,"darkerDarkTheme",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],$x.prototype,"useUpsellDismissAlternate",void 0);
_.G([_.H(),_.a("design:type",Object)],$x.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"downloadButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"upsellButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"cancelButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"upsellCancelButtonRenderer",void 0);_.G([_.H(),_.a("design:type",Object)],$x.prototype,"rememberSettings",void 0);
_.G([_.H(),_.a("design:type",Object)],$x.prototype,"rememberSettingsChecked",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$x.prototype,"dataChanged",null);_.G([_.xB("downloadQualityPickerEntity"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],$x.prototype,"updateQualityOptions",null);$x=_.G([_.f({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],$x);
_.L($x,"ytd-download-quality-selector-renderer",function(){if(OdD!==void 0)return OdD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return OdD=M},{mode:1});var jZ9;var Bp=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Bp,_.n);Bp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bp.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Bp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Bp.prototype,"darkerDarkTheme",void 0);_.G([_.H({computed:"computeIcon_(data.infoIcon)"}),_.a("design:type",Object)],Bp.prototype,"infoIcon",void 0);
_.G([_.H({computed:"computeIcon_(data.warningIcon)"}),_.a("design:type",Object)],Bp.prototype,"warningIcon",void 0);Bp=_.G([_.f({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Bp);
_.L(Bp,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(jZ9!==void 0)return jZ9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jZ9=M},{mode:1});var sZr;var kx=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(kx,_.n);kx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kx.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"}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kx.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],kx.prototype,"darkerDarkTheme",void 0);kx=_.G([_.f({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],kx);
_.L(kx,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(sZr!==void 0)return sZr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return sZr=M},{mode:1});var PD$;var T8=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(T8,_.n);T8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
T8.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"}}}}};
T8.prototype.onServiceRequestSentOrCompleted=function(M,d){d&&d.actions&&d.actions.length>0&&_.ZI(this.hostElement,"yt-close-popup-action",[this.is])};
T8.prototype.onServiceRequestSentOrCompleted=T8.prototype.onServiceRequestSentOrCompleted;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],T8.prototype,"darkerDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],T8.prototype,"data",void 0);
_.G([_.C3("yt-service-request-completed"),_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],T8.prototype,"onServiceRequestSentOrCompleted",null);T8=_.G([_.f({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],T8);
_.L(T8,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(PD$!==void 0)return PD$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return PD$=M},{mode:1});var o19;var Dz=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.submitButtonDisabled=!0;return M};
_.v(Dz,_.n);_.F=Dz.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.F.onDataChanged=function(){var M,d,N;if(((M=this.data)==null?void 0:(d=M.confirmButton)==null?void 0:(N=d.buttonRenderer)==null?void 0:N.isDisabled)!==void 0){var R,X,A;this.submitButtonDisabled=(R=this.data)==null?void 0:(X=R.confirmButton)==null?void 0:(A=X.buttonRenderer)==null?void 0:A.isDisabled}};
_.F.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.F.updateSubmitButtonDisabledFromBinding=function(M){this.submitButtonDisabled=M.detail.value};
_.F.updateSubmitButtonDisabledFromConfirmCheckbox=function(M){this.submitButtonDisabled=!M.detail.value};
Dz.prototype.onDataChanged=Dz.prototype.onDataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Dz.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Dz.prototype,"darkerDarkTheme",void 0);
_.G([_.H(),_.a("design:type",Object)],Dz.prototype,"submitButtonDisabled",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Dz.prototype,"onDataChanged",null);Dz=_.G([_.f({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Dz);
_.L(Dz,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(o19!==void 0)return o19;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return o19=M},{mode:1});var r1q;var gC=function(){return _.n.apply(this,arguments)||this};
_.v(gC,_.n);_.Hm.Object.defineProperties(gC.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M,d,N;return((M=this.data)==null?void 0:M.title)+" "+((d=this.data)==null?void 0:d.metadataPrimary)+" "+((N=this.data)==null?void 0:N.metadataSecondary)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],gC.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gC.prototype,"data",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],gC.prototype,"ariaLabel",null);gC=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],gC);
_.L(gC,"ytd-compact-product-list-item-renderer",function(){if(r1q!==void 0)return r1q;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return r1q=M},{mode:1});var KzC;var Wp=function(){return _.n.apply(this,arguments)||this};
_.v(Wp,_.n);Wp.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]]"}}}}}};
_.Hm.Object.defineProperties(Wp.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Wp.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Wp.prototype,"data",void 0);Wp=_.G([_.f({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Wp);
_.L(Wp,"ytd-compact-product-list-renderer",function(){if(KzC!==void 0)return KzC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return KzC=M},{mode:1});var y1Y;var wC=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(wC,_.n);_.F=wC.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.F.getBackgroundUrl=function(){var M=this.get("data.headerImage.thumbnails");return M?"url("+_.Hz(M,this.hostElement.clientWidth)+")":""};
_.F.onDataChanged=function(){var M=this.getBackgroundUrl();M&&(this.header.style.backgroundImage=M);M=_.Ou();var d=_.vl(),N=this.get("data.trackingParams");N&&d&&M&&_.c1(M,d,_.At(N));M=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(d=M.next();!d.done;d=M.next())d.value.onShow()};
_.F.onPopupClosed=function(M){_.cN(M).localName==="ytd-membership-post-cancel-renderer"&&_.ZI(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
wC.prototype.onPopupClosed=wC.prototype.onPopupClosed;wC.prototype.onDataChanged=wC.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],wC.prototype,"darkerDarkTheme",void 0);
_.G([_.Z3("#header"),_.a("design:type",HTMLDivElement)],wC.prototype,"header",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wC.prototype,"onDataChanged",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],wC.prototype,"onPopupClosed",null);wC=_.G([_.f({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],wC);
_.L(wC,"ytd-membership-post-cancel-renderer",function(){if(y1Y!==void 0)return y1Y;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return y1Y=M},{mode:1});var J1P;var pj=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(pj,_.n);pj.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
pj.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],pj.prototype,"darkerDarkTheme",void 0);_.G([_.Z3("ytd-feedback-survey-renderer"),_.a("design:type",Object)],pj.prototype,"feedbackSurveyRenderer",void 0);pj=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],pj);
_.L(pj,"ytd-sponsorship-confirm-cancel-content",function(){if(J1P!==void 0)return J1P;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return J1P=M},{mode:1});var c1C;var ma=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.maybeSubmitFeedback=function(){M.content&&M.content.maybeSubmitFeedback()};
return M};
_.v(ma,_.n);_.F=ma.prototype;_.F.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.F.onYtPopupOpened=function(M,d){d===this&&this.data&&this.data.onOpenCommands&&_.Ni(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ZI(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.F.onYtPopupClosed=function(M,d){(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Ni(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestCompleted=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.F.onYtServiceRequestError=function(M){_.Q8(this.hostElement,M.detail.error.message)};
_.F.onDataChanged=function(){if(this.isAttached){var M=this.backgroundUrl;M&&(_.K(this.hostElement).querySelector("#header").style.backgroundImage=M)}};
_.Hm.Object.defineProperties(ma.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return M?"url("+_.Hz(M,this.hostElement.clientWidth)+")":""}}});
ma.prototype.onDataChanged=ma.prototype.onDataChanged;ma.prototype.onYtServiceRequestError=ma.prototype.onYtServiceRequestError;ma.prototype.onYtServiceRequestCompleted=ma.prototype.onYtServiceRequestCompleted;ma.prototype.onYtPopupClosed=ma.prototype.onYtPopupClosed;ma.prototype.onYtPopupOpened=ma.prototype.onYtPopupOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ma.prototype,"data",void 0);_.G([_.H({value:function(){return _.le("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],ma.prototype,"closeButtonAriaLabel",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],ma.prototype,"darkerDarkTheme",void 0);_.G([_.Z3("#scrollable"),_.a("design:type",Object)],ma.prototype,"scrollable",void 0);_.G([_.Z3("ytd-sponsorship-confirm-cancel-content"),_.a("design:type",Object)],ma.prototype,"content",void 0);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],ma.prototype,"onYtPopupOpened",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],ma.prototype,"onYtPopupClosed",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ma.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],ma.prototype,"onYtServiceRequestError",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],ma.prototype,"onDataChanged",null);
ma=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ma);
_.L(ma,"ytd-sponsorship-confirm-cancel-renderer",function(){if(c1C!==void 0)return c1C;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return c1C=M},{mode:_.G3("kevlar_poly_si_batch_j081")?1:2});var St4;var hc=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(hc,_.n);hc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hc.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],hc.prototype,"darkerDarkTheme",void 0);hc=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],hc);
_.L(hc,"ytd-sponsorships-celebration-content",function(){if(St4!==void 0)return St4;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return St4=
M},{mode:1});var zCT;var bd9=_.a1(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Qi=function(){var M=_.n.apply(this,arguments)||this;M.scriptsAppended=!1;M.buttonOverrides={type:"tonal",style:"overlay-dark"};return M};
_.v(Qi,_.n);_.F=Qi.prototype;
_.F.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:_.Q("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.onDataChanged=function(){var M;(M=this.header)==null||M.style.setProperty("background-color",this.backgroundColor);if(M=this.headerImageUrl){var d;(d=this.header)==null||d.style.setProperty("background-image",M)}d=_.Ou(4);M=_.vl(4);var N=this.get("data.trackingParams");if(N&&M&&d){var R=_.At(N);_.c1(d,M,R);_.Q("combine_ve_grafts")?_.Nx().graftServerVe(N,M,4):_.c1(d,M,R)}d=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(M=d.next();!M.done;M=d.next())M.value.onShow();if(d=this.get("data.gtmId"))_.kH(d,
_.rK("GL","")),this.setupConversionTracking()};
_.F.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("script");var d=_.yL(bd9.join(""));_.cQ(M,d);document.head.appendChild(M);M=document.createElement("noscript");M.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(M);this.scriptsAppended=!0}};
_.F.onPopupClosed=function(M){if(_.cN(M).localName==="ytd-sponsorships-celebration-renderer"){_.ZI(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var d;this.data&&((d=this.data)==null?0:d.dismissCommand)&&_.YQ.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Hm.Object.defineProperties(Qi.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.ml(M)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return M?"url("+_.Hz(M,this.hostElement.getBoundingClientRect().width)+")":""}}});
Qi.prototype.onPopupClosed=Qi.prototype.onPopupClosed;Qi.prototype.onDataChanged=Qi.prototype.onDataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qi.prototype,"data",void 0);_.G([_.Z3("#header"),_.a("design:type",HTMLElement)],Qi.prototype,"header",void 0);
_.G([_.H(),_.a("design:type",Object)],Qi.prototype,"scriptsAppended",void 0);_.G([_.H(),_.a("design:type",Object)],Qi.prototype,"buttonOverrides",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Qi.prototype,"onDataChanged",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Qi.prototype,"onPopupClosed",null);
Qi=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Qi);
_.L(Qi,"ytd-sponsorships-celebration-renderer",function(){if(zCT!==void 0)return zCT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return zCT=M},{mode:1});var eCi;var q4=function(){var M=_.n.apply(this,arguments)||this;M.isToggleChecked=!1;return M};
_.v(q4,_.n);q4.prototype.onDataChanged=function(){var M;this.isToggleChecked=((M=this.data)==null?void 0:M.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
q4.prototype.close=function(){var M;((M=this.data)==null?0:M.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
q4.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var M,d=_.q((M=this.data)==null?void 0:M.switchButton,v3d);d&&(this.isToggleChecked&&d.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(d.switchOnInnertubeCommand),!this.isToggleChecked&&d.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(d.switchOffInnertubeCommand))};
q4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
q4.prototype.onDataChanged=q4.prototype.onDataChanged;_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],q4.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q4.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],q4.prototype,"isToggleChecked",void 0);_.G([_.H({value:_.le("CLOSE")}),_.a("design:type",String)],q4.prototype,"closeButtonAriaLabel",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],q4.prototype,"onDataChanged",null);q4=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],q4);
_.L(q4,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(eCi!==void 0)return eCi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return eCi=M},{mode:1});var Hdr;var IS=function(){return _.n.apply(this,arguments)||this};
_.v(IS,_.n);_.F=IS.prototype;_.F.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"}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.detached=function(){this.playerElement.stop()};
_.F.onYtServiceRequestCompleted=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.F.onYtServiceRequestError=function(M){_.Q8(this.hostElement,M.detail.error.message)};
_.F.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.F.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.F.getTier=function(M,d){return!M||!M.tiers||d<0?null:_.q(M.tiers[d],P8T)};
_.F.moreThanOne=function(M){return!!(M&&M.length>1)};
_.F.tierOverviewTap=function(M){var d=this;this.selectedTier=M.model.index;_.bM(this,function(){_.YP(d.hostElement,"yt-refit")})};
_.F.computeSelectedClass=function(M,d){return this.isSelected(M,d)?"selected":""};
_.F.computeButtonAriaPressed=function(M,d){return this.isSelected(M,d)?"true":"false"};
_.F.isSelected=function(M,d){return M===d};
_.F.onDataChanged=function(){_.K(this.hostElement).querySelector("#header-overlay").style.visibility="";_.K(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var M=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),
d=M.next();!d.done;d=M.next())d.value.onShow();var N;this.set("selectedTier",(N=this.get("data.targetTierIndex"))!=null?N:0);var R;(M=(R=this.data)==null?void 0:R.onVisible)&&this.ytComponentBehavior.resolveCommand(M)};
_.F.initializeVe=function(M){var d=_.Ou(),N=_.vl(),R=this.get("data.trackingParams");N&&d&&(this.screenLayer=4,d=_.JA(_.PVS)(void 0,69877,{clientScreenNonce:d,visualElement:N},void 0,void 0,void 0),_.KkL(d,69877,4),N=_.vl(4),R&&N&&(R=_.At(R),_.c1(d,N,R),M&&(this.offerVideoVe=_.Tx(74659),_.c1(d,R,this.offerVideoVe))))};
_.F.setHeaderBackground=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.K(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.ml(M);if(M=this.getHeaderImage())M=_.Hz(M,screen.width),_.K(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+M+")"};
_.F.getHeaderImage=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&M?M:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.F.setupVideoPlayer=function(M){var d=this,N,R,X,A;return _.B(function(l){if(l.nextAddress==1)return N=d.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),R=d.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.Q("kevlar_player_update_killswitch")?d.playerElement.update({args:{autoplay:N,video_id:M,player_params:R}}):d.playerElement.loadVideoWithPlayerVars({autoplay:N,video_id:M,player_params:R}),
_.D(l,d.playerElement.getPlayerPromise(),2);X=l.yieldResult;X.addEventListener("onStateChange",function(k){d.onPlayerStateChange(k)});
X.setScreenLayer(d.screenLayer);(A=_.Ou(4))&&d.offerVideoVe&&_.SD(A,d.offerVideoVe);N&&(d.pauseOtherPlayers(),d.playerElement.focusOnPlayer(),d.playerElement.getPlayer().hideControls(),_.gL(_.IQ,function(){d.fadeOutHeaderOverlay()},4E3));
_.Vy(l)})};
_.F.onPlayerStateChange=function(M){M===1?this.backgroundPlayerElement&&(M=this.backgroundPlayerElement.player_.getPlayerState(),M!==1&&M!==3||this.backgroundPlayerElement.pause()):M===0&&(_.K(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.K(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.F.fadeOutHeaderOverlay=function(){_.K(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.F.onHeaderTap=function(){if(this.offerVideo){_.K(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var M;((M=this.playerElement.player_)==null?void 0:M.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(M=_.Ou(4))&&this.offerVideoVe&&_.eD(M,this.offerVideoVe)}};
_.F.getBackgroundImageLayerClass=function(M){return M?"background-image-layer-with-video":""};
_.F.getHeaderClass=function(M){return M?"header-with-video":""};
_.F.getHeaderOverlayClass=function(M){return M?"header-overlay-with-video":""};
_.F.getTitleContainerClass=function(M,d){return M?"title-container-with-video":d?"title-container-without-video-flexible":"title-container-without-video"};
_.F.tierTitleDisplayStatus=function(M){return this.moreThanOne(M)?"hide":"show"};
_.F.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.h().resolve(_.et).getPlayerElement():this.backgroundPlayerElement=_.nO();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var M=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=M===1||M===3;this.backgroundPlayerElement.pause()}};
_.F.isMiniplayerActive=function(){return _.h().resolve(_.et).isMiniplayerActive()};
_.F.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("selected-tier-changed",this.selectedTier))};
IS.prototype.selectedTierChangedForBinding=IS.prototype.selectedTierChangedForBinding;IS.prototype.onDataChanged=IS.prototype.onDataChanged;IS.prototype.onYtPopupClosed=IS.prototype.onYtPopupClosed;IS.prototype.onYtPopupOpened=IS.prototype.onYtPopupOpened;IS.prototype.onYtServiceRequestError=IS.prototype.onYtServiceRequestError;IS.prototype.onYtServiceRequestCompleted=IS.prototype.onYtServiceRequestCompleted;
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],IS.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],IS.prototype,"data",void 0);_.G([_.H({value:0}),_.a("design:type",Number)],IS.prototype,"selectedTier",void 0);
_.G([_.H({value:""}),_.a("design:type",String)],IS.prototype,"offerVideo",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],IS.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.G([_.H({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.d3(this)}}),
_.a("design:type",String)],IS.prototype,"playerId",void 0);_.G([_.Z3("tp-yt-paper-dialog-scrollable"),_.a("design:type",Object)],IS.prototype,"scrollable",void 0);_.G([_.Z3("ytd-sponsorships-tier-renderer"),_.a("design:type",Object)],IS.prototype,"tierRenderer",void 0);_.G([_.Z3("#player"),_.a("design:type",Object)],IS.prototype,"playerElement",void 0);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],IS.prototype,"onYtServiceRequestCompleted",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],IS.prototype,"onYtServiceRequestError",null);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IS.prototype,"onYtPopupOpened",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IS.prototype,"onYtPopupClosed",null);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IS.prototype,"onDataChanged",null);
_.G([_.xB("selectedTier"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],IS.prototype,"selectedTierChangedForBinding",null);IS=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],IS);
_.L(IS,"ytd-sponsorships-offer-renderer",function(){if(Hdr!==void 0)return Hdr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Hdr=M},{mode:_.G3("kevlar_poly_si_batch_j077")?1:2});var n1P;var vp=function(){var M=_.n.apply(this,arguments)||this;M.buttonOverrides={type:"filled",style:"mono"};return M};
_.v(vp,_.n);vp.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}}}}}};
vp.prototype.backgroundColorChanged=function(){var M,d,N,R=(d=_.q((M=this.data)==null?void 0:M.content,o3b))==null?void 0:(N=d.backgroundColor)==null?void 0:N.backgroundColor;R&&(M=_.p3(R),_.K(this.hostElement).querySelector("#banner").style.backgroundColor=M,_.K(this.hostElement).querySelector("#abstract-art").style.backgroundColor=M)};
vp.prototype.attached=function(){this.JSC$18276_scroller&&(this.JSC$18276_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18276_scroller.attached&&typeof this.JSC$18276_scroller.attached==="function"&&this.JSC$18276_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vp.prototype.backgroundColorChanged=vp.prototype.backgroundColorChanged;_.G([_.H(),_.a("design:type",Object)],vp.prototype,"data",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#scroller"),_.a("design:type",Object)],vp.prototype,"JSC$18276_scroller",void 0);_.G([_.H(),_.a("design:type",Object)],vp.prototype,"buttonOverrides",void 0);
_.G([_.xB("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],vp.prototype,"backgroundColorChanged",null);vp=_.G([_.f({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],vp);
_.L(vp,"ytd-sponsorships-promotion-celebration-renderer",function(){if(n1P!==void 0)return n1P;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return n1P=M},{mode:_.G3("kevlar_poly_si_batch_j077")?1:2});var idJ;var fod;var Om=function(){return _.n.apply(this,arguments)||this};
_.v(Om,_.n);Om.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Om.prototype.computeIsInitiallyChecked=function(M){return M===1};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Om.prototype,"data",void 0);_.G([_.Z3("#checkbox"),_.a("design:type",Object)],Om.prototype,"checkbox",void 0);Om=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Om);
_.L(Om,"ytd-subscription-toggle-option-renderer",function(){if(fod!==void 0)return fod;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return fod=M},{mode:1});var jg=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return M};
_.v(jg,_.n);jg.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"}}}};
jg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jg.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var M=_.K(this.hostElement).querySelector("#options").selected;M=this.data.options[M].subscriptionRadioOptionRenderer.serviceEndpoint;var d=_.K(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");d&&M&&M.modifyChannelNotificationPreferenceEndpoint&&(d=d.getValue())&&(M.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[d]);_.h().resolve(_.xV).resolveCommand(M,{form:{element:this.hostElement}});
_.ZI(this.hostElement,"yt-close-popup-action")};
_.Hm.Object.defineProperties(jg.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var M=this.data.options,d=0;d<M.length;d++){var N=M[d].subscriptionRadioOptionRenderer;if(N&&N.selected)return d}return null}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],jg.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],jg.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],jg.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jg.prototype,"darkerDarkTheme",void 0);_.G([_.z("data.options"),_.a("design:type",Object),_.a("design:paramtypes",[])],jg.prototype,"initialIndex",null);jg=_.G([_.f({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],jg);
_.L(jg,"ytd-subscription-notification-options-renderer",function(){if(idJ!==void 0)return idJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return idJ=M},{mode:1});var Lz$;var sm=function(){return _.n.apply(this,arguments)||this};
_.v(sm,_.n);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sm.prototype,"data",void 0);sm=_.G([_.f({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],sm);
_.L(sm,"ytd-tvfilm-offer-groups-renderer",function(){if(Lz$!==void 0)return Lz$;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return Lz$=M},{mode:1});var t1i;var Pp=function(){var M=_.n.apply(this,arguments)||this;M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Pp,_.n);_.F=Pp.prototype;_.F.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"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.F.computeThumbnailClass=function(M){return M.thumbnailOverlays?M.isShow?"thumbnail-show":"thumbnail-movie":M.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.F.computeCommerceSectionClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.F.computeTitleClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.F.onDataChanged=function(){[].concat(_.wu(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(M){M.onShow()})};
Pp.prototype.onDataChanged=Pp.prototype.onDataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Pp.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Pp.prototype,"darkerDarkTheme",void 0);
_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Pp.prototype,"onDataChanged",null);Pp=_.G([_.f({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Pp);
_.L(Pp,"ytd-ypc-offers-overlay-renderer",function(){if(t1i!==void 0)return t1i;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return t1i=M},{mode:_.G3("kevlar_poly_si_batch_j028")?1:2});var GjD;var aoi=function(){this.usedMethods=new Set};
aoi.prototype.add=function(M){this.usedMethods.add(M)};
aoi.prototype.reset=function(){this.usedMethods.clear()};var CDq=function(M,d){this.query=M;this.previousSearchQuery=d;this.id=U0P++;if(!u4b){d=_.rK("SBOX_SETTINGS");M="https://"+((d==null?void 0:d.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var N=d==null?void 0:d.REQUEST_LANGUAGE;N&&(M+="&hl="+N);(N=d==null?void 0:d.REQUEST_DOMAIN)&&(M+="&gl="+N);M+="&client=youtube&gs_ri=youtube";(N=d==null?void 0:d.SUGG_EXP_ID)&&(M+="&sugexp="+encodeURIComponent(N));(N=d==null?void 0:d.PSUGGEST_TOKEN)&&(M+="&tok="+N);(d=
d==null?void 0:d.SESSION_INDEX)&&(M+="&authuser="+d);_.Q("desktop_enable_visual_suggest")&&(M+="&h=180&w=320&ytvs=1");u4b=M}},x0C=function(M){var d="q="+encodeURIComponent(M.query);
M.previousSearchQuery&&(d+="&pq="+encodeURIComponent(M.previousSearchQuery));return d},Ytq=function(){var M=_.rK("SBOX_SETTINGS"),d={};
if(M==null?0:M.SEND_VISITOR_DATA)d["X-Goog-Visitor-Id"]=M==null?void 0:M.VISITOR_DATA;return d},Zdq=function(M){var d=u4b;
d+="&gs_id="+M.id.toString(36);d+="&q="+encodeURIComponent(M.query);d+="&cp="+M.query.length;M.previousSearchQuery&&(d+="&pq="+encodeURIComponent(M.previousSearchQuery));(M=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(d+="&video_id="+M);return d},U0P=0,u4b="";var E19=_.cB.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,MjP=_.cB.SEARCH_ENTITY_SUGGESTION_MOVIE,ddG=_.cB.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,NrY=_.cB.SEARCH_ENTITY_SUGGESTION_TV_SHOW,RzT=function(M,d){this.text=M;this.bold=d},XSY=function(M,d,N){this.input=d;
this.index=N;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=M[0];this.type=M[1];this.subtypes=M[2];var R;this.displayText=tr((R=M[3])==null?void 0:R.b);var X;this.ignoredPrefix=tr((X=M[3])==null?void 0:X.a);var A,l;this.hasNewVideo=((A=M[3])==null?void 0:(l=A.zam)==null?void 0:l.toString())==="true"?!0:!1;var k;this.visualSuggestUrl=(k=M[3])==null?void 0:k.zai;var T;this.entityType=tr((T=M[3])==null?void 0:T.zap);var W;this.entityName=tr((W=M[3])==null?void 0:W.zao);var w;d=tr((w=
M[3])==null?void 0:w.zaf);w=UrT(this.subtypes);if(d&&w){if(d){N="";switch(w){case "YOUTUBE_ENTITY_TYPE_SONG":N=ddG;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":N=E19;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":N=NrY;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":N=MjP}w=w==="YOUTUBE_ENTITY_TYPE_SONG"||w==="YOUTUBE_ENTITY_TYPE_ALBUM"?N+" \u2022  \u2022 "+d:d}else w="";this.entitySubtitle=w}var p;this.entityMid=(p=M[3])==null?void 0:p.zae;var m;this.externalChannelId=(m=M[3])==null?void 0:m.zav},FPP=function(M){var d=
[],N,R=(N=M.displayText)!=null?N:M.text;
if(M.type===33)return d.push(new RzT(R,!1)),d;if(R.length>=M.input.length&&R.substring(0,M.input.length)===M.input)d.push(new RzT(M.input,!1)),d.push(new RzT(R.substring(M.input.length),!0));else{var X=new Set(M.input.split(/\s/)),A=R.split(/\s/);d=A.map(function(l,k){return new RzT(l.trim()+(k===A.length-1?"":" "),!X.has(l))})}return d},AeJ=function(M){return!!UrT(M.subtypes)};var VjJ=function(M){this.rawResponse=["",[],{}];this.suggestions=[];try{var d=JSON.parse(uw4(M));if(typeof d==="object"&&d!==null)this.rawResponse=d;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(R){console.log("Suggest: Failed to parse SuggestResponse!");return}var N=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(R,X){return new XSY(R,N,X)})};var lQY=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new aoi;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18312_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},$de,BrY=function(){$de||($de=new lQY);
return $de};
lQY.prototype.updateSuggestions=function(M){var d=this;this.availableSuggestions.forEach(function(N){d.previousSuggestions[N]=!0});
this.availableSuggestions=M.map(function(N){var R=N.type.toString();N.subtypes.length>0&&(R+="i"+N.subtypes.join("i"),R+="k"+N.suggestionSources.COMPLETE_SERVER.toString());return R})};
var kZ9=function(M,d){var N=Date.now();M.firstEditTime<0&&(M.firstEditTime=N);d&&(M.lastQueryBuildTime=N);M.lastEditTime=N};
lQY.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18312_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var TrT=function(M){var d="";M.availableSuggestions.forEach(function(X){delete M.previousSuggestions[X]});
for(var N=_.V(Object.keys(M.previousSuggestions)),R=N.next();!R.done;R=N.next())R=R.value,M.previousSuggestions[R]&&(d+=(d?"j":"")+R);return d},DdG=function(M,d){var N=[];
d&&(N[1]=d.toString());N[0]="youtube";N[7]=Date.now()-M.startTime;N[6]=M.sessionNumber;M.zeroPrefixSuggestionCount>=0&&(N[33]=M.zeroPrefixSuggestionCount);N[13]=M.outOfSyncResponseCount;if(M.availableSuggestions.length>0){for(var R=d="",X=0,A=_.V(M.availableSuggestions),l=A.next();!l.done;l=A.next())l=l.value,l!==R&&(X>1&&(d+="l"+X),d+=(R?"j":"")+l,X=0,R=l),X+=1;X>1&&(d+="l"+X);N[3]=d}N[35]=TrT(M);M.selectedSuggestionIndex>=0&&(N[2]=M.selectedSuggestionIndex);var k;if(d=(k=_.rK("SBOX_SETTINGS"))==
null?void 0:k.SUGG_EXP_ID)N[19]=M.normalize(d),k=0,M.experimentTriggeredBeforeFinal&&(k|=1),M.experimentTriggeredFinal&&(k|=2),N[20]=k;N[26]=Array.from(M.inputMethodsTracker.usedMethods).join("j");if(M.JSC$18312_totalRoundTripTime>0){N[15]=M.JSC$18312_totalRoundTripTime;N[14]=M.maxRoundTripTime;k=[];for(X=d=0;X<10;X++)R=M.roundTripTimeHistogram[X],R===0?d++:(d>1?k.push(X+"-"+R):d===1?k.push("0j"+R):k.push(R.toString()),d=0);k=k.join("j");N[16]=k}M.zeroPrefixRoundTripTime>0&&(N[36]=M.zeroPrefixRoundTripTime);
M.lastQueryBuildTime>0&&(N[18]=M.lastQueryBuildTime-M.startTime);M.firstEditTime>0&&(N[4]=M.firstEditTime-M.startTime);M.lastEditTime>0&&(N[5]=M.lastEditTime-M.startTime);return N.join(".")};
lQY.prototype.normalize=function(M){return M.replaceAll(".","-")};
var g7r=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var oS=function(){var M=_.n.apply(this,arguments)||this;M.microphoneSpinnerActive=!1;M.noAnimations=!1;M.boundExitClick=function(){M.onExitButtonClick()};
M.speechOverlayClassName="";M.isLevelAnimating=!1;M.playCloseDialogAudioFeedback=!0;M.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return M};
_.v(oS,_.n);_.F=oS.prototype;_.F.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.F.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Eye()};
_.F.dataChanged=function(){this.logDialog()};
_.F.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var M;(M=this.manager.audioPlayer)!=null&&(M.JSC$17602_audioEnabled=!1)}this.manager.stop();(M=this.manager.audioPlayer)!=null&&(M.JSC$17602_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.F.handleSpeechQueryCompleteAction=function(M){var d=M.navigationAction;d&&(M.trackingParams&&_.Nx().graftServerVe(M.trackingParams,this.dialogVe,5),_.YP(this.hostElement,"yt-navigate",{endpoint:d,tempData:this.getNavigationParams(d),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.F.onExitButtonClick=function(){this.closeDialog()};
_.F.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var M;if((M=this.manager)!=null){var d;(d=M.audioPlayer)==null||oi(d,"failure");M.setState("microphone-off");M.stop()}}else(M=this.manager)==null||M.start()};
_.F.transcriptionChanged=function(){var M,d;(((M=this.transcription)==null?0:M.low)||((d=this.transcription)==null?0:d.high))&&this.setState("transcribing",this.transcription)};
_.F.stateChanged=function(){this.setState(this.state,this.transcription)};
_.F.logDialog=function(){var M;(M=this.data)!=null&&M.trackingParams&&(M=_.Nx(),_.dm(M,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=M.graftServerVe(this.data.trackingParams,void 0,5))};
_.F.getNavigationParams=function(M){var d={};if(_.Q("web_yt_searchbox")){var N=BrY();N.inputMethodsTracker.add(6);N=DdG(N,15);d.gs_l=N;var R;d.oq=((R=_.q(M,_.A2))==null?void 0:R.query)||""}else if(M=window.ytvoicesearchloggingparams){if(M=M())d.oq=M.oq,d.gs_l=M.gs_l}else _.Sx(Error("ml"));return d};
_.F.closeDialog=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.F.setState=function(M,d){if(this.data){var N=this.data,R={};switch(M){case "listening":R={headerText:N.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:N.microphoneButtonAriaLabel};break;case "timeout":R={headerText:N.promptHeader,microphoneState:"try-again",microphoneLabel:N.promptMicrophoneLabel,microphoneAriaLabel:N.promptMicrophoneLabel};break;case "microphone-off":R={headerText:N.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:N.promptMicrophoneLabel,
microphoneAriaLabel:N.promptMicrophoneLabel};break;case "transcribing":(d==null?0:d.low)||(d==null?0:d.high)?R={transcriptionLow:d==null?void 0:d.low,transcriptionHigh:d==null?void 0:d.high,microphoneState:"speaking",microphoneAriaLabel:N.microphoneButtonAriaLabel}:R={headerText:N.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:N.microphoneButtonAriaLabel};break;case "processing":R={headerText:N.loadingHeader,microphoneState:"processing",microphoneAriaLabel:N.microphoneButtonAriaLabel};
break;case "offline":R={headerText:N.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:N.connectionErrorMicrophoneLabel,microphoneAriaLabel:N.connectionErrorMicrophoneLabel};break;case "permission":R={headerText:N.permissionsHeader,bodyLine1:N.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:N.permissionsSubtext};break;case "permission-denied":R={headerText:N.disabledHeader,bodyLine1:N.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:N.disabledSubtext}}R.className=
M;this.speechOverlayState=R;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.F.setMicrophoneState=function(M){var d=this.isLevelAnimating;this.isLevelAnimating=M==="speaking";!d&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=M==="processing"&&!this.noAnimations};
_.F.setClass=function(M){this.speechOverlayClassName&&_.t2(this.hostElement,this.speechOverlayClassName,!1);M&&(this.speechOverlayClassName=M,_.t2(this.hostElement,M,!0))};
_.F.runLevelAnimation=function(){var M=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var d=1+Math.random()*.75,N=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+N/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+d+")");_.IQ.addJob(function(){M.runLevelAnimation()},3,N)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
oS.prototype.stateChanged=oS.prototype.stateChanged;oS.prototype.transcriptionChanged=oS.prototype.transcriptionChanged;oS.prototype.onPopupClosed=oS.prototype.onPopupClosed;oS.prototype.dataChanged=oS.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],oS.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],oS.prototype,"rendererStamperBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],oS.prototype,"eventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],oS.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],oS.prototype,"speechOverlayState",void 0);
_.G([_.H(),_.a("design:type",Object)],oS.prototype,"microphoneSpinnerActive",void 0);_.G([_.H({type:_.Q("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.a("design:type",Object)],oS.prototype,"noAnimations",void 0);_.G([_.H({selector:function(M){var d;return(d=M.voiceSearch)==null?void 0:d.transcription}}),
_.a("design:type",Object)],oS.prototype,"transcription",void 0);_.G([_.H({selector:function(M){var d;return(d=M.voiceSearch)==null?void 0:d.overlay}}),
_.a("design:type",String)],oS.prototype,"state",void 0);_.G([_.H(),_.a("design:type",Object)],oS.prototype,"boundExitClick",void 0);_.G([_.Z3("#microphone-levels"),_.a("design:type",HTMLElement)],oS.prototype,"level",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oS.prototype,"dataChanged",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oS.prototype,"onPopupClosed",null);
_.G([_.NS("transcription"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oS.prototype,"transcriptionChanged",null);_.G([_.NS("state"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],oS.prototype,"stateChanged",null);oS=_.G([_.f({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],oS);
_.L(oS,"ytd-voice-search-dialog-renderer",function(){if(GjD!==void 0)return GjD;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return GjD=M},{mode:1});var WPC;var rC=function(){var M=_.n.apply(this,arguments)||this;M.isOverlay=!1;M.hidden=!1;return M};
_.v(rC,_.n);_.F=rC.prototype;_.F.onPopupClosed=function(){this.toggleIconState(!1)};
_.F.computeIcon=function(){var M,d,N;return(d=_.q((M=this.data)==null?void 0:M.icon,c6P))==null?void 0:(N=d.icon)==null?void 0:N.iconType};
_.F.computeIconBadgeShape=function(){var M;return{iconBadgeType:"cart",iconBadgeText:(M=this.iconBadgeEntity)==null?void 0:M.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.F.onClick=function(){var M;(M=this.data)!=null&&M.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.F.computeHidden=function(M){return!M};
_.F.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
rC.prototype.onPopupClosed=rC.prototype.onPopupClosed;_.G([_.S(_.Op),_.a("design:type",Object)],rC.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],rC.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],rC.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],rC.prototype,"isOverlay",void 0);
_.G([_.H({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.a("design:type",Object)],rC.prototype,"hidden",void 0);_.G([_.H({selectorArgs:["data.iconBadgeEntityKey"],selector:function(M,d){return _.Rz(M.entities,"iconBadgeEntity",d)}}),
_.a("design:type",Object)],rC.prototype,"iconBadgeEntity",void 0);_.G([_.Z3("yt-icon-button"),_.a("design:type",HTMLButtonElement)],rC.prototype,"iconButton",void 0);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rC.prototype,"onPopupClosed",null);rC=_.G([_.f({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],rC);
_.L(rC,"ytd-icon-badge-topbar-button-renderer",function(){if(WPC!==void 0)return WPC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return WPC=M},{mode:1});var wSi;var Kj=function(){var M=_.n.apply(this,arguments)||this;M.premiumOptions=[];M.darkerDarkTheme=_.Q("web_darker_dark_theme");return M};
_.v(Kj,_.n);Kj.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Hm.Object.defineProperties(Kj.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Kj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Array)],Kj.prototype,"premiumOptions",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Kj.prototype,"darkerDarkTheme",void 0);_.G([_.z("premiumOptions"),_.a("design:type",Object),_.a("design:paramtypes",[])],Kj.prototype,"hasPremiumOptions",null);
Kj=_.G([_.f({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Kj);
_.L(Kj,"ytd-offline-promo-content",function(){if(wSi!==void 0)return wSi;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return wSi=M},{mode:1});var pSG;var yi=function(){var M=_.n.apply(this,arguments)||this;M.premiumOptions=[];return M};
_.v(yi,_.n);yi.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M;this.premiumOptions=a49((M=this.data)==null?void 0:M.formats)};
yi.prototype.onClickSubmit=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var M;(M=_.nO())==null||M.pause()};
yi.prototype.attached=function(){this.JSC$18332_scroller&&(this.JSC$18332_scroller.dialogElement=this.hostElement.parentNode)};
_.Hm.Object.defineProperties(yi.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
yi.prototype.dataChanged=yi.prototype.dataChanged;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],yi.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],yi.prototype,"data",void 0);
_.G([_.H({computed:"computeIcon_(data.headersIcon)",value:""}),_.a("design:type",String)],yi.prototype,"headersIcon",void 0);_.G([_.H(),_.a("design:type",Array)],yi.prototype,"premiumOptions",void 0);_.G([_.Z3("#scroller"),_.a("design:type",Object)],yi.prototype,"JSC$18332_scroller",void 0);_.G([_.z("headersIcon"),_.a("design:type",Object),_.a("design:paramtypes",[])],yi.prototype,"showIcon",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],yi.prototype,"dataChanged",null);yi=_.G([_.f({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],yi);
_.L(yi,"ytd-offline-promo-renderer",function(){if(pSG!==void 0)return pSG;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return pSG=M},{mode:1});var mdT;var Jc=function(){var M=_.n.apply(this,arguments)||this;M.playbackPauseInterval=NaN;M.isLoading=!1;M.hasError=!1;M.dialogClass="";M.youtubeLabel=_.le("LOGO_ALT_LABEL",{},"YouTube Home");M.logoName="yt-logos-ext:yt-logo-updated";M.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return M};
_.v(Jc,_.n);_.F=Jc.prototype;_.F.onDataChange=function(){var M;if(this.showEOMV1Text=!((M=this.data)==null||!M.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.F.attached=function(){this.pausePlayer()};
_.F.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.F.handleLangSelect=function(M){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[M.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.F.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.F.handleSaveConsent=function(M){var d=this;this.showLoadingSpinner();this.showLoadingSpinner();K0q(_.q(M,Sji)).catch(function(N){_.vh(new _.WJ("Something went wrong when save consent "+(N.message?N.message:N)+"."));d.hideLoadingSpinner();d.showErrorMessage()})};
_.F.handleDisablePersonalization=function(M){var d=this;this.showLoadingSpinner();ykq(_.q(M,cOT)).then(function(){d.dialog.close();d.resumePlayer()}).catch(function(N){_.vh(new _.WJ("Something went wrong when disable personalization "+(N.message?N.message:N)+"."));
d.hideLoadingSpinner();d.showErrorMessage()})};
_.F.showLoadingSpinner=function(){var M=this;this.showSpinnerJobId=_.IQ.addLowPriorityJob(function(){M.isLoading=!0},500)};
_.F.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.IQ.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.F.showErrorMessage=function(){var M=this;this.hasError=!0;_.IQ.addLowPriorityJob(function(){M.hasError=!1},2E3)};
_.F.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Rc(function(){try{var M=_.nO();M&&M.pause()}catch(d){}},100))};
_.F.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var M=_.nO();M&&M.play()}catch(d){}};
_.Hm.Object.defineProperties(Jc.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var d=["SHIELD","WARNING","BAR_CHART"],N=this.data.eomV1Text.essentialCookieMsg.items,R=0;R<d.length&&R<N.length;R++)M.push({icon:d[R],text:N[R]});return M}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var d=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],N=this.data.eomV1Text.nonEssentialCookieMsg.items,R=0;R<d.length&&R<N.length;R++)M.push({icon:d[R],text:N[R]});return M}}});
Jc.prototype.onDataChange=Jc.prototype.onDataChange;_.G([_.H(),_.a("design:type",Object)],Jc.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],Jc.prototype,"showEOMV1Text",void 0);_.G([_.H(),_.a("design:type",Object)],Jc.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],Jc.prototype,"hasError",void 0);_.G([_.H(),_.a("design:type",Number)],Jc.prototype,"showSpinnerJobId",void 0);_.G([_.H(),_.a("design:type",Object)],Jc.prototype,"dialogClass",void 0);
_.G([_.Z3("#dialog"),_.a("design:type",Object)],Jc.prototype,"dialog",void 0);_.G([_.Z3("#cb-header"),_.a("design:type",HTMLElement)],Jc.prototype,"header",void 0);_.G([_.Z3("#lang-select"),_.a("design:type",HTMLElement)],Jc.prototype,"langSelect",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Jc.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Jc.prototype,"ytComponentBehavior",void 0);
_.G([_.H(),_.a("design:type",String)],Jc.prototype,"youtubeLabel",void 0);_.G([_.H(),_.a("design:type",Object)],Jc.prototype,"logoName",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Jc.prototype,"onDataChange",null);_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],Jc.prototype,"eomEssentialCookieMsgItems",null);
_.G([_.z("data"),_.a("design:type",Array),_.a("design:paramtypes",[])],Jc.prototype,"eomNonEssentialCookieMsgItems",null);Jc=_.G([_.f({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Jc);
_.L(Jc,"ytd-consent-bump-v2-lightbox",function(){if(mdT!==void 0)return mdT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return mdT=M},{mode:1});var hz9;var cp=function(){return _.n.apply(this,arguments)||this};
_.v(cp,_.n);cp.prototype.ready=function(){if(!_.Ts()||UNY)var M=!0;else UNY=!0,M=!1;M||(M=document.querySelector("ytd-app"),M||(M=document.body),this.internalLightBox=_.K(M).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.G([_.H(),_.a("design:type",Object)],cp.prototype,"data",void 0);_.G([_.Z3("#lightbox"),_.a("design:type",Object)],cp.prototype,"lightBox",void 0);cp=_.G([_.f({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],cp);
_.L(cp,"ytd-consent-bump-v2-renderer",function(){if(hz9!==void 0)return hz9;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return hz9=M},{mode:1});var QlT;var qCq;var IQD;var Sg=function(){var M=_.n.apply(this,arguments)||this;M.ephemeralActionsEnabled=_.Q("web_ephemeral_actions");return M};
_.v(Sg,_.n);_.F=Sg.prototype;_.F.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&BTJ(this.toastManager,this.toastType)};
_.F.open=function(M){this.toast&&(this.ephemeralAction&&_.h().resolve(_.Ea).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=M!=null?M:0,this.toastManager.enqueue(this.toast,M)):this.toast.open())};
_.F.close=function(M){var d;(d=this.toast)==null||d.close();this.toastManager&&M===1&&BTJ(this.toastManager,M)};
_.F.refit=function(){var M;(M=this.toast)==null||M.refit()};
_.F.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var M;(M=this.toast)==null||M.close()}};
_.F.setVerticalOffset=function(M){this.toast&&(this.toast.verticalOffset=M,this.toast.fit())};
_.F.computeButtonClass_=function(M){return M?"toast-button":""};
_.F.computeText_=function(M){return _.HD(M)};
_.F.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.rQ("toast-opened-changed",this.toastOpened))};
_.F.updateToastOpenedFromBinding=function(M){this.toastOpened=M.detail.value};
_.Hm.Object.defineProperties(Sg.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var M,d,N=(M=this.data)==null?void 0:(d=M.actionButton)==null?void 0:d.buttonRenderer;return(N==null?void 0:N.command)||(N==null?void 0:N.serviceEndpoint)||(N==null?void 0:N.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var M=[],d;((d=this.data)==null?0:d.responseText)&&M.push(_.HD(this.data.responseText));var N;((N=this.data)==null?0:N.subText)&&M.push(_.HD(this.data.subText));var R,X;if((R=this.data)==null?0:(X=R.actionButton)==null?0:X.buttonRenderer){var A,l;M.push(((A=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(l=A.accessibilityData)==null?void 0:l.label)||_.HD(this.data.actionButton.buttonRenderer.text))}return M.filter(function(k){return k}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var M,d;return(d=(M=this.toast)==null?void 0:M.opened)!=null?d:!1}}});
Sg.prototype.toastOpenedChangedForBinding=Sg.prototype.toastOpenedChangedForBinding;Sg.prototype.toastOpenedChanged=Sg.prototype.toastOpenedChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Sg.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Sg.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],Sg.prototype,"duration",void 0);
_.G([_.H(),_.a("design:type",Number)],Sg.prototype,"toastType",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Sg.prototype,"useCloseButton",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Sg.prototype,"closeToastOnActionButtonClick",void 0);_.G([_.H({value:function(){return _.le("SBOX_INAPPROPRIATE_CANCEL")}}),
_.a("design:type",String)],Sg.prototype,"closeButtonAriaLabel",void 0);_.G([_.H(),_.a("design:type",Boolean)],Sg.prototype,"toastOpened",void 0);_.G([_.H(),_.a("design:type",Boolean)],Sg.prototype,"hasOpened",void 0);_.G([_.H(),_.a("design:type",Object)],Sg.prototype,"ephemeralActionsEnabled",void 0);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sg.prototype,"command",null);
_.G([_.z("ephemeralActionsEnabled","labelText","command","duration"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sg.prototype,"ephemeralAction",null);_.G([_.z("ephemeralAction"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sg.prototype,"hasEphemeralAction",null);_.G([_.Z3("#toast"),_.a("design:type",Object)],Sg.prototype,"toast",void 0);_.G([_.H({value:function(){return{style:"call-to-action-inverse"}}}),
_.a("design:type",Object)],Sg.prototype,"buttonOverrides",void 0);_.G([_.H({value:{style:"mono-inverse"}}),_.a("design:type",Object)],Sg.prototype,"closeButtonOverrides",void 0);_.G([_.H({value:function(){return _.h().resolve(_.CF(_.jI9))}}),
_.a("design:type",Object)],Sg.prototype,"toastManager",void 0);_.G([_.z("data.responseText","data.subText","data.actionButton"),_.a("design:type",Object),_.a("design:paramtypes",[])],Sg.prototype,"labelText",null);_.G([_.xB("toastOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sg.prototype,"toastOpenedChanged",null);
_.G([_.xB("toastOpened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sg.prototype,"toastOpenedChangedForBinding",null);Sg=_.G([_.w4({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Sg);
_.L(Sg,"yt-notification-action-renderer",function(){if(IQD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;qCq===void 0&&(qCq=document.createElement("template"));var R=qCq;N.call(d,R.content.cloneNode(!0),M.content.firstChild);IQD=M}M=IQD;return M},{mode:2});var z8=function(){var M=_.n.apply(this,arguments)||this;M.duration=4E3;M.downloadingCount=0;M.downloadedCount=0;M.downloadingOnlySmartDownloads=!1;M.sessionTotalDownloads=0;M.sessionDownloaded=0;M.previousSessionsDownloaded=0;M.totalDownloadPercentage=0;M.currentDownloadProgress=0;M.currentDownloadPercentage=0;M.isLeaderTab=!0;M.isFullScreen=!1;M.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};M.boundBeforeUnload=function(d){M.isLeaderTab&&M.downloadingCount>0&&(d.preventDefault(),
d.returnValue=!0)};
return M};
_.v(z8,_.n);_.F=z8.prototype;
_.F.open=function(){this.updateDownloadState();if(this.data){var M=this.sessionDownloaded+1,d=this.sessionTotalDownloads>1?_.le("VIDEOS_DOWNLOADING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+M+"/"+this.sessionTotalDownloads):_.le("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(d=this.sessionTotalDownloads>1?_.le("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
M+"/"+this.sessionTotalDownloads):_.le("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));M=this.isLeaderTab?_.le("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.HD(this.data.responseText)!==d||_.HD(this.data.subText)!==M)this.set("data.responseText",_.ep(d)),this.set("data.subText",_.ep(M)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.F.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.F.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.F.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.F.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var M=this.downloadedCount-this.previousSessionsDownloaded;M<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-M);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.F.handleFullscreenChange=function(M){(this.isFullScreen=M)||this.updatePopup()};
z8.prototype.updateCurrentDownloadProgress=z8.prototype.updateCurrentDownloadProgress;z8.prototype.updatePopup=z8.prototype.updatePopup;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],z8.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],z8.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],z8.prototype,"actionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"duration",void 0);_.G([_.H({selector:function(M){return _.VOZ(M.entities).length}}),
_.a("design:type",Object)],z8.prototype,"downloadingCount",void 0);_.G([_.H({selector:iAT}),_.a("design:type",Object)],z8.prototype,"downloadedCount",void 0);_.G([_.H({selector:function(M){var d=_.VOZ(M.entities);return nWe(M.entities,d)}}),
_.a("design:type",Object)],z8.prototype,"downloadingOnlySmartDownloads",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"sessionTotalDownloads",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"sessionDownloaded",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"previousSessionsDownloaded",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"totalDownloadPercentage",void 0);
_.G([_.H({selector:function(M){var d;M=(d=_.VOZ(M.entities))!=null?d:[];return M.length>0?_.xGq(M.slice(-1)):0}}),
_.a("design:type",Object)],z8.prototype,"currentDownloadProgress",void 0);_.G([_.H(),_.a("design:type",Object)],z8.prototype,"currentDownloadPercentage",void 0);_.G([_.H({selector:_.f1A}),_.a("design:type",Object)],z8.prototype,"isLeaderTab",void 0);_.G([_.Z3("yt-notification-action-renderer"),_.a("design:type",Object)],z8.prototype,"notificationActionRenderer",void 0);
_.G([_.NS("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],z8.prototype,"updatePopup",null);_.G([_.NS("currentDownloadProgress"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],z8.prototype,"updateCurrentDownloadProgress",null);z8=_.G([_.f({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],z8);
_.L(z8,"ytd-video-download-toast-renderer",function(){if(QlT!==void 0)return QlT;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return QlT=M},{mode:1});var v7i;var Ozd;var bh=function(){return _.n.apply(this,arguments)||this};
_.v(bh,_.n);bh.prototype.computeIsRedLogo=function(M,d){!M&&d&&(M=d);return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
bh.prototype.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],bh.prototype,"componentBehavior",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.a("design:type",Boolean)],bh.prototype,"isRedLogo",void 0);_.G([_.H({computed:"computeLogoName(data)"}),_.a("design:type",String)],bh.prototype,"logoName",void 0);_.G([_.H({value:{}}),_.a("design:type",Object)],bh.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],bh.prototype,"logoType",void 0);bh=_.G([_.f({disableElementRegistration:!0,is:"ytd-logo"})],bh);
_.L(bh,"ytd-logo",function(){if(Ozd!==void 0)return Ozd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Ozd=M},{mode:_.G3("kevlar_poly_si_batch_j074")?1:2});var eg=function(){var M=_.n.apply(this,arguments)||this;M.animationRef={};return M};
_.v(eg,_.n);_.F=eg.prototype;_.F.attached=function(){document.addEventListener("yt-navigate-finish",_.ux(this,this.logYoodle))};
_.F.detached=function(){document.removeEventListener("yt-navigate-finish",_.ux(this,this.logYoodle))};
_.F.logYoodle=function(){var M,d;if((M=this.data)==null?0:(d=M.loggingDirectives)==null?0:d.trackingParams)this.ytRendererBehavior.markDirty(),_.Nx().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.F.computeHideImg=function(M,d){return!!M||!!d};
_.F.computeHideYtdLogo=function(M,d){return!M||!!d};
_.F.computeHideLottie=function(M){return!M};
_.F.computeIsRedLogo=function(M){return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
_.F.renderLogoEntity=function(){var M=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),d=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),N=this.getLogoTitleText(this.data),R=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==M&&(this.url=M);this.animatedUrl!==d&&(this.animatedUrl=d);this.logoTitleText!==N&&(this.logoTitleText=N);this.lottieUrl!==R&&(this.lottieUrl=R,this.lottiePlayerProps=this.computeLottiePlayerProps(R))};
_.F.getSanitizedThumbnail=function(M){return M&&M.thumbnails?_.p7i(M.thumbnails,122)||"":""};
_.F.getThumbnailUrl=function(M,d){if(!d)return"";var N,R;M=M?(N=d.darkThemeLogo)==null?void 0:N.thumbnail:(R=d.lightThemeLogo)==null?void 0:R.thumbnail;return this.getSanitizedThumbnail(M)};
_.F.getAnimatedThumbnailUrl=function(M,d){return d?this.getSanitizedThumbnail(M?d.darkThemeAnimatedLogo:d.lightThemeAnimatedLogo):""};
_.F.getLogoTitleText=function(M){if(M)return _.HD(M.tooltipText)};
_.F.computeLogoIcon=function(M,d){if(d){var N,R;return M?(N=d.darkThemeLogo)==null?void 0:N.icon:(R=d.lightThemeLogo)==null?void 0:R.icon}};
_.F.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.F.getLottieUrl=function(M,d){var N,R,X,A;return M?d==null?void 0:(N=d.darkThemeLogo)==null?void 0:(R=N.lottieAnimation)==null?void 0:R.url:d==null?void 0:(X=d.lightThemeLogo)==null?void 0:(A=X.lottieAnimation)==null?void 0:A.url};
_.F.computeLottiePlayerProps=function(M){if(M){var d;if((d=this.animationRef)==null?0:d.lottieEl){var N;(N=this.animationRef)==null||N.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:M,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.F.onLottieError=function(){this.data&&this.lottieUrl&&_.YP(this.hostElement,"yoodle-error")};
_.F.onImgError=function(){this.data&&!this.lottieUrl&&_.YP(this.hostElement,"yoodle-error")};
eg.prototype.playAnimation=eg.prototype.playAnimation;eg.prototype.renderLogoEntity=eg.prototype.renderLogoEntity;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],eg.prototype,"data",void 0);_.G([_.H({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.a("design:type",Boolean)],eg.prototype,"hideImg",void 0);
_.G([_.H({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.a("design:type",Boolean)],eg.prototype,"hideYtdLogo",void 0);_.G([_.H({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.a("design:type",Boolean)],eg.prototype,"hideLottie",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.a("design:type",Boolean)],eg.prototype,"isRedLogo",void 0);
_.G([_.H(),_.a("design:type",Boolean)],eg.prototype,"useDarkThemeYoodle",void 0);_.G([_.H(),_.a("design:type",String)],eg.prototype,"url",void 0);_.G([_.H(),_.a("design:type",String)],eg.prototype,"animatedUrl",void 0);_.G([_.H(),_.a("design:type",String)],eg.prototype,"logoTitleText",void 0);_.G([_.H({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.a("design:type",Object)],eg.prototype,"logoIcon",void 0);_.G([_.H(),_.a("design:type",Object)],eg.prototype,"logoType",void 0);
_.G([_.H(),_.a("design:type",String)],eg.prototype,"lottieUrl",void 0);_.G([_.H(),_.a("design:type",Object)],eg.prototype,"lottiePlayerProps",void 0);_.G([_.H(),_.a("design:type",Object)],eg.prototype,"animationRef",void 0);_.G([_.xB("data"),_.xB("useDarkThemeYoodle"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],eg.prototype,"renderLogoEntity",null);
_.G([_.C3("click"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],eg.prototype,"playAnimation",null);eg=_.G([_.f({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],eg);
_.L(eg,"ytd-yoodle-renderer",function(){if(v7i!==void 0)return v7i;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return v7i=M},{mode:_.G3("kevlar_poly_si_batch_j074")?1:2});var jlJ;var sle;var Hp=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return M};
_.v(Hp,_.n);_.F=Hp.prototype;_.F.onYoodleError=function(){_.Q("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.F.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.F.computeTitle=function(M,d,N){return N&&(d==null?0:d.tooltipText)?_.HD(d.tooltipText):_.HD(M)};
_.F.computeAriaLabel=function(M,d,N){return N&&(d==null?0:d.tooltipText)?_.HD(M):""};
_.F.computeShowYoodle=function(M,d,N){return!M||!d&&!!N&&!_.wF.isEmpty(N)};
_.F.onNavigateHomeAction=function(){if(_.Q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M;(M=_.K(this.hostElement).querySelector(".yt-simple-endpoint"))==null||M.click()}};
_.F.computeLogoHref=function(M,d,N){var R;(N==null?0:N.onTapCommand)?R=this.componentBehavior.computeHref_(N.onTapCommand):M&&(R=this.componentBehavior.computeHref_(M));return R?R:d};
_.F.computeCommand=function(M,d){return(d==null?void 0:d.onTapCommand)||M};
_.F.getEndpointForm=function(){if(_.Q("kevlar_topbar_disable_cache_only_home")){var M=_.h().resolve(_.ql),d=UZC(M.getState())||"";M=_.z_Z(M.getState())||"";return{disableCache:d==="ytd-browse"&&M==="home"}}return{disableCache:!0}};
Hp.prototype.onYoodleError=Hp.prototype.onYoodleError;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Hp.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Hp.prototype,"componentBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],Hp.prototype,"ytdReduxBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Hp.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Hp.prototype,"countryCode",void 0);_.G([_.H({selectorArgs:["data.overrideEntityKey"],selector:function(M,d){return _.Rz(M.entities,"logoEntity",d)}}),
_.a("design:type",Object)],Hp.prototype,"logoEntity",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.a("design:type",Boolean)],Hp.prototype,"showYoodle",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Hp.prototype,"yoodleError",void 0);_.G([_.H({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.a("design:type",String)],Hp.prototype,"titleText",void 0);
_.G([_.H({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.a("design:type",String)],Hp.prototype,"ariaLabelText",void 0);_.G([_.H({value:"/"}),_.a("design:type",String)],Hp.prototype,"defaultEndpointUrl",void 0);_.G([_.H({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.a("design:type",String)],Hp.prototype,"endpointUrl",void 0);
_.G([_.H({computed:"computeCommand(data.endpoint, logoEntity)"}),_.a("design:type",String)],Hp.prototype,"command",void 0);_.G([_.H(),_.a("design:type",Object)],Hp.prototype,"logoType",void 0);_.G([_.H({}),_.a("design:type",Boolean)],Hp.prototype,"useDarkThemeYoodle",void 0);_.G([_.C3("yoodle-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Hp.prototype,"onYoodleError",null);Hp=_.G([_.f({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Hp);
_.L(Hp,"ytd-topbar-logo-renderer",function(){if(sle!==void 0)return sle;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return sle=M},{mode:_.G3("kevlar_poly_si_batch_j027")?1:2});var PRb=0;var o7Y=_.cB.SEARCH_APPEND_LABEL,reG=_.cB.SUGGESTION_NEW_VIDEOS_TEXT,KPT=_.cB.SUGGESTION_THUMBNAIL_LABEL,yed=_.SG(function(M){function d(BV){var fZ,WV;return _.B(function(V9){if(V9.nextAddress==1)return fZ=new Request(BV),_.Mv(V9,2),_.D(V9,fetch(fZ,{credentials:"include"}),4);if(V9.nextAddress!=2)return oI(!0),_.cJ(V9,0);WV=_.Fg(V9);_.vh(WV);_.Vy(V9)})}
var N=M.isHighlighted;var R=M.suggestion;var X=M.onClickCallback;var A=M.onHoverUpdateCallback;var l=M.labels;var k=M.queryBuilderFunction;var T=M.onRemoveCallback;var W=M.suggestionIndex;var w=M.generateUniqueId;var p=M.highlightedId;var m=M.useScrollMargin;var I=M.isKeyboardMode;var O=null,y=null,c=_.e5(),e=_.e5(),t=_.Hh(function(BV){BV&&_.ca(237477,BV,y,function(fZ){y=fZ})}),C=_.Hh(function(BV){BV&&_.ca(237477,BV,y,function(fZ){y=fZ})}),U=_.dT(function(BV){if((BV==null?void 0:BV.button)===2)return BV.preventDefault(),
!1;
var fZ=_.Ou();fZ&&O&&_.H1(fZ,O,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var WV;X(BV,R().text,R().index,R().entityMid,BV==null?void 0:(WV=BV.detail)==null?void 0:WV.wasSelectedByKeyboard);return!1}),Fi=function(){return R().type===35},Y=function(){return _.Q("desktop_enable_single_suggestion_highlight")},$i=function(){return _.Q("desktop_enable_entity_suggest")},vj=function(){return _.ZR("desktop_suggestions_panel_row_height")||0},Pj=function(){var BV;
return _.Q("desktop_enable_new_video_metadata")&&((BV=R())==null?void 0:BV.hasNewVideo)===!0},sS=function(){return _.Q("desktop_enable_visual_suggest")},tL=function(){return R().entitySubtitle},b2=function(){return Y()?(N==null?void 0:N())||xd()&&!(I==null?0:I()):(N==null?void 0:N())||xd()},Hj=function(){var BV=_.rK("SBOX_SETTINGS");
return Fi()&&!(BV==null?0:BV.HIDE_REMOVE_LINK)},LZ=function(){return FPP(R())},w3,XY=!((w3=_.h().resolve(_.CF(_.Pz)))==null||!w3()),jJ=function(){return Fi()?"ARROW_TIME":"SEARCH"},Ne=function(){return l==null?void 0:l().SUGGESTION_DISMISS_LABEL},Vz=function(){return l==null?void 0:l().SUGGESTION_DISMISSED_LABEL};
w3=_.V(_.d0(!1,void 0,"kHLOZe"));M=w3.next().value;var oI=w3.next().value;w3=_.V(_.d0(!1,void 0,"SGF2sd"));var $d=w3.next().value,CJ=w3.next().value,xd=$d,Vq=_.dT(function(){k(e.value.innerText);return!1}),uL=_.dT(function(BV){BV.preventDefault();
return!1}),fg=_.dT(function(BV){var fZ=R().text,WV=_.rK("SBOX_SETTINGS"),V9="https://"+(WV.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
V9+="&delq="+encodeURIComponent(fZ);(fZ=WV==null?void 0:WV.PSUGGEST_TOKEN)&&(V9+="&tok="+fZ);(WV=WV==null?void 0:WV.SESSION_INDEX)&&(V9+="&authuser="+WV);d(V9);BV.preventDefault();(BV=_.Ou())&&y&&_.H1(BV,y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");T(W==null?void 0:W());return!1}),M9=_.dT(function(){if(Y()&&(I==null?0:I()))return!1;
CJ(!0);A(!0);return!1}),OV=_.dT(function(){CJ(!1);
A(!1);return!1});
w3=_.V(_.d0("",void 0,"yaN19c"));var UV=w3.next().value,q$=w3.next().value;_.QD(function(){Hj()&&q$(w==null?void 0:w(W==null?void 0:W()));c.value&&_.ca(12453,c.value,O,function(BV){O=BV})});
return _.g(_.kV,{cond:M,then:function(){var BV={};return _.g("div",{class:_.xj("ytSuggestionComponentRemovedText",(BV.ytSuggestionComponentLargerRemovedText=function(){return sS()},BV)),
style:function(){return vj()>0?"height: "+vj()+"px;":""},
role:"button"},Vz)},
else:function(){var BV={},fZ={};return _.g("div",{class:_.xj("ytSuggestionComponentSuggestion",(BV.ytSuggestionComponentSuggestionHover=function(){return!Y()},BV.ytSuggestionComponentHighlighted=b2,BV.ytSuggestionComponentPersonalizedSuggestion=Fi,BV.ytSuggestionComponentMweb=!1,BV.ytSuggestionComponentLargerSuggestion=function(){return Pj()||sS()},BV.ytSuggestionComponentThumbnailSuggestion=function(){return sS()},BV.ytSuggestionComponentRoundedSuggestion=function(){return _.Q("desktop_enable_scrollable_suggestions_panel")&&
_.Q("desktop_enable_suggestions_panel_padding")},BV)),
style:function(){return vj()>0?"height: "+vj()+"px;":""},
role:"presentation","on:mousedown":U,"on:mouseover":M9,"on:mouseout":OV,el:c},_.g("div",{class:_.xj("ytSuggestionComponentText",(fZ.ytSuggestionComponentScrollMargin=m,fZ)),"aria-label":function(){return Pj()?R().text+" "+reG:R().text},
id:function(){return w==null?void 0:w(W==null?void 0:W())},
"on:mousedown":U,role:"option"},_.g(_.kV,{cond:function(){return R().type!==33},
then:function(){return _.g(_.Fc,{icon:jJ,className:"ytSuggestionComponentIcon"})}}),_.g("div",{class:"ytSuggestionComponentLeftContainer"},_.g("span",{el:e,
role:"button",tabindex:0},_.g(_.TN,{each:LZ},function(WV){return WV.bold?_.g("span",{class:"ytSuggestionComponentBold"},WV.text):_.g("span",null,WV.text)})),_.g(_.kV,{cond:function(){return $i()&&AeJ(R())&&!!R().entitySubtitle},
then:function(){return _.g("div",{class:"ytSuggestionComponentEntitySubtitle"},tL)}}),_.g(_.kV,{cond:function(){return Pj()},
then:function(){return _.g("div",{class:"ytSuggestionComponentNewVideoContainer"},_.g("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.g("div",{class:"ytSuggestionComponentNewVideoText"},reG))}}))),_.g("div",{class:"ytSuggestionComponentRightContainer"},_.g(_.kV,{cond:function(){return sS()&&R().visualSuggestUrl!==void 0},
then:function(){var WV={};return _.g("div",{class:"ytSuggestionComponentThumbnailContainer"},_.g("img",{"aria-label":KPT,class:_.xj("ytSuggestionComponentVisualSuggestThumbnail",(WV.ytSuggestionComponentCircularFrame=function(){return $i()&&AeJ(R())&&R().subtypes.includes(790)},WV.ytSuggestionComponentEntitySuggestThumbnail=function(){return $i()&&AeJ(R())},WV)),
src:function(){return R().visualSuggestUrl}}))}}),_.g(_.pF,null,_.g(_.gK,{when:function(){return sS()&&Hj()}},function(){var WV={};
return _.g("button",{class:_.xj("ytSuggestionComponentRemoveLinkClearButton",(WV.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return UV()&&UV()===(p==null?void 0:p())},WV.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!b2()},WV)),
el:C,"on:mousedown":fg,"aria-label":Ne,id:function(){return UV()}},_.g(_.Fc,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.g(_.gK,{when:function(){return!(sS()&&R().visualSuggestUrl!==void 0)&&Hj()}},function(){var WV={};
return _.g("a",{class:_.xj("ytSuggestionComponentRemoveLink",(WV.ytSuggestionComponentRemoveLinkDark=XY,WV.ytSuggestionComponentRemoveLinkSelected=function(){return UV()&&UV()===(p==null?void 0:p())},WV)),
el:t,"on:mousedown":fg,"aria-label":Ne,tabindex:0,role:"button",id:function(){return UV()}},Ne)}),_.g(_.gK,{when:function(){return!1}},function(){return _.g("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Vq,"on:mousedown":uL,role:"button","aria-label":o7Y},_.g(_.Fc,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"bg");var JeD=_.SG(function(){var M=_.dT(function(){BrY().inputMethodsTracker.add(3);var d,N=(d=_.rK("SBOX_SETTINGS"))==null?void 0:d.REQUEST_LANGUAGE;if(N)return _.rB("//www.google.com/textinputassistant/14/"+N+"_tia.js"),!1});
return _.g("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.g("button",{class:"ytdTextInputAssistantButton","on:click":M},_.g("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"cg");var ceb=function(){this.cache=new Map},SCi=function(M){for(var d=_.V(M.cache.entries()),N=d.next();!N.done;N=d.next()){var R=_.V(N.value);
N=R.next().value;R=R.next().value;R.suggestions.some(function(X){return X.type===35})&&M.cache.delete(N)}};var zzd=_.cB.SEARCH,bzJ=_.cB.SEARCH_CLEAR_LABEL,ezT=new _.x5("FAKE_SUGGEST_RESPONSE");_.eC(_.SG(function(M){function d(){BV||(BV=setTimeout(function(){WV()},1E3))}
function N(mt,pg,gq){if(mt.trim()){q$=mt;_.oJ("REFINEMENTS_TUPLE",void 0);OV=!0;var vx;pg=DdG(xd,pg);var FL=(vx=M.searchEndpoint)==null?void 0:vx.call(M);vx=Vz.value.value;FL||(FL=VCe);var h_;(h_=_.q(FL.commandMetadata,_.an))!=null&&h_.url||(h_=Error("nl`"+JSON.stringify(FL)),_.qZ(h_),FL=VCe);h_=_.wF.unsafeClone(FL);FL=_.oR(_.q(h_.commandMetadata,_.an).url,"search_query",mt);_.oW(location.href,"sv")==="1"&&(_.q(h_,_.A2).params="EgOAAgE%3D",FL=_.oR(FL,"sv","1"));_.q(h_,_.A2)&&(_.q(h_,_.A2).query=mt);
FL=FL.replace(/%20/g,"+");_.q(h_.commandMetadata,_.an).url=FL;gq=_.Q("desktop_enable_entity_suggest")?{entityMid:gq}:{};_.h().resolve(_.xV).resolveCommand(h_,{form:{tempData:Object.assign({},{gs_l:pg,oq:vx!=null?vx:mt},gq)}});WV();Vz.value.value=mt;Vz.value.blur();xd.reset()}}
function R(mt){return _.B(function(pg){return pg.return(new Promise(function(gq){var vx=new XMLHttpRequest;vx.open("GET",Zdq(mt),!0);vx.withCredentials=!0;var FL=_.rK("SBOX_SETTINGS");(FL==null?0:FL.SEND_VISITOR_DATA)&&vx.setRequestHeader("X-Goog-Visitor-Id",FL==null?void 0:FL.VISITOR_DATA);vx.onload=function(){gq(vx.responseText)};
vx.onerror=function(){_.vh(Error("ol"));gq(null)};
setTimeout(function(){vx.abort()},1E4);
vx.send(null)}))})}
function X(mt){var pg,gq,vx,FL;return _.B(function(h_){switch(h_.nextAddress){case 1:return pg={credentials:"include",headers:Ytq()},window.AbortController&&(gq=new AbortController,setTimeout(function(){gq.abort("ytsbox-suggest-timeout")},1E4),pg.signal=gq.signal),_.Mv(h_,2),_.D(h_,fetch(Zdq(mt),pg),4);
case 4:vx=h_.yieldResult.text();_.cJ(h_,3);break;case 2:return FL=_.Fg(h_),FL!=="ytsbox-abort-last"&&FL!=="ytsbox-suggest-timeout"&&_.vh(FL),h_.return(null);case 3:return h_.return(vx)}})}
function A(mt){var pg,gq,vx;return _.B(function(FL){switch(FL.nextAddress){case 1:if(pg=_.h().resolve(_.CF(ezT)))return FL.return(pg);gq=Date.now();d();return _.Q("yt_searchbox_xhr")?_.D(FL,R(mt),5):_.D(FL,X(mt),4);case 4:vx=FL.yieldResult;FL.jumpTo(3);break;case 5:vx=FL.yieldResult;case 3:if(vx){BV&&(clearTimeout(BV),BV=null);var h_=xd,bs=gq,cx=mt.query.length===0;bs=Date.now()-bs;cx?h_.zeroPrefixRoundTripTime=bs:(h_.JSC$18312_totalRoundTripTime+=bs,h_.maxRoundTripTime=Math.max(h_.maxRoundTripTime,
bs),cx=Math.floor(bs/100),cx>=g7r.length?++h_.roundTripTimeHistogram[9]:++h_.roundTripTimeHistogram[g7r[cx]])}return FL.return(vx)}})}
function l(mt){var pg,gq,vx;return _.B(function(FL){if(FL.nextAddress==1)return(pg=CJ.cache.get(x0C(mt)))?FL.return(pg):_.D(FL,A(mt),2);gq=FL.yieldResult;if(gq===null)return FL.return(null);vx=new VjJ(gq);mt.query.length===0&&vx.suggestions.length===0||CJ.cache.set(x0C(mt),vx);return FL.return(vx)})}
function k(mt){var pg,gq;return _.B(function(vx){if(vx.nextAddress==1){UV=!1;var FL=q$;FL=_.qvN()==="search"?(_.oW(location.href,"search_query")||_.oW(location.href,"q"))===FL:!1;pg=new CDq(mt,FL?q$:null);return _.D(vx,l(pg),2)}gq=vx.yieldResult;if(gq===null)return vx.return();pg.query.length===0&&(xd.zeroPrefixSuggestionCount=gq.suggestions.length);if(pg.id<=fZ)return xd.outOfSyncResponseCount++,vx.return();if(document.activeElement!==Vz.value)return vx.return();fZ=pg.id;var h_=xd,bs=gq.rawResponse[2]||
{};h_.experimentTriggeredBeforeFinal||(h_.experimentTriggeredBeforeFinal=h_.experimentTriggeredFinal);h_.experimentTriggeredFinal=!!bs.e;xd.updateSuggestions(gq.suggestions);c(-1);w3([]);gq.suggestions!==I()&&nu(gq.suggestions.length);O(gq.suggestions);vj(gq.suggestions.length>0&&gq.suggestions[0].type===33);$d&&($d.hidden=gq.suggestions.length===0,$i()?($d.style.minWidth="",h_=$d.style,bs=(FL=I()[0])==null?void 0:FL.ignoredPrefix,h_.marginLeft=(bs?Math.min(bs.length*6,oI.value.offsetWidth):0).toString()+
"px"):($d.style.minWidth=oI.value.offsetWidth+"px",$d.style.marginLeft="0"),R2());_.Vy(vx)})}
function T(){if(!OV)return!1;var mt=_.rK("REFINEMENTS_TUPLE");return mt?(mt=mt[1].map(function(pg,gq){return new XSY([pg,0,[71]],Vz.value.value,gq)}),I()!==mt&&nu(mt.length),w3([]),O(mt),xd.updateSuggestions(mt),OV=!1,$d.hidden=mt.length===0,UV=mt.length>0,!0):!1}
function W(){var mt=Vz.value.value;(typeof mt==="string"||mt instanceof String)&&mt!==""?U(!0):U(!1)}
function w(){if(_.qvN()==="search"){var mt=window.location.href;try{var pg=_.oW(mt,"search_query")||_.oW(mt,"q")||""}catch(gq){pg=""}pg&&(Vz.value.value=pg,U(!0))}}
var p=_.V(_.d0([],void 0,"kGFAjf")),m=p.next().value;p=p.next().value;var I=m,O=p;m=_.V(_.d0(-1,void 0,"mLGL9e"));var y=m.next().value,c=m.next().value;m=_.V(_.d0(-1,void 0,"u2rYdc"));var e=m.next().value,t=m.next().value;m=_.V(_.d0(!1,void 0,"W9DFC"));var C=m.next().value,U=m.next().value;m=_.V(_.d0(!1,void 0,"Ip4dNc"));var Fi=m.next().value,Y=m.next().value;p=_.V(_.d0(!1,void 0,"ZNKSQb"));m=p.next().value;p=p.next().value;var $i=m,vj=p;p=_.V(_.d0(!1,void 0,"JBrGLd"));m=p.next().value;var Pj=p.next().value;
p=_.V(_.d0(!1,void 0,"P2pD6e"));var sS=p.next().value,tL=p.next().value;p=_.V(_.d0(1,void 0,"SjP20c"));var b2=p.next().value,Hj=p.next().value;p=_.V(_.d0([],void 0,"h4dRaf"));var LZ=p.next().value,w3=p.next().value;p=_.V(_.d0(!1,void 0,"TUTzaf"));var XY=p.next().value,jJ=p.next().value;p=_.Q("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Ne=_.e5(),Vz=_.e5(),oI=_.e5(),$d,CJ=new ceb,xd=BrY(),Vq=_.h().resolve(_.CF(_.Pz)),
uL=function(){var mt;return((mt=M.forceDarkMode)==null?void 0:mt.call(M))||!(Vq==null||!Vq())},fg=function(){return _.Q("desktop_enable_scrollable_suggestions_panel")},M9="i"+PRb++,OV=!1,UV=!1,q$="",BV=null,fZ=-1,WV=function(){w3([]);
O([]);vj(!1);$d&&($d.hidden=!0);BV&&(clearTimeout(BV),BV=null);c(-1)},V9=function(mt,pg){mt.preventDefault();
jJ(!0);$d&&($d.hidden=!1);var gq=y();mt=I();var vx=LZ();pg=CYd(pg);gq+=pg;for(gq>=mt.length?gq=-1:gq<-1&&(gq=mt.length-1);gq!==-1&&(vx.includes(gq)||gq>=mt.length||gq<0);)gq+=pg,gq>=mt.length&&(gq=-1);c(gq);y()>=0&&(Vz.value.value=I()[y()].text,t(0),W(),mt=y(),vx=e(),(vx=document.getElementById(kT[mt][vx]))&&fg()&&(mt===I().length-1?$d.scrollTop=$d.scrollHeight:vx.scrollIntoView({block:"nearest",inline:"start"})))},Qz=_.dT(function(mt){if(!(mt.relatedTarget instanceof Element&&mt.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Y(!0);
var pg;(pg=M.focusCallback)==null||pg.call(M,!0);T()||(UV?$d.hidden=!1:(_.YP(Ne.value,"yt-autonav-pause-focus",{}),k(mt.target.value)))}}),IC=_.dT(function(mt){if(!(mt.relatedTarget instanceof Element&&mt.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Y(!1);
var pg;(pg=M.focusCallback)==null||pg.call(M,!1);$d.scrollTop=0;$d.hidden=!0;_.YP(Ne.value,"yt-autonav-pause-blur",{})}}),Qt=function(mt){mt=CYd(mt);
var pg;((pg=kT[y()])==null?0:pg[e()+mt])&&t(e()+mt)},AX=_.dT(function(mt){var pg=mt.target;
switch(mt.keyCode){case 13:mt.preventDefault();var gq;if((gq=kT[y()])==null?0:gq[e()]){var vx;(vx=document.getElementById(kT[y()][e()]))==null||vx.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}mt=mt.shiftKey?4:3;gq=xd;vx=y();gq.selectedSuggestionIndex=vx;N(pg.value,mt);break;case 27:$d&&($d.hidden=!0);break;case 40:V9(mt,40);break;case 38:V9(mt,38);break;case 39:Qt(39);break;case 37:Qt(37);break;case 229:xd.inputMethodsTracker.add(4);break;default:xd.inputMethodsTracker.add(1),
kZ9(xd)}return!1}),pK=_.dT(function(mt){k(mt.target.value);
W();fg()&&$d&&($d.scrollTop=0);return!1}),HY=_.dT(function(){xd.inputMethodsTracker.add(2);
kZ9(xd);return!1});
_.QD(function(){if($d){xd.reset();if(window.ResizeObserver){var mt=new ResizeObserver(function(){$i()||($d.style.minWidth=oI.value.offsetWidth+"px")});
mt.observe(oI.value);(new ResizeObserver(function(){R2()})).observe($d);
_.mF(function(){mt.disconnect()})}w();
window.addEventListener("yt-navigate-finish",w);window.addEventListener("yt-focus-searchbox",function(){Vz.value.focus()});
var pg;Pj((pg=_.rK("SBOX_SETTINGS"))==null?void 0:pg.HAS_ON_SCREEN_KEYBOARD)}else _.qZ(new _.WJ("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var Vb=_.dT(function(mt){mt.preventDefault();N(Vz.value.value,12);return!1}),yy=_.dT(function(mt){mt.preventDefault();
var pg,gq;(pg=Vz)==null||(gq=pg.value)==null||gq.focus();var vx,FL;((vx=Vz)==null?void 0:(FL=vx.value)==null?void 0:FL.value)!==""&&(Vz.value.value="",Vz.value.dispatchEvent(new Event("input")));return!1}),Hg=_.dT(function(){var mt=uy$(Vz.value.value,I().filter(function(pg){return pg.type!==35}).map(function(pg){return{label:pg.text}}));
_.ZI(Ne.value,"yt-open-popup-action",[{openPopupAction:mt},document.body]);return!1}),DR=_.dT(function(){Vz.value.focus();
return!1}),mL=function(mt,pg,gq,vx,FL){xd.selectedSuggestionIndex=gq;
N(pg,FL?3:1,vx)},lX=function(mt){Vz.value.value=mt;
Vz.value.dispatchEvent(new Event("input"));xd.inputMethodsTracker.add(5);kZ9(xd,!0)},kT=[[]],zN=function(mt){var pg="searchbox-suggestion"+_.s$(_.PC);
kT[mt].push(pg);return pg},nu=function(mt){if(I()){kT=[[]];
for(var pg=0;pg<mt;pg++)kT.push([])}},R2=function(){if(fg()){var mt=$d,pg=mt.scrollTop;
mt=mt.scrollHeight-mt.clientHeight;tL(pg>=mt);pg=Math.abs(mt-pg);pg<=40?Hj(1-(40-pg)/40):Hj(1)}},gU=function(){return"opacity: "+b2()*100+"%"},hL=_.dT(function(){R2();
return!1}),JL=_.dT(function(){jJ(!1);
return!1}),nZ,g3={},FY={},Px={},DD={};
return _.g("yt-searchbox",{class:_.xj("ytSearchboxComponentHost",(g3.ytSearchboxComponentMweb=!1,g3.ytSearchboxComponentDesktop=!0,g3["yt-searchbox-filled-query"]=function(){return C()},g3["ytd-masthead"]=function(){return!Fi()},g3.ytSearchboxComponentHostDark=uL,g3)),
role:"search",el:Ne,"client-ve-type":10349},_.g("div",{el:oI,"on:click":DR,class:_.xj("ytSearchboxComponentInputBox",(FY.ytSearchboxComponentInputBoxDark=uL,FY.ytSearchboxComponentInputBoxHasFocus=Fi,FY))},_.g("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":Vb},_.g(_.kV,{cond:Fi,then:function(){return _.g("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.g(_.Fc,{icon:"SEARCH"}))}}),_.g("input",{el:Vz,
class:_.xj("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":M9,"aria-expanded":!((nZ=$d)==null?0:nZ.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":IC,"on:focus":Qz,"on:input":pK,"on:keydown":AX,"on:paste":HY,placeholder:M.placeholderText,"aria-activedescendant":function(){var mt;return(mt=kT[y()])==null?void 0:mt[e()]},
"aria-autocomplete":"list",role:"combobox"})),_.g(_.kV,{cond:m,then:function(){return _.g("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.g(JeD,null))}}),_.g(_.kV,{cond:C,
then:function(){return _.g("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.g("button",{class:"ytSearchboxComponentClearButton","on:click":yy,"aria-label":M.clearButtonAriaLabel||bzJ},_.g(_.Fc,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.g(_.$F,{model:{}})))}})),_.g("button",{class:_.xj("ytSearchboxComponentSearchButton",(Px.ytSearchboxComponentSearchButtonDark=uL,Px)),
"on:click":Vb,"aria-label":zzd,title:M.placeholderText},_.g(_.Fc,{icon:"SEARCH"})),_.g(_.kV,{cond:function(){if(ATP()&&_.Q("mweb_voice_search")&&M.voiceSearchButton)return M.voiceSearchButton()},
then:function(mt){var pg={};return _.g("div",{class:_.xj("ytSearchboxComponentVoiceSearchWrapper",(pg.ytSearchboxComponentHideVoiceSearchButton=function(){return C()},pg))},_.g(_.ho,{data:mt},{buttonRenderer:function(gq){return _.g(_.or,{data:gq.data,
onButtonClickCallback:function(){}})}}))}}),_.g("div",{el:_.Zmi(function(mt){return void($d=mt)}),
id:M9,class:_.xj("ytSearchboxComponentSuggestionsContainer",(DD.ytSearchboxComponentSuggestionsContainerDark=uL,DD["yt-searchbox-suggestions-container"]=!1,DD.ytSearchboxComponentSuggestionsContainerScrollable=fg(),DD.ytSearchboxComponentSuggestionsContainerAnimated=p,DD)),"on:scroll":hL,"on:mousemove":JL,role:"listbox",hidden:!0},_.g(_.TN,{each:I},function(mt,pg){return _.g(yed,{suggestion:mt,isHighlighted:function(){return pg()===y()},
onClickCallback:mL,onHoverUpdateCallback:function(gq){if(_.Q("desktop_enable_single_suggestion_highlight")){var vx=pg();gq&&(t(0),c(vx))}},
onRemoveCallback:function(gq){SCi(CJ);gq===void 0||gq<0||LZ().includes(gq)||w3([].concat(_.wu(LZ()),[gq]))},
labels:M.labels,queryBuilderFunction:lX,suggestionIndex:pg,generateUniqueId:zN,highlightedId:function(){var gq;return(gq=kT[y()])==null?void 0:gq[e()]},
useScrollMargin:fg(),isKeyboardMode:XY})}),_.g(_.kV,{cond:function(){return!$i()&&I().find(function(mt){return mt.type!==35})&&_.Q("searchbox_reporting")},
then:function(){return _.g("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Hg},_.le("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.g(_.kV,{cond:function(){return!sS()&&fg()},
then:function(){return _.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.g("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:gU}))}})))},"dg"),"yt-searchbox",{props:{searchEndpoint:_.cA,
placeholderText:_.cA,labels:_.cA,voiceSearchButton:_.cA,focusCallback:_.bI,clearButtonAriaLabel:_.cA,forceDarkMode:_.cA}});var nj=function(){var M=_.n.apply(this,arguments)||this;M.menuButtonTargetId="topbar-guide-menu";M.narrow=!1;M.menuStrings={BACK_ALT_LABEL:_.le("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.le("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.le("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.le("SBOX_PLACEHOLDER",void 0,"Search")};M.pageDarkTheme=document.documentElement.hasAttribute("dark");M.watchPageScrollTop=0;M.theater=!1;M.fullscreen=!1;M.desktopUnifiedSearchPanelMode=_.Q("desktop_enable_unified_search_panel");
M.cinematicTheaterMode=_.Q("web_cinematic_theater_mode");M.ytSearchboxFocused=!1;M.searchboxLabels=_.rK("SBOX_LABELS");M.topbarIsAboveChipbar=!1;M.isDarkThemeForced=!1;M.areGhostCardsHidden=!1;M.guideKeyboardToggle=!1;M.voiceSearchManager=Eye();M.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};M.setYtSearchboxFocused=function(d){M.ytSearchboxFocused=d};
return M};
_.v(nj,_.n);_.F=nj.prototype;_.F.computeSimpleText=function(M){return _.HD(M)};
_.F.onDarkChanged=function(){for(var M=_.V(this.buttons||[]),d=M.next();!d.done;d=M.next())d.value.isOverlay=!!this.dark;M=_.V(this.buttonRenderers||[]);for(d=M.next();!d.done;d=M.next())d.value.overrides=this.computeButtonOverride()};
_.F.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.F.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var M=_.ym(_.K4(),"aa");_.t2(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||M||(this.isDarkThemeForced=this.dark=!0);this.logoType?(M=this.hostElement.querySelector("#masthead-logo"))&&(_.Q("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.l_(M)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ux(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ux(this,this.onSetTheaterModeEnabled))};
_.F.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ux(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ux(this,this.onSetTheaterModeEnabled))};
_.F.dataChanged=function(){var M=this.data;M&&(this.voiceEnabled=M.voiceSearchButton?Eye().isSupported():!1,_.Yt3(_.Nl(),this.menuButtonTargetId,this.guideButton),M.onReceivedActions&&M.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Ni(this.hostElement,M.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&M&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.t2(this.hostElement,"dark",!1),_.t2(this.hostElement,"theater",!1),
(M=this.hostElement.querySelector("#masthead-logo"))&&(_.Q("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.l_(M))))};
_.F.computeCenterHidden=function(){var M;return this.data&&!((M=this.data.searchbox)==null?0:M.fusionSearchboxRenderer)};
_.F.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.t2(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.F.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.F.onWatchScroll=function(M){this.watchPageScrollTop=M.detail||0;this.updateMastheadBackgroundOpacity()};
_.F.onFullscreenChangeAction=function(M){M||(this.watchPageScrollTop=0);this.fullscreen=M;this.updateMastheadBackgroundOpacity()};
_.F.onSetTheaterModeEnabled=function(M){this.theater=M.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.F.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.F.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.F.setBackgroundOpacity=function(M){M=this.calculateBackgroundOpacity(M);this.background.style.opacity=""+M};
_.F.calculateBackgroundOpacity=function(M){var d=this.theater&&this.cinematicTheaterMode?.6:0,N=this.hostElement.clientHeight/2;return Math.min(Math.max(M,0),N)/N*(1-d)+d};
_.F.shouldShowCinematicMastHead=function(){var M=_.Q("kevlar_watch_grid")&&!_.Q("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(M||this.pageDarkTheme)};
_.F.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.F.focusGuide=function(){this.guideButton.focus()};
_.F.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.YP(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.F.onGuideToggleTap=function(){_.YP(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.F.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.F.onGuideToggleHover=function(){_.YP(this.hostElement,"yt-guide-hover")};
_.F.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.F.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.F.closeOnOutsideClickCondition=function(M){for(M=_.J2(M);M[0];){var d=M.shift();if(d instanceof Element&&d.id==="kbd")return!1}return!0};
_.F.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.F.pausePlayer=function(){var M;(M=_.nO())==null||M.pause();this.pauseMiniplayer()};
_.F.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var M;(M=_.h().resolve(_.et).getPlayerElement())==null||M.pause()}};
_.F.isMiniplayerActive=function(){return _.h().resolve(_.et).isMiniplayerActive()};
_.F.updateNarrowFromBinding=function(M){this.narrow=M.detail.value};
_.F.onYtSendFeedbackAction=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Hm.Object.defineProperties(nj.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var M;return(M=this.data)==null?void 0:M.voiceSearchButton}}}});
nj.prototype.narrowChanged=nj.prototype.narrowChanged;nj.prototype.onIronResize=nj.prototype.onIronResize;nj.prototype.onWatchPageChange=nj.prototype.onWatchPageChange;nj.prototype.onRendererStamperFinished=nj.prototype.onRendererStamperFinished;nj.prototype.dataChanged=nj.prototype.dataChanged;nj.prototype.onDarkChanged=nj.prototype.onDarkChanged;_.G([_.S(_.sj),_.a("design:type",Object)],nj.prototype,"ironResizableBehavior",void 0);
_.G([_.S(_.Dyd),_.a("design:type",Object)],nj.prototype,"ytdExpandableInputBehavior",void 0);_.G([_.S(_.Kf.YtdGuideStateAwareBehavior),_.a("design:type",Object)],nj.prototype,"ytdGuideStateAwareBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],nj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Op),_.a("design:type",Object)],nj.prototype,"ytdReduxBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"narrow",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"logoType",void 0);
_.G([_.H(),_.a("design:type",Boolean)],nj.prototype,"voiceEnabled",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"menuStrings",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],nj.prototype,"dark",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],nj.prototype,"pageDarkTheme",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"watchPageScrollTop",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.OW}),_.a("design:type",Boolean)],nj.prototype,"isWatchPage",void 0);_.G([_.H({reflectToAttribute:!0,selector:_.r6S}),_.a("design:type",Boolean)],nj.prototype,"isShortsPage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],nj.prototype,"theater",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],nj.prototype,"fullscreen",void 0);
_.G([_.H({reflectToAttribute:!0,selector:_.SPZ}),_.a("design:type",String)],nj.prototype,"frostedGlassMode",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"ytSearchboxFocused",void 0);_.G([_.EO("#buttons > *"),_.a("design:type",Array)],nj.prototype,"buttons",void 0);_.G([_.EO("ytd-button-renderer"),_.a("design:type",Array)],nj.prototype,"buttonRenderers",void 0);_.G([_.Z3("#background"),_.a("design:type",HTMLDivElement)],nj.prototype,"background",void 0);
_.G([_.Z3("#guide-button"),_.a("design:type",Object)],nj.prototype,"guideButton",void 0);_.G([_.Z3("#logo"),_.a("design:type",Object)],nj.prototype,"logo",void 0);_.G([_.H({computed:"computeButtonOverride(dark)"}),_.a("design:type",Object)],nj.prototype,"buttonOverrides",void 0);_.G([_.NS("dark"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"onDarkChanged",null);_.G([_.H({value:function(){return this.onVoiceTap.bind(this)}}),
_.a("design:type",Function)],nj.prototype,"boundOnTapVoiceButton",void 0);_.G([_.H(),_.a("design:type",Object)],nj.prototype,"topbarIsAboveChipbar",void 0);_.G([_.z("voiceEnabled"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],nj.prototype,"shouldShowVoiceSearchButton",null);_.G([_.z("data"),_.a("design:type",Object),_.a("design:paramtypes",[])],nj.prototype,"voiceSearchButton",null);
_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"dataChanged",null);_.G([_.C3("yt-rendererstamper-finished"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"onRendererStamperFinished",null);_.G([_.NS("isWatchPage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"onWatchPageChange",null);
_.G([_.C3("iron-resize"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"onIronResize",null);_.G([_.NS("narrow"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],nj.prototype,"narrowChanged",null);nj=_.G([_.f({disableElementRegistration:!0,is:"ytd-masthead"})],nj);
_.L(nj,"ytd-masthead",function(){if(jlJ!==void 0)return jlJ;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return jlJ=M},{mode:_.G3("kevlar_poly_si_batch_j036")?1:2});var Hzd;var n7G={},izG={},fQY={},LPP={},tji=(LPP.OFFLINE=(n7G["publicytnetworkstatus-online"]="BACK_ONLINE",n7G),LPP.ONLINE=(izG["publicytnetworkstatus-offline"]="OFFLINE",izG),LPP.BACK_ONLINE=(fQY["publicytnetworkstatus-offline"]="OFFLINE",fQY.TIMER_TRIGGER="ONLINE",fQY),LPP),ih=function(){var M=_.n.apply(this,arguments)||this;M.currentState="ONLINE";M.scheduledJobId=0;M.bannerString="";M.bannerVe=null;M.networkStatusManagerInstance=new _.S6;return M};
_.v(ih,_.n);_.F=ih.prototype;_.F.attached=function(){var M=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.F.detached=function(){var M=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.F.enterState=function(M){var d=this;this.scheduledJobId&&_.IQ.cancelJob(this.scheduledJobId);M==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):M==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.le("NO_INTERNET_CONNECTION",void 0,"No internet connection")):M==="BACK_ONLINE"&&(this.bannerString=_.le("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.gL(_.IQ,function(){d.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=M};
_.F.stateChangeHandler=function(M){(M=tji[this.currentState][M])&&this.enterState(M)};
_.F.logVisibility=function(M){var d=_.Ou();this.createBannerVe(M);d&&this.bannerVe&&(M?_.zR(d,[this.bannerVe]):_.be(d,[this.bannerVe]))};
_.F.createBannerVe=function(M){!this.bannerVe&&M&&(this.bannerVe=_.Tx(37929),_.RL(_.Nx(),this.bannerVe))};
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",String)],ih.prototype,"currentState",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"scheduledJobId",void 0);_.G([_.H(),_.a("design:type",Object)],ih.prototype,"bannerString",void 0);ih=_.G([_.f({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ih);
_.L(ih,"ytd-network-status-banner",function(){if(Hzd!==void 0)return Hzd;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return Hzd=
M},{mode:1});var GZr;var fj=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};M.hidden=!0;M.frostedGlass=_.Q("web_frosted_glass");return M};
_.v(fj,_.n);fj.prototype.computeHidden=function(M){return M&&M.status?!1:!0};
fj.prototype.handleUpdatePermissionRoleCommand=function(M){if(M=_.q(M,_.R0e))if(M=_.q(M.renderer,_.NJC))this.data=M};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],fj.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],fj.prototype,"componentBehavior",void 0);_.G([_.H({value:!0,computed:"computeHidden(data)"}),_.a("design:type",Object)],fj.prototype,"hidden",void 0);_.G([_.H(),_.a("design:type",Object)],fj.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],fj.prototype,"frostedGlass",void 0);
fj=_.G([_.f({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],fj);
_.L(fj,"ytd-permission-role-bottom-bar-renderer",function(){if(GZr!==void 0)return GZr;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);return GZr=M},{mode:1});var aQG;var UdC;var xrJ={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Lj=function(){return _.n.apply(this,arguments)||this};
_.v(Lj,_.n);_.F=Lj.prototype;_.F.attached=function(){this.JSC$18414_scroller&&(this.JSC$18414_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18414_scroller.attached&&typeof this.JSC$18414_scroller.attached==="function"&&this.JSC$18414_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(N){N.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var M=_.K(this.hostElement);M.querySelector("tp-yt-paper-radio-group").selected="";var d=M.querySelector("#reason-text");d&&(d.value="");M.querySelector("#description-text").value=""}};
_.F.canSubmit=function(M,d){_.YP(this.hostElement,"yt-invalidate-popup-tabbables");return!(M&&d)};
_.F.onCancel=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.F.onSubmit=function(){var M=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(A){return A.active}).map(function(A){return A.innerText.trim()}),d=this.hostElement.querySelector("tp-yt-paper-radio-group"),N=d.selectedItem,R=N.name;
N=N.innerText.trim();var X=d.querySelector("#reason-text");d=void 0;X&&(d=X.value);(X=this.descriptionText.value)&&(X=X.trim());YWC(this.data.searchQuery,M,R,N,X,d);_.ZI(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.F.sendFormSubmitToast=function(){var M=_.tT(_.le("SBOX_INAPPROPRIATE_TOAST"));_.ZI(this.hostElement,"yt-open-popup-action",[M,this])};
_.F.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(M){return M.active})};
_.F.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Lj.prototype.onIronSelect=Lj.prototype.onIronSelect;Lj.prototype.onIronChange=Lj.prototype.onIronChange;Lj.prototype.dataChanged=Lj.prototype.dataChanged;_.G([_.H(),_.a("design:type",Object)],Lj.prototype,"data",void 0);_.G([_.H({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.a("design:type",Boolean)],Lj.prototype,"submitDisabled",void 0);_.G([_.H(),_.a("design:type",Boolean)],Lj.prototype,"suggestionSelected",void 0);
_.G([_.H(),_.a("design:type",Boolean)],Lj.prototype,"catagorySelected",void 0);_.G([_.Z3("#scroller"),_.a("design:type",Object)],Lj.prototype,"JSC$18414_scroller",void 0);_.G([_.Z3("#description-text"),_.a("design:type",Object)],Lj.prototype,"descriptionText",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Lj.prototype,"dataChanged",null);
_.G([_.C3("iron-change"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Lj.prototype,"onIronChange",null);_.G([_.C3("iron-select"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Lj.prototype,"onIronSelect",null);Lj=_.G([_.f({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Lj);
_.L(Lj,"ytd-search-suggestion-report-dialog",function(){if(UdC!==void 0)return UdC;var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return UdC=M},{mode:1});var tc=function(M){var d=M.openPopupAction;var N=M.target;var R=M.container;var X=M.popupContainerConfig;var A=M.getElement;M=M.removeWhenClosed===void 0?!1:M.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=d;this.target=N;this.container=R;this.popupContainerConfig=X;this.getElement=A;this.JSC$18420_popupConfig=this.popupContainerConfig.JSC$17537_popupConfig[this.openPopupAction.popupType];this.rendererName=(d=this.getName())?_.iqZ(d,Kqq(this.popupContainerConfig,
d)):"";_.Q("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=M);this.createPopup()};
tc.prototype.updatePopup=function(M){this.openPopupAction=M;this.JSC$18420_popupConfig=this.popupContainerConfig.JSC$17537_popupConfig[this.openPopupAction.popupType];uET(this);_.Q("reorder_popup_updates_killswitch")&&CRd(this);_.Q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var Zz$=function(M,d,N){M.target=N;var R;N=((R=M.target.polymerController)!=null?R:M.target).popupPositionTarget||M.target;M.JSC$18420_popupConfig.targetContainer&&(N=M.container);M.popup.positionTarget=N;M.popupContent.positionTarget=N;_.Q("reorder_popup_updates_killswitch")||CRd(M);M.JSC$18420_popupConfig.forceFocus&&(M.popupContent.style.outline="none");M.popupContent.tabIndex=-1;M.JSC$18420_popupConfig.narrowProperties&&(M.popup.style.position="static");M.JSC$18420_popupConfig.preventAutonav&&
M.popup.setAttribute("prevent-autonav",!0);M.JSC$18420_popupConfig.forceCloseOnOutsideClick&&M.popup.setAttribute("force-close-on-outside-click",!0);xdY(M,d);YCT(M,M.JSC$18420_popupConfig.styles);M.isRtl()&&YCT(M,M.JSC$18420_popupConfig.rtlStyles);if(!M.openPopupAction.shouldStopParentSignal){var X;d=(X=M.target.polymerController)!=null?X:M.target;(M.popupContent.startForwardingEvents||M.popupContainerConfig.forwardingEnabledPopups.has(M.rendererName))&&d.parentComponent!==M.popupContent&&M.popupContent!==
M.target&&M.target!==document.body&&(M.popupContent.startForwardingEvents?M.popupContent.startForwardingEvents(M.popupContainerConfig.forwardedEvents,M.target):(M.JSC$18420_eventForwarder||(M.JSC$18420_eventForwarder=new _.TM(M.popupContent)),M.JSC$18420_eventForwarder.start(M.popupContainerConfig.forwardedEvents,M.target)))}};
tc.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var xdY=function(M,d){E7C(M,d&&M.JSC$18420_popupConfig.narrowProperties?M.JSC$18420_popupConfig.narrowProperties:M.JSC$18420_popupConfig.properties);M.isRtl()&&E7C(M,M.JSC$18420_popupConfig.rtlProperties);CRd(M)};
tc.prototype.createPopup=function(){var M=this.JSC$18420_popupConfig.component;if(this.popupContent=M3r(this,this.rendererName)){if(M){this.popup=M3r(this,M);var d=this.popupContent;_.Q("web_enable_wrapper_for_cow_component_in_popup")&&(d=document.createElement("div"),d.appendChild(this.popupContent));_.Q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18420_popupConfig.slotName&&d.setAttribute("slot",this.JSC$18420_popupConfig.slotName);M=this.popup;var N=this.container.tagName.toLowerCase(),
R=_.S2(d);_.hTA(_.bx(M),_.n3(d,N,R));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.Q("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.K(this.container).appendChild(this.popup)}};
var uET=function(M){var d,N,R=(d=M.openPopupAction.accessibilityData)==null?void 0:(N=d.accessibilityData)==null?void 0:N.label;R&&(M.popup.ariaLabel=R);var X;((X=M.popupContent.polymerController)!=null?X:M.popupContent).data=(0,_.wF.unsafeClone)(M.openPopupAction.popup[M.getName()]);M.popupContent.duration=dW4(M);M.popupContent.positionType=M.openPopupAction.position;var A=M.openPopupAction.properties;A&&Object.keys(A).forEach(function(l){M.popupContent[l]=A[l]})},E7C=function(M,d){if(d)for(var N=
_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,M.popup[R]=d[R]},CRd=function(M){if(M.openPopupAction.position){var d=M.JSC$18420_popupConfig.positionalProperties&&M.JSC$18420_popupConfig.positionalProperties[M.openPopupAction.position],N=M.JSC$18420_popupConfig.rtlPositionalProperties&&M.JSC$18420_popupConfig.rtlPositionalProperties[M.openPopupAction.position];
d=M.isRtl()&&N?N:d;d.shiftedHorizontalOffset&&(N=M.popup.style.display,M.popup.style.display="block",M.popupContent&&M.popup.positionTarget&&M.popupContent.clientWidth>M.popup.positionTarget.clientWidth&&(d.horizontalOffset=M.popup.positionTarget.clientWidth/2-d.shiftedHorizontalOffset),M.popup.style.display=N);E7C(M,d)}},YCT=function(M,d){if(d)for(var N=_.V(Object.keys(d)),R=N.next();!R.done;R=N.next())R=R.value,M.popup.style[R]=d[R]};
tc.prototype.getName=function(){return _.sl(this.openPopupAction.popup,"renderer")||_.sl(this.openPopupAction.popup,"dialog")||_.sl(this.openPopupAction.popup,"model")||void 0};
var dW4=function(M){M=M.openPopupAction.durationHintMs;return M===0?M:Math.max(4E3,M||4E3)};
tc.prototype.isRtl=function(){return _.rK("HTML_DIR")==="rtl"};
var M3r=function(M,d){M=M.getElement(d,M.target);M==null&&_.vh(new _.WJ("popup getElement returned null",d));return M};var Nt4={};
Nt4.YtPopupContainerBehavior=[_.jV.YtComponentBehavior,_.tK.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.CL(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.xP(this.hostElement)},
closePopup:function(M){var d=this.createCacheKey(void 0,M);this.popups_[d]&&this.handleClosePopupAction_(void 0,M)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.IQ.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.IQ.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(M){M.opened&&M.keepBelowPlayer&&this.ensurePopupBelowPlayer(M)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var M in this.popups_){var d=this.popups_[M];if(d.popup.scrollAction==="refit"){var N=d.popup.positionTarget.getBoundingClientRect(),R=d.popup;N=N.top;var X=d;if(!X.naturalHeight){X.popup.hidden=!1;X.popup.style.position="fixed";X.popup.style.top="0px";X.popup.style.left="0px";var A=X.popup.getBoundingClientRect();X.naturalHeight=A.bottom-A.top;X.popup.refit()}R.hidden=!(N>=X.naturalHeight+60);d.popupContent.clientHeight===0&&d.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(M){this.popupContainerConfig=M},
handleOpenPopupAction:function(M,d){var N=M.openPopupAction,R=_.h().resolve(_.CF(_.jI9))&&N.popupType==="TOAST";R&&!N.uniqueId&&(N.uniqueId=_.ww());if(!_.Q("popup_container_parent_target_killswitch")){var X;d=(X=this.getParentTarget(d))!=null?X:d}var A=this.ensurePopup_(N,d);return new _.Xy(function(l){A.then(function(k){if(!k)return l();this.maybeCreateNarrowMediaQuery_();var T=this.createCacheKey(k.rendererName,k.openPopupAction.uniqueId);if(N.showOncePerUniqueId){if(this.shownPopupKeys_.has(T))return l();
this.shownPopupKeys_.add(T)}T=this.popups_[T];var W=!(!T||!T.openPopupAction.beReused);W=!!N.reusePopup||W;if(k.popup.opened&&!W){R&&!k.openPopupAction.replacePopup||this.handleClosePopupAction_(k.rendererName,k.openPopupAction.uniqueId);W=N.popupType==="DIALOG"&&!_.Q("popup_container_dialog_reopen_killswitch");if(!R&&!W&&T&&T.target==d&&!k.openPopupAction.replacePopup)return l();_.bM(k.popup,function(){this.completeOpenPopupAction_(N,d,k);l()}.bind(this))}else k.popup.opened?k.updatePopup(N):this.completeOpenPopupAction_(N,
d,k),l()}.bind(this))}.bind(this))},
getParentTarget:function(M){if(M&&M instanceof HTMLElement)for(var d=_.V(Object.entries(this.popups_)),N=d.next();!N.done;N=d.next())if(N=_.V(N.value),N.next(),N=N.next().value,N.popup.tagName==="TP-YT-IRON-DROPDOWN"&&N.popup.opened&&M.closest(N.rendererName))return N.target},
completeOpenPopupAction_:function(M,d,N){_.Q("reorder_popup_updates_killswitch")?(Zz$(N,this.narrowMediaQuery_.queryMatches,d),N.updatePopup(M)):(N.updatePopup(M),Zz$(N,this.narrowMediaQuery_.queryMatches,d));M=N.popup;M.addEventListener("iron-overlay-opened",_.ux(this,this.onPopupIronOverlayOpened_));M.addEventListener("iron-overlay-closed",_.ux(this,this.onPopupIronOverlayClosed_));M.addEventListener("iron-overlay-canceled",_.ux(this,this.onPopupIronOverlayCanceled_));M.addEventListener("yt-refit",
_.ux(this,this.refitPopup_));M.addEventListener("yt-invalidate-popup-tabbables",_.ux(this,this.handleInvalidatePopupTabbables_));M.open()},
getPopupDurationMs_:function(M){return M.durationHintMs===0?M.durationHintMs:Math.max(4E3,M.durationHintMs||4E3)},
handleClosePopupAction_:function(M,d){var N=_.Q("web_popup_cache_key_killswitch")||!!d;if(M||N){var R=this.createCacheKey(M,d);M=(M=this.popups_[R])&&M.popup}else M=_.XCt(_.nG);if(M&&M.close){if(d=_.h().resolve(_.CF(_.TH)))M.restoreFocusOnClose=d.isKeyBoardInUse();M.close();this.removePopup_(M,R)}},
handleClosePopupCommand_:function(M){M.closePopupCommand&&M.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,M.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(M){var d={},N;for(N in this.popups_)if(d={key$jscomp$1162:d.key$jscomp$1162},d.key$jscomp$1162=N,!M||!M.some(function(A){return function(l){return l==A.key$jscomp$1162}}(d))){var R=this.popups_[d.key$jscomp$1162],X=R.popup;
_.h().resolve(_.CF(_.jI9))&&R.openPopupAction.popupType==="TOAST"||(X&&X.close&&X.close(),this.removePopup_(X,d.key$jscomp$1162))}},
handleClosePopupsAction_:function(M){M.forEach(function(d){var N=this.popups_[d];N&&((N=N.popup)&&N.close&&N.close(),this.removePopup_(N,d))}.bind(this))},
handleGetPopupOpenedAction_:function(M,d){return(d=this.createCacheKey(M,d))&&this.popups_[d]?this.popups_[M].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var M=[],d;for(d in this.popups_){var N=this.popups_[d];N.popup.opened&&M.push(N)}return M},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(M,d){_.Q("ytpopup_disable_default_html_caching")&&M&&M.removeWhenClosed&&(_.K(this.hostElement).removeChild(M),d&&this.popups_[d]&&delete this.popups_[d])},
shouldReusePopup_:function(M){return!(!M||!M.reusePopup)||!(!M||!M.beReused)},
ensurePopup_:function(M,d){this.maybeCreateNarrowMediaQuery_();var N=_.sl(M.popup,"renderer")||_.sl(M.popup,"dialog")||_.sl(M.popup,"model");if(!N)return _.RD();N=_.iqZ(N,Kqq(this.popupContainerConfig,N));return _.RD(this.getAndMaybeCreatePopup_(M,N,d))},
getAndMaybeCreatePopup_:function(M,d,N){var R=this.createCacheKey(d,M.uniqueId);if(this.popups_[R])return this.popups_[R];M=new tc({openPopupAction:M,target:N,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(d)});return this.popups_[R]=M},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(M){return _.Q("ytpopup_disable_default_html_caching")?M&&M.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.ux(this,this.openPopupQueryMatchesChanged_)),_.K(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(M){M=M.detail.value;for(var d in this.popups_)xdY(this.popups_[d],M)},
onPopupIronOverlayClosed_:function(M){var d=M.currentTarget,N=_.n2S(d);N=N.length>0?N[0]:d;if(N.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){M.detail.popup=d;M.detail.popupRenderer=N;var R,X={context:{openingElement:((R=this.popups_[(N==null?void 0:N.is)||""])==null?void 0:R.target)||void 0}};Object.assign(X,M.detail);var A;_.YP((A=N.hostElement)!=null?A:N,"yt-popup-closed",X);d.removeEventListener("yt-refit",_.ux(this,this.refitPopup_));d.removeEventListener("yt-invalidate-popup-tabbables",
_.ux(this,this.handleInvalidatePopupTabbables_));d.removeEventListener("iron-overlay-canceled",_.ux(this,this.onPopupIronOverlayCanceled_));d.removeEventListener("iron-overlay-closed",_.ux(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(d)}},
onPopupIronOverlayCanceled_:function(M,d){var N=M.currentTarget,R=_.n2S(N);R=R.length>0?R[0]:N;if(R.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){var X;_.YP((X=R.hostElement)!=null?X:R,"yt-popup-canceled",M.detail);X=d?_.J2(d):null;(!d||["click","tap"].includes(d.type))&&!N.hasAttribute("force-close-on-outside-click")&&N.positionTarget&&X&&X.includes(N.positionTarget)&&M.preventDefault();N.restoreFocusOnClose=_.pG.keyboardEventMatchesKeys(d,"esc")}},
onPopupIronOverlayOpened_:function(M){M=M.currentTarget;var d=_.n2S(M);d=d.length>0?d[0]:M;var N,R;_.YP((N=d.hostElement)!=null?N:d,"yt-popup-opened",(R=d.hostElement)!=null?R:d);M.keepBelowPlayer&&(this.ensurePopupBelowPlayer(M,!0),this.dynamicallyPositionedElements_.add(M));N=_.h().resolve(_.CF(_.TH));R=!!d.querySelector("#toast");N&&N.isKeyBoardInUse()&&!R&&(typeof d.focusFirstItem==="function"?d.focusFirstItem():(d=_.doo(M),d.length&&d[0].focus()));M.removeEventListener("iron-overlay-opened",
_.ux(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(M){M=M.currentTarget;M.refit&&M.refit()},
refitPopups_:function(){for(var M in this.popups_)this.popups_[M].refit()},
handleInvalidatePopupTabbables_:function(M){M=M.currentTarget;M.invalidateTabbables&&M.invalidateTabbables()},
createCacheKey:function(M,d){return _.Q("web_popup_cache_key_killswitch")?d?M+"#"+d:M:d?"#"+d:M},
openSheet:function(M,d){var N=M==null?void 0:M.openPopupActionCommand;!N&&(M==null?0:M.viewModel)&&(N={openPopupAction:{popup:{sheetViewModel:M.viewModel},popupType:"CONTEXTUAL_SHEET"}});N&&this.handleOpenPopupAction(N,d)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var M=this;return _.B(function(d){return d.return(M.handleGetOpenedPopupsAction_().filter(function(N){var R;return((R=N.openPopupAction)==null?void 0:R.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(M,d,N){if(_.Q("web_dialog_utils_killswitch")){var R=M==null?void 0:M.openPopupActionCommand,X=(N==null?0:N.ariaLabel)?{accessibilityData:{accessibilityData:{label:N.ariaLabel}}}:void 0;!R&&(M==null?0:M.viewModel)&&(R={openPopupAction:Object.assign({},{popup:{dialogViewModel:M.viewModel},popupType:(N==null?0:N.isModal)?"MODAL":"DIALOG"},X&&X)});R&&this.handleOpenPopupAction(R,d)}else{if(X=M==null?void 0:M.viewModel){var A=N=N===void 0?{}:N;N=A.ariaLabel;X={popup:{dialogViewModel:X},
popupType:A.isModal?"MODAL":"DIALOG"};A={accessibilityData:{label:N}};N&&(X.accessibilityData=A);X={openPopupAction:X}}else X=void 0;(X=(R=X)!=null?R:M==null?void 0:M.openPopupActionCommand)&&this.handleOpenPopupAction(X,d)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var M=this;return _.B(function(d){return d.return(M.handleGetOpenedPopupsAction_().filter(function(N){var R;return((R=N.openPopupAction)==null?void 0:R.popupType)==="DIALOG"}).length>0)})}}];var RF4;var XLG;var F9i=_.a1(["about:blank"]),G8=function(){var M=_.n.apply(this,arguments)||this;M.isMuted=!1;M.pageLoadTimeoutId=void 0;return M};
_.v(G8,_.n);_.F=G8.prototype;_.F.dataChanged=function(){var M=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var d=this.data.url,N=_.vf(d);_.Q("enable_yt_ata_iframe_authuser")?(N=_.vf(d),_.s0(this.iframe,ZhJ(N))):_.s0(this.iframe,N);this.pageLoadTimeoutId=_.gL(_.Pa(),function(){return void M.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Zk({destination:window,iframe:this.iframe,origin:_.Bsg(N.toString()),channelName:"ataiframe",onMessage:_.qSV(z0$,function(R){bGC(R.data)?(R=_.kZ(R.data,1,_.WP,_.uC()),R.length!==1?_.vh(Error("pl")):(R=R[0],R===3?(M.isMuted=!0,M.logStateChanged({adMuteRequested:!0})):R===1&&M.close())):_.vh(Error("ql"))}),
onEstablished:function(){M.cancelPageLoadTimeout();M.logStateChanged({pageLoadSucceeded:!0})}})}};
_.F.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Pa().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.F.logStateChanged=function(M){var d;if((d=this.data)==null?0:d.trackingParams)M={adsClientData:{aboutThisAdData:M}},_.Nx().stateChanged(this.data.trackingParams,M)};
_.F.close=function(){_.ZI(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.handlesPopupClosed=function(M,d){var N=this,R,X;return _.B(function(A){if(A.nextAddress==1)return _.rK("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ZI(N.hostElement,"on-about-this-ad-popup-closed",[N.isMuted,d]),A.jumpTo(0)):M&&E$4(M)?_.D(A,M2G(M),4):(N.isMuted&&_.ZI(N.hostElement,"yt-mute-ad-action",[N.is,N]),A.jumpTo(0));if(R=A.yieldResult){var l=X=new _.Vo(R),k=N.isMuted;l.getOptions().includes("onAboutThisAdPopupClosed")?_.nw3(l,"onAboutThisAdPopupClosed",{isMuted:k,layoutId:d}):_.xM("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Vy(A)})};
_.F.onPopupClosed=function(M){var d=this,N,R;return _.B(function(X){N=_.u6(F9i);_.s0(d.iframe,N);d.cancelPageLoadTimeout();if(!d.data)return X.jumpTo(0);d.ytRendererBehavior.markDirty();R=M.detail.context.openingElement;return _.D(X,d.handlesPopupClosed(R,d.data.layoutId),0)})};
_.F.detached=function(){this.cancelPageLoadTimeout()};
_.F.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
G8.prototype.onPopupClosed=G8.prototype.onPopupClosed;G8.prototype.dataChanged=G8.prototype.dataChanged;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.G([_.Z3("#iframe"),_.a("design:type",HTMLIFrameElement)],G8.prototype,"iframe",void 0);_.G([_.H(),_.a("design:type",Object)],G8.prototype,"data",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],G8.prototype,"dataChanged",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype",Promise)],G8.prototype,"onPopupClosed",null);G8=_.G([_.w4({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],G8);
_.L(G8,"yt-about-this-ad-renderer",function(){if(XLG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;RF4===void 0&&(RF4=document.createElement("template"));var R=RF4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);XLG=M}M=XLG;return M},{mode:2});var AJd;var V39;var aS=function(M){var d=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.maxFileSizeMB=M;Object.setPrototypeOf(this,aS.prototype)};
_.v(aS,Error);var l29=function(M,d){var N=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=N.message;"stack"in N&&(this.stack=N.stack);this.minWidth=M;this.minHeight=d;Object.setPrototypeOf(this,l29.prototype)};
_.v(l29,Error);var $WD=function(M){this.requirements=M;this.JSC$18448_maxFileSize=M.maxFileSizeMB*1024*1024},Bt$=function(M,d){if(d.size>M.JSC$18448_maxFileSize)throw new aS(M.requirements.maxFileSizeMB);
};var kAq=function(M,d){this.canvas=M;this.imageEditorBuilder=d};
kAq.prototype.addEventListeners=function(M){var d=function(X){Ttd(M,X)};
this.JSC$18454_mouseDownEvent=d;var N=function(X){DWb(M,X)};
this.JSC$18454_mouseMoveEvent=N;var R=function(){ggD(M)};
this.JSC$18454_mouseUpEvent=R;this.canvas.addEventListener("mousedown",d);this.canvas.addEventListener("mousemove",N);document.addEventListener("mouseup",R)};
kAq.prototype.removeEventListeners=function(){this.JSC$18454_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18454_mouseDownEvent);this.JSC$18454_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18454_mouseMoveEvent);this.JSC$18454_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18454_mouseUpEvent)};
var W9P=function(M,d){M.removeEventListeners();return new Promise(function(N){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var X=M.imageEditorBuilder(M.canvas,R);M.addEventListeners(X);N(X)};
R.src=d})},Um=function(M,d,N,R,X,A,l,k){this.canvas=M;
this.image=d;this.requiredRatio=N;this.minImageCropDimension=R;this.minOutputImageResolution=X;this.component=A;this.styleFocusedCorner=k===void 0?!0:k;this.action=2;this.focusedCorner=this.resizeCorner=0;M=this.canvas.getContext("2d");if(!M)throw Error("rl");this.ctx=M;this.canvasMargin=l!=null?l:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;l=this.image;M=this.canvasInnerWidth/l.width;l.height*M>912&&(M=l.width/l.height*912/l.width);l=M;this.scaledImageWidth=this.canvas.width%2?
Nfd(this.image.width*l):dX4(this.image.width*l);this.scaledImageHeight=Math.round(this.image.height*l);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18457_overlayMarginBottom=this.JSC$18457_overlayMarginTop=this.canvasMargin;this.JSC$18457_overlayMarginRight=this.JSC$18457_overlayMarginLeft=this.horizontalMargin;this.JSC$18457_overlayWidth=this.scaledImageWidth;this.JSC$18457_overlayHeight=this.scaledImageHeight;
M=this.image.width/this.image.height;M>this.requiredRatio?(this.JSC$18457_overlayWidth=this.canvas.width%2?Nfd(this.scaledImageHeight*this.requiredRatio):dX4(this.scaledImageHeight*this.requiredRatio),this.JSC$18457_overlayMarginRight=this.JSC$18457_overlayMarginLeft=(this.canvas.width-this.JSC$18457_overlayWidth)/2):M<this.requiredRatio&&(this.JSC$18457_overlayHeight=this.canvas.height%2?Nfd(this.scaledImageWidth/this.requiredRatio):dX4(this.scaledImageWidth/this.requiredRatio),this.JSC$18457_overlayMarginBottom=
this.JSC$18457_overlayMarginTop=(this.canvas.height-this.JSC$18457_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*l,this.scaledImageWidth);wLi(this)};
Um.prototype.getContext=function(){return this.ctx};
var Ttd=function(M,d){d={x:Math.round(d.pageX-M.canvas.getBoundingClientRect().left),y:Math.round(d.pageY-M.canvas.getBoundingClientRect().top)};M.dragStart=d;pL9(M,d)!==0?(M.action=1,mW9(M,d),M.resizeCorner=pL9(M,d)):d.x>M.JSC$18457_overlayMarginLeft&&d.x<M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth&&d.y>M.JSC$18457_overlayMarginTop&&d.y<M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight&&(M.action=0)},hF9=function(M,d){switch(d){case 1:return{x:M.JSC$18457_overlayMarginLeft,
y:M.JSC$18457_overlayMarginTop};case 2:return{x:M.JSC$18457_overlayMarginLeft,y:M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight};case 3:return{x:M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth,y:M.JSC$18457_overlayMarginTop};case 4:return{x:M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth,y:M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight};default:throw Error("sl");}},q3P=function(M,d){if(M.focusedCorner!==0){M.dragStart=hF9(M,M.focusedCorner);
M.action=1;M.resizeCorner=M.focusedCorner;var N=M.dragStart.x,R=M.dragStart.y;switch(d){case 0:M.focusedCorner===1||M.focusedCorner===4?(N-=10,R-=10):(N-=10,R+=10);break;case 1:M.focusedCorner===1||M.focusedCorner===4?(N+=10,R+=10):(N+=10,R-=10);break;case 2:N=M.focusedCorner===1||M.focusedCorner===4?N-10:N+10;R-=10;break;case 3:N=M.focusedCorner===1||M.focusedCorner===4?N+10:N-10;R+=10;break;default:throw Error("tl");}Qw$(M,{x:N,y:R});wLi(M);M.action=2;M.dragStart=void 0}},DWb=function(M,d){d={x:Math.round(d.pageX-
M.canvas.getBoundingClientRect().left),
y:Math.round(d.pageY-M.canvas.getBoundingClientRect().top)};mW9(M,d);switch(M.action){case 1:Qw$(M,d);break;case 0:M.dragStart&&(M.JSC$18457_overlayMarginLeft=Math.max(M.horizontalMargin,Math.min(M.JSC$18457_overlayMarginLeft-(M.dragStart.x-d.x),M.horizontalMargin+M.scaledImageWidth-M.JSC$18457_overlayWidth)),M.JSC$18457_overlayMarginRight=M.canvas.width-M.JSC$18457_overlayMarginLeft-M.JSC$18457_overlayWidth,M.JSC$18457_overlayMarginTop=Math.max(M.canvasMargin,Math.min(M.JSC$18457_overlayMarginTop-
(M.dragStart.y-d.y),M.scaledImageHeight-M.JSC$18457_overlayHeight+M.canvasMargin)),M.JSC$18457_overlayMarginBottom=M.canvas.height-(M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight));break;default:return}wLi(M);M.dragStart=d},ggD=function(M){M.action=2;
M.dragStart=void 0;document.body.style.cursor="auto"},mW9=function(M,d){switch(pL9(M,d)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:M.action!==1&&(document.body.style.cursor="auto")}},pL9=function(M,d){var N=M.JSC$18457_overlayMarginLeft-5,R=M.JSC$18457_overlayMarginTop-5,X=M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth-5;
M=M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-5;return I2P(d,{x:N,y:R})?1:I2P(d,{x:X,y:R})?3:I2P(d,{x:N,y:M})?2:I2P(d,{x:X,y:M})?4:0},I2P=function(M,d){return M.x>=d.x&&M.x<=d.x+10&&M.y>=d.y&&M.y<=d.y+10},Qw$=function(M,d){if(M.dragStart)switch(M.resizeCorner){case 2:Math.abs((M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth-d.x)/(d.y-M.JSC$18457_overlayMarginTop))>=M.requiredRatio?vgT(M,d.x):O84(M,d.y);
break;case 1:Math.abs((M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth-d.x)/(M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-d.y))>=M.requiredRatio?jw9(M,d.x):O84(M,d.y);break;case 4:Math.abs((d.x-M.JSC$18457_overlayMarginLeft)/(d.y-M.JSC$18457_overlayMarginTop))>=M.requiredRatio?vgT(M,d.x):sw$(M,d.y);break;case 3:Math.abs((d.x-M.JSC$18457_overlayMarginLeft)/(M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-d.y))>=M.requiredRatio?jw9(M,d.x):sw$(M,d.y);break;default:throw Error("ul");
}},vgT=function(M,d){var N=M.JSC$18457_overlayMarginTop;
M.JSC$18457_overlayMarginBottom=PQq(M,d);M.JSC$18457_overlayHeight=M.canvas.height-M.JSC$18457_overlayMarginBottom-N;M.JSC$18457_overlayWidth=Math.round(M.JSC$18457_overlayHeight*M.requiredRatio);oge(M)},jw9=function(M,d){var N=M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight;
M.JSC$18457_overlayMarginTop=PQq(M,d);M.JSC$18457_overlayHeight=N-M.JSC$18457_overlayMarginTop;M.JSC$18457_overlayWidth=Math.round(M.JSC$18457_overlayHeight*M.requiredRatio);oge(M)},oge=function(M){switch(M.resizeCorner){case 2:case 1:M.JSC$18457_overlayMarginLeft=M.canvas.width-M.JSC$18457_overlayMarginRight-M.JSC$18457_overlayWidth;
break;case 4:case 3:M.JSC$18457_overlayMarginRight=M.canvas.width-M.JSC$18457_overlayMarginLeft-M.JSC$18457_overlayWidth;break;default:throw Error("ul");}},O84=function(M,d){var N=M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth;
M.JSC$18457_overlayMarginLeft=rJb(M,d);M.JSC$18457_overlayWidth=N-M.JSC$18457_overlayMarginLeft;M.JSC$18457_overlayHeight=Math.round(M.JSC$18457_overlayWidth/M.requiredRatio);K9q(M)},sw$=function(M,d){var N=M.JSC$18457_overlayMarginLeft;
M.JSC$18457_overlayMarginRight=rJb(M,d);M.JSC$18457_overlayWidth=M.canvas.width-M.JSC$18457_overlayMarginRight-N;M.JSC$18457_overlayHeight=Math.round(M.JSC$18457_overlayWidth/M.requiredRatio);K9q(M)},K9q=function(M){switch(M.resizeCorner){case 2:case 4:M.JSC$18457_overlayMarginBottom=M.canvas.height-M.JSC$18457_overlayMarginTop-M.JSC$18457_overlayHeight;
break;case 1:case 3:M.JSC$18457_overlayMarginTop=M.canvas.height-M.JSC$18457_overlayMarginBottom-M.JSC$18457_overlayHeight;break;default:throw Error("ul");}},PQq=function(M,d){switch(M.resizeCorner){case 2:d=M.canvas.height-(M.JSC$18457_overlayMarginTop+yJG(M,d));
break;case 4:d=M.canvas.height-(M.JSC$18457_overlayMarginTop+JJD(M,d));break;case 1:d=M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-yJG(M,d);break;case 3:d=M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-JJD(M,d);break;default:throw Error("ul");}return Math.max(d,M.canvasMargin)},yJG=function(M,d){d=M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth-Math.max(d,M.horizontalMargin);
d=d<0?M.JSC$18457_overlayWidth:Math.max(d,M.minOverlayWidth);return Math.round(d/M.requiredRatio)},JJD=function(M,d){d=M.canvas.width-Math.max(M.canvas.width-d,M.horizontalMargin)-M.JSC$18457_overlayMarginLeft;
d=d<0?M.JSC$18457_overlayWidth:Math.max(d,M.minOverlayWidth);return Math.round(d/M.requiredRatio)},rJb=function(M,d){switch(M.resizeCorner){case 2:d=M.canvas.width-M.JSC$18457_overlayMarginRight-cJP(M,d);
break;case 4:d=M.canvas.width-M.JSC$18457_overlayMarginLeft-cJP(M,d);break;case 1:d=M.canvas.width-M.JSC$18457_overlayMarginRight-S3D(M,d);break;case 3:d=M.canvas.width-M.JSC$18457_overlayMarginLeft-S3D(M,d);break;default:throw Error("ul");}return Math.max(d,M.horizontalMargin)},cJP=function(M,d){d=M.canvas.height-Math.max(M.canvas.height-d,M.canvasMargin)-M.JSC$18457_overlayMarginTop;
return d<0?M.JSC$18457_overlayWidth:Math.max(Math.round(d*M.requiredRatio),M.minOverlayWidth)},S3D=function(M,d){d=M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-Math.max(d,M.canvasMargin);
return d<0?M.JSC$18457_overlayWidth:Math.max(Math.round(d*M.requiredRatio),M.minOverlayWidth)},wLi=function(M){M.ctx.clearRect(0,0,M.canvas.width,M.canvas.height);
M.ctx.drawImage(M.image,0,0,M.image.width,M.image.height,M.horizontalMargin,M.canvasMargin,M.canvas.width-2*M.horizontalMargin,M.scaledImageHeight);M.ctx.fillStyle="rgba(0, 0, 0, 0.7)";M.ctx.fillRect(M.horizontalMargin,M.JSC$18457_overlayMarginTop,M.JSC$18457_overlayMarginLeft-M.horizontalMargin,M.JSC$18457_overlayHeight);M.ctx.fillRect(M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth,M.JSC$18457_overlayMarginTop,M.JSC$18457_overlayMarginRight-M.horizontalMargin,M.JSC$18457_overlayHeight);M.ctx.fillRect(M.horizontalMargin,
M.canvasMargin,M.scaledImageWidth,M.JSC$18457_overlayMarginTop-M.canvasMargin);M.ctx.fillRect(M.horizontalMargin,M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight,M.scaledImageWidth,M.JSC$18457_overlayMarginBottom-M.canvasMargin);M.drawOverlay();M.component&&_.YP(M.component,"image-updated")};
Um.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18457_overlayMarginLeft,this.JSC$18457_overlayMarginTop,this.JSC$18457_overlayWidth,this.JSC$18457_overlayHeight);zFd(this)};
var zFd=function(M){var d=M.JSC$18457_overlayMarginLeft-5,N=M.JSC$18457_overlayMarginTop-5,R=M.JSC$18457_overlayMarginLeft+M.JSC$18457_overlayWidth-5,X=M.JSC$18457_overlayMarginTop+M.JSC$18457_overlayHeight-5;M.ctx.fillStyle="#FFF";M.ctx.fillRect(d,N,10,10);M.ctx.strokeRect(d,N,10,10);M.ctx.fillRect(R,N,10,10);M.ctx.strokeRect(R,N,10,10);M.ctx.fillRect(d,X,10,10);M.ctx.strokeRect(d,X,10,10);M.ctx.fillRect(R,X,10,10);M.ctx.strokeRect(R,X,10,10);if(M.focusedCorner!==0&&M.styleFocusedCorner){M.ctx.lineWidth=
4;M.ctx.strokeStyle="#3EA6FF";switch(M.focusedCorner){case 1:--d;--N;break;case 2:--d;N=X-1;break;case 3:d=R-1;--N;break;case 4:d=R-1;N=X-1;break;default:return}M.ctx.strokeRect(d,N,12,12)}};
Um.prototype.crop=function(M,d){d=d===void 0?!0:d;var N=this.image.width/this.scaledImageWidth,R=document.createElement("canvas"),X=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],A=this.JSC$18457_overlayWidth*N,l=this.JSC$18457_overlayHeight*N;R.width=Math.max(A,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);R.height=Math.max(l,X);M&&(R.width=Math.min(R.width,R.height),R.height=Math.min(R.width,R.height));
M=R.getContext("2d");if(!M)throw Error("il");X=(this.JSC$18457_overlayMarginLeft-this.horizontalMargin)*N;N*=this.JSC$18457_overlayMarginTop-this.canvasMargin;d||(M.fillStyle="white",M.fillRect(0,0,R.width,R.height));M.drawImage(this.image,X,N,A,l,0,0,R.width,R.height);return R};var b8b=function(M,d,N,R,X){Um.call(this,M,d,N,R,void 0,X,8,!1)};
_.v(b8b,Um);b8b.prototype.drawOverlay=function(){var M=this.getContext(),d=this.JSC$18457_overlayWidth,N=this.JSC$18457_overlayHeight,R=this.JSC$18457_overlayMarginTop,X=this.JSC$18457_overlayMarginLeft;M.lineWidth=2;M.strokeStyle="#3EA6FF";M.beginPath();M.arc(X+d/2,R+N/2,d/2,0,2*Math.PI);M.stroke();M.strokeRect(X,R,d,N);zFd(this)};
var eFi={maxFileSizeMB:15,minWidth:98,minHeight:98},H8q=["image/png","image/jpeg","image/gif"],uh=function(){var M=_.n.apply(this,arguments)||this;M.fileSelectorFocusListener=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!0;M.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return M};
_.v(uh,_.n);_.F=uh.prototype;_.F.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.F.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.F.computePlaylistThumbnail=function(M){return M==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.F.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ZI(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.F.setErrorState=function(M){this.resetErrorState();M&&(this.errorMessage=M)};
_.F.showPopup=function(){var M=this;this.hideContainer=!1;_.gL(_.IQ,function(){_.YP(M.hostElement,"yt-refit")});
this.isLoading=!1};
_.F.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.F.closePopup=function(){this.resetFileSelector();_.ZI(this.hostElement,"yt-close-popup-action",[this.is])};
_.F.onCancelTap=function(){this.isPlaylistThumbnail||_.ZI(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.F.openFileSelector=function(){var M=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.gL(_.IQ,function(){setTimeout(function(){if(!M.fileSelector.files||M.fileSelector.files.length===0)M.onCancelTap();M.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(d){d instanceof Error?_.qZ(d):_.IR(new _.WJ(JSON.stringify(d)))}};
_.F.handleFileSelection=function(){var M=this,d,N,R,X,A,l;return _.B(function(k){switch(k.nextAddress){case 1:_.Mv(k,2);if(!M.fileSelector.files||!M.imageEditorCanvas)return M.onCancelTap(),k.return();d=M.fileSelector.files[0];Bt$(M.imageChecker,d);_.Mv(k,4);return _.D(k,PYi(d),6);case 6:M.mimeType=k.yieldResult;_.cJ(k,5,2);break;case 4:_.Fg(k,2),_.ZI(M.hostElement,"yt-image-selection-error-action",[(N=M.data)==null?void 0:N.genericImageLoadErrorMessage]),M.onCancelTap();case 5:R=new FileReader;R.addEventListener("load",
function(){var T,W;return _.B(function(w){if(w.nextAddress==1){if(!R.result)return _.vh(Error("kl")),w.return();T=R.result;W=new Image;W.src=T;W.onload=function(){try{var p=M.imageChecker;if(W.width<p.requirements.minWidth||W.height<p.requirements.minHeight)throw new l29(p.requirements.minWidth,p.requirements.minHeight);}catch(I){if(I instanceof l29){var m;_.ZI(M.hostElement,"yt-image-selection-error-action",[(m=M.data)==null?void 0:m.imageDimensionErrorMessage]);M.logImageDimensionErrorVe()}else I instanceof
Error?_.qZ(I):(p=new _.WJ(JSON.stringify(I)),_.qZ(p));M.onCancelTap()}M.showPopup()};
W.onerror=function(){var p;_.ZI(M.hostElement,"yt-image-selection-error-action",[(p=M.data)==null?void 0:p.genericImageLoadErrorMessage]);M.onCancelTap()};
return _.D(w,W9P(M.imageEditorCanvas,T),2)}M.imageEditor=w.yieldResult;M.updatePositionOfAllCorners();M.addEventListeners(M.imageEditor);_.Vy(w)})},!1);
R.readAsDataURL(d);_.cJ(k,0);break;case 2:X=_.Fg(k),X instanceof aS?_.ZI(M.hostElement,"yt-image-selection-error-action",[(A=M.data)==null?void 0:A.imageSizeErrorMessage]):(X instanceof Error?_.qZ(X):_.IR(new _.WJ(JSON.stringify(X))),_.ZI(M.hostElement,"yt-image-selection-error-action",[(l=M.data)==null?void 0:l.genericImageLoadErrorMessage])),M.onCancelTap(),_.Vy(k)}})};
_.F.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var M=_.dk(_.Nx(),{veType:232707,visualElement:_.Tx(232707)});M&&(M={visualElement:M},_.Mx().reportShown(M))}};
_.F.handleImageSelectionErrorAction=function(M){this.isPlaylistThumbnail&&_.gES(this.hostElement,M)};
_.F.convertToImageFormatBundle=function(M){var d=this,N,R,X;return _.B(function(A){switch(A.nextAddress){case 1:return N=M.toDataURL(d.outputMimeType,1),_.D(A,o$i(N),2);case 2:R=A.yieldResult;_.Mv(A,3);Bt$(d.imageChecker,R);_.cJ(A,4);break;case 3:X=_.Fg(A);if(!(X instanceof aS))throw X;_.vh(new _.WJ("Output size is bigger than input size for image",d.mimeType,d.outputMimeType,R.size));N=M.toDataURL("image/jpeg",.95);return _.D(A,o$i(N),6);case 6:R=A.yieldResult;case 4:return A.return({dataUrl:N,imageFile:R})}})};
_.F.handleUploadImageToScottyCommand=function(M){var d=this,N,R,X,A,l,k,T,W,w,p;return _.B(function(m){switch(m.nextAddress){case 1:if(!d.imageEditor||!_.q(M,ZGP))return m.return();N=_.q(M,ZGP).scottyUploadUrl;if(!N){var I=new _.WJ("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.qZ(I);return m.return()}_.Mv(m,2);d.setLoadingState();R=d.imageEditor.crop(!1,!1);return _.D(m,d.convertToImageFormatBundle(R),4);case 4:return X=m.yieldResult,_.D(m,jzP(X.imageFile,N),5);case 5:A=
m.yieldResult;((l=d.data)==null?0:l.onUploadEndpoint)?(k=d.buildUploadServiceEndpoint(A),d.ytComponentBehavior.resolveCommand(k),T=_.q(k,_.Pq),((W=T)==null?0:W.params)?d.closePopup():d.resetFileSelector()):(_.ZI(d.hostElement,"yt-image-updated-action",[X.dataUrl,A]),d.closePopup());_.cJ(m,0);break;case 2:w=_.Fg(m),d.setErrorState((p=d.data)==null?void 0:p.uploadErrorMessage),w instanceof Error?_.qZ(w):(I=new _.WJ(JSON.stringify(w)),_.qZ(I)),_.Vy(m)}})};
_.F.buildUploadServiceEndpoint=function(M){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",M),this.data.onUploadEndpoint):null};
_.F.dataChanged=function(){var M=this,d;return _.B(function(N){if(N.nextAddress==1){if(!M.data||!M.canvasElement)return N.return();M.data.imageRatio&&M.data.minImageCropWidth||_.IR(new _.WJ("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));d=function(R,X){return M.data.imageType==="IMAGE_TYPE_AVATAR"?new b8b(R,X,M.data.imageRatio,[M.data.minImageCropWidth,M.data.minImageCropWidth/M.data.imageRatio],M.hostElement):new Um(R,X,M.data.imageRatio,[M.data.minImageCropWidth,
M.data.minImageCropWidth/M.data.imageRatio],void 0,M.hostElement,8,!1)};
M.imageEditorCanvas=new kAq(M.canvasElement,d);return M.data.url?_.D(N,W9P(M.imageEditorCanvas,M.data.url),3):(M.hideContainer=!0,M.openFileSelector(),N.jumpTo(0))}M.imageEditor=N.yieldResult;M.showPopup();M.addEventListeners(M.imageEditor);_.Vy(N)})};
_.F.addEventListeners=function(M){this.removeEventListeners();var d=function(X){Ttd(M,X)};
this.JSC$18465_mouseDownEvent=d;var N=function(X){DWb(M,X)};
this.JSC$18465_mouseMoveEvent=N;var R=function(){ggD(M)};
this.JSC$18465_mouseUpEvent=R;this.topLeftCorner.addEventListener("mousedown",d);this.topLeftCorner.addEventListener("mousemove",N);this.topLeftCorner.addEventListener("mouseup",R);this.topRightCorner.addEventListener("mousedown",d);this.topRightCorner.addEventListener("mousemove",N);this.topRightCorner.addEventListener("mouseup",R);this.bottomLeftCorner.addEventListener("mousedown",d);this.bottomLeftCorner.addEventListener("mousemove",N);this.bottomLeftCorner.addEventListener("mouseup",R);this.bottomRightCorner.addEventListener("mousedown",
d);this.bottomRightCorner.addEventListener("mousemove",N);this.bottomRightCorner.addEventListener("mouseup",R)};
_.F.removeEventListeners=function(){this.JSC$18465_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18465_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18465_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18465_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18465_mouseDownEvent));this.JSC$18465_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18465_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18465_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18465_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18465_mouseMoveEvent));this.JSC$18465_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18465_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18465_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18465_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18465_mouseUpEvent))};
_.F.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var M=document.activeElement;M&&M.shadowRoot&&M.shadowRoot.activeElement;)M=M.shadowRoot.activeElement;switch(M){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.F.updatePositionOfCorner=function(M,d){var N=M.y-d.offsetHeight/2+4;d.style.left=M.x-d.offsetWidth/2+16+"px";d.style.top=N+"px"};
_.F.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var M=_.V([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),d=M.next();!d.done;d=M.next()){d=d.value;var N=hF9(this.imageEditor,d.corner);this.updatePositionOfCorner(N,d.div)}};
_.F.onLeft=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(q3P(this.imageEditor,0),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.onRight=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(q3P(this.imageEditor,1),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.onUp=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(q3P(this.imageEditor,2),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.onDown=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(q3P(this.imageEditor,3),this.updatePositionOfAllCorners(),M.preventDefault())};
_.F.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Hm.Object.defineProperties(uh.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&H8q.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var M,d,N;((d=this.data)==null?0:d.imageRatio)&&((N=this.data)==null?0:N.minImageCropWidth)?M={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:M=eFi;return new $WD(M)}}});
uh.prototype.updatePositionOfAllCorners=uh.prototype.updatePositionOfAllCorners;uh.prototype.dataChanged=uh.prototype.dataChanged;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],uh.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],uh.prototype,"ytComponentBehavior",void 0);_.G([_.S(_.pG),_.a("design:type",Object)],uh.prototype,"ironA11yKeysBehavior",void 0);
_.G([_.Z3("#canvas"),_.a("design:type",HTMLCanvasElement)],uh.prototype,"canvasElement",void 0);_.G([_.Z3("#file-selector"),_.a("design:type",HTMLInputElement)],uh.prototype,"fileSelector",void 0);_.G([_.Z3("#top-left-corner"),_.a("design:type",HTMLDivElement)],uh.prototype,"topLeftCorner",void 0);_.G([_.Z3("#top-right-corner"),_.a("design:type",HTMLDivElement)],uh.prototype,"topRightCorner",void 0);
_.G([_.Z3("#bottom-left-corner"),_.a("design:type",HTMLDivElement)],uh.prototype,"bottomLeftCorner",void 0);_.G([_.Z3("#bottom-right-corner"),_.a("design:type",HTMLDivElement)],uh.prototype,"bottomRightCorner",void 0);_.G([_.H(),_.a("design:type",Object)],uh.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],uh.prototype,"errorMessage",void 0);_.G([_.H(),_.a("design:type",Object)],uh.prototype,"isLoading",void 0);_.G([_.H(),_.a("design:type",Object)],uh.prototype,"hideContainer",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.a("design:type",Boolean)],uh.prototype,"isPlaylistThumbnail",void 0);_.G([_.NS("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],uh.prototype,"dataChanged",null);_.G([_.C3("image-updated"),_.C3("yt-refit"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],uh.prototype,"updatePositionOfAllCorners",null);
uh=_.G([_.w4({is:"yt-image-editor-renderer",disableElementRegistration:!0})],uh);
_.L(uh,"yt-image-editor-renderer",function(){if(V39===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;AJd===void 0&&(AJd=document.createElement("template"));var R=AJd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);V39=M}M=V39;return M},{mode:2});var ngY;var i8i;var Cj=function(){return _.n.apply(this,arguments)||this};
_.v(Cj,_.n);Cj.prototype.updateMinutesFromBinding=function(M){this.handleMinutesChanged&&this.handleMinutesChanged(M)};
Cj.prototype.updateSecondsFromBinding=function(M){this.handleSecondsChanged&&this.handleSecondsChanged(M)};
Cj.prototype.updateDescriptionFromBinding=function(M){this.handleDescriptionChanged&&this.handleDescriptionChanged(M)};
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Cj.prototype,"data",void 0);_.G([_.H(),_.a("design:type",String)],Cj.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],Cj.prototype,"seconds",void 0);_.G([_.H(),_.a("design:type",String)],Cj.prototype,"description",void 0);_.G([_.H(),_.a("design:type",Function)],Cj.prototype,"handleMinutesChanged",void 0);
_.G([_.H(),_.a("design:type",Function)],Cj.prototype,"handleSecondsChanged",void 0);_.G([_.H(),_.a("design:type",Function)],Cj.prototype,"handleDescriptionChanged",void 0);_.G([_.H(),_.a("design:type",Number)],Cj.prototype,"characterLimit",void 0);_.G([_.H(),_.a("design:type",Number)],Cj.prototype,"textNumRows",void 0);Cj=_.G([_.w4({is:"yt-report-details-form-content",disableElementRegistration:!0})],Cj);
_.L(Cj,"yt-report-details-form-content",function(){if(i8i===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;ngY===void 0&&(ngY=document.createElement("template"));var R=ngY;N.call(d,R.content.cloneNode(!0),M.content.firstChild);i8i=M}M=i8i;return M},{mode:2});var f29;var L9r;var xx=function(){var M=_.n.apply(this,arguments)||this;M.updateMinutesFromBinding=function(d){M.minutes=d.detail.value};
M.updateSecondsFromBinding=function(d){M.seconds=d.detail.value};
M.updateDescriptionFromBinding=function(d){M.description=d.detail.value};
return M};
_.v(xx,_.n);_.F=xx.prototype;_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.F.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"}}}};
_.F.ready=function(){_.K(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.F.onSubmitYtAction=function(M){var d=M.detail;d.actionName==="yt-service-request"&&(d=d.args[1],d.flagEndpoint&&(M.stopPropagation(),this.refireAction(d)))};
_.F.refireAction=function(M){var d={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(d.vss_id=this.vssId);_.dU(this.hostElement,[M,d]);this.submitDisabled=!0};
_.F.dataChanged=function(){var M=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var d=_.nO();d&&d.getPlayerPromise().then(function(N){var R=N.getOption("cc","track")||N.getOption("captions","track");R&&(M.vssId=R.vss_id);N=N.getCurrentTime();M.minutes=Math.floor(N/60).toString();M.seconds=(Math.floor(N)%60).toString()})};
_.F.updateSubmitButtonState=function(){var M;((M=this.data)==null?0:M.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.F.onYtServiceRequestCompleted=function(){_.ZI(this.hostElement,"yt-close-popup-action")};
_.F.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Hm.Object.defineProperties(xx.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.textNumRows)||4}}});
xx.prototype.onYtServiceRequestError=xx.prototype.onYtServiceRequestError;xx.prototype.onYtServiceRequestCompleted=xx.prototype.onYtServiceRequestCompleted;xx.prototype.updateSubmitButtonState=xx.prototype.updateSubmitButtonState;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);
_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],xx.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Boolean)],xx.prototype,"submitDisabled",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"minutes",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"seconds",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"description",void 0);_.G([_.H(),_.a("design:type",String)],xx.prototype,"vssId",void 0);
_.G([_.H({value:_.rK("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.a("design:type",Boolean)],xx.prototype,"isMusic",void 0);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],xx.prototype,"characterLimit",null);_.G([_.z("data"),_.a("design:type",Number),_.a("design:paramtypes",[])],xx.prototype,"textNumRows",null);
_.G([_.NS("minutes","seconds","description","submitDisabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xx.prototype,"updateSubmitButtonState",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xx.prototype,"onYtServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],xx.prototype,"onYtServiceRequestError",null);xx=_.G([_.w4({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],xx);
_.L(xx,"yt-report-details-form-renderer",function(){if(L9r===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;f29===void 0&&(f29=document.createElement("template"));var R=f29;N.call(d,R.content.cloneNode(!0),M.content.firstChild);L9r=M}M=L9r;return M});var t3C;var GAG;var a2e;var UWY;var BM=function(){return _.n.apply(this,arguments)||this};
_.v(BM,_.n);
BM.prototype.onCheckedChanged_=function(){if(this.data){var M=_.K(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ZI(this.hostElement,"yt-additional-detail-checkbox-update",[M]):this.data.identifier==="yt-hide-user-checkbox"?_.ZI(this.hostElement,"yt-hide-user-checkbox-update",[M]):M&&this.data.enableCommand?_.ZI(this.hostElement,"yt-modify-report-form-command",[_.q(this.data.enableCommand,F6Y)]):!M&&this.data.disableCommand&&_.ZI(this.hostElement,
"yt-modify-report-form-command",[_.q(this.data.enableCommand,F6Y)])}};
BM.prototype.onLabelTap_=function(M){M.target.tagName!="A"&&(_.K(this.hostElement).querySelector("#checkbox").checked=!_.K(this.hostElement).querySelector("#checkbox").checked)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],BM.prototype,"data",void 0);BM=_.G([_.w4({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],BM);
_.L(BM,"yt-boolean-form-field-v2-renderer",function(){if(UWY===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;a2e===void 0&&(a2e=document.createElement("template"));var R=a2e;N.call(d,R.content.cloneNode(!0),M.content.firstChild);UWY=M}M=UWY;return M});var kb=function(){var M=_.n.apply(this,arguments)||this;M.canShowAdditionalDetailCheckbox=!1;M.canShowCheckbox=!1;M.keepDropdownFocusedAfterSelection=!0;return M};
_.v(kb,_.n);kb.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}}}}};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],kb.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],kb.prototype,"canShowAdditionalDetailCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],kb.prototype,"canShowCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],kb.prototype,"keepDropdownFocusedAfterSelection",void 0);
kb=_.G([_.w4({is:"yt-report-form-modal-content",disableElementRegistration:!0})],kb);
_.L(kb,"yt-report-form-modal-content",function(){if(GAG===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;t3C===void 0&&(t3C=document.createElement("template"));var R=t3C;N.call(d,R.content.cloneNode(!0),M.content.firstChild);GAG=M}M=GAG;return M},{mode:2});var uGb;var CQC;var Tz=function(){var M=_.n.apply(this,arguments)||this;M.submitting=!1;M.submitButtonDisabled=!0;M.command=null;M.canShowCheckbox=!1;M.canShowAdditionalDetailCheckbox=!1;M.canShowNextButton=!1;M.additionalDetailCheckboxChecked=!1;M.refitJob=0;M.keepDropdownFocusedAfterSelection=!0;M.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return M};
_.v(Tz,_.n);_.F=Tz.prototype;_.F.created=function(){this.refitJob=0};
_.F.attached=function(){this.JSC$18488_scroller&&(this.JSC$18488_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18488_scroller.attached&&typeof this.JSC$18488_scroller.attached==="function"&&this.JSC$18488_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.dataChanged=function(M){M&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,M.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),M.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.F.onYtPopupOpened=function(){var M=_.nO();M&&M.getPlayerPromise().then(function(d){d.pauseVideo()})};
_.F.onYtNavigate=function(M){_.q(M.detail.endpoint,_.mIo)&&(M.stopPropagation(),this.hideReportForm=!0)};
_.F.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.F.onYtServiceRequestCompleted=function(M,d){var N=d.actions;if(N){if(N.length===1&&_.q(N[0],_.XP)){var R;N=((R=_.q(N[0],_.XP))==null?void 0:R.commands)||[]}R=0;for(var X=N.length;R<X;R++)_.q(N[R],_.Iu)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(N[R]))}if(d.data&&(M=this.get("feedbackResponses",d.data)))for(d=0;d<M.length;d++)if(M[d].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.F.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.F._onDescendantIronResize=function(M){M.stopPropagation();return!1};
_.F.handleReportFormEndpointUpdateAction=function(M){if(M.submitEndpoint){var d=this.command=M.submitEndpoint;d=_.q(d,_.Xvd);if(d==null?0:d.additionalDetailCheckboxChecked)d.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else M.submitNavigationEndpoint?(this.command=M.submitNavigationEndpoint,this.toggleSubmitButton(!1)):M.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:M.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;M.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",M));this.refit()};
_.F.handleConfirmDialogCloseAction=function(M){M.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.F.submitButtonDisabledChanged=function(){var M=this.hostElement.parentElement;M&&M.invalidateTabbables&&M.invalidateTabbables()};
_.F.handleModifyReportFormCommand=function(M){M=this.get("action",M);M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:M==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:M==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.F.updateDialogStyling=function(){var M,d,N,R,X,A=((X=(M=this.data)==null?void 0:(d=M.optionsSupportedRenderers)==null?void 0:(N=d.optionsRenderer)==null?void 0:(R=N.items)==null?void 0:R.length)!=null?X:0)<=2?0:240;_.UO(this.hostElement,{"--yt-report-form-modal-renderer-min-width":A+"px"})};
_.F.toggleSubmitButton=function(M){this.submitButtonDisabled=!M;this.submitButtonDisabled=M};
_.F.computeSubmitButtonData=function(M,d){var N={};_.q(d,_.mIo)?N.navigationEndpoint=d:N.command=d||void 0;M&&M.buttonRenderer&&_.wF.extend(N,M.buttonRenderer);return N};
_.F.computeNextButtonData=function(M,d){var N={};if(!M||!M.buttonRenderer)return N;_.wF.extend(N,M.buttonRenderer);if(!d)return N;if(_.q(d,_.mIo))N.navigationEndpoint=huT(d);else if(N.command=huT(d),M=_.q(N.command,_.Xvd))M.legalCheckboxChecked=!0;return N};
_.F.computeShowNextButton=function(M,d,N){return!!M&&d&&N};
_.F.refit=function(){var M=this;this.refitJob||(this.refitJob=_.IQ.addLowPriorityJob(function(){_.YP(M.hostElement,"yt-refit");M.refitJob=0}))};
_.F.handleAdditionalDetailCheckboxUpdateAction=function(M){this.additionalDetailCheckboxChecked=M;_.q(this.command,_.Xvd).additionalDetailCheckboxChecked=M};
_.Hm.Object.defineProperties(Tz,{template:{configurable:!0,enumerable:!0,get:function(){if(CQC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;uGb===void 0&&(uGb=document.createElement("template"));var R=uGb;N.call(d,R.content.cloneNode(!0),M.content.firstChild);CQC=M}M=CQC;return M}}});
Tz.prototype.onYtServiceRequestError=Tz.prototype.onYtServiceRequestError;Tz.prototype.onYtServiceRequestCompleted=Tz.prototype.onYtServiceRequestCompleted;Tz.prototype.onYtServiceRequestSent=Tz.prototype.onYtServiceRequestSent;Tz.prototype.onYtNavigate=Tz.prototype.onYtNavigate;Tz.prototype.onYtPopupOpened=Tz.prototype.onYtPopupOpened;_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],Tz.prototype,"openPopupBehavior",void 0);
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Tz.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Tz.prototype,"eventForwardingBehavior",void 0);_.G([_.S(_.sj),_.a("design:type",Object)],Tz.prototype,"ironResizableBehavior",void 0);_.G([_.H({observer:"dataChanged"}),_.a("design:type",Object)],Tz.prototype,"data",void 0);
_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"submitting",void 0);_.G([_.H({observer:"submitButtonDisabledChanged"}),_.a("design:type",Object)],Tz.prototype,"submitButtonDisabled",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"command",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Tz.prototype,"hideReportForm",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"canShowCheckbox",void 0);
_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"canShowAdditionalDetailCheckbox",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"canShowNextButton",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"additionalDetailCheckboxChecked",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"refitJob",void 0);_.G([_.H(),_.a("design:type",Object)],Tz.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.G([_.Z3("#scroller"),_.a("design:type",Object)],Tz.prototype,"JSC$18488_scroller",void 0);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Tz.prototype,"onYtPopupOpened",null);_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Tz.prototype,"onYtNavigate",null);
_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],Tz.prototype,"onYtServiceRequestSent",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],Tz.prototype,"onYtServiceRequestCompleted",null);
_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Tz.prototype,"onYtServiceRequestError",null);Tz=_.G([_.w4({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Tz);var xW$;var Y3C;var Da=function(){return _.n.apply(this,arguments)||this};
_.v(Da,_.n);_.F=Da.prototype;_.F.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.F.onVisible=function(){if(_.Q("web_ephemeral_actions_focus")){var M,d;(d=_.h().resolve(_.CF(_.Ea)))==null||d.enqueue({label:_.HD((M=this.data)==null?void 0:M.messageTitle),elementToFocus:this.hostElement})}};
_.F.onThumbnailLoaded=function(){_.YP(this.hostElement,"yt-refit")};
_.F.onDismissTap=function(){_.ZI(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.F.computeAlternateIcon=function(M){return M?M==="BACKSTAGE_ARTWORK"?"backstage:artwork":M:null};
_.F.computeFontFamily=function(M){return M==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.F.computeBackgroundStyle=function(M,d){if(M=this.computeBackgroundImage(M,d))if(M=_.nq(M.thumbnails))return'background-image: url("'+M+'");'};
_.F.computeHasFullHeightImage=function(M){return!(!(M&&M.thumbnails&&M.thumbnails.length>0)||this.modern)};
_.F.isModernStyle=function(M){return M.style==="STYLE_MODERN"};
_.F.computeIcon=function(M,d){if(M&&M.icon)return d?M.iconDark:M.icon};
_.F.computeBackgroundImage=function(M,d){if(M&&M.backgroundImage)return d?M.backgroundImageDark:M.backgroundImage};
_.F.computeLogo=function(M,d){if(M&&M.logo)return d?M.logoDark:M.logo};
_.F.computeShouldShowModernIcon=function(M,d){return M&&!!d};
_.F.getLogoContainerClassName=function(M){return this.logoWithPadding(M)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.F.getLogoImageId=function(M){return this.logoWithPadding(M)?"mealbar-logo-with-padding":"mealbar-logo"};
_.F.logoWithPadding=function(M){var d,N,R;return(M=(d=this.computeLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?!0:!1};
Da.prototype.onThumbnailLoaded=Da.prototype.onThumbnailLoaded;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.G([_.H({}),_.a("design:type",Object)],Da.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.a("design:type",Boolean)],Da.prototype,"modern",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Da.prototype,"isDarkTheme",void 0);
_.G([_.H({computed:"computeIcon(data, isDarkTheme)"}),_.a("design:type",Object)],Da.prototype,"icon",void 0);_.G([_.H({computed:"computeLogo(data, isDarkTheme)"}),_.a("design:type",Object)],Da.prototype,"logo",void 0);_.G([_.H({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.a("design:type",Object)],Da.prototype,"backgroundStyle",void 0);_.G([_.H({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.a("design:type",Object)],Da.prototype,"alternateIcon",void 0);
_.G([_.H({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.a("design:type",Boolean)],Da.prototype,"hasFullHeightImage",void 0);_.G([_.H({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.a("design:type",Boolean)],Da.prototype,"useYoutubeSans",void 0);_.G([_.H({computed:"computeShouldShowModernIcon(modern, icon)"}),_.a("design:type",Boolean)],Da.prototype,"shouldShowModernIcon",void 0);
_.G([_.C3("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Da.prototype,"onThumbnailLoaded",null);Da=_.G([_.w4({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Da);
_.L(Da,"yt-mealbar-promo-renderer",function(){if(Y3C===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;xW$===void 0&&(xW$=document.createElement("template"));var R=xW$;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Y3C=M}M=Y3C;return M},{mode:2});var Z8D;var Egb;var gg=function(){return _.n.apply(this,arguments)||this};
_.v(gg,_.n);_.F=gg.prototype;_.F.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]]"}}}}}};
_.F.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.acceptButton)};
_.F.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.F.observeImpressionEndpoints_=function(){var M=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;_.dU(M.hostElement,[d])})};
_.F.onTap_=function(){_.ZI(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
gg.prototype.observeImpressionEndpoints_=gg.prototype.observeImpressionEndpoints_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],gg.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],gg.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],gg.prototype,"positionType",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.a("design:type",Boolean)],gg.prototype,"hasButtons_",void 0);_.G([_.H({value:function(){return this.onTap_.bind(this)}}),
_.a("design:type",Function)],gg.prototype,"boundOnTap_",void 0);_.G([_.H({value:{style:"mono-inverse"}}),_.a("design:type",Object)],gg.prototype,"buttonOverride",void 0);_.G([_.xB("data.promoConfig.impressionEndpoints"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],gg.prototype,"observeImpressionEndpoints_",null);gg=_.G([_.w4({is:"yt-tooltip-renderer",disableElementRegistration:!0})],gg);
_.L(gg,"yt-tooltip-renderer",function(){if(Egb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;Z8D===void 0&&(Z8D=document.createElement("template"));var R=Z8D;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Egb=M}M=Egb;return M},{mode:2});var MTr;var dqJ;var NAe={},Rji=(NAe.WEB_REMIX="music.youtube.com",NAe),WM=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return M};
_.v(WM,_.n);_.F=WM.prototype;_.F.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.created=function(){this.embedHost_=Rji[_.rK("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.F.ready=function(){_.K(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.F.computeEmbedCode_=function(M,d,N,R,X){if(!M)return"";var A=M.videoId,l=M.fullListId,k=[];M.attributionId&&k.push("si="+M.attributionId);R||k.push("controls=0");N&&Number(d)>0&&k.push("start="+d);l&&(A="videoseries",k.push("list="+l));N="https://"+(X?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+A;M.clipId&&(k.push("clip="+M.clipId),k.push("clipt="+M.clipTiming));d=k.length>0?N+"?"+k.join("&amp;"):N;M.encryptedEmbedConfig&&k.push("embed_config="+JSON.stringify({enc:M.encryptedEmbedConfig}));
k=k.length>0?N+"?"+k.join("&amp;"):N;_.Q("web_sharing_embed_preview_killswitch")?_.K(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(k,M.previewWidth||854,M.previewHeight||480):(_.P6(this.videoPreviewContainer),_.K(this.videoPreviewContainer).appendChild(this.buildIframeElement(k)));return this.getEmbedCode_(d,M.width||560,M.height||315)};
_.F.buildIframeElement=function(M){var d=document.createElement("iframe"),N,R;d.width=""+((R=(N=this.data)==null?void 0:N.previewWidth)!=null?R:854);var X,A;d.height=""+((A=(X=this.data)==null?void 0:X.previewHeight)!=null?A:480);_.h62(d,2,M);d.title="YouTube video player";d.frameBorder="0";d.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";d.referrerPolicy="strict-origin-when-cross-origin";d.allowFullscreen=!0;return d};
_.F.computeIsSquareAspectRatio_=function(M){return M.previewHeight&&M.previewWidth?M.previewHeight==M.previewWidth:!1};
_.F.computeShowEmbedOptions_=function(M){return!!M.enablePrivacyModeOptionLabel||!!M.showPlayerControlsOptionLabel};
_.F.getEmbedCode_=function(M,d,N){return'<iframe width="'+d+'" height="'+N+'" src="'+M+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.F.handleSignalActionCopyShareEmbedUrl_=function(){_.K(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.F.handleSetTimestamp_=function(M){this.startAtTimeStamp_=(this.startAtChecked_=M.isSet)?M.timestamp:0};
_.F.closePanel_=function(){_.ZI(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.F.onEmbedCode_=function(){_.K(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.F.onYtPopupClosed_=function(){_.P6(_.K(this.hostElement).querySelector("#video-preview"))};
_.F.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.q(this.data.actionButtons[0],_.K9)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.actionButtons[0],_.K9))};
WM.prototype.onYtPopupClosed_=WM.prototype.onYtPopupClosed_;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],WM.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],WM.prototype,"data",void 0);
_.G([_.H({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.a("design:type",String)],WM.prototype,"embedCode_",void 0);_.G([_.H({value:!0}),_.a("design:type",Boolean)],WM.prototype,"isPlayerControlsOptionChecked_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],WM.prototype,"isPrivacyModeOptionChecked_",void 0);_.G([_.H({value:!1,notify:!0}),_.a("design:type",Boolean)],WM.prototype,"startAtChecked_",void 0);
_.G([_.H({value:0}),_.a("design:type",Number)],WM.prototype,"startAtTimeStamp_",void 0);_.G([_.H({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],WM.prototype,"isSquareAspectRatio_",void 0);_.G([_.Z3("#video-preview"),_.a("design:type",HTMLElement)],WM.prototype,"videoPreviewContainer",void 0);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],WM.prototype,"onYtPopupClosed_",null);
WM=_.G([_.w4({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],WM);
_.L(WM,"yt-sharing-embed-renderer",function(){if(dqJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;MTr===void 0&&(MTr=document.createElement("template"));var R=MTr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);dqJ=M}M=dqJ;return M},{mode:2});var XW9={};
XW9.YtUnlimitedFamilyInterstitialBehavior=[_.Zp.YtOpenPopupBehavior,_.tK.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(M){M=_.net(_.cN(M),"yt-button-renderer");return M?M.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(M){this.dialogHistory_.push(M)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var M=this.popFromHistory();if(M){var d={openPopupAction:{popupType:"DIALOG",popup:{}}};d.openPopupAction.popup[M.renderer]=M.data;this.showingPreviousDialog_=!0;this.openPopup(d)}},
handleOpenPopupAction_:function(M){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var d=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(R){return!!M.openPopupAction.popup[R]}),N=this.getElementName_();
d&&this.data&&(this.pushToHistory({renderer:N,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(M){if(M=_.q(M,J6q))this.loading=!0,_.ZI(this.hostElement,"yt-open-create-family-dialog",[M,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var M=this.hostElement.nodeName.split("-").slice(1).map(function(d){return""+d[0].toUpperCase()+d.slice(1).toLowerCase()}).join("");
return M[0].toLowerCase()+M.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Fj9;var AE$;var wg=function(){return _.n.apply(this,arguments)||this};
_.v(wg,_.n);_.F=wg.prototype;_.F.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}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZI(this.hostElement,"yt-register-create-family-dialog");_.K(this.hostElement).querySelector("#thumbnail").onShow()};
_.F.fireOnCloseCommand_=function(){var M;((M=this.data)==null?0:M.onCloseCommand)&&_.Ni(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.F.onYtServiceRequestSent_=function(M,d){d&&d.endpoint&&_.q(d.endpoint,_.A$)||(this.loading=!0)};
_.F.onYtServiceRequestCompleted_=function(){var M=this.hostElement.parentElement;M.close&&M.close();this.loading=!1};
_.F.openPopupHandler_=function(M){if(M.detail==this){var d;((d=this.data)==null?0:d.onOpenCommands)&&_.Ni(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.F.closePopupHandler_=function(M,d){this.fireOnCloseCommand_();if(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1){var N;((N=this.data)==null?0:N.onDismissCommands)&&_.Ni(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.F.dataChanged_=function(){this.loading=!1};
wg.prototype.dataChanged_=wg.prototype.dataChanged_;wg.prototype.closePopupHandler_=wg.prototype.closePopupHandler_;wg.prototype.openPopupHandler_=wg.prototype.openPopupHandler_;wg.prototype.onYtServiceRequestCompleted_=wg.prototype.onYtServiceRequestCompleted_;wg.prototype.onYtServiceRequestSent_=wg.prototype.onYtServiceRequestSent_;_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],wg.prototype,"ytEventForwardingBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(XW9.YtUnlimitedFamilyInterstitialBehavior),_.a("design:type",Object)],wg.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],wg.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],wg.prototype,"loading",void 0);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],wg.prototype,"onYtServiceRequestSent_",null);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],wg.prototype,"onYtServiceRequestCompleted_",null);
_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],wg.prototype,"openPopupHandler_",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],wg.prototype,"closePopupHandler_",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],wg.prototype,"dataChanged_",null);
wg=_.G([_.w4({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],wg);
_.L(wg,"yt-unlimited-family-message-interstitial-renderer",function(){if(AE$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;Fj9===void 0&&(Fj9=document.createElement("template"));var R=Fj9;N.call(d,R.content.cloneNode(!0),M.content.firstChild);AE$=M}M=AE$;return M},{mode:2});var VTC;var lnJ;var pc=function(){return _.n.apply(this,arguments)||this};
_.v(pc,_.n);pc.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"}}}};
pc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(M){M.onShow()});
_.K(this.hostElement).querySelector("#main-thumbnail").onShow()};
pc.prototype.onButtonTap_=function(M){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(M)};
pc.prototype.computeMainThumbnailWidth_=function(M){return M&&M.length!==0?72:96};
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.G([_.S(XW9.YtUnlimitedFamilyInterstitialBehavior),_.a("design:type",Object)],pc.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],pc.prototype,"data",void 0);
_.G([_.H({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.a("design:type",Number)],pc.prototype,"mainThumbnailWidth_",void 0);_.G([_.H({value:function(){return this.onButtonTap_.bind(this)}}),
_.a("design:type",Function)],pc.prototype,"boundButtonTap_",void 0);pc=_.G([_.w4({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],pc);
_.L(pc,"yt-unlimited-family-profile-interstitial-renderer",function(){if(lnJ===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;VTC===void 0&&(VTC=document.createElement("template"));var R=VTC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);lnJ=M}M=lnJ;return M},{mode:2});var $qi;var BAi;var mC=function(){var M=_.n.apply(this,arguments)||this;M.sliderAriaValueText_=null;M.selectedIndex_=0;M.messages={PAUSE_SLIDER:_.le("PAUSE_SLIDER",void 0,"Pause Duration")};return M};
_.v(mC,_.n);_.F=mC.prototype;_.F.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_]]"}}}}}};
_.F.onPopupOpened_=function(M){M.detail==this&&_.Q("enable_premium_voluntary_pause")&&(_.ZI(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.F.setDialogData=function(M){this.data=M;this.resetSlider_()};
_.F.dataChanged_=function(){this.data&&this.resetSlider_()};
_.F.onSubmitTap_=function(){if(this.data.confirmCommand){var M=this.data.confirmCommand;_.q(M,_.lpd)&&_.dU(this.hostElement,[M,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.F.onExitButtonTap_=function(){_.ZI(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.F.closePopupHandler_=function(M,d){(d&&d.canceled===!0||d.canceled===!1&&d.confirmed===!1)&&this.handleOnDismissCommands_()};
_.F.onSliderChange_=function(){this.selectedIndex_=_.K(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.F.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.F.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.F.resetSlider_=function(){if(this.data){var M=this.data.defaultEndOptionIndex||0,d=_.K(this.hostElement).querySelector("#id-pause-slider");if(d.immediateValue<M)for(;d.immediateValue!=M;)d.increment();else if(M<d.immediateValue)for(;d.immediateValue!=M;)d.decrement();this.selectedIndex_=M;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.F.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Ni(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.F.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Ni(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestSent=function(){this.loading=!0};
_.F.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
mC.prototype.onYtServiceRequestCompleted=mC.prototype.onYtServiceRequestCompleted;mC.prototype.onYtServiceRequestSent=mC.prototype.onYtServiceRequestSent;mC.prototype.closePopupHandler_=mC.prototype.closePopupHandler_;mC.prototype.dataChanged_=mC.prototype.dataChanged_;mC.prototype.onPopupOpened_=mC.prototype.onPopupOpened_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],mC.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],mC.prototype,"loading",void 0);_.G([_.H(),_.a("design:type",Number)],mC.prototype,"selectIndexMax_",void 0);_.G([_.H(),_.a("design:type",Object)],mC.prototype,"selectedData_",void 0);
_.G([_.H(),_.a("design:type",Object)],mC.prototype,"sliderAriaValueText_",void 0);_.G([_.H({value:function(){return this.onSubmitTap_.bind(this)}}),
_.a("design:type",Function)],mC.prototype,"onButtonTap_",void 0);_.G([_.H({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.a("design:type",Function)],mC.prototype,"onSecondaryTap_",void 0);_.G([_.H(),_.a("design:type",Object)],mC.prototype,"messages",void 0);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],mC.prototype,"onPopupOpened_",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],mC.prototype,"dataChanged_",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],mC.prototype,"closePopupHandler_",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],mC.prototype,"onYtServiceRequestSent",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],mC.prototype,"onYtServiceRequestCompleted",null);mC=_.G([_.w4({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],mC);
_.L(mC,"yt-unplugged-pause-membership-dialog-renderer",function(){if(BAi===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;$qi===void 0&&($qi=document.createElement("template"));var R=$qi;N.call(d,R.content.cloneNode(!0),M.content.firstChild);BAi=M}M=BAi;return M},{mode:2});var kKr;var TAD;var hg=function(){return _.n.apply(this,arguments)||this};
_.v(hg,_.n);hg.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.md("vcBalanceRenderer")}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],hg.prototype,"data",void 0);hg=_.G([_.w4({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],hg);
_.L(hg,"yt-vc-offer-layout-header-renderer",function(){if(TAD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;kKr===void 0&&(kKr=document.createElement("template"));var R=kKr;N.call(d,R.content.cloneNode(!0),M.content.firstChild);TAD=M}M=TAD;return M},{mode:2});var DqC;var gJD;var WjP;var wW9;var Qe=function(){return _.n.apply(this,arguments)||this};
_.v(Qe,_.n);Qe.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Hm.Object.defineProperties(Qe.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)}}});
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.T6m.YtTappableItemBehavior),_.a("design:type",Object)],Qe.prototype,"ytTappableItemBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],Qe.prototype,"data",void 0);
_.G([_.H({reflectToAttribute:!0}),_.z("data.accessibilityText"),_.a("design:type",String),_.a("design:paramtypes",[])],Qe.prototype,"ariaLabel",null);_.G([_.H({reflectToAttribute:!0}),_.z("data.style"),_.a("design:type",String),_.a("design:paramtypes",[])],Qe.prototype,"vcOfferStyle",null);_.G([_.z("data.style","data.titleText"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Qe.prototype,"showTitleText",null);Qe=_.G([_.w4({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Qe);
_.L(Qe,"yt-vc-offer-renderer",function(){if(wW9===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;WjP===void 0&&(WjP=document.createElement("template"));var R=WjP;N.call(d,R.content.cloneNode(!0),M.content.firstChild);wW9=M}M=wW9;return M},{mode:2});var q7=function(){return _.n.apply(this,arguments)||this};
_.v(q7,_.n);q7.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],q7.prototype,"data",void 0);q7=_.G([_.w4({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],q7);
_.L(q7,"yt-vc-offer-layout-renderer",function(){if(gJD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;DqC===void 0&&(DqC=document.createElement("template"));var R=DqC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);gJD=M}M=gJD;return M},{mode:2});var pW4;var mqe;var hjJ;var Q6G;var I$=function(){return _.n.apply(this,arguments)||this};
_.v(I$,_.n);I$.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}}}}}};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],I$.prototype,"data",void 0);I$=_.G([_.w4({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],I$);
_.L(I$,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Q6G===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;hjJ===void 0&&(hjJ=document.createElement("template"));var R=hjJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Q6G=M}M=Q6G;return M},{mode:2});var vM=function(){return _.n.apply(this,arguments)||this};
_.v(vM,_.n);vM.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"}}}}};
vM.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
vM.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var M=this.scrollable;M.attached&&typeof M.attached==="function"&&M.attached()};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.G([_.Z3("#scrollable"),_.a("design:type",Object)],vM.prototype,"scrollable",void 0);_.G([_.H(),_.a("design:type",Object)],vM.prototype,"data",void 0);vM=_.G([_.w4({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],vM);
_.L(vM,"yt-ypc-offers-modal-renderer",function(){if(mqe===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;pW4===void 0&&(pW4=document.createElement("template"));var R=pW4;N.call(d,R.content.cloneNode(!0),M.content.firstChild);mqe=M}M=mqe;return M},{mode:2});var q6r;var InC;var Oh=function(){return _.n.apply(this,arguments)||this};
_.v(Oh,_.n);_.F=Oh.prototype;_.F.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}}}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.F.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ZI(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.F.onYtPopupOpened_=function(M,d){(d==null?void 0:d.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Ni(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.F.onYtPopupClosed_=function(M,d){this.continueButtonTapped||d&&(d.canceled===!0||d.canceled===!1&&d.confirmed===!1)&&this.data.onDismissCommands&&_.Ni(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.F.onYtServiceRequestError_=function(M){this.set("showSpinner",!1);_.Q8(this.hostElement,M.detail.error.message)};
_.F.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.Q("enable_ypc_spinners")?_.ZI(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Oh.prototype.onYtServiceRequestError_=Oh.prototype.onYtServiceRequestError_;Oh.prototype.onYtPopupClosed_=Oh.prototype.onYtPopupClosed_;Oh.prototype.onYtPopupOpened_=Oh.prototype.onYtPopupOpened_;Oh.prototype.onYtServiceRequestCompleted_=Oh.prototype.onYtServiceRequestCompleted_;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);
_.G([_.H(),_.a("design:type",Object)],Oh.prototype,"data",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Oh.prototype,"showSpinner",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],Oh.prototype,"continueButtonTapped",void 0);_.G([_.H({value:function(){return this.onContinueTapped_.bind(this)}}),
_.a("design:type",Function)],Oh.prototype,"bindOnContinueTapped_",void 0);_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Oh.prototype,"onYtServiceRequestCompleted_",null);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Oh.prototype,"onYtPopupOpened_",null);
_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Oh.prototype,"onYtPopupClosed_",null);_.G([_.C3("yt-service-request-error"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Oh.prototype,"onYtServiceRequestError_",null);Oh=_.G([_.w4({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Oh);
_.L(Oh,"yt-ypc-upgrade-dialog-renderer",function(){if(InC===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;q6r===void 0&&(q6r=document.createElement("template"));var R=q6r;N.call(d,R.content.cloneNode(!0),M.content.firstChild);InC=M}M=InC;return M},{mode:2});var vJC;var O0d;var jn=function(){return _.n.apply(this,arguments)||this};
_.v(jn,_.n);jn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jn.prototype.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.confirmButton)};
jn.prototype.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],jn.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],jn.prototype,"data",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],jn.prototype,"positionType",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.a("design:type",Boolean)],jn.prototype,"hasButtons_",void 0);_.G([_.H({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.a("design:type",Boolean)],jn.prototype,"style_",void 0);jn=_.G([_.w4({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],jn);
_.L(jn,"yt-bubble-hint-renderer",function(){if(O0d===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vJC===void 0&&(vJC=document.createElement("template"));var R=vJC;N.call(d,R.content.cloneNode(!0),M.content.firstChild);O0d=M}M=O0d;return M},{mode:2});var j6r;var s6e;var sh=function(){var M=_.nH.apply(this,arguments)||this;M.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return M};
_.v(sh,_.nH);_.F=sh.prototype;_.F.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.F.attached=function(){var M=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){M.$.thumbnail.onShow();M.$["header-image"].onShow()})};
_.F.handleCheckBoxUpdateAction_=function(M){this.canShowCheckboxEnabledConfirmButton=M};
_.F.computeUseOverlayForSpinner_=function(M,d){return!!M&&d};
_.F.computeShowSpinner_=function(M,d){return M||!!d};
_.F.fireOnCloseActions_=function(){var M,d=_.V(((M=this.data)==null?void 0:M.onClosedActions)||[]);for(M=d.next();!M.done;M=d.next())this.ytRendererBehavior.resolveCommand(M.value)};
_.F.fireOnOpenCommands_=function(M){var d,N=(d=this.data)==null?void 0:d.onOpenCommands;if(N)for(M.stopImmediatePropagation(),M=_.V(N),d=M.next();!d.done;d=M.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.F.fireOnDismissCommands_=function(M){var d,N=(d=this.data)==null?void 0:d.onDismissCommands;if(N)for(M.stopImmediatePropagation(),M=_.V(N),d=M.next();!d.done;d=M.next())this.ytRendererBehavior.resolveCommand(d.value)};
_.F.openPopupHandler_=function(M){M.detail==this&&this.fireOnOpenCommands_(M)};
_.F.closePopupHandler_=function(M,d){_.Eu(this,"yt-confirm-dialog-close-action",[d]);this.fireOnCloseActions_();(d&&d.canceled===!0||d&&d.canceled===!1&&d.confirmed===!1)&&this.fireOnDismissCommands_(M)};
_.F.onHeaderImageChanged_=function(){var M;((M=this.data)==null?0:M.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.F.computeHasHeaderImageWidth_=function(M){return M!=void 0};
_.F.computeHasLoadingMessage=function(M){return!!M};
_.F.onHeaderImageWidthChanged_=function(){var M,d=(M=this.data)==null?void 0:M.headerImageWidth;if(d){if(M=1.25*d*2+d,this.$.main.style.width=M+"px",d=this.$.scroller.firstElementChild)d.style.minWidth=M+"px"}else this.$.main.style.width="100%"};
_.F.onThumbnailChanged_=function(){var M;((M=this.data)==null?0:M.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.F.onYtNavigate_=function(M){M=_.cN(M);M instanceof Node&&_.L3(this.$["confirm-button"]).contains(M)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.F.computePrimaryIsCancel_=function(M){return M};
_.F.computeIsCancelButtonHidden_=function(M){return M.skipCancelButton||!M.cancelButton};
_.F.computeIsCheckboxHidden_=function(M){return!M.checkbox};
_.F.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.F.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.F.onYtServiceRequestCompleted_=function(){var M;((M=this.data)==null?0:M.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Hm.Object.defineProperties(sh,{template:{configurable:!0,enumerable:!0,get:function(){if(s6e===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;j6r===void 0&&(j6r=document.createElement("template"));var R=j6r;N.call(d,R.content.cloneNode(!0),M.content.firstChild);s6e=M}M=s6e;return M}}});
sh.prototype.onYtServiceRequestCompleted_=sh.prototype.onYtServiceRequestCompleted_;sh.prototype.onYtServiceRequestSent_=sh.prototype.onYtServiceRequestSent_;sh.prototype.onThumbnailLoaded_=sh.prototype.onThumbnailLoaded_;sh.prototype.onYtNavigate_=sh.prototype.onYtNavigate_;sh.prototype.onThumbnailChanged_=sh.prototype.onThumbnailChanged_;sh.prototype.onHeaderImageWidthChanged_=sh.prototype.onHeaderImageWidthChanged_;sh.prototype.onHeaderImageChanged_=sh.prototype.onHeaderImageChanged_;
sh.prototype.closePopupHandler_=sh.prototype.closePopupHandler_;sh.prototype.openPopupHandler_=sh.prototype.openPopupHandler_;_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],sh.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);
_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],sh.prototype,"ytEventForwardingBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],sh.prototype,"data",void 0);_.G([_.H({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.a("design:type",Boolean)],sh.prototype,"primaryIsCancel",void 0);_.G([_.H({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.a("design:type",Boolean)],sh.prototype,"isCancelButtonHidden",void 0);
_.G([_.H({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.a("design:type",Boolean)],sh.prototype,"isCheckboxHidden",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],sh.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.G([_.H({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.a("design:type",Boolean)],sh.prototype,"useOverlayForSpinner_",void 0);
_.G([_.H({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.a("design:type",Boolean)],sh.prototype,"showSpinner_",void 0);_.G([_.H({value:!1}),_.a("design:type",Boolean)],sh.prototype,"isActionInProgress_",void 0);_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.a("design:type",Boolean)],sh.prototype,"hasHeaderImageWidth_",void 0);
_.G([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.a("design:type",Boolean)],sh.prototype,"hasLoadingMessage",void 0);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sh.prototype,"openPopupHandler_",null);_.G([_.C3("yt-popup-closed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],sh.prototype,"closePopupHandler_",null);
_.G([_.xB("data.headerImage"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sh.prototype,"onHeaderImageChanged_",null);_.G([_.xB("data.headerImageWidth"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sh.prototype,"onHeaderImageWidthChanged_",null);_.G([_.xB("data.thumbnail"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sh.prototype,"onThumbnailChanged_",null);
_.G([_.C3("yt-navigate"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],sh.prototype,"onYtNavigate_",null);_.G([_.C3("yt-img-shadow-loaded"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],sh.prototype,"onThumbnailLoaded_",null);_.G([_.C3("yt-service-request-sent"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.jm]),_.a("design:returntype")],sh.prototype,"onYtServiceRequestSent_",null);
_.G([_.C3("yt-service-request-completed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,_.ci]),_.a("design:returntype")],sh.prototype,"onYtServiceRequestCompleted_",null);sh=_.G([_.w4({is:"yt-confirm-dialog-renderer",noInjection:!0})],sh);var PEJ;var oJi;var PM=function(){return _.n.apply(this,arguments)||this};
_.v(PM,_.n);PM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.K(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
PM.prototype.computeConfirmButton_=function(M){var d={text:M.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};M.confirmNavigationEndpoint?d.navigationEndpoint=M.confirmNavigationEndpoint:M.confirmServiceEndpoint&&(d.serviceEndpoint=M.confirmServiceEndpoint);return d};
PM.prototype.computeShowTitle_=function(M){return!(M==null||!M.title)};
_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],PM.prototype,"data",void 0);_.G([_.H({computed:"computeShowTitle_(data)"}),_.a("design:type",Boolean)],PM.prototype,"showTitle",void 0);PM=_.G([_.w4({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],PM);
_.L(PM,"yt-fancy-dismissible-dialog-renderer",function(){if(oJi===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;PEJ===void 0&&(PEJ=document.createElement("template"));var R=PEJ;N.call(d,R.content.cloneNode(!0),M.content.firstChild);oJi=M}M=oJi;return M});var rEG;var Kj$;var o$=function(){var M=_.n.apply(this,arguments)||this;M.spinnerActive=!1;return M};
_.v(o$,_.n);o$.prototype.created=function(){Z69(2201)};
o$.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
o$.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
o$.prototype.onIronOverlayClosed=o$.prototype.onIronOverlayClosed;o$.prototype.onIronOverlayOpened=o$.prototype.onIronOverlayOpened;_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.fG),_.a("design:type",Object)],o$.prototype,"tpYtIronOverlayBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],o$.prototype,"data",void 0);_.G([_.H(),_.a("design:type",Object)],o$.prototype,"spinnerActive",void 0);
_.G([_.C3("iron-overlay-opened"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o$.prototype,"onIronOverlayOpened",null);_.G([_.C3("iron-overlay-closed"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],o$.prototype,"onIronOverlayClosed",null);o$=_.G([_.w4({is:"yt-loading-renderer",disableElementRegistration:!0})],o$);
_.L(o$,"yt-loading-renderer",function(){if(Kj$===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;rEG===void 0&&(rEG=document.createElement("template"));var R=rEG;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Kj$=M}M=Kj$;return M},{mode:2});var yEe;var JEb;var rg=function(){var M=_.n.apply(this,arguments)||this;M.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);M.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);M.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.v(rg,_.n);_.F=rg.prototype;_.F.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.F.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.F.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.F.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.F.openPopupHandler_=function(M){M.detail===this.hostElement&&this.hostElement.hidden&&_.ZI(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.F.onDismissButtonTap_=function(){var M;this.closeOnDismissButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ZI(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.F.onAcceptButtonTap_=function(){var M;this.closeOnAcceptButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ZI(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.F.computeHasHeader_=function(M){return!!M.headerBackgroundImage};
_.F.computeLayoutStyle_=function(M){return M};
_.F.computePopupSize_=function(M){return M};
_.F.computeIconType_=function(M){return M.dialogIcon&&M.dialogIcon.iconType?M.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":M.dialogIcon.iconType:""};
_.F.computeIsLogo_=function(M){return!!M.dialogIcon&&!!M.dialogIcon.iconType&&(M.dialogIcon.iconType==="YOUTUBE_LOGO"||M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||M.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.F.computeHasCustomLogo=function(M){return!(M==null||!M.headerForegroundImage)};
_.F.computeCustomLogo=function(M,d){if(M!=null&&M.headerForegroundImage)return M.headerForegroundImageDark?d?M.headerForegroundImageDark:M.headerForegroundImage:M.headerForegroundImage};
_.F.computeHeaderBackgroundImage=function(M,d){if(M!=null&&M.headerBackgroundImage)return d&&(M==null?0:M.headerBackgroundImageDark)?M.headerBackgroundImageDark:M.headerBackgroundImage};
_.F.shouldShowIconContainer=function(M,d){return M&&!d};
_.F.shouldShowNonYouTubeIcon=function(M,d){return!M&&!d};
_.F.getLogoImageId=function(M){var d,N,R;return(M=(d=this.computeCustomLogo(M,this.isDarkTheme))==null?void 0:(N=d.thumbnails)==null?void 0:(R=N[0])==null?void 0:R.height)&&M%31===0?"custom-logo-with-padding":"custom-logo"};
rg.prototype.openPopupHandler_=rg.prototype.openPopupHandler_;rg.prototype.dataChanged_=rg.prototype.dataChanged_;_.G([_.S(_.L$.YtRendererstamperBehavior),_.a("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.G([_.H(),_.a("design:type",Boolean)],rg.prototype,"isDarkTheme",void 0);
_.G([_.H({computed:"computeCustomLogo(data, isDarkTheme)"}),_.a("design:type",Object)],rg.prototype,"customLogo",void 0);_.G([_.H({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.a("design:type",Object)],rg.prototype,"headerBackgroundImage",void 0);_.G([_.H(),_.a("design:type",Object)],rg.prototype,"data",void 0);_.G([_.H({computed:"computeHasHeader_(data)"}),_.a("design:type",Boolean)],rg.prototype,"hasHeader",void 0);
_.G([_.H({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.a("design:type",Object)],rg.prototype,"layoutStyle",void 0);_.G([_.H({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.a("design:type",Object)],rg.prototype,"popupSize",void 0);_.G([_.H({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],rg.prototype,"hasLogo",void 0);
_.G([_.H({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.a("design:type",Boolean)],rg.prototype,"hasCustomLogo",void 0);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],rg.prototype,"dataChanged_",null);_.G([_.C3("yt-popup-opened"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],rg.prototype,"openPopupHandler_",null);
rg=_.G([_.w4({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],rg);
_.L(rg,"yt-upsell-dialog-renderer",function(){if(JEb===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;yEe===void 0&&(yEe=document.createElement("template"));var R=yEe;N.call(d,R.content.cloneNode(!0),M.content.firstChild);JEb=M}M=JEb;return M},{mode:2});var cEq=_.SG(function(M){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.g(_.kV,{cond:M.title,then:function(d){return _.g("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},d)}}))},"eg"),S6i=_.SG(function(M){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.g(_.ho,{data:M.closeButton},{buttonViewModel:function(d){return _.g("div",null,_.g(_.o0,{data:d.data}))}}))},"fg"),zjD=_.SG(function(M){var d=
M.data;
return _.g(_.GT,null,_.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.g(_.kV,{cond:function(){return!!d().image&&!!d().title},
then:function(){return _.g(_.Jt,{data:function(){return d().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.g(_.kV,{cond:function(){return d().title},
then:function(N){return _.g("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},N)}}),_.g(_.kV,{cond:function(){return d().primaryGenre},
then:function(N){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},N)}}))),_.g(_.kV,{cond:function(){var N=d().description;
return N&&N.length<=150},
then:function(){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return d().description}))}}))},"gg"),b0r=_.SG(function(M){M=M.infoRows;
var d=_.h().resolve(_.I5),N=_.Q("enable_displaying_ppn");return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.g(_.TN,{each:M},function(R){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.g(_.kV,{cond:function(){return R.label},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},X)}}),_.g(_.kV,{cond:function(){return R.attributedLabel},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.g(_.lG,{text:X,noPreWrap:!0}))}}),_.g(_.kV,{cond:function(){return R.value},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},X)}}),_.g(_.kV,{cond:function(){return R.attributedValue},
then:function(X){return _.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.g(_.lG,{text:X,noPreWrap:!0}))}}))}),_.g(_.kV,{cond:function(){return N&&d.clientData.has("post_play_nonce")},
then:function(){return _.g("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.g("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},d.getData("post_play_nonce")))}}))},"hg"),ejT=_.SG(function(M){var d=M.data;
return _.g("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.g(cEq,{title:function(){return d().dialogTitle}}),_.g(zjD,{data:d}),_.g(_.kV,{cond:function(){return d().infoRow},
then:function(N){return _.g(b0r,{infoRows:N})}}),_.g(S6i,{closeButton:function(){return d().closeButton}}))},"ig");
ejT.idomCompat=!0;_.eC(ejT,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;return _.g("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.g(_.Jt,{data:function(){return d().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.g("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.g(_.kV,{cond:function(){var N=d().ytLogo;return N?N.iconType:null},
then:function(N){return _.g(_.Fc,{icon:N,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.g("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.g("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.g(_.lG,{text:function(){return d().body}})),_.g("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.g(_.lG,{text:function(){return d().verifyStateText}}))),
_.g("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.g("div",null,_.g(_.ho,{data:function(){return d().dismissButton}},{buttonViewModel:_.o0})),_.g("div",null,_.g(_.ho,{data:function(){return d().linkParentButton}},{buttonViewModel:_.o0})))))},"jg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.cA}});var H0d=_.SG(function(M){var d=M.data;return _.g("installment-agreements-view-model",{class:_.xj("ytInstallmentAgreementsViewModelHost")},_.g(_.TN,{each:_.Jy(function(){return d().agreements},[])},function(N){return _.g("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.g(_.lG,{text:N.label})),_.g("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.g(_.ho,{data:function(){return N.openButton}},{buttonViewModel:_.o0})))}))},
"kg");
H0d.idomCompat=!0;var nJd=_.SG(function(M){return _.g("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.g(_.lG,{text:function(){return M.data().inviteMessage}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.g(_.lG,{text:function(){return M.data().attributedAccountSectionHeaderText}})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.g(_.ho,{data:function(){return M.data().accountAvatar}},{avatarViewModel:_.TS}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.g(_.lG,{text:function(){return M.data().accountName}}),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.g(_.lG,{text:function(){return M.data().handle}}))),_.g(_.ho,{data:function(){return M.data().trailingButton}},{buttonViewModel:_.o0})),_.g("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.g(_.lG,{text:function(){return M.data().termsOfService}})))},"lg");var i0b=_.SG(function(M){var d=_.V(_.Rq(function(){var Y,$i;return((Y=M.data().createPlaylistDialogFormSchema)==null?0:($i=Y.initialValues)==null?0:$i.title)?M.data().createPlaylistDialogFormSchema.initialValues.title:""})),N=d.next().value,R=d.next().value;
d=_.V(_.Rq(function(){M.data();return!1}));
var X=d.next().value,A=d.next().value;d=_.V(_.Rq(function(){M.data();return!1}));
var l=d.next().value,k=d.next().value;d=_.V(_.Rq(function(){var Y,$i;return(Y=M.data().createPlaylistDialogFormSchema)==null?void 0:($i=Y.initialValues)==null?void 0:$i.visibility}));
var T=d.next().value,W=d.next().value;d=_.V(_.Rq(function(){M.data();return!1}));
var w=d.next().value,p=d.next().value;d=_.V(_.Rq(function(){var Y,$i;return(Y=M.data().createPlaylistDialogFormSchema)==null?void 0:($i=Y.initialValues)==null?void 0:$i.isCollaborative}));
var m=d.next().value,I=d.next().value,O=_.e5();_.Wg(function(){var Y=O.value.querySelector("textarea");Y&&(Y.value=N())});
_.IJ(function(){var Y;_.mQG((Y=M.data().createPlaylistDialogFormSchema)==null?void 0:Y.id,{onSubmit:function(){var $i=N();var vj=T(),Pj=m(),sS=M.data();$i={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:$i,privacyStatus:vj,videoIds:sS.videoIds,sourcePlaylistId:sS.sourcePlaylistId,params:Pj?sS.createPlaylistParamsCollaborationEnabled:sS.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.h().resolve(_.xV).resolveCommand($i)},
isValid:function(){return X()&&!l()&&!w()}})});
var y=function(Y){if(Y!==void 0&&(R(Y),!X()&&Y.length>0&&A(!0),X())){var $i=Rrd(M.data());if($i){var vj=$i.minLength;$i=$i.maxLength;vj&&Y.length<vj?k(!0):$i&&Y.length>$i?k(!0):k(!1)}}},c=function(){var Y=!(!m()||T()!=="PRIVATE");
p(Y)},e=function(Y){Y!==void 0&&(W(Y),c())},t=function(){if(w())return Flr(M.data())},C=function(){I(!m());
c()},U=function(){return{validate:function(Y){if(X()){var $i=Rrd(M.data());
if($i){var vj=$i.minLength;$i=$i.translations;if(vj&&Y.length<vj)return $i==null?void 0:$i.minLengthErrorMessage}}}}},Fi=function(){var Y=Rrd(M.data()),$i=Y==null?void 0:Y.maxLength,vj;
Y=Y==null?void 0:(vj=Y.translations)==null?void 0:vj.maxLengthErrorMessage;if($i&&Y)return{maxChars:$i,errorMessage:Y}};
return _.g("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.g("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:O},_.g(_.ho,{data:function(){return M.data().playlistTitle}},{textFormFieldViewModel:function(Y){return _.g(_.ZFJ,{data:Y.data,
text:N,onInput:y,validation:U,characterLimit:Fi})},
textFieldViewModel:function(Y){return _.g(_.YlT,{data:Y.data,text:N,onInput:y,validation:U,characterLimit:Fi})}})),_.g("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.g(_.ho,{data:function(){return M.data().playlistVisibility}},{dropdownViewModel:function(Y){return _.g(_.B29,{data:Y.data,
onSelected:e,error:t})}})),_.g(_.kV,{cond:function(){return!!M.data().playlistCollaborate},
then:function(){return _.g("div",null,_.g(_.ho,{data:function(){return M.data().playlistCollaborate}},{switchListItemViewModel:function(Y){return _.g(_.WZ,{data:Y.data,
onTap:C})}}))}}))},"mg");var fn9=_.SG(function(M){var d=_.Jy(M.noPadding,!1),N=function(){var X,A;return(A=(X=M.data().logo.accessibilityData)==null?void 0:X.label)!=null?A:""},R={};
return _.g("upsell-view-model",{class:_.xj("ytUpsellViewModelHost",(R.ytUpsellViewModelHostNoPadding=function(){return d()},R))},_.g("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.g(_.kV,{cond:function(){return _.Uc(M.data().logo)},
then:function(X){return _.g(_.Jt,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:N})}})),_.g("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.g(_.lG,{text:function(){return M.data().title}})),_.g("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.g(_.TN,{each:function(){var X;
return(X=M.data().subtitles)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.g("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.g(_.lG,{text:X}))})),_.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.g(_.TN,{each:function(){var X;
return(X=M.data().benefitInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.g(_.kV,{cond:function(){return X().info},
then:function(A){return _.g("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.g(_.Fc,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.g(_.lG,{text:A}))}})})),_.g("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.g(_.TN,{each:function(){var X;
return(X=M.data().legalInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.g("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.g(_.lG,{text:X}))})))},"ng");var Lji=_.SG(function(M){var d=M.data;M={};M=(M.ytMiniAppScoreChallengeViewModelScoreRadial=!0,M.ytMiniAppScoreChallengeViewModelDarkScoreRadial=A2q(),M);return _.g("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.g("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return d().title}),_.g("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return d().subtitle}),_.g("div",{class:_.ZH(M)},_.g("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return d().score})),_.g("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return d().prompt}))},"og");var tTT=function(){this.store=_.r4();this.formId=""};var GKJ=_.SG(function(M){function d(k){if(k&&(k=_.q(k,_.B5)))return Object.assign({},k,{isSelected:A()})}
var N=_.V(_.Rq(function(){var k,T;return(T=(k=_.q(M.data().option,_.B5))==null?void 0:k.isSelected)!=null?T:!1})),R=N.next().value,X=N.next().value,A=R;
_.IJ(function(){var k;_.mQG((k=M.data().formSchema)==null?void 0:k.id,{onSubmit:function(){var T=_.h().resolve(_.xV),W=!!M.data().selectedCommand,w=!!M.data().unselectedCommand;if(A()){if(W)var p=M.data().selectedCommand}else w&&(p=M.data().unselectedCommand);p=_.ht(p);d(M.data().option)&&!p?(T="",!W&&w?T="selected ":W&&!w&&(T="unselected "),W=new _.WJ("No "+T+"command found for SelectionListItemFormViewModel"),_.qZ(W)):p&&T.resolveCommand(p)},
isValid:function(){return!0}})});
var l=function(){X(!A())};
_.mF(function(){var k,T,W=(k=M.data())==null?void 0:(T=k.formSchema)==null?void 0:T.id;W&&_.wU4()().delete(W)});
return _.g("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.g("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.g(_.lG,{text:function(){return M.data().paragraph}})),_.g(_.kV,{cond:function(){return d(M.data().option)},
then:function(k){return _.g(_.gX,{data:k,isCompact:!0,hideSelectionTextChevron:!0,onTap:l,disableHorizontalPadding:!0})}}))},"pg");var $XD=_.W5({avatarStackViewModel:_.tUL});_.aR(Bfe);var an$=_.SG(function(M){var d=M.data;var N=M.disablePadding;var R=M.className;var X=_.e5(),A=function(){return V2r(d().banner,d().assetContainerPaddingStyle)},l=function(){return V2r(d().imageBanner,d().assetContainerPaddingStyle)},k=function(){return d().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.IJ(function(){var T=function(){l3e(X.value)},W;
(W=X.value)==null||W.addEventListener("image-loaded",T);_.mF(function(){var w;(w=X.value)==null||w.removeEventListener("image-loaded",T)})});
M={};return _.g("yt-dialog-header-view-model",{el:X,class:_.xj(R,(M.ytDialogHeaderViewModelHost=!0,M.ytDialogHeaderViewModelHostDisablePadding=N,M))},_.g(_.kV,{cond:function(){return d().banner},
then:function(){var T={};return _.g("div",{class:_.xj(R,(T.ytDialogHeaderViewModelBanner=!0,T.ytDialogHeaderViewModelBannerFullBleed=k,T)),style:_.Xc({"max-height":function(){return d().assetContainerMaxHeight?d().assetContainerMaxHeight+"px":""}})},_.g(_.iK,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.g(_.kV,{cond:function(){return d().imageBanner},
then:function(){var T={};return _.g("div",{class:_.xj(R,(T.ytDialogHeaderViewModelBanner=!0,T.ytDialogHeaderViewModelBannerFullBleed=k,T)),style:_.Xc({"max-height":function(){return d().assetContainerMaxHeight!==void 0?d().assetContainerMaxHeight+"px":void 0}})},_.g(_.iK,{data:l,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.g(_.kV,{cond:function(){return d().customAssetContainer},
then:function(T){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.g(_.ho,{data:T},{avatarStackViewModel:_.gV}))}}),_.g(_.kV,{cond:function(){return d().customBanner},
then:function(T){return _.g("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.g(_.ho,{data:T},{avatarStackViewModel:_.gV}))}}),_.g(_.kV,{cond:function(){return d().headline},
then:function(T){return _.g("h2",null,_.g(_.lG,{text:T,className:"ytDialogHeaderViewModelText"}))}}))},"qg"),Uqd=_.Q("web_enable_sink_dialog_header_view_model")?an$:_.Ez(Bfe);
an$.idomCompat=!0;var u2P=_.SG(function(M){var d=_.hyd(function(){return M.data().formId}),N=d.onSubmit,R=d.isValid;
return _.g("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.g(_.ho,{data:function(){return M.data().panelFooter}},{panelFooterViewModel:function(X){return _.g(_.rv,{data:X.data,
disablePadding:!0,disablePrimaryButton:function(){return!R()},
onClickPrimaryButton:function(){N()}})}}))},"rg");var Y6e=_.SG(function(M){var d=_.cu(M,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),N=d.elRefCallback;M=d.iconWiz;var R=d.assetWiz,X=d.assetType,A=d.titleWiz,l=d.leadingActionHeaderWiz,k=d.trailingActionHeaderWiz,T=d.headerPosition,W=d.contentWiz,w=d.buttonLayout,p=d.buttonStyle,m=d.primaryButtonWiz,I=d.secondaryButtonWiz,O=d.contentAlignment,y=d.isFullscreen,c=d.width,e=d.maxHeight,t=d.isHeaderWizDefined,
C=d.headerWiz,U=d.isFooterWizDefined,Fi=d.footerWiz;d=_.e5(function(LZ){N==null||N(LZ)});
var Y=R?function(){return R({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,$i=m?function(){var LZ={};
return m({buttonOverrides:function(){return{style:(p==null?void 0:p())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.xj((LZ["yt-spec-dialog-layout__dialog-layout-button"]=!0,LZ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},LZ))})}:void 0,vj=I?function(){var LZ={};
return I({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.xj((LZ["yt-spec-dialog-layout__dialog-layout-button"]=!0,LZ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(w==null?void 0:w())===0||(w==null?void 0:w())===2},LZ))})}:void 0,Pj=function(){return(!!A||!!l||!!k)&&T()===0},sS={},tL={},b2={},Hj={};
return _.g("dialog-layout",{el:d,class:_.xj((sS["yt-spec-dialog-layout"]=!0,sS["yt-spec-dialog-layout--dialog-layout-fullscreen"]=y,sS["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!y()},sS["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return e()===1},sS["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(X==null?void 0:X())===1},sS)),
style:function(){return(c==null?void 0:c())!==void 0?"width: "+c+"px;":""}},M?_.g("div",{class:_.xj((tL["yt-spec-dialog-layout__dialog-layout-icon"]=!0,tL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!R&&T()===1},tL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return O()===1},tL))},_.g(M,null)):null,_.g(_.kV,{cond:t,
then:function(){return C?_.g("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.g(C,null)):null},
else:function(){return _.g(_.GT,null,_.g(_.kV,{cond:Pj,then:function(){return _.g(CE4,{contentAlignment:O,LeadingActionHeader:l,TrailingActionHeader:k,Title:A,isAboveAsset:!!Y})}}),Y?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.g(Y,null)):null)}}),_.g("div",{class:_.xj((b2["yt-spec-dialog-layout__dialog-layout-container"]=!0,b2["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(O==null?void 0:O())===1},b2["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!A&&!C||!!Y&&(T==null?void 0:T())===0},b2))},_.g(_.kV,{cond:function(){return A&&!C&&(T==null?void 0:T())===1},
then:function(){return _.g(CE4,{contentAlignment:O,LeadingActionHeader:l,TrailingActionHeader:k,Title:A,isAboveAsset:!1})}}),W?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.g(W,null))):null,_.g(_.kV,{cond:U,
then:function(){return Fi?_.g("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.g(Fi,null)):null}}),$i||vj?_.g(xqd,{footerClasses:_.xj((Hj["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Hj["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Hj["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(w==null?void 0:w())===2},Hj["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(w==null?void 0:w())===1},Hj)),
PrimaryButton:$i,SecondaryButton:vj}):null))},"sg"),CE4=_.SG(function(M){var d=_.cu(M,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),N=d.contentAlignment,R=d.LeadingActionHeader;M=d.Title;var X=d.TrailingActionHeader,A=d.isAboveAsset,l=d.enableLeadingActionHeader;d={};return _.g("div",{class:_.xj((d["yt-spec-dialog-layout__dialog-header-container"]=!0,d["yt-spec-dialog-layout__dialog-header"]=!0,d["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=A,d["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1&&l()},d))},_.g(_.kV,{cond:function(){return l()},
then:function(){return R?_.g("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.g(R,null)):null}}),M?_.g("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.g(M,null)):null,X?_.g("div",null,_.g(X,null)):null)},"tg"),xqd=_.SG(function(M){var d=M.footerClasses;
var N=M.PrimaryButton;M=M.SecondaryButton;return _.g("div",{class:d},M?_.g(M,null):null,N?_.g(N,null):null)},"ug");var Z0T=_.SG(function(M){var d=M.data;return _.g("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.g("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.g(_.ho,{data:function(){return d().avatar}},{avatarViewModel:_.TS})),_.g("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g(_.lG,{text:function(){return d().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"vg");var EJ4=_.SG(function(M){var d=M.data;return _.g("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.g("div",{class:"ytAccessConfirmationViewModelContent"},_.g(_.ho,{data:function(){return d().dualAvatar}},{dualAvatarViewModel:function(N){return _.g("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.g(_.Y4I,{data:N.data}))}}),_.g("h2",{class:"ytAccessConfirmationViewModelTitle"},_.g(_.lG,{text:function(){return d().title}})),_.g(_.lG,{text:function(){return d().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"wg");var MLb=_.SG(function(M){var d=M.data;var N=void 0;M=_.V(_.d0("",void 0,"O14qgc"));var R=M.next().value,X=M.next().value,A,l=function(){X("");var W;(W=N)!=null&&W.store.dispatch(_.YS({type:"RESET_COMMAND_MAP"}))};
_.IJ(function(){N=new tTT;window.addEventListener("yt-popup-closed",l)});
_.Wg(function(){if(N&&A!==d().formId){var W=N,w=d();w.formId&&(W.formId=w.formId,W.store.dispatch(_.YS({type:"SET_CURRENT_FORM_ID",payload:{formId:W.formId}})));A=d().formId}});
_.mF(function(){window.removeEventListener("yt-popup-closed",l)});
var k=function(W,w,p){w.key&&p&&w.key!==R()&&(X(w.key),N&&w.command&&N.store.dispatch(_.YS({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:p,command:w.command}})))},T=function(){if(_.q(d().content,_.JlC))return!(R==null?0:R())};
return _.g("yt-dialog-view-model",{class:_.xj("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.g(Y6e,{headerWiz:function(){return _.g("span",{skip:!0},_.g(_.ho,{data:function(){return d().header}},{dialogHeaderViewModel:function(W){return _.g(Uqd,{data:W.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!d().header},
contentWiz:function(){return _.g("span",{skip:!0},_.g(_.ho,{data:function(){return d().customContent?d().customContent:d().content}},{basicContentViewModel:_.PLq,
createPlaylistDialogFormViewModel:i0b,collaborativePlaylistInviteMessageViewModel:nJd,miniAppScoreChallengeViewModel:Lji,radioButtonGroupViewModel:function(W){return _.g(_.Vw4,{data:W.data,selectedKey:R,onSelected:k})},
selectionListItemFormViewModel:GKJ,upsellViewModel:function(W){return _.g(fn9,{data:W.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Z0T,installmentAgreementsViewModel:H0d,accessConfirmationViewModel:EJ4,listViewModel:_.P3m}))},
footerWiz:function(){return _.g("span",{skip:!0},_.g(_.ho,{data:function(){return d().footer}},{panelFooterViewModel:function(W){return _.g(_.rv,{data:W.data,
disablePadding:!0,disablePrimaryButton:T})},
formPanelFooterViewModel:u2P,formFooterViewModel:function(W){return _.g(_.uoP,{data:W.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!d().footer}}))},"xg");
MLb.idomCompat=!0;_.eC(MLb,"yt-dialog-view-model",{props:{data:_.cA},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var dKb=_.SG(function(M){var d=M.data;M={};return _.g("yt-panel-header-view-model",{class:_.xj("yt-panel-header-view-model-wiz",(M["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!d().shouldHideDivider},M["yt-panel-header-view-model-wiz--compact"]=function(){return!!d().subtitle},M))},_.g("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.g(_.kV,{cond:function(){return d().title},
then:function(N){return _.g(_.lG,{text:N,className:"yt-panel-header-view-model-wiz__title"})}}),_.g(_.kV,{cond:function(){return d().subtitle},
then:function(N){return _.g(_.lG,{text:N,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.g("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.g(_.ho,{data:function(){return d().trailingButtons}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"yg");
dKb.idomCompat=!0;var NXY=_.SG(function(M){var d=_.dT(function(A){var l;if((l=M.skipContentClick)==null?0:l.call(M))return!1;M.onContentWrapperClick(A);return!0}),N,R,X;
return _.g("div",{class:_.xj("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return M.isAnimating()?"transform: translateY("+M.currentY()+"px);transition: 0.2s":""}},(N=M.header)==null?void 0:N.call(M),_.g("div",{id:M.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Xc({"max-height":(0,_.TW)(M.maxHeightForContentWrapper)}),"on:scroll":gBq(M.onScroll),"on:touchmove":gBq(function(A){return void A.stopPropagation()})},_.g("div",{el:{onRender:M.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":d},(R=M.body)==null?void 0:R.call(M))),(X=M.footer)==null?void 0:X.call(M))},"zg");
NXY.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var REd=_.SG(function(M){var d=_.Jy(M.leadingLabel),N=_.Jy(M.trailingLabel),R=_.Jy(M.footerButtonType),X=function(){return d()||N()||M.hasPrimaryButton()||M.hasSecondaryButton()},A={},l=_.xj("yt-spec-bottom-sheet-layout__primary-button",(A["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return R()===0&&M.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return R()===1&&M.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return R()===2&&M.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return R()===3&&M.hasPrimaryButton()},A));
A={};var k=_.xj("yt-spec-bottom-sheet-layout__secondary-button",(A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return R()===1&&M.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return R()===2&&M.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return R()===3&&M.hasPrimaryButton()},A));
return _.g(_.kV,{cond:M.hasFooterOverride,then:function(){var T;return _.g(_.GT,null,(T=M.footerOverride)==null?void 0:T.call(M))},
else:function(){return _.g(_.kV,{cond:X,then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.g(_.kV,{cond:function(){return d()||N()},
then:function(){var T={};return _.g("div",{class:_.xj("yt-spec-bottom-sheet-layout__footer-label-wrapper",(T["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!M.hasPrimaryButton()},T))},_.g(_.kV,{cond:d,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},d)}}),_.g(_.kV,{cond:N,
then:function(){return _.g("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},N)}}))}}),_.g(_.kV,{cond:function(){return M.hasPrimaryButton()||M.hasSecondaryButton()},
then:function(){var T={};return _.g("div",{class:_.xj("yt-spec-bottom-sheet-layout__footer-button-wrapper",(T["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.s6d,T))},_.g(_.kV,{cond:function(){return M.hasSecondaryButton()&&R()!==0},
then:function(){var W;return _.g("div",{class:k},(W=M.secondaryButton)==null?void 0:W.call(M))}}),_.g(_.kV,{cond:M.hasPrimaryButton,
then:function(){var W;return _.g("div",{class:l},(W=M.primaryButton)==null?void 0:W.call(M))}}))}}))}})}})},"Ag");
REd.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var XZr=_.SG(function(M){var d=_.Jy(M.title),N=_.Jy(M.subtitle),R=_.dT(function(l){var k;(k=M.touchstart)==null||k.call(M,l);return!1}),X=_.dT(function(l){var k;
(k=M.touchmove)==null||k.call(M,l);return!1}),A=_.dT(function(l){var k;
(k=M.touchend)==null||k.call(M,l);return!1});
return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:M.headerId,"on:touchstart":R,"on:touchmove":X,"on:touchend":A},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.g(_.kV,{cond:M.hasHeaderOverride,then:function(){var l;return _.g(_.GT,null,(l=M.headerOverride)==null?void 0:l.call(M))},
else:function(){var l={};return _.g("div",{class:_.xj((l["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,l["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=d,l))},_.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.g(_.kV,{cond:d,then:function(){return _.g(_.GT,null,_.g("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},d),_.g(_.kV,{cond:N,then:function(){return _.g("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
N)}}))}})),_.g(_.kV,{cond:function(){return d()&&M.hasActionHeader()},
then:function(){var k;return _.g("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(k=M.actionHeader)==null?void 0:k.call(M))}}))}}))},"Bg");
XZr.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.SG(function(M){function d(Y){if(!e&&typeof MutationObserver!=="undefined"){var $i={childList:!0};"MutationObserver"in window&&(e=new MutationObserver(N.bind(void 0,Y)),e.observe(Y,$i))}}
function N(Y){typeof e!=="undefined"&&(t["content-wrapper"]===void 0&&(t["content-wrapper"]=Y.children[0].clientHeight),I(t["content-wrapper"]),m()>O()||y(m()))}
function R(){p(window.innerHeight);m()>O()||y(m());C.isFullScreen[0]()&&m()>O()?U().dispatch("Snap To Full Screen",{maxHeight:c()}):U().dispatch("Snap To Neutral Position",{maxHeight:O()})}
function X(Y){document.body.style.overscrollBehavior="none";Y.preventDefault();U().dispatch("Touch Start",{event:Y})}
function A(Y){Y.preventDefault();U().dispatch("Touch Move",{event:Y,contentScrollable:m()>O(),fullContentWrapperHeight:c(),contentWrapperHeight:O(),contentHeightMap:t,contentWrapperId:"content-wrapper",header:wNe(M),footer:wNe(M)})}
function l(){document.body.style.overscrollBehavior="";C.isFullScreen[0]()?C.currentY[0]()>=60?U().dispatch("Snap To Neutral Position",{maxHeight:O()}):U().dispatch("Snap To Full Screen",{maxHeight:c()}):C.currentY[0]()>=60?k():C.currentY[0]()<=-60&&m()>O()?U().dispatch("Snap To Full Screen",{maxHeight:c()}):U().dispatch("Snap To Neutral Position",{maxHeight:O()})}
function k(){U().dispatch("Close Sheet",{clientHeight:w(),maxHeight:0});setTimeout(function(){WlJ()},250)}
var T=_.V(_.d0(window.innerHeight,void 0,"NWeFS")),W=T.next().value;T=T.next().value;var w=W,p=T;T=_.V(_.d0(0,void 0,"oxfm4"));W=T.next().value;T=T.next().value;var m=W,I=T;T=_.V(_.Rq(function(){var Y=wNe(M);return.6*w()-kur(Y)-TfC(Y)}));
W=T.next().value;T=T.next().value;var O=W,y=T,c=function(){var Y=wNe(M);return w()-kur(Y)-TfC(Y)-24-24},e=null,t={},C={initialY:_.d0(0,void 0,"cYBE5c"),
currentY:_.d0(0,void 0,"RndqHc"),isAnimating:_.d0(!1,void 0,"vO9DVd"),isFullScreen:_.d0(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Rq(O)},U=function(){var Y=null;return function(){if(!Y){var $i={initialY:C.initialY[0](),currentY:C.currentY[0](),isAnimating:C.isAnimating[0](),isFullScreen:C.isFullScreen[0](),maxHeightForContentWrapper:C.maxHeightForContentWrapper[0]()};Y=DXe($i)}return Y}}();
_.IJ(function(){window.addEventListener("resize",R);U().subscribe(function(Y){C.initialY[1](Y.initialY);C.currentY[1](Y.currentY);C.isAnimating[1](Y.isAnimating);C.isFullScreen[1](Y.isFullScreen);C.maxHeightForContentWrapper[1](Y.maxHeightForContentWrapper)})});
_.mF(function(){window.removeEventListener("resize",R);e&&(e.disconnect(),e=null)});
var Fi=_.xj({"bottom-sheet-content-without-icon":function(){var Y;return!((Y=M.shouldShowIcons)==null?0:Y.call(M))}});
return _.g("bottom-sheet-layout",null,_.g(NXY,{contentWrapperId:"content-wrapper",isAnimating:function(){return C.isAnimating[0]()},
currentY:function(){return C.currentY[0]()},
maxHeightForContentWrapper:function(){return C.maxHeightForContentWrapper[0]()},
shouldShowIcons:M.shouldShowIcons,skipContentClick:M.skipContentClick,onScroll:function(){var Y=document.getElementById("header-wrapper"),$i=document.getElementById("content-wrapper");if(Y&&$i){var vj={};vj=(vj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,vj["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,vj);Y.className=$i.scrollTop>1?_.ZH(vj):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:WlJ,contentWrapperEl:function(Y){d(Y);requestAnimationFrame(function(){N(Y)})},
header:function(){return _.g(XZr,{touchstart:X,touchmove:A,touchend:l,title:M.headerTitle,subtitle:M.headerSubtitle,headerId:"header-wrapper",headerOverride:M.headerFn,hasHeaderOverride:M.hasHeaderFn,actionHeader:M.headerActionHeader,hasActionHeader:M.hasHeaderActionHeader})},
footer:function(){return _.g(REd,{footerButtonType:M.footerButtonType,leadingLabel:M.footerLeadingLabel,trailingLabel:M.footerTrailingLabel,primaryButton:M.footerPrimaryButton,hasPrimaryButton:M.hasFooterPrimaryButton,secondaryButton:M.footerSecondaryButton,hasSecondaryButton:M.hasFooterSecondaryButton,footerOverride:M.footerFn,hasFooterOverride:M.hasFooterFn})},
body:function(){return _.g(_.kV,{cond:M.hasContentFn,then:function(){var Y;return _.g("div",{class:Fi},(Y=M.contentFn)==null?void 0:Y.call(M))}})}}))},"Cg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var FpY=_.SG(function(M){var d=_.h().resolve(_.Wc),N=_.dT(function(){return void d.closeSheet()});
return _.g("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":N},_.g(_.kV,{cond:function(){return!!M.header},
then:function(){return _.g("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},M.header())}}),_.g(_.kV,{cond:function(){return!!M.content},
then:function(){return _.g("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},M.content())}}),_.g(_.kV,{cond:function(){return!!M.footer},
then:function(){return _.g("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},M.footer())}}))},"Dg");
FpY.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var AfG=_.SG(function(M){M=M.data;var d={};return _.g("yt-sheet-view-model",{class:_.xj("yt-sheet-view-model-wiz",(d["yt-sheet-view-model-wiz--contextual"]=!0,d["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.Q("web_disable_backdrop_filter"),d))},_.g(_.kV,{cond:M,then:function(N){return _.g(FpY,{header:function(){return _.g(_.ho,{data:function(){return N().header}},{panelHeaderViewModel:dKb})},
content:function(){return _.g(_.ho,{data:function(){return N().content}},{listViewModel:function(R){return _.g(_.P3m,{data:R.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:fn9,miniAppScoreChallengeViewModel:Lji})},
footer:function(){return _.g(_.ho,{data:function(){return N().footer}},{panelFooterViewModel:_.rv})}})}}))},"Eg");
AfG.idomCompat=!0;_.eC(AfG,"yt-sheet-view-model",{props:{data:_.cA}});var lNr=_.SG(function(M){var d=function(){var N;return(N=M.data().enableDebuggingFeatures)!=null?N:!1};
return _.g("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.g(_.TN,{each:function(){var N;return(N=M.data().stickers)!=null?N:[]}},function(N){return _.g(VL4,{data:function(){return N},
debugMode:d})}))},"Fg"),VL4=_.SG(function(M){var d=_.cu(M,{debugMode:!1}).debugMode,N=_.Jy(function(){var T;
return(T=M.data().region)==null?void 0:T.w},0),R=_.Jy(function(){var T;
return(T=M.data().region)==null?void 0:T.h},0),X=_.Jy(function(){var T;
return(T=M.data().region)==null?void 0:T.x},0),A=_.Jy(function(){var T;
return(T=M.data().region)==null?void 0:T.y},0),l=_.dT(function(){var T=M.data().onTap;
T&&_.vz(T)}),k={};
return _.g("div",{class:_.xj("ytStoriesStickerLayerViewModelSticker",(k.ytStoriesStickerLayerViewModelDebugMode=d,k)),style:_.Xc({width:function(){return 100*N()+"%"},
height:function(){return 100*R()+"%"},
left:function(){return 100*X()+"%"},
top:function(){return 100*A()+"%"},
"flex-direction":function(){return pNJ(M.data().flexDirection)},
"justify-content":function(){return mXb(M.data().justifyContent)},
"align-items":function(){return hre(M.data().alignItems)}}),
"on:click":l},_.g(_.ho,{data:function(){return M.data().button||M.data().toggleButton}},{buttonViewModel:function(T){return _.g(_.o0,{data:T.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(T){return _.g(_.I0,{data:T.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Gg");var BXJ=_.SG(function(M){var d=function(){return M.data()},N=_.Jy(function(){return d().backgroundColor},0),R=_.Jy(function(){return d().actionButtons},[]),X=_.Jy(function(){return d().stickerLayer},{}),A={},l=function(){var T,W;
return{animationRef:A,animationConfig:{autoplay:!1,loop:!1,path:(W=(T=d().foregroundAnimation)==null?void 0:T.url)!=null?W:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){M.navigateToNextItemOnLottieComplete()}}}},k=function(){var T,W,w,p,m,I,O,y;
return{animationConfig:{autoplay:(I=(T=d().backgroundAnimation)==null?void 0:(W=T.settings)==null?void 0:W.autoplay)!=null?I:!1,loop:(O=(w=d().backgroundAnimation)==null?void 0:(p=w.settings)==null?void 0:p.loop)!=null?O:!1,path:(y=(m=d().backgroundAnimation)==null?void 0:m.url)!=null?y:"",name:"stories_item_background_animation"}}};
_.Wg(function(){if(M.isVisible()){var T;(T=A.lottieEl)==null||T.play()}else{var W;(W=A.lottieEl)==null||W.stop()}});
return _.g("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Xc({"background-color":function(){return _.ml(N())+";"}})},_.g("div",{class:"ytStoriesItemViewModelAssetContent"},_.g(_.kV,{cond:function(){return!!d().backgroundAnimation},
then:function(){return _.g(_.Yj,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.kV,{cond:function(){return!!d().backgroundImage},
then:function(){return _.g(_.Jt,{data:function(){return d().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.g(_.kV,{cond:function(){return!!d().foregroundAnimation},
then:function(){return _.g(_.Yj,{data:l,animationName:function(){return l().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.g(_.kV,{cond:function(){return!!d().foregroundImage},
then:function(){return _.g(_.Jt,{data:function(){return d().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.g("div",{class:"ytStoriesItemViewModelTopShadow"}),_.g(_.ho,{data:function(){return X()}},{storiesStickerLayerViewModel:lNr})),_.g("div",{class:"ytStoriesItemViewModelBottomShadow"},_.g("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.dT(M.pauseAutoNavigation)},_.g(_.TN,{each:R},function(T){return _.g($Ke,{data:function(){return T}})}))))},"Hg"),$Ke=_.SG(function(M){var d={};
return _.g("div",{class:_.xj("ytStoriesItemViewModelActionButton",(d.ytStoriesItemViewModelStretchedActionButton=function(){return M.data().size==="STORIES_BUTTON_SIZE_STRETCH"},d))},_.g(_.ho,{data:function(){return M.data().button}},{buttonViewModel:function(N){return _.g(_.o0,{data:N.data,
className:"ytStoriesItemViewModelButton"})}}))},"Ig");_.eC(_.SG(function(M){var d=_.V(_.Rq(function(){var t;return(t=M.data().startIndex)!=null?t:0})),N=d.next().value,R=d.next().value;
d=_.V(_.d0(!1,void 0,"klmjc"));var X=d.next().value,A=d.next().value,l=function(){var t;return(t=M.data().storyItems)!=null?t:[]},k=function(){return M.data().dismissButton},T=function(){var t;
return _.q((t=_.q(k(),_.QM))==null?void 0:t.onTap,_.mX)},W=_.e5(),w,p=function(){var t;
(t=w)==null||t.cancel();w=m(N()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});w.onfinish=function(){m(N()).style.width="100%";var C=_.q(l()[N()],Ds9),U,Fi;C!=null&&C.foregroundAnimation&&((C==null?0:(U=C.foregroundAnimation)==null?0:U.url)||(C==null?0:(Fi=C.foregroundAnimation)==null?0:Fi.payload))||(N()!==l().length-1?(R(N()+1),p()):T()&&_.Qu(T()))}},m=function(t){return W.value.children[t].children[0]},I=function(){for(var t=0;t<N();t++)m(t).style.width="100%"};
d=_.dT(function(){X()?A(!1):(N()===l().length-1&&T()&&_.Qu(T()),m(N()).style.width="100%",N()!==l().length-1&&(R(N()+1),p()))});
var O=_.dT(function(){X()?A(!1):(m(N()).style.width="0%",N()!==0?R(N()-1):R(N()),p())}),y=function(){A(!0)},c=function(){m(N()).style.width="100%";
N()!==l().length-1?(R(N()+1),p()):T()&&_.Qu(T())},e=_.dT(function(){var t;
(t=w)==null||t.pause()});
_.Wg(function(){if(X()){var t;(t=w)==null||t.pause()}else{var C;(C=w)==null||C.play()}});
_.Wg(function(){I();N()===M.data().startIndex&&p()});
_.IJ(function(){I();p()});
return _.g("yt-stories-viewer-view-model",{class:_.xj("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.g("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.g("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":O,"on:mousedown":e}),_.g("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":d,"on:mousedown":e})),_.g(_.ho,{data:l},{storiesItemViewModel:function(t,C){var U=t.data;return _.g(_.kV,{cond:function(){return Math.abs(C()-
N())<=1},
then:function(){var Fi={};return _.g("div",{class:_.xj("ytStoriesViewerViewModelStoryItem",(Fi.ytStoriesViewerViewModelHiddenStoryItem=function(){return C()!==N()},Fi))},_.g(BXJ,{data:U,
pauseAutoNavigation:y,navigateToNextItemOnLottieComplete:c,isVisible:function(){return C()===N()}}))}})}}),_.g("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:W},_.g(_.TN,{each:l},function(){return _.g("div",{class:"ytStoriesViewerViewModelProgressBar"},_.g("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.g("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.g(_.ho,{data:k},{buttonViewModel:_.o0})))},"Jg"),"yt-stories-viewer-view-model",{props:{data:_.cA}});_.eC(_.SG(function(M){var d=M.data;var N=_.e5(),R=[];return _.g("yt-gen-ai-feedback-form-view-model",{el:N,class:"ytGenAiFeedbackFormViewModelHost"},_.g(_.lG,{text:function(){return d().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.g(_.ho,{data:function(){return d().feedbackChips}},{toggleButtonViewModel:function(X){var A=X.data;
return _.g(_.I0,{data:A,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(l){var k=A();k=_.q(k,_.qH);k=_.q(k==null?void 0:k.defaultButtonViewModel,_.QM).trackingParams;l?R.push(k):(l=R.indexOf(k),l>-1&&R.splice(l,1))}})}})),_.g(_.lG,{text:function(){return d().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.g("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.g(_.ho,{data:function(){return d().submitButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){QjP(N.value,R,d().uniqueId)}})}}),_.g(_.ho,{data:function(){return d().moreFeedbackButton}},{buttonViewModel:function(X){return _.g(_.o0,{data:X.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Kg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.cA},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Kc=function(){return _.n.apply(this,arguments)||this};
_.v(Kc,_.n);Kc.prototype.created=function(){Z69(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Js9);var M=_.h().resolve(_.lmi);M&&(M.container=this.ytPopupContainerBehavior);if(M=_.h().resolve(_.Wc))M.container=this.ytPopupContainerBehavior;if(M=_.h().resolve(_.w1)){var d=this.ytPopupContainerBehavior;M.containerWasInjected?_.vh(Error("dj")):M.container=d}};
Kc.prototype.ensurePopupBelowPlayer=function(M,d){var N=_.h().resolve(_.CF(_.em));if(!N||!N.isOnWatch()||!_.nO())return!1;N=N.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.lx().height>N+this.getPopupHeight(M,d)?(M.style.top="auto",M.style.bottom="0px"):(M.style.top=N+"px",M.style.bottom="auto");return!0};
Kc.prototype.getPopupHeight=function(M,d){d&&(M.cachedPopupHeight=0);if(!M.cachedPopupHeight){d=0;var N=M.clientHeight,R=window.getComputedStyle(M);d+=parseInt(R.marginTop,10);d+=parseInt(R.marginBottom,10);M.cachedPopupHeight=N+d}return M.cachedPopupHeight};
Kc.prototype.getElement=function(M){return document.createElement(M)};
_.G([_.S(Nt4.YtPopupContainerBehavior),_.a("design:type",Object)],Kc.prototype,"ytPopupContainerBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Kc.prototype,"ytComponentBehavior",void 0);Kc=_.G([_.f({disableElementRegistration:!0,is:"ytd-popup-container"})],Kc);
_.L(Kc,"ytd-popup-container",function(){if(aQG!==void 0)return aQG;var M=document.createElement("template");_.P(M,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);return aQG=M},{mode:1});var kWD;var TX4={};TX4.YtLogYpcFlowCommandsBehavior=[_.tK.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(M){_.q(M,y6P)&&(M=_.q(M,y6P))&&(M.serializedTransactionFlowLoggingParams?_.ifN(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.hH("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.hH("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=M.serializedYpcPauseFlowLoggingParams)&&
_.hH("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams?(M=M.serializedYpcRefundFlowLoggingParams)&&e9J("YPC_EVENT_TYPE_START",M):M.serializedYpcDeactivateFlowLoggingParams?(M=M.serializedYpcDeactivateFlowLoggingParams)&&_.hH("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",M):M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(M=M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.hH("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",M))},
handleLogYpcFlowDismiss_:function(M){_.q(M,K6Y)&&(M=_.q(M,K6Y),M.serializedTransactionFlowLoggingParams?_.fhj(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.hH("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.hH("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=
M.serializedYpcPauseFlowLoggingParams)&&_.hH("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams&&(M=M.serializedYpcRefundFlowLoggingParams)&&e9J("YPC_EVENT_TYPE_CANCEL",M))}}];var DK9={};DK9.YtCancelRecurrenceBehavior=[_.jV.YtComponentBehavior,_.kGL,{attached:function(){var M=this;zpd(this,function(d,N){return M.ypcCancelRecurrenceHandler(d,N)})},
ypcCancelRecurrenceHandler:function(M,d){var N=this;if(!d||!d.ypcCancelRecurrenceEndpoint)return!1;if(!d.ypcCancelRecurrenceEndpoint.params)return _.yD(Error("vl")),!0;_.LQ(this.hostElement);var R=_.Pi.instance,X=_.h().resolve(_.CF(_.Tu));R&&_.oq(R,d)?_.rT(R,d).then(function(A){N.ypcCancelRecurrenceSuccess_(M,d,{data:A})},function(A){N.ypcCancelRecurrenceFailure_(M,d,A)}).thenCatch(function(){_.yD(Error("wl"))}):X?X.requestDataForServiceEndpoint(d).then(function(A){N.ypcCancelRecurrenceSuccess_(M,
d,A)},function(A){N.ypcCancelRecurrenceFailure_(M,d,A)}).thenCatch(function(){_.yD(Error("wl"))}):_.yD(Error("xl"));
return!0},
ypcCancelRecurrenceSuccess_:function(M,d,N){_.t9(this.hostElement);N.data||(N={data:N});N.data&&N.data.actions&&_.Ni(this.hostElement,N.data.actions,this.hostElement);N.data.messageRenderer?nve(d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(d=d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.hH("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",d);_.YP(M,"yt-service-request-completed",N)},
ypcCancelRecurrenceFailure_:function(M,d,N){_.t9(this.hostElement);nve(d.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.YP(M,"yt-service-request-error",{error:N,params:[M,d]})}}];var gme=function(M,d){_.Mp.call(this,d)};
_.v(gme,AoJ);var Wpr={};Wpr.YtCompleteTransactionBehavior=[_.jV.YtComponentBehavior,_.kGL,{attached:function(){var M=this;zpd(this,function(d,N){return M.ypcCompleteTransactionHandler(d,N)})},
completeTransaction:function(M,d){var N=this;d={payments_payload:window.btoa(d.integratorData),buybucket_params:M.data.buybucketParams,offer_params:M.data.offerParams};var R=_.h().resolve(_.Tu),X=M.data.completeTransactionEndpoint,A=this.get("ypcCompleteTransactionEndpoint.actions",X);A&&_.Ni(this.hostElement,A,this.hostElement);return(A=_.Pi.instance)&&_.oq(A,X)?_.rT(A,X,d).then(function(l){return!l||(l==null?0:l.error)?(l=N.get("data.serializedTransactionFlowLoggingParams",M),_.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
l))):{data:l}}).then(function(l){return N.handleCompleteTransactionSuccess_(l,M)},function(){return N.handleCompleteTransactionFailure_(M)}):R.requestDataForServiceEndpoint(X,d).then(function(l){return N.handleCompleteTransactionSuccess_(l,M)},function(){return N.handleCompleteTransactionFailure_(M)})},
handleCompleteTransactionSuccess_:function(M,d){M.data||(M={data:M});if(M.data.messageRenderer)return _.cl(new gme(M.data.messageRenderer));if(M.data.trackingParams){var N=_.Ou(),R=_.vl();N&&R&&_.c1(N,R,_.At(M.data.trackingParams))}d=this.get("data.serializedTransactionFlowLoggingParams",d);Har(d);return _.RD(M)},
handleCompleteTransactionFailure_:function(M){M=this.get("data.serializedTransactionFlowLoggingParams",M);_.K3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M);return _.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))},
ypcCompleteTransactionHandler:function(M,d){var N=this;if(!d.ypcCompleteTransactionEndpoint)return!1;if(!d.ypcCompleteTransactionEndpoint.transactionParams)return _.yD(Error("yl")),!0;d.ypcCompleteTransactionEndpoint&&d.ypcCompleteTransactionEndpoint.gtmData&&_.Tn(d.ypcCompleteTransactionEndpoint.gtmData);var R=_.h().resolve(_.CF(_.Tu));if(R){_.LQ(this.hostElement);var X=_.Pi.instance;X&&_.oq(X,d)?_.rT(X,d).then(function(A){return!A||(A==null?0:A.error)?(A=N.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
d),_.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))):{data:A}}).then(function(A){_.YP(M,"yt-service-request-completed");
N.ypcCompleteTransactionSuccess_(d,A)},function(){return N.ypcCompleteTransactionFailure_(d)}):R.requestDataForServiceEndpoint(d).then(function(A){_.YP(M,"yt-service-request-completed");
N.ypcCompleteTransactionSuccess_(d,A)},function(){return N.ypcCompleteTransactionFailure_(d)})}return!0},
ypcCompleteTransactionSuccess_:function(M,d){_.t9(this.hostElement);d.data||(d={data:d});_.ZI(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);d.data.messageRenderer||d.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(M):(_.Tn('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",M));d.data.actions&&(M=ayP(d.data.actions),d=UiT(d.data.actions),M.length&&_.dU(this.hostElement,
M),d.length&&_.Ni(this.hostElement,d,this.hostElement))},
ypcCompleteTransactionFailure_:function(M){_.t9(this.hostElement);_.ZI(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",M,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(M,d,N){if(d=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",d))d={serializedTransactionFlowLoggingParams:d},N&&(d.errorType=N),_.hQ(M,d),_.Qc()}}];var wZC={};wZC.YtEndpointHandlerWithYpcBehavior=[_.kGL,_.tK.YtActionHandlerBehavior,[{openWalletDialog:function(M,d,N,R,X,A,l){var k=this,T=_.KO();d=d.replace(/-/g,"+").replace(/_/g,"/");var W=_.kS().get("hl");_.x7Z(_.FU(_.yp),d,T.resolve,X,function(w){A&&A();T.reject(w)},W,function(w){return k.onServerBackendAnalyticEvent_(M,N,w)},this.onDialogClose_.bind(this),R,l);
return T.promise},
openFixFlowDialog:function(M,d,N,R){M=M.replace(/-/g,"+").replace(/_/g,"/");_.FU(_.yp).openFixFlowDialog(M,d,N,R)},
onDialogClose_:function(){_.ZI(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(M,d,N){M.fire("yt-commerce-action-init-done");d&&_.dU(this.hostElement,[d,{backend_analytics:N}])}}],
_.Zp.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(M,d){M=this.get("data.nativeFlowEndpoint",d);d=this.get("data.fallbackEndpoint",d);M?_.dU(this.hostElement,[M]):d&&_.YP(this.hostElement,"yt-navigate",{endpoint:d})}}],
DK9.YtCancelRecurrenceBehavior,Wpr.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var M=this;zpd(this,function(d,N,R){return M.handleYPCEndpoint(d,N,R)});
this.ypcRegisterActionMapJobId_=_.gL(_.IQ,function(){M.registerActionMap(M.buyFlowActionMap_)})},
detached:function(){var M=this;_.IQ.cancelJob(this.ypcRegisterActionMapJobId_);_.gL(_.IQ,function(){M.unregisterActionMap(M.buyFlowActionMap_)})},
handleYPCEndpoint:function(M,d,N){var R=d.ypcGetCartEndpoint;if(R){_.ID("commerce_transaction");var X=R.gtmId;X&&_.kH(X);(R=R.gtmData)&&_.Tn(R)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",d)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(M,d),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",d)!=null?(this.handleYPCFixInstrumentEndpoint_(M,d),!0):d.ypcPauseSubscriptionCommand?(r2r(this.hostElement,M,d,N),
!0):d.ypcResumeSubscriptionCommand?(J2T(this.hostElement,M,d),!0):d.getPaymentInstrumentsParamsCommand?(sjG(this.hostElement,M,d),!0):d.ypcHandleTransactionEndpoint?(O34(this.hostElement,M,d,N),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(M,d){var N=this;_.v1("ttcr",void 0,"commerce_transaction");d=d.ypcGetCartEndpoint;var R=d.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,X=R.encryptedPurchaseParams,A=R.serializedTransactionFlowLoggingParams,l=R.serializedPaymentsClientParams,k=this.createGetCartResponseFromParams_(R,d.offerParams,A);this.changeButtonState(M,!0);_.Ie(this.openWalletDialog(M,X,R.ypcLogWalletAnalyticDataEndpoint,A,function(){N.changeButtonState(M,!1)},function(){N.changeButtonState(M,
!1)},l).then(function(T){return N.handleBuyFlowCompleteCallback_(M,k,T)},function(){return N.handleOnLoadError(k)}).then(function(T){return void N.handlePostPurchaseSuccess_(M,k,T)},function(T){return void N.handlePostPurchaseError_(T)}),function(){N.changeButtonState(M,!1);
M instanceof Element&&_.YP(M,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(M,d,N){var R=M.completeTransactionEndpoint,X=M.handleTransactionEndpoint;d={data:{offerParams:window.btoa(d),serializedTransactionFlowLoggingParams:N}};X?d.data.handleTransactionEndpoint=X:d.data.completeTransactionEndpoint=R;M.onCartDismissCommand&&(d.data.onCartDismissCommand=M.onCartDismissCommand);return d},
onGetCartServiceRequestCompleted_:function(M,d){var N=this,R=M.target;if(d&&d.data&&d.data.messageRenderer)_.t9(this.hostElement),this.handleMessageRenderer_(d.data.messageRenderer),this.changeButtonState(R,!1);else{var X=this.get("data.encryptedPurchaseParams",d),A=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",d),l=this.get("data.ypcLogWalletAnalyticDataEndpoint",d),k=this.get("data.serializedPaymentsClientParams",d),T=this.getLoggingParams_(d);if(T||X||A)M.stopPropagation(),_.v1("ttcr",
void 0,"commerce_transaction"),X||_.t9(this.hostElement),this.changeButtonState(R,!1),A?_.ZI(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.rK("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:A}}},this]):X&&(this.changeButtonState(R,!0),M=null,M=this.openWalletDialog(R,X,l,T,function(){_.t9(N.hostElement);N.changeButtonState(R,!1)},function(){_.t9(N.hostElement);
N.changeButtonState(R,!1)},k),_.Ie(M.then(function(W){return N.handleBuyFlowCompleteCallback_(R,d,W)},function(){return N.handleOnLoadError(d)}).then(function(W){return N.handlePostPurchaseSuccess_(R,d,W)},function(W){return N.handlePostPurchaseError_(W)}),function(){N.changeButtonState(R,!1);
_.YP(R,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(M,d){d&&d.endpoint&&d.endpoint.ypcGetCartEndpoint&&!d.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",d.endpoint.ypcGetCartEndpoint)&&_.Ni(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",d.endpoint.ypcGetCartEndpoint)],M.target),_.LQ(this.hostElement),this.changeButtonState(M.target,!0))},
onServiceRequestError_:function(M,d){if(d&&d.params&&d.params.length){d=_.V(d.params);for(var N=d.next();!N.done;N=d.next())if((N=N.value)&&N.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",N.ypcGetCartEndpoint)&&_.Ni(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",N.ypcGetCartEndpoint)],M.target);_.t9(this.hostElement);this.changeButtonState(M.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(M,d,N){var R=N.integratorData;return R==null||R===""||N.error!=null?(R=this.getLoggingParams_(d),String(N.error)==="-1"?(d.data.onCartDismissCommand&&_.Ni(this.hostElement,[d.data.onCartDismissCommand],M),_.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R,!0))):_.cl(new Gm("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R))):d.data.handleTransactionEndpoint?jjr(this.hostElement,d.data.handleTransactionEndpoint,{payments_payload:R,funds_guarantee_callback_client_data:N.integratorClientCallbackData}):
this.completeTransaction(d,N)},
handlePostPurchaseSuccess_:function(M,d,N){d=N.data;var R=!1,X,A;if(d&&((X=d.command)==null?0:(A=X.commandExecutorCommand)==null?0:A.commands)){var l,k;X=(l=d.command)==null?void 0:(k=l.commandExecutorCommand)==null?void 0:k.commands;for(l=0;l<X.length;l++)if(_.q(X[l],_.AK3)){R=!0;break}}R||(d&&d.gtmDatas&&d.gtmDatas.length?_.Tn(d.gtmDatas[0]):_.Tn('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));N.data&&N.data.actions&&(d=ayP(N.data.actions),N=UiT(N.data.actions),d.length&&
_.dU(this.hostElement,d),N.length&&_.Ni(this.hostElement,N,M))},
handlePostPurchaseError_:function(M){M&&M.payload&&M.payload.isUserDismiss||_.qZ(Error("Al"))},
handleOnLoadError:function(M){M=this.getLoggingParams_(M);return _.cl(new Gm("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M))},
getLoggingParams_:function(M){return this.get("data.serializedTransactionFlowLoggingParams",M)},
handleMessageRenderer_:function(M){var d=_.sl(M,"renderer"),N=_.rK("openPopupConfig");d==="confirmDialogRenderer"&&N&&_.ZI(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:N.popupTypeMap[d],popup:M}},this])},
handleYPCFixInstrumentEndpoint_:function(M,d){var N=this,R=d.ypcFixInstrumentEndpoint;d=R.encryptedFixInstrumentParameters;this.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(M,!0);this.openFixFlowDialog(d,function(X,A){N.onFixFlowCompleteCallback_(R,X,A)},function(){return N.changeButtonState(M,!1)},function(){N.changeButtonState(M,!1);
N.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(M,d,N){var R=_.cy("payments.business.integration.scenario.FixInstrument");if(d==R.IntegratorCallbackType.ON_COMPLETE){d="FIX_FOP_EVENT_TYPE_CANCEL";var X=null;N.error!=null?N.error!=R.OnCompleteCallbackError.USER_CANCELLED&&(_.Ni(this.hostElement,[M.errorAction],this.hostElement),d="FIX_FOP_EVENT_TYPE_FAILURE",X="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Ni(this.hostElement,[M.successAction],this.hostElement),d="FIX_FOP_EVENT_TYPE_SUCCESS");_.Ni(this.hostElement,[M.onFinishAction],
this.hostElement);this.logFixFopEvent_(M,d,X)}},
logFixFopEvent_:function(M,d,N){(M=M.serializedFixFopLoggingParams)?(d={eventType:d,serializedFixFopLoggingParams:M},N!=null&&(d.errorType=N),_.hQ("fixFopFlow",d),_.Qc()):_.qZ(Error("Bl"))},
changeButtonState:function(M,d){_.Q("enable_ypc_spinners")&&M&&(M.is==="yt-button-renderer"||M.is==="ytd-button-renderer")&&(M.disabled=d)}}];var pZT=function(M){this.JSC$28572_clientRoot=M;this.feedbackCollectorActionMap={"yt-help-dialog-requested":SOe,"yt-feedback-dialog-requested":c2i,"yt-signal-action-help":zrY,"yt-signal-action-send-feedback":b34,"yt-send-feedback-action":H3C,"yt-user-feedback-endpoint":nBC};_.S5(_.ch.getInstance(),this.feedbackCollectorActionMap,this.JSC$28572_clientRoot)},mK4;var hEG=function(M){this.JSC$28577_clientRoot=M;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":i3P.bind(null,this.JSC$28577_clientRoot),"yt-signal-action-delete-all-downloads":Lle,"yt-signal-action-delete-download":t2Y,"yt-signal-action-delete-playlist-download":a3T,"yt-signal-action-install-pwa":Z3d,"yt-signal-action-refresh-downloads":xXC,"yt-offline-video-endpoint":MGG,"yt-offline-playlist-endpoint":N4Y,"yt-update-local-app-setting-command":Xu9,"yt-offline-orchestration-action-command":AyP,
"yt-signal-action-undo-delete-download":u8b,"yt-local-watch-history-command":$SC};_.S5(_.ch.getInstance(),this.downloadManagerActionMap,this.JSC$28577_clientRoot);_.sO.instance=new _.sO},Qyi;var ye=function(){var M=_.n.apply(this,arguments)||this;M.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};M.remoteApi_=null;return M};
_.v(ye,_.n);_.F=ye.prototype;
_.F.ready=function(){_.Q("polymer_enable_mdx")&&(JK9({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.Q("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.Q("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.Q("enable_cast_short_lived_lounge_token")}),_.Zx("yt-remote-connection-change",this.handleConnectionChange_,this),_.Zx("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=nHr())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.F.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.F.handleConnectionChange_=function(M){(this.mdxConnected=M)?(M=zfd(),!M&&KNJ()&&y$9()&&(M={key:"cast-selector-receiver",name:y$9()}),M=M.name):M=null;this.receiverName=M;_.tw(this.remoteApi_);(this.remoteApi_=nHr())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.F.handleReceiverAvailabilityChange_=function(){var M=Sn9();KNJ()&&_.F5("yt-remote-cast-available")&&M.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=M.length>0};
_.F.handleRemoteQueueChange_=function(){var M=this.currentVideoId_,d=this.currentListId_,N=ZZ(this.remoteApi_);this.currentVideoId_=N.videoId;this.currentListId_=N.listId;this.currentVideoId_&&_.ZI(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.Q("polymer_enable_mdx_queue")?this.currentListId_:null,M,d])};
_.F.handleAddToQueueAction_=function(M){M=_.q(M,g3i);this.remoteApi_&&(M.videoId?this.remoteApi_.addVideo(M.videoId):M.playlistId&&this.remoteApi_.addPlaylist(M.playlistId))};
_.F.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.F.handleInsertInQueueAction_=function(M){M=_.q(M,W6J);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$17439_insertVideo(M.videoId)};
_.F.handleRemoveFromQueueAction_=function(M){M=_.q(M,wqr);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$17439_removeVideo(M.videoId)};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],ye.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H(),_.a("design:type",Object)],ye.prototype,"appId",void 0);_.G([_.H(),_.a("design:type",Boolean)],ye.prototype,"mdxConnected",void 0);_.G([_.H(),_.a("design:type",Boolean)],ye.prototype,"receiverAvailable",void 0);_.G([_.H(),_.a("design:type",Object)],ye.prototype,"receiverName",void 0);_.G([_.H(),_.a("design:type",Object)],ye.prototype,"currentVideoId_",void 0);
_.G([_.H(),_.a("design:type",Object)],ye.prototype,"currentListId_",void 0);ye=_.G([_.w4({is:"yt-mdx-manager",disableElementRegistration:!0})],ye);_.L(ye,"yt-mdx-manager",void 0,{mode:2});var q5D;var ING;var Jg=function(){var M=_.n.apply(this,arguments)||this;M.APP_IDS={ytr:3,ytm:5};M.JSC$18677_timeoutId_=0;M.actionMap={"yt-open-create-family-dialog":"open"};return M};
_.v(Jg,_.n);_.F=Jg.prototype;_.F.created=function(){Z69(2200)};
_.F.detached=function(){this.observer_&&this.observer_.disconnect()};
_.F.open=function(M,d){var N=this,R=M.serializedYpcFamilyCreateLoggingParams;this.JSC$18677_timeoutId_=setTimeout(this.abort_.bind(this,M.postFlowErrorEndpoint,R),3E4);d&&(this.onReadyCallback_=d);var X=_.K(this.hostElement).querySelector("#unicorn-iframe");R&&R&&baG("ypcFamilyCreateFlowStarted",R);_.st2("family_creation",function(){var A=_.cy("gapi.family_creation.render");_.cy("gapi.config.update")("iframes/family_creation/url",N.getFamilyCreationUrlWithUnicornParams_());var l=3;M.appId&&M.appId in
N.APP_IDS&&(l=N.APP_IDS[M.appId]);l={authUser:_.rK("SESSION_INDEX")||0,clientId:l,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.rK("HL"),initialflow:[4,5,6,7],m:N.isMobile?1:0,onFlowComplete:N.onUnicornFlowComplete_.bind(N,M.postFlowSuccessEndpoint,R),onError:N.onUnicornFlowError_.bind(N,M.postFlowErrorEndpoint,R),onReady:N.onUnicornFlowReady_.bind(N,M.referencePcidParams)};A(X,l)})};
_.F.close=function(){_.K(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.F.onUnicornFlowComplete_=function(M,d){this.close();d&&d&&baG("ypcFamilyCreateFlowSucceeded",d);_.YP(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.onUnicornFlowError_=function(M,d){this.close();d&&baG("ypcFamilyCreateFlowCancelled",d);_.YP(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.onUnicornFlowReady_=function(M){var d=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();M&&_.cy("gapi.family_creation.setConfig")(0,M);this.observer_=new MutationObserver(function(){_.K(d.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.K(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.K(this.hostElement).querySelector("#dialog").open()};
_.F.getFamilyCreationUrlWithUnicornParams_=function(){return _.rK("YTR_FAMILY_CREATION_URL")};
_.F.getCurrentUrl_=function(){return document.location.href};
_.F.abort_=function(M,d){this.clearTimeout_();this.onUnicornFlowError_(M,d)};
_.F.clearTimeout_=function(){clearTimeout(this.JSC$18677_timeoutId_)};
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Jg.prototype,"ytActionHandlerBehavior",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Jg.prototype,"isMobile",void 0);_.G([_.H(),_.a("design:type",Object)],Jg.prototype,"onReadyCallback_",void 0);_.G([_.H(),_.a("design:type",Object)],Jg.prototype,"observer_",void 0);Jg=_.G([_.w4({is:"yt-create-family-dialog",disableElementRegistration:!0})],Jg);
_.L(Jg,"yt-create-family-dialog",function(){if(ING===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);var d=M.content,N=d.insertBefore;q5D===void 0&&(q5D=document.createElement("template"));var R=q5D;N.call(d,R.content.cloneNode(!0),M.content.firstChild);ING=M}M=ING;return M},{mode:2});var vmd;var Ome;var cM=function(){var M=_.n.apply(this,arguments)||this;M.STEP=1;M.BLOCK_ON=80;M.MIN_PROGESS=0;M.MAX_PROGESS=100;return M};
_.v(cM,_.n);_.F=cM.prototype;_.F.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.F.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));_.h().addProvider({provide:Wqr,useValue:this})};
_.F.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.F.finish=function(){var M=this;this.progress=this.MAX_PROGESS;B4i(function(){M.progress==M.MAX_PROGESS&&(M.hostElement.hidden=!0)})};
_.F.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Hm.Object.defineProperties(cM.prototype,{progress:{configurable:!0,enumerable:!0,set:function(M){this.progress_=M;var d="scaleX("+M/this.MAX_PROGESS+")",N=_.K(this.hostElement).querySelector("#progress").style;N.transform=d;N.webkitTransform=d;this.hostElement.setAttribute("aria-valuenow",String(M))},
get:function(){return this.progress_}}});
_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],cM.prototype,"ytComponentBehavior",void 0);cM=_.G([_.w4({is:"yt-page-navigation-progress",disableElementRegistration:!0})],cM);
_.L(cM,"yt-page-navigation-progress",function(){if(Ome===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');M.content.insertBefore(_.Z().content.cloneNode(!0),
M.content.firstChild);var d=M.content,N=d.insertBefore;vmd===void 0&&(vmd=document.createElement("template"));var R=vmd;N.call(d,R.content.cloneNode(!0),M.content.firstChild);Ome=M}M=Ome;return M},{mode:2});var jyb={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"},syq={"font-size":"12px","font-style":"italic"},Pji={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.gQT=function(){return _.B(function(M){_.Vy(M)})};_.eC(_.SG(function(){var M=_.hI(_.hDv);return _.g("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var d;return(d=M())==null?void 0:d.announcement})},"Lg"),"yt-ephemeral-actions");var Jy$=new Map;var wfe=function(M,d){var N=this;this.handleError=M;this.logEventInternal=d;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){N.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
wfe.prototype.logError=function(M){this.handleError(M)};
wfe.prototype.logEvent=function(M,d){switch(M){case "IDB_DATA_CORRUPTED":_.Q("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",d);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",d);break;case "IS_SUPPORTED_COMPLETED":_.Q("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",d);break;case "QUOTA_EXCEEDED":om4(this,d);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",d);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":M=Object.assign({},d,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",M)}};
var om4=function(M,d){_.dw.getInstance().estimate().then(function(N){N=Object.assign({},d,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:SH$(N==null?void 0:N.usage),deviceStorageQuotaMbytes:SH$(N==null?void 0:N.quota)});M.logEventInternal("idbQuotaExceeded",N)})};var Sn=function(){var M=_.n.apply(this,arguments)||this;M.tabGesturesIsActive=!1;M.deprecateFullerscreenUi=_.Q("web_watch_fullerscreen_deprecation_ui");M.hasDelegation=!1;M.darkerDarkTheme=_.Q("web_darker_dark_theme");M.isFrostedGlassInitialized=!1;M.frostedGlassExp=_.Q("web_frosted_glass");M.mastheadHiddenFocusWithinKillswitch=_.Q("web_masthead_hidden_focus_within_killswitch");M.ephemeralActionsEnabled=_.Q("web_ephemeral_actions");M.scrollAtTop=!0;M.guideScrollTop=0;M.isTheaterModeSession=_.KF("START_IN_THEATER_MODE");
M.iMaxTheaterMode=_.Q("web_watch_imax_theater_mode");M.isFullWindowSession=_.KF("START_IN_FULL_WINDOW_MODE");M.hasCreateFamilyDialog=!1;M.mastheadHeight=56;M.networkStatusManager=new _.S6;M.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction",
"yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints","yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand","yt-log-flow-logging-event-command":"logFlowLoggingEventCommand",
"yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};M.dynamicActionMap={"yt-run-attestation-command":function(d){var N=_.tZd.instance,R=_.q(d,_.zxt);return R?_.Q("use_rta_manager_for_async")&&
dUq()?fHb(N,R,d.clickTrackingParams):iqJ(N,R,d.clickTrackingParams):_.cl(Error("ni"))}};
M.isFrostedGlassDisabled=!1;M.isChannelOrPlaylistPage=!1;return M};
_.v(Sn,_.n);_.F=Sn.prototype;_.F.created=function(){var M=_.h();_.Q("kevlar_clear_duplicate_pref_cookie")&&_.gL(_.IQ,function(){var d=_.BJ.get("PREF");d&&!/f\d=/.test(d)&&(d=_.El("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=d?"PREF=null;domain="+d+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.Q("gzip_gel_with_worker")&&_.cTi();_.Q("jspb_serialize_with_worker")&&sQ4();_.Q("web_worker_availability_check")&&cyP();_.Q("nwl_init_killswitch")||OA9().then(function(){_.IQ.addLowPriorityJob(eJY)});
this.pageManagerAttachedPromise=_.KO();this.ytdAppBehavior.loadDepsPromise=_.qc([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.ua(this.onThrottledScroll,200,this);_.Q("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);pfC();F$r=!!_.cy("ytappsettings.initialized");RY=_.cy("ytappsettings.previousValue");phJ=_.cy("ytappsettings.previousSnapshotTime");F$r||(F$r=!0,mZb());tD4();GRC();_.oJ("DEFERRED_DETACH",
_.Q("kevlar_tuner_should_defer_detach"));_.oJ("REUSE_COMPONENTS",!0);_.oJ("STAMPER_STABLE_LIST",!0);_.oJ("SCHEDULED_LAZY_LIST",!0);_.oJ("openPopupConfig",ysr);_.oJ("useClickHandler",!0);_.Q("kevlar_shell_cleanup")&&_.IQ.addLowPriorityJob(AQd.bind(this,_.Np.caches));_.KF("IS_SHELL_LOAD")&&_.qi({shellStartupDurationMs:Math.round((0,_.Gs)()-_.wU())});mS$(this.networkStatusManager);_.Q("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",k3q(jyb)),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!",
k3q(syq)),console.log("%cVisit http://go/join-youtube-web to apply today.",k3q(Pji)));_.IKe(M.resolve(_.Yf),1E3)};
_.F.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var M=bAC();M&&!_.Q("external_fullscreen_killswitch")&&document.addEventListener(M,this.setFullscreen.bind(this));(M=window.matchMedia("(prefers-color-scheme: dark)"))&&M.addEventListener&&M.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.F.attached=function(){var M=this;_.K4().processSignal("ci");_.Q("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.WAo?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.gz(_.i2i(),"SUCCESS");this.updateIconSet();_.CL(this.guideInnerContent,!1);_.Nl().initVisibilityObserver();this.guideService.guideElement=this.guide;var d=document.createElement("ytd-miniplayer"),N=_.K(this.hostElement).querySelector("#content");
_.K(this.hostElement).insertBefore(d,N);_.K4().processSignal("ma");_.h().resolve(_.et).init(d);_.KF("IS_SHELL_LOAD")&&(N=document.createElement("ytd-network-status-banner"),_.K(this.hostElement).insertBefore(N,d));_.Q("kevlar_right_click_on_lockups")&&_.nG._onCaptureClick&&document.addEventListener("contextmenu",_.nG._onCaptureClick.bind(_.nG),!0);var R=function(){var X=_.n$("yt-page-navigation-progress");_.K(M.hostElement).appendChild(X)};
setTimeout(function(){_.K4().parkOrScheduleJob(R,0,"eocs",16)},0);
_.Q("service_worker_push_enabled")&&_.gL(_.IQ,z9Y);_.S5(_.ch.getInstance(),this.dynamicActionMap,this.hostElement);_.YP(this.hostElement,"ytd-app-attached");_.K4().processSignal("aa");EWP(this.hostElement);_.fE("gapi.load",_.st2);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.gL(_.IQ,
function(){var X=document.createElement("ytd-video-preview");_.K(_.K(M.hostElement).querySelector("#video-preview")).appendChild(X)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.gL(_.IQ,function(){W3P();M.registerViewTransitionTasks()});
if(_.j2()&&this.isAppDarkTheme()!==_.vN())this.onDarkModeToggledAction();else d=_.OO()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==d&&(_.Q("enable_dark_theme_only_on_shorts")?_.Ij(_.Q("enable_dark_theme_only_on_shorts_control")?window.location.href:_.fF(window.location.href,{theme:"dark"})):_.vh(new _.WJ("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(zAe=new SbD(this.hostElement)),Qyi=new hEG(this.hostElement),mK4=new pZT(this.hostElement),d1e=new MQT(this.hostElement)};
_.F.getThemeSettingsToLog=function(){var M=_.OO()==="USER_INTERFACE_THEME_DARK";M=_.j2()?_.vN()?"os-dark":"os-light":M?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:M,cookiesEnabled:_.Ts()}};
_.F.detached=function(){_.xP(this.guideInnerContent);_.IQ.cancelJob(ZJ);ZJ=0;_.IQ.cancelJob(MJ);MJ=0;_.xXN(ZAY);ZAY.length=0;C74=_.qbN=null;_.Nl().dispose();_.Q("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.zi(_.ch.getInstance(),zAe.playlistHandlerActionMap,zAe.JSC$28272_clientRoot);_.zi(_.ch.getInstance(),Qyi.downloadManagerActionMap,Qyi.JSC$28577_clientRoot);_.zi(_.ch.getInstance(),mK4.feedbackCollectorActionMap,mK4.JSC$28572_clientRoot);
for(var M=_.V(d1e.eventListeners),d=M.next();!d.done;d=M.next()){var N=_.V(d.value);d=N.next().value;N=N.next().value;N=_.V(N);for(var R=N.next();!R.done;R=N.next()){var X=_.V(R.value);R=X.next().value;X=X.next().value;d.removeEventListener(R,X)}}_.zi(_.ch.getInstance(),d1e.autonavPauseActionMap,d1e.JSC$17624_clientRoot)};
_.F.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.kS().getFlag(186)};
_.F.computeIsInlinePreviewEnabled=function(M,d,N){return!N&&_.mFq({miniplayerIsActive:M,miniplayerPlaybackState:d})};
_.F.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.YS({type:"SET_FROSTED_GLASS_MODE",payload:!_.Q("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"}))};
_.F.computeIsFrostedGlassDisabled=function(M,d,N,R){return M||d||N||R&&_.Q("web_frosted_glass_disable_watch")};
_.F.computeIsHomePage=function(M,d){if(!M||d==null||!d.endpoint)return!1;var N;return((N=_.q(d.endpoint,_.F8))==null?void 0:N.browseId)==="FEwhat_to_watch"};
_.F.updateIsChannelOrPlaylistPage=function(){if(_.Q("web_frosted_glass")){var M,d,N=(d=(M=_.h().resolve(_.CF(_.em)))==null?void 0:M.getCurrentPage())==null?void 0:d.pageSubtype;this.isChannelOrPlaylistPage=N?["channel","channels","playlist"].includes(N):!1}};
_.F.scheduleFrostedGlassInitialization=function(){var M=this;_.Q("web_frosted_glass")&&_.K4().parkOrScheduleJob(function(){M.isFrostedGlassInitialized=!0},0,_.qD(["eocs",
"cr"]),300)};
_.F.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.dMg(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.YS({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.YS({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.F.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(CGb(!0))};
_.F.onYtSignalActionRequestPersistentStorage=function(){if(!_.Q("request_persistent_storage_killswitch")){var M=_.h().resolve(_.Im$);M.cachedPersistStatePromise||(M.cachedPersistStatePromise=DND())}};
_.F.handleYtChannelCreationFormEndpoints=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.F.handleShowEngagementPanelEndpoint=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.F.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(CGb(!1))};
_.F.initIconDefs=function(M,d,N){var R=document.createElement("iron-iconset-svg");R.name=M;M=document.createElementNS("http://www.w3.org/2000/svg","svg");R.appendChild(M);M.appendChild(d);if(N)for(var X in N)R[X]=N[X];document.body.appendChild(R);return R};
_.F.onWindowResized=function(){_.ZI(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var M=_.kjd.getInstance();M.documentWidth_=document.body.clientWidth;gjD(M)};
_.F.onWindowScrolled=function(){var M=_.h().resolve(_.em).getCurrentPage();if(M!=null&&M.getScrollTop){var d=this.ytdReduxBehavior,N=d.dispatch;M=M.getScrollTop()<=0;N.call(d,_.YS({type:"SET_SCROLL_AT_TOP",payload:M}))}};
_.F.guideIsVisibleButNotPersistentSelectorChanged=function(){var M=_.h().resolve(_.em).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=M.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
M.setScrollTop(this.guideScrollTop));_.Eu(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.F.getCurrentPageScrollableElementType=function(){var M=_.h().resolve(_.em).getCurrentPage();if(M&&M.getPageScrollingElement())return M.getPageScrollingElement().nodeName};
_.F.observeGuideVisibility=function(){var M=_.kjd.getInstance(),d=this.miniGuideVisible;M.guidePersistentAndVisible_=this.guidePersistentAndVisible;M.miniGuideVisible_=d;gjD(M)};
_.F.handleEduDismissAction=function(M){M&&M.eduDismissAction&&(_.ZI(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.A1m.getInstance(),_.Gq.set(M.eduDismissAction.key+"-dismissed",!0))};
_.F.handleEduImpressionAction=function(M){if(M&&M.eduImpressionAction){var d=_.A1m.getInstance();M=M.eduImpressionAction.key;d.JSC$10781_eduDisplayedThisLoad_[_.Fz3[M].setKey||M]=!0;_.Gq.set(M+"-impression",parseInt(_.Gq.get(M+"-impression")||0,10)+1)}};
_.F.onYtSignalActionConfirmMentionsEdu=function(){_.ZI(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.ug.getInstance();_.U9.set("edu-dismissed",!0)};
_.F.onYtSignalActionRecordMentionsEduImpression=function(){_.ug.getInstance();var M=_.U9.set,d=parseInt(_.U9.get("edu-impressions"),10);M.call(_.U9,"edu-impressions",(isFinite(d)?d:0)+1)};
_.F.onYtPageManagerAttached=function(M){var d;((d=_.cN(M))==null?void 0:d.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.F.onInvokeInstrumentManagerAction=function(M,d){H6J(d,M)};
_.F.updateIconSet=function(){var M=this.hostElement.querySelector("#masthead");if(M){var d=_.L3(M),N=d.querySelector("g#yt-logo-updated");N&&(M=document.createElementNS("http://www.w3.org/2000/svg","defs"),M.appendChild(N.cloneNode(!0)),(d=d.querySelector("g#yt-logo-red-updated"))&&M.appendChild(d.cloneNode(!0)),this.initIconDefs("yt-logos-ext",M))}};
_.F.updateMastheadData=function(){var M=this,d,N,R,X,A;return _.B(function(l){if(l.nextAddress==1){d=M.data;N=M.hostElement.querySelector("#masthead");if(!N)return l.return();_.bM(M,function(){N.data=M.topbarData});
if(!M.get("response.topbar",d)||M.get("response.topbar.responseContext.maxAgeSeconds",d)===0)return l.jumpTo(0);if(R=_.h().resolve(_.y1))return _.D(l,R(),6);X=_.h().resolve(_.Y0);return _.D(l,X.put("service:topbar:fallback",new _.Zh({innertubeResponse:M.get("response.topbar",d)})),0)}return(A=l.yieldResult)?_.D(l,A.put("service:topbar:fallback",new _.Zh({innertubeResponse:M.get("response.topbar",d)})),0):l.jumpTo(0)})};
_.F.computeTopbarData=function(M){if(!M)return null;var d;return this.isShortsPage&&this.topbarData&&!_.q((d=M.response)==null?void 0:d.topbar,ds9)?this.topbarData:M.response&&"topbar"in M.response?_.q(M.response.topbar,ds9)||null:null};
_.F.onSetTheaterModeEnabled=function(M,d){this.isTheaterModeSession=d.enabled;this.setTheaterModeStyles(d.enabled)};
_.F.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.F.onDarkModeToggledAction=function(){var M=_.FO(window.location.href);if(!_.K4L(M)){(M=!!_.is(window.location.href).themeRefresh)&&_.vh(new _.WJ("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!M){mZb();M={themeRefresh:1};var d=_.h().resolve(_.em);if(d.isOnWatch()){var N,R;d=((N=d.getPlayerFromWatch())==null?void 0:(R=N.getPlayer())==null?void 0:R.getCurrentTime())||0;d>=1&&(M.time_continue=Math.floor(d))}_.Ts()||_.OO()!=="USER_INTERFACE_THEME_DARK"||(M.theme="dark");_.Ij(_.fF(window.location.href,
M))}_.Q("web_appshell_refresh_trigger")&&_.Np.caches&&this.refreshAppShellResponse();N=_.SE(window.location.href);_.d1(_.h().resolve(_.Nf),_.GD(N,"theme"))}};
_.F.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.F.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.F.onPlayerFullscreen=function(M){_.Uu();this.playerFullscreen=M};
_.F.setRestrictedMode=function(M){var d=_.kS();_.TR(0,58,M);d.save();_.h().resolve(_.db).reload()};
_.F.onPageChanged=function(M){M.detail.newPageType==="ytd-watch-flexy"||M.detail.newPageType==="ytd-watch-fixie"||M.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.o1("WEB_PAGE_TYPE_WATCH")):M.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.o1("WEB_PAGE_TYPE_SHORTS")):M.detail.newPageType==="ytd-browse"&&M.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.o1("WEB_PAGE_TYPE_MINI_APP")):_.Q("web_frosted_glass")&&M.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.o1("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.o1("WEB_PAGE_TYPE_UNKNOWN"));M.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.F.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.F.onGuideToggleTap=function(){_.YP(this.hostElement,"yt-guide-toggle")};
_.F.onGuideToggleHover=function(){_.YP(this.hostElement,"yt-guide-hover")};
_.F.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.F.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.F.setMastheadTheme=function(){var M=_.L3(this.hostElement).querySelector("#masthead");M&&(M.dark=M.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),M.isDarkThemeForced=!1)};
_.F.onRequestPanelModeChange=function(M,d){this.hideHeaderShadow=d.mode!=="seamed"};
_.F.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.F.onDrawerIronSelect=function(M){_.cN(M).id==="guide"&&this.processDrawerIronSelect()};
_.F.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var M="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(M="opened"));_.YP(this.hostElement,"yt-autonav-pause-guide-"+M)};
_.F.onAddElementToApp=function(M){_.K(this.hostElement).appendChild(M.detail)};
_.F.onThrottledScroll=function(){var M=_.h().resolve(_.em).getCurrentPage();M&&(this.scrollAtTop=M.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.F.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.F.setFullscreen=function(){if(_.Q("external_fullscreen")||!this.isWatchPage){var M=_.Q("kevlar_fullerscreen_root_only_killswitch")?!!_.Uu():!!_.Uu()&&_.Uu()===document.documentElement;M=(this.isWatchPage||_.Q("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(M||this.isFullWindowSession);this.fullscreen!==M&&((this.fullscreen=M)&&_.Eu(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.iY().dispatch(_.xBY(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ZI(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.F.setFullscreenLoggingForShorts=function(M){var d,N,R;return _.B(function(X){if(X.nextAddress==1)return _.D(X,(d=_.nO())==null?void 0:d.getPlayerPromise(),2);N=X.yieldResult;(R=N)==null||R.setAppFullscreen(M);_.Vy(X)})};
_.F.updateMastheadCssHeight=function(){var M=this.mastheadHeight;this.fullscreen&&(M=0);_.UO(this.hostElement,{"--ytd-masthead-height":M+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.F.updateNetworkStatusBannerDisplayStatus=function(){var M="unset";this.fullscreen&&(M="none");_.UO(this.hostElement,{"--ytd-network-status-banner-display":M})};
_.F.updateNetworkStatusBannerCssHeight=function(){var M="unset";this.fullscreen&&(M="0px");_.UO(this.hostElement,{"--ytd-network-status-banner-max-height":M})};
_.F.updateScrollAndMasthead=function(M,d,N,R){this.iMaxTheaterMode||(R=!1);var X=_.h().resolve(_.em).getCurrentPage();M||d||R?(document.body.classList.add("no-scroll"),X.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ux(this,this.onScroll)),X.setScrollTop(0),_.UO(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.pl()+"px"})):N?_.YP(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.YP(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
X.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ux(this,this.onScroll)));this.mastheadHidden=M||d||N;this.updateMastheadCssHeight();_.Q("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.F.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.F.onYtMastheadHeightChanged=function(M,d){this.mastheadHeight=d.height;this.updateMastheadCssHeight()};
_.F.onYtNavigateAction=function(M){M=this.get("navigateAction.endpoint",M);_.YP(this.hostElement,"yt-navigate",{endpoint:M})};
_.F.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var M=document.createElement("yt-create-family-dialog");_.K(this.hostElement).appendChild(M);this.hasCreateFamilyDialog=!0}};
_.F.onSetPushNotificationsEnabledCommand=function(M){var d=this,N=_.q(M,MHP);N&&typeof N.enabled==="boolean"&&(Notification.permission!=="granted"?K7$().then(function(){Notification.permission==="granted"?(DZC(!N.enabled).then(whi),N.successAction&&_.dU(d.hostElement,[N.successAction])):N.failureAction&&_.dU(d.hostElement,[N.failureAction])}):(DZC(!N.enabled).then(whi),N.successAction&&_.dU(this.hostElement,[N.successAction])))};
_.F.onYtSignalActionEnableChromeNotifications=function(){yQD(!0)};
_.F.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.q(this.topbarData.hotkeyDialog,Xqe)}}})};
_.F.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ZI(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.F.onYtEndpointChangeHandler=function(M,d){var N=_.FU(_.Ml);N.pendingPrefetchJob_&&(d=!(!d||d.autonav!="1"),N.pendingPrefetchJob_.resolve(M&&_.Idi(M)?_.vyZ(M,d):""),N.pendingPrefetchJob_=null);_.ZI(this.hostElement,"yt-pause-active-page-context");_.ZI(this.hostElement,"ytd-log-youthere-nav");_.ZI(this.hostElement,"yt-prepare-page-dispose")};
_.F.handleCommandWithCommandHandler=function(M,d){_.YQ.instance.resolveCommand(M,{form:{element:d}})};
_.F.onYtTimedCommand=function(M){var d=this;M=_.q(M,LQe);var N=M.command;N&&_.m$(_.IQ,function(){var R=_.q(N,_.tHL);R?(_.YQ.instance.resolveCommand(N),d.maybeLogGetAnswerRequestTick(R)):_.Ni(d.hostElement,[N],d.hostElement)},M.timeoutMs||0)};
_.F.maybeLogGetAnswerRequestTick=function(M){M&&M.isFirstRequest&&(_.ID("search_overview_answer"),_.v1("so_rq",void 0,"search_overview_answer"))};
_.F.onYtSignalActionSkipNavigation=function(){var M=_.h().resolve(_.em).getCurrentPage();_.Hf(M)};
_.F.onYtSignalActionCopyDebugData=function(){Gi4()};
_.F.handleEntityUpdateCommand=function(M){_.lY(_.q(M,_.tsd).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.F.logFlowLoggingEventCommand=function(M){if(M=_.q(M,_.gJv))if(M.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var d=M.flowEventNamespace,N=M.flowEventType,R=M.flowType;R&&d&&N&&_.gyv(_.df(d,N,M.flowEventMetadata),R)}else{d=_.Rj();N=M.flowEventNamespace;R=M.flowEventType;var X=M.flowType;X&&N&&R&&_.NX(d,_.df(N,R,M.flowEventMetadata),X,M.flowNonce)}};
_.F.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.F.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.F.onTouchStart=function(){var M=_.Rh();_.Ou()&&_.sL(M.JSC$10933_screenManager,{visualElement:M.ve})};
_.F.handleSelectLanguageCommand=function(M){if(M=_.q(M,YjP).hl){var d=_.kS();d.set("hl",M);d.save();_.h().resolve(_.db).reload()}};
_.F.handleConfirmDialogEndpoint=function(M){(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M)};
_.F.handleOpenPopupNavigationEndpoints=function(M,d){_.Q("web_button_rework")&&(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M,d)};
_.F.handleSaveCommandToSessionStorage=function(M){if(M=_.q(M,_.fkV)){var d=M.key;d&&M.command&&window.sessionStorage.setItem(d,JSON.stringify(M.command))}};
_.F.hardReloadWithShellPurge=function(M){M=M===void 0?{}:M;M=Object.assign({},M,{purge_shell:1});M=_.h6L(M);_.Ij(M)};
_.F.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(M){M&&M.active&&M.active.postMessage({type:"refresh_shell"})}).catch(function(M){M.name!=="SecurityError"&&_.qZ(M)})};
_.F.onDeviceThemeChanged=function(){var M=_.vN();_.TR(_.kS(),185,M);_.kS().save()};
_.F.handleYtRegisterPromoCommand=function(M){if(_.q(M,Ec4)){var d=_.h().resolve(_.em).getCurrentPage()||this.hostElement;$hY().registerPromoCommand(_.q(M,Ec4),d)}};
_.F.onYtNavigateHomeAction=function(){if(!_.Q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M,d,N,R,X=(R=(M=this.topbarData)==null?void 0:(d=M.logo)==null?void 0:(N=d.topbarLogoRenderer)==null?void 0:N.endpoint)!=null?R:_.Bn;this.ytComponentBehavior.resolveCommand(X)}};
_.F.onYtLocationCollectionCommand=function(M){DS$(_.q(M,T9T))};
_.F.onYtGetLocationCommand=function(M){YNP(_.q(M,kQT),this)};
_.F.updateRenderGuideFromBinding=function(M){this.renderGuide=M.detail.value};
_.F.updateGuidePersistentAndVisibleFromBinding=function(M){this.guidePersistentAndVisible=M.detail.value};
_.F.updateMiniGuideVisibleFromBinding=function(M){this.miniGuideVisible=M.detail.value};
_.F.onThemeSelected=function(M,d){var N=_.kS(),R=M||d?M:_.vN(),X=(R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.K4L(_.FO(window.location.href));_.TR(0,165,M);_.TR(0,174,d);N.save();X&&_.ZI(this.hostElement,"yt-dark-mode-toggled-action",[R]);_.ZI(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.F.getCurrentTheme=function(){return _.j2()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.OO()};
_.F.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.F.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.F.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.F.handleShowConsentPrimitive=function(M){var d=this,N,R;return _.B(function(X){if(X.nextAddress==1){try{N=(R=_.nO())==null?void 0:R.getPlayerPromise()}catch(A){}return _.D(X,yyr(M,N),2)}_.ZI(d.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Vy(X)})};
_.F.handleSelectActiveIdentityEndpointInternal=function(M){_.Qp();M=_.q(M,_.FTg);if(M!=null&&M.supportedTokens){M=_.V(M.supportedTokens);for(var d=M.next();!d.done;d=M.next())d=d.value,d.accountSigninToken&&_.Ij(d.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.F.handleUpdatePermissionRoleCommand=function(M){if(M=_.q(M,_.R0e)){var d;this.hasDelegation=!((d=_.q(M.renderer,_.NJC))==null||!d.status)}};
_.F.registerViewTransitionTasks=function(){var M=this,d=_.h().resolve(_.CF(_.K1i));if(d){var N,R=(N=this.guide)==null?void 0:N.querySelector("#scrim"),X,A=(X=this.guide)==null?void 0:X.querySelector("#contentContainer");R&&A&&(N={beforeTransition:function(){var l;(l=M.guide)!=null&&l.persistent||(R.style.viewTransitionName="app-drawer-scrim",A.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var l;(l=M.guide)!=null&&l.persistent||(R.style.viewTransitionName="",A.style.viewTransitionName="")}},Rb(d,"slide",N),Rb(d,"zoom",N))}};
_.Hm.Object.defineProperties(Sn.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.Q("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Hm.Object.defineProperties(Sn,{template:{configurable:!0,enumerable:!0,get:function(){if(kWD===void 0){var M=document.createElement("template");_.P(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
M.content.insertBefore(_.Z().content.cloneNode(!0),M.content.firstChild);kWD=M}M=kWD;return M}}});
Sn.prototype.onOpenHotkeyDialog=Sn.prototype.onOpenHotkeyDialog;Sn.prototype.onYtMastheadHeightChanged=Sn.prototype.onYtMastheadHeightChanged;Sn.prototype.setFullscreen=Sn.prototype.setFullscreen;Sn.prototype.onAddElementToApp=Sn.prototype.onAddElementToApp;Sn.prototype.onDrawerIronSelect=Sn.prototype.onDrawerIronSelect;Sn.prototype.onGuideOpenButtonHover=Sn.prototype.onGuideOpenButtonHover;Sn.prototype.onRequestPanelModeChange=Sn.prototype.onRequestPanelModeChange;
Sn.prototype.onPageDataUpdated=Sn.prototype.onPageDataUpdated;Sn.prototype.onPageChanged=Sn.prototype.onPageChanged;Sn.prototype.onSetTheaterModeEnabled=Sn.prototype.onSetTheaterModeEnabled;Sn.prototype.updateMastheadData=Sn.prototype.updateMastheadData;Sn.prototype.onYtPageManagerAttached=Sn.prototype.onYtPageManagerAttached;Sn.prototype.observeGuideVisibility=Sn.prototype.observeGuideVisibility;Sn.prototype.guideIsVisibleButNotPersistentSelectorChanged=Sn.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Sn.prototype.isInlinePreviewEnabledChanged=Sn.prototype.isInlinePreviewEnabledChanged;Sn.prototype.dispatchFrostedGlassMode=Sn.prototype.dispatchFrostedGlassMode;_.G([_.S(_.Op),_.a("design:type",Object)],Sn.prototype,"ytdReduxBehavior",void 0);_.G([_.S(_.Xr.YtEventForwardingBehavior),_.a("design:type",Object)],Sn.prototype,"ytEventForwardingBehavior",void 0);_.G([_.S(_.Zp.YtOpenPopupBehavior),_.a("design:type",Object)],Sn.prototype,"ytOpenPopupBehavior",void 0);
_.G([_.S(_.tK.YtActionHandlerBehavior),_.a("design:type",Object)],Sn.prototype,"ytActionHandlerBehavior",void 0);_.G([_.S({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.ch.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.Q("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(M){this.actionRouter_.handleAction(M.detail)}}),
_.a("design:type",Object)],Sn.prototype,"ytActionRouterBehavior",void 0);_.G([_.S(pGD.YtdAppBehavior),_.a("design:type",Object)],Sn.prototype,"ytdAppBehavior",void 0);_.G([_.S(_.En.YtEndpointBehavior),_.a("design:type",Object)],Sn.prototype,"ytEndpointBehavior",void 0);_.G([_.S(wZC.YtEndpointHandlerWithYpcBehavior),_.a("design:type",Object)],Sn.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.G([_.S(TX4.YtLogYpcFlowCommandsBehavior),_.a("design:type",Object)],Sn.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.G([_.S(_.E.YtRendererBehavior),_.a("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.G([_.S(_.jV.YtComponentBehavior),_.a("design:type",Object)],Sn.prototype,"ytComponentBehavior",void 0);_.G([_.H({selector:_.MMq}),_.a("design:type",Object)],Sn.prototype,"tabGesturesIsActive",void 0);_.G([_.H(),_.a("design:type",Boolean)],Sn.prototype,"renderGuide",void 0);
_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"guidePersistentAndVisible",void 0);_.G([_.H({selector:_.Et9}),_.a("design:type",Boolean)],Sn.prototype,"guideIsVisibleButNotPersistent",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"standalone",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"miniGuideVisible",void 0);
_.G([_.H({selector:_.J6Z}),_.a("design:type",Number)],Sn.prototype,"miniplayerPlaybackState",void 0);_.G([_.H({selector:_.vD,reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"miniplayerIsActive",void 0);_.G([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.a("design:type",Boolean)],Sn.prototype,"isInlinePreviewEnabled",void 0);_.G([_.H(),_.a("design:type",Boolean)],Sn.prototype,"isInlinePreviewDisabled",void 0);
_.G([_.H({reflectToAttribute:!0,value:function(){return _.KF("START_IN_FULL_WINDOW_MODE")}}),
_.a("design:type",Boolean)],Sn.prototype,"mastheadHidden",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"playerFullscreen",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Sn.prototype,"deprecateFullerscreenUi",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"fullscreen",void 0);_.G([_.H({value:!1,reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"hideHeaderShadow",void 0);
_.G([_.H({value:{GUIDE_ALT_LABEL:_.le("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.a("design:type",Object)],Sn.prototype,"menuStrings",void 0);_.G([_.H({computed:"computeTopbarData(data)"}),_.a("design:type",Object)],Sn.prototype,"topbarData",void 0);_.G([_.H({selector:_.OW}),_.a("design:type",Boolean)],Sn.prototype,"isWatchPage",void 0);_.G([_.H({selector:_.r6S,reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"isShortsPage",void 0);
_.G([_.H({selector:function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.a("design:type",Boolean)],Sn.prototype,"isMiniAppPage",void 0);_.G([_.H({selector:function(M){return M.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.a("design:type",Boolean)],Sn.prototype,"isBrowsePage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Boolean)],Sn.prototype,"scrolling",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Sn.prototype,"hasDelegation",void 0);_.G([_.H({reflectToAttribute:!0,value:!1}),_.a("design:type",Boolean)],Sn.prototype,"guideScrolledByTouch",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Sn.prototype,"darkerDarkTheme",void 0);
_.G([_.H(),_.a("design:type",Object)],Sn.prototype,"isFrostedGlassInitialized",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Sn.prototype,"frostedGlassExp",void 0);_.G([_.H({selector:function(M){return M.ui.chipBarIsSticky}}),
_.a("design:type",Boolean)],Sn.prototype,"chipBarIsSticky",void 0);_.G([_.H({computed:"computeIsHomePage(isBrowsePage, data)"}),_.a("design:type",Boolean)],Sn.prototype,"isHomePage",void 0);_.G([_.H({reflectToAttribute:!0}),_.a("design:type",Object)],Sn.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.G([_.H(),_.a("design:type",Object)],Sn.prototype,"ephemeralActionsEnabled",void 0);_.G([_.HB("guide"),_.a("design:type",Object)],Sn.prototype,"guide",void 0);
_.G([_.HB("guide-service"),_.a("design:type",Xkb)],Sn.prototype,"guideService",void 0);_.G([_.HB("guide-inner-content"),_.a("design:type",HTMLDivElement)],Sn.prototype,"guideInnerContent",void 0);_.G([_.H({selector:_.SPZ}),_.a("design:type",String)],Sn.prototype,"frostedGlassMode",void 0);
_.G([_.xB("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"dispatchFrostedGlassMode",null);_.G([_.H({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.a("design:type",Object)],Sn.prototype,"isFrostedGlassDisabled",void 0);
_.G([_.z("isHomePage","chipBarIsSticky"),_.a("design:type",Boolean),_.a("design:paramtypes",[])],Sn.prototype,"applyFrostedGlassToChipBar",null);_.G([_.H(),_.a("design:type",Object)],Sn.prototype,"isChannelOrPlaylistPage",void 0);_.G([_.NS("isInlinePreviewEnabled"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"isInlinePreviewEnabledChanged",null);
_.G([_.xB("guideIsVisibleButNotPersistent"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.G([_.xB("guidePersistentAndVisible","miniGuideVisible"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"observeGuideVisibility",null);
_.G([_.C3("attached"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Sn.prototype,"onYtPageManagerAttached",null);_.G([_.xB("data"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype",Promise)],Sn.prototype,"updateMastheadData",null);_.G([_.C3("yt-set-theater-mode-enabled"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Sn.prototype,"onSetTheaterModeEnabled",null);
_.G([_.C3("yt-page-type-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Sn.prototype,"onPageChanged",null);_.G([_.C3("yt-page-data-updated"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"onPageDataUpdated",null);_.G([_.C3("yt-request-panel-mode-change"),_.a("design:type",Function),_.a("design:paramtypes",[Event,Object]),_.a("design:returntype")],Sn.prototype,"onRequestPanelModeChange",null);
_.G([_.C3("yt-guide-hover"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"onGuideOpenButtonHover",null);_.G([_.C3("app-drawer-transitioned"),_.a("design:type",Function),_.a("design:paramtypes",[Event]),_.a("design:returntype")],Sn.prototype,"onDrawerIronSelect",null);_.G([_.C3("yt-add-element-to-app"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent]),_.a("design:returntype")],Sn.prototype,"onAddElementToApp",null);
_.G([_.C3("yt-set-fullerscreen-styles"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"setFullscreen",null);_.G([_.C3("yt-masthead-height-changed"),_.a("design:type",Function),_.a("design:paramtypes",[CustomEvent,Object]),_.a("design:returntype")],Sn.prototype,"onYtMastheadHeightChanged",null);_.G([_.C3("yt-open-hotkey-dialog"),_.a("design:type",Function),_.a("design:paramtypes",[]),_.a("design:returntype")],Sn.prototype,"onOpenHotkeyDialog",null);
Sn=_.G([_.f({is:"ytd-app"})],Sn);_.K4().processSignal("eor");
_.qQ();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
